Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

1 wiersz
11 KiB

  1. "use strict";(self.webpackChunk_ihk24_storybook=self.webpackChunk_ihk24_storybook||[]).push([[6356],{"./stories/components/link-collection/LinkCollectionComponent.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C:()=>createLinkCollection});var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),link_collection=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./stories/components/link-collection/link-collection.scss"),options={insert:"head",singleton:!1};injectStylesIntoStyleTag_default()(link_collection.Z,options);link_collection.Z.locals;var helpers=__webpack_require__("./stories/_global/scripts/helpers.js"),LinkListData=__webpack_require__("./stories/components/linklist/LinkListData.js");__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.error.cause.js"),__webpack_require__("./node_modules/core-js/modules/es.error.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:String(i)}const components_link_collection_link_collection=_createClass((function IHKLinkCollection(div){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,IHKLinkCollection),new ResizeObserver((function(entries){entries.map((function(entry){var w=entry.borderBoxSize[0].inlineSize;div.dataset.cols=w<1e3?"1":"2"}))})).observe(div)}));var LinkListComponent=__webpack_require__("./stories/components/linklist/LinkListComponent.js"),ButtonComponent=__webpack_require__("./stories/atoms/button/ButtonComponent.js"),createLinkCollection=function createLinkCollection(_ref){var _ref$headline=_ref.headline,headline=void 0===_ref$headline?"Meistgeklickt":_ref$headline,_ref$linkListData=_ref.linkListData,linkListData=void 0===_ref$linkListData?LinkListData.Cg:_ref$linkListData,_ref$buttonText=_ref.buttonText,buttonText=void 0===_ref$buttonText?"Alle Pressemitteilungen anzeigen":_ref$buttonText,_ref$addContainer=_ref.addContainer,addContainer=void 0!==_ref$addContainer&&_ref$addContainer,wrapper=(0,helpers.az)("div",["link-collection"]);if(headline&&headline.length>0&&(0,helpers.az)("h2",[],headline,wrapper),wrapper.appendChild((0,LinkListComponent.i)({links:linkListData})),buttonText&&buttonText.length>0){var btnWrapper=(0,helpers.az)("div",["btn-wrapper"],null,wrapper),btn=(0,ButtonComponent.a)({elementType:"a",label:buttonText,icon:"pfeil-rechts",iconPosition:"icon-right"});btnWrapper.appendChild(btn)}if(new components_link_collection_link_collection(wrapper),addContainer){var section=(0,helpers.az)("section",["link-collection-wrapper"]),container=(0,helpers.az)("div",["container"],null,section),row=(0,helpers.az)("div",["row"],null,container);return(0,helpers.az)("div",["col"],null,row).appendChild(wrapper),section}return wrapper}},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./stories/components/link-collection/link-collection.scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),_node_modules_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_cssWithMappingToString_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_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.link-collection,.dl-teaser,.ll-teaser,.ll-teaser-text{margin:var(--section-margin) 0;background-color:var(--theme-color-secondary-dimmed);padding:var(--content-box-padding);border-bottom:var(--border-width) solid var(--theme-color-secondary)}@media(max-width: 567px){.link-collection,.dl-teaser,.ll-teaser,.ll-teaser-text{padding:calc(var(--content-box-padding)*1.5) var(--content-box-padding)}}.link-collection .btn-wrapper,.dl-teaser .btn-wrapper,.ll-teaser .btn-wrapper,.ll-teaser-text .btn-wrapper{padding-top:10px;text-align:right}.link-collection h2,.dl-teaser h2,.ll-teaser h2,.ll-teaser-text h2{margin-top:calc(var(--content-box-padding)*-0.2)}.link-collection[data-cols="2"] .linklist{columns:2;column-gap:40px}.link-collection[data-cols="2"] .linklist>li{-webkit-column-break-inside:avoid;page-break-inside:avoid;break-inside:avoid}section .link-collection{margin:calc(var(--col-padding)*-1) 0}@media(min-width: 1200px){.col:first-child:last-child>.link-collection{padding:46px 60px 42px}}@media(min-width: 1000px){.col:first-child:last-child>.link-collection .linklist{columns:2;column-gap:40px}}.col:first-child:last-child>.link-collection .linklist>li{-webkit-column-break-inside:avoid;page-break-inside:avoid;break-inside:avoid}.main-col .col:first-child:last-child>.link-collection,.main-col .link-collection{margin:calc(2% + 20px) 0 calc(3% + 20px)}.main-col .col:first-child:last-child>.link-collection .linklist,.main-col .link-collection .linklist{columns:1}.dl-teaser .hideInTableOfContents{margin-top:0}.ll-teaser.query-list-teasers,.ll-teaser-text.query-list-teasers{margin-top:0}',"",{version:3,sources:["webpack://./stories/components/link-collection/link-collection.scss"],names:[],mappings:"AAAA,uDACE,8BAAA,CACA,oDAAA,CACA,kCAAA,CACA,oEAAA,CAEA,yBANF,uDAOI,uEAAA,CAAA,CAGF,2GACE,gBAAA,CACA,gBAAA,CAGF,mEACE,gDAAA,CAKF,0CACE,SAAA,CACA,eAAA,CAEA,6CACE,iCAAA,CACA,uBAAA,CACA,kBAAA,CAKN,yBACE,oCAAA,CAIA,0BADF,6CAEI,sBAAA,CAAA,CAIA,0BADF,uDAEI,SAAA,CACA,eAAA,CAAA,CAGF,0DACE,iCAAA,CACA,uBAAA,CACA,kBAAA,CAKN,kFACE,wCAAA,CAEA,sGACE,SAAA,CAKF,kCACE,YAAA,CAIJ,iEACE,YAAA",sourcesContent:['.link-collection, .dl-teaser, .ll-teaser, .ll-teaser-text {\n margin: var(--section-margin) 0;\n background-color: var(--theme-color-secondary-dimmed);\n padding: var(--content-box-padding);\n border-bottom: var(--border-width) solid var(--theme-color-secondary);\n\n @media(max-width: 567px) {\n padding: calc(var(--content-box-padding) * 1.5) var(--content-box-padding);\n }\n\n .btn-wrapper {\n padding-top: 10px;\n text-align: right;\n }\n\n h2 {\n margin-top: calc(var(--content-box-padding) * -0.2);\n }\n}\n\n.link-collection[data-cols="2"] {\n .linklist {\n columns: 2;\n column-gap: 40px;\n\n > li {\n -webkit-column-break-inside: avoid;\n page-break-inside: avoid;\n break-inside: avoid;\n }\n }\n}\n\nsection .link-collection {\n margin: calc(var(--col-padding) * -1) 0;\n}\n\n.col:first-child:last-child > .link-collection {\n @media(min-width: 1200px) {\n padding: 46px 60px 42px;\n }\n\n .linklist {\n @media(min-width: 1000px) {\n columns: 2;\n column-gap: 40px;\n }\n\n > li {\n -webkit-column-break-inside: avoid;\n page-break-inside: avoid;\n break-inside: avoid;\n }\n }\n}\n\n.main-col .col:first-child:last-child > .link-collection, .main-col .link-collection {\n margin: calc(2% + 20px) 0 calc(3% + 20px);\n\n .linklist {\n columns: 1;\n }\n}\n\n.dl-teaser {\n .hideInTableOfContents {\n margin-top: 0;\n }\n}\n\n.ll-teaser.query-list-teasers, .ll-teaser-text.query-list-teasers {\n margin-top: 0;\n}'],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./stories/components/link-collection/LinkCollection.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{LinkCollection:()=>LinkCollection,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.function.bind.js"),__webpack_require__("./node_modules/core-js/modules/es.error.cause.js"),__webpack_require__("./node_modules/core-js/modules/es.error.to-string.js");var _linklist_LinkListData__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./stories/components/linklist/LinkListData.js"),_LinkCollectionComponent__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./stories/components/link-collection/LinkCollectionComponent.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Link Collection",argTypes:{headline:{name:"Überschrift",control:"text",defaultValue:"Meistgeklickt"},buttonText:{name:"Button Label",control:"text",defaultValue:"Alle Pressemitteilungen anzeigen"},linkListData:{name:"Kontakte",control:{type:"object"},defaultValue:_linklist_LinkListData__WEBPACK_IMPORTED_MODULE_4__.Cg}}};var LinkCollection=function Template(_ref){var args=_extends({},(function _objectDestructuringEmpty(obj){if(null==obj)throw new TypeError("Cannot destructure "+obj)}(_ref),_ref));return(0,_LinkCollectionComponent__WEBPACK_IMPORTED_MODULE_5__.C)(Object.assign({},args))}.bind({});LinkCollection.args={};var __namedExportsOrder=["LinkCollection"];LinkCollection.parameters={...LinkCollection.parameters,docs:{...LinkCollection.parameters?.docs,source:{originalSource:"({\n ...args\n}) => {\n return createLinkCollection({\n ...args\n });\n}",...LinkCollection.parameters?.docs?.source}}}}}]);