diff --git a/1807.80c302e8.iframe.bundle.js b/1807.06cd92b9.iframe.bundle.js similarity index 58% rename from 1807.80c302e8.iframe.bundle.js rename to 1807.06cd92b9.iframe.bundle.js index 01bc98a2..406a4d18 100644 --- a/1807.80c302e8.iframe.bundle.js +++ b/1807.06cd92b9.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[1807],{"./src/components/Alert/Alert.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Alert_Alert});__webpack_require__("./node_modules/react/index.js");var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Alert=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Alert/Alert.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Alert.Z,options);Alert.Z&&Alert.Z.locals&&Alert.Z.locals;var info=__webpack_require__("./src/icons/functional-icons/info.svg"),success=__webpack_require__("./src/icons/functional-icons/success.svg"),alert_triangle=__webpack_require__("./src/icons/functional-icons/alert-triangle.svg"),functional_icons_close=__webpack_require__("./src/icons/functional-icons/close.svg"),AlertType=__webpack_require__("./src/components/Alert/AlertType.tsx"),utils=__webpack_require__("./src/common/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Alert_Alert_Alert=function Alert(props){var alertType=props.alertType||AlertType.Z.Success,action=props.action?"sds--alert--has-action":"",className="sds--alert ".concat(alertType.toLowerCase()," ").concat(action," ").concat(props.hide?"hide":"");return(0,jsx_runtime.jsx)("div",{className,children:(0,jsx_runtime.jsxs)("div",{className:"sds--alert--inner ".concat(props.asChild?"":"sds--page-container"),children:[(0,jsx_runtime.jsxs)("div",{className:"sds--alert--visual",children:[[AlertType.Z.Error,AlertType.Z.Warning].includes(alertType)&&(0,jsx_runtime.jsx)(alert_triangle.r,{}),[AlertType.Z.Default,AlertType.Z.Info].includes(alertType)&&(0,jsx_runtime.jsx)(info.r,{}),[AlertType.Z.Success].includes(alertType)&&(0,jsx_runtime.jsx)(success.r,{})]}),(0,jsx_runtime.jsxs)("div",{className:"sds--alert--textual",children:[(0,jsx_runtime.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,utils.Nw)(props.message)}}),props.action&&(0,jsx_runtime.jsx)("button",{type:"button",onClick:props.action,className:"sds--btn sds--btn--ghost--dark sds--btn--small",children:props.actionLabel})]}),props.close&&(0,jsx_runtime.jsxs)("button",{className:"sds--alert--actions",onClick:props.close,children:[(0,jsx_runtime.jsx)("span",{className:"text sds--visually-hidden",children:"Close alert"}),(0,jsx_runtime.jsx)(functional_icons_close.r,{})]})]})})};Alert_Alert_Alert.displayName="Alert";const components_Alert_Alert=Alert_Alert_Alert;try{Alert_Alert_Alert.displayName="Alert",Alert_Alert_Alert.__docgenInfo={description:"",displayName:"Alert",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string"}},alertType:{defaultValue:null,description:"",name:"alertType",required:!1,type:{name:"enum",value:[{value:'"sds--alert--status-default"'},{value:'"sds--alert--status-success"'},{value:'"sds--alert--status-warning"'},{value:'"sds--alert--status-error"'},{value:'"sds--alert--status-info"'}]}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"MouseEventHandler"}},action:{defaultValue:null,description:"",name:"action",required:!1,type:{name:"MouseEventHandler"}},actionLabel:{defaultValue:null,description:"",name:"actionLabel",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Alert/Alert.tsx#Alert"]={docgenInfo:Alert_Alert_Alert.__docgenInfo,name:"Alert",path:"src/components/Alert/Alert.tsx#Alert"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Alert/AlertType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(AlertType){return AlertType.Default="sds--alert--status-default",AlertType.Success="sds--alert--status-success",AlertType.Warning="sds--alert--status-warning",AlertType.Error="sds--alert--status-error",AlertType.Info="sds--alert--status-info",AlertType}({})},"./src/components/Button/Button.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Button_Button,P:()=>defaultButtonProps});var react=__webpack_require__("./node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Button=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Button/Button.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Button.Z,options);Button.Z&&Button.Z.locals&&Button.Z.locals;var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(ButtonSize){return ButtonSize.Default="",ButtonSize.Small="sds--btn--small",ButtonSize.Full="sds--btn--full",ButtonSize}({})},"./src/components/Button/ButtonType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(ButtonType){return ButtonType.Primary="sds--btn--primary",ButtonType.Secondary="sds--btn--secondary",ButtonType.Tertiary="sds--btn--tertiary",ButtonType.GhostDark="sds--btn--ghost--dark",ButtonType.GhostLight="sds--btn--ghost--light",ButtonType.Delete="sds--btn--delete",ButtonType.DeleteSecondary="sds--btn--delete--secondary",ButtonType.Chevron="sds--btn--chevron",ButtonType.DestructivePrimary="sds--btn sds--btn-destructive--primary",ButtonType.DestructiveSecondary="sds--btn sds--btn-destructive--secondary",ButtonType.DestructiveTertiary="sds--btn sds--btn-destructive--tertiary",ButtonType}({})},"./src/components/Modal/Modal.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Modal_Modal});var react=__webpack_require__("./node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Modal=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Modal/Modal.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Modal.Z,options);Modal.Z&&Modal.Z.locals&&Modal.Z.locals;var functional_icons_close=__webpack_require__("./src/icons/functional-icons/close.svg"),Alert=__webpack_require__("./src/components/Alert/Alert.tsx"),Button=__webpack_require__("./src/components/Button/Button.tsx"),AlertType=__webpack_require__("./src/components/Alert/AlertType.tsx"),ButtonType=__webpack_require__("./src/components/Button/ButtonType.tsx"),utils=__webpack_require__("./src/common/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Modal_Modal_Modal=function Modal(props){var alertType=props.alertType||AlertType.Z.Info,full=props.full?"full":"",className=props.className||"";return(0,react.useEffect)((function(){return document.body.classList.add("modal-open"),function(){document.body.classList.remove("modal-open")}}),[]),(0,jsx_runtime.jsx)("div",{className:"sds--modal sds--backdrop",children:(0,jsx_runtime.jsxs)("div",{className:"sds--modal--container ".concat(full," ").concat(className),children:[(0,jsx_runtime.jsxs)("div",{className:"sds--modal--title",children:[(0,jsx_runtime.jsx)("p",{className:"sds--text--h4",children:props.title}),props.cancel&&(0,jsx_runtime.jsx)("span",{className:"sds--modal--close",onClick:props.cancel,children:(0,jsx_runtime.jsx)(functional_icons_close.r,{})})]}),props.alertType&&(0,jsx_runtime.jsx)(Alert.Z,{alertType,message:props.subTitle||"",asChild:!0}),(0,jsx_runtime.jsxs)("div",{className:"sds--modal--content",children:[(0,jsx_runtime.jsxs)("div",{className:"sds--text--rich",children:[props.question&&(0,jsx_runtime.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,utils.Nw)(props.question)}}),props.children]}),(0,jsx_runtime.jsxs)("div",{className:"sds--modal--actions sds--actions--outer sds--space--top--5",children:[props.cancel&&(0,jsx_runtime.jsx)(Button.Z,{onClick:props.cancel,type:ButtonType.Z.Secondary,txt:props.cancelButtonLabel}),props.confirm&&(0,jsx_runtime.jsx)(Button.Z,{onClick:props.confirm,type:ButtonType.Z.Primary,disabled:props.confirmDisabled,txt:props.confirmationButtonLabel})]})]})]})})};Modal_Modal_Modal.displayName="Modal";const components_Modal_Modal=Modal_Modal_Modal;try{Modal_Modal_Modal.displayName="Modal",Modal_Modal_Modal.__docgenInfo={description:"",displayName:"Modal",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},confirm:{defaultValue:null,description:"",name:"confirm",required:!1,type:{name:"Function"}},question:{defaultValue:null,description:"",name:"question",required:!1,type:{name:"string"}},cancel:{defaultValue:null,description:"",name:"cancel",required:!1,type:{name:"MouseEventHandler"}},alertType:{defaultValue:null,description:"",name:"alertType",required:!1,type:{name:"enum",value:[{value:'"sds--alert--status-default"'},{value:'"sds--alert--status-success"'},{value:'"sds--alert--status-warning"'},{value:'"sds--alert--status-error"'},{value:'"sds--alert--status-info"'}]}},subTitle:{defaultValue:null,description:"",name:"subTitle",required:!1,type:{name:"string"}},confirmDisabled:{defaultValue:null,description:"",name:"confirmDisabled",required:!1,type:{name:"boolean"}},confirmationButtonLabel:{defaultValue:null,description:"",name:"confirmationButtonLabel",required:!1,type:{name:"string"}},cancelButtonLabel:{defaultValue:null,description:"",name:"cancelButtonLabel",required:!1,type:{name:"string"}},full:{defaultValue:null,description:"",name:"full",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Modal/Modal.tsx#Modal"]={docgenInfo:Modal_Modal_Modal.__docgenInfo,name:"Modal",path:"src/components/Modal/Modal.tsx#Modal"})}catch(__react_docgen_typescript_loader_error){}},"./src/icons/functional-icons/alert-triangle.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>SvgAlertTriangle});var _path,_path2,_path3,_path4,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{r:()=>SvgClose});var _path,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{r:()=>SvgSuccess});var _circle,_g,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".sds--alert--visual svg{width:1.40625em;height:1.40625em}.sds--alert--actions svg{width:.75em;height:.75em}.sds--alert{position:sticky;width:100%;top:0;z-index:6;opacity:.97}.sds--alert .sds--alert--inner{min-height:3.75rem}","",{version:3,sources:["webpack://./src/components/Alert/Alert.scss"],names:[],mappings:"AAAA,wBACE,eAAA,CACA,gBAAA,CAGF,yBACE,WAAA,CACA,YAAA,CAGF,YACE,eAAA,CACA,UAAA,CACA,KAAA,CACA,SAAA,CACA,WAAA,CAEA,+BACE,kBAAA",sourcesContent:[".sds--alert--visual svg {\n width: calc(22.5em / 16);\n height: calc(22.5em / 16);\n}\n\n.sds--alert--actions svg {\n width: calc(12em / 16);\n height: calc(12em / 16);\n}\n\n.sds--alert {\n position: sticky;\n width: 100%;\n top: 0;\n z-index: 6;\n opacity: .97;\n\n .sds--alert--inner {\n min-height: 3.75rem;\n }\n\n}\n\n\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Button/Button.scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".sds--btn{cursor:pointer}.sds--btn.active{cursor:initial}.sds--btn:disabled{cursor:default}.sds--btn.sds--btn--delete{padding:0}.sds--btn.sds--btn--delete svg path{stroke-width:1.5}.sds--btn.sds--btn--delete:hover{color:var(--sds--color--red--400)}.sds--btn.sds--btn--delete:disabled{color:var(--sds--color--gray--300)}.sds--btn.sds--btn--delete:disabled:hover{color:var(--sds--color--gray--300)}.sds--btn.sds--btn--delete--secondary{color:var(--sds--palette--main-color--500)}.sds--btn.sds--btn-chevron svg{width:.703125em;height:.341875em}","",{version:3,sources:["webpack://./src/components/Button/Button.scss"],names:[],mappings:"AAAA,UACI,cAAA,CAEA,iBACI,cAAA,CAGJ,mBACI,cAAA,CAGJ,2BACI,SAAA,CAEA,oCACI,gBAAA,CAGJ,iCACI,iCAAA,CAGJ,oCACI,kCAAA,CAEA,0CACI,kCAAA,CAKZ,sCACI,0CAAA,CAIA,+BACI,eAAA,CACA,gBAAA",sourcesContent:[".sds--btn {\n cursor: pointer;\n\n &.active {\n cursor: initial;\n }\n\n &:disabled {\n cursor: default;\n }\n\n &.sds--btn--delete {\n padding: 0;\n\n svg path {\n stroke-width: 1.5;\n }\n\n &:hover {\n color: var(--sds--color--red--400);\n }\n\n &:disabled {\n color: var(--sds--color--gray--300);\n\n &:hover {\n color: var(--sds--color--gray--300);\n }\n }\n }\n\n &.sds--btn--delete--secondary {\n color: var(--sds--palette--main-color--500);\n }\n\n &.sds--btn-chevron {\n svg {\n width: calc(11.25em / 16);\n height: calc(5.47em / 16)\n }\n\n }\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Modal/Modal.scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".sds--modal--container{min-width:22.875rem}.sds--modal--container.full{max-width:65.875rem}.sds--modal--container span.sds--modal--close{cursor:pointer;padding:4px}body.modal-open{height:100vh;overflow-y:hidden;padding-right:15px}","",{version:3,sources:["webpack://./src/components/Modal/Modal.scss"],names:[],mappings:"AACE,uBACE,mBAAA,CAEA,4BACE,mBAAA,CAEF,8CACE,cAAA,CACA,WAAA,CAKN,gBACE,YAAA,CACA,iBAAA,CACA,kBAAA",sourcesContent:[".sds--modal {\n &--container {\n min-width: 22.875rem;\n\n &.full {\n max-width: 65.875rem;\n }\n span.sds--modal--close {\n cursor: pointer;\n padding: 4px;\n }\n }\n}\n\nbody.modal-open {\n height: 100vh;\n overflow-y: hidden;\n padding-right: 15px;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[1807],{"./src/components/Alert/Alert.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Alert_Alert});__webpack_require__("./node_modules/react/index.js");var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Alert=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Alert/Alert.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Alert.Z,options);Alert.Z&&Alert.Z.locals&&Alert.Z.locals;var info=__webpack_require__("./src/icons/functional-icons/info.svg"),success=__webpack_require__("./src/icons/functional-icons/success.svg"),alert_triangle=__webpack_require__("./src/icons/functional-icons/alert-triangle.svg"),functional_icons_close=__webpack_require__("./src/icons/functional-icons/close.svg"),AlertType=__webpack_require__("./src/components/Alert/AlertType.tsx"),utils=__webpack_require__("./src/common/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Alert_Alert_Alert=function Alert(props){var alertType=props.alertType||AlertType.Z.Success,action=props.action?"sds--alert--has-action":"",className="sds--alert ".concat(alertType.toLowerCase()," ").concat(action," ").concat(props.hide?"hide":"");return(0,jsx_runtime.jsx)("div",{className,children:(0,jsx_runtime.jsxs)("div",{className:"sds--alert--inner ".concat(props.asChild?"":"sds--page-container"),children:[(0,jsx_runtime.jsxs)("div",{className:"sds--alert--visual",children:[[AlertType.Z.Error,AlertType.Z.Warning].includes(alertType)&&(0,jsx_runtime.jsx)(alert_triangle.r,{}),[AlertType.Z.Default,AlertType.Z.Info].includes(alertType)&&(0,jsx_runtime.jsx)(info.r,{}),[AlertType.Z.Success].includes(alertType)&&(0,jsx_runtime.jsx)(success.r,{})]}),(0,jsx_runtime.jsxs)("div",{className:"sds--alert--textual",children:[(0,jsx_runtime.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,utils.Nw)(props.message)}}),props.action&&(0,jsx_runtime.jsx)("button",{type:"button",onClick:props.action,className:"sds--btn sds--btn--ghost--dark sds--btn--small",children:props.actionLabel})]}),props.close&&(0,jsx_runtime.jsxs)("button",{className:"sds--alert--actions",onClick:props.close,children:[(0,jsx_runtime.jsx)("span",{className:"text sds--visually-hidden",children:"Close alert"}),(0,jsx_runtime.jsx)(functional_icons_close.r,{})]})]})})};Alert_Alert_Alert.displayName="Alert";const components_Alert_Alert=Alert_Alert_Alert;try{Alert_Alert_Alert.displayName="Alert",Alert_Alert_Alert.__docgenInfo={description:"",displayName:"Alert",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string"}},alertType:{defaultValue:null,description:"",name:"alertType",required:!1,type:{name:"enum",value:[{value:'"sds--alert--status-default"'},{value:'"sds--alert--status-success"'},{value:'"sds--alert--status-warning"'},{value:'"sds--alert--status-error"'},{value:'"sds--alert--status-info"'}]}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"MouseEventHandler"}},action:{defaultValue:null,description:"",name:"action",required:!1,type:{name:"MouseEventHandler"}},actionLabel:{defaultValue:null,description:"",name:"actionLabel",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Alert/Alert.tsx#Alert"]={docgenInfo:Alert_Alert_Alert.__docgenInfo,name:"Alert",path:"src/components/Alert/Alert.tsx#Alert"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Alert/AlertType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(AlertType){return AlertType.Default="sds--alert--status-default",AlertType.Success="sds--alert--status-success",AlertType.Warning="sds--alert--status-warning",AlertType.Error="sds--alert--status-error",AlertType.Info="sds--alert--status-info",AlertType}({})},"./src/components/Button/Button.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Button_Button,P:()=>defaultButtonProps});var react=__webpack_require__("./node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Button=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Button/Button.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Button.Z,options);Button.Z&&Button.Z.locals&&Button.Z.locals;var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(ButtonSize){return ButtonSize.Default="",ButtonSize.Small="sds--btn--small",ButtonSize.Full="sds--btn--full",ButtonSize}({})},"./src/components/Button/ButtonType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(ButtonType){return ButtonType.Primary="sds--btn--primary",ButtonType.Secondary="sds--btn--secondary",ButtonType.Tertiary="sds--btn--tertiary",ButtonType.GhostDark="sds--btn--ghost--dark",ButtonType.GhostLight="sds--btn--ghost--light",ButtonType.Delete="sds--btn--delete",ButtonType.DeleteSecondary="sds--btn--delete--secondary",ButtonType.Chevron="sds--btn--chevron",ButtonType.DestructivePrimary="sds--btn sds--btn-destructive--primary",ButtonType.DestructiveSecondary="sds--btn sds--btn-destructive--secondary",ButtonType.DestructiveTertiary="sds--btn sds--btn-destructive--tertiary",ButtonType}({})},"./src/components/Modal/Modal.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Modal_Modal});var react=__webpack_require__("./node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Modal=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Modal/Modal.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Modal.Z,options);Modal.Z&&Modal.Z.locals&&Modal.Z.locals;var functional_icons_close=__webpack_require__("./src/icons/functional-icons/close.svg"),Alert=__webpack_require__("./src/components/Alert/Alert.tsx"),Button=__webpack_require__("./src/components/Button/Button.tsx"),AlertType=__webpack_require__("./src/components/Alert/AlertType.tsx"),ButtonType=__webpack_require__("./src/components/Button/ButtonType.tsx"),utils=__webpack_require__("./src/common/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Modal_Modal_Modal=function Modal(props){var alertType=props.alertType||AlertType.Z.Info,full=props.full?"full":"",className=props.className||"",classNameTitle="sds--modal--title ".concat(props.isError?"error":"");return(0,react.useEffect)((function(){return document.body.classList.add("modal-open"),function(){document.body.classList.remove("modal-open")}}),[]),(0,jsx_runtime.jsx)("div",{className:"sds--modal sds--backdrop",children:(0,jsx_runtime.jsxs)("div",{className:"sds--modal--container ".concat(full," ").concat(className),children:[(0,jsx_runtime.jsxs)("div",{className:classNameTitle,children:[(0,jsx_runtime.jsx)("p",{className:"sds--text--h4",children:props.title}),props.cancel&&(0,jsx_runtime.jsx)("span",{className:"sds--modal--close",onClick:props.cancel,children:(0,jsx_runtime.jsx)(functional_icons_close.r,{})})]}),props.alertType&&(0,jsx_runtime.jsx)(Alert.Z,{alertType,message:props.subTitle||"",asChild:!0}),(0,jsx_runtime.jsxs)("div",{className:"sds--modal--content",children:[(0,jsx_runtime.jsxs)("div",{className:"sds--text--rich",children:[props.question&&(0,jsx_runtime.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,utils.Nw)(props.question)}}),props.children]}),(0,jsx_runtime.jsxs)("div",{className:"sds--modal--actions sds--actions--outer sds--space--top--5",children:[props.cancel&&(0,jsx_runtime.jsx)(Button.Z,{onClick:props.cancel,type:ButtonType.Z.Secondary,txt:props.cancelButtonLabel}),props.confirm&&(0,jsx_runtime.jsx)(Button.Z,{onClick:props.confirm,type:ButtonType.Z.Primary,disabled:props.confirmDisabled,txt:props.confirmationButtonLabel})]})]})]})})};Modal_Modal_Modal.displayName="Modal";const components_Modal_Modal=Modal_Modal_Modal;try{Modal_Modal_Modal.displayName="Modal",Modal_Modal_Modal.__docgenInfo={description:"",displayName:"Modal",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},confirm:{defaultValue:null,description:"",name:"confirm",required:!1,type:{name:"Function"}},question:{defaultValue:null,description:"",name:"question",required:!1,type:{name:"string"}},cancel:{defaultValue:null,description:"",name:"cancel",required:!1,type:{name:"MouseEventHandler"}},alertType:{defaultValue:null,description:"",name:"alertType",required:!1,type:{name:"enum",value:[{value:'"sds--alert--status-default"'},{value:'"sds--alert--status-success"'},{value:'"sds--alert--status-warning"'},{value:'"sds--alert--status-error"'},{value:'"sds--alert--status-info"'}]}},isError:{defaultValue:null,description:"",name:"isError",required:!1,type:{name:"boolean"}},subTitle:{defaultValue:null,description:"",name:"subTitle",required:!1,type:{name:"string"}},confirmDisabled:{defaultValue:null,description:"",name:"confirmDisabled",required:!1,type:{name:"boolean"}},confirmationButtonLabel:{defaultValue:null,description:"",name:"confirmationButtonLabel",required:!1,type:{name:"string"}},cancelButtonLabel:{defaultValue:null,description:"",name:"cancelButtonLabel",required:!1,type:{name:"string"}},full:{defaultValue:null,description:"",name:"full",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Modal/Modal.tsx#Modal"]={docgenInfo:Modal_Modal_Modal.__docgenInfo,name:"Modal",path:"src/components/Modal/Modal.tsx#Modal"})}catch(__react_docgen_typescript_loader_error){}},"./src/icons/functional-icons/alert-triangle.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>SvgAlertTriangle});var _path,_path2,_path3,_path4,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{r:()=>SvgClose});var _path,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{r:()=>SvgSuccess});var _circle,_g,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".sds--alert--visual svg{width:1.40625em;height:1.40625em}.sds--alert--actions svg{width:.75em;height:.75em}.sds--alert{position:sticky;width:100%;top:0;z-index:6;opacity:.97}.sds--alert .sds--alert--inner{min-height:3.75rem}","",{version:3,sources:["webpack://./src/components/Alert/Alert.scss"],names:[],mappings:"AAAA,wBACE,eAAA,CACA,gBAAA,CAGF,yBACE,WAAA,CACA,YAAA,CAGF,YACE,eAAA,CACA,UAAA,CACA,KAAA,CACA,SAAA,CACA,WAAA,CAEA,+BACE,kBAAA",sourcesContent:[".sds--alert--visual svg {\n width: calc(22.5em / 16);\n height: calc(22.5em / 16);\n}\n\n.sds--alert--actions svg {\n width: calc(12em / 16);\n height: calc(12em / 16);\n}\n\n.sds--alert {\n position: sticky;\n width: 100%;\n top: 0;\n z-index: 6;\n opacity: .97;\n\n .sds--alert--inner {\n min-height: 3.75rem;\n }\n\n}\n\n\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Button/Button.scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".sds--btn{cursor:pointer}.sds--btn.active{cursor:initial}.sds--btn:disabled{cursor:default}.sds--btn.sds--btn--delete{padding:0}.sds--btn.sds--btn--delete svg path{stroke-width:1.5}.sds--btn.sds--btn--delete:hover{color:var(--sds--color--red--400)}.sds--btn.sds--btn--delete:disabled{color:var(--sds--color--gray--300)}.sds--btn.sds--btn--delete:disabled:hover{color:var(--sds--color--gray--300)}.sds--btn.sds--btn--delete--secondary{color:var(--sds--palette--main-color--500)}.sds--btn.sds--btn-chevron svg{width:.703125em;height:.341875em}","",{version:3,sources:["webpack://./src/components/Button/Button.scss"],names:[],mappings:"AAAA,UACI,cAAA,CAEA,iBACI,cAAA,CAGJ,mBACI,cAAA,CAGJ,2BACI,SAAA,CAEA,oCACI,gBAAA,CAGJ,iCACI,iCAAA,CAGJ,oCACI,kCAAA,CAEA,0CACI,kCAAA,CAKZ,sCACI,0CAAA,CAIA,+BACI,eAAA,CACA,gBAAA",sourcesContent:[".sds--btn {\n cursor: pointer;\n\n &.active {\n cursor: initial;\n }\n\n &:disabled {\n cursor: default;\n }\n\n &.sds--btn--delete {\n padding: 0;\n\n svg path {\n stroke-width: 1.5;\n }\n\n &:hover {\n color: var(--sds--color--red--400);\n }\n\n &:disabled {\n color: var(--sds--color--gray--300);\n\n &:hover {\n color: var(--sds--color--gray--300);\n }\n }\n }\n\n &.sds--btn--delete--secondary {\n color: var(--sds--palette--main-color--500);\n }\n\n &.sds--btn-chevron {\n svg {\n width: calc(11.25em / 16);\n height: calc(5.47em / 16)\n }\n\n }\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Modal/Modal.scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".sds--modal--container{min-width:22.875rem}.sds--modal--container.full{max-width:65.875rem}.sds--modal--container span.sds--modal--close{cursor:pointer;padding:4px}.sds--modal--container .sds--modal--title.error{background-color:var(--sds--color--red--400)}body.modal-open{height:100vh;overflow-y:hidden;padding-right:15px}","",{version:3,sources:["webpack://./src/components/Modal/Modal.scss"],names:[],mappings:"AACI,uBACI,mBAAA,CAEA,4BACI,mBAAA,CAGJ,8CACI,cAAA,CACA,WAAA,CAGJ,gDACI,4CAAA,CAKZ,gBACI,YAAA,CACA,iBAAA,CACA,kBAAA",sourcesContent:[".sds--modal {\n &--container {\n min-width: 22.875rem;\n\n &.full {\n max-width: 65.875rem;\n }\n\n span.sds--modal--close {\n cursor: pointer;\n padding: 4px;\n }\n\n .sds--modal--title.error {\n background-color: var(--sds--color--red--400);\n }\n }\n}\n\nbody.modal-open {\n height: 100vh;\n overflow-y: hidden;\n padding-right: 15px;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-Modal-Modal-stories.132701f5.iframe.bundle.js b/components-Modal-Modal-stories.132701f5.iframe.bundle.js deleted file mode 100644 index 40efe668..00000000 --- a/components-Modal-Modal-stories.132701f5.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[3668],{"./src/components/Modal/Modal.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ModalTemplate:()=>ModalTemplate,ModalTemplateConfirmDisabled:()=>ModalTemplateConfirmDisabled,ModalTemplateNoCancel:()=>ModalTemplateNoCancel,ModalTemplateNoConfirm:()=>ModalTemplateNoConfirm,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _ModalTemplate$parame,_ModalTemplate$parame2,_ModalTemplateConfirm,_ModalTemplateConfirm2,_ModalTemplateNoCance,_ModalTemplateNoCance2,_ModalTemplateNoConfi,_ModalTemplateNoConfi2,_Modal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Modal/Modal.tsx"),_Alert_AlertType__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Alert/AlertType.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i "},null===(_ModalTemplate$parame2=ModalTemplate.parameters)||void 0===_ModalTemplate$parame2||null===(_ModalTemplate$parame2=_ModalTemplate$parame2.docs)||void 0===_ModalTemplate$parame2?void 0:_ModalTemplate$parame2.source)})}),ModalTemplateConfirmDisabled.parameters=_objectSpread(_objectSpread({},ModalTemplateConfirmDisabled.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateConfirm=ModalTemplateConfirmDisabled.parameters)||void 0===_ModalTemplateConfirm?void 0:_ModalTemplateConfirm.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateConfirm2=ModalTemplateConfirmDisabled.parameters)||void 0===_ModalTemplateConfirm2||null===(_ModalTemplateConfirm2=_ModalTemplateConfirm2.docs)||void 0===_ModalTemplateConfirm2?void 0:_ModalTemplateConfirm2.source)})}),ModalTemplateNoCancel.parameters=_objectSpread(_objectSpread({},ModalTemplateNoCancel.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateNoCance=ModalTemplateNoCancel.parameters)||void 0===_ModalTemplateNoCance?void 0:_ModalTemplateNoCance.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateNoCance2=ModalTemplateNoCancel.parameters)||void 0===_ModalTemplateNoCance2||null===(_ModalTemplateNoCance2=_ModalTemplateNoCance2.docs)||void 0===_ModalTemplateNoCance2?void 0:_ModalTemplateNoCance2.source)})}),ModalTemplateNoConfirm.parameters=_objectSpread(_objectSpread({},ModalTemplateNoConfirm.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateNoConfi=ModalTemplateNoConfirm.parameters)||void 0===_ModalTemplateNoConfi?void 0:_ModalTemplateNoConfi.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateNoConfi2=ModalTemplateNoConfirm.parameters)||void 0===_ModalTemplateNoConfi2||null===(_ModalTemplateNoConfi2=_ModalTemplateNoConfi2.docs)||void 0===_ModalTemplateNoConfi2?void 0:_ModalTemplateNoConfi2.source)})});var __namedExportsOrder=["ModalTemplate","ModalTemplateConfirmDisabled","ModalTemplateNoCancel","ModalTemplateNoConfirm"]},"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Cf:()=>valueForSort,KE:()=>pseudoGuid,N5:()=>sortObjects,Nw:()=>sanitize,p7:()=>stopEvent,xb:()=>isEmpty});var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/isomorphic-dompurify/browser.js"),isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0__);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{__webpack_require__.d(__webpack_exports__,{r:()=>SvgInfo});var _circle,_g,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ModalTemplate:()=>ModalTemplate,ModalTemplateConfirmDisabled:()=>ModalTemplateConfirmDisabled,ModalTemplateError:()=>ModalTemplateError,ModalTemplateNoCancel:()=>ModalTemplateNoCancel,ModalTemplateNoConfirm:()=>ModalTemplateNoConfirm,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _ModalTemplate$parame,_ModalTemplate$parame2,_ModalTemplateConfirm,_ModalTemplateConfirm2,_ModalTemplateNoCance,_ModalTemplateNoCance2,_ModalTemplateError$p,_ModalTemplateError$p2,_ModalTemplateNoConfi,_ModalTemplateNoConfi2,_Modal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Modal/Modal.tsx"),_Alert_AlertType__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Alert/AlertType.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i "},null===(_ModalTemplate$parame2=ModalTemplate.parameters)||void 0===_ModalTemplate$parame2||null===(_ModalTemplate$parame2=_ModalTemplate$parame2.docs)||void 0===_ModalTemplate$parame2?void 0:_ModalTemplate$parame2.source)})}),ModalTemplateConfirmDisabled.parameters=_objectSpread(_objectSpread({},ModalTemplateConfirmDisabled.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateConfirm=ModalTemplateConfirmDisabled.parameters)||void 0===_ModalTemplateConfirm?void 0:_ModalTemplateConfirm.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateConfirm2=ModalTemplateConfirmDisabled.parameters)||void 0===_ModalTemplateConfirm2||null===(_ModalTemplateConfirm2=_ModalTemplateConfirm2.docs)||void 0===_ModalTemplateConfirm2?void 0:_ModalTemplateConfirm2.source)})}),ModalTemplateNoCancel.parameters=_objectSpread(_objectSpread({},ModalTemplateNoCancel.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateNoCance=ModalTemplateNoCancel.parameters)||void 0===_ModalTemplateNoCance?void 0:_ModalTemplateNoCance.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateNoCance2=ModalTemplateNoCancel.parameters)||void 0===_ModalTemplateNoCance2||null===(_ModalTemplateNoCance2=_ModalTemplateNoCance2.docs)||void 0===_ModalTemplateNoCance2?void 0:_ModalTemplateNoCance2.source)})}),ModalTemplateError.parameters=_objectSpread(_objectSpread({},ModalTemplateError.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateError$p=ModalTemplateError.parameters)||void 0===_ModalTemplateError$p?void 0:_ModalTemplateError$p.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateError$p2=ModalTemplateError.parameters)||void 0===_ModalTemplateError$p2||null===(_ModalTemplateError$p2=_ModalTemplateError$p2.docs)||void 0===_ModalTemplateError$p2?void 0:_ModalTemplateError$p2.source)})}),ModalTemplateNoConfirm.parameters=_objectSpread(_objectSpread({},ModalTemplateNoConfirm.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ModalTemplateNoConfi=ModalTemplateNoConfirm.parameters)||void 0===_ModalTemplateNoConfi?void 0:_ModalTemplateNoConfi.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ModalTemplateNoConfi2=ModalTemplateNoConfirm.parameters)||void 0===_ModalTemplateNoConfi2||null===(_ModalTemplateNoConfi2=_ModalTemplateNoConfi2.docs)||void 0===_ModalTemplateNoConfi2?void 0:_ModalTemplateNoConfi2.source)})});var __namedExportsOrder=["ModalTemplate","ModalTemplateConfirmDisabled","ModalTemplateNoCancel","ModalTemplateError","ModalTemplateNoConfirm"]},"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Cf:()=>valueForSort,KE:()=>pseudoGuid,N5:()=>sortObjects,Nw:()=>sanitize,p7:()=>stopEvent,xb:()=>isEmpty});var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/isomorphic-dompurify/browser.js"),isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0__);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{__webpack_require__.d(__webpack_exports__,{r:()=>SvgInfo});var _circle,_g,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i