@helsenorge/designsystem-react 1.0.0-beta97 → 1.0.0-beta98
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/Button-f6698126.js +2 -0
- package/Button-f6698126.js.map +1 -0
- package/Checkbox-d9b564fd.js +2 -0
- package/Checkbox-d9b564fd.js.map +1 -0
- package/ChevronUp-4b6797ef.js +2 -0
- package/ChevronUp-4b6797ef.js.map +1 -0
- package/Close-007fca15.js +2 -0
- package/Close-007fca15.js.map +1 -0
- package/FormGroup-9ff588a2.js +2 -0
- package/FormGroup-9ff588a2.js.map +1 -0
- package/Icon-89da8de4.js +2 -0
- package/Icon-89da8de4.js.map +1 -0
- package/Input-f331efd2.js +2 -0
- package/Input-f331efd2.js.map +1 -0
- package/Loader-e5b166ea.js +2 -0
- package/Loader-e5b166ea.js.map +1 -0
- package/Modal-08f3c55b.js +2 -0
- package/Modal-08f3c55b.js.map +1 -0
- package/RadioButton-e41b1319.js +2 -0
- package/RadioButton-e41b1319.js.map +1 -0
- package/Textarea-74f821a2.js +2 -0
- package/Textarea-74f821a2.js.map +1 -0
- package/Title-fab4097d.js +2 -0
- package/Title-fab4097d.js.map +1 -0
- package/Validation-c41fc494.js +2 -0
- package/Validation-c41fc494.js.map +1 -0
- package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/Avatar.d.ts.map +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Badge/Badge.d.ts.map +1 -1
- package/components/Badge/index.js +1 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/Button/styles.module.scss +2 -0
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/Close.d.ts.map +1 -1
- package/components/Close/index.js +1 -1
- package/components/Expander/Expander.d.ts +33 -0
- package/components/Expander/Expander.d.ts.map +1 -0
- package/components/Expander/componentdata.json +237 -0
- package/components/Expander/index.d.ts +4 -0
- package/components/Expander/index.d.ts.map +1 -0
- package/components/Expander/index.js +2 -0
- package/components/Expander/index.js.map +1 -0
- package/components/Expander/styles.module.scss +165 -0
- package/components/Expander/styles.module.scss.d.ts +42 -0
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
- package/components/HighlightBox/index.js +1 -1
- package/components/Icons/AcupunctureBack.js +1 -1
- package/components/Icons/Icon.d.ts.map +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/index.js +1 -1
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/index.js +1 -1
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/List.d.ts.map +1 -1
- package/components/List/index.js +1 -1
- package/components/Loader/Loader.d.ts.map +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Loader/styles.module.scss +3 -2
- package/components/Logo/Logo.d.ts.map +1 -1
- package/components/Logo/index.js +1 -1
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/Portal/index.d.ts.map +1 -1
- package/components/Portal/index.js +1 -1
- package/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/components/RadioButton/index.js +1 -1
- package/components/Slider/Slider.d.ts.map +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Spacer/Spacer.d.ts.map +1 -1
- package/components/Spacer/index.js +1 -1
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Tile/Tile.d.ts.map +1 -1
- package/components/Tile/index.js +1 -1
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/Validation.d.ts.map +1 -1
- package/components/Validation/index.js +1 -1
- package/constants-ad6c82db.js +2 -0
- package/constants-ad6c82db.js.map +1 -0
- package/constants.d.ts +31 -1
- package/constants.d.ts.map +1 -1
- package/hooks/useFocusToggle.d.ts +14 -0
- package/hooks/useFocusToggle.d.ts.map +1 -0
- package/hooks/useIntersectionObserver.d.ts +11 -0
- package/hooks/useIntersectionObserver.d.ts.map +1 -0
- package/hooks/useIsVisible.d.ts +10 -0
- package/hooks/useIsVisible.d.ts.map +1 -0
- package/hooks/useLayoutEvent.d.ts +9 -0
- package/hooks/useLayoutEvent.d.ts.map +1 -0
- package/hooks/useSticky.d.ts +21 -0
- package/hooks/useSticky.d.ts.map +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils/debounce.d.ts +8 -0
- package/utils/debounce.d.ts.map +1 -0
- package/Button-8af0be6e.js +0 -2
- package/Button-8af0be6e.js.map +0 -1
- package/Checkbox-fb5dff56.js +0 -2
- package/Checkbox-fb5dff56.js.map +0 -1
- package/Close-9f68bcd0.js +0 -2
- package/Close-9f68bcd0.js.map +0 -1
- package/FormGroup-6c545646.js +0 -2
- package/FormGroup-6c545646.js.map +0 -1
- package/Icon-04613a89.js +0 -2
- package/Icon-04613a89.js.map +0 -1
- package/Input-adeb7f88.js +0 -2
- package/Input-adeb7f88.js.map +0 -1
- package/Loader-b3fd59f4.js +0 -2
- package/Loader-b3fd59f4.js.map +0 -1
- package/Modal-3742133d.js +0 -2
- package/Modal-3742133d.js.map +0 -1
- package/RadioButton-d90884c9.js +0 -2
- package/RadioButton-d90884c9.js.map +0 -1
- package/Textarea-05e33ba3.js +0 -2
- package/Textarea-05e33ba3.js.map +0 -1
- package/Title-90910763.js +0 -2
- package/Title-90910763.js.map +0 -1
- package/Validation-9bf0c0ec.js +0 -2
- package/Validation-9bf0c0ec.js.map +0 -1
- package/constants-42547490.js +0 -2
- package/constants-42547490.js.map +0 -1
- package/hooks/useVisibility.d.ts +0 -3
- package/hooks/useVisibility.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as t,a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import{_ as n}from"./_tslib-51c8a283.js";import o from"react";import{A as r,I as l}from"./constants-ad6c82db.js";import{g as i}from"./color-acb834c6.js";import"./Icon-89da8de4.js";import{L as a}from"./Loader-e5b166ea.js";import{u as s}from"./useHover-037be19d.js";import{u as d}from"./useWindowSize-73b47451.js";import{b as u}from"./grid-11a70eb7.js";import{c}from"./index-9b84fabc.js";import m from"./components/Button/styles.module.scss";var b={primary:"blueberry",warning:"banana",danger:"cherry"},f=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.children,j=u.className,w=void 0===j?"":j,E=u.fluid,y=void 0!==E&&E,k=u.intent,N=void 0===k?"primary":k,I=u.inverted,B=void 0!==I&&I,C=u.htmlMarkup,H=void 0===C?"button":C,O=u.onClick,S=u.large,z=void 0!==S&&S,F=u.loading,M=void 0!==F&&F,x=u.variant,A=void 0===x?"fill":x,L=u.disabled,R=void 0!==L&&L,X=u.ellipsis,P=void 0!==X&&X,W=u.testId,q=u.href,D=u.target,G=n(u,["children","className","fluid","intent","inverted","htmlMarkup","onClick","large","loading","variant","disabled","ellipsis","testId","href","target"]),J=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(h)),K=t(J,3),Q=K[0],T=K[1],U=K[2],V=s(p),Y=V.hoverRef,Z=V.isHovered,$=function(t,e,n,o,r){return e?i("neutral",600):t&&!o||!t&&o?"white":i(b[n],r?700:600)}("fill"===A,R,N,B,Z),tt=d(),et="fill"===A,nt="outline"===A,ot="borderless"===A,rt="warning"===N,lt="danger"===N,it=!(!Q&&!T||M),at=Object.assign({},G),st=c(m.button,(e(v={},m["button--fluid"],y),e(v,m["button--large"],z),e(v,m["button--warning"],rt),e(v,m["button--danger"],lt),e(v,m["button--inverted"],B),e(v,m["button--fill"],et),e(v,m["button--outline"],nt),e(v,m["button--borderless"],ot),e(v,m["button--with-icon"],it),e(v,m["button--ellipsis"],P),v),w),dt=c(m.button__content,(e(_={},m["button__content--warning"],rt),e(_,m["button__content--danger"],lt),e(_,m["button__content--fill"],et),e(_,m["button__content--borderless"],ot),e(_,m["button__content--with-icon"],it),e(_,m["button__content--large"],z),e(_,m["button__content--ellipsis"],P),e(_,m["button__content--inverted"],B),e(_,m["button__content--fluid"],y),_)),ut=c(m["button__left-fluid-content"],(e(g={},m["button__left-fluid-content--with-icon"],it),e(g,m["button__left-fluid-content--large"],z),g));function ct(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 mt=function(){return U?o.createElement("span",{className:dt},U):null},bt=function(){return o.createElement("span",{className:m["content-wrapper"]},M?o.createElement("div",{className:m["button__left-fluid-content"]},o.createElement(a,{testId:"test-id-loader",color:"fill"!==A||B?b[N]:"white",size:"tiny"})):o.createElement(o.Fragment,null,y?o.createElement("div",{className:ut},ct(Q,f(z,tt.width),$,Z),mt()):o.createElement(o.Fragment,null,ct(Q,f(z,tt.width),$,Z),mt()),ct(T,l.XSmall,$,Z)))};return o.createElement(o.Fragment,null,"button"===H&&o.createElement("button",Object.assign({onClick:O,disabled:R,"data-testid":W,"data-analyticsid":r.Button,className:st,ref:Y},at),bt()),"a"===H&&o.createElement("a",Object.assign({onClick:O,"data-testid":W,"data-analyticsid":r.Button,className:st,href:q,target:D,rel:"_blank"===D?"noopener noreferrer":u.rel,ref:Y},G),bt()))}));export{p as B,b as i};
|
|
2
|
+
//# sourceMappingURL=Button-f6698126.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button-f6698126.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a as r}from"./_rollupPluginBabelHelpers-d0752906.js";import a,{useState as c,useEffect as o}from"react";import{c as l}from"./index-9b84fabc.js";import{u as b}from"./uuid-8870ab4b.js";import{C as i}from"./Check-6291ad09.js";import{I as s}from"./Icon-89da8de4.js";import{F as n,a as t,A as d}from"./constants-ad6c82db.js";import{g as m}from"./color-acb834c6.js";import p from"./components/Checkbox/styles.module.scss";var h=a.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,C=h.mode,E=h.name,I=void 0===E?N:E,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||C===n.oninvalid,J=C===n.ondark,K=C===n.onblueberry,L=F===t.bigform,M=l(p["checkbox-wrapper"],(r(x={},p["checkbox-wrapper--with-error"],z),r(x,p["checkbox-wrapper--bigform"],L),x)),O=l(p["checkbox-label"],(r(f={},p["checkbox-label--disabled"],y),r(f,p["checkbox-label--on-dark"],J),r(f,p["checkbox-label--on-blueberry"],K),r(f,p["checkbox-label--invalid"],G),r(f,p["checkbox-label--bigform"],L),f)),Q=l(p.checkbox,v),S=l(p["checkbox__icon-wrapper"],(r(u={},p["checkbox__icon-wrapper--checked"],q),r(u,p["checkbox__icon-wrapper--disabled"],y),r(u,p["checkbox__icon-wrapper--on-dark"],J),r(u,p["checkbox__icon-wrapper--on-blueberry"],K),r(u,p["checkbox__icon-wrapper--invalid"],G),u)),U=l(p["checkbox-errors"],r({},p["checkbox-errors--bigform"],L)),V=m("blueberry",500);return y&&(V=m("neutral",400)),J&&(V=m("blueberry",200)),G&&(V=m("cherry",500)),o((function(){D(w)}),[w]),a.createElement("div",{"data-testid":h.testId,"data-analyticsid":d.Checkbox,className:M},z&&a.createElement("p",{className:U},z),a.createElement("label",{htmlFor:N,className:O},a.createElement("input",{id:N,name:I,className:Q,type:"checkbox",checked:q,disabled:y,onChange:function(){D(!q)},value:P,ref:k,"aria-invalid":B}),a.createElement("span",{className:S},q&&a.createElement(s,{color:V,className:p.checkbox__icon,svgIcon:i,size:38})),g))}));export{h as C};
|
|
2
|
+
//# sourceMappingURL=Checkbox-d9b564fd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox-d9b564fd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";var t=function(t){var a=t.isExtraSmall,l=t.isHovered,r=e.createElement("path",{d:"M32.951 18.788l1.419 1.409-10.371 10.451L13.63 20.197l1.419-1.409L24 27.809z"}),n=e.createElement("path",{d:"M25 13v20.083l9.951-10.013 1.419 1.409L23.999 36.93 11.63 24.479l1.419-1.409L23 33.085V13z"}),L=e.createElement("path",{d:"M32.577 17.885l1.793 1.779-10.371 10.451L13.63 19.664l1.793-1.779 8.576 8.644z"});return a?l?e.createElement("path",{d:"M25 13v20.083l9.951-10.013 1.419 1.409L23.999 36.93 11.63 24.479l1.419-1.409L23 33.085V13z"}):L:l?n:r},a=function(t){var a=t.isExtraSmall,l=t.isHovered,r=e.createElement("path",{d:"M15.049 30.277l-1.419-1.409 10.371-10.451L34.37 28.868l-1.419 1.409L24 21.257z"}),n=e.createElement("path",{d:"M24.001 10.14L36.37 22.591 34.951 24 25 13.985V35h-2V13.985L13.049 24l-1.419-1.409z"}),L=e.createElement("path",{d:"M32.577 30.115l1.793-1.779-10.371-10.451L13.63 28.336l1.793 1.779 8.576-8.644z"});return a?l?e.createElement("path",{d:"M23.999 9.043L36.897 22.02l-1.794 1.78-9.841-9.9.001 20.205h-2.526L22.736 13.9l-9.839 9.9-1.794-1.78z"}):L:l?n:r};export{a as C,t as a};
|
|
2
|
+
//# sourceMappingURL=ChevronUp-4b6797ef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChevronUp-4b6797ef.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";import{p as t}from"./palette-f206f488.js";import{I as a}from"./Icon-89da8de4.js";import{A as l}from"./constants-ad6c82db.js";import r from"./components/Close/styles.module.scss";import{u as o,B as s}from"./useBreakpoint-324a9b14.js";var n=function(t){var a=t.isExtraSmall,l=t.isHovered,r=e.createElement("path",{d:"M25.403 24l10.259-10.259-1.403-1.403L24 22.597l-10.259-10.26-1.403 1.403L22.597 24 12.338 34.26l1.403 1.403L24 25.403l10.259 10.259 1.403-1.403z"}),o=e.createElement("path",{d:"M24 22.597L12.327 10.924l-1.403 1.402L22.597 24 10.923 35.674l1.403 1.402L24 25.403l11.674 11.673 1.403-1.402L25.403 24l11.673-11.674-1.403-1.402z"}),s=e.createElement("path",{d:"M25.773 24l10.432-10.432-1.772-1.773-10.432 10.433-10.433-10.433-1.773 1.772L22.229 24 11.795 34.433l1.773 1.772 10.433-10.433 10.432 10.433 1.772-1.773z"});return a?l?e.createElement("path",{d:"M24 22.227L11.781 10.008l-1.772 1.772 12.219 12.219-12.22 12.22 1.772 1.772L24 25.771l12.22 12.22 1.772-1.772-12.22-12.22L37.991 11.78l-1.772-1.772z"}):s:l?o:r},m=function(m){var c=o()===s.Xs?38:48;return e.createElement("button",{"data-testid":m.testId,"data-analyticsid":l.Close,className:r.close,"aria-label":m.ariaLabel||"Lukk",onClick:m.onClick,role:"button"},e.createElement(a,{svgIcon:n,color:t.blueberry600,size:c}))};export{m as C};
|
|
2
|
+
//# sourceMappingURL=Close-007fca15.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Close-007fca15.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./_rollupPluginBabelHelpers-d0752906.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-d9b564fd.js";import{F as m,a as n,A as l}from"./constants-ad6c82db.js";import{R as i}from"./RadioButton-e41b1319.js";import{I as p}from"./Input-f331efd2.js";import{T as s}from"./Title-fab4097d.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-9ff588a2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGroup-9ff588a2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Icon-89da8de4.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as a}from"./_tslib-51c8a283.js";import e from"react";import{I as i,A as t}from"./constants-ad6c82db.js";var o=function(a,e,i,t,o,r){return a&&o&&r?e?r:o:e?t:i},r=e.forwardRef((function(o,r){var l=o.svgIcon,s=o.ariaLabel,d=o.id,c=o.className,n=void 0===c?"":c,m=o.size,v=void 0===m?i.Small:m,b=o.color,f=void 0===b?"black":b,h=o.hoverColor,I=void 0===h?f||"black":h,g=o.isHovered,p=void 0!==g&&g,u=o.testId,y=a(o,["svgIcon","ariaLabel","id","className","size","color","hoverColor","isHovered","testId"]),E=e.createElement(l,{isExtraSmall:v<=i.XSmall,isHovered:p}),H=d&&s?"title-".concat(d):void 0;return e.createElement("svg",Object.assign({id:d,"data-testid":u,"data-analyticsid":t.Icon,ref:r,className:"hnds-style-icon ".concat(n),role:"img","aria-label":!d&&s?s:void 0,"aria-labelledby":H,"aria-hidden":"true",viewBox:"0 0 48 48",style:{minWidth:v,minHeight:v},width:v,height:v,fill:p?I:f},y),H&&e.createElement("title",{id:H},s),E)}));r.displayName="Icon";export{r as I,o as r};
|
|
2
|
+
//# sourceMappingURL=Icon-89da8de4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon-89da8de4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import{_ as r}from"./_tslib-51c8a283.js";import a,{useRef as t}from"react";import{c as n}from"./index-9b84fabc.js";import{F as l,a as o,A as i,I as p}from"./constants-ad6c82db.js";import{u as s}from"./uuid-8870ab4b.js";import{I as d}from"./Icon-89da8de4.js";import{g as c}from"./color-acb834c6.js";import{u as m,B as u}from"./useBreakpoint-324a9b14.js";import b from"./components/Input/styles.module.scss";var f;!function(e){e.text="text",e.number="number",e.email="email",e.password="password",e.search="search",e.tel="tel",e.url="url"}(f||(f={}));var w=a.forwardRef((function(w,v){var _,h,y,g=w.defaultValue,j=w.placeholder,I=w.type,E=void 0===I?f.text:I,k=w.inputid,x=void 0===k?s():k,C=w.name,N=w.transparent,L=void 0!==N&&N,O=w.icon,B=w.iconRight,R=w.mode,V=w.variant,F=w.label,S=w.error,T=w.errorText,X=w.testId,z=w.disabled,A=w.readOnly,H=w.autocomplete,P=w.afterLabelChildren,q=w.belowLabelChildren,D=r(w,["defaultValue","placeholder","type","inputid","name","transparent","icon","iconRight","mode","variant","label","error","errorText","testId","disabled","readOnly","autocomplete","afterLabelChildren","belowLabelChildren"]),G=m(),J=t(null),K=R===l.ondark,M=R===l.onblueberry,Q=R===l.oninvalid||T||S,U=V===o.bigform,W=L&&R!==l.ondark&&!Q,Y=n(b["input-wrapper"],e({},b["input-wrapper--invalid"],T)),Z=n(b["input-wrapper__label-wrapper"],(e(_={},b["input-wrapper__label-wrapper--on-dark"],K),e(_,b["input-wrapper__label-wrapper--disabled"],z),_)),$=n(b["content-wrapper"],(e(h={},b["content-wrapper--transparent"],W),e(h,b["content-wrapper--on-blueberry"],M),e(h,b["content-wrapper--on-dark"],K),e(h,b["content-wrapper--invalid"],Q),e(h,b["content-wrapper--bigform"],U),e(h,b["content-wrapper--disabled"],z),e(h,b["content-wrapper--with-icon"],O),h)),ee=n(b["content-wrapper__input"],(e(y={},b["content-wrapper__input--bigform"],U),e(y,b["content-wrapper__input--disabled"],z),y)),re=z?c("neutral",500):c("black"),ae=function(){var e=G!==u.Xs&&U?p.Small:p.XSmall;return void 0!==O?a.createElement(d,{color:re,size:e,svgIcon:O}):null};return a.createElement("div",{"data-testid":X,"data-analyticsid":i.Input,className:Y},F&&a.createElement("div",{className:Z},a.createElement("label",{htmlFor:x},F),P&&a.createElement("div",{className:b["input-wrapper__after-label-children"]},P)),q&&a.createElement("div",null,q),a.createElement("div",{onClick:function(){if(J&&J.current&&O){var e=B?0:1;J.current.children[e].focus()}},ref:J,className:$},!B&&ae(),a.createElement("input",Object.assign({name:C,type:E,defaultValue:g,id:x,className:ee,ref:v,"aria-invalid":!!Q,disabled:z,placeholder:j,readOnly:A,autoComplete:H||"off"},D)),B&&ae()))}));export{w as I,f as a};
|
|
2
|
+
//# sourceMappingURL=Input-f331efd2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input-f331efd2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a}from"./_rollupPluginBabelHelpers-d0752906.js";import r,{useState as l,useRef as t,useEffect as o}from"react";import{c as d}from"./index-9b84fabc.js";import{u as n}from"./uuid-8870ab4b.js";import s from"./components/Loader/styles.module.scss";import{A as i}from"./constants-ad6c82db.js";var m;!function(e){e.screen="screen",e.parent="parent"}(m||(m={}));var c=r.forwardRef((function(c,p){var u,v,_,b=c.overlay,y=c.color,f=void 0===y?b?"black":"neutral":y,w=c.size,E=void 0===w?"small":w,N=c.className,L=void 0===N?"":N,g=c.testId,h=c.center,k=c.inline,j=c.ariaLabelledById,x=c.ariaLabel,B=void 0===x?"Laster inn":x,I=l(b!==m.parent&&!k),z=e(I,2),A=z[0],H=z[1],O="small"===E,P="medium"===E,R="large"===E,q=d(s["loader-wrapper"],(a(u={},s["loader-wrapper--center"],h),a(u,s["loader-wrapper--overlay"],b),a(u,s["loader-wrapper--overlay-screen"],b===m.screen),a(u,s["loader-wrapper--overlay-parent"],b===m.parent&&A),a(u,s["loader-wrapper--inline"],k&&A),u)),C=d(s.loader,(a(v={},s["loader--small"],O),a(v,s["loader--medium"],P),a(v,s["loader--large"],R),v),L),D=d(s.loader__dot,(a(_={},s["loader__dot--small"],O),a(_,s["loader__dot--medium"],P),a(_,s["loader__dot--large"],R),a(_,s["loader__dot--banana"],"banana"===f),a(_,s["loader__dot--cherry"],"cherry"===f),a(_,s["loader__dot--kiwi"],"kiwi"===f),a(_,s["loader__dot--neutral"],"neutral"===f),a(_,s["loader__dot--plum"],"plum"===f),a(_,s["loader__dot--black"],"black"===f),a(_,s["loader__dot--white"],"white"===f),_)),F="loader".concat(n()),G=t(null);return o((function(){var e,a,r,l;b===m.parent&&(null===(a=null===(e=G.current)||void 0===e?void 0:e.parentElement)||void 0===a?void 0:a.style)&&(G.current.parentElement.style.position="relative",H(!0)),k&&(null===(l=null===(r=G.current)||void 0===r?void 0:r.parentElement)||void 0===l?void 0:l.style)&&(G.current.parentElement.style.display="flex",H(!0))}),[]),r.createElement("div",{role:"progressbar",className:q,ref:G},A&&r.createElement("div",{"data-testid":g,"data-analyticsid":i.Loader,"aria-labelledby":j||F,className:C},r.createElement("div",{className:D}),r.createElement("div",{className:D}),r.createElement("div",{className:D}),r.createElement("div",{className:D}),!j&&r.createElement("span",{id:F,className:s["loader__hidden-text"]},B)))}));export{c as L,m as O};
|
|
2
|
+
//# sourceMappingURL=Loader-e5b166ea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader-e5b166ea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import a,{useRef as r,useEffect as n,useState as l}from"react";import{c as o}from"./index-9b84fabc.js";import{p as i}from"./palette-f206f488.js";import{B as c}from"./Button-f6698126.js";import{I as s}from"./Icon-89da8de4.js";import{A as d,Z as m,I as u}from"./constants-ad6c82db.js";import v from"./components/Modal/styles.module.scss";import{A as p,a as f}from"./AlertSignFill-e607ff43.js";import{T as _}from"./Title-fab4097d.js";import{u as E}from"./uuid-8870ab4b.js";import{C as h}from"./Close-007fca15.js";import{createPortal as b}from"react-dom";function y(){var e=r(null);function t(t){var a=e.current,r="Tab"===t.key;if(a&&r){var n=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}}(a),l=null==a?void 0:a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=l[0],i=1===l.length?o:l[l.length-1];t.shiftKey?n===o&&(i.focus(),t.preventDefault()):n===i&&(o.focus(),t.preventDefault())}}function a(t){var a=e.current;if(a){var r=a.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===r.length&&(r[0].focus(),t.preventDefault())}}return n((function(){var r=e.current;return r.addEventListener("keydown",t),r.addEventListener("click",a),function(){r.removeEventListener("keydown",t),r.removeEventListener("click",a)}}),[]),e}var g,N,C=function(e,t,a){n((function(){var r=new IntersectionObserver(t,a);return(null==e?void 0:e.current)&&r.observe(e.current),function(){(null==e?void 0:e.current)&&r.unobserve(e.current)}}),[e])},x=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=l(!1),n=e(r,2),o=n[0],i=n[1],c=function(e){i(e[0].intersectionRatio>=a)};return C(t,c,{threshold:a}),o},w=function(e){e.isExtraSmall;var t=e.isHovered,r=a.createElement("path",{d:"m9.16 23.421 2.883-2.773 8.262 8.584L35.958 12.97l2.882 2.774-18.536 19.257-11.143-11.58zm26.744-13.279-15.6 16.206-8.206-8.529-5.766 5.547 13.973 14.518 21.362-22.193-5.764-5.549z","fill-rule":"evenodd"});return t?a.createElement("path",{d:"m11.128 25.394 2.88-2.771 6.291 6.613 17.071-17.68 2.882 2.775-19.944 20.668-9.18-9.605zM37.318 8.73 20.31 26.345l-6.239-6.558-5.766 5.548 11.996 12.552 22.781-23.609-5.764-5.548z","fill-rule":"evenodd"}):r};function k(e){var t=e.children,r=e.parent,n=e.className,l=e.testId,o=a.useMemo((function(){return document.createElement("div")}),[]);return o.setAttribute("data-analyticsid",d.Portal),l&&o.setAttribute("data-testid",l),a.useEffect((function(){var e=r&&r.appendChild?r:document.body,t=["portal-container"];return n&&n.split(" ").forEach((function(e){return t.push(e)})),t.forEach((function(e){return o.classList.add(e)})),e.appendChild(o),function(){e.removeChild(o)}}),[o,r,n]),b(t,o)}!function(e){e.normal="normal",e.warning="warning",e.error="error",e.success="success",e.image="image"}(g||(g={})),function(e){e.large="large",e.medium="medium"}(N||(N={}));var L={variant:g.normal,primaryButtonText:"OK",large:!1,className:"",size:N.large,zIndex:m.Modal},B=function(e,t){var r=function(e){return e===g.error?a.createElement(s,{size:u.Small,svgIcon:p,color:i.cherry500}):e===g.warning?a.createElement(s,{size:u.Small,svgIcon:f,color:i.black}):e===g.success?a.createElement(s,{size:u.Small,svgIcon:w,color:i.kiwi900}):null}(e);return r?a.createElement("div",{className:v.modal__iconWrapper},r):t?a.createElement("div",{className:v.modal__iconWrapper},a.cloneElement(t,{size:u.Small})):null},z=function(r){var l,i,s,m,u=a.useState(0),p=e(u,2),f=p[0],b=p[1],N=a.useState(E()),C=e(N,1)[0],w=a.useRef(null),L=a.useRef(null),z=a.useRef(null),I=x(L),S=a.useRef(null),T=x(S),W=z.current&&z.current.scrollHeight>z.current.clientHeight;function j(e){"Escape"===e.key&&r.onClose&&(e.stopPropagation(),r.onClose())}function A(e){e.target&&P.current===e.target&&r.onClose&&(e.stopPropagation(),r.onClose())}var M=r.variant===g.image,R=null!==(i=r.titleId)&&void 0!==i?i:C,P=a.useRef(null),D=r.secondaryButtonText&&(null===(s=r.secondaryButtonText)||void 0===s?void 0:s.length)>0||r.onSuccess,H=r.ariaLabelledBy?void 0:r.ariaLabel,q=r.ariaLabelledBy?r.ariaLabelledBy:r.ariaLabel?void 0:R;n((function(){var e,t=P.current;return null===(e=w.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",r.disableCloseEvents||!t||D||(t.addEventListener("keydown",j),t.addEventListener("click",A)),function(){document.body.style.removeProperty("overflow"),r.disableCloseEvents||!t||D||(t.removeEventListener("keydown",j),t.removeEventListener("click",A))}}),[]);var F=o((t(l={},v["modal__title--error"],r.variant===g.error),t(l,v["modal__title--success"],r.variant===g.success),l)),K=a.createElement("div",{"data-testid":"dialog-container"},a.createElement("div",{ref:P,className:v["modal-overlay"],"data-testid":r.testId,"data-analyticsid":d.Modal,style:{zIndex:r.zIndex}},a.createElement("div",{className:v.align,ref:y()},a.createElement("div",{className:o(r.className,v.modal,v["modal--".concat(r.variant)],v["modal--".concat(r.size)]),role:"dialog","aria-label":H,"aria-labelledby":q},a.createElement("div",{tabIndex:f,ref:w,onBlur:function(){return b(-1)}}),a.createElement("div",{className:o(v.modal__shadow,v["modal__shadow--top"],t({},v["modal__shadow--show"],!I&&W))}),a.createElement("div",{className:o(v.modal__contentWrapper,t({},v["modal__contentWrapper--image"],M)),ref:z},!r.noCloseButton&&a.createElement("div",{className:v.modal__closeWrapper},a.createElement("div",{className:o(v.modal__closeWrapper__close)},a.createElement(h,{onClick:r.onClose,ariaLabel:r.ariaLabelCloseBtn}))),a.createElement("div",{className:o(v["modal__contentWrapper__scroll--".concat(r.size)],t({},v["modal__contentWrapper__scroll--image"],M))},a.createElement("div",{ref:L}),a.createElement("div",{className:v.modal__contentWrapper__title},B(r.variant,r.icon),a.createElement(_,{id:R,htmlMarkup:"h3",appearance:"title3",className:F},r.title),r.afterTitleChildren&&a.createElement("div",{className:v.modal__afterTitleChildren},r.afterTitleChildren)),M&&a.createElement("div",null,a.createElement("div",{className:v.modal__contentWrapper__imageWrapper},r.children),a.createElement("span",{className:v.modal__contentWrapper__imageDescription},r.description)),!M&&r.children&&a.createElement("div",null,r.children),!M&&!r.children&&a.createElement("p",{className:v.modal__description},r.description),a.createElement("div",{ref:S}))),a.createElement("div",{className:o(v.modal__shadow,v["modal__shadow--bottom"],t({},v["modal__shadow--show"],!T&&W))}),D&&a.createElement("div",{className:o(v["modal__call-to-action"],v["modal__call-to-action--".concat(r.size)])},r.onSuccess&&a.createElement(c,{onClick:r.onSuccess},r.primaryButtonText),r.secondaryButtonText&&(null===(m=r.secondaryButtonText)||void 0===m?void 0:m.length)>0&&a.createElement(c,{variant:"borderless",onClick:r.onClose},r.secondaryButtonText))))));if(r.printable){return a.createElement(k,{className:"print-modal",testId:"print-modal"},a.createElement("style",{media:"print"},"body > *:not(.".concat("print-modal",") {display: none;}")),K)}return K};z.defaultProps=L;export{z as M,g as a,N as b};
|
|
2
|
+
//# sourceMappingURL=Modal-08f3c55b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal-08f3c55b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./_rollupPluginBabelHelpers-d0752906.js";import r from"react";import{c as o}from"./index-9b84fabc.js";import{u as e}from"./uuid-8870ab4b.js";import t from"./components/RadioButton/styles.module.scss";import{F as i,a as d,A as l}from"./constants-ad6c82db.js";var n=r.forwardRef((function(n,b){var s,u,m,c=n.className,p=n.defaultChecked,f=void 0!==p&&p,v=n.disabled,y=n.label,g=n.inputid,k=void 0===g?e():g,w=n.mode,N=n.name,h=void 0===N?k:N,j=n.variant,E=n.errorText,R=n.error,x=void 0===R?!!E:R,B=n.value,C=void 0===B?y:B,F=x||w===i.oninvalid,A=w===i.ondark,H=w===i.onblueberry,I=j===d.bigform,P=o(t["radio-button-wrapper"],(a(s={},t["radio-button-wrapper--with-error"],E),a(s,t["radio-button-wrapper--bigform"],I),s)),T=o(t["radio-button-label"],(a(u={},t["radio-button-label--disabled"],v),a(u,t["radio-button-label--on-dark"],A),a(u,t["radio-button-label--on-blueberry"],H),a(u,t["radio-button-label--invalid"],F),a(u,t["radio-button-label--bigform"],I),u)),_=o(t["radio-button"],(a(m={},t["radio-button--on-dark"],A),a(m,t["radio-button--disabled"],v),a(m,t["radio-button--on-blueberry"],H),a(m,t["radio-button--invalid"],F),m),c),q=o(t["radio-button-errors"],a({},t["radio-button-errors--bigform"],I));return r.createElement("div",{"data-testid":n.testId,"data-analyticsid":l.RadioButton,className:P},E&&r.createElement("p",{className:q},E),r.createElement("label",{htmlFor:k,className:T},r.createElement("input",{id:k,name:h,className:_,type:"radio",disabled:v,value:C,ref:b,"aria-invalid":x,defaultChecked:f}),y))}));export{n as R};
|
|
2
|
+
//# sourceMappingURL=RadioButton-e41b1319.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButton-e41b1319.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a}from"./_rollupPluginBabelHelpers-d0752906.js";import{_ as r}from"./_tslib-51c8a283.js";import t,{useState as n,useRef as l,useEffect as o}from"react";import{c as i}from"./index-9b84fabc.js";import s from"./components/Textarea/styles.module.scss";import{F as d,A as c}from"./constants-ad6c82db.js";import{u as m}from"./uuid-8870ab4b.js";var p=t.forwardRef((function(p,u){var b,v,w,f=p.maxCharacters,x=p.maxText,_=p.testId,h=p.defaultValue,g=p.marginBottom,E=p.transparent,T=p.mode,C=p.label,j=p.minRows,N=void 0===j?3:j,R=p.maxRows,k=void 0===R?10:R,y=p.grow,B=p.errorText,L=p.afterLabelChildren,H=p.belowLabelChildren,V=r(p,["maxCharacters","maxText","testId","defaultValue","marginBottom","transparent","mode","label","minRows","maxRows","grow","errorText","afterLabelChildren","belowLabelChildren"]),F=n(N),I=e(F,2),A=I[0],M=I[1],O=n(h||""),P=e(O,2),q=P[0],z=P[1],D=l(null),G=function(e){var a=e.rows;e.rows=N;var r=Math.floor((e.scrollHeight-16)/28);r===a&&(e.rows=r),r>=k&&(e.rows=k,e.scrollTop=e.scrollHeight),M(r<k?r:k)},J=T===d.ondark,K=T===d.onblueberry,Q=f&&q.length>f,S=T===d.oninvalid||B||Q,U=i(s.textarea,(a(b={},s["textarea--gutterBottom"],g),a(b,s["textarea--invalid"],B),b)),W=i(s["textarea__label-wrapper"],a({},s["textarea__label-wrapper--on-dark"],J)),X=i(s["content-wrapper"],(a(v={},s["content-wrapper--transparent"],E),a(v,s["content-wrapper--on-blueberry"],K),a(v,s["content-wrapper--on-dark"],J),a(v,s["content-wrapper--invalid"],S),a(v,s["content-wrapper--disabled"],p.disabled),v)),Y=i(s["content-wrapper__input"],a({},s["content-wrapper__input--disabled"],p.disabled)),Z=i(s["textarea__counter-wrapper"],(a(w={},s["textarea__counter-wrapper--on-dark"],J),a(w,s["textarea__counter-wrapper--invalid"],S),w)),$=C?m():void 0;return o((function(){var e,a,r;if(y&&(null===(e=D.current)||void 0===e?void 0:e.children)&&(null===(a=D.current)||void 0===a?void 0:a.children[0])){var t=null===(r=D.current)||void 0===r?void 0:r.children[0];G(t)}}),[]),t.createElement("div",{"data-testid":_,"data-analyticsid":c.Textarea,className:U},C&&t.createElement("div",{className:W},t.createElement("label",{htmlFor:$},C),L&&t.createElement("div",{className:s["textarea__after-label-children"]},L)),H&&t.createElement("div",null,H),t.createElement("div",{className:X,ref:D},t.createElement("textarea",Object.assign({rows:A,defaultValue:h,id:$,className:Y,ref:u,onChange:function(e){y&&G(e.target),z(e.target.value)},"aria-invalid":!!S},V))),f&&t.createElement("div",{className:Z},t.createElement("p",null,"".concat(q.length,"/").concat(f," ").concat(x||"tegn"))))}));export{p as T};
|
|
2
|
+
//# sourceMappingURL=Textarea-74f821a2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea-74f821a2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as i}from"./index-9b84fabc.js";import a from"./components/Title/styles.module.scss";import{A as r}from"./constants-ad6c82db.js";var o=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")},l=e.forwardRef((function(l,m){var n,c=l.id,s=l.children,p=l.className,d=l.htmlMarkup,f=void 0===d?"h1":d,g=l.appearance,u=void 0===g?"title1":g,y=l.margin,T=void 0===y?0:y,b=l.testId,h=i(a.title,(t(n={},a["title--feature"],"titleFeature"===u),t(n,a["title--title1"],"title1"===u),t(n,a["title--title2"],"title2"===u),t(n,a["title--title3"],"title3"===u),t(n,a["title--title4"],"title4"===u),t(n,a["title--title5"],"title5"===u),n),p),j=f,v=o(T)?{marginTop:"".concat(T.marginTop,"rem"),marginBottom:"".concat(T.marginBottom,"rem")}:{marginTop:"".concat(T,"rem"),marginBottom:"".concat(T,"rem")};return e.createElement(j,{id:c,className:h,style:v,ref:m,"data-testid":b,"data-analyticsid":r.Title},s)}));export{l as T,o as i};
|
|
2
|
+
//# sourceMappingURL=Title-fab4097d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title-fab4097d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"react";import{c as a}from"./index-9b84fabc.js";import{F as e}from"./FormGroup-9ff588a2.js";import t from"./components/Validation/styles.module.scss";import{A as o}from"./constants-ad6c82db.js";var s=r.forwardRef((function(s,m){var n=s.errorSummary,i=s.className,l=a(t.validation,i);return r.createElement(r.Fragment,null,r.createElement("div",{"data-testid":s.testId,"data-analyticsid":o.Validation,className:l},r.Children.map(s.children,(function(a){return a.type===e?r.cloneElement(a,{className:n?t["form-group-wrapper--error-sibling"]:""}):a}))),n&&r.createElement("p",{className:t.validation__errors},n))}));export{s as V};
|
|
2
|
+
//# sourceMappingURL=Validation-c41fc494.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Validation-c41fc494.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorLink.d.ts","sourceRoot":"","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AnchorLink.d.ts","sourceRoot":"","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,oBAAY,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/D,UAAU,eAAe;IACvB,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,2FA8Bd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{I as r}from"../../Icon-
|
|
1
|
+
import e from"react";import{I as r}from"../../Icon-89da8de4.js";import{A as t,I as a}from"../../constants-ad6c82db.js";import{g as o}from"../../color-acb834c6.js";import{u as s}from"../../useHover-037be19d.js";import l from"./styles.module.scss";import{c as i}from"../../index-9b84fabc.js";import"../../_tslib-51c8a283.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../../_rollupPluginBabelHelpers-d0752906.js";var n=function(r){var t=r.isExtraSmall,a=r.isHovered,o=e.createElement("path",{d:"M33.305 14.659v14.546h-1.3V16.948L15.804 33.149l-.919-.92 16.27-16.27-12.394.001v-1.301z"}),s=e.createElement("path",{d:"M36.52 11.537v14.545h-1.3l-.001-12.347-19.415 19.414-.919-.92 19.393-19.392-12.302.001v-1.301z"}),l=e.createElement("path",{d:"M18.76 14.426v1.768h11.83L14.719 32.065l1.251 1.25 15.801-15.801v11.691h1.768V14.426z"});return t?a?e.createElement("path",{d:"M22.076 11.122v1.769h11.736L14.819 31.884l1.252 1.25 19.015-19.015v11.782h1.769V11.122z"}):l:a?s:o},c=e.forwardRef((function(c,m){var d=c.id,f=c.href,p=c.children,v=c.className,h=c.target,b=void 0===h?"_self":h,u=c.testId,j="_blank"===b,E=s(m,void 0,!1),g=E.hoverRef,_=E.isHovered,z=i(l.anchorlink,null!=v?v:"");return e.createElement("a",{id:d,href:f,className:z,target:b,rel:j?"noopener noreferrer":void 0,ref:g,"data-testid":u,"data-analyticsid":t.AnchorLink},p,j&&e.createElement(r,{className:l.anchorlink__icon,svgIcon:n,color:o("blueberry",600),hoverColor:o("blueberry",700),size:a.XSmall,isHovered:_}))}));export default c;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,UAAU,WAAW;IACnB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,MAAM,iFAiBV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import a from"react";import{I as
|
|
1
|
+
import a from"react";import{I as t}from"../../Icon-89da8de4.js";import{A as r,I as e}from"../../constants-ad6c82db.js";import{C as s}from"../../Check-6291ad09.js";import{c as o}from"../../index-9b84fabc.js";import c from"./styles.module.scss";import{p as l}from"../../palette-f206f488.js";import"../../_tslib-51c8a283.js";var m=a.forwardRef((function(m,i){var d=m.children,n=m.className,f=void 0===n?"":n,p=m.selected,v=void 0!==p&&p,b=m.variant,u=void 0===b?"normal":b,j=m.testId,I=d.charAt(0).toLocaleUpperCase()+d.substring(1,2);return a.createElement("span",{className:o(c.avatar,v&&c["avatar--selected"],"black"===u&&c["avatar--black"],f),ref:i,"data-testid":j,"data-analyticsid":r.Avatar},v?a.createElement(t,{svgIcon:s,size:e.Small,color:"black"===u?l.neutral900:l.blueberry600}):I)}));export default m;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,oBAAY,WAAW,GAAG,YAAY,CAAC;AACvC,oBAAY,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,UAAU,UAAU;IAClB,qCAAqC;IACrC,QAAQ,EAAE,aAAa,CAAC;IACxB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,KAAK,gFAwBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../../_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as r}from"../../index-9b84fabc.js";import t from"./styles.module.scss";import{A as d}from"../../constants-ad6c82db.js";var l=e.forwardRef((function(l,b){var s,i=l.children,o=l.className,n=void 0===o?"":o,c=l.color,m=void 0===c?"black":c,g=l.testId,u=i.toString().length>2,f=r(t.badge,(a(s={},t["badge--oversized"],u),a(s,t["badge--black"],"black"===m),a(s,t["badge--white"],"white"===m),a(s,t["badge--blueberry"],"blueberry"===m),a(s,t["badge--banana"],"banana"===m),a(s,t["badge--cherry"],"cherry"===m),a(s,t["badge--kiwi"],"kiwi"===m),a(s,t["badge--neutral"],"neutral"===m),a(s,t["badge--plum"],"plum"===m),s),n);return e.createElement("span",{className:f,ref:b,"data-testid":g,"data-analyticsid":d.Badge},i)}));export default l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,MAAM,iBAAiB,CAAC;AAahF,oBAAY,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC7D,oBAAY,mBAAmB,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAC1F,oBAAY,UAAU,GAAG,QAAQ,GAAG,GAAG,CAAC;AACxC,oBAAY,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAE/D,UAAU,aAAa;IACrB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,eAAe;IACnE,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,uDAAuD;IACvD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAeD,QAAA,MAAM,MAAM,2GA0JV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as o}from"../../Button-
|
|
1
|
+
import{B as o}from"../../Button-f6698126.js";export{B as default,i as intentToColor}from"../../Button-f6698126.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../../_tslib-51c8a283.js";import"react";import"../../constants-ad6c82db.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../../Icon-89da8de4.js";import"../../Loader-e5b166ea.js";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"../Loader/styles.module.scss";import"../../useHover-037be19d.js";import"../../useWindowSize-73b47451.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -273,6 +273,7 @@ $invertedHoverColor: #ffffff0d; //$white + '0D';
|
|
|
273
273
|
|
|
274
274
|
&--borderless#{&}--with-icon {
|
|
275
275
|
svg:first-child {
|
|
276
|
+
margin-left: 0;
|
|
276
277
|
margin-right: 0.125rem;
|
|
277
278
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
278
279
|
margin-right: 0.75rem;
|
|
@@ -287,6 +288,7 @@ $invertedHoverColor: #ffffff0d; //$white + '0D';
|
|
|
287
288
|
}
|
|
288
289
|
&--large#{&}--borderless#{&}--with-icon {
|
|
289
290
|
svg:first-child {
|
|
291
|
+
margin-left: 0;
|
|
290
292
|
margin-right: 0.5rem;
|
|
291
293
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
292
294
|
margin-right: 0.75rem;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import
|
|
1
|
+
import{_ as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import e,{useState as o}from"react";import{B as s}from"../../Button-f6698126.js";import{M as r}from"../../Modal-08f3c55b.js";import"../../_tslib-51c8a283.js";import"../../constants-ad6c82db.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../../Icon-89da8de4.js";import"../../Loader-e5b166ea.js";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"../Loader/styles.module.scss";import"../../useHover-037be19d.js";import"../../useWindowSize-73b47451.js";import"../Button/styles.module.scss";import"../Modal/styles.module.scss";import"../../AlertSignFill-e607ff43.js";import"../../Title-fab4097d.js";import"../Title/styles.module.scss";import"../../Close-007fca15.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"react-dom";var i=e.forwardRef((function(i,m){var a=o(!1),l=t(a,2),p=l[0],d=l[1];return e.createElement("div",{"data-testid":i.testId},e.createElement(s,{onClick:function(){return d(!0)}},i.buttonText),p&&e.createElement(r,Object.assign({},i,{onClose:function(){return d(!1)}})))}));export default i;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,OAAO,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErE,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,iHAAiH;IACjH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,wFA6EnB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as o}from"../../Checkbox-
|
|
1
|
+
import{C as o}from"../../Checkbox-d9b564fd.js";export{C as Checkbox,C as default}from"../../Checkbox-d9b564fd.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../Icon-89da8de4.js";import"../../_tslib-51c8a283.js";import"../../constants-ad6c82db.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Close.d.ts","sourceRoot":"","sources":["../../../src/components/Close/Close.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Close.d.ts","sourceRoot":"","sources":["../../../src/components/Close/Close.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,UAAU;IACzB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,KAAK,oCAiBV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as s}from"../../Close-
|
|
1
|
+
import{C as s}from"../../Close-007fca15.js";export{C as default}from"../../Close-007fca15.js";import"react";import"../../palette-f206f488.js";import"../../Icon-89da8de4.js";import"../../_tslib-51c8a283.js";import"../../constants-ad6c82db.js";import"./styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgIcon } from '../Icons';
|
|
3
|
+
import { PaletteNames } from '../../theme/palette';
|
|
4
|
+
export declare enum ExpanderSize {
|
|
5
|
+
small = "small",
|
|
6
|
+
large = "large"
|
|
7
|
+
}
|
|
8
|
+
export declare type ExpanderColors = Extract<PaletteNames, 'banana' | 'blueberry' | 'cherry' | 'kiwi' | 'neutral' | 'plum' | 'white'>;
|
|
9
|
+
interface ExpanderProps {
|
|
10
|
+
/** Sets the trigger title */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Sets the expanded content */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/** Sets the size of the expander. Default: ExpanderSize.small */
|
|
15
|
+
size?: ExpanderSize;
|
|
16
|
+
/** Sets the background of the expander. Requires size=ExpanderSize.large. */
|
|
17
|
+
color?: ExpanderColors;
|
|
18
|
+
/** Adds an icon to the expander trigger. Requires size=ExpanderSize.large. */
|
|
19
|
+
svgIcon?: SvgIcon;
|
|
20
|
+
/** Adds an icon to the expander trigger */
|
|
21
|
+
expanded?: boolean;
|
|
22
|
+
/** Removes border to the left of the content. Requires size=ExpanderSize.small. */
|
|
23
|
+
noNestedLine?: boolean;
|
|
24
|
+
/** Stick expander trigger to top of screen while scrolling down */
|
|
25
|
+
sticky?: boolean;
|
|
26
|
+
/** Called when expander is open/closed. */
|
|
27
|
+
onExpand?: (isExpanded: boolean) => void;
|
|
28
|
+
/** Sets the data-testid attribute on the expander button. */
|
|
29
|
+
testId?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const Expander: React.FC<ExpanderProps>;
|
|
32
|
+
export default Expander;
|
|
33
|
+
//# sourceMappingURL=Expander.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Expander.d.ts","sourceRoot":"","sources":["../../../src/components/Expander/Expander.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAWnD,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,cAAc,GAAG,OAAO,CAAC,YAAY,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE9H,UAAU,aAAa;IACrB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iEAAiE;IACjE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mFAAmF;IACnF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0HrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"title": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Sets the trigger title",
|
|
6
|
+
"name": "title",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
9
|
+
"name": "ExpanderProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
14
|
+
"name": "ExpanderProps"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"required": true,
|
|
18
|
+
"type": {
|
|
19
|
+
"name": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"children": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"description": "Sets the expanded content",
|
|
25
|
+
"name": "children",
|
|
26
|
+
"parent": {
|
|
27
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
28
|
+
"name": "ExpanderProps"
|
|
29
|
+
},
|
|
30
|
+
"declarations": [
|
|
31
|
+
{
|
|
32
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
33
|
+
"name": "ExpanderProps"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"fileName": "designsystem/node_modules/@types/react/index.d.ts",
|
|
37
|
+
"name": "TypeLiteral"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"required": false,
|
|
41
|
+
"type": {
|
|
42
|
+
"name": "ReactNode"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"defaultValue": null,
|
|
47
|
+
"description": "Sets the size of the expander. Default: ExpanderSize.small",
|
|
48
|
+
"name": "size",
|
|
49
|
+
"parent": {
|
|
50
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
51
|
+
"name": "ExpanderProps"
|
|
52
|
+
},
|
|
53
|
+
"declarations": [
|
|
54
|
+
{
|
|
55
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
56
|
+
"name": "ExpanderProps"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": {
|
|
61
|
+
"name": "enum",
|
|
62
|
+
"raw": "ExpanderSize | undefined",
|
|
63
|
+
"value": [
|
|
64
|
+
{
|
|
65
|
+
"value": "undefined"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": "\"small\""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": "\"large\""
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"color": {
|
|
77
|
+
"defaultValue": null,
|
|
78
|
+
"description": "Sets the background of the expander. Requires size=ExpanderSize.large.",
|
|
79
|
+
"name": "color",
|
|
80
|
+
"parent": {
|
|
81
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
82
|
+
"name": "ExpanderProps"
|
|
83
|
+
},
|
|
84
|
+
"declarations": [
|
|
85
|
+
{
|
|
86
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
87
|
+
"name": "ExpanderProps"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"required": false,
|
|
91
|
+
"type": {
|
|
92
|
+
"name": "enum",
|
|
93
|
+
"raw": "\"banana\" | \"blueberry\" | \"cherry\" | \"kiwi\" | \"neutral\" | \"plum\" | \"white\" | undefined",
|
|
94
|
+
"value": [
|
|
95
|
+
{
|
|
96
|
+
"value": "undefined"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value": "\"banana\""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "\"blueberry\""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"value": "\"cherry\""
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": "\"kiwi\""
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"value": "\"neutral\""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "\"plum\""
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"value": "\"white\""
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"svgIcon": {
|
|
123
|
+
"defaultValue": null,
|
|
124
|
+
"description": "Adds an icon to the expander trigger. Requires size=ExpanderSize.large.",
|
|
125
|
+
"name": "svgIcon",
|
|
126
|
+
"parent": {
|
|
127
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
128
|
+
"name": "ExpanderProps"
|
|
129
|
+
},
|
|
130
|
+
"declarations": [
|
|
131
|
+
{
|
|
132
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
133
|
+
"name": "ExpanderProps"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"required": false,
|
|
137
|
+
"type": {
|
|
138
|
+
"name": "FC<SvgPathProps>"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"expanded": {
|
|
142
|
+
"defaultValue": null,
|
|
143
|
+
"description": "Adds an icon to the expander trigger",
|
|
144
|
+
"name": "expanded",
|
|
145
|
+
"parent": {
|
|
146
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
147
|
+
"name": "ExpanderProps"
|
|
148
|
+
},
|
|
149
|
+
"declarations": [
|
|
150
|
+
{
|
|
151
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
152
|
+
"name": "ExpanderProps"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"required": false,
|
|
156
|
+
"type": {
|
|
157
|
+
"name": "boolean"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"noNestedLine": {
|
|
161
|
+
"defaultValue": null,
|
|
162
|
+
"description": "Removes border to the left of the content. Requires size=ExpanderSize.small.",
|
|
163
|
+
"name": "noNestedLine",
|
|
164
|
+
"parent": {
|
|
165
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
166
|
+
"name": "ExpanderProps"
|
|
167
|
+
},
|
|
168
|
+
"declarations": [
|
|
169
|
+
{
|
|
170
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
171
|
+
"name": "ExpanderProps"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"required": false,
|
|
175
|
+
"type": {
|
|
176
|
+
"name": "boolean"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"sticky": {
|
|
180
|
+
"defaultValue": null,
|
|
181
|
+
"description": "Stick expander trigger to top of screen while scrolling down",
|
|
182
|
+
"name": "sticky",
|
|
183
|
+
"parent": {
|
|
184
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
185
|
+
"name": "ExpanderProps"
|
|
186
|
+
},
|
|
187
|
+
"declarations": [
|
|
188
|
+
{
|
|
189
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
190
|
+
"name": "ExpanderProps"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"required": false,
|
|
194
|
+
"type": {
|
|
195
|
+
"name": "boolean"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"onExpand": {
|
|
199
|
+
"defaultValue": null,
|
|
200
|
+
"description": "Called when expander is open/closed.",
|
|
201
|
+
"name": "onExpand",
|
|
202
|
+
"parent": {
|
|
203
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
204
|
+
"name": "ExpanderProps"
|
|
205
|
+
},
|
|
206
|
+
"declarations": [
|
|
207
|
+
{
|
|
208
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
209
|
+
"name": "ExpanderProps"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"required": false,
|
|
213
|
+
"type": {
|
|
214
|
+
"name": "((isExpanded: boolean) => void)"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"testId": {
|
|
218
|
+
"defaultValue": null,
|
|
219
|
+
"description": "Sets the data-testid attribute on the expander button.",
|
|
220
|
+
"name": "testId",
|
|
221
|
+
"parent": {
|
|
222
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
223
|
+
"name": "ExpanderProps"
|
|
224
|
+
},
|
|
225
|
+
"declarations": [
|
|
226
|
+
{
|
|
227
|
+
"fileName": "src/components/Expander/Expander.tsx",
|
|
228
|
+
"name": "ExpanderProps"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"required": false,
|
|
232
|
+
"type": {
|
|
233
|
+
"name": "string"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Expander/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,eAAe,QAAQ,CAAC"}
|