diff --git a/1807.baf97305.iframe.bundle.js b/1807.baf97305.iframe.bundle.js new file mode 100644 index 00000000..35dbe2c3 --- /dev/null +++ b/1807.baf97305.iframe.bundle.js @@ -0,0 +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",{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}),(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:{confirm:{defaultValue:null,description:"",name:"confirm",required:!0,type:{name:"Function"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},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.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--palette--main-color--500)}.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:"AACI,2BACI,SAAA,CAEA,oCACI,gBAAA,CAGJ,iCACI,0CAAA,CAGJ,oCACI,kCAAA,CAEA,0CACI,kCAAA,CAKZ,sCACI,0CAAA,CAIA,+BACI,eAAA,CACA,gBAAA",sourcesContent:[".sds--btn {\n &.sds--btn--delete {\n padding: 0;\n\n svg path {\n stroke-width: 1.5;\n }\n\n &:hover {\n color: var(--sds--palette--main-color--500);\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}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,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 }\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/3557.20bfb719.iframe.bundle.js b/3557.20bfb719.iframe.bundle.js deleted file mode 100644 index a49f1bd0..00000000 --- a/3557.20bfb719.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3557.20bfb719.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[3557],{"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{KE:()=>pseudoGuid,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 _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 stopEvent(e){return null==e||(e.preventDefault(),e.stopPropagation(),!1)}function isEmpty(obj){return null==obj||(Array.isArray(obj)?0===obj.length:"string"==typeof obj?0===obj.trim().length:obj&&obj.getTime?obj.getTime()!=obj.getTime():"object"===_typeof(obj)&&0===Object.keys(obj).length)}function sanitize(text){return isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(text,{ADD_ATTR:["target"]})}function pseudoGuid(){return crypto.randomUUID&&"function"==typeof crypto.randomUUID&&crypto.randomUUID()||Math.round((new Date).getTime()*Math.random()*1e3).toString()}},"./src/components/Tooltip/Tooltip.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>components_Tooltip_Tooltip});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),Tooltip=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Tooltip/Tooltip.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()(Tooltip.Z,options);Tooltip.Z&&Tooltip.Z.locals&&Tooltip.Z.locals;var floating_ui_core=__webpack_require__("./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"),floating_ui_dom=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),process=__webpack_require__("./node_modules/process/browser.js");const y="react-tooltip-core-styles",h="react-tooltip-base-styles",w={core:!1,base:!1};function b({css:e,id:t=h,type:r="base",ref:o}){var n,l;if(!e||"undefined"==typeof document||w[r])return;if("core"===r&&void 0!==process&&(null===(n=null==process?void 0:process.env)||void 0===n?void 0:n.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&void 0!==process&&(null===(l=null==process?void 0:process.env)||void 0===l?void 0:l.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t=y),o||(o={});const{insertAt:i}=o;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const c=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===i&&c.firstChild?c.insertBefore(s,c.firstChild):c.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),w[r]=!0}const E=(e,t,r)=>{let o=null;return function(...n){const l=()=>{o=null,r||e.apply(this,n)};r&&!o&&(e.apply(this,n),o=setTimeout(l,t)),r||(o&&clearTimeout(o),o=setTimeout(l,t))}},g="DEFAULT_TOOLTIP_ID",_={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},A=(0,react.createContext)({getTooltipData:()=>_});function O(e=g){return(0,react.useContext)(A).getTooltipData(e)}const R="undefined"!=typeof window?react.useLayoutEffect:react.useEffect,C=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r}))},N=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(C(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},k=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:o="top",offset:n=10,strategy:l="absolute",middlewares:i=[(0,floating_ui_core.cv)(Number(n)),(0,floating_ui_core.RR)(),(0,floating_ui_core.uY)({padding:5})],border:c})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const s=i;return r?(s.push((0,floating_ui_core.x7)({element:r,padding:5})),(0,floating_ui_dom.oo)(e,t,{placement:o,strategy:l,middleware:s}).then((({x:e,y:t,placement:r,middlewareData:o})=>{var n,l;const i={left:`${e}px`,top:`${t}px`,border:c},{x:s,y:a}=null!==(n=o.arrow)&&void 0!==n?n:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==l?l:"bottom",d=c&&{borderBottom:c,borderRight:c};let p=0;if(c){const e=`${c}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:r}}))):(0,floating_ui_dom.oo)(e,t,{placement:"bottom",strategy:l,middleware:s}).then((({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})))};var H={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const q=({id:t,className:n,classNameArrow:l,variant:s="dark",anchorId:a,anchorSelect:u,place:d="top",offset:p=10,events:v=["hover"],openOnClick:y=!1,positionStrategy:h="absolute",middlewares:w,wrapper:b,delayShow:S=0,delayHide:g=0,float:_=!1,hidden:A=!1,noArrow:T=!1,clickable:L=!1,closeOnEsc:C=!1,closeOnScroll:q=!1,closeOnResize:z=!1,style:M,position:W,afterShow:P,afterHide:F,content:K,contentWrapperRef:U,isOpen:X,setIsOpen:Y,activeAnchor:V,setActiveAnchor:Z,border:G,opacity:J,arrowColor:Q})=>{const ee=(0,react.useRef)(null),te=(0,react.useRef)(null),re=(0,react.useRef)(null),oe=(0,react.useRef)(null),[ne,le]=(0,react.useState)(d),[ie,ce]=(0,react.useState)({}),[se,ae]=(0,react.useState)({}),[ue,de]=(0,react.useState)(!1),[pe,ve]=(0,react.useState)(!1),me=(0,react.useRef)(!1),fe=(0,react.useRef)(null),{anchorRefs:ye,setActiveAnchor:he}=O(t),we=(0,react.useRef)(!1),[be,Se]=(0,react.useState)([]),Ee=(0,react.useRef)(!1),ge=y||v.includes("click");R((()=>(Ee.current=!0,()=>{Ee.current=!1})),[]),(0,react.useEffect)((()=>{if(!ue){const e=setTimeout((()=>{ve(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[ue]);const _e=e=>{Ee.current&&(e&&ve(!0),setTimeout((()=>{Ee.current&&(null==Y||Y(e),void 0===X&&de(e))}),10))};(0,react.useEffect)((()=>{if(void 0===X)return()=>null;X&&ve(!0);const e=setTimeout((()=>{de(X)}),10);return()=>{clearTimeout(e)}}),[X]),(0,react.useEffect)((()=>{ue!==me.current&&(me.current=ue,ue?null==P||P():null==F||F())}),[ue]);const Ae=(e=g)=>{oe.current&&clearTimeout(oe.current),oe.current=setTimeout((()=>{we.current||_e(!1)}),e)},Te=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return Z(null),void he({current:null});S?(re.current&&clearTimeout(re.current),re.current=setTimeout((()=>{_e(!0)}),S)):_e(!0),Z(r),he({current:r}),oe.current&&clearTimeout(oe.current)},Oe=()=>{L?Ae(g||100):g?Ae():_e(!1),re.current&&clearTimeout(re.current)},Le=({x:e,y:t})=>{k({place:d,offset:p,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:ee.current,tooltipArrowReference:te.current,strategy:h,middlewares:w,border:G}).then((e=>{Object.keys(e.tooltipStyles).length&&ce(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&ae(e.tooltipArrowStyles),le(e.place)}))},Re=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Le(r),fe.current=r},Ce=e=>{Te(e),g&&Ae()},Ne=e=>{var t;[document.querySelector(`[id='${a}']`),...be].some((t=>null==t?void 0:t.contains(e.target)))||(null===(t=ee.current)||void 0===t?void 0:t.contains(e.target))||(_e(!1),re.current&&clearTimeout(re.current))},ke=E(Te,50,!0),xe=E(Oe,50,!0),$e=(0,react.useCallback)((()=>{W?Le(W):_?fe.current&&Le(fe.current):(null==V?void 0:V.isConnected)&&k({place:d,offset:p,elementReference:V,tooltipReference:ee.current,tooltipArrowReference:te.current,strategy:h,middlewares:w,border:G}).then((e=>{Ee.current&&(Object.keys(e.tooltipStyles).length&&ce(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&ae(e.tooltipArrowStyles),le(e.place))}))}),[ue,V,K,M,d,p,h,W,_]);(0,react.useEffect)((()=>{var e,t;const r=new Set(ye);be.forEach((e=>{r.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&r.add({current:o});const n=()=>{_e(!1)},l=N(V),i=N(ee.current);q&&(window.addEventListener("scroll",n),null==l||l.addEventListener("scroll",n),null==i||i.addEventListener("scroll",n));let c=null;z?window.addEventListener("resize",n):V&&ee.current&&(c=(0,floating_ui_dom.Me)(V,ee.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const s=e=>{"Escape"===e.key&&_e(!1)};C&&window.addEventListener("keydown",s);const u=[];ge?(window.addEventListener("click",Ne),u.push({event:"click",listener:Ce})):(u.push({event:"mouseenter",listener:ke},{event:"mouseleave",listener:xe},{event:"focus",listener:ke},{event:"blur",listener:xe}),_&&u.push({event:"mousemove",listener:Re}));const d=()=>{we.current=!0},p=()=>{we.current=!1,Oe()};return L&&!ge&&(null===(e=ee.current)||void 0===e||e.addEventListener("mouseenter",d),null===(t=ee.current)||void 0===t||t.addEventListener("mouseleave",p)),u.forEach((({event:e,listener:t})=>{r.forEach((r=>{var o;null===(o=r.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;q&&(window.removeEventListener("scroll",n),null==l||l.removeEventListener("scroll",n),null==i||i.removeEventListener("scroll",n)),z?window.removeEventListener("resize",n):null==c||c(),ge&&window.removeEventListener("click",Ne),C&&window.removeEventListener("keydown",s),L&&!ge&&(null===(e=ee.current)||void 0===e||e.removeEventListener("mouseenter",d),null===(t=ee.current)||void 0===t||t.removeEventListener("mouseleave",p)),u.forEach((({event:e,listener:t})=>{r.forEach((r=>{var o;null===(o=r.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[V,$e,pe,ye,be,C,v]),(0,react.useEffect)((()=>{let e=null!=u?u:"";!e&&t&&(e=`[data-tooltip-id='${t}']`);const r=new MutationObserver((r=>{const o=[],n=[];r.forEach((r=>{if("attributes"===r.type&&"data-tooltip-id"===r.attributeName&&r.target.getAttribute("data-tooltip-id")===t&&o.push(r.target),"childList"===r.type){if(V){const t=[...r.removedNodes].filter((e=>1===e.nodeType));if(e)try{n.push(...t.filter((t=>t.matches(e)))),n.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,V))&&(ve(!1),_e(!1),Z(null),re.current&&clearTimeout(re.current),oe.current&&clearTimeout(oe.current),!0)}))}if(e)try{const t=[...r.addedNodes].filter((e=>1===e.nodeType));o.push(...t.filter((t=>t.matches(e)))),o.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(e){}}})),(o.length||n.length)&&Se((e=>[...e.filter((e=>!n.includes(e))),...o]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{r.disconnect()}}),[t,u,V]),(0,react.useEffect)((()=>{$e()}),[$e]),(0,react.useEffect)((()=>{if(!(null==U?void 0:U.current))return()=>null;const e=new ResizeObserver((()=>{$e()}));return e.observe(U.current),()=>{e.disconnect()}}),[K,null==U?void 0:U.current]),(0,react.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),r=[...be,t];V&&r.includes(V)||Z(null!==(e=be[0])&&void 0!==e?e:t)}),[a,be,V]),(0,react.useEffect)((()=>()=>{re.current&&clearTimeout(re.current),oe.current&&clearTimeout(oe.current)}),[]),(0,react.useEffect)((()=>{let e=u;if(!e&&t&&(e=`[data-tooltip-id='${t}']`),e)try{const t=Array.from(document.querySelectorAll(e));Se(t)}catch(e){Se([])}}),[t,u]);const Ie=!A&&K&&ue&&Object.keys(ie).length>0;return pe?react.createElement(b,{id:t,role:"tooltip",className:classnames_default()("react-tooltip","core-styles-module_tooltip__3vRRp",H.tooltip,H[s],n,`react-tooltip__place-${ne}`,{"react-tooltip__show":Ie,"core-styles-module_show__Nt9eE":Ie,"core-styles-module_fixed__pcSol":"fixed"===h,"core-styles-module_clickable__ZuTTB":L}),style:{...M,...ie,opacity:void 0!==J&&Ie?J:void 0},ref:ee},K,react.createElement(b,{className:classnames_default()("react-tooltip-arrow","core-styles-module_arrow__cvMwQ",H.arrow,l,{"core-styles-module_noArrow__xock6":T}),style:{...se,background:Q?`linear-gradient(to right bottom, transparent 50%, ${Q} 50%)`:void 0},ref:te})):null},z=({content:t})=>react.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),M=({id:t,anchorId:o,anchorSelect:n,content:l,html:s,render:a,className:u,classNameArrow:d,variant:p="dark",place:v="top",offset:m=10,wrapper:f="div",children:y=null,events:h=["hover"],openOnClick:w=!1,positionStrategy:b="absolute",middlewares:S,delayShow:E=0,delayHide:g=0,float:_=!1,hidden:A=!1,noArrow:T=!1,clickable:L=!1,closeOnEsc:R=!1,closeOnScroll:C=!1,closeOnResize:N=!1,style:k,position:x,isOpen:$,disableStyleInjection:I=!1,border:j,opacity:B,arrowColor:D,setIsOpen:H,afterShow:M,afterHide:W})=>{const[P,F]=(0,react.useState)(l),[K,U]=(0,react.useState)(s),[X,Y]=(0,react.useState)(v),[V,Z]=(0,react.useState)(p),[G,J]=(0,react.useState)(m),[Q,ee]=(0,react.useState)(E),[te,re]=(0,react.useState)(g),[oe,ne]=(0,react.useState)(_),[le,ie]=(0,react.useState)(A),[ce,se]=(0,react.useState)(f),[ae,ue]=(0,react.useState)(h),[de,pe]=(0,react.useState)(b),[ve,me]=(0,react.useState)(null),fe=(0,react.useRef)(I),{anchorRefs:ye,activeAnchor:he}=O(t),we=e=>null==e?void 0:e.getAttributeNames().reduce(((t,r)=>{var o;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(r))&&void 0!==o?o:null),t}),{}),be=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:v)},content:e=>{F(null!=e?e:l)},html:e=>{U(null!=e?e:s)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:p)},offset:e=>{J(null===e?m:Number(e))},wrapper:e=>{var t;se(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");ue(null!=t?t:h)},"position-strategy":e=>{var t;pe(null!==(t=e)&&void 0!==t?t:b)},"delay-show":e=>{ee(null===e?E:Number(e))},"delay-hide":e=>{re(null===e?g:Number(e))},float:e=>{ne(null===e?_:"true"===e)},hidden:e=>{ie(null===e?A:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,r])=>{var o;null===(o=t[e])||void 0===o||o.call(t,r)}))};(0,react.useEffect)((()=>{F(l)}),[l]),(0,react.useEffect)((()=>{U(s)}),[s]),(0,react.useEffect)((()=>{Y(v)}),[v]),(0,react.useEffect)((()=>{Z(p)}),[p]),(0,react.useEffect)((()=>{J(m)}),[m]),(0,react.useEffect)((()=>{ee(E)}),[E]),(0,react.useEffect)((()=>{re(g)}),[g]),(0,react.useEffect)((()=>{ne(_)}),[_]),(0,react.useEffect)((()=>{ie(A)}),[A]),(0,react.useEffect)((()=>{pe(b)}),[b]),(0,react.useEffect)((()=>{fe.current!==I&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[I]),(0,react.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===I,disableBase:I}}))}),[]),(0,react.useEffect)((()=>{var e;const r=new Set(ye);let l=n;if(!l&&t&&(l=`[data-tooltip-id='${t}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${o}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const c=null!==(e=null!=ve?ve:i)&&void 0!==e?e:he.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=we(c);be(r)}))})),a={attributes:!0,childList:!1,subtree:!1};if(c){const e=we(c);be(e),s.observe(c,a)}return()=>{s.disconnect()}}),[ye,he,ve,o,n]),(0,react.useEffect)((()=>{(null==k?void 0:k.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),j&&!CSS.supports("border",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`),(null==k?void 0:k.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),B&&!CSS.supports("opacity",`${B}`)&&console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`)}),[]);let Se=y;const Ee=(0,react.useRef)(null);if(a){const t=a({content:null!=P?P:null,activeAnchor:ve});Se=t?react.createElement("div",{ref:Ee,className:"react-tooltip-content-wrapper"},t):null}else P&&(Se=P);K&&(Se=react.createElement(z,{content:K}));const ge={id:t,anchorId:o,anchorSelect:n,className:u,classNameArrow:d,content:Se,contentWrapperRef:Ee,place:X,variant:V,offset:G,wrapper:ce,events:ae,openOnClick:w,positionStrategy:de,middlewares:S,delayShow:Q,delayHide:te,float:oe,hidden:le,noArrow:T,clickable:L,closeOnEsc:R,closeOnScroll:C,closeOnResize:N,style:k,position:x,isOpen:$,border:j,opacity:B,arrowColor:D,setIsOpen:H,afterShow:M,afterHide:W,activeAnchor:ve,setActiveAnchor:e=>me(e)};return react.createElement(q,{...ge})};"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||b({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||b({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var info=__webpack_require__("./src/icons/functional-icons/info.svg"),utils=__webpack_require__("./src/common/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Tooltip_Tooltip_Tooltip=function Tooltip(props){var uniqueAnchorId="A"+(0,utils.KE)();return(0,jsx_runtime.jsxs)("div",{id:uniqueAnchorId,className:"sds--tooltip-container ".concat(props.standalone?"":"sibbling"),children:[props.children?react.Children.map(props.children,(function(child){return child})):(0,jsx_runtime.jsx)(info.r,{}),(0,jsx_runtime.jsx)(M,{anchorSelect:"#"+uniqueAnchorId,place:props.place,clickable:props.clickable||!1,disableStyleInjection:"core",html:(0,utils.Nw)(props.tip)})]})};Tooltip_Tooltip_Tooltip.displayName="Tooltip";const components_Tooltip_Tooltip=Tooltip_Tooltip_Tooltip;try{Tooltip_Tooltip_Tooltip.displayName="Tooltip",Tooltip_Tooltip_Tooltip.__docgenInfo={description:"",displayName:"Tooltip",props:{tip:{defaultValue:null,description:"",name:"tip",required:!0,type:{name:"string"}},clickable:{defaultValue:null,description:"",name:"clickable",required:!1,type:{name:"boolean"}},standalone:{defaultValue:null,description:"",name:"standalone",required:!1,type:{name:"boolean"}},place:{defaultValue:null,description:"",name:"place",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"top-start"'},{value:'"top-end"'},{value:'"right"'},{value:'"right-start"'},{value:'"right-end"'},{value:'"bottom"'},{value:'"bottom-start"'},{value:'"bottom-end"'},{value:'"left"'},{value:'"left-start"'},{value:'"left-end"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Tooltip/Tooltip.tsx#Tooltip"]={docgenInfo:Tooltip_Tooltip_Tooltip.__docgenInfo,name:"Tooltip",path:"src/components/Tooltip/Tooltip.tsx#Tooltip"})}catch(__react_docgen_typescript_loader_error){}},"./src/icons/functional-icons/info.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__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{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i{"use strict";__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--tooltip-container{display:inline-block}.sds--tooltip-container.sibbling{margin-left:8px}.sds--tooltip-container svg.info-svg{width:14px;height:auto}.sds--tooltip-container .react-tooltip{text-align:center;background-color:var(--sds--color--gray--500);opacity:1;border-radius:6px;max-width:280px;word-break:break-word;font-size:.875rem;line-height:1.2857142857;font-weight:normal;z-index:9999}","",{version:3,sources:["webpack://./src/components/Tooltip/Tooltip.scss"],names:[],mappings:"AAAA,wBACE,oBAAA,CAEA,iCACE,eAAA,CAIF,qCACE,UAAA,CACA,WAAA,CAIF,uCACE,iBAAA,CACA,6CAAA,CACA,SAAA,CACA,iBAAA,CACA,eAAA,CACA,qBAAA,CACA,iBAAA,CACA,wBAAA,CACA,kBAAA,CACA,YAAA",sourcesContent:[".sds--tooltip-container {\n display: inline-block;\n\n &.sibbling {\n margin-left: 8px;\n }\n\n\n svg.info-svg {\n width: 14px;\n height: auto;\n\n }\n\n .react-tooltip {\n text-align: center;\n background-color: var(--sds--color--gray--500);\n opacity: 1;\n border-radius: 6px;\n max-width: 280px;\n word-break: break-word;\n font-size: .875rem;\n line-height: calc(18 / 14);\n font-weight: normal;\n z-index: 9999;\n }\n\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/3557.f9ddbd14.iframe.bundle.js b/3557.f9ddbd14.iframe.bundle.js new file mode 100644 index 00000000..df4f6375 --- /dev/null +++ b/3557.f9ddbd14.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 3557.f9ddbd14.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[3557],{"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__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{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>components_Tooltip_Tooltip});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),Tooltip=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Tooltip/Tooltip.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()(Tooltip.Z,options);Tooltip.Z&&Tooltip.Z.locals&&Tooltip.Z.locals;var floating_ui_core=__webpack_require__("./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"),floating_ui_dom=__webpack_require__("./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),process=__webpack_require__("./node_modules/process/browser.js");const y="react-tooltip-core-styles",h="react-tooltip-base-styles",w={core:!1,base:!1};function b({css:e,id:t=h,type:r="base",ref:o}){var n,l;if(!e||"undefined"==typeof document||w[r])return;if("core"===r&&void 0!==process&&(null===(n=null==process?void 0:process.env)||void 0===n?void 0:n.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&void 0!==process&&(null===(l=null==process?void 0:process.env)||void 0===l?void 0:l.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t=y),o||(o={});const{insertAt:i}=o;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const c=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===i&&c.firstChild?c.insertBefore(s,c.firstChild):c.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),w[r]=!0}const E=(e,t,r)=>{let o=null;return function(...n){const l=()=>{o=null,r||e.apply(this,n)};r&&!o&&(e.apply(this,n),o=setTimeout(l,t)),r||(o&&clearTimeout(o),o=setTimeout(l,t))}},g="DEFAULT_TOOLTIP_ID",_={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},A=(0,react.createContext)({getTooltipData:()=>_});function O(e=g){return(0,react.useContext)(A).getTooltipData(e)}const R="undefined"!=typeof window?react.useLayoutEffect:react.useEffect,C=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r}))},N=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(C(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},k=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:o="top",offset:n=10,strategy:l="absolute",middlewares:i=[(0,floating_ui_core.cv)(Number(n)),(0,floating_ui_core.RR)(),(0,floating_ui_core.uY)({padding:5})],border:c})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const s=i;return r?(s.push((0,floating_ui_core.x7)({element:r,padding:5})),(0,floating_ui_dom.oo)(e,t,{placement:o,strategy:l,middleware:s}).then((({x:e,y:t,placement:r,middlewareData:o})=>{var n,l;const i={left:`${e}px`,top:`${t}px`,border:c},{x:s,y:a}=null!==(n=o.arrow)&&void 0!==n?n:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==l?l:"bottom",d=c&&{borderBottom:c,borderRight:c};let p=0;if(c){const e=`${c}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:r}}))):(0,floating_ui_dom.oo)(e,t,{placement:"bottom",strategy:l,middleware:s}).then((({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})))};var H={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const q=({id:t,className:n,classNameArrow:l,variant:s="dark",anchorId:a,anchorSelect:u,place:d="top",offset:p=10,events:v=["hover"],openOnClick:y=!1,positionStrategy:h="absolute",middlewares:w,wrapper:b,delayShow:S=0,delayHide:g=0,float:_=!1,hidden:A=!1,noArrow:T=!1,clickable:L=!1,closeOnEsc:C=!1,closeOnScroll:q=!1,closeOnResize:z=!1,style:M,position:W,afterShow:P,afterHide:F,content:K,contentWrapperRef:U,isOpen:X,setIsOpen:Y,activeAnchor:V,setActiveAnchor:Z,border:G,opacity:J,arrowColor:Q})=>{const ee=(0,react.useRef)(null),te=(0,react.useRef)(null),re=(0,react.useRef)(null),oe=(0,react.useRef)(null),[ne,le]=(0,react.useState)(d),[ie,ce]=(0,react.useState)({}),[se,ae]=(0,react.useState)({}),[ue,de]=(0,react.useState)(!1),[pe,ve]=(0,react.useState)(!1),me=(0,react.useRef)(!1),fe=(0,react.useRef)(null),{anchorRefs:ye,setActiveAnchor:he}=O(t),we=(0,react.useRef)(!1),[be,Se]=(0,react.useState)([]),Ee=(0,react.useRef)(!1),ge=y||v.includes("click");R((()=>(Ee.current=!0,()=>{Ee.current=!1})),[]),(0,react.useEffect)((()=>{if(!ue){const e=setTimeout((()=>{ve(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[ue]);const _e=e=>{Ee.current&&(e&&ve(!0),setTimeout((()=>{Ee.current&&(null==Y||Y(e),void 0===X&&de(e))}),10))};(0,react.useEffect)((()=>{if(void 0===X)return()=>null;X&&ve(!0);const e=setTimeout((()=>{de(X)}),10);return()=>{clearTimeout(e)}}),[X]),(0,react.useEffect)((()=>{ue!==me.current&&(me.current=ue,ue?null==P||P():null==F||F())}),[ue]);const Ae=(e=g)=>{oe.current&&clearTimeout(oe.current),oe.current=setTimeout((()=>{we.current||_e(!1)}),e)},Te=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return Z(null),void he({current:null});S?(re.current&&clearTimeout(re.current),re.current=setTimeout((()=>{_e(!0)}),S)):_e(!0),Z(r),he({current:r}),oe.current&&clearTimeout(oe.current)},Oe=()=>{L?Ae(g||100):g?Ae():_e(!1),re.current&&clearTimeout(re.current)},Le=({x:e,y:t})=>{k({place:d,offset:p,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:ee.current,tooltipArrowReference:te.current,strategy:h,middlewares:w,border:G}).then((e=>{Object.keys(e.tooltipStyles).length&&ce(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&ae(e.tooltipArrowStyles),le(e.place)}))},Re=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};Le(r),fe.current=r},Ce=e=>{Te(e),g&&Ae()},Ne=e=>{var t;[document.querySelector(`[id='${a}']`),...be].some((t=>null==t?void 0:t.contains(e.target)))||(null===(t=ee.current)||void 0===t?void 0:t.contains(e.target))||(_e(!1),re.current&&clearTimeout(re.current))},ke=E(Te,50,!0),xe=E(Oe,50,!0),$e=(0,react.useCallback)((()=>{W?Le(W):_?fe.current&&Le(fe.current):(null==V?void 0:V.isConnected)&&k({place:d,offset:p,elementReference:V,tooltipReference:ee.current,tooltipArrowReference:te.current,strategy:h,middlewares:w,border:G}).then((e=>{Ee.current&&(Object.keys(e.tooltipStyles).length&&ce(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&ae(e.tooltipArrowStyles),le(e.place))}))}),[ue,V,K,M,d,p,h,W,_]);(0,react.useEffect)((()=>{var e,t;const r=new Set(ye);be.forEach((e=>{r.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&r.add({current:o});const n=()=>{_e(!1)},l=N(V),i=N(ee.current);q&&(window.addEventListener("scroll",n),null==l||l.addEventListener("scroll",n),null==i||i.addEventListener("scroll",n));let c=null;z?window.addEventListener("resize",n):V&&ee.current&&(c=(0,floating_ui_dom.Me)(V,ee.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const s=e=>{"Escape"===e.key&&_e(!1)};C&&window.addEventListener("keydown",s);const u=[];ge?(window.addEventListener("click",Ne),u.push({event:"click",listener:Ce})):(u.push({event:"mouseenter",listener:ke},{event:"mouseleave",listener:xe},{event:"focus",listener:ke},{event:"blur",listener:xe}),_&&u.push({event:"mousemove",listener:Re}));const d=()=>{we.current=!0},p=()=>{we.current=!1,Oe()};return L&&!ge&&(null===(e=ee.current)||void 0===e||e.addEventListener("mouseenter",d),null===(t=ee.current)||void 0===t||t.addEventListener("mouseleave",p)),u.forEach((({event:e,listener:t})=>{r.forEach((r=>{var o;null===(o=r.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;q&&(window.removeEventListener("scroll",n),null==l||l.removeEventListener("scroll",n),null==i||i.removeEventListener("scroll",n)),z?window.removeEventListener("resize",n):null==c||c(),ge&&window.removeEventListener("click",Ne),C&&window.removeEventListener("keydown",s),L&&!ge&&(null===(e=ee.current)||void 0===e||e.removeEventListener("mouseenter",d),null===(t=ee.current)||void 0===t||t.removeEventListener("mouseleave",p)),u.forEach((({event:e,listener:t})=>{r.forEach((r=>{var o;null===(o=r.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[V,$e,pe,ye,be,C,v]),(0,react.useEffect)((()=>{let e=null!=u?u:"";!e&&t&&(e=`[data-tooltip-id='${t}']`);const r=new MutationObserver((r=>{const o=[],n=[];r.forEach((r=>{if("attributes"===r.type&&"data-tooltip-id"===r.attributeName&&r.target.getAttribute("data-tooltip-id")===t&&o.push(r.target),"childList"===r.type){if(V){const t=[...r.removedNodes].filter((e=>1===e.nodeType));if(e)try{n.push(...t.filter((t=>t.matches(e)))),n.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,V))&&(ve(!1),_e(!1),Z(null),re.current&&clearTimeout(re.current),oe.current&&clearTimeout(oe.current),!0)}))}if(e)try{const t=[...r.addedNodes].filter((e=>1===e.nodeType));o.push(...t.filter((t=>t.matches(e)))),o.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(e){}}})),(o.length||n.length)&&Se((e=>[...e.filter((e=>!n.includes(e))),...o]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{r.disconnect()}}),[t,u,V]),(0,react.useEffect)((()=>{$e()}),[$e]),(0,react.useEffect)((()=>{if(!(null==U?void 0:U.current))return()=>null;const e=new ResizeObserver((()=>{$e()}));return e.observe(U.current),()=>{e.disconnect()}}),[K,null==U?void 0:U.current]),(0,react.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),r=[...be,t];V&&r.includes(V)||Z(null!==(e=be[0])&&void 0!==e?e:t)}),[a,be,V]),(0,react.useEffect)((()=>()=>{re.current&&clearTimeout(re.current),oe.current&&clearTimeout(oe.current)}),[]),(0,react.useEffect)((()=>{let e=u;if(!e&&t&&(e=`[data-tooltip-id='${t}']`),e)try{const t=Array.from(document.querySelectorAll(e));Se(t)}catch(e){Se([])}}),[t,u]);const Ie=!A&&K&&ue&&Object.keys(ie).length>0;return pe?react.createElement(b,{id:t,role:"tooltip",className:classnames_default()("react-tooltip","core-styles-module_tooltip__3vRRp",H.tooltip,H[s],n,`react-tooltip__place-${ne}`,{"react-tooltip__show":Ie,"core-styles-module_show__Nt9eE":Ie,"core-styles-module_fixed__pcSol":"fixed"===h,"core-styles-module_clickable__ZuTTB":L}),style:{...M,...ie,opacity:void 0!==J&&Ie?J:void 0},ref:ee},K,react.createElement(b,{className:classnames_default()("react-tooltip-arrow","core-styles-module_arrow__cvMwQ",H.arrow,l,{"core-styles-module_noArrow__xock6":T}),style:{...se,background:Q?`linear-gradient(to right bottom, transparent 50%, ${Q} 50%)`:void 0},ref:te})):null},z=({content:t})=>react.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),M=({id:t,anchorId:o,anchorSelect:n,content:l,html:s,render:a,className:u,classNameArrow:d,variant:p="dark",place:v="top",offset:m=10,wrapper:f="div",children:y=null,events:h=["hover"],openOnClick:w=!1,positionStrategy:b="absolute",middlewares:S,delayShow:E=0,delayHide:g=0,float:_=!1,hidden:A=!1,noArrow:T=!1,clickable:L=!1,closeOnEsc:R=!1,closeOnScroll:C=!1,closeOnResize:N=!1,style:k,position:x,isOpen:$,disableStyleInjection:I=!1,border:j,opacity:B,arrowColor:D,setIsOpen:H,afterShow:M,afterHide:W})=>{const[P,F]=(0,react.useState)(l),[K,U]=(0,react.useState)(s),[X,Y]=(0,react.useState)(v),[V,Z]=(0,react.useState)(p),[G,J]=(0,react.useState)(m),[Q,ee]=(0,react.useState)(E),[te,re]=(0,react.useState)(g),[oe,ne]=(0,react.useState)(_),[le,ie]=(0,react.useState)(A),[ce,se]=(0,react.useState)(f),[ae,ue]=(0,react.useState)(h),[de,pe]=(0,react.useState)(b),[ve,me]=(0,react.useState)(null),fe=(0,react.useRef)(I),{anchorRefs:ye,activeAnchor:he}=O(t),we=e=>null==e?void 0:e.getAttributeNames().reduce(((t,r)=>{var o;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(r))&&void 0!==o?o:null),t}),{}),be=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:v)},content:e=>{F(null!=e?e:l)},html:e=>{U(null!=e?e:s)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:p)},offset:e=>{J(null===e?m:Number(e))},wrapper:e=>{var t;se(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");ue(null!=t?t:h)},"position-strategy":e=>{var t;pe(null!==(t=e)&&void 0!==t?t:b)},"delay-show":e=>{ee(null===e?E:Number(e))},"delay-hide":e=>{re(null===e?g:Number(e))},float:e=>{ne(null===e?_:"true"===e)},hidden:e=>{ie(null===e?A:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,r])=>{var o;null===(o=t[e])||void 0===o||o.call(t,r)}))};(0,react.useEffect)((()=>{F(l)}),[l]),(0,react.useEffect)((()=>{U(s)}),[s]),(0,react.useEffect)((()=>{Y(v)}),[v]),(0,react.useEffect)((()=>{Z(p)}),[p]),(0,react.useEffect)((()=>{J(m)}),[m]),(0,react.useEffect)((()=>{ee(E)}),[E]),(0,react.useEffect)((()=>{re(g)}),[g]),(0,react.useEffect)((()=>{ne(_)}),[_]),(0,react.useEffect)((()=>{ie(A)}),[A]),(0,react.useEffect)((()=>{pe(b)}),[b]),(0,react.useEffect)((()=>{fe.current!==I&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[I]),(0,react.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===I,disableBase:I}}))}),[]),(0,react.useEffect)((()=>{var e;const r=new Set(ye);let l=n;if(!l&&t&&(l=`[data-tooltip-id='${t}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${o}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const c=null!==(e=null!=ve?ve:i)&&void 0!==e?e:he.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=we(c);be(r)}))})),a={attributes:!0,childList:!1,subtree:!1};if(c){const e=we(c);be(e),s.observe(c,a)}return()=>{s.disconnect()}}),[ye,he,ve,o,n]),(0,react.useEffect)((()=>{(null==k?void 0:k.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),j&&!CSS.supports("border",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`),(null==k?void 0:k.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),B&&!CSS.supports("opacity",`${B}`)&&console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`)}),[]);let Se=y;const Ee=(0,react.useRef)(null);if(a){const t=a({content:null!=P?P:null,activeAnchor:ve});Se=t?react.createElement("div",{ref:Ee,className:"react-tooltip-content-wrapper"},t):null}else P&&(Se=P);K&&(Se=react.createElement(z,{content:K}));const ge={id:t,anchorId:o,anchorSelect:n,className:u,classNameArrow:d,content:Se,contentWrapperRef:Ee,place:X,variant:V,offset:G,wrapper:ce,events:ae,openOnClick:w,positionStrategy:de,middlewares:S,delayShow:Q,delayHide:te,float:oe,hidden:le,noArrow:T,clickable:L,closeOnEsc:R,closeOnScroll:C,closeOnResize:N,style:k,position:x,isOpen:$,border:j,opacity:B,arrowColor:D,setIsOpen:H,afterShow:M,afterHide:W,activeAnchor:ve,setActiveAnchor:e=>me(e)};return react.createElement(q,{...ge})};"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||b({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||b({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var info=__webpack_require__("./src/icons/functional-icons/info.svg"),utils=__webpack_require__("./src/common/utils.ts"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Tooltip_Tooltip_Tooltip=function Tooltip(props){var uniqueAnchorId="A"+(0,utils.KE)();return(0,jsx_runtime.jsxs)("div",{id:uniqueAnchorId,className:"sds--tooltip-container ".concat(props.standalone?"":"sibbling"),children:[props.children?react.Children.map(props.children,(function(child){return child})):(0,jsx_runtime.jsx)(info.r,{}),(0,jsx_runtime.jsx)(M,{anchorSelect:"#"+uniqueAnchorId,place:props.place,clickable:props.clickable||!1,disableStyleInjection:"core",html:(0,utils.Nw)(props.tip)})]})};Tooltip_Tooltip_Tooltip.displayName="Tooltip";const components_Tooltip_Tooltip=Tooltip_Tooltip_Tooltip;try{Tooltip_Tooltip_Tooltip.displayName="Tooltip",Tooltip_Tooltip_Tooltip.__docgenInfo={description:"",displayName:"Tooltip",props:{tip:{defaultValue:null,description:"",name:"tip",required:!0,type:{name:"string"}},clickable:{defaultValue:null,description:"",name:"clickable",required:!1,type:{name:"boolean"}},standalone:{defaultValue:null,description:"",name:"standalone",required:!1,type:{name:"boolean"}},place:{defaultValue:null,description:"",name:"place",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"top-start"'},{value:'"top-end"'},{value:'"right"'},{value:'"right-start"'},{value:'"right-end"'},{value:'"bottom"'},{value:'"bottom-start"'},{value:'"bottom-end"'},{value:'"left"'},{value:'"left-start"'},{value:'"left-end"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Tooltip/Tooltip.tsx#Tooltip"]={docgenInfo:Tooltip_Tooltip_Tooltip.__docgenInfo,name:"Tooltip",path:"src/components/Tooltip/Tooltip.tsx#Tooltip"})}catch(__react_docgen_typescript_loader_error){}},"./src/icons/functional-icons/info.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__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{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i{"use strict";__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--tooltip-container{display:inline-block}.sds--tooltip-container.sibbling{margin-left:8px}.sds--tooltip-container svg.info-svg{width:14px;height:auto}.sds--tooltip-container .react-tooltip{text-align:center;background-color:var(--sds--color--gray--500);opacity:1;border-radius:6px;max-width:280px;word-break:break-word;font-size:.875rem;line-height:1.2857142857;font-weight:normal;z-index:9999}","",{version:3,sources:["webpack://./src/components/Tooltip/Tooltip.scss"],names:[],mappings:"AAAA,wBACE,oBAAA,CAEA,iCACE,eAAA,CAIF,qCACE,UAAA,CACA,WAAA,CAIF,uCACE,iBAAA,CACA,6CAAA,CACA,SAAA,CACA,iBAAA,CACA,eAAA,CACA,qBAAA,CACA,iBAAA,CACA,wBAAA,CACA,kBAAA,CACA,YAAA",sourcesContent:[".sds--tooltip-container {\n display: inline-block;\n\n &.sibbling {\n margin-left: 8px;\n }\n\n\n svg.info-svg {\n width: 14px;\n height: auto;\n\n }\n\n .react-tooltip {\n text-align: center;\n background-color: var(--sds--color--gray--500);\n opacity: 1;\n border-radius: 6px;\n max-width: 280px;\n word-break: break-word;\n font-size: .875rem;\n line-height: calc(18 / 14);\n font-weight: normal;\n z-index: 9999;\n }\n\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/3557.20bfb719.iframe.bundle.js.LICENSE.txt b/3557.f9ddbd14.iframe.bundle.js.LICENSE.txt similarity index 100% rename from 3557.20bfb719.iframe.bundle.js.LICENSE.txt rename to 3557.f9ddbd14.iframe.bundle.js.LICENSE.txt diff --git a/components-Accordion-Accordion-stories.681e598b.iframe.bundle.js b/components-Accordion-Accordion-stories.681e598b.iframe.bundle.js new file mode 100644 index 00000000..e89604b7 --- /dev/null +++ b/components-Accordion-Accordion-stories.681e598b.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[8313],{"./src/components/Accordion/Accordion.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AccordionTemplate:()=>AccordionTemplate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _AccordionTemplate$pa,_AccordionTemplate$pa2,_Accordion__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Accordion/Accordion.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__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===(_AccordionTemplate$pa2=AccordionTemplate.parameters)||void 0===_AccordionTemplate$pa2||null===(_AccordionTemplate$pa2=_AccordionTemplate$pa2.docs)||void 0===_AccordionTemplate$pa2?void 0:_AccordionTemplate$pa2.source)})});var __namedExportsOrder=["AccordionTemplate"]},"./src/components/Accordion/Accordion.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_Accordion_Accordion});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),Accordion=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Accordion/Accordion.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()(Accordion.Z,options);Accordion.Z&&Accordion.Z.locals&&Accordion.Z.locals;var arrow_down_2=__webpack_require__("./src/icons/functional-icons/arrow-down-2.svg"),jsx_runtime=__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 _defineProperty(obj,key,value){return(key=function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof(key)?key:String(key)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}(arr,i)||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,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure 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:()=>SvgArrowDown2});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__,{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--accordion svg{width:.6666666667em;height:.3111111111em}","",{version:3,sources:["webpack://./src/components/Accordion/Accordion.scss"],names:[],mappings:"AAAA,oBACI,mBAAA,CACA,oBAAA",sourcesContent:[".sds--accordion svg {\n width: calc(12em/18);\n height: calc(5.6em/18)\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-Accordion-Accordion-stories.e8de9469.iframe.bundle.js b/components-Accordion-Accordion-stories.e8de9469.iframe.bundle.js deleted file mode 100644 index 4ecea1c4..00000000 --- a/components-Accordion-Accordion-stories.e8de9469.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[8313],{"./src/components/Accordion/Accordion.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AccordionTemplate:()=>AccordionTemplate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Accordion_stories});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),Accordion=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Accordion/Accordion.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()(Accordion.Z,options);Accordion.Z&&Accordion.Z.locals&&Accordion.Z.locals;var arrow_down_2=__webpack_require__("./src/icons/functional-icons/arrow-down-2.svg"),jsx_runtime=__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 _defineProperty(obj,key,value){return(key=function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof(key)?key:String(key)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return}finally{if(_d)throw _e}}return _arr}}(arr,i)||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,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure 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 "},null===(_AccordionTemplate$pa2=AccordionTemplate.parameters)||void 0===_AccordionTemplate$pa2||null===(_AccordionTemplate$pa2=_AccordionTemplate$pa2.docs)||void 0===_AccordionTemplate$pa2?void 0:_AccordionTemplate$pa2.source)})});var __namedExportsOrder=["AccordionTemplate"]},"./src/icons/functional-icons/arrow-down-2.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>SvgArrowDown2});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__,{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--accordion svg{width:.6666666667em;height:.3111111111em}","",{version:3,sources:["webpack://./src/components/Accordion/Accordion.scss"],names:[],mappings:"AAAA,oBACI,mBAAA,CACA,oBAAA",sourcesContent:[".sds--accordion svg {\n width: calc(12em/18);\n height: calc(5.6em/18)\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-Alert-Alert-stories.2f27d129.iframe.bundle.js b/components-Alert-Alert-stories.2f27d129.iframe.bundle.js new file mode 100644 index 00000000..17928099 --- /dev/null +++ b/components-Alert-Alert-stories.2f27d129.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[7586],{"./src/components/Alert/Alert.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDefault:()=>AlertDefault,AlertError:()=>AlertError,AlertInfo:()=>AlertInfo,AlertInfoNoClose:()=>AlertInfoNoClose,AlertSanitize:()=>AlertSanitize,AlertWarning:()=>AlertWarning,AlertWithButton:()=>AlertWithButton,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _AlertDefault$paramet,_AlertDefault$paramet2,_AlertWithButton$para,_AlertWithButton$para2,_AlertInfo$parameters,_AlertInfo$parameters2,_AlertSanitize$parame,_AlertSanitize$parame2,_AlertInfoNoClose$par,_AlertInfoNoClose$par2,_AlertWarning$paramet,_AlertWarning$paramet2,_AlertError$parameter,_AlertError$parameter2,_Alert__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Alert/Alert.tsx"),_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;ialert('reflected - owned')<\/script>",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Info,close:function close(){return!0}};var AlertInfoNoClose=Template.bind({});AlertInfoNoClose.args={message:"Alert no close",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Info,asChild:!0};var AlertWarning=Template.bind({});AlertWarning.args={message:"Alert warning",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Warning,close:function close(){return!0}};var AlertError=Template.bind({});AlertError.args={message:"Alert error",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Error,close:function close(){return!0}},AlertDefault.parameters=_objectSpread(_objectSpread({},AlertDefault.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertDefault$paramet=AlertDefault.parameters)||void 0===_AlertDefault$paramet?void 0:_AlertDefault$paramet.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertDefault$paramet2=AlertDefault.parameters)||void 0===_AlertDefault$paramet2||null===(_AlertDefault$paramet2=_AlertDefault$paramet2.docs)||void 0===_AlertDefault$paramet2?void 0:_AlertDefault$paramet2.source)})}),AlertWithButton.parameters=_objectSpread(_objectSpread({},AlertWithButton.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertWithButton$para=AlertWithButton.parameters)||void 0===_AlertWithButton$para?void 0:_AlertWithButton$para.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertWithButton$para2=AlertWithButton.parameters)||void 0===_AlertWithButton$para2||null===(_AlertWithButton$para2=_AlertWithButton$para2.docs)||void 0===_AlertWithButton$para2?void 0:_AlertWithButton$para2.source)})}),AlertInfo.parameters=_objectSpread(_objectSpread({},AlertInfo.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertInfo$parameters=AlertInfo.parameters)||void 0===_AlertInfo$parameters?void 0:_AlertInfo$parameters.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertInfo$parameters2=AlertInfo.parameters)||void 0===_AlertInfo$parameters2||null===(_AlertInfo$parameters2=_AlertInfo$parameters2.docs)||void 0===_AlertInfo$parameters2?void 0:_AlertInfo$parameters2.source)})}),AlertSanitize.parameters=_objectSpread(_objectSpread({},AlertSanitize.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertSanitize$parame=AlertSanitize.parameters)||void 0===_AlertSanitize$parame?void 0:_AlertSanitize$parame.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertSanitize$parame2=AlertSanitize.parameters)||void 0===_AlertSanitize$parame2||null===(_AlertSanitize$parame2=_AlertSanitize$parame2.docs)||void 0===_AlertSanitize$parame2?void 0:_AlertSanitize$parame2.source)})}),AlertInfoNoClose.parameters=_objectSpread(_objectSpread({},AlertInfoNoClose.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertInfoNoClose$par=AlertInfoNoClose.parameters)||void 0===_AlertInfoNoClose$par?void 0:_AlertInfoNoClose$par.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertInfoNoClose$par2=AlertInfoNoClose.parameters)||void 0===_AlertInfoNoClose$par2||null===(_AlertInfoNoClose$par2=_AlertInfoNoClose$par2.docs)||void 0===_AlertInfoNoClose$par2?void 0:_AlertInfoNoClose$par2.source)})}),AlertWarning.parameters=_objectSpread(_objectSpread({},AlertWarning.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertWarning$paramet=AlertWarning.parameters)||void 0===_AlertWarning$paramet?void 0:_AlertWarning$paramet.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertWarning$paramet2=AlertWarning.parameters)||void 0===_AlertWarning$paramet2||null===(_AlertWarning$paramet2=_AlertWarning$paramet2.docs)||void 0===_AlertWarning$paramet2?void 0:_AlertWarning$paramet2.source)})}),AlertError.parameters=_objectSpread(_objectSpread({},AlertError.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertError$parameter=AlertError.parameters)||void 0===_AlertError$parameter?void 0:_AlertError$parameter.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertError$parameter2=AlertError.parameters)||void 0===_AlertError$parameter2||null===(_AlertError$parameter2=_AlertError$parameter2.docs)||void 0===_AlertError$parameter2?void 0:_AlertError$parameter2.source)})});var __namedExportsOrder=["AlertDefault","AlertWithButton","AlertInfo","AlertSanitize","AlertInfoNoClose","AlertWarning","AlertError"]},"./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__,{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/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:()=>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__.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___}}]); \ No newline at end of file diff --git a/components-Alert-Alert-stories.a6d40b4d.iframe.bundle.js b/components-Alert-Alert-stories.a6d40b4d.iframe.bundle.js deleted file mode 100644 index 100e7375..00000000 --- a/components-Alert-Alert-stories.a6d40b4d.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[7586],{"./src/components/Alert/Alert.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDefault:()=>AlertDefault,AlertError:()=>AlertError,AlertInfo:()=>AlertInfo,AlertInfoNoClose:()=>AlertInfoNoClose,AlertSanitize:()=>AlertSanitize,AlertWarning:()=>AlertWarning,AlertWithButton:()=>AlertWithButton,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _AlertDefault$paramet,_AlertDefault$paramet2,_AlertWithButton$para,_AlertWithButton$para2,_AlertInfo$parameters,_AlertInfo$parameters2,_AlertSanitize$parame,_AlertSanitize$parame2,_AlertInfoNoClose$par,_AlertInfoNoClose$par2,_AlertWarning$paramet,_AlertWarning$paramet2,_AlertError$parameter,_AlertError$parameter2,_Alert__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Alert/Alert.tsx"),_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;ialert('reflected - owned')<\/script>",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Info,close:function close(){return!0}};var AlertInfoNoClose=Template.bind({});AlertInfoNoClose.args={message:"Alert no close",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Info,asChild:!0};var AlertWarning=Template.bind({});AlertWarning.args={message:"Alert warning",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Warning,close:function close(){return!0}};var AlertError=Template.bind({});AlertError.args={message:"Alert error",alertType:_AlertType__WEBPACK_IMPORTED_MODULE_2__.Z.Error,close:function close(){return!0}},AlertDefault.parameters=_objectSpread(_objectSpread({},AlertDefault.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertDefault$paramet=AlertDefault.parameters)||void 0===_AlertDefault$paramet?void 0:_AlertDefault$paramet.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertDefault$paramet2=AlertDefault.parameters)||void 0===_AlertDefault$paramet2||null===(_AlertDefault$paramet2=_AlertDefault$paramet2.docs)||void 0===_AlertDefault$paramet2?void 0:_AlertDefault$paramet2.source)})}),AlertWithButton.parameters=_objectSpread(_objectSpread({},AlertWithButton.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertWithButton$para=AlertWithButton.parameters)||void 0===_AlertWithButton$para?void 0:_AlertWithButton$para.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertWithButton$para2=AlertWithButton.parameters)||void 0===_AlertWithButton$para2||null===(_AlertWithButton$para2=_AlertWithButton$para2.docs)||void 0===_AlertWithButton$para2?void 0:_AlertWithButton$para2.source)})}),AlertInfo.parameters=_objectSpread(_objectSpread({},AlertInfo.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertInfo$parameters=AlertInfo.parameters)||void 0===_AlertInfo$parameters?void 0:_AlertInfo$parameters.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertInfo$parameters2=AlertInfo.parameters)||void 0===_AlertInfo$parameters2||null===(_AlertInfo$parameters2=_AlertInfo$parameters2.docs)||void 0===_AlertInfo$parameters2?void 0:_AlertInfo$parameters2.source)})}),AlertSanitize.parameters=_objectSpread(_objectSpread({},AlertSanitize.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertSanitize$parame=AlertSanitize.parameters)||void 0===_AlertSanitize$parame?void 0:_AlertSanitize$parame.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertSanitize$parame2=AlertSanitize.parameters)||void 0===_AlertSanitize$parame2||null===(_AlertSanitize$parame2=_AlertSanitize$parame2.docs)||void 0===_AlertSanitize$parame2?void 0:_AlertSanitize$parame2.source)})}),AlertInfoNoClose.parameters=_objectSpread(_objectSpread({},AlertInfoNoClose.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertInfoNoClose$par=AlertInfoNoClose.parameters)||void 0===_AlertInfoNoClose$par?void 0:_AlertInfoNoClose$par.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertInfoNoClose$par2=AlertInfoNoClose.parameters)||void 0===_AlertInfoNoClose$par2||null===(_AlertInfoNoClose$par2=_AlertInfoNoClose$par2.docs)||void 0===_AlertInfoNoClose$par2?void 0:_AlertInfoNoClose$par2.source)})}),AlertWarning.parameters=_objectSpread(_objectSpread({},AlertWarning.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertWarning$paramet=AlertWarning.parameters)||void 0===_AlertWarning$paramet?void 0:_AlertWarning$paramet.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertWarning$paramet2=AlertWarning.parameters)||void 0===_AlertWarning$paramet2||null===(_AlertWarning$paramet2=_AlertWarning$paramet2.docs)||void 0===_AlertWarning$paramet2?void 0:_AlertWarning$paramet2.source)})}),AlertError.parameters=_objectSpread(_objectSpread({},AlertError.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_AlertError$parameter=AlertError.parameters)||void 0===_AlertError$parameter?void 0:_AlertError$parameter.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_AlertError$parameter2=AlertError.parameters)||void 0===_AlertError$parameter2||null===(_AlertError$parameter2=_AlertError$parameter2.docs)||void 0===_AlertError$parameter2?void 0:_AlertError$parameter2.source)})});var __namedExportsOrder=["AlertDefault","AlertWithButton","AlertInfo","AlertSanitize","AlertInfoNoClose","AlertWarning","AlertError"]},"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{KE:()=>pseudoGuid,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 _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 stopEvent(e){return null==e||(e.preventDefault(),e.stopPropagation(),!1)}function isEmpty(obj){return null==obj||(Array.isArray(obj)?0===obj.length:"string"==typeof obj?0===obj.trim().length:obj&&obj.getTime?obj.getTime()!=obj.getTime():"object"===_typeof(obj)&&0===Object.keys(obj).length)}function sanitize(text){return isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(text,{ADD_ATTR:["target"]})}function pseudoGuid(){return crypto.randomUUID&&"function"==typeof crypto.randomUUID&&crypto.randomUUID()||Math.round((new Date).getTime()*Math.random()*1e3).toString()}},"./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/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:()=>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__.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___}}]); \ No newline at end of file diff --git a/components-BadgeNumber-BadgeNumber-stories.15ca9bff.iframe.bundle.js b/components-BadgeNumber-BadgeNumber-stories.15ca9bff.iframe.bundle.js new file mode 100644 index 00000000..f6d3ba3e --- /dev/null +++ b/components-BadgeNumber-BadgeNumber-stories.15ca9bff.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[6306],{"./src/components/BadgeNumber/BadgeNumber.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BadgeNumberTemplate:()=>BadgeNumberTemplate,ColoredBadgeNumberTemplate:()=>ColoredBadgeNumberTemplate,SmallBadgeHighNumberTemplate:()=>SmallBadgeHighNumberTemplate,SmallBadgeNumberTemplate:()=>SmallBadgeNumberTemplate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _BadgeNumberTemplate$,_BadgeNumberTemplate$2,_SmallBadgeNumberTemp,_SmallBadgeNumberTemp2,_SmallBadgeHighNumber,_SmallBadgeHighNumber2,_ColoredBadgeNumberTe,_ColoredBadgeNumberTe2,_BadgeNumber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/BadgeNumber/BadgeNumber.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__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===(_BadgeNumberTemplate$2=BadgeNumberTemplate.parameters)||void 0===_BadgeNumberTemplate$2||null===(_BadgeNumberTemplate$2=_BadgeNumberTemplate$2.docs)||void 0===_BadgeNumberTemplate$2?void 0:_BadgeNumberTemplate$2.source)})}),SmallBadgeNumberTemplate.parameters=_objectSpread(_objectSpread({},SmallBadgeNumberTemplate.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_SmallBadgeNumberTemp=SmallBadgeNumberTemplate.parameters)||void 0===_SmallBadgeNumberTemp?void 0:_SmallBadgeNumberTemp.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_SmallBadgeNumberTemp2=SmallBadgeNumberTemplate.parameters)||void 0===_SmallBadgeNumberTemp2||null===(_SmallBadgeNumberTemp2=_SmallBadgeNumberTemp2.docs)||void 0===_SmallBadgeNumberTemp2?void 0:_SmallBadgeNumberTemp2.source)})}),SmallBadgeHighNumberTemplate.parameters=_objectSpread(_objectSpread({},SmallBadgeHighNumberTemplate.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_SmallBadgeHighNumber=SmallBadgeHighNumberTemplate.parameters)||void 0===_SmallBadgeHighNumber?void 0:_SmallBadgeHighNumber.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_SmallBadgeHighNumber2=SmallBadgeHighNumberTemplate.parameters)||void 0===_SmallBadgeHighNumber2||null===(_SmallBadgeHighNumber2=_SmallBadgeHighNumber2.docs)||void 0===_SmallBadgeHighNumber2?void 0:_SmallBadgeHighNumber2.source)})}),ColoredBadgeNumberTemplate.parameters=_objectSpread(_objectSpread({},ColoredBadgeNumberTemplate.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ColoredBadgeNumberTe=ColoredBadgeNumberTemplate.parameters)||void 0===_ColoredBadgeNumberTe?void 0:_ColoredBadgeNumberTe.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ColoredBadgeNumberTe2=ColoredBadgeNumberTemplate.parameters)||void 0===_ColoredBadgeNumberTe2||null===(_ColoredBadgeNumberTe2=_ColoredBadgeNumberTe2.docs)||void 0===_ColoredBadgeNumberTe2?void 0:_ColoredBadgeNumberTe2.source)})});var __namedExportsOrder=["BadgeNumberTemplate","SmallBadgeNumberTemplate","SmallBadgeHighNumberTemplate","ColoredBadgeNumberTemplate"]},"./src/components/BadgeNumber/BadgeNumber.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_BadgeNumber_BadgeNumber});__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),BadgeNumber=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BadgeNumber/BadgeNumber.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()(BadgeNumber.Z,options);BadgeNumber.Z&&BadgeNumber.Z.locals&&BadgeNumber.Z.locals;var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BadgeNumber_BadgeNumber_BadgeNumber=function BadgeNumber(props){var className="sds--badge--number ".concat(props.colored?"sds--badge--number--colored":""," ").concat(props.small?"sds--badge--number--small":"");return(0,jsx_runtime.jsx)("span",{className,children:props.value})};BadgeNumber_BadgeNumber_BadgeNumber.displayName="BadgeNumber";const components_BadgeNumber_BadgeNumber=BadgeNumber_BadgeNumber_BadgeNumber;try{BadgeNumber_BadgeNumber_BadgeNumber.displayName="BadgeNumber",BadgeNumber_BadgeNumber_BadgeNumber.__docgenInfo={description:"",displayName:"BadgeNumber",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"any"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},colored:{defaultValue:null,description:"",name:"colored",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BadgeNumber/BadgeNumber.tsx#BadgeNumber"]={docgenInfo:BadgeNumber_BadgeNumber_BadgeNumber.__docgenInfo,name:"BadgeNumber",path:"src/components/BadgeNumber/BadgeNumber.tsx#BadgeNumber"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BadgeNumber/BadgeNumber.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--badge--number.sds--badge--number--small{font-size:.5rem;height:1.125rem;min-width:1.15rem;padding:0 .25rem;width:auto}","",{version:3,sources:["webpack://./src/components/BadgeNumber/BadgeNumber.scss"],names:[],mappings:"AAAA,8CACI,eAAA,CACA,eAAA,CACA,iBAAA,CACA,gBAAA,CACA,UAAA",sourcesContent:[".sds--badge--number.sds--badge--number--small {\n font-size: .5rem;\n height: 1.125rem;\n min-width: 1.15rem;\n padding: 0 0.25rem;\n width: auto;\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BadgeNumber-BadgeNumber-stories.18c339b4.iframe.bundle.js b/components-BadgeNumber-BadgeNumber-stories.18c339b4.iframe.bundle.js deleted file mode 100644 index a91057a6..00000000 --- a/components-BadgeNumber-BadgeNumber-stories.18c339b4.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[6306],{"./src/components/BadgeNumber/BadgeNumber.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BadgeNumberTemplate:()=>BadgeNumberTemplate,ColoredBadgeNumberTemplate:()=>ColoredBadgeNumberTemplate,SmallBadgeHighNumberTemplate:()=>SmallBadgeHighNumberTemplate,SmallBadgeNumberTemplate:()=>SmallBadgeNumberTemplate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>BadgeNumber_stories});__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),BadgeNumber=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BadgeNumber/BadgeNumber.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()(BadgeNumber.Z,options);BadgeNumber.Z&&BadgeNumber.Z.locals&&BadgeNumber.Z.locals;var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BadgeNumber_BadgeNumber_BadgeNumber=function BadgeNumber(props){var className="sds--badge--number ".concat(props.colored?"sds--badge--number--colored":""," ").concat(props.small?"sds--badge--number--small":"");return(0,jsx_runtime.jsx)("span",{className,children:props.value})};BadgeNumber_BadgeNumber_BadgeNumber.displayName="BadgeNumber";const components_BadgeNumber_BadgeNumber=BadgeNumber_BadgeNumber_BadgeNumber;try{BadgeNumber_BadgeNumber_BadgeNumber.displayName="BadgeNumber",BadgeNumber_BadgeNumber_BadgeNumber.__docgenInfo={description:"",displayName:"BadgeNumber",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"any"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},colored:{defaultValue:null,description:"",name:"colored",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BadgeNumber/BadgeNumber.tsx#BadgeNumber"]={docgenInfo:BadgeNumber_BadgeNumber_BadgeNumber.__docgenInfo,name:"BadgeNumber",path:"src/components/BadgeNumber/BadgeNumber.tsx#BadgeNumber"})}catch(__react_docgen_typescript_loader_error){}var _BadgeNumberTemplate$,_BadgeNumberTemplate$2,_SmallBadgeNumberTemp,_SmallBadgeNumberTemp2,_SmallBadgeHighNumber,_SmallBadgeHighNumber2,_ColoredBadgeNumberTe,_ColoredBadgeNumberTe2;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===(_BadgeNumberTemplate$2=BadgeNumberTemplate.parameters)||void 0===_BadgeNumberTemplate$2||null===(_BadgeNumberTemplate$2=_BadgeNumberTemplate$2.docs)||void 0===_BadgeNumberTemplate$2?void 0:_BadgeNumberTemplate$2.source)})}),SmallBadgeNumberTemplate.parameters=_objectSpread(_objectSpread({},SmallBadgeNumberTemplate.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_SmallBadgeNumberTemp=SmallBadgeNumberTemplate.parameters)||void 0===_SmallBadgeNumberTemp?void 0:_SmallBadgeNumberTemp.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_SmallBadgeNumberTemp2=SmallBadgeNumberTemplate.parameters)||void 0===_SmallBadgeNumberTemp2||null===(_SmallBadgeNumberTemp2=_SmallBadgeNumberTemp2.docs)||void 0===_SmallBadgeNumberTemp2?void 0:_SmallBadgeNumberTemp2.source)})}),SmallBadgeHighNumberTemplate.parameters=_objectSpread(_objectSpread({},SmallBadgeHighNumberTemplate.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_SmallBadgeHighNumber=SmallBadgeHighNumberTemplate.parameters)||void 0===_SmallBadgeHighNumber?void 0:_SmallBadgeHighNumber.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_SmallBadgeHighNumber2=SmallBadgeHighNumberTemplate.parameters)||void 0===_SmallBadgeHighNumber2||null===(_SmallBadgeHighNumber2=_SmallBadgeHighNumber2.docs)||void 0===_SmallBadgeHighNumber2?void 0:_SmallBadgeHighNumber2.source)})}),ColoredBadgeNumberTemplate.parameters=_objectSpread(_objectSpread({},ColoredBadgeNumberTemplate.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ColoredBadgeNumberTe=ColoredBadgeNumberTemplate.parameters)||void 0===_ColoredBadgeNumberTe?void 0:_ColoredBadgeNumberTe.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ColoredBadgeNumberTe2=ColoredBadgeNumberTemplate.parameters)||void 0===_ColoredBadgeNumberTe2||null===(_ColoredBadgeNumberTe2=_ColoredBadgeNumberTe2.docs)||void 0===_ColoredBadgeNumberTe2?void 0:_ColoredBadgeNumberTe2.source)})});var __namedExportsOrder=["BadgeNumberTemplate","SmallBadgeNumberTemplate","SmallBadgeHighNumberTemplate","ColoredBadgeNumberTemplate"]},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BadgeNumber/BadgeNumber.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--badge--number.sds--badge--number--small{font-size:.5rem;height:1.125rem;min-width:1.15rem;padding:0 .25rem;width:auto}","",{version:3,sources:["webpack://./src/components/BadgeNumber/BadgeNumber.scss"],names:[],mappings:"AAAA,8CACI,eAAA,CACA,eAAA,CACA,iBAAA,CACA,gBAAA,CACA,UAAA",sourcesContent:[".sds--badge--number.sds--badge--number--small {\n font-size: .5rem;\n height: 1.125rem;\n min-width: 1.15rem;\n padding: 0 0.25rem;\n width: auto;\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BlockSwitch-BlockSwitch-stories.08c13185.iframe.bundle.js b/components-BlockSwitch-BlockSwitch-stories.08c13185.iframe.bundle.js new file mode 100644 index 00000000..1674c342 --- /dev/null +++ b/components-BlockSwitch-BlockSwitch-stories.08c13185.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[4296],{"./src/components/BlockSwitch/BlockSwitch.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ActiveHorizontal:()=>ActiveHorizontal,ActiveVertical:()=>ActiveVertical,NotActiveHorizontal:()=>NotActiveHorizontal,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _ActiveHorizontal$par,_ActiveHorizontal$par2,_NotActiveHorizontal$,_NotActiveHorizontal$2,_ActiveVertical$param,_ActiveVertical$param2,_BlockSwitch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/BlockSwitch/BlockSwitch.tsx"),_BlockSwitchType__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/BlockSwitch/BlockSwitchType.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===(_ActiveHorizontal$par2=ActiveHorizontal.parameters)||void 0===_ActiveHorizontal$par2||null===(_ActiveHorizontal$par2=_ActiveHorizontal$par2.docs)||void 0===_ActiveHorizontal$par2?void 0:_ActiveHorizontal$par2.source)})}),NotActiveHorizontal.parameters=_objectSpread(_objectSpread({},NotActiveHorizontal.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_NotActiveHorizontal$=NotActiveHorizontal.parameters)||void 0===_NotActiveHorizontal$?void 0:_NotActiveHorizontal$.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_NotActiveHorizontal$2=NotActiveHorizontal.parameters)||void 0===_NotActiveHorizontal$2||null===(_NotActiveHorizontal$2=_NotActiveHorizontal$2.docs)||void 0===_NotActiveHorizontal$2?void 0:_NotActiveHorizontal$2.source)})}),ActiveVertical.parameters=_objectSpread(_objectSpread({},ActiveVertical.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ActiveVertical$param=ActiveVertical.parameters)||void 0===_ActiveVertical$param?void 0:_ActiveVertical$param.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ActiveVertical$param2=ActiveVertical.parameters)||void 0===_ActiveVertical$param2||null===(_ActiveVertical$param2=_ActiveVertical$param2.docs)||void 0===_ActiveVertical$param2?void 0:_ActiveVertical$param2.source)})});var __namedExportsOrder=["ActiveHorizontal","NotActiveHorizontal","ActiveVertical"]},"./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__,{Z:()=>components_BlockSwitch_BlockSwitch});__webpack_require__("./node_modules/react/index.js");var utils=__webpack_require__("./src/common/utils.ts"),BlockSwitchType=__webpack_require__("./src/components/BlockSwitch/BlockSwitchType.tsx"),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),BlockSwitch=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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()(BlockSwitch.Z,options);BlockSwitch.Z&&BlockSwitch.Z.locals&&BlockSwitch.Z.locals;var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BlockSwitch_BlockSwitch_BlockSwitch=function BlockSwitch(props){var innerBlockHorizontal=function innerBlockHorizontal(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--title ".concat(props.icon?"":"no-icon"),children:[(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""," ").concat(props.icon?"":"no-icon"),children:props.icon&&props.icon}),(0,jsx_runtime.jsx)("span",{className:"text sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)})]},(0,utils.KE)()),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})},innerBlockVertical=function innerBlockVertical(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--visual ".concat(props.icon?"":"no-icon"),children:(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""),children:props.icon&&props.icon})}),(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--textual",children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--title sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)}),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})]})},type=props.type||BlockSwitchType.Z.Horizontal,active="".concat(props.active?"is-active":""),disabled="".concat(props.disabled?"is-disabled":""),className="sds--block-switch ".concat(type.toLowerCase()," ").concat(active," ").concat(disabled);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[props.active&&(0,jsx_runtime.jsx)("button",{className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()}),!props.active&&(0,jsx_runtime.jsx)("a",{href:"/#",onClick:function setValueInternal(e){(0,utils.p7)(e),!props.disabled&&props.setValue&&props.setValue(props.value)},className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()})]})};const components_BlockSwitch_BlockSwitch=BlockSwitch_BlockSwitch_BlockSwitch;try{BlockSwitch_BlockSwitch_BlockSwitch.displayName="BlockSwitch",BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo={description:"",displayName:"BlockSwitch",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"any"}},setValue:{defaultValue:null,description:"",name:"setValue",required:!1,type:{name:"Function"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},txt:{defaultValue:null,description:"",name:"txt",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"sds--block-switch--vertical"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"]={docgenInfo:BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo,name:"BlockSwitch",path:"src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/BlockSwitch/BlockSwitchType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(BlockSwitchType){return BlockSwitchType.Horizontal="",BlockSwitchType.Vertical="sds--block-switch--vertical",BlockSwitchType}({})},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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--block-switch .sds--block-switch--title.no-icon,.sds--block-switch .sds--block-switch--visual.no-icon{gap:0}.sds--block-switch .icon.is-active{color:var(--sds--palette--support-color--400)}.sds--block-switch.is-disabled{background-color:var(--sds--color--gray--100)}.sds--block-switch svg{width:2em;height:2em}a.sds--block-switch.is-disabled{color:var(--sds--color--gray--500);cursor:not-allowed}","",{version:3,sources:["webpack://./src/components/BlockSwitch/BlockSwitch.scss"],names:[],mappings:"AAEI,2GACI,KAAA,CAGJ,mCACI,6CAAA,CAGJ,+BACI,6CAAA,CAIJ,uBACI,SAAA,CACA,UAAA,CAMR,gCACI,kCAAA,CACA,kBAAA",sourcesContent:[".sds--block-switch {\n\n .sds--block-switch--title.no-icon, .sds--block-switch--visual.no-icon {\n gap: 0;\n }\n\n .icon.is-active {\n color: var(--sds--palette--support-color--400);\n }\n\n &.is-disabled {\n background-color: var(--sds--color--gray--100);\n\n }\n\n svg {\n width: calc(32em / 16);\n height: calc(32em / 16)\n }\n\n}\n\n\na.sds--block-switch.is-disabled {\n color: var(--sds--color--gray--500);\n cursor: not-allowed;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BlockSwitch-BlockSwitch-stories.650a5dc8.iframe.bundle.js b/components-BlockSwitch-BlockSwitch-stories.650a5dc8.iframe.bundle.js deleted file mode 100644 index 54dd2915..00000000 --- a/components-BlockSwitch-BlockSwitch-stories.650a5dc8.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[4296],{"./src/components/BlockSwitch/BlockSwitch.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ActiveHorizontal:()=>ActiveHorizontal,ActiveVertical:()=>ActiveVertical,NotActiveHorizontal:()=>NotActiveHorizontal,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _ActiveHorizontal$par,_ActiveHorizontal$par2,_NotActiveHorizontal$,_NotActiveHorizontal$2,_ActiveVertical$param,_ActiveVertical$param2,_BlockSwitch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/BlockSwitch/BlockSwitch.tsx"),_BlockSwitchType__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/BlockSwitch/BlockSwitchType.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===(_ActiveHorizontal$par2=ActiveHorizontal.parameters)||void 0===_ActiveHorizontal$par2||null===(_ActiveHorizontal$par2=_ActiveHorizontal$par2.docs)||void 0===_ActiveHorizontal$par2?void 0:_ActiveHorizontal$par2.source)})}),NotActiveHorizontal.parameters=_objectSpread(_objectSpread({},NotActiveHorizontal.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_NotActiveHorizontal$=NotActiveHorizontal.parameters)||void 0===_NotActiveHorizontal$?void 0:_NotActiveHorizontal$.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_NotActiveHorizontal$2=NotActiveHorizontal.parameters)||void 0===_NotActiveHorizontal$2||null===(_NotActiveHorizontal$2=_NotActiveHorizontal$2.docs)||void 0===_NotActiveHorizontal$2?void 0:_NotActiveHorizontal$2.source)})}),ActiveVertical.parameters=_objectSpread(_objectSpread({},ActiveVertical.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_ActiveVertical$param=ActiveVertical.parameters)||void 0===_ActiveVertical$param?void 0:_ActiveVertical$param.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_ActiveVertical$param2=ActiveVertical.parameters)||void 0===_ActiveVertical$param2||null===(_ActiveVertical$param2=_ActiveVertical$param2.docs)||void 0===_ActiveVertical$param2?void 0:_ActiveVertical$param2.source)})});var __namedExportsOrder=["ActiveHorizontal","NotActiveHorizontal","ActiveVertical"]},"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{KE:()=>pseudoGuid,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 _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 stopEvent(e){return null==e||(e.preventDefault(),e.stopPropagation(),!1)}function isEmpty(obj){return null==obj||(Array.isArray(obj)?0===obj.length:"string"==typeof obj?0===obj.trim().length:obj&&obj.getTime?obj.getTime()!=obj.getTime():"object"===_typeof(obj)&&0===Object.keys(obj).length)}function sanitize(text){return isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(text,{ADD_ATTR:["target"]})}function pseudoGuid(){return crypto.randomUUID&&"function"==typeof crypto.randomUUID&&crypto.randomUUID()||Math.round((new Date).getTime()*Math.random()*1e3).toString()}},"./src/components/BlockSwitch/BlockSwitch.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_BlockSwitch_BlockSwitch});__webpack_require__("./node_modules/react/index.js");var utils=__webpack_require__("./src/common/utils.ts"),BlockSwitchType=__webpack_require__("./src/components/BlockSwitch/BlockSwitchType.tsx"),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),BlockSwitch=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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()(BlockSwitch.Z,options);BlockSwitch.Z&&BlockSwitch.Z.locals&&BlockSwitch.Z.locals;var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BlockSwitch_BlockSwitch_BlockSwitch=function BlockSwitch(props){var innerBlockHorizontal=function innerBlockHorizontal(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--title ".concat(props.icon?"":"no-icon"),children:[(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""," ").concat(props.icon?"":"no-icon"),children:props.icon&&props.icon}),(0,jsx_runtime.jsx)("span",{className:"text sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)})]},(0,utils.KE)()),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})},innerBlockVertical=function innerBlockVertical(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--visual ".concat(props.icon?"":"no-icon"),children:(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""),children:props.icon&&props.icon})}),(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--textual",children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--title sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)}),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})]})},type=props.type||BlockSwitchType.Z.Horizontal,active="".concat(props.active?"is-active":""),disabled="".concat(props.disabled?"is-disabled":""),className="sds--block-switch ".concat(type.toLowerCase()," ").concat(active," ").concat(disabled);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[props.active&&(0,jsx_runtime.jsx)("button",{className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()}),!props.active&&(0,jsx_runtime.jsx)("a",{href:"/#",onClick:function setValueInternal(e){(0,utils.p7)(e),!props.disabled&&props.setValue&&props.setValue(props.value)},className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()})]})};const components_BlockSwitch_BlockSwitch=BlockSwitch_BlockSwitch_BlockSwitch;try{BlockSwitch_BlockSwitch_BlockSwitch.displayName="BlockSwitch",BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo={description:"",displayName:"BlockSwitch",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"any"}},setValue:{defaultValue:null,description:"",name:"setValue",required:!1,type:{name:"Function"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},txt:{defaultValue:null,description:"",name:"txt",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"sds--block-switch--vertical"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"]={docgenInfo:BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo,name:"BlockSwitch",path:"src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/BlockSwitch/BlockSwitchType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(BlockSwitchType){return BlockSwitchType.Horizontal="",BlockSwitchType.Vertical="sds--block-switch--vertical",BlockSwitchType}({})},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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--block-switch .sds--block-switch--title.no-icon,.sds--block-switch .sds--block-switch--visual.no-icon{gap:0}.sds--block-switch .icon.is-active{color:var(--sds--palette--support-color--400)}.sds--block-switch.is-disabled{background-color:var(--sds--color--gray--100)}.sds--block-switch svg{width:2em;height:2em}a.sds--block-switch.is-disabled{color:var(--sds--color--gray--500);cursor:not-allowed}","",{version:3,sources:["webpack://./src/components/BlockSwitch/BlockSwitch.scss"],names:[],mappings:"AAEI,2GACI,KAAA,CAGJ,mCACI,6CAAA,CAGJ,+BACI,6CAAA,CAIJ,uBACI,SAAA,CACA,UAAA,CAMR,gCACI,kCAAA,CACA,kBAAA",sourcesContent:[".sds--block-switch {\n\n .sds--block-switch--title.no-icon, .sds--block-switch--visual.no-icon {\n gap: 0;\n }\n\n .icon.is-active {\n color: var(--sds--palette--support-color--400);\n }\n\n &.is-disabled {\n background-color: var(--sds--color--gray--100);\n\n }\n\n svg {\n width: calc(32em / 16);\n height: calc(32em / 16)\n }\n\n}\n\n\na.sds--block-switch.is-disabled {\n color: var(--sds--color--gray--500);\n cursor: not-allowed;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BlockSwitchChoice-BlockSwitchChoice-stories.000f27fc.iframe.bundle.js b/components-BlockSwitchChoice-BlockSwitchChoice-stories.000f27fc.iframe.bundle.js deleted file mode 100644 index 2d126036..00000000 --- a/components-BlockSwitchChoice-BlockSwitchChoice-stories.000f27fc.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[1502],{"./src/components/BlockSwitchChoice/BlockSwitchChoice.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BlockSwitchChoiceDefault:()=>BlockSwitchChoiceDefault,BlockSwitchChoiceDisabled:()=>BlockSwitchChoiceDisabled,__namedExportsOrder:()=>__namedExportsOrder,default:()=>BlockSwitchChoice_stories});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),BlockSwitchChoice=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitchChoice/BlockSwitchChoice.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()(BlockSwitchChoice.Z,options);BlockSwitchChoice.Z&&BlockSwitchChoice.Z.locals&&BlockSwitchChoice.Z.locals;var BlockSwitch=__webpack_require__("./src/components/BlockSwitch/BlockSwitch.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice=function BlockSwitchChoice(props){return(0,jsx_runtime.jsx)("div",{className:"sds--block-switch-container",children:props.items.map((function(item,index){return(0,jsx_runtime.jsx)(BlockSwitch.Z,{active:props.value===item.value,value:item.value,setValue:props.setValue,disabled:props.disabled,txt:item.text,title:props.titleResolver?props.titleResolver(item.value):item.title||"",icon:item.icon},item.value+index)}))})};BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.displayName="BlockSwitchChoice";const components_BlockSwitchChoice_BlockSwitchChoice=BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice;try{BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.displayName="BlockSwitchChoice",BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.__docgenInfo={description:"",displayName:"BlockSwitchChoice",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"ChoiceItem[]"}},titleResolver:{defaultValue:null,description:"",name:"titleResolver",required:!1,type:{name:"Function"}},setValue:{defaultValue:null,description:"",name:"setValue",required:!1,type:{name:"Function"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BlockSwitchChoice/BlockSwitchChoice.tsx#BlockSwitchChoice"]={docgenInfo:BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.__docgenInfo,name:"BlockSwitchChoice",path:"src/components/BlockSwitchChoice/BlockSwitchChoice.tsx#BlockSwitchChoice"})}catch(__react_docgen_typescript_loader_error){}var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i "},null===(_BlockSwitchChoiceDef2=BlockSwitchChoiceDefault.parameters)||void 0===_BlockSwitchChoiceDef2||null===(_BlockSwitchChoiceDef2=_BlockSwitchChoiceDef2.docs)||void 0===_BlockSwitchChoiceDef2?void 0:_BlockSwitchChoiceDef2.source)})}),BlockSwitchChoiceDisabled.parameters=_objectSpread(_objectSpread({},BlockSwitchChoiceDisabled.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_BlockSwitchChoiceDis=BlockSwitchChoiceDisabled.parameters)||void 0===_BlockSwitchChoiceDis?void 0:_BlockSwitchChoiceDis.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_BlockSwitchChoiceDis2=BlockSwitchChoiceDisabled.parameters)||void 0===_BlockSwitchChoiceDis2||null===(_BlockSwitchChoiceDis2=_BlockSwitchChoiceDis2.docs)||void 0===_BlockSwitchChoiceDis2?void 0:_BlockSwitchChoiceDis2.source)})});var __namedExportsOrder=["BlockSwitchChoiceDefault","BlockSwitchChoiceDisabled"]},"./src/common/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{KE:()=>pseudoGuid,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 _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 stopEvent(e){return null==e||(e.preventDefault(),e.stopPropagation(),!1)}function isEmpty(obj){return null==obj||(Array.isArray(obj)?0===obj.length:"string"==typeof obj?0===obj.trim().length:obj&&obj.getTime?obj.getTime()!=obj.getTime():"object"===_typeof(obj)&&0===Object.keys(obj).length)}function sanitize(text){return isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(text,{ADD_ATTR:["target"]})}function pseudoGuid(){return crypto.randomUUID&&"function"==typeof crypto.randomUUID&&crypto.randomUUID()||Math.round((new Date).getTime()*Math.random()*1e3).toString()}},"./src/components/BlockSwitch/BlockSwitch.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_BlockSwitch_BlockSwitch});__webpack_require__("./node_modules/react/index.js");var utils=__webpack_require__("./src/common/utils.ts"),BlockSwitchType=__webpack_require__("./src/components/BlockSwitch/BlockSwitchType.tsx"),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),BlockSwitch=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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()(BlockSwitch.Z,options);BlockSwitch.Z&&BlockSwitch.Z.locals&&BlockSwitch.Z.locals;var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BlockSwitch_BlockSwitch_BlockSwitch=function BlockSwitch(props){var innerBlockHorizontal=function innerBlockHorizontal(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--title ".concat(props.icon?"":"no-icon"),children:[(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""," ").concat(props.icon?"":"no-icon"),children:props.icon&&props.icon}),(0,jsx_runtime.jsx)("span",{className:"text sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)})]},(0,utils.KE)()),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})},innerBlockVertical=function innerBlockVertical(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--visual ".concat(props.icon?"":"no-icon"),children:(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""),children:props.icon&&props.icon})}),(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--textual",children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--title sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)}),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})]})},type=props.type||BlockSwitchType.Z.Horizontal,active="".concat(props.active?"is-active":""),disabled="".concat(props.disabled?"is-disabled":""),className="sds--block-switch ".concat(type.toLowerCase()," ").concat(active," ").concat(disabled);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[props.active&&(0,jsx_runtime.jsx)("button",{className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()}),!props.active&&(0,jsx_runtime.jsx)("a",{href:"/#",onClick:function setValueInternal(e){(0,utils.p7)(e),!props.disabled&&props.setValue&&props.setValue(props.value)},className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()})]})};const components_BlockSwitch_BlockSwitch=BlockSwitch_BlockSwitch_BlockSwitch;try{BlockSwitch_BlockSwitch_BlockSwitch.displayName="BlockSwitch",BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo={description:"",displayName:"BlockSwitch",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"any"}},setValue:{defaultValue:null,description:"",name:"setValue",required:!1,type:{name:"Function"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},txt:{defaultValue:null,description:"",name:"txt",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"sds--block-switch--vertical"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"]={docgenInfo:BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo,name:"BlockSwitch",path:"src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/BlockSwitch/BlockSwitchType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(BlockSwitchType){return BlockSwitchType.Horizontal="",BlockSwitchType.Vertical="sds--block-switch--vertical",BlockSwitchType}({})},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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--block-switch .sds--block-switch--title.no-icon,.sds--block-switch .sds--block-switch--visual.no-icon{gap:0}.sds--block-switch .icon.is-active{color:var(--sds--palette--support-color--400)}.sds--block-switch.is-disabled{background-color:var(--sds--color--gray--100)}.sds--block-switch svg{width:2em;height:2em}a.sds--block-switch.is-disabled{color:var(--sds--color--gray--500);cursor:not-allowed}","",{version:3,sources:["webpack://./src/components/BlockSwitch/BlockSwitch.scss"],names:[],mappings:"AAEI,2GACI,KAAA,CAGJ,mCACI,6CAAA,CAGJ,+BACI,6CAAA,CAIJ,uBACI,SAAA,CACA,UAAA,CAMR,gCACI,kCAAA,CACA,kBAAA",sourcesContent:[".sds--block-switch {\n\n .sds--block-switch--title.no-icon, .sds--block-switch--visual.no-icon {\n gap: 0;\n }\n\n .icon.is-active {\n color: var(--sds--palette--support-color--400);\n }\n\n &.is-disabled {\n background-color: var(--sds--color--gray--100);\n\n }\n\n svg {\n width: calc(32em / 16);\n height: calc(32em / 16)\n }\n\n}\n\n\na.sds--block-switch.is-disabled {\n color: var(--sds--color--gray--500);\n cursor: not-allowed;\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/BlockSwitchChoice/BlockSwitchChoice.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--block-switch-container{display:flex;gap:20px}@media(max-width: 1280px){.sds--block-switch-container{flex-direction:column}}","",{version:3,sources:["webpack://./src/components/BlockSwitchChoice/BlockSwitchChoice.scss"],names:[],mappings:"AAAA,6BAII,YAAA,CACA,QAAA,CAEA,0BAPJ,6BAQQ,qBAAA,CAAA",sourcesContent:[".sds--block-switch-container {\n\n $compact-length: 1280px;\n\n display: flex;\n gap: 20px;\n\n @media (max-width: $compact-length) {\n flex-direction: column;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BlockSwitchChoice-BlockSwitchChoice-stories.b2b20189.iframe.bundle.js b/components-BlockSwitchChoice-BlockSwitchChoice-stories.b2b20189.iframe.bundle.js new file mode 100644 index 00000000..4650e3c9 --- /dev/null +++ b/components-BlockSwitchChoice-BlockSwitchChoice-stories.b2b20189.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[1502],{"./src/components/BlockSwitchChoice/BlockSwitchChoice.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BlockSwitchChoiceDefault:()=>BlockSwitchChoiceDefault,BlockSwitchChoiceDisabled:()=>BlockSwitchChoiceDisabled,__namedExportsOrder:()=>__namedExportsOrder,default:()=>BlockSwitchChoice_stories});var _path,react=__webpack_require__("./node_modules/react/index.js"),BlockSwitchChoice=__webpack_require__("./src/components/BlockSwitchChoice/BlockSwitchChoice.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i "},null===(_BlockSwitchChoiceDef2=BlockSwitchChoiceDefault.parameters)||void 0===_BlockSwitchChoiceDef2||null===(_BlockSwitchChoiceDef2=_BlockSwitchChoiceDef2.docs)||void 0===_BlockSwitchChoiceDef2?void 0:_BlockSwitchChoiceDef2.source)})}),BlockSwitchChoiceDisabled.parameters=_objectSpread(_objectSpread({},BlockSwitchChoiceDisabled.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_BlockSwitchChoiceDis=BlockSwitchChoiceDisabled.parameters)||void 0===_BlockSwitchChoiceDis?void 0:_BlockSwitchChoiceDis.docs),{},{source:_objectSpread({originalSource:"args => "},null===(_BlockSwitchChoiceDis2=BlockSwitchChoiceDisabled.parameters)||void 0===_BlockSwitchChoiceDis2||null===(_BlockSwitchChoiceDis2=_BlockSwitchChoiceDis2.docs)||void 0===_BlockSwitchChoiceDis2?void 0:_BlockSwitchChoiceDis2.source)})});var __namedExportsOrder=["BlockSwitchChoiceDefault","BlockSwitchChoiceDisabled"]},"./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__,{Z:()=>components_BlockSwitch_BlockSwitch});__webpack_require__("./node_modules/react/index.js");var utils=__webpack_require__("./src/common/utils.ts"),BlockSwitchType=__webpack_require__("./src/components/BlockSwitch/BlockSwitchType.tsx"),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),BlockSwitch=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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()(BlockSwitch.Z,options);BlockSwitch.Z&&BlockSwitch.Z.locals&&BlockSwitch.Z.locals;var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BlockSwitch_BlockSwitch_BlockSwitch=function BlockSwitch(props){var innerBlockHorizontal=function innerBlockHorizontal(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--title ".concat(props.icon?"":"no-icon"),children:[(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""," ").concat(props.icon?"":"no-icon"),children:props.icon&&props.icon}),(0,jsx_runtime.jsx)("span",{className:"text sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)})]},(0,utils.KE)()),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})},innerBlockVertical=function innerBlockVertical(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--visual ".concat(props.icon?"":"no-icon"),children:(0,jsx_runtime.jsx)("span",{className:"icon ".concat(props.active?"is-active":""),children:props.icon&&props.icon})}),(0,jsx_runtime.jsxs)("span",{className:"sds--block-switch--textual",children:[(0,jsx_runtime.jsx)("span",{className:"sds--block-switch--title sds--text--h3",children:props.title&&(0,utils.Nw)(props.title)}),(0,jsx_runtime.jsx)("span",{className:"sds--text--body--small",children:props.txt&&(0,utils.Nw)(props.txt)})]})]})},type=props.type||BlockSwitchType.Z.Horizontal,active="".concat(props.active?"is-active":""),disabled="".concat(props.disabled?"is-disabled":""),className="sds--block-switch ".concat(type.toLowerCase()," ").concat(active," ").concat(disabled);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[props.active&&(0,jsx_runtime.jsx)("button",{className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()}),!props.active&&(0,jsx_runtime.jsx)("a",{href:"/#",onClick:function setValueInternal(e){(0,utils.p7)(e),!props.disabled&&props.setValue&&props.setValue(props.value)},className,children:type===BlockSwitchType.Z.Horizontal?innerBlockHorizontal():innerBlockVertical()})]})};const components_BlockSwitch_BlockSwitch=BlockSwitch_BlockSwitch_BlockSwitch;try{BlockSwitch_BlockSwitch_BlockSwitch.displayName="BlockSwitch",BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo={description:"",displayName:"BlockSwitch",props:{active:{defaultValue:null,description:"",name:"active",required:!0,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"any"}},setValue:{defaultValue:null,description:"",name:"setValue",required:!1,type:{name:"Function"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},txt:{defaultValue:null,description:"",name:"txt",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"sds--block-switch--vertical"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"]={docgenInfo:BlockSwitch_BlockSwitch_BlockSwitch.__docgenInfo,name:"BlockSwitch",path:"src/components/BlockSwitch/BlockSwitch.tsx#BlockSwitch"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/BlockSwitch/BlockSwitchType.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(BlockSwitchType){return BlockSwitchType.Horizontal="",BlockSwitchType.Vertical="sds--block-switch--vertical",BlockSwitchType}({})},"./src/components/BlockSwitchChoice/BlockSwitchChoice.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_BlockSwitchChoice_BlockSwitchChoice});__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),BlockSwitchChoice=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitchChoice/BlockSwitchChoice.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()(BlockSwitchChoice.Z,options);BlockSwitchChoice.Z&&BlockSwitchChoice.Z.locals&&BlockSwitchChoice.Z.locals;var BlockSwitch=__webpack_require__("./src/components/BlockSwitch/BlockSwitch.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice=function BlockSwitchChoice(props){return(0,jsx_runtime.jsx)("div",{className:"sds--block-switch-container",children:props.items.map((function(item,index){return(0,jsx_runtime.jsx)(BlockSwitch.Z,{active:props.value===item.value,value:item.value,setValue:props.setValue,disabled:props.disabled,txt:item.text,title:props.titleResolver?props.titleResolver(item.value):item.title||"",icon:item.icon},item.value+index)}))})};BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.displayName="BlockSwitchChoice";const components_BlockSwitchChoice_BlockSwitchChoice=BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice;try{BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.displayName="BlockSwitchChoice",BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.__docgenInfo={description:"",displayName:"BlockSwitchChoice",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"ChoiceItem[]"}},titleResolver:{defaultValue:null,description:"",name:"titleResolver",required:!1,type:{name:"Function"}},setValue:{defaultValue:null,description:"",name:"setValue",required:!1,type:{name:"Function"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BlockSwitchChoice/BlockSwitchChoice.tsx#BlockSwitchChoice"]={docgenInfo:BlockSwitchChoice_BlockSwitchChoice_BlockSwitchChoice.__docgenInfo,name:"BlockSwitchChoice",path:"src/components/BlockSwitchChoice/BlockSwitchChoice.tsx#BlockSwitchChoice"})}catch(__react_docgen_typescript_loader_error){}},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BlockSwitch/BlockSwitch.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--block-switch .sds--block-switch--title.no-icon,.sds--block-switch .sds--block-switch--visual.no-icon{gap:0}.sds--block-switch .icon.is-active{color:var(--sds--palette--support-color--400)}.sds--block-switch.is-disabled{background-color:var(--sds--color--gray--100)}.sds--block-switch svg{width:2em;height:2em}a.sds--block-switch.is-disabled{color:var(--sds--color--gray--500);cursor:not-allowed}","",{version:3,sources:["webpack://./src/components/BlockSwitch/BlockSwitch.scss"],names:[],mappings:"AAEI,2GACI,KAAA,CAGJ,mCACI,6CAAA,CAGJ,+BACI,6CAAA,CAIJ,uBACI,SAAA,CACA,UAAA,CAMR,gCACI,kCAAA,CACA,kBAAA",sourcesContent:[".sds--block-switch {\n\n .sds--block-switch--title.no-icon, .sds--block-switch--visual.no-icon {\n gap: 0;\n }\n\n .icon.is-active {\n color: var(--sds--palette--support-color--400);\n }\n\n &.is-disabled {\n background-color: var(--sds--color--gray--100);\n\n }\n\n svg {\n width: calc(32em / 16);\n height: calc(32em / 16)\n }\n\n}\n\n\na.sds--block-switch.is-disabled {\n color: var(--sds--color--gray--500);\n cursor: not-allowed;\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/BlockSwitchChoice/BlockSwitchChoice.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--block-switch-container{display:flex;gap:20px}@media(max-width: 1280px){.sds--block-switch-container{flex-direction:column}}","",{version:3,sources:["webpack://./src/components/BlockSwitchChoice/BlockSwitchChoice.scss"],names:[],mappings:"AAAA,6BAII,YAAA,CACA,QAAA,CAEA,0BAPJ,6BAQQ,qBAAA,CAAA",sourcesContent:[".sds--block-switch-container {\n\n $compact-length: 1280px;\n\n display: flex;\n gap: 20px;\n\n @media (max-width: $compact-length) {\n flex-direction: column;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BreadCrumb-BreadCrumb-stories.696cd51e.iframe.bundle.js b/components-BreadCrumb-BreadCrumb-stories.696cd51e.iframe.bundle.js deleted file mode 100644 index ea212198..00000000 --- a/components-BreadCrumb-BreadCrumb-stories.696cd51e.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[8851],{"./src/components/BreadCrumb/BreadCrumb.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BreadCrumbTemplate:()=>BreadCrumbTemplate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>BreadCrumb_stories});__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),BreadCrumb=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BreadCrumb/BreadCrumb.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()(BreadCrumb.Z,options);BreadCrumb.Z&&BreadCrumb.Z.locals&&BreadCrumb.Z.locals;var arrow_right_2=__webpack_require__("./src/icons/functional-icons/arrow-right-2.svg"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BreadCrumb_BreadCrumb_BreadCrumb=function BreadCrumb(props){return(0,jsx_runtime.jsx)("nav",{className:"sds--breadcrumb sds--text--body--small","aria-label":"breadcrumbs",children:(0,jsx_runtime.jsx)("ol",{className:"sds--breadcrumb--list",children:props.items.map((function(item,index){return(0,jsx_runtime.jsxs)("li",{children:[item.component,index+1!==props.items.length&&(0,jsx_runtime.jsx)("span",{className:"sds--breadcrumb--sds--divider",children:(0,jsx_runtime.jsx)(arrow_right_2.r,{})})]},index)}))})})};BreadCrumb_BreadCrumb_BreadCrumb.displayName="BreadCrumb";const components_BreadCrumb_BreadCrumb=BreadCrumb_BreadCrumb_BreadCrumb;try{BreadCrumb_BreadCrumb_BreadCrumb.displayName="BreadCrumb",BreadCrumb_BreadCrumb_BreadCrumb.__docgenInfo={description:"",displayName:"BreadCrumb",props:{items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"BreadCrumbItem[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BreadCrumb/BreadCrumb.tsx#BreadCrumb"]={docgenInfo:BreadCrumb_BreadCrumb_BreadCrumb.__docgenInfo,name:"BreadCrumb",path:"src/components/BreadCrumb/BreadCrumb.tsx#BreadCrumb"})}catch(__react_docgen_typescript_loader_error){}var _BreadCrumbTemplate$p,_BreadCrumbTemplate$p2;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===(_BreadCrumbTemplate$p2=BreadCrumbTemplate.parameters)||void 0===_BreadCrumbTemplate$p2||null===(_BreadCrumbTemplate$p2=_BreadCrumbTemplate$p2.docs)||void 0===_BreadCrumbTemplate$p2?void 0:_BreadCrumbTemplate$p2.source)})});var __namedExportsOrder=["BreadCrumbTemplate"]},"./src/icons/functional-icons/arrow-right-2.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>SvgArrowRight2});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__,{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--breadcrumb svg{width:.3907142857em;height:.3907142857em}","",{version:3,sources:["webpack://./src/components/BreadCrumb/BreadCrumb.scss"],names:[],mappings:"AAAA,qBACE,mBAAA,CACA,oBAAA",sourcesContent:[".sds--breadcrumb svg {\n width: calc(5.47em / 14);\n height: calc(5.47em / 14)\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-BreadCrumb-BreadCrumb-stories.75aa4cb0.iframe.bundle.js b/components-BreadCrumb-BreadCrumb-stories.75aa4cb0.iframe.bundle.js new file mode 100644 index 00000000..54b0362e --- /dev/null +++ b/components-BreadCrumb-BreadCrumb-stories.75aa4cb0.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[8851],{"./src/components/BreadCrumb/BreadCrumb.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BreadCrumbTemplate:()=>BreadCrumbTemplate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _BreadCrumbTemplate$p,_BreadCrumbTemplate$p2,_BreadCrumb__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/BreadCrumb/BreadCrumb.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__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===(_BreadCrumbTemplate$p2=BreadCrumbTemplate.parameters)||void 0===_BreadCrumbTemplate$p2||null===(_BreadCrumbTemplate$p2=_BreadCrumbTemplate$p2.docs)||void 0===_BreadCrumbTemplate$p2?void 0:_BreadCrumbTemplate$p2.source)})});var __namedExportsOrder=["BreadCrumbTemplate"]},"./src/components/BreadCrumb/BreadCrumb.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>components_BreadCrumb_BreadCrumb});__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),BreadCrumb=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/BreadCrumb/BreadCrumb.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()(BreadCrumb.Z,options);BreadCrumb.Z&&BreadCrumb.Z.locals&&BreadCrumb.Z.locals;var arrow_right_2=__webpack_require__("./src/icons/functional-icons/arrow-right-2.svg"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),BreadCrumb_BreadCrumb_BreadCrumb=function BreadCrumb(props){return(0,jsx_runtime.jsx)("nav",{className:"sds--breadcrumb sds--text--body--small","aria-label":"breadcrumbs",children:(0,jsx_runtime.jsx)("ol",{className:"sds--breadcrumb--list",children:props.items.map((function(item,index){return(0,jsx_runtime.jsxs)("li",{children:[item.component,index+1!==props.items.length&&(0,jsx_runtime.jsx)("span",{className:"sds--breadcrumb--sds--divider",children:(0,jsx_runtime.jsx)(arrow_right_2.r,{})})]},index)}))})})};BreadCrumb_BreadCrumb_BreadCrumb.displayName="BreadCrumb";const components_BreadCrumb_BreadCrumb=BreadCrumb_BreadCrumb_BreadCrumb;try{BreadCrumb_BreadCrumb_BreadCrumb.displayName="BreadCrumb",BreadCrumb_BreadCrumb_BreadCrumb.__docgenInfo={description:"",displayName:"BreadCrumb",props:{items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"BreadCrumbItem[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BreadCrumb/BreadCrumb.tsx#BreadCrumb"]={docgenInfo:BreadCrumb_BreadCrumb_BreadCrumb.__docgenInfo,name:"BreadCrumb",path:"src/components/BreadCrumb/BreadCrumb.tsx#BreadCrumb"})}catch(__react_docgen_typescript_loader_error){}},"./src/icons/functional-icons/arrow-right-2.svg":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{r:()=>SvgArrowRight2});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__,{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--breadcrumb svg{width:.3907142857em;height:.3907142857em}","",{version:3,sources:["webpack://./src/components/BreadCrumb/BreadCrumb.scss"],names:[],mappings:"AAAA,qBACE,mBAAA,CACA,oBAAA",sourcesContent:[".sds--breadcrumb svg {\n width: calc(5.47em / 14);\n height: calc(5.47em / 14)\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/components-Button-Button-stories.0f2bf28b.iframe.bundle.js b/components-Button-Button-stories.ee205836.iframe.bundle.js similarity index 57% rename from components-Button-Button-stories.0f2bf28b.iframe.bundle.js rename to components-Button-Button-stories.ee205836.iframe.bundle.js index 0687a559..a2e754af 100644 --- a/components-Button-Button-stories.0f2bf28b.iframe.bundle.js +++ b/components-Button-Button-stories.ee205836.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_surfnet_sds=self.webpackChunk_surfnet_sds||[]).push([[1747],{"./src/components/Button/Button.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,DefaultFull:()=>DefaultFull,DefaultSmall:()=>DefaultSmall,DeleteButton:()=>DeleteButton,DeleteDisabledButton:()=>DeleteDisabledButton,DeleteSecondaryButton:()=>DeleteSecondaryButton,DestructivePrimaryButton:()=>DestructivePrimaryButton,DestructiveSecondaryButton:()=>DestructiveSecondaryButton,DestructiveTertiaryButton:()=>DestructiveTertiaryButton,GhostDark:()=>GhostDark,GhostDarkDisabled:()=>GhostDarkDisabled,GhostLight:()=>GhostLight,GhostLightDisabled:()=>GhostLightDisabled,PrimaryDisabled:()=>PrimaryDisabled,Secondary:()=>Secondary,SecondaryDisabled:()=>SecondaryDisabled,Tertiary:()=>Tertiary,TertiaryDisabled:()=>TertiaryDisabled,WithChevron:()=>WithChevron,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _Default$parameters,_Default$parameters2,_WithChevron$paramete,_WithChevron$paramete2,_DefaultSmall$paramet,_DefaultSmall$paramet2,_DefaultFull$paramete,_DefaultFull$paramete2,_PrimaryDisabled$para,_PrimaryDisabled$para2,_Secondary$parameters,_Secondary$parameters2,_SecondaryDisabled$pa,_SecondaryDisabled$pa2,_Tertiary$parameters,_Tertiary$parameters2,_TertiaryDisabled$par,_TertiaryDisabled$par2,_DestructivePrimaryBu,_DestructivePrimaryBu2,_DestructiveSecondary,_DestructiveSecondary2,_DestructiveTertiaryB,_DestructiveTertiaryB2,_DeleteButton$paramet,_DeleteButton$paramet2,_DeleteDisabledButton,_DeleteDisabledButton2,_DeleteSecondaryButto,_DeleteSecondaryButto2,_GhostLight$parameter,_GhostLight$parameter2,_GhostLightDisabled$p,_GhostLightDisabled$p2,_GhostDark$parameters,_GhostDark$parameters2,_GhostDarkDisabled$pa,_GhostDarkDisabled$pa2,_icons_functional_icons_arrow_down_2_svg__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/icons/functional-icons/arrow-down-2.svg"),_Button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/Button/Button.tsx"),_ButtonType__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/Button/ButtonType.tsx"),_ButtonSize__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/Button/ButtonSize.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__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