@content-blocks/js 0.4.4 → 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 (200) hide show
  1. package/dist/cjs/content-accordion_11.cjs.entry.js +97 -84
  2. package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
  3. package/dist/cjs/content-blocks.cjs.js +3 -3
  4. package/dist/cjs/content-blocks.cjs.js.map +1 -1
  5. package/dist/cjs/content-carousel.cjs.entry.js +3 -2
  6. package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
  7. package/dist/cjs/content-navigation-block.cjs.entry.js +31 -29
  8. package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
  9. package/dist/cjs/content-split-block.cjs.entry.js +6 -6
  10. package/dist/cjs/content-split-block.cjs.entry.js.map +1 -1
  11. package/dist/cjs/content-tabs.cjs.entry.js +8 -6
  12. package/dist/cjs/content-tabs.cjs.entry.js.map +1 -1
  13. package/dist/cjs/{index-66c390bf.js → index-9f20d89a.js} +34 -14
  14. package/dist/cjs/index-9f20d89a.js.map +1 -0
  15. package/dist/cjs/index.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +2 -2
  17. package/dist/cjs/{utils-dbda9bbc.js → utils-db61cd70.js} +12 -4
  18. package/dist/cjs/utils-db61cd70.js.map +1 -0
  19. package/dist/cjs/{window-resize-service-35e2ab31.js → window-resize-service-ac5c2012.js} +4 -3
  20. package/dist/cjs/window-resize-service-ac5c2012.js.map +1 -0
  21. package/dist/collection/blocks/content-hero-block/content-hero-block.css +6 -4
  22. package/dist/collection/blocks/content-hero-block/content-hero-block.js +2 -4
  23. package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -1
  24. package/dist/collection/blocks/content-split-block/content-split-block.css +0 -4
  25. package/dist/collection/blocks/content-split-block/content-split-block.js +2 -2
  26. package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -1
  27. package/dist/collection/blocks/content-text-block/content-text-block.css +0 -4
  28. package/dist/collection/blocks/content-text-block/content-text-block.js +7 -7
  29. package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -1
  30. package/dist/collection/blocks/content-tout-block/content-tout-block.css +0 -6
  31. package/dist/collection/blocks/content-tout-block/content-tout-block.js +0 -2
  32. package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +1 -1
  33. package/dist/collection/collection-manifest.json +2 -2
  34. package/dist/collection/components/content-accordion/content-accordion.js +2 -2
  35. package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
  36. package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +1 -1
  37. package/dist/collection/components/content-carousel/content-carousel.css +0 -4
  38. package/dist/collection/components/content-carousel/content-carousel.js +2 -1
  39. package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
  40. package/dist/collection/components/content-navigation-block/content-navigation-block.css +0 -6
  41. package/dist/collection/components/content-navigation-block/content-navigation-block.js +27 -25
  42. package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
  43. package/dist/collection/components/content-overlay/content-overlay.css +6 -9
  44. package/dist/collection/components/content-overlay/content-overlay.js +34 -16
  45. package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
  46. package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +1 -1
  47. package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +1 -1
  48. package/dist/collection/components/content-tabs/content-tabs.css +0 -4
  49. package/dist/collection/components/content-tabs/content-tabs.js +4 -2
  50. package/dist/collection/components/content-tabs/content-tabs.js.map +1 -1
  51. package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +1 -1
  52. package/dist/collection/elements/content-button/content-button.css +0 -4
  53. package/dist/collection/elements/content-button/content-button.js +12 -11
  54. package/dist/collection/elements/content-button/content-button.js.map +1 -1
  55. package/dist/collection/elements/content-image/content-image.css +4 -11
  56. package/dist/collection/elements/content-image/content-image.js +81 -23
  57. package/dist/collection/elements/content-image/content-image.js.map +1 -1
  58. package/dist/collection/elements/content-line/content-line.js +10 -14
  59. package/dist/collection/elements/content-line/content-line.js.map +1 -1
  60. package/dist/collection/elements/content-video/content-video.css +1 -5
  61. package/dist/collection/elements/content-video/content-video.js +1 -1
  62. package/dist/collection/elements/content-video/content-video.js.map +1 -1
  63. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +1 -4
  64. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +46 -3
  65. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
  66. package/dist/collection/formatters/content-spacer/content-spacer.css +0 -3
  67. package/dist/collection/formatters/content-spacer/content-spacer.js +4 -3
  68. package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
  69. package/dist/collection/services/content-events-service.js.map +1 -1
  70. package/dist/collection/services/window-resize-service.js +2 -1
  71. package/dist/collection/services/window-resize-service.js.map +1 -1
  72. package/dist/collection/stories/ContentHeroBlock.stories.js +22 -18
  73. package/dist/collection/stories/ContentHeroBlock.stories.js.map +1 -1
  74. package/dist/collection/stories/ContentNavigationBlock.stories.js +26 -0
  75. package/dist/collection/stories/ContentNavigationBlock.stories.js.map +1 -0
  76. package/dist/collection/stories/ContentSpacer.stories.js +20 -0
  77. package/dist/collection/stories/ContentSpacer.stories.js.map +1 -0
  78. package/dist/collection/stories/ContentTextBlock.stories.js +17 -0
  79. package/dist/collection/stories/ContentTextBlock.stories.js.map +1 -0
  80. package/dist/collection/stories/ContentToutBlock.stories.js +17 -0
  81. package/dist/collection/stories/ContentToutBlock.stories.js.map +1 -0
  82. package/dist/collection/stories/FullPageExample.stories.js +482 -0
  83. package/dist/collection/stories/FullPageExample.stories.js.map +1 -0
  84. package/dist/collection/utils/utils.js +9 -0
  85. package/dist/collection/utils/utils.js.map +1 -1
  86. package/dist/components/content-accordion.js +1 -1
  87. package/dist/components/content-accordion.js.map +1 -1
  88. package/dist/components/content-button.js +13 -12
  89. package/dist/components/content-button.js.map +1 -1
  90. package/dist/components/content-carousel.js +2 -1
  91. package/dist/components/content-carousel.js.map +1 -1
  92. package/dist/components/content-grid-formatter2.js +8 -2
  93. package/dist/components/content-grid-formatter2.js.map +1 -1
  94. package/dist/components/content-hero-block.js +2 -4
  95. package/dist/components/content-hero-block.js.map +1 -1
  96. package/dist/components/content-image.js +28 -24
  97. package/dist/components/content-image.js.map +1 -1
  98. package/dist/components/content-line.js +8 -12
  99. package/dist/components/content-line.js.map +1 -1
  100. package/dist/components/content-navigation-block.js +28 -26
  101. package/dist/components/content-navigation-block.js.map +1 -1
  102. package/dist/components/content-overlay.js +32 -14
  103. package/dist/components/content-overlay.js.map +1 -1
  104. package/dist/components/content-spacer.js +3 -3
  105. package/dist/components/content-spacer.js.map +1 -1
  106. package/dist/components/content-split-block.js +3 -3
  107. package/dist/components/content-split-block.js.map +1 -1
  108. package/dist/components/content-tabs.js +5 -3
  109. package/dist/components/content-tabs.js.map +1 -1
  110. package/dist/components/content-text-block.js +8 -8
  111. package/dist/components/content-text-block.js.map +1 -1
  112. package/dist/components/content-tout-block.js +1 -3
  113. package/dist/components/content-tout-block.js.map +1 -1
  114. package/dist/components/content-video.js +1 -1
  115. package/dist/components/content-video.js.map +1 -1
  116. package/dist/components/utils.js +12 -2
  117. package/dist/components/utils.js.map +1 -1
  118. package/dist/components/window-resize-service.js +2 -1
  119. package/dist/components/window-resize-service.js.map +1 -1
  120. package/dist/content-blocks/content-blocks.esm.js +1 -1
  121. package/dist/content-blocks/content-blocks.esm.js.map +1 -1
  122. package/dist/content-blocks/index.esm.js +1 -1
  123. package/dist/content-blocks/p-167a9155.entry.js +2 -0
  124. package/dist/content-blocks/p-167a9155.entry.js.map +1 -0
  125. package/dist/content-blocks/{p-3d21ae2b.entry.js → p-271fb304.entry.js} +2 -2
  126. package/dist/content-blocks/p-271fb304.entry.js.map +1 -0
  127. package/dist/content-blocks/p-288eace9.js +3 -0
  128. package/dist/content-blocks/p-288eace9.js.map +1 -0
  129. package/dist/content-blocks/p-4038cd42.entry.js +10 -0
  130. package/dist/content-blocks/p-4038cd42.entry.js.map +1 -0
  131. package/dist/content-blocks/p-4bfbd7ef.entry.js +2 -0
  132. package/dist/content-blocks/p-4bfbd7ef.entry.js.map +1 -0
  133. package/dist/content-blocks/p-8cc22c1e.entry.js +2 -0
  134. package/dist/content-blocks/p-8cc22c1e.entry.js.map +1 -0
  135. package/dist/content-blocks/{p-070bc93d.js → p-b04fe808.js} +2 -2
  136. package/dist/content-blocks/p-b04fe808.js.map +1 -0
  137. package/dist/content-blocks/{p-451e7694.js → p-cfb4593f.js} +2 -2
  138. package/dist/content-blocks/p-cfb4593f.js.map +1 -0
  139. package/dist/esm/content-accordion_11.entry.js +97 -84
  140. package/dist/esm/content-accordion_11.entry.js.map +1 -1
  141. package/dist/esm/content-blocks.js +4 -4
  142. package/dist/esm/content-blocks.js.map +1 -1
  143. package/dist/esm/content-carousel.entry.js +3 -2
  144. package/dist/esm/content-carousel.entry.js.map +1 -1
  145. package/dist/esm/content-navigation-block.entry.js +31 -29
  146. package/dist/esm/content-navigation-block.entry.js.map +1 -1
  147. package/dist/esm/content-split-block.entry.js +6 -6
  148. package/dist/esm/content-split-block.entry.js.map +1 -1
  149. package/dist/esm/content-tabs.entry.js +8 -6
  150. package/dist/esm/content-tabs.entry.js.map +1 -1
  151. package/dist/esm/{index-2674652b.js → index-e848c048.js} +34 -14
  152. package/dist/esm/index-e848c048.js.map +1 -0
  153. package/dist/esm/index.js +1 -1
  154. package/dist/esm/loader.js +3 -3
  155. package/dist/esm/{utils-72b3a8bd.js → utils-4f78228e.js} +13 -3
  156. package/dist/esm/utils-4f78228e.js.map +1 -0
  157. package/dist/esm/{window-resize-service-8419bd19.js → window-resize-service-f40ec51c.js} +4 -3
  158. package/dist/esm/window-resize-service-f40ec51c.js.map +1 -0
  159. package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +0 -1
  160. package/dist/types/blocks/content-split-block/content-split-block.d.ts +1 -1
  161. package/dist/types/blocks/content-text-block/content-text-block.d.ts +1 -1
  162. package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +0 -1
  163. package/dist/types/components/content-accordion/content-accordion.d.ts +6 -6
  164. package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +2 -2
  165. package/dist/types/components/content-overlay/content-overlay.d.ts +4 -3
  166. package/dist/types/components/content-tabs/content-tabs.d.ts +1 -0
  167. package/dist/types/components.d.ts +37 -3
  168. package/dist/types/elements/content-button/content-button.d.ts +1 -1
  169. package/dist/types/elements/content-image/content-image.d.ts +13 -1
  170. package/dist/types/elements/content-line/content-line.d.ts +1 -1
  171. package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +8 -2
  172. package/dist/types/formatters/content-spacer/content-spacer.d.ts +1 -1
  173. package/dist/types/stories/ContentHeroBlock.stories.d.ts +4 -5
  174. package/dist/types/stories/ContentNavigationBlock.stories.d.ts +11 -0
  175. package/dist/types/stories/ContentSpacer.stories.d.ts +15 -0
  176. package/dist/types/stories/ContentTextBlock.stories.d.ts +15 -0
  177. package/dist/types/stories/ContentToutBlock.stories.d.ts +9 -0
  178. package/dist/types/stories/FullPageExample.stories.d.ts +10 -0
  179. package/dist/types/typings.d.ts +3 -3
  180. package/dist/types/utils/utils.d.ts +1 -0
  181. package/package.json +6 -3
  182. package/dist/cjs/index-66c390bf.js.map +0 -1
  183. package/dist/cjs/utils-dbda9bbc.js.map +0 -1
  184. package/dist/cjs/window-resize-service-35e2ab31.js.map +0 -1
  185. package/dist/content-blocks/p-070bc93d.js.map +0 -1
  186. package/dist/content-blocks/p-171693ef.js +0 -3
  187. package/dist/content-blocks/p-171693ef.js.map +0 -1
  188. package/dist/content-blocks/p-3d21ae2b.entry.js.map +0 -1
  189. package/dist/content-blocks/p-3e27514e.entry.js +0 -10
  190. package/dist/content-blocks/p-3e27514e.entry.js.map +0 -1
  191. package/dist/content-blocks/p-451e7694.js.map +0 -1
  192. package/dist/content-blocks/p-6ddbb176.entry.js +0 -2
  193. package/dist/content-blocks/p-6ddbb176.entry.js.map +0 -1
  194. package/dist/content-blocks/p-a78f9c91.entry.js +0 -2
  195. package/dist/content-blocks/p-a78f9c91.entry.js.map +0 -1
  196. package/dist/content-blocks/p-dac292e3.entry.js +0 -2
  197. package/dist/content-blocks/p-dac292e3.entry.js.map +0 -1
  198. package/dist/esm/index-2674652b.js.map +0 -1
  199. package/dist/esm/utils-72b3a8bd.js.map +0 -1
  200. package/dist/esm/window-resize-service-8419bd19.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"content-grid-formatter.js","sourceRoot":"","sources":["../../../../src/formatters/content-grid-formatter/content-grid-formatter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;GAGG;AAMH,MAAM,OAAO,oBAAoB;;;;oBAkBZ,MAAM;wBAUK,OAAO;0BAUL,OAAO;iCAcG,eAAe;mCAeb,eAAe;uBAS/B,GAAG;;2BAGmB,EAAE;;IAEpD,gBAAgB;QACd,OAAO,OAAO,CAAC,UAAU,CAAC;YACxB,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,QAAsB,CAAC,CAAC;YACvG,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;gBAC5E,IAAI,CAAC,iBAAiB,GAAG,QAAgC,CAAC;gBAC1D,IAAI,CAAC,WAAW,mCACX,IAAI,CAAC,WAAW,KACnB,eAAe,EAAE,IAAI,CAAC,iBAAiB,GACxC,CAAC;YACJ,CAAC,CAAC;YACF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,SAAS,CAAC,QAAQ,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop, State } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { FLEX_JUSTIFY_OPTIONS, GRID_TYPES, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot media - This slot can either be a video or image component.\n * @slot content - This slot will usually serve a content text block.\n */\n@Component({\n tag: 'content-grid-formatter',\n styleUrl: 'content-grid-formatter.scss',\n shadow: false,\n})\nexport class ContentGridFormatter {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Flex or grid\n * @type Select\n * @options flex\n * @options grid\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n type: GRID_TYPES = 'flex';\n /**\n * Setting this true to will grow all children. Alternatively, add the attribute [flex-grow=\"true\"] to a specific grid child and that child will grow.\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n flexGrow: ResponsiveBoolean = 'false';\n /**\n * Setting this true to will shrink all children. Alternatively, add the attribute [flex-shrink=\"true\"] to a specific grid child and that child will shrink.\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n flexShrink: ResponsiveBoolean = 'false';\n /**\n * Vertical axis alignment\n * @type Select\n * @options flex-start\n * @options space-between\n * @options center\n * @options space-evenly\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n verticalAlignment: FLEX_JUSTIFY_OPTIONS = 'space-between';\n\n /**\n * Horizontal axis alignment\n * @type Select\n * @options flex-start\n * @options space-between\n * @options center\n * @options space-evenly\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n horizontalAlignment: FLEX_JUSTIFY_OPTIONS = 'space-between';\n /**\n * @type Number\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n columns: ResponsiveNumber = '1';\n\n @State() activeClassString: string;\n @State() inlineStyle: { [key: string]: string } = {};\n\n componentDidLoad() {\n return Promise.allSettled([\n WindowResizeService.registerProp(this.type).subscribe(newValue => (this.type = newValue as GRID_TYPES)),\n WindowResizeService.registerProp(this.verticalAlignment).subscribe(newValue => {\n this.verticalAlignment = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--align-items': this.verticalAlignment,\n };\n }),\n WindowResizeService.registerProp(this.horizontalAlignment).subscribe(newValue => {\n this.horizontalAlignment = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--justify-content': this.horizontalAlignment,\n };\n }),\n WindowResizeService.registerProp(this.flexShrink).subscribe(newValue => (this.flexShrink = newValue as string)),\n WindowResizeService.registerProp(this.flexGrow).subscribe(newValue => (this.flexGrow = newValue as string)),\n WindowResizeService.registerProp(this.columns).subscribe(newValue => {\n this.columns = newValue as string;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--columns': newValue as string,\n };\n }),\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string)),\n ]);\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <slot />\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"content-grid-formatter.js","sourceRoot":"","sources":["../../../../src/formatters/content-grid-formatter/content-grid-formatter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;GAGG;AAMH,MAAM,OAAO,oBAAoB;;;;oBAmBO,MAAM;wBAUd,OAAO;0BAUL,OAAO;iCAcG,eAAe;mCAeb,eAAe;uBAS/B,GAAG;yBAUD,GAAG;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AW,KACnB,WAAW,EAAE,QAAkB,GAChC,CAAC;YACJ,CAAC,CAAC;YACF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;gBACpE,IAAI,CAAC,SAAS,GAAG,QAAkB,CAAC;gBACpC,IAAI,CAAC,WAAW,mCACX,IAAI,CAAC,WAAW,KACnB,cAAc,EAAE,QAAkB,GACnC,CAAC;YACJ,CAAC,CAAC;YACF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC;SAC9G,CAAC,CAAC;IACL,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW;YACpD,eAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop, State } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { FLEX_JUSTIFY_OPTIONS, GRID_TYPES, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot media - This slot can either be a video or image component.\n * @slot content - This slot will usually serve a content text block.\n */\n@Component({\n tag: 'content-grid-formatter',\n styleUrl: 'content-grid-formatter.scss',\n shadow: false,\n})\nexport class ContentGridFormatter {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Flex or grid\n * @type Select\n * @options none\n * @options flex\n * @options grid\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n type: GRID_TYPES | ResponsiveString = 'flex';\n /**\n * Setting this true to will grow all children. Alternatively, add the attribute [flex-grow=\"true\"] to a specific grid child and that child will grow.\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n flexGrow: ResponsiveBoolean = 'false';\n /**\n * Setting this true to will shrink all children. Alternatively, add the attribute [flex-shrink=\"true\"] to a specific grid child and that child will shrink.\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n flexShrink: ResponsiveBoolean = 'false';\n /**\n * Vertical axis alignment\n * @type Select\n * @options flex-start\n * @options space-between\n * @options center\n * @options space-evenly\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n verticalAlignment: FLEX_JUSTIFY_OPTIONS = 'space-between';\n\n /**\n * Horizontal axis alignment\n * @type Select\n * @options flex-start\n * @options space-between\n * @options center\n * @options space-evenly\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n horizontalAlignment: FLEX_JUSTIFY_OPTIONS = 'space-between';\n /**\n * @type Number\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n columns: ResponsiveNumber = '1';\n\n /**\n * @type Number\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n columnGap: ResponsiveNumber = '0';\n\n @State() activeClassString: string;\n @State() inlineStyle: { [key: string]: string } = {};\n\n componentWillLoad() {\n return Promise.allSettled([\n WindowResizeService.registerProp(this.type).subscribe(newValue => (this.type = newValue as GRID_TYPES)),\n WindowResizeService.registerProp(this.verticalAlignment).subscribe(newValue => {\n this.verticalAlignment = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--align-items': this.verticalAlignment,\n };\n }),\n WindowResizeService.registerProp(this.horizontalAlignment).subscribe(newValue => {\n this.horizontalAlignment = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--justify-content': this.horizontalAlignment,\n };\n }),\n WindowResizeService.registerProp(this.flexShrink).subscribe(newValue => (this.flexShrink = newValue as string)),\n WindowResizeService.registerProp(this.flexGrow).subscribe(newValue => (this.flexGrow = newValue as string)),\n WindowResizeService.registerProp(this.columns).subscribe(newValue => {\n this.columns = newValue as string;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--columns': newValue as string,\n };\n }),\n WindowResizeService.registerProp(this.columnGap).subscribe(newValue => {\n this.columnGap = newValue as string;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--column-gap': newValue as string,\n };\n }),\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string)),\n ]);\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <slot />\n </Host>\n );\n }\n}\n"]}
@@ -7,9 +7,6 @@ content-spacer {
7
7
  width: 100%;
8
8
  height: auto;
9
9
  }
10
- content-spacer.hydrated {
11
- visibility: inherit;
12
- }
13
10
  content-spacer[full-height=true] {
14
11
  height: 100%;
15
12
  }
@@ -11,14 +11,14 @@ export class ContentSpacingWrapper {
11
11
  this.maxWidth = '100';
12
12
  this.fullHeight = 'false';
13
13
  this.textAlign = 'default';
14
- this.horizontalPosition = undefined;
14
+ this.horizontalPosition = 'default';
15
15
  this.topOffset = '0';
16
16
  this.bottomOffset = '0';
17
17
  this.leftOffset = '0';
18
18
  this.rightOffset = '0';
19
19
  this.inlineStyle = {};
20
20
  }
21
- componentDidLoad() {
21
+ componentWillLoad() {
22
22
  WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue));
23
23
  WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue));
24
24
  WindowResizeService.registerProp(this.horizontalPosition).subscribe(newValue => (this.horizontalPosition = newValue));
@@ -225,7 +225,8 @@ export class ContentSpacingWrapper {
225
225
  "text": "Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified."
226
226
  },
227
227
  "attribute": "horizontal-position",
228
- "reflect": true
228
+ "reflect": true,
229
+ "defaultValue": "'default'"
229
230
  },
230
231
  "topOffset": {
231
232
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"content-spacer.js","sourceRoot":"","sources":["../../../../src/formatters/content-spacer/content-spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;GAGG;AAMH,MAAM,OAAO,qBAAqB;;;;wBAYK,KAAK;0BAWV,OAAO;yBAeE,SAAS;;yBAuBZ,GAAG;4BAQA,GAAG;0BAQL,GAAG;2BAQF,GAAG;2BAEQ,EAAE;;IAErD,gBAAgB;QACd,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,QAAkB,CAAC,CAAC,CAAC;QAChH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,QAAuC,CAAC,CAAC,CAAC;QACnI,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,GAAG,QAAuC,CAAC,CAAC,CAAC;QACrJ,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,C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AE,KAAK,CAAC,QAAe,CAAC,CAAC,CAAC,CAAE,QAAmB,CAAC,CAAC,CAAC,QAAQ,GAAG,GAAG,GAAE,CAAC;QAC9H,CAAC,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC,CAAC;IAChH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW;YACpD,YAAM,IAAI,EAAC,SAAS,GAAQ;YAC5B,eAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot content - Inner contents of spacing wrapper, can be anything.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-spacer',\n styleUrls: ['content-spacer.scss'],\n shadow: false,\n})\nexport class ContentSpacingWrapper {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\".\n * @type String\n * @responsive\n */\n @Prop() maxWidth: ResponsiveNumber = '100';\n\n /**\n * Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one.\n * @type Boolean\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n fullHeight: ResponsiveBoolean = 'false';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for text alignment.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontalPosition: ContentLineTextAlignOptions;\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() topOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() bottomOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() leftOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() rightOffset: ResponsiveNumber = '0';\n\n @State() inlineStyle?: { [key: string]: string } = {};\n\n componentDidLoad() {\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue as string));\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.horizontalPosition).subscribe(newValue => (this.horizontalPosition = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'max-width': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-top': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-bottom': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-left': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-right': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"content-spacer.js","sourceRoot":"","sources":["../../../../src/formatters/content-spacer/content-spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E;;;GAGG;AAMH,MAAM,OAAO,qBAAqB;;;;wBAYK,KAAK;0BAWV,OAAO;yBAeE,SAAS;kCAeA,SAAS;yBAQrB,GAAG;4BAQA,GAAG;0BAQL,GAAG;2BAQF,GAAG;2BAEQ,EAAE;;IAErD,iBAAiB;QACf,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot content - Inner contents of spacing wrapper, can be anything.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-spacer',\n styleUrls: ['content-spacer.scss'],\n shadow: false,\n})\nexport class ContentSpacingWrapper {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\".\n * @type String\n * @responsive\n */\n @Prop() maxWidth: ResponsiveNumber = '100';\n\n /**\n * Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one.\n * @type Boolean\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n fullHeight: ResponsiveBoolean = 'false';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for text alignment.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontalPosition: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() topOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() bottomOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() leftOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() rightOffset: ResponsiveNumber = '0';\n\n @State() inlineStyle?: { [key: string]: string } = {};\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue as string));\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.horizontalPosition).subscribe(newValue => (this.horizontalPosition = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'max-width': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-top': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-bottom': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-left': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-right': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"content-events-service.js","sourceRoot":"","sources":["../../../src/services/content-events-service.ts"],"names":[],"mappings":"AAAA,MAAM,uBAAuB;IAI3B;QAHA,aAAQ,GAAY,IAAI,CAAC;QAEzB,sBAAiB,GAAG,EAAE,CAAC;QAErB,2BAA2B;QAC3B,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,GAAG,EAAE;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;gBACnC,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC;YAC3D,CAAC,EAAE,CAAC,CAAC,CAAC;QACR,CAAC,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,IAAI;QAChB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,uBAAuB,EAAE,CAAC","sourcesContent":["class ContentEventsController {\n firstRun: boolean = true;\n timeoutHolder;\n elementsListening = [];\n constructor() {\n // var elementsCounted = 0;\n window.addEventListener('contentBlockReady', () => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n this.timeoutHolder = setTimeout(() => {\n window.dispatchEvent(new Event('contentBlocksRendered'));\n }, 1);\n });\n }\n\n attachElement(elem) {\n this.elementsListening.push(elem);\n }\n\n getElementsListening() {\n return this.elementsListening;\n }\n}\n\nexport const ContentEventsService = new ContentEventsController();"]}
1
+ {"version":3,"file":"content-events-service.js","sourceRoot":"","sources":["../../../src/services/content-events-service.ts"],"names":[],"mappings":"AAAA,MAAM,uBAAuB;IAI3B;QAHA,aAAQ,GAAY,IAAI,CAAC;QAEzB,sBAAiB,GAAG,EAAE,CAAC;QAErB,2BAA2B;QAC3B,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,GAAG,EAAE;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACnC,CAAC;YACD,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;gBACnC,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC;YAC3D,CAAC,EAAE,CAAC,CAAC,CAAC;QACR,CAAC,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,IAAI;QAChB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,uBAAuB,EAAE,CAAC","sourcesContent":["class ContentEventsController {\n firstRun: boolean = true;\n timeoutHolder;\n elementsListening = [];\n constructor() {\n // var elementsCounted = 0;\n window.addEventListener('contentBlockReady', () => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n this.timeoutHolder = setTimeout(() => {\n window.dispatchEvent(new Event('contentBlocksRendered'));\n }, 1);\n });\n }\n\n attachElement(elem) {\n this.elementsListening.push(elem);\n }\n\n getElementsListening() {\n return this.elementsListening;\n }\n}\n\nexport const ContentEventsService = new ContentEventsController();"]}
@@ -21,7 +21,8 @@ class WindowResizeController {
21
21
  return new Observable(observer => {
22
22
  observer.next(getCurrentValue(activePropValue));
23
23
  this.breakpointIndex$.subscribe(() => {
24
- observer.next(getCurrentValue(activePropValue));
24
+ let nextValue = getCurrentValue(activePropValue);
25
+ observer.next(nextValue);
25
26
  });
26
27
  });
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"window-resize-service.js","sourceRoot":"","sources":["../../../src/services/window-resize-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG5E,MAAM,sBAAsB;IAI1B,0BAA0B;IAC1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAKtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ,CAAC,EAAE;YACnD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;YAC/B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,EAAE;gBACnC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,sBAAsB,EAAE,CAAC","sourcesContent":["import { BehaviorSubject, Observable } from \"rxjs\";\nimport { getCurrentBreakpointIndex, getCurrentValue } from \"../utils/utils\";\nimport _ from 'underscore';\n\nclass WindowResizeController {\n currentBreakpoint = getCurrentBreakpointIndex();\n breakpointIndex$: BehaviorSubject<number> = new BehaviorSubject(this.currentBreakpoint);\n timeoutHolder: number;\n // timeoutHolder: Timeout;\n constructor() {\n\n const resizeObserver = new ResizeObserver(_entries => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n let activeValue = getCurrentBreakpointIndex();\n if (this.breakpointIndex$.value === activeValue) {\n return false;\n }\n this.breakpointIndex$.next(activeValue);\n });\n\n resizeObserver.observe(window.document.body);\n }\n \n registerProp(activePropValue): Observable<string|boolean|number> {\n return new Observable(observer => {\n observer.next(getCurrentValue(activePropValue));\n this.breakpointIndex$.subscribe(() => {\n observer.next(getCurrentValue(activePropValue));\n });\n });\n }\n}\n\nexport const WindowResizeService = new WindowResizeController();"]}
1
+ {"version":3,"file":"window-resize-service.js","sourceRoot":"","sources":["../../../src/services/window-resize-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG5E,MAAM,sBAAsB;IAI1B,0BAA0B;IAC1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAKtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ,CAAC,EAAE;YACnD,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACnC,CAAC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;gBAChD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;YAC/B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,EAAE;gBACnC,IAAI,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;gBACjD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,sBAAsB,EAAE,CAAC","sourcesContent":["import { BehaviorSubject, Observable } from \"rxjs\";\nimport { getCurrentBreakpointIndex, getCurrentValue } from \"../utils/utils\";\nimport _ from 'underscore';\n\nclass WindowResizeController {\n currentBreakpoint = getCurrentBreakpointIndex();\n breakpointIndex$: BehaviorSubject<number> = new BehaviorSubject(this.currentBreakpoint);\n timeoutHolder: number;\n // timeoutHolder: Timeout;\n constructor() {\n\n const resizeObserver = new ResizeObserver(_entries => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n let activeValue = getCurrentBreakpointIndex();\n if (this.breakpointIndex$.value === activeValue) {\n return false;\n }\n this.breakpointIndex$.next(activeValue);\n });\n\n resizeObserver.observe(window.document.body);\n }\n \n registerProp(activePropValue): Observable<string|boolean|number> {\n return new Observable(observer => {\n observer.next(getCurrentValue(activePropValue));\n this.breakpointIndex$.subscribe(() => {\n let nextValue = getCurrentValue(activePropValue);\n observer.next(nextValue);\n });\n });\n }\n}\n\nexport const WindowResizeService = new WindowResizeController();"]}
@@ -1,16 +1,22 @@
1
+ export const BasicExample = args => `<content-hero-block>
2
+ <content-image slot="background" src=${args.src}></content-image>
3
+ <div slot="content">My content goes here</div>
4
+ </content-hero-block>`;
1
5
  export const AdvancedExample = args => `<content-hero-block classes="main-hero|main-desktop-hero">
2
6
  <content-image slot="background" src="https://picsum.photos/id/2/768/400"></content-image>
3
7
 
4
8
  <content-spacer slot="content" full-height="true" left-offset="4|5|10" right-offset="4" top-offset="4" bottom-offset="4" max-width="100|55" horizontal-position="left">
5
9
  <content-overlay target="#" id="heroVideoOverlay" full-screen="false" classes="custom-overlay">
6
- <script slot="content" type="text/template">
10
+ <span slot="closeButton">X</span>
11
+ <div slot="content">
7
12
  <content-video fit-container="true" src="https://www.youtube.com/watch?v=xqyUdNxWazA"></content-video>
8
- </script>
13
+ </div>
9
14
  </content-overlay>
10
15
  <content-overlay id="heroVideoFullscreen" full-screen="true" classes="custom-overlay">
11
- <script slot="content" type="text/template">
16
+ <span slot="closeButton">X</span>
17
+ <div slot="content">
12
18
  <content-video fit-container="true" autoplay="true" src="https://www.youtube.com/watch?v=xqyUdNxWazA"></content-video>
13
- </script>
19
+ </div>
14
20
  </content-overlay>
15
21
  <content-text-block full-height="false|true" classes="light" vertical-alignment="center">
16
22
  <content-line classes="text-style--hero-header">Inceptos Commodo Ullamcorper</content-line>
@@ -18,9 +24,9 @@ export const AdvancedExample = args => `<content-hero-block classes="main-hero|m
18
24
  <content-line classes="text-style--hero-subline">Vulputate Commodo Adipiscing Tristique Fusce</content-line>
19
25
  <content-line classes="text-style--copy" max-width="100|60|75">Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</content-line>
20
26
  <content-spacer top-offset="3">
21
- <content-group horizontal-position="left">
22
- <content-button classes="button button--light" href="#heroVideoFullscreen">Full Screen</content-button>
23
- </content-group>
27
+ <content-button classes="button button--light" href="#heroVideoFullscreen">Full Screen</content-button>
28
+
29
+ <content-button classes="button button--light" href="#heroVideoOverlay">Module Overlay</content-button>
24
30
  </content-spacer>
25
31
  <content-text-block slot="footer">
26
32
  <content-line classes="text-style--disclosure">Amet Mollis Tristique Parturient Ridiculus</content-line>
@@ -28,20 +34,18 @@ export const AdvancedExample = args => `<content-hero-block classes="main-hero|m
28
34
  </content-text-block>
29
35
  </content-spacer>
30
36
  </content-hero-block>`;
31
- export const BasicExample = args => `<content-hero-block>
32
- <content-image slot="background" src=${args.src}></content-image>
33
- <div slot="content">My content goes here</div>
34
- </content-hero-block>`;
35
37
  BasicExample.args = {
36
38
  src: 'https://picsum.photos/id/2/768/400',
37
39
  };
38
- // export const Primary = Template.bind({});
39
- // Primary.arg = {
40
- // first: 'sJohn',
41
- // last: 'Doe',
42
- // };
43
- export default {
44
- // this creates a ‘Components’ folder and a ‘MyComponent’ subfolder
40
+ const meta = {
45
41
  title: 'Content Hero Block',
42
+ tags: ['autodocs'],
43
+ parameters: {
44
+ layout: 'fullscreen',
45
+ },
46
46
  };
47
+ export default meta;
48
+ // export default {
49
+ // // this creates a ‘Components’ folder and a ‘MyComponent’ subfolder
50
+ // };
47
51
  //# sourceMappingURL=ContentHeroBlock.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeroBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentHeroBlock.stories.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA6BjB,CAAC;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;uCACG,IAAI,CAAC,GAAG;;sBAEzB,CAAC;AAEvB,YAAY,CAAC,IAAI,GAAG;IAClB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,4CAA4C;AAC5C,kBAAkB;AAClB,oBAAoB;AACpB,iBAAiB;AACjB,KAAK;AAEL,eAAe;IACb,mEAAmE;IACnE,KAAK,EAAE,oBAAoB;CAC5B,CAAC","sourcesContent":["import type { StoryObj } from '@storybook/web-components';\nimport { userEvent, waitFor, within } from '@storybook/testing-library';\n\nexport const AdvancedExample = args => `<content-hero-block classes=\"main-hero|main-desktop-hero\">\n<content-image slot=\"background\" src=\"https://picsum.photos/id/2/768/400\"></content-image>\n\n<content-spacer slot=\"content\" full-height=\"true\" left-offset=\"4|5|10\" right-offset=\"4\" top-offset=\"4\" bottom-offset=\"4\" max-width=\"100|55\" horizontal-position=\"left\">\n <content-overlay target=\"#\" id=\"heroVideoOverlay\" full-screen=\"false\" classes=\"custom-overlay\">\n <script slot=\"content\" type=\"text/template\">\n <content-video fit-container=\"true\" src=\"https://www.youtube.com/watch?v=xqyUdNxWazA\"></content-video>\n </script>\n </content-overlay>\n <content-overlay id=\"heroVideoFullscreen\" full-screen=\"true\" classes=\"custom-overlay\">\n <script slot=\"content\" type=\"text/template\">\n <content-video fit-container=\"true\" autoplay=\"true\" src=\"https://www.youtube.com/watch?v=xqyUdNxWazA\"></content-video>\n </script>\n </content-overlay>\n <content-text-block full-height=\"false|true\" classes=\"light\" vertical-alignment=\"center\">\n <content-line classes=\"text-style--hero-header\">Inceptos Commodo Ullamcorper</content-line>\n <content-line classes=\"text-style--hero-header\">Fringilla Venenatis Mattis Egestas Sem.<sup>*</sup></content-line>\n <content-line classes=\"text-style--hero-subline\">Vulputate Commodo Adipiscing Tristique Fusce</content-line>\n <content-line classes=\"text-style--copy\" max-width=\"100|60|75\">Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</content-line>\n <content-spacer top-offset=\"3\">\n <content-group horizontal-position=\"left\">\n <content-button classes=\"button button--light\" href=\"#heroVideoFullscreen\">Full Screen</content-button>\n </content-group>\n </content-spacer>\n <content-text-block slot=\"footer\">\n <content-line classes=\"text-style--disclosure\">Amet Mollis Tristique Parturient Ridiculus</content-line>\n </content-text-block>\n </content-text-block>\n</content-spacer>\n</content-hero-block>`;\n\nexport const BasicExample = args => `<content-hero-block>\n<content-image slot=\"background\" src=${args.src}></content-image>\n<div slot=\"content\">My content goes here</div>\n</content-hero-block>`;\n\nBasicExample.args = {\n src: 'https://picsum.photos/id/2/768/400',\n};\n\n// export const Primary = Template.bind({});\n// Primary.arg = {\n// first: 'sJohn',\n// last: 'Doe',\n// };\n\nexport default {\n // this creates a ‘Components’ folder and a ‘MyComponent’ subfolder\n title: 'Content Hero Block',\n};\n"]}
1
+ {"version":3,"file":"ContentHeroBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentHeroBlock.stories.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;uCACG,IAAI,CAAC,GAAG;;sBAEzB,CAAC;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+BjB,CAAC;AAEvB,YAAY,CAAC,IAAI,GAAG;IAClB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,mBAAmB;AACnB,wEAAwE;AACxE,KAAK","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport { userEvent, waitFor, within } from '@storybook/testing-library';\n\nexport const BasicExample = args => `<content-hero-block>\n<content-image slot=\"background\" src=${args.src}></content-image>\n<div slot=\"content\">My content goes here</div>\n</content-hero-block>`;\n\nexport const AdvancedExample = args => `<content-hero-block classes=\"main-hero|main-desktop-hero\">\n<content-image slot=\"background\" src=\"https://picsum.photos/id/2/768/400\"></content-image>\n\n<content-spacer slot=\"content\" full-height=\"true\" left-offset=\"4|5|10\" right-offset=\"4\" top-offset=\"4\" bottom-offset=\"4\" max-width=\"100|55\" horizontal-position=\"left\">\n <content-overlay target=\"#\" id=\"heroVideoOverlay\" full-screen=\"false\" classes=\"custom-overlay\">\n <span slot=\"closeButton\">X</span>\n <div slot=\"content\">\n <content-video fit-container=\"true\" src=\"https://www.youtube.com/watch?v=xqyUdNxWazA\"></content-video>\n </div>\n </content-overlay>\n <content-overlay id=\"heroVideoFullscreen\" full-screen=\"true\" classes=\"custom-overlay\">\n <span slot=\"closeButton\">X</span>\n <div slot=\"content\">\n <content-video fit-container=\"true\" autoplay=\"true\" src=\"https://www.youtube.com/watch?v=xqyUdNxWazA\"></content-video>\n </div>\n </content-overlay>\n <content-text-block full-height=\"false|true\" classes=\"light\" vertical-alignment=\"center\">\n <content-line classes=\"text-style--hero-header\">Inceptos Commodo Ullamcorper</content-line>\n <content-line classes=\"text-style--hero-header\">Fringilla Venenatis Mattis Egestas Sem.<sup>*</sup></content-line>\n <content-line classes=\"text-style--hero-subline\">Vulputate Commodo Adipiscing Tristique Fusce</content-line>\n <content-line classes=\"text-style--copy\" max-width=\"100|60|75\">Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</content-line>\n <content-spacer top-offset=\"3\">\n <content-button classes=\"button button--light\" href=\"#heroVideoFullscreen\">Full Screen</content-button>\n\n <content-button classes=\"button button--light\" href=\"#heroVideoOverlay\">Module Overlay</content-button>\n </content-spacer>\n <content-text-block slot=\"footer\">\n <content-line classes=\"text-style--disclosure\">Amet Mollis Tristique Parturient Ridiculus</content-line>\n </content-text-block>\n </content-text-block>\n</content-spacer>\n</content-hero-block>`;\n\nBasicExample.args = {\n src: 'https://picsum.photos/id/2/768/400',\n};\n\nconst meta: Meta = {\n title: 'Content Hero Block',\n tags: ['autodocs'],\n parameters: {\n layout: 'fullscreen',\n },\n};\n\nexport default meta;\n\n// export default {\n// // this creates a ‘Components’ folder and a ‘MyComponent’ subfolder\n// };\n"]}
@@ -0,0 +1,26 @@
1
+ export const BasicExample = args => ` <content-navigation-block classes="mobile_menu|full_menu" hamburger="fixed|none" flex-grow="true">
2
+ <button slot="openButton" aria-label="Toggle Navigation">
3
+ =
4
+ </button>
5
+ <nav slot="content">
6
+ <button slot="closeButton" aria-label="Close Navigation">
7
+ X
8
+ </button>
9
+ <ul class="flex items-center justify-center font-semibold">
10
+ <li><content-button classes="py-4 px-6" href="/">About</content-button></li>
11
+ <li><content-button classes="py-4 px-6" href="/">Membership</content-button></li>
12
+ <li><content-button classes="py-4 px-6" href="/">Events</content-button></li>
13
+ <li><content-button classes="py-4 px-6" href="/">Media</content-button></li>
14
+ <li><content-button classes="py-4 px-6" href="/">Advocacy</content-button></li>
15
+ <li><content-button classes="py-4 px-6" href="/">Cyber</content-button></li>
16
+ <li><content-button classes="py-4 px-6" href="/">Podcasts</content-button></li>
17
+ </ul>
18
+ </nav>
19
+ </content-navigation-block>`;
20
+ BasicExample.args = {
21
+ src: 'https://picsum.photos/id/2/768/400',
22
+ };
23
+ export default {
24
+ title: 'Content Navigation Block',
25
+ };
26
+ //# sourceMappingURL=ContentNavigationBlock.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentNavigationBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentNavigationBlock.stories.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;4BAkBR,CAAC;AAE7B,YAAY,CAAC,IAAI,GAAG;IAClB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,0BAA0B;CAClC,CAAC","sourcesContent":["import type { StoryObj } from '@storybook/web-components';\nimport { userEvent, waitFor, within } from '@storybook/testing-library';\n\nexport const BasicExample = args => ` <content-navigation-block classes=\"mobile_menu|full_menu\" hamburger=\"fixed|none\" flex-grow=\"true\">\n<button slot=\"openButton\" aria-label=\"Toggle Navigation\">\n =\n</button>\n<nav slot=\"content\">\n <button slot=\"closeButton\" aria-label=\"Close Navigation\">\n X\n </button>\n <ul class=\"flex items-center justify-center font-semibold\">\n <li><content-button classes=\"py-4 px-6\" href=\"/\">About</content-button></li>\n <li><content-button classes=\"py-4 px-6\" href=\"/\">Membership</content-button></li>\n <li><content-button classes=\"py-4 px-6\" href=\"/\">Events</content-button></li>\n <li><content-button classes=\"py-4 px-6\" href=\"/\">Media</content-button></li>\n <li><content-button classes=\"py-4 px-6\" href=\"/\">Advocacy</content-button></li>\n <li><content-button classes=\"py-4 px-6\" href=\"/\">Cyber</content-button></li>\n <li><content-button classes=\"py-4 px-6\" href=\"/\">Podcasts</content-button></li>\n </ul>\n</nav>\n</content-navigation-block>`;\n\nBasicExample.args = {\n src: 'https://picsum.photos/id/2/768/400',\n};\n\nexport default {\n title: 'Content Navigation Block',\n};\n"]}
@@ -0,0 +1,20 @@
1
+ export const BasicExample = args => `<content-spacer top-offset=${args.topOffset} bottom-offset=${args.bottomOffset} left-offset=${args.leftOffset} right-offset=${args.rightOffset}>
2
+ <content-line text-align="center" classes="text-style--large">
3
+ Hello World
4
+ </content-line>
5
+ <content-image src=${args.src}></content-image>
6
+ <content-line text-align="center" classes="text-style--large">
7
+ Description goes here
8
+ </content-line>
9
+ </content-spacer>;`;
10
+ BasicExample.args = {
11
+ topOffset: '80px|120px',
12
+ bottomOffset: '80px|120px',
13
+ leftOffset: '80px|120px',
14
+ rightOffset: '80px|120px',
15
+ src: 'https://picsum.photos/id/2/768/400',
16
+ };
17
+ export default {
18
+ title: 'Content Spacer',
19
+ };
20
+ //# sourceMappingURL=ContentSpacer.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentSpacer.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentSpacer.stories.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GACvB,IAAI,CAAC,EAAE,CAAC,8BAA8B,IAAI,CAAC,SAAS,kBAAkB,IAAI,CAAC,YAAY,gBAAgB,IAAI,CAAC,UAAU,iBAAiB,IAAI,CAAC,WAAW;;;;qBAIpI,IAAI,CAAC,GAAG;;;;mBAIV,CAAC;AAEpB,YAAY,CAAC,IAAI,GAAG;IAClB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,YAAY;IAC1B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;IACzB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,gBAAgB;CACxB,CAAC","sourcesContent":["export const BasicExample =\n args => `<content-spacer top-offset=${args.topOffset} bottom-offset=${args.bottomOffset} left-offset=${args.leftOffset} right-offset=${args.rightOffset}>\n<content-line text-align=\"center\" classes=\"text-style--large\">\n Hello World\n</content-line>\n<content-image src=${args.src}></content-image>\n<content-line text-align=\"center\" classes=\"text-style--large\">\n Description goes here\n</content-line>\n</content-spacer>;`;\n\nBasicExample.args = {\n topOffset: '80px|120px',\n bottomOffset: '80px|120px',\n leftOffset: '80px|120px',\n rightOffset: '80px|120px',\n src: 'https://picsum.photos/id/2/768/400',\n};\n\nexport default {\n title: 'Content Spacer',\n};\n"]}
@@ -0,0 +1,17 @@
1
+ export const BasicExample = args => `
2
+ <content-text-block classes="color-banner">
3
+ <content-spacer top-offset="8px|12px" right-offset="8px|12px" bottom-offset="8px|12px">
4
+ <content-line text-align="center" classes="text-style--large">Sit Ligula Fringilla Lorem Mollis <content-button href="#infoOverlay2" classes="text-style--link">Learn More</content-button>
5
+ </content-spacer>
6
+ </content-text-block>`;
7
+ BasicExample.args = {
8
+ topOffset: '80px|120px',
9
+ bottomOffset: '80px|120px',
10
+ leftOffset: '80px|120px',
11
+ rightOffset: '80px|120px',
12
+ src: 'https://picsum.photos/id/2/768/400',
13
+ };
14
+ export default {
15
+ title: 'Content Text Block',
16
+ };
17
+ //# sourceMappingURL=ContentTextBlock.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentTextBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentTextBlock.stories.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;wBAKZ,CAAC;AAEzB,YAAY,CAAC,IAAI,GAAG;IAClB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,YAAY;IAC1B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;IACzB,GAAG,EAAE,oCAAoC;CAC1C,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,oBAAoB;CAC5B,CAAC","sourcesContent":["export const BasicExample = args => `\n <content-text-block classes=\"color-banner\">\n <content-spacer top-offset=\"8px|12px\" right-offset=\"8px|12px\" bottom-offset=\"8px|12px\">\n <content-line text-align=\"center\" classes=\"text-style--large\">Sit Ligula Fringilla Lorem Mollis <content-button href=\"#infoOverlay2\" classes=\"text-style--link\">Learn More</content-button>\n </content-spacer>\n </content-text-block>`;\n\nBasicExample.args = {\n topOffset: '80px|120px',\n bottomOffset: '80px|120px',\n leftOffset: '80px|120px',\n rightOffset: '80px|120px',\n src: 'https://picsum.photos/id/2/768/400',\n};\n\nexport default {\n title: 'Content Text Block',\n};\n"]}
@@ -0,0 +1,17 @@
1
+ export const BasicExample = args => `
2
+ <content-tout-block hover="true">
3
+ <content-button href="?test" slot="mediaContent" clickable-block="true">
4
+ I am hover content
5
+ </content-button>
6
+ <div slot="media">
7
+ <content-image alt="Test Alt Text" src="https://picsum.photos/id/3/165/274"></content-image>
8
+ </div>
9
+ <content-text-block>
10
+ Body Content
11
+ </content-text-block>
12
+ </content-tout-block>`;
13
+ BasicExample.args = {};
14
+ export default {
15
+ title: 'Content Tout Block',
16
+ };
17
+ //# sourceMappingURL=ContentToutBlock.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentToutBlock.stories.js","sourceRoot":"","sources":["../../../src/stories/ContentToutBlock.stories.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;sBAWd,CAAC;AAEvB,YAAY,CAAC,IAAI,GAAG,EAAE,CAAC;AAEvB,eAAe;IACb,KAAK,EAAE,oBAAoB;CAC5B,CAAC","sourcesContent":["export const BasicExample = args => `\n<content-tout-block hover=\"true\">\n<content-button href=\"?test\" slot=\"mediaContent\" clickable-block=\"true\">\nI am hover content\n</content-button>\n<div slot=\"media\">\n <content-image alt=\"Test Alt Text\" src=\"https://picsum.photos/id/3/165/274\"></content-image>\n</div>\n<content-text-block>\n Body Content\n</content-text-block> \n</content-tout-block>`;\n\nBasicExample.args = {};\n\nexport default {\n title: 'Content Tout Block',\n};\n"]}