@helsenorge/designsystem-react 1.0.0-beta86 → 1.0.0-beta90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/AlertSignFill-e607ff43.js +2 -0
  2. package/AlertSignFill-e607ff43.js.map +1 -0
  3. package/{Button-3f327b66.js → Button-48132cc3.js} +2 -2
  4. package/Button-48132cc3.js.map +1 -0
  5. package/Close-591125bb.js +2 -0
  6. package/Close-591125bb.js.map +1 -0
  7. package/{FormGroup-b874ae21.js → FormGroup-56d60079.js} +2 -2
  8. package/FormGroup-56d60079.js.map +1 -0
  9. package/Loader-6ff0d481.js +2 -0
  10. package/Loader-6ff0d481.js.map +1 -0
  11. package/Modal-145869ba.js +2 -0
  12. package/Modal-145869ba.js.map +1 -0
  13. package/Title-72851d51.js +2 -0
  14. package/Title-72851d51.js.map +1 -0
  15. package/{Validation-b902407e.js → Validation-372a97b9.js} +2 -2
  16. package/Validation-372a97b9.js.map +1 -0
  17. package/components/AnchorLink/AnchorLink.d.ts +2 -0
  18. package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
  19. package/components/AnchorLink/componentdata.json +19 -0
  20. package/components/AnchorLink/index.js +1 -1
  21. package/components/Avatar/Avatar.d.ts +2 -0
  22. package/components/Avatar/Avatar.d.ts.map +1 -1
  23. package/components/Avatar/componentdata.json +19 -0
  24. package/components/Avatar/index.js +1 -1
  25. package/components/Badge/Badge.d.ts +2 -0
  26. package/components/Badge/Badge.d.ts.map +1 -1
  27. package/components/Badge/componentdata.json +19 -0
  28. package/components/Badge/index.js +1 -1
  29. package/components/Button/Button.d.ts.map +1 -1
  30. package/components/Button/index.js +1 -1
  31. package/components/ButtonWithModal/ButtonWithModal.d.ts +2 -0
  32. package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
  33. package/components/ButtonWithModal/componentdata.json +50 -9
  34. package/components/ButtonWithModal/index.js +1 -1
  35. package/components/Close/Close.d.ts +12 -0
  36. package/components/Close/Close.d.ts.map +1 -0
  37. package/components/Close/componentdata.json +61 -0
  38. package/components/Close/index.d.ts +3 -0
  39. package/components/Close/index.d.ts.map +1 -0
  40. package/components/Close/index.js +2 -0
  41. package/components/Close/index.js.map +1 -0
  42. package/components/Close/styles.module.scss +32 -0
  43. package/components/Close/styles.module.scss.d.ts +9 -0
  44. package/components/ExpanderList/ExpanderList.d.ts +2 -0
  45. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  46. package/components/ExpanderList/componentdata.json +19 -0
  47. package/components/ExpanderList/index.js +1 -1
  48. package/components/FormExample/index.js +1 -1
  49. package/components/FormGroup/index.js +1 -1
  50. package/components/LinkList/LinkList.d.ts +6 -0
  51. package/components/LinkList/LinkList.d.ts.map +1 -1
  52. package/components/LinkList/componentdata.json +19 -0
  53. package/components/LinkList/index.js +1 -1
  54. package/components/List/List.d.ts +2 -0
  55. package/components/List/List.d.ts.map +1 -1
  56. package/components/List/componentdata.json +19 -0
  57. package/components/List/index.js +1 -1
  58. package/components/Loader/index.js +1 -1
  59. package/components/Logo/Logo.d.ts +2 -0
  60. package/components/Logo/Logo.d.ts.map +1 -1
  61. package/components/Logo/componentdata.json +19 -0
  62. package/components/Logo/index.js +1 -1
  63. package/components/Modal/Modal.d.ts +5 -0
  64. package/components/Modal/Modal.d.ts.map +1 -1
  65. package/components/Modal/componentdata.json +42 -1
  66. package/components/Modal/index.js +1 -1
  67. package/components/Modal/styles.module.scss +14 -23
  68. package/components/Modal/styles.module.scss.d.ts +3 -1
  69. package/components/NotificationPanel/NotificationPanel.d.ts +2 -0
  70. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  71. package/components/NotificationPanel/componentdata.json +19 -0
  72. package/components/NotificationPanel/index.js +1 -1
  73. package/components/NotificationPanel/styles.module.scss +0 -51
  74. package/components/NotificationPanel/styles.module.scss.d.ts +0 -2
  75. package/components/Slider/Slider.d.ts +2 -0
  76. package/components/Slider/Slider.d.ts.map +1 -1
  77. package/components/Slider/componentdata.json +19 -0
  78. package/components/Slider/index.js +1 -1
  79. package/components/Spacer/Spacer.d.ts +2 -0
  80. package/components/Spacer/Spacer.d.ts.map +1 -1
  81. package/components/Spacer/componentdata.json +19 -0
  82. package/components/Spacer/index.js +1 -1
  83. package/components/Tile/Tile.d.ts +2 -0
  84. package/components/Tile/Tile.d.ts.map +1 -1
  85. package/components/Tile/componentdata.json +19 -0
  86. package/components/Tile/index.js +1 -1
  87. package/components/Title/Title.d.ts +2 -0
  88. package/components/Title/Title.d.ts.map +1 -1
  89. package/components/Title/index.js +1 -1
  90. package/components/Validation/index.js +1 -1
  91. package/hooks/useFocusTrap.d.ts.map +1 -1
  92. package/package.json +1 -1
  93. package/AlertSignFill-64bfef57.js +0 -2
  94. package/AlertSignFill-64bfef57.js.map +0 -1
  95. package/Button-3f327b66.js.map +0 -1
  96. package/FormGroup-b874ae21.js.map +0 -1
  97. package/Loader-cf365332.js +0 -2
  98. package/Loader-cf365332.js.map +0 -1
  99. package/Modal-3dc1bb47.js +0 -2
  100. package/Modal-3dc1bb47.js.map +0 -1
  101. package/Title-7c829525.js +0 -2
  102. package/Title-7c829525.js.map +0 -1
  103. 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-cf365332.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-3f327b66.js.map
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,k=u.intent,y=void 0===k?"primary":k,N=u.inverted,C=void 0!==N&&N,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(g)),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,y,C,Y),$=s(),tt="fill"===x,et="outline"===x,nt="borderless"===x,ot="warning"===y,rt="danger"===y,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(_={},c["button__left-fluid-content--with-icon"],lt),e(_,c["button__left-fluid-content--large"],z),_));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[y]:"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,rel:"_blank"===q?"noopener noreferrer":u.rel,ref:V},D),mt()))}));export{f as B};
2
+ //# sourceMappingURL=Button-48132cc3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button-48132cc3.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"./constants-d919236e.js";import l from"./components/Close/styles.module.scss";import{u as r,B as o}from"./useBreakpoint-324a9b14.js";var s=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},n=function(n){var m=r()===o.Xs?38:48;return e.createElement("button",{"data-testid":n.testId,className:l.close,"aria-label":n.ariaLabel||"Lukk",onClick:n.onClick,role:"button"},e.createElement(a,{svgIcon:s,color:t.blueberry600,size:m}))};export{n as C};
2
+ //# sourceMappingURL=Close-591125bb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Close-591125bb.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-7c829525.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-b874ae21.js.map
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 a,{useRef as r,useEffect as n,useState as l}from"react";import{c as o}from"./index-9b84fabc.js";import{p as c}from"./palette-f206f488.js";import{B as i}from"./Button-48132cc3.js";import{a as s,I as m}from"./constants-d919236e.js";import d from"./components/Modal/styles.module.scss";import{A as u,a as v}from"./AlertSignFill-e607ff43.js";import{T as p}from"./Title-72851d51.js";import{u as f}from"./uuid-8870ab4b.js";import{C as _}from"./Close-591125bb.js";function E(){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],c=1===l.length?o:l[l.length-1];t.shiftKey?n===o&&(c.focus(),t.preventDefault()):n===c&&(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,h,y=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=l(!1),o=e(r,2),c=o[0],i=o[1];return n((function(){var e=new IntersectionObserver((function(e){i(e[0].intersectionRatio>=a)}),{threshold:a});return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t]),c},b=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(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"}(h||(h={}));var N={variant:g.normal,primaryButtonText:"OK",large:!1,className:"",size:h.large},w=function(e,t){var r=function(e){return e===g.error?a.createElement(m,{size:s.Small,svgIcon:u,color:c.cherry500}):e===g.warning?a.createElement(m,{size:s.Small,svgIcon:v,color:c.black}):e===g.success?a.createElement(m,{size:s.Small,svgIcon:b,color:c.kiwi900}):null}(e);return r?a.createElement("div",{className:d.modal__iconWrapper},r):t?a.createElement("div",{className:d.modal__iconWrapper},a.cloneElement(t,{size:s.Small})):null},k=function(r){var l,c,s,m,u=a.useState(0),v=e(u,2),h=v[0],b=v[1],N=a.useState(f()),k=e(N,1)[0],x=a.useRef(null),B=a.useRef(null),C=a.useRef(null),L=y(B),S=a.useRef(null),T=y(S),z=C.current&&C.current.scrollHeight>C.current.clientHeight;function W(e){"Escape"===e.key&&r.onClose&&(e.stopPropagation(),r.onClose())}function j(e){e.target&&P.current===e.target&&r.onClose&&(e.stopPropagation(),r.onClose())}var I=r.variant===g.image,R=null!==(c=r.titleId)&&void 0!==c?c:k,P=a.useRef(null),A=r.secondaryButtonText&&(null===(s=r.secondaryButtonText)||void 0===s?void 0:s.length)>0||r.onSuccess,D=r.ariaLabelledBy?void 0:r.ariaLabel,H=r.ariaLabelledBy?r.ariaLabelledBy:r.ariaLabel?void 0:R;n((function(){var e,t=P.current;return null===(e=x.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",t&&!A&&(t.addEventListener("keydown",W),t.addEventListener("click",j)),function(){document.body.style.removeProperty("overflow"),t&&!A&&(t.removeEventListener("keydown",W),t.removeEventListener("click",j))}}),[]);var M=o((t(l={},d["modal__title--error"],r.variant===g.error),t(l,d["modal__title--success"],r.variant===g.success),l));return a.createElement("div",{"data-testid":"dialog-container"},a.createElement("div",{ref:P,className:d["modal-overlay"],"data-testid":r.testId},a.createElement("div",{className:d.align,ref:E()},a.createElement("div",{className:o(r.className,d.modal,d["modal--".concat(r.variant)],d["modal--".concat(r.size)]),role:"dialog","aria-label":D,"aria-labelledby":H},a.createElement("div",{tabIndex:h,ref:x,onBlur:function(){return b(-1)}}),a.createElement("div",{className:o(d.modal__shadow,d["modal__shadow--top"],t({},d["modal__shadow--show"],!L&&z))}),a.createElement("div",{className:o(d.modal__contentWrapper,t({},d["modal__contentWrapper--image"],I)),ref:C},!r.noCloseButton&&a.createElement("div",{className:d.modal__closeWrapper},a.createElement("div",{className:o(d.modal__closeWrapper__close)},a.createElement(_,{onClick:r.onClose,ariaLabel:r.ariaLabelCloseBtn}))),a.createElement("div",{className:o(d["modal__contentWrapper__scroll--".concat(r.size)],t({},d["modal__contentWrapper__scroll--image"],I))},a.createElement("div",{ref:B}),a.createElement("div",{className:d.modal__contentWrapper__title},w(r.variant,r.icon),a.createElement(p,{id:R,htmlMarkup:"h3",appearance:"title3",className:M},r.title),r.afterTitleChildren&&a.createElement("div",{className:d.modal__afterTitleChildren},r.afterTitleChildren)),I&&a.createElement("div",null,a.createElement("div",{className:d.modal__contentWrapper__imageWrapper},r.children),a.createElement("span",{className:d.modal__contentWrapper__imageDescription},r.description)),!I&&r.children&&a.createElement("div",null,r.children),!I&&!r.children&&a.createElement("p",{className:d.modal__description},r.description),a.createElement("div",{ref:S}))),a.createElement("div",{className:o(d.modal__shadow,d["modal__shadow--bottom"],t({},d["modal__shadow--show"],!T&&z))}),A&&a.createElement("div",{className:o(d["modal__call-to-action"],d["modal__call-to-action--".concat(r.size)])},r.onSuccess&&a.createElement(i,{onClick:r.onSuccess},r.primaryButtonText),r.secondaryButtonText&&(null===(m=r.secondaryButtonText)||void 0===m?void 0:m.length)>0&&a.createElement(i,{variant:"borderless",onClick:r.onClose},r.secondaryButtonText))))))};k.defaultProps=N;export{k as M};
2
+ //# sourceMappingURL=Modal-145869ba.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal-145869ba.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-b874ae21.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-b902407e.js.map
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":""}
@@ -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;CAC5B;AAED,QAAA,MAAM,UAAU,2FAqBd,CAAC;AAEH,eAAe,UAAU,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,2FA6Bd,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,u=o(c,void 0,!1),j=u.hoverRef,E=u.isHovered,g=s(l.anchorlink,null!=f?f:"");return e.createElement("a",{id:n,href:d,className:g,target:h,ref:j},v,b&&e.createElement(r,{className:l.anchorlink__icon,svgIcon:i,color:a("blueberry",600),hoverColor:a("blueberry",700),size:t.XSmall,isHovered:E}))}));export default m;
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,n){var c=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(n,void 0,!1),E=j.hoverRef,g=j.isHovered,_=s(l.anchorlink,null!=f?f:"");return e.createElement("a",{id:c,href:d,className:_,target:h,rel:u?"noopener noreferrer":void 0,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;CACpB;AAED,QAAA,MAAM,MAAM,iFAeV,CAAC;AAEH,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,n=l.className,f=void 0===n?"":n,p=l.selected,d=void 0!==p&&p,v=l.variant,b=void 0===v?"normal":v,u=i.charAt(0).toLocaleUpperCase()+i.substring(1,2);return a.createElement("span",{className:s(o.avatar,d&&o["avatar--selected"],"black"===b&&o["avatar--black"],f),ref:m},d?a.createElement(e,{svgIcon:t,size:r.Small,color:"black"===b?c.neutral900:c.blueberry600}):u)}));export default l;
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;CACrB;AAED,QAAA,MAAM,KAAK,gFAwBT,CAAC;AAEH,eAAe,KAAK,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 l from"./styles.module.scss";var b=a.forwardRef((function(b,d){var o,t=b.children,i=b.className,n=void 0===i?"":i,s=b.color,c=void 0===s?"black":s,m=t.toString().length>2,g=r(l.badge,(e(o={},l["badge--oversized"],m),e(o,l["badge--black"],"black"===c),e(o,l["badge--white"],"white"===c),e(o,l["badge--blueberry"],"blueberry"===c),e(o,l["badge--banana"],"banana"===c),e(o,l["badge--cherry"],"cherry"===c),e(o,l["badge--kiwi"],"kiwi"===c),e(o,l["badge--neutral"],"neutral"===c),e(o,l["badge--plum"],"plum"===c),o),n);return a.createElement("span",{className:g,ref:d},t)}));export default b;
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 +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,EAAE,MAAM,iBAAiB,CAAC;AAYnE,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,C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-3f327b66.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-cf365332.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";
1
+ import{B as s}from"../../Button-48132cc3.js";export{B as default}from"../../Button-48132cc3.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;CACpB;AAED,QAAA,MAAM,eAAe,0FASnB,CAAC;AAEH,eAAe,eAAe,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",
@@ -93,7 +112,7 @@
93
112
  "required": false,
94
113
  "type": {
95
114
  "name": "enum",
96
- "raw": "\"normal\" | \"warning\" | \"error\" | \"image\" | undefined",
115
+ "raw": "\"normal\" | \"warning\" | \"error\" | \"success\" | \"image\" | undefined",
97
116
  "value": [
98
117
  {
99
118
  "value": "undefined"
@@ -107,6 +126,9 @@
107
126
  {
108
127
  "value": "\"error\""
109
128
  },
129
+ {
130
+ "value": "\"success\""
131
+ },
110
132
  {
111
133
  "value": "\"image\""
112
134
  }
@@ -144,10 +166,10 @@
144
166
  ]
145
167
  }
146
168
  },
147
- "noCloseButton": {
169
+ "icon": {
148
170
  "defaultValue": null,
149
- "description": "Hides the close button",
150
- "name": "noCloseButton",
171
+ "description": "Icon displayed in title",
172
+ "name": "icon",
151
173
  "parent": {
152
174
  "fileName": "designsystem/src/components/Modal/Modal.tsx",
153
175
  "name": "ModalProps"
@@ -160,13 +182,13 @@
160
182
  ],
161
183
  "required": false,
162
184
  "type": {
163
- "name": "boolean"
185
+ "name": "ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>"
164
186
  }
165
187
  },
166
- "testId": {
188
+ "noCloseButton": {
167
189
  "defaultValue": null,
168
- "description": "Sets the data-testid attribute.",
169
- "name": "testId",
190
+ "description": "Hides the close button",
191
+ "name": "noCloseButton",
170
192
  "parent": {
171
193
  "fileName": "designsystem/src/components/Modal/Modal.tsx",
172
194
  "name": "ModalProps"
@@ -179,7 +201,7 @@
179
201
  ],
180
202
  "required": false,
181
203
  "type": {
182
- "name": "string"
204
+ "name": "boolean"
183
205
  }
184
206
  },
185
207
  "primaryButtonText": {
@@ -296,6 +318,25 @@
296
318
  "name": "ReactNode"
297
319
  }
298
320
  },
321
+ "afterTitleChildren": {
322
+ "defaultValue": null,
323
+ "description": "Component shown after title",
324
+ "name": "afterTitleChildren",
325
+ "parent": {
326
+ "fileName": "designsystem/src/components/Modal/Modal.tsx",
327
+ "name": "ModalProps"
328
+ },
329
+ "declarations": [
330
+ {
331
+ "fileName": "designsystem/src/components/Modal/Modal.tsx",
332
+ "name": "ModalProps"
333
+ }
334
+ ],
335
+ "required": false,
336
+ "type": {
337
+ "name": "ReactNode"
338
+ }
339
+ },
299
340
  "className": {
300
341
  "defaultValue": null,
301
342
  "description": "Adds custom classes to the element.",
@@ -1,2 +1,2 @@
1
- import{_ as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import e,{useState as o}from"react";import{B as r}from"../../Button-3f327b66.js";import{M as s}from"../../Modal-3dc1bb47.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-cf365332.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"../../AlertSignFill-64bfef57.js";import"../Modal/styles.module.scss";import"../../Title-7c829525.js";import"../Title/styles.module.scss";var i=e.forwardRef((function(i,m){var l=o(!1),n=t(l,2),p=n[0],a=n[1];return e.createElement("div",null,e.createElement(r,{onClick:function(){return a(!0)}},i.buttonText),p&&e.createElement(s,Object.assign({},i,{onClose:function(){return a(!1)}})))}));export default i;
1
+ import{_ as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import s,{useState as e}from"react";import{B as o}from"../../Button-48132cc3.js";import{M as r}from"../../Modal-145869ba.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-591125bb.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],n=a[1];return s.createElement("div",{"data-testid":i.testId},s.createElement(o,{onClick:function(){return n(!0)}},i.buttonText),p&&s.createElement(r,Object.assign({},i,{onClose:function(){return n(!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,3 @@
1
+ import Close from './Close';
2
+ export default Close;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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-591125bb.js";export{C as default}from"../../Close-591125bb.js";import"react";import"../../palette-f206f488.js";import"../../constants-d919236e.js";import"../../_tslib-51c8a283.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
+ }
@@ -0,0 +1,9 @@
1
+ export type Styles = {
2
+ close: string;
3
+ };
4
+
5
+ export type ClassNames = keyof Styles;
6
+
7
+ declare const styles: Styles;
8
+
9
+ export default styles;
@@ -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;I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