@helsenorge/designsystem-react 1.0.0-beta87 → 1.0.0-beta88
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/Modal-cdc876a8.js +2 -0
- package/Modal-cdc876a8.js.map +1 -0
- package/components/ButtonWithModal/componentdata.json +19 -0
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Modal/Modal.d.ts +2 -0
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/componentdata.json +19 -0
- package/components/Modal/index.js +1 -1
- package/package.json +1 -1
- package/Modal-ac3a4757.js +0 -2
- package/Modal-ac3a4757.js.map +0 -1
|
@@ -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{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-a6cbd165.js";function E(){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 g,y,h=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"}(g||(g={})),function(e){e.large="large",e.medium="medium"}(y||(y={}));var b={variant:g.normal,primaryButtonText:"OK",large:!1,className:"",size:y.large},N=function(e,t){var a=function(e){return e===g.error?r.createElement(m,{size:s.Small,svgIcon:u,color:c.cherry500,hoverColor:c.cherry500}):e===g.warning?r.createElement(m,{size:s.Small,svgIcon:v,color:c.black,hoverColor:c.black}):null}(e);return a?r.createElement("div",{className:d.modal__iconWrapper},a):t?r.createElement("div",{className:d.modal__iconWrapper},r.cloneElement(t,{size:s.Small})):null},k=function(a){var o,c,s,m=r.useState(0),u=e(m,2),v=u[0],y=u[1],b=r.useState(f()),k=e(b,1)[0],w=r.useRef(null),x=r.useRef(null),B=r.useRef(null),C=h(x),L=r.useRef(null),S=h(L),W=B.current&&B.current.scrollHeight>B.current.clientHeight;function T(e){"Escape"===e.key&&a.onClose&&(e.stopPropagation(),a.onClose())}function j(e){e.target&&R.current===e.target&&a.onClose&&(e.stopPropagation(),a.onClose())}var z=a.variant===g.image,I=null!==(o=a.titleId)&&void 0!==o?o:k,R=r.useRef(null),P=a.secondaryButtonText&&(null===(c=a.secondaryButtonText)||void 0===c?void 0:c.length)>0||a.onSuccess,A=a.ariaLabelledBy?void 0:a.ariaLabel,D=a.ariaLabelledBy?a.ariaLabelledBy:a.ariaLabel?void 0:I;return n((function(){var e,t=R.current;return null===(e=w.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",t&&!P&&(t.addEventListener("keydown",T),t.addEventListener("click",j)),function(){document.body.style.removeProperty("overflow"),t&&!P&&(t.removeEventListener("keydown",T),t.removeEventListener("click",j))}}),[]),r.createElement("div",{"data-testid":"dialog-container"},r.createElement("div",{ref:R,className:d["modal-overlay"],"data-testid":a.testId},r.createElement("div",{className:d.align,ref:E()},r.createElement("div",{className:l(a.className,d.modal,d["modal--".concat(a.variant)],d["modal--".concat(a.size)]),role:"dialog","aria-label":A,"aria-labelledby":D},r.createElement("div",{tabIndex:v,ref:w,onBlur:function(){return y(-1)}}),r.createElement("div",{className:l(d.modal__shadow,d["modal__shadow--top"],t({},d["modal__shadow--show"],!C&&W))}),r.createElement("div",{className:l(d.modal__contentWrapper,t({},d["modal__contentWrapper--image"],z)),ref:B},!a.noCloseButton&&r.createElement("div",{className:d.modal__closeWrapper},r.createElement("div",{className:l(d.modal__closeWrapper__close)},r.createElement(_,{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:x}),r.createElement("div",{className:d.modal__contentWrapper__title},N(a.variant,a.icon),r.createElement("div",{className:a.variant===g.error?d["modal__title--error"]:""},r.createElement(p,{id:I,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:L}))),r.createElement("div",{className:l(d.modal__shadow,d["modal__shadow--bottom"],t({},d["modal__shadow--show"],!S&&W))}),P&&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===(s=a.secondaryButtonText)||void 0===s?void 0:s.length)>0&&r.createElement(i,{variant:"borderless",onClick:a.onClose},a.secondaryButtonText))))))};k.defaultProps=b;export{k as M};
|
|
2
|
+
//# sourceMappingURL=Modal-cdc876a8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal-cdc876a8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -163,6 +163,25 @@
|
|
|
163
163
|
]
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
|
+
"icon": {
|
|
167
|
+
"defaultValue": null,
|
|
168
|
+
"description": "Icon displayed in title",
|
|
169
|
+
"name": "icon",
|
|
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": "ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
166
185
|
"noCloseButton": {
|
|
167
186
|
"defaultValue": null,
|
|
168
187
|
"description": "Hides the close button",
|
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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-cdc876a8.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
|
|
@@ -20,6 +20,8 @@ export interface ModalProps {
|
|
|
20
20
|
variant?: keyof typeof ModalVariants;
|
|
21
21
|
/** Change width of the modal (default: large) */
|
|
22
22
|
size?: keyof typeof ModalSize;
|
|
23
|
+
/** Icon displayed in title */
|
|
24
|
+
icon?: React.ReactElement;
|
|
23
25
|
/** Hides the close button */
|
|
24
26
|
noCloseButton?: boolean;
|
|
25
27
|
/** Sets the data-testid attribute. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAiBzC,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;IACrC,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAC9B,6BAA6B;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAiBzC,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;IACrC,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAC9B,8BAA8B;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,6BAA6B;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAoCD,QAAA,MAAM,KAAK;;;;;;;;;CAwIV,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
|
@@ -129,6 +129,25 @@
|
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
+
"icon": {
|
|
133
|
+
"defaultValue": null,
|
|
134
|
+
"description": "Icon displayed in title",
|
|
135
|
+
"name": "icon",
|
|
136
|
+
"parent": {
|
|
137
|
+
"fileName": "src/components/Modal/Modal.tsx",
|
|
138
|
+
"name": "ModalProps"
|
|
139
|
+
},
|
|
140
|
+
"declarations": [
|
|
141
|
+
{
|
|
142
|
+
"fileName": "src/components/Modal/Modal.tsx",
|
|
143
|
+
"name": "ModalProps"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"required": false,
|
|
147
|
+
"type": {
|
|
148
|
+
"name": "ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
132
151
|
"noCloseButton": {
|
|
133
152
|
"defaultValue": null,
|
|
134
153
|
"description": "Hides the close button",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as s}from"../../Modal-
|
|
1
|
+
import{M as s}from"../../Modal-cdc876a8.js";export{M as default}from"../../Modal-cdc876a8.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-55952154.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../constants-d919236e.js";import"../../Loader-6ff0d481.js";import"../../uuid-8870ab4b.js";import"../Loader/styles.module.scss";import"../../useHover-037be19d.js";import"../../useWindowSize-73b47451.js";import"../Button/styles.module.scss";import"./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";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/Modal-ac3a4757.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
package/Modal-ac3a4757.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-ac3a4757.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|