@helsenorge/designsystem-react 1.0.0-beta109 → 1.0.0-beta112
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.
- package/Badge-81cefbed.js +2 -0
- package/Badge-81cefbed.js.map +1 -0
- package/Button-218a5289.js +2 -0
- package/Button-218a5289.js.map +1 -0
- package/Checkbox-2e4f93e8.js +2 -0
- package/Checkbox-2e4f93e8.js.map +1 -0
- package/Close-9dfac15c.js +2 -0
- package/Close-9dfac15c.js.map +1 -0
- package/FormGroup-f6ee9d47.js +2 -0
- package/FormGroup-f6ee9d47.js.map +1 -0
- package/{Input-cd0319e0.js → Input-403df0ce.js} +2 -2
- package/Input-403df0ce.js.map +1 -0
- package/{Loader-bf89238f.js → Loader-8a2970bd.js} +2 -2
- package/Loader-8a2970bd.js.map +1 -0
- package/{Modal-1776ded7.js → Modal-8b060471.js} +2 -2
- package/Modal-8b060471.js.map +1 -0
- package/{RadioButton-b0da1997.js → RadioButton-0233a8fb.js} +2 -2
- package/RadioButton-0233a8fb.js.map +1 -0
- package/{Textarea-648063a9.js → Textarea-4597fece.js} +2 -2
- package/Textarea-4597fece.js.map +1 -0
- package/{Title-1d8708ea.js → Title-8fc7396e.js} +2 -2
- package/Title-8fc7396e.js.map +1 -0
- package/{Validation-df81209c.js → Validation-941e3b5e.js} +2 -2
- package/Validation-941e3b5e.js.map +1 -0
- package/__mocks__/IntersectionObserver.d.ts +6 -0
- package/__mocks__/IntersectionObserver.d.ts.map +1 -0
- package/__mocks__/IntersectionObserver.js +2 -0
- package/__mocks__/IntersectionObserver.js.map +1 -0
- package/__mocks__/matchMedia.d.ts +3 -0
- package/__mocks__/matchMedia.d.ts.map +1 -0
- package/__mocks__/matchMedia.js +2 -0
- package/__mocks__/matchMedia.js.map +1 -0
- package/_rollupPluginBabelHelpers-4f206abf.js +2 -0
- package/_rollupPluginBabelHelpers-4f206abf.js.map +1 -0
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Badge/index.js +1 -1
- package/components/Button/Button.d.ts +2 -0
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/componentdata.json +38 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/index.js +1 -1
- package/components/Expander/index.js +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/HighlightBox/index.js +1 -1
- package/components/Icons/AcupunctureBack.js +1 -1
- package/components/Icons/AlarmClock.js +1 -1
- package/components/Icons/AlertSignFill.js +1 -1
- package/components/Icons/AlertSignStroke.js +1 -1
- package/components/Icons/Archive.js +1 -1
- package/components/Icons/ArrowLeft.js +1 -1
- package/components/Icons/ArrowRight.js +1 -1
- package/components/Icons/ArrowUpRight.js +1 -1
- package/components/Icons/Attachment.js +1 -1
- package/components/Icons/Avatar.js +1 -1
- package/components/Icons/Bus.js +1 -1
- package/components/Icons/Calendar.js +1 -1
- package/components/Icons/CalendarChange.js +1 -1
- package/components/Icons/CalendarCheck.js +1 -1
- package/components/Icons/CalendarSave.js +1 -1
- package/components/Icons/Change.js +1 -1
- package/components/Icons/Check.js +1 -1
- package/components/Icons/ChevronDown.js +1 -1
- package/components/Icons/ChevronLeft.js +1 -1
- package/components/Icons/ChevronRight.js +1 -1
- package/components/Icons/ChevronUp.js +1 -1
- package/components/Icons/ChevronsDown.js +1 -1
- package/components/Icons/ChevronsUp.js +1 -1
- package/components/Icons/Contacts.js +1 -1
- package/components/Icons/Copy.js +1 -1
- package/components/Icons/Download.js +1 -1
- package/components/Icons/EChat.js +1 -1
- package/components/Icons/EnterFullScreen.js +1 -1
- package/components/Icons/Envelope.js +1 -1
- package/components/Icons/Eraser.js +1 -1
- package/components/Icons/ErrorSignFill.js +1 -1
- package/components/Icons/ErrorSignStroke.js +1 -1
- package/components/Icons/ExitFullScreen.js +1 -1
- package/components/Icons/Eye.js +1 -1
- package/components/Icons/Form.js +1 -1
- package/components/Icons/Forward.js +1 -1
- package/components/Icons/Gallery.js +1 -1
- package/components/Icons/Globe.js +1 -1
- package/components/Icons/Heart.js +1 -1
- package/components/Icons/HelpSign.js +1 -1
- package/components/Icons/History.js +1 -1
- package/components/Icons/Home.js +1 -1
- package/components/Icons/Hospital.js +1 -1
- package/components/Icons/Hourglass.js +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/InfoSignFill.js +1 -1
- package/components/Icons/InfoSignStroke.js +1 -1
- package/components/Icons/Journal.js +1 -1
- package/components/Icons/List.js +1 -1
- package/components/Icons/Location.js +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Medicine.js +1 -1
- package/components/Icons/Menu.js +1 -1
- package/components/Icons/Minus.js +1 -1
- package/components/Icons/MobilePhone.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.js +1 -1
- package/components/Icons/PaperPlane.js +1 -1
- package/components/Icons/Pause.js +1 -1
- package/components/Icons/Pencil.js +1 -1
- package/components/Icons/Play.js +1 -1
- package/components/Icons/PlusLarge.js +1 -1
- package/components/Icons/PlusSmall.js +1 -1
- package/components/Icons/Printer.js +1 -1
- package/components/Icons/QrCode.js +1 -1
- package/components/Icons/Receptionist.js +1 -1
- package/components/Icons/Referral.js +1 -1
- package/components/Icons/Refresh.js +1 -1
- package/components/Icons/Reply.js +1 -1
- package/components/Icons/Save.js +1 -1
- package/components/Icons/Search.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.js +1 -1
- package/components/Icons/Share.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Stopwatch.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/TimePassing.js +1 -1
- package/components/Icons/Toolbox.js +1 -1
- package/components/Icons/TrashCan.js +1 -1
- package/components/Icons/Undo.js +1 -1
- package/components/Icons/Upload.js +1 -1
- package/components/Icons/Vaccine.js +1 -1
- package/components/Icons/VerticalDots.js +1 -1
- package/components/Icons/VideoCamera.js +1 -1
- package/components/Icons/VideoChat.js +1 -1
- package/components/Icons/Wallet.js +1 -1
- package/components/Icons/Watch.js +1 -1
- package/components/Icons/X.js +1 -1
- package/components/Icons/Zoom.js +1 -1
- package/components/Icons/index.js +1 -1
- package/components/Input/index.js +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/index.js +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Logo/index.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/Panel/Panel.d.ts +65 -0
- package/components/Panel/Panel.d.ts.map +1 -0
- package/components/Panel/componentdata.json +440 -0
- package/components/Panel/index.d.ts +4 -0
- package/components/Panel/index.d.ts.map +1 -0
- package/components/Panel/index.js +2 -0
- package/components/Panel/index.js.map +1 -0
- package/components/Panel/styles.module.scss +345 -0
- package/components/Panel/styles.module.scss.d.ts +34 -0
- package/components/Portal/index.js +1 -1
- package/components/RadioButton/index.js +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Spacer/index.js +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Tile/componentdata.json +19 -1
- package/components/Tile/index.js +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/index.js +1 -1
- package/{constants-075356e2.js → constants-be4018c7.js} +2 -2
- package/constants-be4018c7.js.map +1 -0
- package/constants.d.ts +4 -1
- package/constants.d.ts.map +1 -1
- package/hoc/withBreakpoint/index.js +1 -1
- package/hoc/withBreakpoint/withBreakpoint.d.ts +7 -7
- package/hoc/withBreakpoint/withBreakpoint.d.ts.map +1 -1
- package/hooks/useBreakpoint.d.ts +1 -1
- package/hooks/useBreakpoint.d.ts.map +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/useBreakpoint-004c6cb2.js +2 -0
- package/useBreakpoint-004c6cb2.js.map +1 -0
- package/useHover-026f72c1.js +2 -0
- package/useHover-026f72c1.js.map +1 -0
- package/useIsVisible-fad4d769.js +2 -0
- package/useIsVisible-fad4d769.js.map +1 -0
- package/{useSticky-a572c326.js → useSticky-807e5dde.js} +2 -2
- package/useSticky-807e5dde.js.map +1 -0
- package/{useWindowSize-58f26dea.js → useWindowSize-5cc481da.js} +2 -2
- package/useWindowSize-5cc481da.js.map +1 -0
- package/Button-ed1c6e3f.js +0 -2
- package/Button-ed1c6e3f.js.map +0 -1
- package/Checkbox-8e590de0.js +0 -2
- package/Checkbox-8e590de0.js.map +0 -1
- package/Close-403016b0.js +0 -2
- package/Close-403016b0.js.map +0 -1
- package/FormGroup-fbf475ed.js +0 -2
- package/FormGroup-fbf475ed.js.map +0 -1
- package/Input-cd0319e0.js.map +0 -1
- package/Loader-bf89238f.js.map +0 -1
- package/Modal-1776ded7.js.map +0 -1
- package/RadioButton-b0da1997.js.map +0 -1
- package/Textarea-648063a9.js.map +0 -1
- package/Title-1d8708ea.js.map +0 -1
- package/Validation-df81209c.js.map +0 -1
- package/_rollupPluginBabelHelpers-6b3099b0.js +0 -2
- package/_rollupPluginBabelHelpers-6b3099b0.js.map +0 -1
- package/constants-075356e2.js.map +0 -1
- package/useBreakpoint-3186b97e.js +0 -2
- package/useBreakpoint-3186b97e.js.map +0 -1
- package/useHover-507fb85a.js +0 -2
- package/useHover-507fb85a.js.map +0 -1
- package/useIsVisible-f5d49913.js +0 -2
- package/useIsVisible-f5d49913.js.map +0 -1
- package/useSticky-a572c326.js.map +0 -1
- package/useWindowSize-58f26dea.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useState as t,useEffect as e,useRef as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-4f206abf.js";var o=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'].join(","),i=function(n,i){var a=t(),u=r(a,2),c=u[0],d=u[1];return e((function(){var t=function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.querySelectorAll(o);d(e)},e=new MutationObserver(t);return(null==n?void 0:n.current)&&e.observe(n.current,{subtree:!0,childList:!0}),t(),function(){e.disconnect()}}),[n]),e((function(){i?null==c||c.forEach((function(t){var e=t.getAttribute("data-tabindex");e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")})):null==c||c.forEach((function(t){t.hasAttribute("tabindex")&&t.setAttribute("data-tabindex","".concat(t.tabIndex)),t.tabIndex=-1}))}),[i,c]),c};function a(){var t=n(null);function r(e){var n=t.current,r="Tab"===e.key;if(n&&r){var i=function(t){try{return("string"==typeof t?document.querySelector(t):t).getRootNode().activeElement}catch(e){return console.error("Feil ved å ta tak i active element basert på angitt node: ",t,e),null}}(n),a=null==n?void 0:n.querySelectorAll(o),u=a[0],c=1===a.length?u:a[a.length-1];e.shiftKey?i===u&&(c.focus(),e.preventDefault()):i===c&&(u.focus(),e.preventDefault())}}function i(e){var n=t.current;if(n){var r=n.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===r.length&&(r[0].focus(),e.preventDefault())}}return e((function(){var e=t.current;return e.addEventListener("keydown",r),e.addEventListener("click",i),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",i)}}),[]),t}var u=function(t,n,r){e((function(){var e=new IntersectionObserver(n,r);return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t])},c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=t(!1),i=r(o,2),a=i[0],c=i[1],d=function(t){c(t[0].intersectionRatio>=n)};return u(e,d,{threshold:n}),a};export{a,u as b,c,i as u};
|
|
2
|
+
//# sourceMappingURL=useIsVisible-fad4d769.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsVisible-fad4d769.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as i}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=useSticky-
|
|
1
|
+
import{_ as i}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as o}from"react";import{u as t}from"./useWindowSize-5cc481da.js";var e=function(e,n){var r=o(!1),d=i(r,2),u=d[0],l=d[1],s=o(!1),v=i(s,2),a=v[0],c=v[1],f=o(),g=i(f,2),m=g[0],p=g[1],h=o(),w=i(h,2),W=w[0],b=w[1];return t((function(){var i,o,t,r=(null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect())||{},d=r.top,u=void 0===d?0:d,s=r.width,v=void 0===s?0:s,a=r.bottom,f=void 0===a?0:a,g=null!==(t=null===(o=n.current)||void 0===o?void 0:o.getBoundingClientRect().height)&&void 0!==t?t:0;l(u<=0),c(f<=g),b(v),p(g)}),["resize","scroll"]),{isOutsideWindow:u,isLeavingWindow:a,offsetHeight:m,contentWidth:W}};export{e as u};
|
|
2
|
+
//# sourceMappingURL=useSticky-807e5dde.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSticky-807e5dde.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n,_ as e}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=useWindowSize-
|
|
1
|
+
import{a as n,_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useEffect as i,useState as t}from"react";function o(n,e,i){var t;return function(){var o=this,r=arguments,u=function(){t=null,i||n.apply(o,r)},a=i&&!t;t&&clearTimeout(t),t=setTimeout(u,e),a&&n.apply(o,r)}}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;i((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var i=o(e,r);return t.forEach((function(n){return window.addEventListener(n,i)})),i(),function(){t.forEach((function(n){return window.removeEventListener(n,i)}))}}}),[])},u=function(){var e="object"===("undefined"==typeof window?"undefined":n(window));return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}};function a(){var n=t(u()),i=e(n,2),o=i[0],a=i[1];return r((function(){a(u())}),["resize"]),o}export{a,r as u};
|
|
2
|
+
//# sourceMappingURL=useWindowSize-5cc481da.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWindowSize-5cc481da.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Button-ed1c6e3f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as t,b as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{_ as n}from"./_tslib-51c8a283.js";import o from"react";import{A as r,I as l}from"./constants-075356e2.js";import{g as i}from"./color-e7d082c1.js";import{L as a}from"./Loader-bf89238f.js";import{u as s}from"./useHover-507fb85a.js";import{a as d}from"./useWindowSize-58f26dea.js";import{b as u}from"./grid-c105cad1.js";import{c}from"./index-9b84fabc.js";import m from"./components/Button/styles.module.scss";var f={primary:"blueberry",warning:"banana",danger:"cherry"},b=function(t,e){return e&&e<u.md&&t?l.Small:t?l.Medium:l.XSmall},p=o.forwardRef((function(u,p){var v,_,g,h=u.id,w=u.children,j=u.className,E=void 0===j?"":j,y=u.fluid,k=void 0!==y&&y,N=u.intent,I=void 0===N?"primary":N,B=u.inverted,C=void 0!==B&&B,H=u.htmlMarkup,O=void 0===H?"button":H,S=u.onClick,z=u.large,F=void 0!==z&&z,M=u.loading,x=void 0!==M&&M,A=u.variant,L=void 0===A?"fill":A,R=u.disabled,X=void 0!==R&&R,P=u.ellipsis,W=void 0!==P&&P,q=u.testId,D=u.href,G=u.target,J=n(u,["id","children","className","fluid","intent","inverted","htmlMarkup","onClick","large","loading","variant","disabled","ellipsis","testId","href","target"]),K=function(t){var e,n,o,r,l=null,i=null;void 0!==(null===(n=null===(e=t[0])||void 0===e?void 0:e.props)||void 0===n?void 0:n.svgIcon)&&(l=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)&&(i=t.pop());var a=t.filter((function(t){return t}));return[l,i,a.length>0?a:null]}(o.Children.toArray(w)),Q=t(K,3),T=Q[0],U=Q[1],V=Q[2],Y=s(p),Z=Y.hoverRef,$=Y.isHovered,tt=function(t,e,n,o,r){return e?i("neutral",600):t&&!o||!t&&o?"white":i(f[n],r?700:600)}("fill"===L,X,I,C,$),et=d(),nt="fill"===L,ot="outline"===L,rt="borderless"===L,lt="warning"===I,it="danger"===I,at=!(!T&&!U||x),st=Object.assign({},J),dt=c(m.button,(e(v={},m["button--fluid"],k),e(v,m["button--large"],F),e(v,m["button--warning"],lt),e(v,m["button--danger"],it),e(v,m["button--inverted"],C),e(v,m["button--fill"],nt),e(v,m["button--outline"],ot),e(v,m["button--borderless"],rt),e(v,m["button--with-icon"],at),e(v,m["button--ellipsis"],W),v),E),ut=c(m.button__content,(e(_={},m["button__content--warning"],lt),e(_,m["button__content--danger"],it),e(_,m["button__content--fill"],nt),e(_,m["button__content--borderless"],rt),e(_,m["button__content--with-icon"],at),e(_,m["button__content--large"],F),e(_,m["button__content--ellipsis"],W),e(_,m["button__content--inverted"],C),e(_,m["button__content--fluid"],k),_)),ct=c(m["button__left-fluid-content"],(e(g={},m["button__left-fluid-content--with-icon"],at),e(g,m["button__left-fluid-content--large"],F),g));function mt(t,e,n,r){var l=t&&t.props&&t.props.color?t.props.color:n;return t&&Object.keys(t).length>0?o.cloneElement(t,{size:e,color:l,isHovered:r}):null}var ft=function(){return V?o.createElement("span",{className:ut},V):null},bt=function(){return o.createElement("span",{className:m["content-wrapper"]},x?o.createElement("div",{className:m["button__left-fluid-content"]},o.createElement(a,{testId:"test-id-loader",color:"fill"!==L||C?f[I]:"white",size:"tiny"})):o.createElement(o.Fragment,null,k?o.createElement("div",{className:ct},mt(T,b(F,et.width),tt,$),ft()):o.createElement(o.Fragment,null,mt(T,b(F,et.width),tt,$),ft()),mt(U,l.XSmall,tt,$)))};return o.createElement(o.Fragment,null,"button"===O&&o.createElement("button",Object.assign({id:h,onClick:S,disabled:X,"data-testid":q,"data-analyticsid":r.Button,className:dt,ref:Z},st),bt()),"a"===O&&o.createElement("a",Object.assign({id:h,onClick:S,"data-testid":q,"data-analyticsid":r.Button,className:dt,href:D,target:G,rel:"_blank"===G?"noopener noreferrer":u.rel,ref:Z},J),bt()))}));export{p as B,f as i};
|
|
2
|
-
//# sourceMappingURL=Button-ed1c6e3f.js.map
|
package/Button-ed1c6e3f.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-ed1c6e3f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Checkbox-8e590de0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e,b as o}from"./_rollupPluginBabelHelpers-6b3099b0.js";import r,{useState as c,useEffect as a}from"react";import{c as l}from"./index-9b84fabc.js";import{u as b}from"./uuid-fe7442b7.js";import n from"./components/Icons/Check.js";import{Icon as s}from"./components/Icons/Icon.js";import{F as i,a as t,A as m}from"./constants-075356e2.js";import{g as p}from"./color-e7d082c1.js";import d from"./components/Checkbox/styles.module.scss";var h=r.forwardRef((function(h,k){var x,f,u,v=h.className,_=h.checked,w=void 0!==_&&_,y=h.disabled,g=h.label,j=h.inputId,N=void 0===j?b():j,E=h.mode,I=h.name,C=void 0===I?N:I,F=h.variant,z=h.errorText,A=h.error,B=void 0===A?!!z:A,H=h.value,P=void 0===H?g:H,R=c(w),T=e(R,2),q=T[0],D=T[1],G=B||E===i.oninvalid,J=E===i.ondark,K=E===i.onblueberry,L=F===t.bigform,M=l(d["checkbox-wrapper"],(o(x={},d["checkbox-wrapper--with-error"],z),o(x,d["checkbox-wrapper--bigform"],L),x)),O=l(d["checkbox-label"],(o(f={},d["checkbox-label--disabled"],y),o(f,d["checkbox-label--on-dark"],J),o(f,d["checkbox-label--on-blueberry"],K),o(f,d["checkbox-label--invalid"],G),o(f,d["checkbox-label--bigform"],L),f)),Q=l(d.checkbox,v),S=l(d["checkbox__icon-wrapper"],(o(u={},d["checkbox__icon-wrapper--checked"],q),o(u,d["checkbox__icon-wrapper--disabled"],y),o(u,d["checkbox__icon-wrapper--on-dark"],J),o(u,d["checkbox__icon-wrapper--on-blueberry"],K),o(u,d["checkbox__icon-wrapper--invalid"],G),u)),U=l(d["checkbox-errors"],o({},d["checkbox-errors--bigform"],L)),V=p("blueberry",500);return y&&(V=p("neutral",400)),J&&(V=p("blueberry",200)),G&&(V=p("cherry",500)),a((function(){D(w)}),[w]),r.createElement("div",{"data-testid":h.testId,"data-analyticsid":m.Checkbox,className:M},z&&r.createElement("p",{className:U},z),r.createElement("label",{htmlFor:N,className:O},r.createElement("input",{id:N,name:C,className:Q,type:"checkbox",checked:q,disabled:y,onChange:function(){D(!q)},value:P,ref:k,"aria-invalid":B}),r.createElement("span",{className:S},q&&r.createElement(s,{color:V,className:d.checkbox__icon,svgIcon:n,size:38})),g))}));export{h as C};
|
|
2
|
-
//# sourceMappingURL=Checkbox-8e590de0.js.map
|
package/Checkbox-8e590de0.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox-8e590de0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Close-403016b0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import o from"react";import{p as t}from"./palette-f206f488.js";import{Icon as e}from"./components/Icons/Icon.js";import{A as s}from"./constants-075356e2.js";import r from"./components/Icons/X.js";import a from"./components/Close/styles.module.scss";import{u as n,B as m}from"./useBreakpoint-3186b97e.js";var c=function(c){var l=n()===m.xs?38:48;return o.createElement("button",{"data-testid":c.testId,"data-analyticsid":s.Close,className:a.close,"aria-label":c.ariaLabel||"Lukk",onClick:c.onClick,role:"button"},o.createElement(e,{svgIcon:r,color:t.blueberry600,size:l}))};export{c as C};
|
|
2
|
-
//# sourceMappingURL=Close-403016b0.js.map
|
package/Close-403016b0.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Close-403016b0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/FormGroup-fbf475ed.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import r from"react";import{c as a}from"./index-9b84fabc.js";import o from"./components/FormGroup/styles.module.scss";import{C as t}from"./Checkbox-8e590de0.js";import{F as m,a as n,A as l}from"./constants-075356e2.js";import{R as i}from"./RadioButton-b0da1997.js";import{I as p}from"./Input-cd0319e0.js";import{T as s}from"./Title-1d8708ea.js";var d=r.forwardRef((function(d,f){var u,c,g,v=d.className,_=d.mode,b=void 0===_?m.onwhite:_,w=d.variant,E=void 0===w?n.normal:w,y=d.error,j=d.name,N=b===m.ondark,h=E===n.bigform,k=a(o["form-group-wrapper"],(e(u={},o["form-group-wrapper--on-dark"],N),e(u,o["form-group-wrapper--invalid"],y),u),v),F=a(o["form-group-wrapper__title"],(e(c={},o["form-group-wrapper__title--on-dark"],N&&!y),e(c,o["form-group-wrapper__title--bigform"],h),c)),x=a(o["form-group"],e({},o["form-group--invalid"],y)),B=a(o["form-group-wrapper__errors"],e({},o["form-group-wrapper__errors--bigform"],h)),C=a(o["field-set__legend"],(e(g={},o["field-set__legend--on-dark"],N&&!y),e(g,o["field-set__legend--bigform"],h),g));return r.createElement("div",{"data-testid":d.testId,"data-analyticsid":l.FormGroup,className:k},d.title&&r.createElement(s,{className:F,htmlMarkup:"h4",appearance:"title4",margin:{marginTop:0,marginBottom:2}},d.title),r.createElement("div",{className:x},y&&r.createElement("p",{className:B},y),r.createElement("fieldset",{name:d.title,className:o["field-set"]},d.legend&&r.createElement("legend",{className:C},d.legend),r.Children.map(d.children,(function(e){if(e.type===t){var a=e.type===t;return r.cloneElement(e,{name:null!=j?j:a.valueOf.name,mode:b,variant:E,error:!!y})}if(e.type===i){var o=e.type===i;return r.cloneElement(e,{name:null!=j?j:o.valueOf.name,mode:b,variant:E,error:!!y})}if(e.type===p){var m=e.type===p;return r.cloneElement(e,{name:null!=j?j:m.valueOf.name,mode:b,variant:E,error:!!y})}return e})))))}));export{d as F};
|
|
2
|
-
//# sourceMappingURL=FormGroup-fbf475ed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup-fbf475ed.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Input-cd0319e0.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input-cd0319e0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Loader-bf89238f.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-bf89238f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Modal-1776ded7.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-1776ded7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton-b0da1997.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Textarea-648063a9.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea-648063a9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Title-1d8708ea.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Title-1d8708ea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validation-df81209c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function t(r){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(r)}function r(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],e=!0,o=!1,u=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done)&&(n.push(i.value),!r||n.length!==r);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==a.return||a.return()}finally{if(o)throw u}}return n}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}export{n as _,t as a,r as b};
|
|
2
|
-
//# sourceMappingURL=_rollupPluginBabelHelpers-6b3099b0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-6b3099b0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-075356e2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{useState as r,useEffect as n}from"react";import{b as s,s as t}from"./grid-c105cad1.js";var a;!function(e){e[e.xxs=s.xxs]="xxs",e[e.xs=s.xs]="xs",e[e.sm=s.sm]="sm",e[e.md=s.md]="md",e[e.lg=s.lg]="lg",e[e.xl=s.xl]="xl"}(a||(a={}));var i=function(){var s=r(),i=e(s,2),m=i[0],o=i[1];return n((function(){var r,n,s=function(e){switch(e.media){case t.xl:return void o(e.matches?a.xl:a.lg);case t.lg:return void o(e.matches?a.lg:a.md);case t.md:return void o(e.matches?a.md:a.sm);case t.sm:return void o(e.matches?a.sm:a.xs);case t.xs:return void o(e.matches?a.xs:a.xxs);default:return void o(a.xxs)}},i=Object.entries(t).reverse().map((function(r){var n=e(r,2),s=n[0],t=n[1];return{breakpoint:a[s],mediaQuery:window.matchMedia(t)}}));i.forEach((function(e){return e.mediaQuery.addEventListener("change",s)}));var m=null!==(n=null===(r=i.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==n?n:a.xs;return o(m),function(){i.forEach((function(e){return e.mediaQuery.removeEventListener("change",s)}))}}),[]),m};export{a as B,i as u};
|
|
2
|
-
//# sourceMappingURL=useBreakpoint-3186b97e.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint-3186b97e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/useHover-507fb85a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{useRef as r,useState as n,useEffect as t}from"react";var o=function(o,u){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=o||r(null),f=n(!1),a=e(f,2),v=a[0],s=a[1];return t((function(){var e=c.current,r=function(){return s(!0)},n=function(){return s(!1)},t=["mouseenter",i?"focusin":""];t.forEach((function(n){return e&&e.addEventListener(n,r)}));var o=["mouseleave",i?"focusout":""];return o.forEach((function(r){return e&&e.addEventListener(r,n)})),function(){[].concat(t,o).forEach((function(t){return e&&e.removeEventListener(t,r)&&e.removeEventListener(t,n)}))}}),[c,u]),{hoverRef:c,isHovered:v}};export{o as u};
|
|
2
|
-
//# sourceMappingURL=useHover-507fb85a.js.map
|
package/useHover-507fb85a.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHover-507fb85a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/useIsVisible-f5d49913.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useRef as e,useEffect as t,useState as n}from"react";import{_ as r}from"./_rollupPluginBabelHelpers-6b3099b0.js";function o(){var n=e(null);function r(e){var t=n.current,r="Tab"===e.key;if(t&&r){var o=function(e){try{return("string"==typeof e?document.querySelector(e):e).getRootNode().activeElement}catch(t){return console.error("Feil ved å ta tak i active element basert på angitt node: ",e,t),null}}(t),u=null==t?void 0:t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),i=u[0],c=1===u.length?i:u[u.length-1];e.shiftKey?o===i&&(c.focus(),e.preventDefault()):o===c&&(i.focus(),e.preventDefault())}}function o(e){var t=n.current;if(t){var r=t.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===r.length&&(r[0].focus(),e.preventDefault())}}return t((function(){var e=n.current;return e.addEventListener("keydown",r),e.addEventListener("click",o),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",o)}}),[]),n}var u=function(e,n,r){t((function(){var t=new IntersectionObserver(n,r);return(null==e?void 0:e.current)&&t.observe(e.current),function(){(null==e?void 0:e.current)&&t.unobserve(e.current)}}),[e])},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=n(!1),i=r(o,2),c=i[0],a=i[1],l=function(e){a(e[0].intersectionRatio>=t)};return u(e,l,{threshold:t}),c};export{u as a,i as b,o as u};
|
|
2
|
-
//# sourceMappingURL=useIsVisible-f5d49913.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsVisible-f5d49913.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSticky-a572c326.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize-58f26dea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|