@content-blocks/js 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/cjs/content-accordion_11.cjs.entry.js +56 -40
  2. package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
  3. package/dist/cjs/content-blocks.cjs.js +2 -2
  4. package/dist/cjs/content-carousel.cjs.entry.js +2 -1
  5. package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
  6. package/dist/cjs/content-navigation-block.cjs.entry.js +23 -19
  7. package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
  8. package/dist/cjs/content-split-block.cjs.entry.js +4 -4
  9. package/dist/cjs/content-split-block.cjs.entry.js.map +1 -1
  10. package/dist/cjs/content-tabs.cjs.entry.js +3 -3
  11. package/dist/cjs/{index-072153fb.js → index-9f20d89a.js} +34 -4
  12. package/dist/cjs/index-9f20d89a.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +1 -1
  14. package/dist/cjs/loader.cjs.js +2 -2
  15. package/dist/cjs/{utils-9856e159.js → utils-db61cd70.js} +1 -3
  16. package/dist/cjs/utils-db61cd70.js.map +1 -0
  17. package/dist/cjs/{window-resize-service-77b2c64e.js → window-resize-service-ac5c2012.js} +2 -2
  18. package/dist/cjs/{window-resize-service-77b2c64e.js.map → window-resize-service-ac5c2012.js.map} +1 -1
  19. package/dist/collection/blocks/content-hero-block/content-hero-block.css +6 -0
  20. package/dist/collection/blocks/content-split-block/content-split-block.js +1 -1
  21. package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -1
  22. package/dist/collection/components/content-accordion/content-accordion.js +2 -2
  23. package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
  24. package/dist/collection/components/content-carousel/content-carousel.js +1 -0
  25. package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
  26. package/dist/collection/components/content-navigation-block/content-navigation-block.js +20 -16
  27. package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
  28. package/dist/collection/components/content-overlay/content-overlay.css +6 -3
  29. package/dist/collection/components/content-overlay/content-overlay.js +24 -9
  30. package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
  31. package/dist/collection/elements/content-button/content-button.js +2 -5
  32. package/dist/collection/elements/content-button/content-button.js.map +1 -1
  33. package/dist/collection/elements/content-image/content-image.css +4 -7
  34. package/dist/collection/elements/content-image/content-image.js +79 -21
  35. package/dist/collection/elements/content-image/content-image.js.map +1 -1
  36. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +1 -0
  37. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +46 -3
  38. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
  39. package/dist/collection/formatters/content-spacer/content-spacer.js +3 -2
  40. package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
  41. package/dist/components/content-accordion.js +1 -1
  42. package/dist/components/content-accordion.js.map +1 -1
  43. package/dist/components/content-button.js +2 -5
  44. package/dist/components/content-button.js.map +1 -1
  45. package/dist/components/content-carousel.js +1 -0
  46. package/dist/components/content-carousel.js.map +1 -1
  47. package/dist/components/content-grid-formatter2.js +8 -2
  48. package/dist/components/content-grid-formatter2.js.map +1 -1
  49. package/dist/components/content-hero-block.js +1 -1
  50. package/dist/components/content-hero-block.js.map +1 -1
  51. package/dist/components/content-image.js +26 -22
  52. package/dist/components/content-image.js.map +1 -1
  53. package/dist/components/content-navigation-block.js +20 -16
  54. package/dist/components/content-navigation-block.js.map +1 -1
  55. package/dist/components/content-overlay.js +22 -7
  56. package/dist/components/content-overlay.js.map +1 -1
  57. package/dist/components/content-spacer.js +1 -1
  58. package/dist/components/content-spacer.js.map +1 -1
  59. package/dist/components/content-split-block.js +1 -1
  60. package/dist/components/content-split-block.js.map +1 -1
  61. package/dist/components/utils.js +1 -1
  62. package/dist/components/utils.js.map +1 -1
  63. package/dist/content-blocks/content-blocks.esm.js +1 -1
  64. package/dist/content-blocks/content-blocks.esm.js.map +1 -1
  65. package/dist/content-blocks/index.esm.js +1 -1
  66. package/dist/content-blocks/{p-ebaee21f.entry.js → p-167a9155.entry.js} +2 -2
  67. package/dist/content-blocks/{p-ebaee21f.entry.js.map → p-167a9155.entry.js.map} +1 -1
  68. package/dist/content-blocks/{p-30ab003a.entry.js → p-271fb304.entry.js} +2 -2
  69. package/dist/content-blocks/p-271fb304.entry.js.map +1 -0
  70. package/dist/content-blocks/p-288eace9.js +3 -0
  71. package/dist/content-blocks/p-288eace9.js.map +1 -0
  72. package/dist/content-blocks/p-4038cd42.entry.js +10 -0
  73. package/dist/content-blocks/p-4038cd42.entry.js.map +1 -0
  74. package/dist/content-blocks/{p-fd14acd9.entry.js → p-4bfbd7ef.entry.js} +2 -2
  75. package/dist/content-blocks/{p-fd14acd9.entry.js.map → p-4bfbd7ef.entry.js.map} +1 -1
  76. package/dist/content-blocks/{p-2c515f18.entry.js → p-8cc22c1e.entry.js} +2 -2
  77. package/dist/content-blocks/{p-da2c36ea.js → p-b04fe808.js} +2 -2
  78. package/dist/content-blocks/{p-da2c36ea.js.map → p-b04fe808.js.map} +1 -1
  79. package/dist/content-blocks/{p-3b4b9ad1.js → p-cfb4593f.js} +2 -2
  80. package/dist/esm/content-accordion_11.entry.js +56 -40
  81. package/dist/esm/content-accordion_11.entry.js.map +1 -1
  82. package/dist/esm/content-blocks.js +3 -3
  83. package/dist/esm/content-carousel.entry.js +2 -1
  84. package/dist/esm/content-carousel.entry.js.map +1 -1
  85. package/dist/esm/content-navigation-block.entry.js +23 -19
  86. package/dist/esm/content-navigation-block.entry.js.map +1 -1
  87. package/dist/esm/content-split-block.entry.js +4 -4
  88. package/dist/esm/content-split-block.entry.js.map +1 -1
  89. package/dist/esm/content-tabs.entry.js +3 -3
  90. package/dist/esm/{index-5c31f78b.js → index-e848c048.js} +34 -4
  91. package/dist/esm/index-e848c048.js.map +1 -0
  92. package/dist/esm/index.js +1 -1
  93. package/dist/esm/loader.js +3 -3
  94. package/dist/esm/{utils-4f29a9cf.js → utils-4f78228e.js} +2 -2
  95. package/dist/esm/utils-4f78228e.js.map +1 -0
  96. package/dist/esm/{window-resize-service-332e7420.js → window-resize-service-f40ec51c.js} +2 -2
  97. package/dist/esm/{window-resize-service-332e7420.js.map → window-resize-service-f40ec51c.js.map} +1 -1
  98. package/dist/types/components/content-accordion/content-accordion.d.ts +6 -6
  99. package/dist/types/components/content-overlay/content-overlay.d.ts +4 -2
  100. package/dist/types/components.d.ts +37 -3
  101. package/dist/types/elements/content-image/content-image.d.ts +12 -0
  102. package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +8 -2
  103. package/dist/types/typings.d.ts +3 -3
  104. package/package.json +1 -1
  105. package/dist/cjs/index-072153fb.js.map +0 -1
  106. package/dist/cjs/utils-9856e159.js.map +0 -1
  107. package/dist/content-blocks/p-2faf0c78.js +0 -3
  108. package/dist/content-blocks/p-2faf0c78.js.map +0 -1
  109. package/dist/content-blocks/p-30ab003a.entry.js.map +0 -1
  110. package/dist/content-blocks/p-b8009321.entry.js +0 -10
  111. package/dist/content-blocks/p-b8009321.entry.js.map +0 -1
  112. package/dist/esm/index-5c31f78b.js.map +0 -1
  113. package/dist/esm/utils-4f29a9cf.js.map +0 -1
  114. /package/dist/content-blocks/{p-2c515f18.entry.js.map → p-8cc22c1e.entry.js.map} +0 -0
  115. /package/dist/content-blocks/{p-3b4b9ad1.js.map → p-cfb4593f.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["breakpoints","breakpointLabels","breakpointValues","getBreakpointValues","insertCssIntoHead","document","fontCssUrl","element","querySelector","createElement","setAttribute","head","prepend","generateResponsiveClass","classPrefix","responsiveValue","index","classString","split","forEach","value","generateResponsiveValues","responseArray","splitResponsiveValues","lastGoodValue","_value","thisBreakpointValue","push","getCurrentBreakpointIndex","activeBreakpointIndex","windowWidth","window","innerWidth","some","width","condition","indexOf","getCurrentValue","currentBreakpoint","responsiveValues","toString","returnValue","i","getValueAtIndex","trim","getHydratedClassString","cleanedString","includes","objectToCssString","object","string","key","length"],"sources":["src/utils/utils.ts"],"sourcesContent":["import { ResponsiveString } from \"../typings\";\n\nexport const breakpoints = ['mobile', 'tablet-portrait', 'tablet-landscape', 'tablet-pro', 'desktop-large', 'desktop-wide'];\nexport const breakpointLabels = ['Mobile', 'Tablet (Portrait)', 'Tablet (Landscape)', 'iPad Pro', 'Desktop Large', 'Desktop Wide'];\nexport const breakpointValues = [0,768,1024,1366,1440,1920];\n\nexport function getBreakpointValues() {\n return breakpointValues;\n}\nexport function insertCssIntoHead(document: Document, fontCssUrl: string) {\n let element = document.querySelector(`link[href=\"${fontCssUrl}\"]`);\n // Only inject the element if it's not yet present\n if (!element) {\n element = document.createElement('link');\n element.setAttribute('rel', 'stylesheet');\n element.setAttribute('href', fontCssUrl);\n document.head.prepend(element);\n }\n}\n\nexport function generateResponsiveClass(classPrefix: string, responsiveValue: string) {\n let index = -1;\n let classString = '';\n responsiveValue.split('|').forEach(value => {\n index++;\n if (!value || value === 'false') {\n return false;\n }\n classString += ` ${classPrefix}-${breakpoints[index]}-${value}`\n });\n return classString;\n}\n\n// Fills in default value if none exists for a breakpoint\nexport function generateResponsiveValues(responsiveValue: string): string[] {\n if (!responsiveValue) {\n return [];\n }\n let responseArray = [];\n let splitResponsiveValues = responsiveValue.split('|');\n let lastGoodValue = splitResponsiveValues[0];\n breakpointValues.forEach((_value, index) => {\n let thisBreakpointValue = splitResponsiveValues[index];\n if (thisBreakpointValue) {\n lastGoodValue = thisBreakpointValue;\n }\n responseArray.push(thisBreakpointValue ? thisBreakpointValue : lastGoodValue);\n });\n return responseArray;\n}\n\nexport function getCurrentBreakpointIndex(): number {\n let activeBreakpointIndex: number = 0;\n let windowWidth = window.innerWidth;\n breakpointValues.some((width) => {\n // The first time this is true will end the loop\n let condition = width > windowWidth;\n if (!condition) {\n activeBreakpointIndex = breakpointValues.indexOf(width);\n }\n return condition;\n });\n return activeBreakpointIndex;\n}\n\nexport function getCurrentValue(responsiveValue: string|boolean): string {\n if (!responsiveValue) {\n return '';\n }\n let currentBreakpoint = getCurrentBreakpointIndex();\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n let returnValue: string;\n for (var i = currentBreakpoint; i >= 0; i--) {\n if (responsiveValues[i]) {\n returnValue = responsiveValues[i];\n i = -1;\n }\n }\n return returnValue;\n}\n\nexport function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string {\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n return responsiveValues[index].trim();\n}\n\nexport function getHydratedClassString(classString: string): string {\n let cleanedString = getCurrentValue(classString).trim();\n if (cleanedString.includes('hydrated')) {\n return cleanedString.trim();\n }\n if (cleanedString) {\n return cleanedString.trim() + ' hydrated';\n }\n return 'hydrated';\n}\n\nexport function objectToCssString(object: object): string {\n let string = '';\n for (var key in object) {\n if (object[key].length > 0 && !['px', '%'].includes(object[key])) {\n string += `${key}: ${object[key]};`;\n }\n }\n return string;\n}"],"mappings":"AAEO,MAAMA,EAAc,CAAC,SAAU,kBAAmB,mBAAoB,aAAc,gBAAiB,gBACrG,MAAMC,EAAmB,CAAC,SAAU,oBAAqB,qBAAsB,WAAY,gBAAiB,gB,MACtGC,EAAmB,CAAC,EAAE,IAAI,KAAK,KAAK,KAAK,M,SAEtCC,IACd,OAAOD,CACT,C,SACgBE,EAAkBC,EAAoBC,GACpD,IAAIC,EAAUF,EAASG,cAAc,cAAcF,OAEnD,IAAKC,EAAS,CACZA,EAAUF,EAASI,cAAc,QACjCF,EAAQG,aAAa,MAAO,cAC5BH,EAAQG,aAAa,OAAQJ,GAC7BD,EAASM,KAAKC,QAAQL,E,CAE1B,C,SAEgBM,EAAwBC,EAAqBC,GAC3D,IAAIC,GAAS,EACb,IAAIC,EAAc,GAClBF,EAAgBG,MAAM,KAAKC,SAAQC,IACjCJ,IACA,IAAKI,GAASA,IAAU,QAAS,CAC/B,OAAO,K,CAETH,GAAe,IAAIH,KAAed,EAAYgB,MAAUI,GAAO,IAEjE,OAAOH,CACT,C,SAGgBI,EAAyBN,GACvC,IAAKA,EAAiB,CACpB,MAAO,E,CAET,IAAIO,EAAgB,GACpB,IAAIC,EAAwBR,EAAgBG,MAAM,KAClD,IAAIM,EAAgBD,EAAsB,GAC1CrB,EAAiBiB,SAAQ,CAACM,EAAQT,KAChC,IAAIU,EAAsBH,EAAsBP,GAChD,GAAIU,EAAqB,CACvBF,EAAgBE,C,CAElBJ,EAAcK,KAAKD,EAAsBA,EAAsBF,EAAc,IAE/E,OAAOF,CACT,C,SAEgBM,IACd,IAAIC,EAAgC,EACpC,IAAIC,EAAcC,OAAOC,WACzB9B,EAAiB+B,MAAMC,IAErB,IAAIC,EAAYD,EAAQJ,EACxB,IAAKK,EAAW,CACdN,EAAwB3B,EAAiBkC,QAAQF,E,CAEnD,OAAOC,CAAS,IAElB,OAAON,CACT,C,SAEgBQ,EAAgBtB,GAC9B,IAAKA,EAAiB,CACpB,MAAO,E,CAET,IAAIuB,EAAoBV,IACxB,IAAIW,EAAmBlB,EAAyBN,EAAgByB,YAChE,IAAIC,EACJ,IAAK,IAAIC,EAAIJ,EAAmBI,GAAK,EAAGA,IAAK,CAC3C,GAAIH,EAAiBG,GAAI,CACvBD,EAAcF,EAAiBG,GAC/BA,GAAK,C,EAGT,OAAOD,CACT,C,SAEgBE,EAAgB3B,EAAeD,GAC7C,IAAIwB,EAAmBlB,EAAyBN,EAAgByB,YAChE,OAAOD,EAAiBvB,GAAO4B,MACjC,C,SAEgBC,EAAuB5B,GACrC,IAAI6B,EAAgBT,EAAgBpB,GAAa2B,OACjD,GAAIE,EAAcC,SAAS,YAAa,CACtC,OAAOD,EAAcF,M,CAEvB,GAAIE,EAAe,CACjB,OAAOA,EAAcF,OAAS,W,CAEhC,MAAO,UACT,C,SAEgBI,EAAkBC,GAChC,IAAIC,EAAS,GACb,IAAK,IAAIC,KAAOF,EAAQ,CACtB,GAAIA,EAAOE,GAAKC,OAAS,IAAM,CAAC,KAAM,KAAKL,SAASE,EAAOE,IAAO,CAChED,GAAU,GAAGC,MAAQF,EAAOE,K,EAGhC,OAAOD,CACT,C"}
1
+ {"version":3,"names":["breakpoints","breakpointLabels","breakpointValues","getBreakpointValues","insertCssIntoHead","document","fontCssUrl","element","querySelector","createElement","setAttribute","head","prepend","generateResponsiveClass","classPrefix","responsiveValue","index","classString","split","forEach","value","generateResponsiveValues","responseArray","splitResponsiveValues","lastGoodValue","_value","thisBreakpointValue","push","getCurrentBreakpointIndex","activeBreakpointIndex","windowWidth","window","innerWidth","some","width","condition","indexOf","getCurrentValue","currentBreakpoint","responsiveValues","toString","returnValue","i","getValueAtIndex","trim","getHydratedClassString","cleanedString","includes","objectToCssString","object","string","key","length"],"sources":["src/utils/utils.ts"],"sourcesContent":["import { ResponsiveString } from \"../typings\";\n\nexport const breakpoints = ['mobile', 'tablet-portrait', 'tablet-landscape', 'tablet-pro', 'desktop-large', 'desktop-wide'];\nexport const breakpointLabels = ['Mobile', 'Tablet (Portrait)', 'Tablet (Landscape)', 'iPad Pro', 'Desktop Large', 'Desktop Wide'];\nexport const breakpointValues = [0,768,1024,1366,1440,1920];\n\nexport function getBreakpointValues() {\n return breakpointValues;\n}\nexport function insertCssIntoHead(document: Document, fontCssUrl: string) {\n let element = document.querySelector(`link[href=\"${fontCssUrl}\"]`);\n // Only inject the element if it's not yet present\n if (!element) {\n element = document.createElement('link');\n element.setAttribute('rel', 'stylesheet');\n element.setAttribute('href', fontCssUrl);\n document.head.prepend(element);\n }\n}\n\nexport function generateResponsiveClass(classPrefix: string, responsiveValue: string) {\n let index = -1;\n let classString = '';\n responsiveValue.split('|').forEach(value => {\n index++;\n if (!value || value === 'false') {\n return false;\n }\n classString += ` ${classPrefix}-${breakpoints[index]}-${value}`\n });\n return classString;\n}\n\n// Fills in default value if none exists for a breakpoint\nexport function generateResponsiveValues(responsiveValue: string): string[] {\n if (!responsiveValue) {\n return [];\n }\n let responseArray = [];\n let splitResponsiveValues = responsiveValue.split('|');\n let lastGoodValue = splitResponsiveValues[0];\n breakpointValues.forEach((_value, index) => {\n let thisBreakpointValue = splitResponsiveValues[index];\n if (thisBreakpointValue) {\n lastGoodValue = thisBreakpointValue;\n }\n responseArray.push(thisBreakpointValue ? thisBreakpointValue : lastGoodValue);\n });\n return responseArray;\n}\n\nexport function getCurrentBreakpointIndex(): number {\n let activeBreakpointIndex: number = 0;\n let windowWidth = window.innerWidth;\n breakpointValues.some((width) => {\n // The first time this is true will end the loop\n let condition = width > windowWidth;\n if (!condition) {\n activeBreakpointIndex = breakpointValues.indexOf(width);\n }\n return condition;\n });\n return activeBreakpointIndex;\n}\n\nexport function getCurrentValue(responsiveValue: string|boolean): string {\n if (!responsiveValue) {\n return '';\n }\n let currentBreakpoint = getCurrentBreakpointIndex();\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n let returnValue: string;\n for (var i = currentBreakpoint; i >= 0; i--) {\n if (responsiveValues[i]) {\n returnValue = responsiveValues[i];\n i = -1;\n }\n }\n return returnValue;\n}\n\nexport function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string {\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n return responsiveValues[index].trim();\n}\n\nexport function getHydratedClassString(classString: string): string {\n let cleanedString = getCurrentValue(classString).trim();\n if (cleanedString.includes('hydrated')) {\n return cleanedString.trim();\n }\n if (cleanedString) {\n return cleanedString.trim() + ' hydrated';\n }\n return 'hydrated';\n}\n\nexport function objectToCssString(object: object): string {\n let string = '';\n for (var key in object) {\n if (object[key].length > 0 && !['px', '%'].includes(object[key])) {\n string += `${key}: ${object[key]};`;\n }\n }\n return string;\n}"],"mappings":"AAEO,MAAMA,EAAc,CAAC,SAAU,kBAAmB,mBAAoB,aAAc,gBAAiB,gBACrG,MAAMC,EAAmB,CAAC,SAAU,oBAAqB,qBAAsB,WAAY,gBAAiB,gBAC5G,MAAMC,EAAmB,CAAC,EAAE,IAAI,KAAK,KAAK,KAAK,M,SAEtCC,IACd,OAAOD,CACT,C,SACgBE,EAAkBC,EAAoBC,GACpD,IAAIC,EAAUF,EAASG,cAAc,cAAcF,OAEnD,IAAKC,EAAS,CACZA,EAAUF,EAASI,cAAc,QACjCF,EAAQG,aAAa,MAAO,cAC5BH,EAAQG,aAAa,OAAQJ,GAC7BD,EAASM,KAAKC,QAAQL,E,CAE1B,C,SAEgBM,EAAwBC,EAAqBC,GAC3D,IAAIC,GAAS,EACb,IAAIC,EAAc,GAClBF,EAAgBG,MAAM,KAAKC,SAAQC,IACjCJ,IACA,IAAKI,GAASA,IAAU,QAAS,CAC/B,OAAO,K,CAETH,GAAe,IAAIH,KAAed,EAAYgB,MAAUI,GAAO,IAEjE,OAAOH,CACT,C,SAGgBI,EAAyBN,GACvC,IAAKA,EAAiB,CACpB,MAAO,E,CAET,IAAIO,EAAgB,GACpB,IAAIC,EAAwBR,EAAgBG,MAAM,KAClD,IAAIM,EAAgBD,EAAsB,GAC1CrB,EAAiBiB,SAAQ,CAACM,EAAQT,KAChC,IAAIU,EAAsBH,EAAsBP,GAChD,GAAIU,EAAqB,CACvBF,EAAgBE,C,CAElBJ,EAAcK,KAAKD,EAAsBA,EAAsBF,EAAc,IAE/E,OAAOF,CACT,C,SAEgBM,IACd,IAAIC,EAAgC,EACpC,IAAIC,EAAcC,OAAOC,WACzB9B,EAAiB+B,MAAMC,IAErB,IAAIC,EAAYD,EAAQJ,EACxB,IAAKK,EAAW,CACdN,EAAwB3B,EAAiBkC,QAAQF,E,CAEnD,OAAOC,CAAS,IAElB,OAAON,CACT,C,SAEgBQ,EAAgBtB,GAC9B,IAAKA,EAAiB,CACpB,MAAO,E,CAET,IAAIuB,EAAoBV,IACxB,IAAIW,EAAmBlB,EAAyBN,EAAgByB,YAChE,IAAIC,EACJ,IAAK,IAAIC,EAAIJ,EAAmBI,GAAK,EAAGA,IAAK,CAC3C,GAAIH,EAAiBG,GAAI,CACvBD,EAAcF,EAAiBG,GAC/BA,GAAK,C,EAGT,OAAOD,CACT,C,SAEgBE,EAAgB3B,EAAeD,GAC7C,IAAIwB,EAAmBlB,EAAyBN,EAAgByB,YAChE,OAAOD,EAAiBvB,GAAO4B,MACjC,C,SAEgBC,EAAuB5B,GACrC,IAAI6B,EAAgBT,EAAgBpB,GAAa2B,OACjD,GAAIE,EAAcC,SAAS,YAAa,CACtC,OAAOD,EAAcF,M,CAEvB,GAAIE,EAAe,CACjB,OAAOA,EAAcF,OAAS,W,CAEhC,MAAO,UACT,C,SAEgBI,EAAkBC,GAChC,IAAIC,EAAS,GACb,IAAK,IAAIC,KAAOF,EAAQ,CACtB,GAAIA,EAAOE,GAAKC,OAAS,IAAM,CAAC,KAAM,KAAKL,SAASE,EAAOE,IAAO,CAChED,GAAU,GAAGC,MAAQF,EAAOE,K,EAGhC,OAAOD,CACT,C"}
@@ -1,2 +1,2 @@
1
- import{c as s,a as t}from"./p-da2c36ea.js";import{B as e,O as r}from"./p-cd552ce2.js";class i{constructor(){this.currentBreakpoint=s();this.breakpointIndex$=new e(this.currentBreakpoint);const t=new ResizeObserver((t=>{if(this.timeoutHolder){clearTimeout(this.timeoutHolder)}let e=s();if(this.breakpointIndex$.value===e){return false}this.breakpointIndex$.next(e)}));t.observe(window.document.body)}registerProp(s){return new r((e=>{e.next(t(s));this.breakpointIndex$.subscribe((()=>{let r=t(s);e.next(r)}))}))}}const o=new i;export{o as W};
2
- //# sourceMappingURL=p-3b4b9ad1.js.map
1
+ import{a as s,g as t}from"./p-b04fe808.js";import{B as e,O as r}from"./p-cd552ce2.js";class i{constructor(){this.currentBreakpoint=s();this.breakpointIndex$=new e(this.currentBreakpoint);const t=new ResizeObserver((t=>{if(this.timeoutHolder){clearTimeout(this.timeoutHolder)}let e=s();if(this.breakpointIndex$.value===e){return false}this.breakpointIndex$.next(e)}));t.observe(window.document.body)}registerProp(s){return new r((e=>{e.next(t(s));this.breakpointIndex$.subscribe((()=>{let r=t(s);e.next(r)}))}))}}const o=new i;export{o as W};
2
+ //# sourceMappingURL=p-cfb4593f.js.map
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-5c31f78b.js';
2
- import { W as WindowResizeService } from './window-resize-service-332e7420.js';
3
- import { b as breakpointValues, g as getValueAtIndex, a as getCurrentValue } from './utils-4f29a9cf.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e848c048.js';
2
+ import { W as WindowResizeService } from './window-resize-service-f40ec51c.js';
3
+ import { g as getCurrentValue } from './utils-4f78228e.js';
4
4
  import './BehaviorSubject-bc7e0e99.js';
5
5
 
6
6
  const contentAccordionCss = "*{box-sizing:border-box}content-accordion{display:block}content-accordion>button{display:block;width:100%;padding:0;border:none;font:inherit;color:inherit;background-color:transparent;cursor:pointer}content-accordion[expanded]>.content-accordion__reveal{display:block}content-accordion>.content-accordion__reveal{display:none}";
@@ -12,7 +12,7 @@ const ContentAccordion = class {
12
12
  this.open = 'false|true';
13
13
  this.animationStart = 'animation-start';
14
14
  this.animationEnd = 'animation-end';
15
- this.animationTime = 300;
15
+ this.animationTime = 0;
16
16
  this.isOpen = false;
17
17
  this.randomID = '';
18
18
  this.classString = '';
@@ -95,19 +95,16 @@ const ContentButton = class {
95
95
  onHandleClickEvent(ev) {
96
96
  console.log(ev);
97
97
  if (this.hasContentToActivate) {
98
- console.log('this.hascontenttoactivate');
99
98
  ev.preventDefault();
100
- ev.stopPropagation();
99
+ // ev.stopPropagation();
101
100
  this.activatedContent.dispatchEvent(new CustomEvent('contentBlockActivated', { detail: this.activatedContent }));
102
101
  this.activatedContent.scrollIntoView({ behavior: 'smooth' });
103
102
  }
104
103
  else if (this.href && this.href.length > 1 && this.href.substring(0, 1) === '#') {
105
104
  let element = document.getElementById(this.href.substring(1));
106
- console.log(this.href.substring(1));
107
105
  if (element) {
108
106
  ev.preventDefault();
109
- ev.stopPropagation();
110
- console.log(element);
107
+ // ev.stopPropagation();
111
108
  element.dispatchEvent(new CustomEvent('contentBlockActivated', { detail: element }));
112
109
  // element.scrollIntoView({ behavior: 'smooth' });
113
110
  }
@@ -120,7 +117,7 @@ const ContentButton = class {
120
117
  };
121
118
  ContentButton.style = contentButtonCss;
122
119
 
123
- const contentGridFormatterCss = "*{box-sizing:border-box}content-grid-formatter{width:100%;overflow:auto}content-grid-formatter *{box-sizing:border-box}content-grid-formatter[type=grid]{display:grid;grid-template-columns:repeat(var(--columns), 1fr)}content-grid-formatter[type=flex]{display:flex;align-items:var(--align-items);justify-content:var(--justify-content);flex-wrap:wrap}content-grid-formatter[type=flex]>*{overflow:auto;flex:0 0 auto;width:calc(100% / var(--columns))}content-grid-formatter>[flex-shrink=true]{width:auto;flex-shrink:1}content-grid-formatter[flex-shrink=true]>*{flex-shrink:1}content-grid-formatter[flex-grow=true]>*{flex-grow:1}content-grid-formatter>[flex-grow=true]{width:auto;flex-grow:1}";
120
+ const contentGridFormatterCss = "*{box-sizing:border-box}content-grid-formatter{width:100%;overflow:auto}content-grid-formatter *{box-sizing:border-box}content-grid-formatter[type=grid]{display:grid;grid-template-columns:repeat(var(--columns), 1fr);column-gap:var(--column-gap)}content-grid-formatter[type=flex]{display:flex;align-items:var(--align-items);justify-content:var(--justify-content);flex-wrap:wrap}content-grid-formatter[type=flex]>*{overflow:auto;flex:0 0 auto;width:calc(100% / var(--columns))}content-grid-formatter>[flex-shrink=true]{width:auto;flex-shrink:1}content-grid-formatter[flex-shrink=true]>*{flex-shrink:1}content-grid-formatter[flex-grow=true]>*{flex-grow:1}content-grid-formatter>[flex-grow=true]{width:auto;flex-grow:1}";
124
121
 
125
122
  const ContentGridFormatter = class {
126
123
  constructor(hostRef) {
@@ -133,10 +130,11 @@ const ContentGridFormatter = class {
133
130
  this.verticalAlignment = 'space-between';
134
131
  this.horizontalAlignment = 'space-between';
135
132
  this.columns = '1';
133
+ this.columnGap = '0';
136
134
  this.activeClassString = undefined;
137
135
  this.inlineStyle = {};
138
136
  }
139
- componentDidLoad() {
137
+ componentWillLoad() {
140
138
  return Promise.allSettled([
141
139
  WindowResizeService.registerProp(this.type).subscribe(newValue => (this.type = newValue)),
142
140
  WindowResizeService.registerProp(this.verticalAlignment).subscribe(newValue => {
@@ -153,6 +151,10 @@ const ContentGridFormatter = class {
153
151
  this.columns = newValue;
154
152
  this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--columns': newValue });
155
153
  }),
154
+ WindowResizeService.registerProp(this.columnGap).subscribe(newValue => {
155
+ this.columnGap = newValue;
156
+ this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--column-gap': newValue });
157
+ }),
156
158
  WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue)),
157
159
  ]);
158
160
  }
@@ -162,7 +164,7 @@ const ContentGridFormatter = class {
162
164
  };
163
165
  ContentGridFormatter.style = contentGridFormatterCss;
164
166
 
165
- const contentHeroBlockCss = "*{box-sizing:border-box}content-hero-block{position:relative}content-hero-block[content-position=above]{display:grid;grid-template-columns:1fr}content-hero-block[content-position=above] .content-hero-block__background,content-hero-block[content-position=above] .content-hero-block__content{grid-row-start:1;grid-column-start:1}content-hero-block[content-position=above] .content-hero-block__background{height:100%;overflow:hidden}content-hero-block[content-position=above] .content-hero-block__content{display:flex;top:0;left:0;width:100%;height:100%;grid-row-start:1;grid-column-start:1}content-hero-block[content-position=above] .content-hero-block__content>*{width:100%}content-hero-block[content-position=above] .content-hero-block__content{position:relative;z-index:1}content-hero-block[content-position=below]{display:block}";
167
+ const contentHeroBlockCss = "*{box-sizing:border-box}content-hero-block{position:relative}content-hero-block[content-position=above]{display:grid;grid-template-columns:1fr}content-hero-block[content-position=above] .content-hero-block__background,content-hero-block[content-position=above] .content-hero-block__content{grid-row-start:1;grid-column-start:1}content-hero-block[content-position=above] .content-hero-block__background{height:100%;overflow:hidden}content-hero-block[content-position=above] .content-hero-block__background content-image,content-hero-block[content-position=above] .content-hero-block__background content-image picture,content-hero-block[content-position=above] .content-hero-block__background content-image img,content-hero-block[content-position=above] .content-hero-block__background content-image video{height:100%}content-hero-block[content-position=above] .content-hero-block__content{display:flex;top:0;left:0;width:100%;height:100%;grid-row-start:1;grid-column-start:1}content-hero-block[content-position=above] .content-hero-block__content>*{width:100%}content-hero-block[content-position=above] .content-hero-block__content{position:relative;z-index:1}content-hero-block[content-position=below]{display:block}";
166
168
 
167
169
  const ContentHeroBlock = class {
168
170
  constructor(hostRef) {
@@ -191,7 +193,7 @@ const ContentHeroBlock = class {
191
193
  };
192
194
  ContentHeroBlock.style = contentHeroBlockCss;
193
195
 
194
- const contentImageCss = "*{box-sizing:border-box}content-image{display:block;height:auto;transition:opacity 0.3s;position:relative}content-image.content-image-loading{opacity:0}content-image.content-image-loaded{opacity:1}content-image img,content-image picture,content-image video{display:block;width:100%;height:100%}content-hero-block content-image img,content-grid-formatter content-image img,content-hero-block content-image picture,content-grid-formatter content-image picture,content-hero-block content-image video,content-grid-formatter content-image video{height:auto}content-image .content-image__media-content{display:none;position:absolute;width:100%;height:100%;top:0;left:0;align-items:center;justify-content:center;overflow:hidden}content-image .content-image__media-content [slot=mediaContent]{height:100%;width:100%}content-image[content=true] .content-image__media-content{display:flex}";
196
+ const contentImageCss = "*{box-sizing:border-box}content-image{display:block;height:auto;transition:opacity 0.3s;position:relative}content-image.content-image-loading{opacity:0}content-image.content-image-loaded{opacity:1}content-image[aspect-ratio] img,content-image[aspect-ratio] picture,content-image[aspect-ratio] video{aspect-ratio:var(--aspect-ratio);object-fit:cover}content-image img,content-image picture,content-image video{display:block;width:100%;height:100%}content-image .content-image__media-content{display:none;position:absolute;width:100%;height:100%;top:0;left:0;align-items:center;justify-content:center;overflow:hidden}content-image .content-image__media-content [slot=mediaContent]{height:100%;width:100%}content-image[content=true] .content-image__media-content{display:flex}";
195
197
 
196
198
  const ContentImage = class {
197
199
  constructor(hostRef) {
@@ -203,6 +205,8 @@ const ContentImage = class {
203
205
  this.alt = undefined;
204
206
  this.width = '16';
205
207
  this.height = '9';
208
+ this.aspectRatio = undefined;
209
+ this.type = 'image';
206
210
  this.videoType = 'video/mp4';
207
211
  this.showContent = 'false|true';
208
212
  this.lazyLoadIsComplete = false;
@@ -211,6 +215,7 @@ const ContentImage = class {
211
215
  this.classString = '';
212
216
  this.inlineStyle = {};
213
217
  this.hasMediaContent = false;
218
+ this.pictureImageSrc = undefined;
214
219
  }
215
220
  preloadImage(src) {
216
221
  return new Promise(r => {
@@ -222,12 +227,22 @@ const ContentImage = class {
222
227
  }
223
228
  componentWillLoad() {
224
229
  this.hasMediaContent = !!this.hostElement.querySelector('[slot="mediaContent"]');
225
- WindowResizeService.registerProp(this.src).subscribe(newValue => {
226
- this.showVideoAsGif = newValue.indexOf('.mp4') >= 0;
227
- if (!this.lazyLoadIsComplete) {
228
- this.lazyLoadIsComplete = true;
229
- }
230
- this.src = newValue;
230
+ let observer = new IntersectionObserver(entries => {
231
+ entries.forEach(async (entry) => {
232
+ if (entry.isIntersecting) {
233
+ this.lazyLoadIsComplete = true;
234
+ this.pictureImageSrc = getCurrentValue(this.src);
235
+ this.showVideoAsGif = this.pictureImageSrc.indexOf('.mp4') >= 0 || getCurrentValue(this.type) === 'video';
236
+ }
237
+ });
238
+ }, {
239
+ root: null,
240
+ rootMargin: `${Math.max(100, window.innerHeight * 0.15)}px`,
241
+ threshold: 0.1,
242
+ });
243
+ observer.observe(this.hostElement);
244
+ WindowResizeService.registerProp(this.aspectRatio).subscribe(newValue => {
245
+ this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--aspect-ratio': `${newValue}` });
231
246
  });
232
247
  WindowResizeService.registerProp(this.alt).subscribe(newValue => {
233
248
  this.alt = newValue;
@@ -256,19 +271,7 @@ const ContentImage = class {
256
271
  }
257
272
  }
258
273
  render() {
259
- let pictureSrcSet = '';
260
- let pictureImageSrc = '';
261
- if (this.src) {
262
- breakpointValues.forEach((_bp, index) => {
263
- if (index === 0) {
264
- pictureImageSrc = getValueAtIndex(0, this.src);
265
- }
266
- else {
267
- pictureSrcSet += `${getValueAtIndex(index, this.src)} ${breakpointValues[index]}w,`;
268
- }
269
- });
270
- }
271
- return (h(Host, { class: `${this.activeLazyLoadClass} ${this.classString}`, style: this.inlineStyle, content: this.showContent }, this.hasMediaContent && (h("div", { class: "content-image__media-content" }, h("slot", { name: "mediaContent" }))), this.showVideoAsGif ? (h("video", { autoplay: true, muted: true, loop: true, preload: "none", playsinline: true, width: this.width, height: this.height }, h("source", { src: this.lazyLoadIsComplete ? this.src : null, type: this.videoType }))) : (h("picture", null, h("source", { srcSet: pictureSrcSet }), h("img", { width: this.width, height: this.height, src: pictureImageSrc, alt: this.alt })))));
274
+ return (h(Host, { class: `${this.activeLazyLoadClass} ${this.classString}`, style: this.inlineStyle, content: this.showContent }, this.hasMediaContent && (h("div", { class: "content-image__media-content" }, h("slot", { name: "mediaContent" }))), this.showVideoAsGif ? (h("video", { autoplay: true, muted: true, loop: true, preload: "none", playsinline: true, width: this.width, height: this.height }, h("source", { src: this.lazyLoadIsComplete ? this.src : null, type: this.videoType }))) : (h("img", { width: this.width, height: this.height, src: this.pictureImageSrc, alt: this.alt }))));
272
275
  }
273
276
  get hostElement() { return getElement(this); }
274
277
  static get watchers() { return {
@@ -2246,7 +2249,7 @@ aria.replaceDialog = function (newDialogId, newFocusAfterClosed, newFocusFirst)
2246
2249
  }; // end replaceDialog
2247
2250
  window.aria = aria;
2248
2251
 
2249
- const contentOverlayCss = "*{box-sizing:border-box}.content-block-overlay-container{position:relative;display:block;height:100%}content-overlay{display:block;position:relative}content-overlay .content-overlay__content>*[slot=content]{height:100%}content-overlay.content-overlay-inactive{display:none}content-overlay[vertical-position=left]{align-items:flex-start}content-overlay[vertical-position=center]{align-items:center}content-overlay[vertical-position=right]{align-items:flex-end}content-overlay[vertical-position=top]{justify-content:flex-start}content-overlay[vertical-position=center]{justify-content:center}content-overlay[vertical-position=bottom]{justify-content:flex-end}content-overlay .content-overlay-background{background:rgba(255, 255, 255, 0.8);bottom:0;display:none;top:0;z-index:100000;right:0;left:0}content-overlay .content-overlay-background.active{display:block}content-overlay .content-overlay__header{display:flex;align-items:center}content-overlay .content-overlay__close{order:2;margin-left:auto;cursor:pointer;z-index:1;appearance:none;background:none;border:none}content-overlay.content-overlay--fullscreen .content-overlay-background{position:fixed}content-overlay.content-overlay--absolute{position:absolute;box-sizing:border-box;z-index:100000;height:100%;width:100%;top:0;left:0}content-overlay.content-overlay--absolute .content-overlay-background{position:absolute}content-overlay.content-overlay--absolute .content-overlay__content,content-overlay.content-overlay--fullscreen .content-overlay__content{flex:1;overflow:hidden}content-overlay [role=dialog]{display:flex;flex-direction:column;height:100%;justify-content:flex-start}content-overlay [role=dialog].hidden{display:none}body.has-dialog{overflow:hidden}";
2252
+ const contentOverlayCss = "*{box-sizing:border-box}.content-block-overlay-container{position:relative;display:block;height:100%}content-overlay{display:none;position:relative;flex:0}content-overlay .content-overlay__content>*[slot=content]{height:100%;overflow:auto}content-overlay.content-overlay-active{display:block}content-overlay[vertical-position=left]{align-items:flex-start}content-overlay[vertical-position=center]{align-items:center}content-overlay[vertical-position=right]{align-items:flex-end}content-overlay[vertical-position=top]{justify-content:flex-start}content-overlay[vertical-position=center]{justify-content:center}content-overlay[vertical-position=bottom]{justify-content:flex-end}content-overlay .content-overlay-background{background:rgba(255, 255, 255, 0.8);bottom:0;display:none;top:0;z-index:100000;right:0;left:0}content-overlay .content-overlay-background.active{display:block}content-overlay .content-overlay__header{display:flex;align-items:center}content-overlay .content-overlay__close{order:2;margin-left:auto;cursor:pointer;z-index:1;appearance:none;background:none;border:none;min-width:16px}content-overlay.content-overlay--fullscreen .content-overlay-background{position:fixed}content-overlay.content-overlay--absolute{position:absolute;box-sizing:border-box;z-index:100000;height:100%;width:100%;top:0;left:0}content-overlay.content-overlay--absolute .content-overlay-background{position:absolute}content-overlay.content-overlay--absolute .content-overlay__content,content-overlay.content-overlay--fullscreen .content-overlay__content{flex:1;overflow:hidden}content-overlay [role=dialog]{display:flex;flex-direction:column;height:100%;justify-content:flex-start}content-overlay [role=dialog].hidden{display:none}body.has-dialog{overflow:hidden}";
2250
2253
 
2251
2254
  const ContentOverlay = class {
2252
2255
  constructor(hostRef) {
@@ -2264,22 +2267,33 @@ const ContentOverlay = class {
2264
2267
  this.classString = '';
2265
2268
  this.contentSlot = undefined;
2266
2269
  this.isFullScreen = false;
2270
+ this.hasCloseButton = false;
2271
+ this.originalMarkup = undefined;
2267
2272
  }
2268
2273
  onContentBlockActivated(event) {
2269
2274
  if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {
2270
2275
  event.preventDefault();
2271
- this.openOverlay();
2276
+ if (!this.isActive) {
2277
+ this.openOverlay();
2278
+ }
2279
+ else {
2280
+ this.closeOverlay();
2281
+ }
2272
2282
  }
2273
2283
  }
2274
2284
  async openOverlay() {
2275
- if (this.isActive) {
2276
- return false;
2277
- }
2285
+ // if (this.isActive) {
2286
+ // return false;
2287
+ // }
2278
2288
  this.isActive = true;
2289
+ if (!this.originalMarkup) {
2290
+ this.originalMarkup = this.contentSlot.querySelector('[slot="content"]').innerHTML;
2291
+ }
2279
2292
  if (this.target) {
2280
2293
  let targetElement = document.getElementById(this.target);
2281
2294
  if (targetElement) {
2282
2295
  targetElement.classList.add('content-block-overlay-container');
2296
+ targetElement.appendChild(this.hostElement);
2283
2297
  }
2284
2298
  }
2285
2299
  else if (this.isFullScreen) {
@@ -2288,6 +2302,7 @@ const ContentOverlay = class {
2288
2302
  }
2289
2303
  }
2290
2304
  if (this.contentSlot) {
2305
+ this.contentSlot.innerHTML = this.originalMarkup;
2291
2306
  this.setComputedActiveClass();
2292
2307
  if (this.isFullScreen) {
2293
2308
  this.focusTrap = createFocusTrap(this.hostElement, {
@@ -2302,6 +2317,7 @@ const ContentOverlay = class {
2302
2317
  this.contentOverlayActivated.emit(this.hostElement);
2303
2318
  }
2304
2319
  async closeOverlay() {
2320
+ this.contentSlot.innerHTML = '';
2305
2321
  this.isActive = false;
2306
2322
  this.activeClass = '';
2307
2323
  if (this.focusTrap) {
@@ -2324,7 +2340,6 @@ const ContentOverlay = class {
2324
2340
  this.activeClass = `content-overlay ${this.isActive ? 'content-overlay-active' : 'content-overlay-inactive'} content-overlay--${positioningValue}`;
2325
2341
  }
2326
2342
  componentWillLoad() {
2327
- this.contentSlot = this.hostElement.querySelector('[slot="content"]');
2328
2343
  this.contentElement = this.hostElement.querySelector('.js-content-overlay-content');
2329
2344
  WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = `${newValue}`));
2330
2345
  WindowResizeService.registerProp(this.horizontalAlignment).subscribe(newValue => this.hostElement.setAttribute('horizontal-alignment', newValue));
@@ -2336,13 +2351,14 @@ const ContentOverlay = class {
2336
2351
  WindowResizeService.registerProp(this.open).subscribe(newValue => {
2337
2352
  this.hostElement.setAttribute('open', newValue);
2338
2353
  });
2354
+ this.hasCloseButton = !!this.hostElement.querySelector('[slot="closeButton"]');
2339
2355
  }
2340
2356
  closeOverlayButtonClicked(event) {
2341
2357
  event.preventDefault();
2342
2358
  this.closeOverlay();
2343
2359
  }
2344
2360
  render() {
2345
- return (h(Host, { class: `${this.activeClass} ${this.classString}` }, h("div", { class: "content-block-overlay-container" }, h("div", { class: `content-overlay-background ${this.isActive ? 'active' : ''}` }, h("div", { ref: element => (this.dialogElement = element), role: "dialog", "aria-modal": "true", class: this.isActive ? 'active' : 'hidden', "aria-expanded": this.isActive }, h("div", { class: "content-overlay__header" }, h("button", { onClick: e => this.closeOverlayButtonClicked(e), class: "content-overlay__close", title: this.closeTitle }, h("slot", { name: "closeButton" })), h("slot", { name: "header" })), h("div", { class: "js-content-overlay-content content-overlay__content" }, h("slot", { name: "content" })))))));
2361
+ return (h(Host, { class: `${this.activeClass} ${this.classString}` }, h("div", { class: "content-block-overlay-container" }, h("div", { class: `content-overlay-background ${this.isActive ? 'active' : ''}` }, h("div", { ref: element => (this.dialogElement = element), role: "dialog", "aria-modal": "true", class: this.isActive ? 'active' : 'hidden', "aria-expanded": this.isActive }, h("div", { class: "content-overlay__header" }, h("button", { onClick: e => this.closeOverlayButtonClicked(e), class: "content-overlay__close", title: this.closeTitle }, !this.hasCloseButton && (h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", width: "16", height: "16", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" }))), h("slot", { name: "closeButton" })), h("slot", { name: "header" })), h("div", { class: "content-overlay__content", ref: (el) => (this.contentSlot = el) }, h("slot", { name: "content" })))))));
2346
2362
  }
2347
2363
  componentDidRender() {
2348
2364
  if (this.open === 'true') {
@@ -2371,7 +2387,7 @@ const ContentSpacingWrapper = class {
2371
2387
  this.maxWidth = '100';
2372
2388
  this.fullHeight = 'false';
2373
2389
  this.textAlign = 'default';
2374
- this.horizontalPosition = undefined;
2390
+ this.horizontalPosition = 'default';
2375
2391
  this.topOffset = '0';
2376
2392
  this.bottomOffset = '0';
2377
2393
  this.leftOffset = '0';