@helsenorge/designsystem-react 1.0.0-beta86 → 1.0.0-beta87
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/AlertSignFill-e607ff43.js +2 -0
- package/AlertSignFill-e607ff43.js.map +1 -0
- package/{Button-3f327b66.js → Button-55952154.js} +2 -2
- package/Button-55952154.js.map +1 -0
- package/Close-a6cbd165.js +2 -0
- package/Close-a6cbd165.js.map +1 -0
- package/{FormGroup-b874ae21.js → FormGroup-56d60079.js} +2 -2
- package/FormGroup-56d60079.js.map +1 -0
- package/Loader-6ff0d481.js +2 -0
- package/Loader-6ff0d481.js.map +1 -0
- package/Modal-ac3a4757.js +2 -0
- package/Modal-ac3a4757.js.map +1 -0
- package/Title-72851d51.js +2 -0
- package/Title-72851d51.js.map +1 -0
- package/{Validation-b902407e.js → Validation-372a97b9.js} +2 -2
- package/Validation-372a97b9.js.map +1 -0
- package/X-8d8ff918.js +2 -0
- package/X-8d8ff918.js.map +1 -0
- package/components/AnchorLink/AnchorLink.d.ts +2 -0
- package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
- package/components/AnchorLink/componentdata.json +19 -0
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/Avatar.d.ts +2 -0
- package/components/Avatar/Avatar.d.ts.map +1 -1
- package/components/Avatar/componentdata.json +19 -0
- package/components/Avatar/index.js +1 -1
- package/components/Badge/Badge.d.ts +2 -0
- package/components/Badge/Badge.d.ts.map +1 -1
- package/components/Badge/componentdata.json +19 -0
- package/components/Badge/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts +2 -0
- package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
- package/components/ButtonWithModal/componentdata.json +19 -19
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Close/Close.d.ts +12 -0
- package/components/Close/Close.d.ts.map +1 -0
- package/components/Close/componentdata.json +61 -0
- package/components/Close/index.d.ts +3 -0
- package/components/Close/index.d.ts.map +1 -0
- package/components/Close/index.js +2 -0
- package/components/Close/index.js.map +1 -0
- package/components/Close/styles.module.scss +32 -0
- package/components/Close/styles.module.scss.d.ts +9 -0
- package/components/ExpanderList/ExpanderList.d.ts +2 -0
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/componentdata.json +19 -0
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/LinkList/LinkList.d.ts +4 -0
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/componentdata.json +19 -0
- package/components/LinkList/index.js +1 -1
- package/components/List/List.d.ts +2 -0
- package/components/List/List.d.ts.map +1 -1
- package/components/List/componentdata.json +19 -0
- package/components/List/index.js +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Logo/Logo.d.ts +2 -0
- package/components/Logo/Logo.d.ts.map +1 -1
- package/components/Logo/componentdata.json +19 -0
- 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/Modal/styles.module.scss +0 -21
- package/components/Modal/styles.module.scss.d.ts +0 -1
- package/components/NotificationPanel/NotificationPanel.d.ts +2 -0
- package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
- package/components/NotificationPanel/componentdata.json +19 -0
- package/components/NotificationPanel/index.js +1 -1
- package/components/Slider/Slider.d.ts +2 -0
- package/components/Slider/Slider.d.ts.map +1 -1
- package/components/Slider/componentdata.json +19 -0
- package/components/Slider/index.js +1 -1
- package/components/Spacer/Spacer.d.ts +2 -0
- package/components/Spacer/Spacer.d.ts.map +1 -1
- package/components/Spacer/componentdata.json +19 -0
- package/components/Spacer/index.js +1 -1
- package/components/Tile/Tile.d.ts +2 -0
- package/components/Tile/Tile.d.ts.map +1 -1
- package/components/Tile/componentdata.json +19 -0
- package/components/Tile/index.js +1 -1
- package/components/Title/Title.d.ts +2 -0
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/index.js +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/package.json +1 -1
- package/AlertSignFill-64bfef57.js +0 -2
- package/AlertSignFill-64bfef57.js.map +0 -1
- package/Button-3f327b66.js.map +0 -1
- package/FormGroup-b874ae21.js.map +0 -1
- package/Loader-cf365332.js +0 -2
- package/Loader-cf365332.js.map +0 -1
- package/Modal-3dc1bb47.js +0 -2
- package/Modal-3dc1bb47.js.map +0 -1
- package/Title-7c829525.js +0 -2
- package/Title-7c829525.js.map +0 -1
- package/Validation-b902407e.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import a from"react";var e=function(e){var t=e.isExtraSmall,m=e.isHovered,z=a.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 21.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),r=a.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 19.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),v=a.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 20.988c.492 0 .892-.399.892-.89v-7.213a.891.891 0 00-1.783 0v7.212c0 .492.4.891.891.891z"});return t?m?a.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 18.462c.492 0 .892-.399.892-.891V18.85a.891.891 0 00-1.783 0v7.213c0 .492.4.891.891.891z"}):v:m?r:z},t=function(e){var t=e.isExtraSmall,m=e.isHovered,z=a.createElement("path",{d:"M24.898 21.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 11.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),r=a.createElement("path",{d:"M24.898 19.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 13.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),v=a.createElement("path",{d:"M24.896 21.452v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 11.577a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"});return t?m?a.createElement("path",{d:"M24.896 18.926v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 14.103a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"}):v:m?r:z};export{t as A,e as a};
|
|
2
|
+
//# sourceMappingURL=AlertSignFill-e607ff43.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertSignFill-e607ff43.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +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{g as r}from"./color-acb834c6.js";import{a as l}from"./constants-d919236e.js";import{L as i}from"./Loader-
|
|
2
|
-
//# sourceMappingURL=Button-
|
|
1
|
+
import{_ as t,a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import{_ as n}from"./_tslib-51c8a283.js";import o from"react";import{g as r}from"./color-acb834c6.js";import{a as l}from"./constants-d919236e.js";import{L as i}from"./Loader-6ff0d481.js";import{u as a}from"./useHover-037be19d.js";import{u as s}from"./useWindowSize-73b47451.js";import{b as u}from"./grid-11a70eb7.js";import{c as d}from"./index-9b84fabc.js";import c from"./components/Button/styles.module.scss";var m={primary:"blueberry",warning:"banana",danger:"cherry"};var b=function(t,e){return e&&e<u.md&&t?l.Small:t?l.Medium:l.XSmall},f=o.forwardRef((function(u,f){var v,p,g,_=u.children,h=u.className,w=void 0===h?"":h,j=u.fluid,E=void 0!==j&&j,y=u.intent,N=void 0===y?"primary":y,k=u.inverted,C=void 0!==k&&k,I=u.htmlMarkup,H=void 0===I?"button":I,O=u.onClick,S=u.large,z=void 0!==S&&S,B=u.loading,F=void 0!==B&&B,M=u.variant,x=void 0===M?"fill":M,L=u.disabled,R=void 0!==L&&L,X=u.ellipsis,A=void 0!==X&&X,P=u.testId,W=u.href,q=u.target,D=n(u,["children","className","fluid","intent","inverted","htmlMarkup","onClick","large","loading","variant","disabled","ellipsis","testId","href","target"]),G=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(_)),J=t(G,3),K=J[0],Q=J[1],T=J[2],U=a(f),V=U.hoverRef,Y=U.isHovered,Z=function(t,e,n,o,l){return e?r("neutral",600):t&&!o||!t&&o?"white":r(m[n],l?700:600)}("fill"===x,R,N,C,Y),$=s(),tt="fill"===x,et="outline"===x,nt="borderless"===x,ot="warning"===N,rt="danger"===N,lt=!(!K&&!Q||F),it=Object.assign({},D),at=d(c.button,(e(v={},c["button--fluid"],E),e(v,c["button--large"],z),e(v,c["button--warning"],ot),e(v,c["button--danger"],rt),e(v,c["button--inverted"],C),e(v,c["button--fill"],tt),e(v,c["button--outline"],et),e(v,c["button--borderless"],nt),e(v,c["button--with-icon"],lt),e(v,c["button--ellipsis"],A),v),w),st=d(c.button__content,(e(p={},c["button__content--warning"],ot),e(p,c["button__content--danger"],rt),e(p,c["button__content--fill"],tt),e(p,c["button__content--borderless"],nt),e(p,c["button__content--with-icon"],lt),e(p,c["button__content--large"],z),e(p,c["button__content--ellipsis"],A),e(p,c["button__content--inverted"],C),e(p,c["button__content--fluid"],E),p)),ut=d(c["button__left-fluid-content"],(e(g={},c["button__left-fluid-content--with-icon"],lt),e(g,c["button__left-fluid-content--large"],z),g));function dt(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 ct=function(){return T?o.createElement("span",{className:st},T):null},mt=function(){return o.createElement("span",{className:c["content-wrapper"]},F?o.createElement("div",{className:c["button__left-fluid-content"]},o.createElement(i,{testId:"test-id-loader",color:"fill"!==x||C?m[N]:"white",size:"tiny"})):o.createElement(o.Fragment,null,E?o.createElement("div",{className:ut},dt(K,b(z,$.width),Z,Y),ct()):o.createElement(o.Fragment,null,dt(K,b(z,$.width),Z,Y),ct()),dt(Q,l.XSmall,Z,Y)))};return o.createElement(o.Fragment,null,"button"===H&&o.createElement("button",Object.assign({onClick:O,disabled:R,"data-testid":P,className:at,ref:V},it),mt()),"a"===H&&o.createElement("a",Object.assign({onClick:O,"data-testid":P,className:at,href:W,target:q,ref:V},D),mt()))}));export{f as B};
|
|
2
|
+
//# sourceMappingURL=Button-55952154.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button-55952154.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 o}from"./constants-d919236e.js";import{X as r}from"./X-8d8ff918.js";import s from"./components/Close/styles.module.scss";import{u as a,B as m}from"./useBreakpoint-324a9b14.js";var l=function(l){var n=a()===m.Xs?38:48;return e.createElement("button",{"data-testid":l.testId,className:s.close,"aria-label":l.ariaLabel||"Lukk",onClick:l.onClick,role:"button"},e.createElement(o,{svgIcon:r,color:t.blueberry600,size:n}))};export{l as C};
|
|
2
|
+
//# sourceMappingURL=Close-a6cbd165.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Close-a6cbd165.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import r from"react";import{c as o}from"./index-9b84fabc.js";import a from"./components/FormGroup/styles.module.scss";import{C as t}from"./Checkbox-46666e69.js";import{T as m}from"./Title-
|
|
2
|
-
//# sourceMappingURL=FormGroup-
|
|
1
|
+
import{a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import r from"react";import{c as o}from"./index-9b84fabc.js";import a from"./components/FormGroup/styles.module.scss";import{C as t}from"./Checkbox-46666e69.js";import{T as m}from"./Title-72851d51.js";var l=r.forwardRef((function(l,i){var p,n,s,d=l.className,f=l.mode,c=void 0===f?"on-white":f,g=l.variant,u=void 0===g?"normal":g,_=l.error,v="on-dark"===c,w="bigform"===u,b=o(a["form-group-wrapper"],(e(p={},a["form-group-wrapper--on-dark"],v),e(p,a["form-group-wrapper--invalid"],_),p),d),E=o(a["form-group-wrapper__title"],(e(n={},a["form-group-wrapper__title--on-dark"],v&&!_),e(n,a["form-group-wrapper__title--bigform"],w),n)),N=o(a["form-group"],e({},a["form-group--invalid"],_)),h=o(a["form-group-wrapper__errors"],e({},a["form-group-wrapper__errors--bigform"],w)),k=o(a["field-set__legend"],(e(s={},a["field-set__legend--on-dark"],v&&!_),e(s,a["field-set__legend--bigform"],w),s));return r.createElement("div",{"data-testid":l.testId,className:b},l.title&&r.createElement(m,{className:E,htmlMarkup:"h4",appearance:"title4",margin:{marginTop:0,marginBottom:2}},l.title),r.createElement("div",{className:N},_&&r.createElement("p",{className:h},_),r.createElement("fieldset",{name:l.title,className:a["field-set"]},l.legend&&r.createElement("legend",{className:k},l.legend),r.Children.map(l.children,(function(e){return e.type===t?r.cloneElement(e,{mode:c,variant:u,error:!!_}):e})))))}));export{l as F};
|
|
2
|
+
//# sourceMappingURL=FormGroup-56d60079.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGroup-56d60079.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as r}from"./index-9b84fabc.js";import{u as l}from"./uuid-8870ab4b.js";import o from"./components/Loader/styles.module.scss";var d=a.forwardRef((function(d,t){var s,m,i,c=d.overlay,n=d.color,_=void 0===n?c?"black":"neutral":n,p=d.size,u=void 0===p?"small":p,b=d.className,v=void 0===b?"":b,f=d.testId,w=d.center,N=d.ariaLabelledById,y=d.ariaLabel,E=void 0===y?"Laster inn":y,g="small"===u,h="medium"===u,k="large"===u,L=r(o["loader-wrapper"],(e(s={},o["loader-wrapper--center"],w),e(s,o["loader-wrapper--overlay"],c),s)),j=r(o.loader,(e(m={},o["loader--small"],g),e(m,o["loader--medium"],h),e(m,o["loader--large"],k),m),v),x=r(o.loader__dot,(e(i={},o["loader__dot--small"],g),e(i,o["loader__dot--medium"],h),e(i,o["loader__dot--large"],k),e(i,o["loader__dot--banana"],"banana"===_),e(i,o["loader__dot--cherry"],"cherry"===_),e(i,o["loader__dot--kiwi"],"kiwi"===_),e(i,o["loader__dot--neutral"],"neutral"===_),e(i,o["loader__dot--plum"],"plum"===_),e(i,o["loader__dot--black"],"black"===_),e(i,o["loader__dot--white"],"white"===_),i)),B="loader".concat(l());return a.createElement("div",{role:"progressbar",className:L},a.createElement("div",{"data-testid":f,"aria-labelledby":N||B,className:j},a.createElement("div",{className:x}),a.createElement("div",{className:x}),a.createElement("div",{className:x}),a.createElement("div",{className:x}),!N&&a.createElement("span",{id:B,className:o["loader__hidden-text"]},E)))}));export{d as L};
|
|
2
|
+
//# sourceMappingURL=Loader-6ff0d481.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader-6ff0d481.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import r,{useRef as a,useEffect as n,useState as o}from"react";import{c as l}from"./index-9b84fabc.js";import{p as c}from"./palette-f206f488.js";import{B as i}from"./Button-55952154.js";import{I as s}from"./constants-d919236e.js";import d from"./components/Modal/styles.module.scss";import{A as m,a as u}from"./AlertSignFill-e607ff43.js";import{T as v}from"./Title-72851d51.js";import{u as p}from"./uuid-8870ab4b.js";import{C as f}from"./Close-a6cbd165.js";function _(){var e=a(null);function t(t){var r=e.current,a="Tab"===t.key;if(r&&a){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}}(r),o=null==r?void 0:r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),l=o[0],c=1===o.length?l:o[o.length-1];t.shiftKey?n===l&&(c.focus(),t.preventDefault()):n===c&&(l.focus(),t.preventDefault())}}function r(t){var r=e.current;if(r){var a=r.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===a.length&&(a[0].focus(),t.preventDefault())}}return n((function(){var a=e.current;return a.addEventListener("keydown",t),a.addEventListener("click",r),function(){a.removeEventListener("keydown",t),a.removeEventListener("click",r)}}),[]),e}var E,g,y=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=o(!1),l=e(a,2),c=l[0],i=l[1];return n((function(){var e=new IntersectionObserver((function(e){i(e[0].intersectionRatio>=r)}),{threshold: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){e.normal="normal",e.warning="warning",e.error="error",e.image="image"}(E||(E={})),function(e){e.large="large",e.medium="medium"}(g||(g={}));var h={variant:E.normal,primaryButtonText:"OK",large:!1,className:"",size:g.large},b=function(a){var o,g,h,b=r.useState(0),N=e(b,2),k=N[0],w=N[1],x=r.useState(p()),B=e(x,1)[0],C=r.useRef(null),L=r.useRef(null),W=r.useRef(null),T=y(L),j=r.useRef(null),S=y(j),I=W.current&&W.current.scrollHeight>W.current.clientHeight;function R(e){"Escape"===e.key&&a.onClose&&(e.stopPropagation(),a.onClose())}function P(e){e.target&&D.current===e.target&&a.onClose&&(e.stopPropagation(),a.onClose())}var z=a.variant===E.image,A=null!==(o=a.titleId)&&void 0!==o?o:B,D=r.useRef(null),q=a.secondaryButtonText&&(null===(g=a.secondaryButtonText)||void 0===g?void 0:g.length)>0||a.onSuccess,H=a.ariaLabelledBy?void 0:a.ariaLabel,M=a.ariaLabelledBy?a.ariaLabelledBy:a.ariaLabel?void 0:A;return n((function(){var e,t=D.current;return null===(e=C.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",t&&!q&&(t.addEventListener("keydown",R),t.addEventListener("click",P)),function(){document.body.style.removeProperty("overflow"),t&&!q&&(t.removeEventListener("keydown",R),t.removeEventListener("click",P))}}),[]),r.createElement("div",{"data-testid":"dialog-container"},r.createElement("div",{ref:D,className:d["modal-overlay"],"data-testid":a.testId},r.createElement("div",{className:d.align,ref:_()},r.createElement("div",{className:l(a.className,d.modal,d["modal--".concat(a.variant)],d["modal--".concat(a.size)]),role:"dialog","aria-label":H,"aria-labelledby":M},r.createElement("div",{tabIndex:k,ref:C,onBlur:function(){return w(-1)}}),r.createElement("div",{className:l(d.modal__shadow,d["modal__shadow--top"],t({},d["modal__shadow--show"],!T&&I))}),r.createElement("div",{className:l(d.modal__contentWrapper,t({},d["modal__contentWrapper--image"],z)),ref:W},!a.noCloseButton&&r.createElement("div",{className:d.modal__closeWrapper},r.createElement("div",{className:l(d.modal__closeWrapper__close)},r.createElement(f,{onClick:a.onClose,ariaLabel:a.ariaLabelCloseBtn}))),r.createElement("div",{className:l(d["modal__contentWrapper__scroll--".concat(a.size)],t({},d["modal__contentWrapper__scroll--image"],z))},r.createElement("div",{ref:L}),r.createElement("div",{className:d.modal__contentWrapper__title},a.variant&&function(e){var t;if(e===E.error)t=r.createElement(s,{svgIcon:m,color:c.cherry500,hoverColor:c.cherry500});else{if(e!==E.warning)return null;t=r.createElement(s,{svgIcon:u,color:c.black,hoverColor:c.black})}return r.createElement("div",{className:d.modal__iconWrapper},t)}(a.variant),r.createElement("div",{className:a.variant===E.error?d["modal__title--error"]:""},r.createElement(v,{id:A,htmlMarkup:"h3",appearance:"title3"},a.title))),z&&r.createElement("div",null,r.createElement("div",{className:d.modal__contentWrapper__imageWrapper},a.children),r.createElement("span",{className:d.modal__contentWrapper__imageDescription},a.description)),!z&&a.children&&r.createElement("div",null,a.children),!z&&!a.children&&r.createElement("p",{className:d.modal__description},a.description),r.createElement("div",{ref:j}))),r.createElement("div",{className:l(d.modal__shadow,d["modal__shadow--bottom"],t({},d["modal__shadow--show"],!S&&I))}),q&&r.createElement("div",{className:l(d["modal__call-to-action"],d["modal__call-to-action--".concat(a.size)])},a.onSuccess&&r.createElement(i,{onClick:a.onSuccess},a.primaryButtonText),a.secondaryButtonText&&(null===(h=a.secondaryButtonText)||void 0===h?void 0:h.length)>0&&r.createElement(i,{variant:"borderless",onClick:a.onClose},a.secondaryButtonText))))))};b.defaultProps=h;export{b as M};
|
|
2
|
+
//# sourceMappingURL=Modal-ac3a4757.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal-ac3a4757.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 r}from"./index-9b84fabc.js";import i from"./components/Title/styles.module.scss";var o=e.forwardRef((function(o,a){var l,m=o.id,n=o.children,c=o.className,p=o.htmlMarkup,s=void 0===p?"h1":p,d=o.appearance,f=void 0===d?"title1":d,g=o.margin,u=void 0===g?0:g,y=o.testId,T=r(i.title,(t(l={},i["title--feature"],"titleFeature"===f),t(l,i["title--title1"],"title1"===f),t(l,i["title--title2"],"title2"===f),t(l,i["title--title3"],"title3"===f),t(l,i["title--title4"],"title4"===f),t(l,i["title--title5"],"title5"===f),l),c),b=s,h=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")}(u)?{marginTop:"".concat(u.marginTop,"rem"),marginBottom:"".concat(u.marginBottom,"rem")}:{marginTop:"".concat(u,"rem"),marginBottom:"".concat(u,"rem")};return e.createElement(b,{id:m,className:T,style:h,ref:a,"data-testid":y},n)}));export{o as T};
|
|
2
|
+
//# sourceMappingURL=Title-72851d51.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title-72851d51.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{c as e}from"./index-9b84fabc.js";import{F as a}from"./FormGroup-
|
|
2
|
-
//# sourceMappingURL=Validation-
|
|
1
|
+
import r from"react";import{c as e}from"./index-9b84fabc.js";import{F as a}from"./FormGroup-56d60079.js";import t from"./components/Validation/styles.module.scss";var o=r.forwardRef((function(o,m){var n=o.errorSummary,s=o.className;o.variant;var i=e(t.validation,s);return r.createElement(r.Fragment,null,r.createElement("div",{"data-testid":o.testId,className:i},r.Children.map(o.children,(function(e){return e.type===a?r.cloneElement(e,{className:n?t["form-group-wrapper--error-sibling"]:""}):e}))),n&&r.createElement("p",{className:t.validation__errors},n))}));export{o as V};
|
|
2
|
+
//# sourceMappingURL=Validation-372a97b9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Validation-372a97b9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/X-8d8ff918.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";var l=function(l){var t=l.isExtraSmall,r=l.isHovered,a=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"}),L=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"}),m=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 t?r?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"}):m:r?L:a};export{l as X};
|
|
2
|
+
//# sourceMappingURL=X-8d8ff918.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"X-8d8ff918.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -11,6 +11,8 @@ interface AnchorLinkProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
/** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */
|
|
13
13
|
target?: AnchorLinkTargets;
|
|
14
|
+
/** Sets the data-testid attribute. */
|
|
15
|
+
testId?: string;
|
|
14
16
|
}
|
|
15
17
|
declare const AnchorLink: React.ForwardRefExoticComponent<AnchorLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
16
18
|
export default AnchorLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorLink.d.ts","sourceRoot":"","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,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;
|
|
1
|
+
{"version":3,"file":"AnchorLink.d.ts","sourceRoot":"","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,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,2FAqBd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -109,6 +109,25 @@
|
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
}
|
|
112
|
+
},
|
|
113
|
+
"testId": {
|
|
114
|
+
"defaultValue": null,
|
|
115
|
+
"description": "Sets the data-testid attribute.",
|
|
116
|
+
"name": "testId",
|
|
117
|
+
"parent": {
|
|
118
|
+
"fileName": "src/components/AnchorLink/AnchorLink.tsx",
|
|
119
|
+
"name": "AnchorLinkProps"
|
|
120
|
+
},
|
|
121
|
+
"declarations": [
|
|
122
|
+
{
|
|
123
|
+
"fileName": "src/components/AnchorLink/AnchorLink.tsx",
|
|
124
|
+
"name": "AnchorLinkProps"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"required": false,
|
|
128
|
+
"type": {
|
|
129
|
+
"name": "string"
|
|
130
|
+
}
|
|
112
131
|
}
|
|
113
132
|
}
|
|
114
133
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{I as r,a as t}from"../../constants-d919236e.js";import{g as a}from"../../color-acb834c6.js";import{u as o}from"../../useHover-037be19d.js";import l from"./styles.module.scss";import{c as s}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 i=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"}),l=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"}),s=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"}):s:a?l:o},m=e.forwardRef((function(m,c){var n=m.id,d=m.href,v=m.children,f=m.className,p=m.target,h=void 0===p?"_self":p,b="_blank"===h,
|
|
1
|
+
import e from"react";import{I as r,a as t}from"../../constants-d919236e.js";import{g as a}from"../../color-acb834c6.js";import{u as o}from"../../useHover-037be19d.js";import l from"./styles.module.scss";import{c as s}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 i=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"}),l=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"}),s=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"}):s:a?l:o},m=e.forwardRef((function(m,c){var n=m.id,d=m.href,v=m.children,f=m.className,p=m.target,h=void 0===p?"_self":p,b=m.testId,u="_blank"===h,j=o(c,void 0,!1),E=j.hoverRef,g=j.isHovered,_=s(l.anchorlink,null!=f?f:"");return e.createElement("a",{id:n,href:d,className:_,target:h,ref:E,"data-testid":b},v,u&&e.createElement(r,{className:l.anchorlink__icon,svgIcon:i,color:a("blueberry",600),hoverColor:a("blueberry",700),size:t.XSmall,isHovered:g}))}));export default m;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,6 +8,8 @@ interface AvatarProps {
|
|
|
8
8
|
variant?: 'normal' | 'black';
|
|
9
9
|
/** Adds custom classes to the element. */
|
|
10
10
|
className?: string;
|
|
11
|
+
/** Sets the data-testid attribute. */
|
|
12
|
+
testId?: string;
|
|
11
13
|
}
|
|
12
14
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;
|
|
13
15
|
export default Avatar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,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;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,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,iFAgBV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -87,6 +87,25 @@
|
|
|
87
87
|
"type": {
|
|
88
88
|
"name": "string"
|
|
89
89
|
}
|
|
90
|
+
},
|
|
91
|
+
"testId": {
|
|
92
|
+
"defaultValue": null,
|
|
93
|
+
"description": "Sets the data-testid attribute.",
|
|
94
|
+
"name": "testId",
|
|
95
|
+
"parent": {
|
|
96
|
+
"fileName": "src/components/Avatar/Avatar.tsx",
|
|
97
|
+
"name": "AvatarProps"
|
|
98
|
+
},
|
|
99
|
+
"declarations": [
|
|
100
|
+
{
|
|
101
|
+
"fileName": "src/components/Avatar/Avatar.tsx",
|
|
102
|
+
"name": "AvatarProps"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"required": false,
|
|
106
|
+
"type": {
|
|
107
|
+
"name": "string"
|
|
108
|
+
}
|
|
90
109
|
}
|
|
91
110
|
}
|
|
92
111
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import a from"react";import{I as e,a as r}from"../../constants-d919236e.js";import{C as t}from"../../Check-6291ad09.js";import{c as s}from"../../index-9b84fabc.js";import o from"./styles.module.scss";import{p as c}from"../../palette-f206f488.js";import"../../_tslib-51c8a283.js";var l=a.forwardRef((function(l,m){var i=l.children,
|
|
1
|
+
import a from"react";import{I as e,a as r}from"../../constants-d919236e.js";import{C as t}from"../../Check-6291ad09.js";import{c as s}from"../../index-9b84fabc.js";import o from"./styles.module.scss";import{p as c}from"../../palette-f206f488.js";import"../../_tslib-51c8a283.js";var l=a.forwardRef((function(l,m){var i=l.children,d=l.className,n=void 0===d?"":d,f=l.selected,p=void 0!==f&&f,v=l.variant,b=void 0===v?"normal":v,u=l.testId,j=i.charAt(0).toLocaleUpperCase()+i.substring(1,2);return a.createElement("span",{className:s(o.avatar,p&&o["avatar--selected"],"black"===b&&o["avatar--black"],n),ref:m,"data-testid":u},p?a.createElement(e,{svgIcon:t,size:r.Small,color:"black"===b?c.neutral900:c.blueberry600}):j)}));export default l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,6 +9,8 @@ interface BadgeProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
/** Changes the badge background color. */
|
|
11
11
|
color?: BadgeColors;
|
|
12
|
+
/** Sets the data-testid attribute. */
|
|
13
|
+
testId?: string;
|
|
12
14
|
}
|
|
13
15
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;
|
|
14
16
|
export default Badge;
|
|
@@ -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;AAInD,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;
|
|
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;AAInD,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"}
|
|
@@ -86,6 +86,25 @@
|
|
|
86
86
|
}
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
|
+
},
|
|
90
|
+
"testId": {
|
|
91
|
+
"defaultValue": null,
|
|
92
|
+
"description": "Sets the data-testid attribute.",
|
|
93
|
+
"name": "testId",
|
|
94
|
+
"parent": {
|
|
95
|
+
"fileName": "src/components/Badge/Badge.tsx",
|
|
96
|
+
"name": "BadgeProps"
|
|
97
|
+
},
|
|
98
|
+
"declarations": [
|
|
99
|
+
{
|
|
100
|
+
"fileName": "src/components/Badge/Badge.tsx",
|
|
101
|
+
"name": "BadgeProps"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"required": false,
|
|
105
|
+
"type": {
|
|
106
|
+
"name": "string"
|
|
107
|
+
}
|
|
89
108
|
}
|
|
90
109
|
}
|
|
91
110
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as r}from"../../index-9b84fabc.js";import
|
|
1
|
+
import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as r}from"../../index-9b84fabc.js";import t from"./styles.module.scss";var l=a.forwardRef((function(l,b){var d,i=l.children,o=l.className,s=void 0===o?"":o,n=l.color,c=void 0===n?"black":n,m=l.testId,g=i.toString().length>2,u=r(t.badge,(e(d={},t["badge--oversized"],g),e(d,t["badge--black"],"black"===c),e(d,t["badge--white"],"white"===c),e(d,t["badge--blueberry"],"blueberry"===c),e(d,t["badge--banana"],"banana"===c),e(d,t["badge--cherry"],"cherry"===c),e(d,t["badge--kiwi"],"kiwi"===c),e(d,t["badge--neutral"],"neutral"===c),e(d,t["badge--plum"],"plum"===c),d),s);return a.createElement("span",{className:u,ref:b,"data-testid":m},i)}));export default l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as s}from"../../Button-
|
|
1
|
+
import{B as s}from"../../Button-55952154.js";export{B as default}from"../../Button-55952154.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../../_tslib-51c8a283.js";import"react";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../../constants-d919236e.js";import"../../Loader-6ff0d481.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
|
|
@@ -3,6 +3,8 @@ import { ModalProps } from '../Modal/Modal';
|
|
|
3
3
|
interface ModalWithButtonProps extends ModalProps {
|
|
4
4
|
/** Text of the button */
|
|
5
5
|
buttonText: string;
|
|
6
|
+
/** Sets the data-testid attribute. */
|
|
7
|
+
testId?: string;
|
|
6
8
|
}
|
|
7
9
|
declare const ModalWithButton: React.ForwardRefExoticComponent<ModalWithButtonProps & React.RefAttributes<HTMLElement>>;
|
|
8
10
|
export default ModalWithButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonWithModal.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonWithModal/ButtonWithModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEnD,UAAU,oBAAqB,SAAQ,UAAU;IAC/C,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonWithModal.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonWithModal/ButtonWithModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEnD,UAAU,oBAAqB,SAAQ,UAAU;IAC/C,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,eAAe,0FASnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -19,6 +19,25 @@
|
|
|
19
19
|
"name": "string"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
"testId": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"description": "Sets the data-testid attribute.",
|
|
25
|
+
"name": "testId",
|
|
26
|
+
"parent": {
|
|
27
|
+
"fileName": "designsystem/src/components/ButtonWithModal/ButtonWithModal.tsx",
|
|
28
|
+
"name": "ModalWithButtonProps"
|
|
29
|
+
},
|
|
30
|
+
"declarations": [
|
|
31
|
+
{
|
|
32
|
+
"fileName": "designsystem/src/components/ButtonWithModal/ButtonWithModal.tsx",
|
|
33
|
+
"name": "ModalWithButtonProps"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"required": false,
|
|
37
|
+
"type": {
|
|
38
|
+
"name": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
22
41
|
"title": {
|
|
23
42
|
"defaultValue": null,
|
|
24
43
|
"description": "Title of the modal",
|
|
@@ -163,25 +182,6 @@
|
|
|
163
182
|
"name": "boolean"
|
|
164
183
|
}
|
|
165
184
|
},
|
|
166
|
-
"testId": {
|
|
167
|
-
"defaultValue": null,
|
|
168
|
-
"description": "Sets the data-testid attribute.",
|
|
169
|
-
"name": "testId",
|
|
170
|
-
"parent": {
|
|
171
|
-
"fileName": "designsystem/src/components/Modal/Modal.tsx",
|
|
172
|
-
"name": "ModalProps"
|
|
173
|
-
},
|
|
174
|
-
"declarations": [
|
|
175
|
-
{
|
|
176
|
-
"fileName": "designsystem/src/components/Modal/Modal.tsx",
|
|
177
|
-
"name": "ModalProps"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"required": false,
|
|
181
|
-
"type": {
|
|
182
|
-
"name": "string"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
185
|
"primaryButtonText": {
|
|
186
186
|
"defaultValue": null,
|
|
187
187
|
"description": "Primary button text",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import
|
|
1
|
+
import{_ as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import s,{useState as e}from"react";import{B as o}from"../../Button-55952154.js";import{M as r}from"../../Modal-ac3a4757.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../../constants-d919236e.js";import"../../Loader-6ff0d481.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-72851d51.js";import"../Title/styles.module.scss";import"../../Close-a6cbd165.js";import"../../X-8d8ff918.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";var i=s.forwardRef((function(i,m){var l=e(!1),a=t(l,2),p=a[0],d=a[1];return s.createElement("div",{"data-testid":i.testId},s.createElement(o,{onClick:function(){return d(!0)}},i.buttonText),p&&s.createElement(r,Object.assign({},i,{onClose:function(){return d(!1)}})))}));export default i;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CloseProps {
|
|
3
|
+
/** Function is called when user clicks the button */
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
/** Sets the aria-label of the button */
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
/** Sets the data-testid attribute. */
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Close: (props: CloseProps) => JSX.Element;
|
|
11
|
+
export default Close;
|
|
12
|
+
//# sourceMappingURL=Close.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Close.d.ts","sourceRoot":"","sources":["../../../src/components/Close/Close.tsx"],"names":[],"mappings":";AAOA,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,oCAgBV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"onClick": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Function is called when user clicks the button",
|
|
6
|
+
"name": "onClick",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "designsystem/src/components/Close/Close.tsx",
|
|
9
|
+
"name": "CloseProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "designsystem/src/components/Close/Close.tsx",
|
|
14
|
+
"name": "CloseProps"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": {
|
|
19
|
+
"name": "(() => void)"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"ariaLabel": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"description": "Sets the aria-label of the button",
|
|
25
|
+
"name": "ariaLabel",
|
|
26
|
+
"parent": {
|
|
27
|
+
"fileName": "designsystem/src/components/Close/Close.tsx",
|
|
28
|
+
"name": "CloseProps"
|
|
29
|
+
},
|
|
30
|
+
"declarations": [
|
|
31
|
+
{
|
|
32
|
+
"fileName": "designsystem/src/components/Close/Close.tsx",
|
|
33
|
+
"name": "CloseProps"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"required": false,
|
|
37
|
+
"type": {
|
|
38
|
+
"name": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"testId": {
|
|
42
|
+
"defaultValue": null,
|
|
43
|
+
"description": "Sets the data-testid attribute.",
|
|
44
|
+
"name": "testId",
|
|
45
|
+
"parent": {
|
|
46
|
+
"fileName": "designsystem/src/components/Close/Close.tsx",
|
|
47
|
+
"name": "CloseProps"
|
|
48
|
+
},
|
|
49
|
+
"declarations": [
|
|
50
|
+
{
|
|
51
|
+
"fileName": "designsystem/src/components/Close/Close.tsx",
|
|
52
|
+
"name": "CloseProps"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"required": false,
|
|
56
|
+
"type": {
|
|
57
|
+
"name": "string"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Close/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as s}from"../../Close-a6cbd165.js";export{C as default}from"../../Close-a6cbd165.js";import"react";import"../../palette-f206f488.js";import"../../constants-d919236e.js";import"../../_tslib-51c8a283.js";import"../../X-8d8ff918.js";import"./styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_palette.scss';
|
|
3
|
+
@import '../../scss/_breakpoints.scss';
|
|
4
|
+
|
|
5
|
+
.close {
|
|
6
|
+
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
7
|
+
height: 2.375rem;
|
|
8
|
+
width: 2.375rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
height: 3rem;
|
|
12
|
+
width: 3rem;
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: 0;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
&:hover,
|
|
19
|
+
&:active {
|
|
20
|
+
background-color: rgba(88, 170, 187, 0.1);
|
|
21
|
+
}
|
|
22
|
+
&:focus {
|
|
23
|
+
box-shadow: 0px 0px 0px 2px $black;
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border-radius: 0;
|
|
26
|
+
border: 0;
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
&:hover#{&}:hover{
|
|
30
|
+
background-color: rgba(88, 170, 187, 0.1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -24,6 +24,8 @@ interface ExpanderListProps {
|
|
|
24
24
|
isOpen?: boolean;
|
|
25
25
|
/** Toggles the top border of the first child element. */
|
|
26
26
|
topBorder?: boolean;
|
|
27
|
+
/** Sets the data-testid attribute. */
|
|
28
|
+
testId?: string;
|
|
27
29
|
}
|
|
28
30
|
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
29
31
|
declare type ExpanderProps = Modify<React.HTMLAttributes<HTMLButtonElement>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpanderList.d.ts","sourceRoot":"","sources":["../../../src/components/ExpanderList/ExpanderList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYnD,oBAAY,kBAAkB,GAAG,YAAY,CAAC;AAC9C,oBAAY,YAAY,GAAG,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AAE/G,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACtI,QAAQ,EAAE,YAAY,CAAC;CACxB;AAMD,UAAU,iBAAiB;IACzB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpanderList.d.ts","sourceRoot":"","sources":["../../../src/components/ExpanderList/ExpanderList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYnD,oBAAY,kBAAkB,GAAG,YAAY,CAAC;AAC9C,oBAAY,YAAY,GAAG,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AAE/G,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACtI,QAAQ,EAAE,YAAY,CAAC;CACxB;AAMD,UAAU,iBAAiB;IACzB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wCAAwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,aAAK,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAEzC,aAAK,aAAa,GAAG,MAAM,CACzB,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EACvC;IACE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAClF,CACF,CAAC;AAiDF,eAAO,MAAM,YAAY,sBAoEC,CAAC;AAK3B,eAAe,YAAY,CAAC"}
|
|
@@ -200,6 +200,25 @@
|
|
|
200
200
|
"type": {
|
|
201
201
|
"name": "boolean"
|
|
202
202
|
}
|
|
203
|
+
},
|
|
204
|
+
"testId": {
|
|
205
|
+
"defaultValue": null,
|
|
206
|
+
"description": "Sets the data-testid attribute.",
|
|
207
|
+
"name": "testId",
|
|
208
|
+
"parent": {
|
|
209
|
+
"fileName": "src/components/ExpanderList/ExpanderList.tsx",
|
|
210
|
+
"name": "ExpanderListProps"
|
|
211
|
+
},
|
|
212
|
+
"declarations": [
|
|
213
|
+
{
|
|
214
|
+
"fileName": "src/components/ExpanderList/ExpanderList.tsx",
|
|
215
|
+
"name": "ExpanderListProps"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"required": false,
|
|
219
|
+
"type": {
|
|
220
|
+
"name": "string"
|
|
221
|
+
}
|
|
203
222
|
}
|
|
204
223
|
}
|
|
205
224
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import n,{useState as a,useEffect as r}from"react";import{a as i,I as l}from"../../constants-d919236e.js";import{u as
|
|
1
|
+
import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import n,{useState as a,useEffect as r}from"react";import{a as i,I as l}from"../../constants-d919236e.js";import{u as d}from"../../useHover-037be19d.js";import{u as o,B as s}from"../../useBreakpoint-324a9b14.js";import{c}from"../../index-9b84fabc.js";import m from"./styles.module.scss";import"../../_tslib-51c8a283.js";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";var p=function(e){var t=e.isExtraSmall,a=e.isHovered,r=n.createElement("path",{d:"M15.049 30.277l-1.419-1.409 10.371-10.451L34.37 28.868l-1.419 1.409L24 21.257z"}),i=n.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=n.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 t?a?n.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:a?i:r},u=function(e){var t=e.isExtraSmall,a=e.isHovered,r=n.createElement("path",{d:"M32.951 18.788l1.419 1.409-10.371 10.451L13.63 20.197l1.419-1.409L24 27.809z"}),i=n.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=n.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 t?a?n.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:a?i:r},f=n.forwardRef((function(e,a){var r,f=e.id,v=e.children,x=e.padding,E=void 0===x||x,h=e.color,g=void 0===h?"neutral":h,_=e.className,b=void 0===_?"":_,L=e.icon,k=e.large,j=void 0!==k&&k,z=e.title,N=e.isExpanded,H=void 0!==N&&N,w=e.testId,M=e.handleExpanderClick,B=d(),C=B.hoverRef,S=B.isHovered,I=o(),O=c(m["expander-list-link"],m["expander-list-link--".concat(g)],(t(r={},m["expander-list-link--closed"],!H),t(r,m["expander-list-link--large"],j),r)),V=c(m["expander-list-link__main-content"],E?m["expander-list-link__main-content--padding"]:"");return n.createElement("li",{className:b,ref:a},n.createElement("button",{id:f,onClick:M,"data-testid":w,className:O,ref:C},L&&n.createElement("span",{className:m["expander-list-link__icon"]},n.cloneElement(L,{size:I===s.Xs?i.XSmall:i.Small,isHovered:S})),n.createElement("span",{className:m["expander-list-link__title"]},z),n.createElement("span",{className:m["expander-list-link__chevron"]},n.createElement(l,{size:i.XSmall,svgIcon:H?p:u,isHovered:S}))),H?n.createElement("div",{className:V},v):null)})),v=n.forwardRef((function(i,l){var d=i.children,o=i.childPadding,s=void 0===o||o,p=i.large,u=i.isOpen,v=void 0!==u&&u,x=i.color,E=i.className,h=void 0===E?"":E,g=i.accordion,_=void 0!==g&&g,b=i.topBorder,L=void 0===b||b,k=i.bottomBorder,j=void 0===k||k,z=i.testId,N=a({}),H=e(N,2),w=H[0],M=H[1],B=a(),C=e(B,2),S=C[0],I=C[1],O=n.Children.count(d),V=c(m["expander-list"],h);return r((function(){var e,t,n,a,r;!_||!S||(e=S.getBoundingClientRect(),t=e.top,n=e.left,a=e.bottom,r=e.right,t>=0&&n>=0&&a<=(window.innerHeight||document.documentElement.clientHeight)&&r<=(window.innerWidth||document.documentElement.clientWidth))||S.scrollIntoView()}),[_,S]),r((function(){if(v){var e="expander-0";M((function(n){return _?t({},e,!n[e]):Object.assign(Object.assign({},n),t({},e,!n[e]))}))}}),[v]),n.createElement("ul",{className:V,ref:l,"data-testid":z},n.Children.map(d,(function(e,a){if(e.type===f){var r=w["expander-".concat(a)],i=function(e){var n;return c(m["expander-list__item"],(t(n={},m["expander-list__item--top"],0===e&&L),t(n,m["expander-list__item--no-bottom"],e===O-1&&!j),n))}(a);return n.cloneElement(e,{id:"expander-".concat(a),key:"expander-".concat(a),isExpanded:r,padding:s,color:x,large:p,"aria-expanded":r,className:i,handleExpanderClick:function(e){return function(e,n){M((function(e){return _?t({},n,!e[n]):Object.assign(Object.assign({},e),t({},n,!e[n]))})),I(e.currentTarget)}(e,"expander-".concat(a))}})}return e})))}));v.Expander=f,f.displayName="ExpanderList.Expander";export default v;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|