@helsenorge/designsystem-react 1.0.0-beta128 → 1.0.0-beta131

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 (314) 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/Bus.js +1 -1
  114. package/components/Icons/Calendar.js +1 -1
  115. package/components/Icons/CalendarChange.js +1 -1
  116. package/components/Icons/CalendarCheck.js +1 -1
  117. package/components/Icons/CalendarSave.js +1 -1
  118. package/components/Icons/Change.js +1 -1
  119. package/components/Icons/Check.js +1 -1
  120. package/components/Icons/CheckFill.js +1 -1
  121. package/components/Icons/CheckOutline.js +1 -1
  122. package/components/Icons/ChevronDown.js +1 -1
  123. package/components/Icons/ChevronLeft.js +1 -1
  124. package/components/Icons/ChevronRight.js +1 -1
  125. package/components/Icons/ChevronUp.js +1 -1
  126. package/components/Icons/ChevronsDown.js +1 -1
  127. package/components/Icons/ChevronsUp.js +1 -1
  128. package/components/Icons/Contacts.js +1 -1
  129. package/components/Icons/Copy.js +1 -1
  130. package/components/Icons/Download.js +1 -1
  131. package/components/Icons/EChat.js +1 -1
  132. package/components/Icons/EnterFullScreen.js +1 -1
  133. package/components/Icons/Envelope.js +1 -1
  134. package/components/Icons/Eraser.js +1 -1
  135. package/components/Icons/ErrorSignFill.js +1 -1
  136. package/components/Icons/ErrorSignStroke.js +1 -1
  137. package/components/Icons/ExitFullScreen.js +1 -1
  138. package/components/Icons/Eye.js +1 -1
  139. package/components/Icons/Form.js +1 -1
  140. package/components/Icons/Forward.js +1 -1
  141. package/components/Icons/Gallery.js +1 -1
  142. package/components/Icons/Globe.js +1 -1
  143. package/components/Icons/Group.js +1 -1
  144. package/components/Icons/Heart.js +1 -1
  145. package/components/Icons/HelpSign.js +1 -1
  146. package/components/Icons/History.js +1 -1
  147. package/components/Icons/Home.js +1 -1
  148. package/components/Icons/Hospital.js +1 -1
  149. package/components/Icons/Hourglass.js +1 -1
  150. package/components/Icons/Icon.d.ts.map +1 -1
  151. package/components/Icons/Icon.js +1 -1
  152. package/components/Icons/InfoSignFill.js +1 -1
  153. package/components/Icons/InfoSignStroke.js +1 -1
  154. package/components/Icons/Journal.js +1 -1
  155. package/components/Icons/List.js +1 -1
  156. package/components/Icons/Location.js +1 -1
  157. package/components/Icons/Lock.js +1 -1
  158. package/components/Icons/Medicine.js +1 -1
  159. package/components/Icons/Menu.js +1 -1
  160. package/components/Icons/Minus.js +1 -1
  161. package/components/Icons/MobilePhone.js +1 -1
  162. package/components/Icons/NoAccess.js +1 -1
  163. package/components/Icons/NoEye.js +1 -1
  164. package/components/Icons/NoFilter.js +1 -1
  165. package/components/Icons/PaperPlane.js +1 -1
  166. package/components/Icons/Pause.js +1 -1
  167. package/components/Icons/Pencil.js +1 -1
  168. package/components/Icons/Play.js +1 -1
  169. package/components/Icons/PlusLarge.js +1 -1
  170. package/components/Icons/PlusSmall.js +1 -1
  171. package/components/Icons/Printer.js +1 -1
  172. package/components/Icons/QrCode.js +1 -1
  173. package/components/Icons/Receptionist.js +1 -1
  174. package/components/Icons/Referral.js +1 -1
  175. package/components/Icons/Refresh.js +1 -1
  176. package/components/Icons/Reply.js +1 -1
  177. package/components/Icons/Save.js +1 -1
  178. package/components/Icons/Search.js +1 -1
  179. package/components/Icons/SectionSign.js +1 -1
  180. package/components/Icons/Settings.js +1 -1
  181. package/components/Icons/Share.js +1 -1
  182. package/components/Icons/SpeechBubble.js +1 -1
  183. package/components/Icons/Stopwatch.js +1 -1
  184. package/components/Icons/SupportingPerson.js +1 -1
  185. package/components/Icons/Syringe.js +1 -1
  186. package/components/Icons/TimePassing.js +1 -1
  187. package/components/Icons/Toolbox.js +1 -1
  188. package/components/Icons/TrashCan.js +1 -1
  189. package/components/Icons/Undo.js +1 -1
  190. package/components/Icons/Upload.js +1 -1
  191. package/components/Icons/Vaccine.js +1 -1
  192. package/components/Icons/VerticalDots.js +1 -1
  193. package/components/Icons/VideoCamera.js +1 -1
  194. package/components/Icons/VideoChat.js +1 -1
  195. package/components/Icons/Wallet.js +1 -1
  196. package/components/Icons/Watch.js +1 -1
  197. package/components/Icons/X.js +1 -1
  198. package/components/Icons/Zoom.js +1 -1
  199. package/components/Icons/componentdata.json +2 -2
  200. package/components/Icons/index.js +1 -1
  201. package/components/Input/componentdata.json +1 -1
  202. package/components/Input/index.js +1 -1
  203. package/components/LinkList/componentdata.json +1 -1
  204. package/components/LinkList/index.js +1 -1
  205. package/components/List/index.js +1 -1
  206. package/components/Loader/componentdata.json +2 -2
  207. package/components/Loader/index.js +1 -1
  208. package/components/Loader/styles.module.scss +1 -1
  209. package/components/Loader/styles.module.scss.d.ts +37 -34
  210. package/components/Logo/componentdata.json +1 -1
  211. package/components/Logo/index.js +1 -1
  212. package/components/Modal/Modal.d.ts.map +1 -1
  213. package/components/Modal/componentdata.json +1 -1
  214. package/components/Modal/index.js +1 -1
  215. package/components/NotificationPanel/componentdata.json +2 -2
  216. package/components/NotificationPanel/index.js +1 -1
  217. package/components/Panel/componentdata.json +1 -1
  218. package/components/Panel/index.js +1 -1
  219. package/components/Panel/styles.module.scss.d.ts +2356 -15
  220. package/components/PanelList/index.js +1 -1
  221. package/components/PanelList/styles.module.scss.d.ts +2329 -0
  222. package/components/Portal/index.js +1 -1
  223. package/components/RadioButton/index.js +1 -1
  224. package/components/Slider/SliderUtils.d.ts +3 -4
  225. package/components/Slider/SliderUtils.d.ts.map +1 -1
  226. package/components/Slider/index.js +1 -1
  227. package/components/Spacer/componentdata.json +1 -1
  228. package/components/Spacer/index.js +1 -1
  229. package/components/StatusDot/index.js +1 -1
  230. package/components/Tag/componentdata.json +3 -3
  231. package/components/Tag/index.js +1 -1
  232. package/components/Textarea/index.js +1 -1
  233. package/components/Tile/componentdata.json +3 -3
  234. package/components/Tile/index.js +1 -1
  235. package/components/Title/Title.d.ts.map +1 -1
  236. package/components/Title/index.js +1 -1
  237. package/components/Validation/index.js +1 -1
  238. package/hooks/focus-utils.d.ts +1 -1
  239. package/hooks/focus-utils.d.ts.map +1 -1
  240. package/hooks/useBreakpoint.d.ts.map +1 -1
  241. package/hooks/useFocusToggle.d.ts.map +1 -1
  242. package/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/hooks/useHover.d.ts.map +1 -1
  244. package/hooks/useIcons.d.ts +1 -2
  245. package/hooks/useIcons.d.ts.map +1 -1
  246. package/hooks/useIntersectionObserver.d.ts +1 -2
  247. package/hooks/useIntersectionObserver.d.ts.map +1 -1
  248. package/hooks/useIsVisible.d.ts +1 -2
  249. package/hooks/useIsVisible.d.ts.map +1 -1
  250. package/hooks/useKeyboardEvent.d.ts +1 -2
  251. package/hooks/useKeyboardEvent.d.ts.map +1 -1
  252. package/hooks/useLayoutEvent.d.ts.map +1 -1
  253. package/hooks/useOutsideEvent.d.ts +6 -2
  254. package/hooks/useOutsideEvent.d.ts.map +1 -1
  255. package/hooks/useResizeObserver.d.ts.map +1 -1
  256. package/hooks/useSticky.d.ts.map +1 -1
  257. package/hooks/useToggle.d.ts.map +1 -1
  258. package/hooks/useUuid.d.ts.map +1 -1
  259. package/index-d1c0552c.js +7 -0
  260. package/{index-b4162bbf.js.map → index-d1c0552c.js.map} +1 -1
  261. package/index-eb155e65.js +2 -0
  262. package/index-eb155e65.js.map +1 -0
  263. package/index.d.ts +0 -1
  264. package/index.d.ts.map +1 -1
  265. package/index.js +1 -1
  266. package/package.json +62 -60
  267. package/scss/_body.scss +4 -0
  268. package/scss/_breakpoints.scss +2 -0
  269. package/scss/_grid.scss +1 -1
  270. package/scss/_grid.scss.d.ts +1104 -0
  271. package/scss/_print.scss +3 -0
  272. package/scss/_print.scss.d.ts +49 -0
  273. package/scss/_reset.scss +1 -1
  274. package/scss/helsenorge.scss.d.ts +2368 -0
  275. package/theme/currys/color.d.ts +3 -3
  276. package/theme/currys/color.d.ts.map +1 -1
  277. package/theme/currys/spacing.d.ts.map +1 -1
  278. package/useIsVisible-bef05e5e.js +1 -1
  279. package/useSticky-abffc922.js +2 -0
  280. package/useSticky-abffc922.js.map +1 -0
  281. package/utils/uuid.d.ts.map +1 -1
  282. package/utils/viewport.d.ts.map +1 -1
  283. package/Badge-9dc33042.js +0 -2
  284. package/Badge-9dc33042.js.map +0 -1
  285. package/Button-438a02c1.js +0 -2
  286. package/Button-438a02c1.js.map +0 -1
  287. package/Checkbox-40365d70.js +0 -2
  288. package/Checkbox-40365d70.js.map +0 -1
  289. package/Close-df5087c3.js +0 -2
  290. package/Close-df5087c3.js.map +0 -1
  291. package/FormGroup-97ca00ea.js +0 -2
  292. package/FormGroup-97ca00ea.js.map +0 -1
  293. package/FormLayout-d6b786db.js +0 -2
  294. package/FormLayout-d6b786db.js.map +0 -1
  295. package/Input-58069d29.js +0 -2
  296. package/Input-58069d29.js.map +0 -1
  297. package/Loader-79187de4.js.map +0 -1
  298. package/Modal-d7cd8019.js +0 -2
  299. package/Modal-d7cd8019.js.map +0 -1
  300. package/Panel-f36456da.js +0 -2
  301. package/Panel-f36456da.js.map +0 -1
  302. package/RadioButton-692ed90a.js.map +0 -1
  303. package/Textarea-f2b34d54.js.map +0 -1
  304. package/Title-face7728.js.map +0 -1
  305. package/Validation-f34d539c.js.map +0 -1
  306. package/_tslib-51c8a283.js +0 -16
  307. package/_tslib-51c8a283.js.map +0 -1
  308. package/hooks/useWindowSize.d.ts +0 -5
  309. package/hooks/useWindowSize.d.ts.map +0 -1
  310. package/index-b4162bbf.js +0 -8
  311. package/useSticky-29a434c1.js +0 -2
  312. package/useSticky-29a434c1.js.map +0 -1
  313. package/useWindowSize-030df49b.js +0 -2
  314. package/useWindowSize-030df49b.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-088e1d4a.js";function n(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)}export{n as default};
1
+ export{P as default}from"../../index-eb155e65.js";import"react";import"react-dom";import"../../constants-088e1d4a.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{R as o}from"../../RadioButton-692ed90a.js";export{R as RadioButton,R as default}from"../../RadioButton-692ed90a.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-b4162bbf.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
1
+ export{R as RadioButton,R as default}from"../../RadioButton-f9d660f9.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  /** Stopper MouseEvent eller TouchEvent parameter e som sendes inn fra å nå videre.*/
3
- export declare const stopEvent: (e: MouseEvent | TouchEvent | import("react").MouseEvent<{}, MouseEvent> | import("react").TouchEvent<{}>) => boolean;
2
+ export declare const stopEvent: (e: MouseEvent | React.MouseEvent<{}> | TouchEvent | React.TouchEvent<{}>) => boolean;
4
3
  /** Henter ut x posisjon til MouseEvent eller TouchEvent e */
5
- export declare const getMousePosition: (e: MouseEvent | TouchEvent | import("react").MouseEvent<{}, MouseEvent> | import("react").TouchEvent<{}>) => number;
4
+ export declare const getMousePosition: (e: MouseEvent | React.MouseEvent<{}> | TouchEvent | React.TouchEvent<{}>) => number;
6
5
  /** Henter ut width basert på viewport posisjon til parameter elementet el som sendes inn */
7
6
  export declare const getElementWidth: (el: HTMLDivElement | null) => number;
8
7
  /** Returnerer en boolean på om innsendte event e er en TouchEvent */
9
- export declare const isTouchEvent: (e: MouseEvent | TouchEvent | import("react").MouseEvent<{}, MouseEvent> | import("react").TouchEvent<{}>) => boolean;
8
+ export declare const isTouchEvent: (e: MouseEvent | React.MouseEvent<{}> | TouchEvent | React.TouchEvent<{}>) => boolean;
10
9
  /** Kalkulerer x posisjonen til slideren basert på value som sendes inn,
11
10
  * trackerWidth - bredden til trackeren, sliderWidth - bredden på slideren,
12
11
  * og min og max verdier som er satt på slider komponentet. */
@@ -1 +1 @@
1
- {"version":3,"file":"SliderUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderUtils.tsx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from"react";import{c as o}from"../../index-b4162bbf.js";import{T as i}from"../../Title-face7728.js";import c from"./styles.module.scss";import{A as u}from"../../constants-088e1d4a.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),N=e(L,2),x=N[0],A=N[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}(x,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(x)}),[x]);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":x,"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{v as Slider,v as default};
1
+ import{_ as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-d1c0552c.js";import{T as i}from"../../Title-2c8d1f64.js";import c from"./styles.module.scss";import{A as u}from"../../constants-088e1d4a.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,w=void 0===y?1:y,b=m.onChange,k=m.testId,L=n(50),N=e(L,2),x=N[0],A=N[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=100,Y=function(e){re(e)},Z=function(e){ne(e)},$=function(e){re(e)},ee=function(e){ne(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}(x,e,t,0,W)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(Y,Z),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}($,ee))}),[R]),a((function(){!E&&b&&b(x)}),[x]);var te=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,ae),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},ne=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(Y,Z),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}($,ee),s(e))},re=function(e){if(!E&&R){var t=l(e);ae(t-J),s(e)}},ae=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,w,0,W))}};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:te,onTouchStart:te,"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||ae(w*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||ae(-w*t)}},role:"slider","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":W,"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{v as Slider,v as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -17,7 +17,7 @@
17
17
  "required": false,
18
18
  "type": {
19
19
  "name": "enum",
20
- "raw": "\"4xs\" | \"3xs\" | \"2xs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | undefined",
20
+ "raw": "SpacerSizes | undefined",
21
21
  "value": [
22
22
  {
23
23
  "value": "undefined"
@@ -1,2 +1,2 @@
1
- import{d as s}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as e}from"../../index-b4162bbf.js";import r from"./styles.module.scss";import{A as l}from"../../constants-088e1d4a.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,d=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:d,ref:p,"data-testid":i,"data-analyticsid":l.Spacer})}));export{c as default};
1
+ import{d as s}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as e}from"../../index-d1c0552c.js";import r from"./styles.module.scss";import{A as c}from"../../constants-088e1d4a.js";var l=a.forwardRef((function(l,p){var t,x=l.size,o=void 0===x?"s":x,m=l.className,d=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":d,"data-analyticsid":c.Spacer})}));export{l as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{d as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import s from"react";import{c as e}from"../../index-b4162bbf.js";import a from"./styles.module.scss";import{I as o,A as r}from"../../constants-088e1d4a.js";import{Icon as c}from"../Icons/Icon.js";import n from"../Icons/Undo.js";import{g as l}from"../../color-e7d082c1.js";import i from"../Icons/Group.js";import m from"../Icons/NoAccess.js";import"../../_tslib-51c8a283.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";var d;!function(t){t.info="info",t.warning="warning",t.alert="alert",t.cancelled="cancelled",t.active="active",t.transparent="transparent",t.recurring="recurring",t.group="group",t.noaccess="noaccess"}(d||(d={}));var p=s.forwardRef((function(p,u){var f=p.variant,g=void 0===f?d.info:f,j=p.text,_=p.className,v=g===d.recurring||g===d.group||g===d.noaccess,I=g===d.cancelled,b=e(a.statusdot,t({},a["statusdot--cancelled"],I),_),E=e(a.statusdot__dot,[v?a["statusdot__dot--icon"]:a["statusdot__dot--".concat(g)]]),X=e(a.statusdot__label,t({},a["statusdot__label--icon"],v)),N=null;return g===d.recurring?N=s.createElement(c,{size:o.XXSmall,svgIcon:n}):g===d.group?N=s.createElement(c,{size:o.XXSmall,svgIcon:i}):g===d.noaccess&&(N=s.createElement(c,{size:o.XXSmall,svgIcon:m,color:l("cherry",600)})),s.createElement("div",{className:b,"data-analyticsid":r.StatusDot},s.createElement("span",{className:E},N),s.createElement("span",{className:X},j))}));export{d as StatusDotVariant,p as default};
1
+ import{d as a}from"../../_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as e}from"../../index-d1c0552c.js";import s from"./styles.module.scss";import{I as r,A as o}from"../../constants-088e1d4a.js";import{I as c}from"../../Icon-a7d7e9bc.js";import{U as n}from"../../Undo-44981995.js";import{g as l}from"../../color-e7d082c1.js";import{G as i}from"../../Group-eab5fd2c.js";import{N as m}from"../../NoAccess-e1cfd26c.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../useBreakpoint-a74f5af5.js";import"../../_tslib-b219470a.js";import"../../index-d1c9177a.js";var d;!function(a){a.info="info",a.warning="warning",a.alert="alert",a.cancelled="cancelled",a.active="active",a.transparent="transparent",a.recurring="recurring",a.group="group",a.noaccess="noaccess"}(d||(d={}));var p=t.forwardRef((function(p,u){var f=p.variant,g=void 0===f?d.info:f,j=p.text,_=p.className,v=g===d.recurring||g===d.group||g===d.noaccess,b=g===d.cancelled,E=e(s.statusdot,a({},s["statusdot--cancelled"],b),_),I=e(s.statusdot__dot,[v?s["statusdot__dot--icon"]:s["statusdot__dot--".concat(g)]]),N=e(s.statusdot__label,a({},s["statusdot__label--icon"],v)),X=null;return g===d.recurring?X=t.createElement(c,{size:r.XXSmall,svgIcon:n}):g===d.group?X=t.createElement(c,{size:r.XXSmall,svgIcon:i}):g===d.noaccess&&(X=t.createElement(c,{size:r.XXSmall,svgIcon:m,color:l("cherry",600)})),t.createElement("div",{className:E,"data-analyticsid":o.StatusDot},t.createElement("span",{className:I},X),t.createElement("span",{className:N},j))}));export{d as StatusDotVariant,p as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "required": false,
22
22
  "type": {
23
- "name": "string | (string & {}) | (string & ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>) | (string & ReactNodeArray) | (string & ReactPortal)"
23
+ "name": "string & ReactNode"
24
24
  }
25
25
  },
26
26
  "size": {
@@ -71,7 +71,7 @@
71
71
  "required": false,
72
72
  "type": {
73
73
  "name": "enum",
74
- "raw": "\"banana\" | \"blueberry\" | \"cherry\" | \"kiwi\" | \"neutral\" | \"plum\" | undefined",
74
+ "raw": "TagColors | undefined",
75
75
  "value": [
76
76
  {
77
77
  "value": "undefined"
@@ -113,7 +113,7 @@
113
113
  ],
114
114
  "required": false,
115
115
  "type": {
116
- "name": "FC<SvgPathProps>"
116
+ "name": "SvgIcon"
117
117
  }
118
118
  },
119
119
  "variant": {
@@ -1,2 +1,2 @@
1
- import{d as o}from"../../_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as a}from"../../index-b4162bbf.js";import{Icon as e}from"../Icons/Icon.js";import{A as r,I as n}from"../../constants-088e1d4a.js";import{p as c}from"../../palette-f206f488.js";import s from"./styles.module.scss";import{u as i}from"../../useHover-b995a0e6.js";import m from"../Icons/Undo.js";import l from"../Icons/X.js";import"../../_tslib-51c8a283.js";var d,u,f;!function(o){o.medium="medium",o.large="large"}(d||(d={})),function(o){o.remove="remove",o.undo="undo"}(u||(u={})),function(o){o.normal="normal",o.oncolor="oncolor",o.emphasised="emphasised"}(f||(f={}));var v=function(o){var d=o.children,u=o.size,f=o.color,v=o.variant,g=o.action,p=o.onClick,b=o.testId,I=i(),j=I.hoverRef,h=I.isHovered,y=a(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--has-action"],"remove"===g&&[s["tag--".concat(f)],s["tag--".concat(v)]]);return t.createElement("button",{className:y,onClick:p,ref:j,type:"button","data-testid":b,"data-analyticsid":r.Tag},d,t.createElement(e,{svgIcon:function(){switch(g){case"remove":return l;case"undo":return m}}(),size:n.XXSmall,color:c["".concat("undo"===g?"blueberry":f,"800")],isHovered:h}))},g=function(i){var m=i.children,l=i.size,u=void 0===l?d.medium:l,f=i.color,g=void 0===f?"blueberry":f,p=i.svgIcon,b=i.variant,I=void 0===b?"normal":b,j=i.action,h=i.onClick,y=i.testId,z=a(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--".concat(I)],o({},s["tag--has-icon"],p));return j&&h?t.createElement(v,{size:u,color:g,variant:I,action:j,onClick:h,testId:y},m):t.createElement("span",{className:z,"data-testid":y,"data-analyticsid":r.Tag},p&&t.createElement(e,{svgIcon:p,size:n.XXSmall,color:c["".concat(g,"800")],className:s.tag__icon}),m)};export{u as TagAction,d as TagSize,f as TagVariant,g as default};
1
+ import{d as a}from"../../_rollupPluginBabelHelpers-0f007973.js";import o from"react";import{c as t}from"../../index-d1c0552c.js";import{I as e}from"../../Icon-a7d7e9bc.js";import{A as r,I as c}from"../../constants-088e1d4a.js";import{p as n}from"../../palette-f206f488.js";import s from"./styles.module.scss";import{u as i}from"../../useHover-b995a0e6.js";import{U as m}from"../../Undo-44981995.js";import{X as l}from"../../X-9ca7b3e9.js";import"../../_tslib-b219470a.js";var d,u,f;!function(a){a.medium="medium",a.large="large"}(d||(d={})),function(a){a.remove="remove",a.undo="undo"}(u||(u={})),function(a){a.normal="normal",a.oncolor="oncolor",a.emphasised="emphasised"}(f||(f={}));var v=function(a){var d=a.children,u=a.size,f=a.color,v=a.variant,g=a.action,p=a.onClick,b=a.testId,j=i(),I=j.hoverRef,h=j.isHovered,y=t(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--has-action"],"remove"===g&&[s["tag--".concat(f)],s["tag--".concat(v)]]);return o.createElement("button",{className:y,onClick:p,ref:I,type:"button","data-testid":b,"data-analyticsid":r.Tag},d,o.createElement(e,{svgIcon:function(){switch(g){case"remove":return l;case"undo":return m}}(),size:c.XXSmall,color:n["".concat("undo"===g?"blueberry":f,"800")],isHovered:h}))},g=function(i){var m=i.children,l=i.size,u=void 0===l?d.medium:l,f=i.color,g=void 0===f?"blueberry":f,p=i.svgIcon,b=i.variant,j=void 0===b?"normal":b,I=i.action,h=i.onClick,y=i.testId,z=t(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--".concat(j)],a({},s["tag--has-icon"],p));return I&&h?o.createElement(v,{size:u,color:g,variant:j,action:I,onClick:h,testId:y},m):o.createElement("span",{className:z,"data-testid":y,"data-analyticsid":r.Tag},p&&o.createElement(e,{svgIcon:p,size:c.XXSmall,color:n["".concat(g,"800")],className:s.tag__icon}),m)};export{u as TagAction,d as TagSize,f as TagVariant,g as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{T as s}from"../../Textarea-f2b34d54.js";export{T as default}from"../../Textarea-f2b34d54.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-b4162bbf.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";import"../../uuid-11037462.js";
1
+ export{T as default}from"../../Textarea-d37d10a4.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";import"../../uuid-11037462.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "required": true,
37
37
  "type": {
38
- "name": "ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>"
38
+ "name": "ReactElement<any, string | JSXElementConstructor<any>>"
39
39
  }
40
40
  },
41
41
  "title": {
@@ -54,7 +54,7 @@
54
54
  ],
55
55
  "required": true,
56
56
  "type": {
57
- "name": "ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>"
57
+ "name": "ReactElement<any, string | JSXElementConstructor<any>>"
58
58
  }
59
59
  },
60
60
  "highlighted": {
@@ -264,7 +264,7 @@
264
264
  "required": false,
265
265
  "type": {
266
266
  "name": "enum",
267
- "raw": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\" | undefined",
267
+ "raw": "AnchorTarget | undefined",
268
268
  "value": [
269
269
  {
270
270
  "value": "undefined"
@@ -1,2 +1,2 @@
1
- import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-b4162bbf.js";import{A as o,I as n}from"../../constants-088e1d4a.js";import s from"./styles.module.scss";var c=r.forwardRef((function(t,i){var l,o=t.children,n=t.className,c=t.htmlMarkup,d=void 0===c?"span":c,m=t.highlighted,f=t.compact,p=a(s.tile__title,(e(l={},s["tile__title--highlighted"],m),e(l,s["tile__title--compact"],f),l),n),u=d;return r.createElement(u,{className:p,ref:i},o)})),d=r.forwardRef((function(c,d){var m,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,j=i(c,["icon","title","className","description","fixed","highlighted","testId"]),w=l(!1),x=t(w,2),M=x[0],k=x[1],I=!g,y=a(s.tile,(e(m={},s["tile--fixed"],v),e(m,s["tile--compact"],I),e(m,s["tile--highlighted"],E),m),h),B=a(s["title-wrapper"],e({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:d,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},j),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)}));d.Title=c;export{d as Tile,d as default};
1
+ import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-b219470a.js";import r,{useState as a}from"react";import{c as l}from"../../index-d1c0552c.js";import{A as o,I as n}from"../../constants-088e1d4a.js";import"../../Icon-a7d7e9bc.js";import s from"./styles.module.scss";var c=r.forwardRef((function(t,i){var a,o=t.children,n=t.className,c=t.htmlMarkup,d=void 0===c?"span":c,m=t.highlighted,p=t.compact,f=l(s.tile__title,(e(a={},s["tile__title--highlighted"],m),e(a,s["tile__title--compact"],p),a),n),u=d;return r.createElement(u,{className:f,ref:i},o)})),d=r.forwardRef((function(c,d){var m,p=c.icon,f=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,j=i(c,["icon","title","className","description","fixed","highlighted","testId"]),w=a(!1),x=t(w,2),I=x[0],M=x[1],k=!g,y=l(s.tile,(e(m={},s["tile--fixed"],v),e(m,s["tile--compact"],k),e(m,s["tile--highlighted"],E),m),h),B=l(s["title-wrapper"],e({},s["title-wrapper--compact"],k));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},onFocus:function(){return M(!0)},onBlur:function(){return M(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},j),r.createElement("div",{className:B},r.cloneElement(p,{size:n.Medium,isHovered:I,color:E?"white":"black"}),r.cloneElement(f,{highlighted:E,compact:k})),g?r.createElement("p",{className:s.tile__description},g):null)}));d.Title=c;export{d as Tile,d as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,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"../../Title-face7728.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-face7728.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-b4162bbf.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
1
+ export{T as default,i as instanceOfTitleMargin}from"../../Title-2c8d1f64.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{V as s}from"../../Validation-f34d539c.js";export{V as Validation,V as default}from"../../Validation-f34d539c.js";import"react";import"../../index-b4162bbf.js";import"../../FormGroup-97ca00ea.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-40365d70.js";import"../../uuid-11037462.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-088e1d4a.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-692ed90a.js";import"../RadioButton/styles.module.scss";import"../../Input-58069d29.js";import"../../useBreakpoint-a74f5af5.js";import"../Input/styles.module.scss";import"../../Title-face7728.js";import"../Title/styles.module.scss";import"../../FormLayout-d6b786db.js";import"../FormLayout/styles.module.scss";import"./styles.module.scss";
1
+ export{V as Validation,V as default}from"../../Validation-5e138927.js";import"react";import"../../index-d1c0552c.js";import"../../FormGroup-88d9b47b.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-da15e778.js";import"../../uuid-11037462.js";import"../../Check-cc284473.js";import"../../Icon-a7d7e9bc.js";import"../../_tslib-b219470a.js";import"../../constants-088e1d4a.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-f9d660f9.js";import"../RadioButton/styles.module.scss";import"../../Input-a4c88ad6.js";import"../../useBreakpoint-a74f5af5.js";import"../Input/styles.module.scss";import"../../Title-2c8d1f64.js";import"../Title/styles.module.scss";import"../../FormLayout-eea065d7.js";import"../FormLayout/styles.module.scss";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Returnerer document.activeElement (element in focus), uavhengig av om den er i document-dom eller shadow-dom
4
4
  * @param element HtmlElement som den skal søke i
5
5
  */
6
- export declare const getDocumentActiveElement: (element: string | HTMLElement) => Element | null;
6
+ export declare const getDocumentActiveElement: (element: HTMLElement | string) => Element | null;
7
7
  //# sourceMappingURL=focus-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"focus-utils.d.ts","sourceRoot":"","sources":["../../src/hooks/focus-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,mDAUpC,CAAC"}
1
+ {"version":3,"file":"focus-utils.d.ts","sourceRoot":"","sources":["../../src/hooks/focus-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,YAAa,WAAW,GAAG,MAAM,KAAG,OAAO,GAAG,IAUlF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAqB;IACrB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,kBA2DzB,CAAC"}
1
+ {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAqB;IACrB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAO,UA2DhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusToggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,eAAO,MAAM,mBAAmB,QAarB,CAAC;AAEZ;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,8GAgD1B,CAAC"}
1
+ {"version":3,"file":"useFocusToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusToggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,eAAO,MAAM,mBAAmB,QAarB,CAAC;AAEZ;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,SAAS,CAAC,WAAW,CAAC,uCAAyB,WAAW,WAAW,CAAC,GAAG,SAgDlH,CAAC"}
@@ -1 +1 @@
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"}
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,CA0D5E;AAED,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/hooks/useHover.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;CA0BpB,CAAC"}
1
+ {"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/hooks/useHover.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,uHAA+F,OAAO;;;CA0B1H,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconProps } from '../components/Icons';
3
- export declare const useIcons: (children: import("react").ReactNode[]) => (string | number | boolean | {} | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactElement<IconProps, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | null | undefined)[];
2
+ export declare const useIcons: (children: React.ReactNode[]) => Array<React.ReactElement<IconProps> | React.ReactNode | {} | undefined | null>;
4
3
  //# sourceMappingURL=useIcons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIcons.d.ts","sourceRoot":"","sources":["../../src/hooks/useIcons.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,eAAO,MAAM,QAAQ,qgBAapB,CAAC"}
1
+ {"version":3,"file":"useIcons.d.ts","sourceRoot":"","sources":["../../src/hooks/useIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,eAAO,MAAM,QAAQ,aAAc,MAAM,SAAS,EAAE,KAAG,MAAM,MAAM,YAAY,CAAC,SAAS,CAAC,GAAG,MAAM,SAAS,GAAG,EAAE,GAAG,SAAS,GAAG,IAAI,CAanI,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Lytt på endringer i synligheten (intersection) til et HTML-element. F.eks. kan du bruke denne til å kalle en callback
4
3
  * når elementet er i ferd med å forsvinne ut av vinduet.
@@ -7,5 +6,5 @@
7
6
  * @param callback Kalles når en endring i intersection er observert
8
7
  * @param options Objekt med options for IntersectionObserver, f.eks. threshold for å bestemme når callbacken skal fyres
9
8
  */
10
- export declare const useIntersectionObserver: (ref: import("react").RefObject<HTMLElement>, callback: IntersectionObserverCallback, options?: IntersectionObserverInit | undefined) => void;
9
+ export declare const useIntersectionObserver: (ref: React.RefObject<HTMLElement>, callback: IntersectionObserverCallback, options?: IntersectionObserverInit | undefined) => void;
11
10
  //# sourceMappingURL=useIntersectionObserver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntersectionObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersectionObserver.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAEH,eAAO,MAAM,uBAAuB,+IAkBnC,CAAC"}
1
+ {"version":3,"file":"useIntersectionObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersectionObserver.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,eAAO,MAAM,uBAAuB,QAC7B,MAAM,SAAS,CAAC,WAAW,CAAC,YACvB,4BAA4B,qDAErC,IAcF,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Sjekk om et HTML-element er synlig i vinduet, eller ikke.
4
3
  *
@@ -6,5 +5,5 @@
6
5
  * @param threshold Hvor synlig må elementet være? Default = 1 (helt synlig)
7
6
  * @returns true hvis objektet er synlig lik threshold eller mer, false hvis ikke
8
7
  */
9
- export declare const useIsVisible: (ref: import("react").RefObject<HTMLElement>, threshold?: number) => boolean;
8
+ export declare const useIsVisible: (ref: React.RefObject<HTMLElement>, threshold?: number) => boolean;
10
9
  //# sourceMappingURL=useIsVisible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsVisible.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsVisible.ts"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,8EAUxB,CAAC"}
1
+ {"version":3,"file":"useIsVisible.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsVisible.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,CAAC,WAAW,CAAC,yBAAkB,OAU/E,CAAC"}
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const useKeyboardEvent: <E extends "keydown" | "keypress" | "keyup">(eventName: E, ref: import("react").RefObject<HTMLElement>, key: string | string[], callback: (event: HTMLElementEventMap[E]) => void) => void;
1
+ export declare const useKeyboardEvent: <E extends "keydown" | "keypress" | "keyup">(eventName: E, ref: React.RefObject<HTMLElement>, key: string | string[], callback: (event: HTMLElementEventMap[E]) => void) => void;
3
2
  //# sourceMappingURL=useKeyboardEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardEvent.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,gBAAgB,4LAkB5B,CAAC"}
1
+ {"version":3,"file":"useKeyboardEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardEvent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,kEAEtB,MAAM,SAAS,CAAC,WAAW,CAAC,OAC5B,MAAM,GAAG,MAAM,EAAE,+CACuB,IAAI,SAclD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayoutEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutEvent.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,wEAa1B,CAAC"}
1
+ {"version":3,"file":"useLayoutEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutEvent.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAAc,MAAM,IAAI,iDAalD,CAAC"}
@@ -1,9 +1,13 @@
1
- /// <reference types="react" />
1
+ declare type PickByValue<T, V> = Pick<T, {
2
+ [K in keyof T]: T[K] extends V ? K : never;
3
+ }[keyof T]>;
4
+ declare type OutsideEvents = keyof PickByValue<HTMLElementEventMap, MouseEvent | FocusEvent>;
2
5
  /**
3
6
  * Custom hook for klikk eller fokus utenfor et gitt element
4
7
  * @param ref Sjekker om det klikkes utenfor dette elementet
5
8
  * @param handleClick Callback-funksjon ved klikk utenfor elementet
6
9
  * @param events Type eventer å lytte på. Default: mousedown
7
10
  */
8
- export declare const useOutsideEvent: (ref: import("react").RefObject<HTMLElement>, handleClick: () => void, events?: ("auxclick" | "blur" | "click" | "contextmenu" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "wheel")[]) => void;
11
+ export declare const useOutsideEvent: (ref: React.RefObject<HTMLElement>, handleClick: () => void, events?: OutsideEvents[]) => void;
12
+ export {};
9
13
  //# sourceMappingURL=useOutsideEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOutsideEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideEvent.ts"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,0iBAkB3B,CAAC"}
1
+ {"version":3,"file":"useOutsideEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideEvent.ts"],"names":[],"mappings":"AAEA,aAAK,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAE1F,aAAK,aAAa,GAAG,MAAM,WAAW,CAAC,mBAAmB,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAErF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QACrB,MAAM,SAAS,CAAC,WAAW,CAAC,eACpB,MAAM,IAAI,WACf,aAAa,EAAE,KACtB,IAcF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,mFAa7B,CAAC"}
1
+ {"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,gEAAyC,OAAO,GAAG,SAahF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSticky.d.ts","sourceRoot":"","sources":["../../src/hooks/useSticky.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,oBAAoB;IAC5B,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,+CAA+C;IAC/C,eAAe,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,qCAAqC;IACrC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AACD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,6GAmBrB,CAAC"}
1
+ {"version":3,"file":"useSticky.d.ts","sourceRoot":"","sources":["../../src/hooks/useSticky.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,oBAAoB;IAC5B,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,+CAA+C;IAC/C,eAAe,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,qCAAqC;IACrC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AACD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,eAAgB,MAAM,SAAS,CAAC,WAAW,CAAC,aAAa,MAAM,SAAS,CAAC,WAAW,CAAC,KAAG,oBAsB7G,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;CAqBrB,CAAC"}
1
+ {"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,iBAAkB,OAAO,sBAAqB,OAAO,KAAK,IAAI;WAAY,OAAO;iBAAe,MAAM,IAAI;CAqB/H,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../src/hooks/useUuid.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,cAInB,CAAC"}
1
+ {"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../src/hooks/useUuid.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAO,MAI1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ var r,t={exports:{}};
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */r=t,function(){var t={}.hasOwnProperty;function e(){for(var r=arguments,o=[],s=0;s<arguments.length;s++){var a=r[s];if(a){var n=typeof a;if("string"===n||"number"===n)o.push(a);else if(Array.isArray(a)){if(a.length){var i=e.apply(null,a);i&&o.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var p in a)t.call(a,p)&&a[p]&&o.push(p);else o.push(a.toString())}}return o.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}();var e=t.exports;export{e as c};
7
+ //# sourceMappingURL=index-d1c0552c.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-b4162bbf.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","window"],"mappings":";;;;;;CAOC,WAGA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IAGR,oBAFIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,EAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,SAGT,GAAgB,WAAZJ,EACV,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,SACrC,IAAK,IAAIG,KAAOV,EACXP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,IAChCd,EAAQM,KAAKQ,QAIfd,EAAQM,KAAKF,EAAIO,aAKpB,OAAOX,EAAQgB,KAAK,KAGgBC,EAAOC,SAC3CnB,EAAWoB,QAAUpB,EACrBkB,EAAAC,QAAiBnB,GAOjBqB,OAAOrB,WAAaA,EAhDtB"}
1
+ {"version":3,"file":"index-d1c0552c.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","window"],"mappings":";;;;;MAOC,WAGA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IAGR,oBAFIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,EAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,SAGT,GAAgB,WAAZJ,EACV,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,SACrC,IAAK,IAAIG,KAAOV,EACXP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,IAChCd,EAAQM,KAAKQ,QAIfd,EAAQM,KAAKF,EAAIO,aAKpB,OAAOX,EAAQgB,KAAK,KAGgBC,EAAOC,SAC3CnB,EAAWoB,QAAUpB,EACrBkB,EAAAC,QAAiBnB,GAOjBqB,OAAOrB,WAAaA,EAhDtB"}
@@ -0,0 +1,2 @@
1
+ import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"./constants-088e1d4a.js";function n(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)}export{n as P};
2
+ //# sourceMappingURL=index-eb155e65.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-eb155e65.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export { useIsVisible } from './hooks/useIsVisible';
8
8
  export { useLayoutEvent } from './hooks/useLayoutEvent';
9
9
  export { usePrevious } from './hooks/usePrevious';
10
10
  export { useSticky } from './hooks/useSticky';
11
- export { useWindowSize } from './hooks/useWindowSize';
12
11
  export { useSize } from './hooks/useSize';
13
12
  export { useResizeObserver } from './hooks/useResizeObserver';
14
13
  export { useToggle } from './hooks/useToggle';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE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AAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,aAAa,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-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{u as e}from"./useWindowSize-030df49b.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-030df49b.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-29a434c1.js";import{_ as s}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as r}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle}from"./useOutsideEvent-fb86686d.js";export{u as useUuid}from"./useUuid-3b1e73f2.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-088e1d4a.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var u=r(),a=s(u,2),t=a[0],i=a[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),t};export{o as useSize};
1
+ export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{u as e}from"./useSticky-abffc922.js";export{u as useLayoutEvent,a as useSticky}from"./useSticky-abffc922.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";import{_ as s}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as r}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle}from"./useOutsideEvent-fb86686d.js";export{u as useUuid}from"./useUuid-3b1e73f2.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-088e1d4a.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(a){var o=r(),u=s(o,2),t=u[0],i=u[1];return e((function(){(null==a?void 0:a.current)&&i(a.current.getBoundingClientRect())})),t};export{o as useSize};
2
2
  //# sourceMappingURL=index.js.map