@content-blocks/js 0.7.1 → 0.7.3

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 (158) hide show
  1. package/dist/cjs/content-accordion_11.cjs.entry.js +69 -1556
  2. package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
  3. package/dist/cjs/content-blocks.cjs.js +1 -1
  4. package/dist/cjs/content-carousel.cjs.entry.js +6 -5
  5. package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
  6. package/dist/cjs/content-navigation-block.cjs.entry.js +43 -26
  7. package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
  8. package/dist/cjs/content-split-block.cjs.entry.js +2 -2
  9. package/dist/cjs/content-tabs.cjs.entry.js +2 -2
  10. package/dist/cjs/focus-trap.esm-a1e3774c.js +1509 -0
  11. package/dist/cjs/focus-trap.esm-a1e3774c.js.map +1 -0
  12. package/dist/cjs/index-f38d389e.js +5224 -0
  13. package/dist/cjs/index-f38d389e.js.map +1 -0
  14. package/dist/cjs/index.cjs.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/{swiper-4fade542.js → swiper-e5a68ae2.js} +68 -469
  17. package/dist/cjs/swiper-e5a68ae2.js.map +1 -0
  18. package/dist/cjs/utils-c04e978e.js +457 -0
  19. package/dist/cjs/utils-c04e978e.js.map +1 -0
  20. package/dist/cjs/{utils-db61cd70.js → utils-f8ccab0a.js} +35 -29
  21. package/dist/cjs/utils-f8ccab0a.js.map +1 -0
  22. package/dist/cjs/{window-resize-service-ac5c2012.js → window-resize-service-bc8cf256.js} +2 -2
  23. package/dist/cjs/{window-resize-service-ac5c2012.js.map → window-resize-service-bc8cf256.js.map} +1 -1
  24. package/dist/collection/blocks/content-hero-block/content-hero-block.js +1 -1
  25. package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -1
  26. package/dist/collection/blocks/content-tout-block/content-tout-block.css +1 -1
  27. package/dist/collection/components/content-carousel/content-carousel.js +5 -4
  28. package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
  29. package/dist/collection/components/content-navigation-block/content-navigation-block.css +55 -14
  30. package/dist/collection/components/content-navigation-block/content-navigation-block.js +51 -24
  31. package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
  32. package/dist/collection/components/content-overlay/content-overlay.css +23 -10
  33. package/dist/collection/components/content-overlay/content-overlay.js +100 -39
  34. package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
  35. package/dist/collection/elements/content-button/content-button.js +3 -3
  36. package/dist/collection/elements/content-button/content-button.js.map +1 -1
  37. package/dist/collection/elements/content-image/content-image.js +4 -4
  38. package/dist/collection/elements/content-image/content-image.js.map +1 -1
  39. package/dist/collection/elements/content-video/content-video.css +1 -19
  40. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +5 -4
  41. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +36 -0
  42. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
  43. package/dist/collection/formatters/content-spacer/content-spacer.css +6 -4
  44. package/dist/collection/formatters/content-spacer/content-spacer.js +13 -5
  45. package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
  46. package/dist/collection/services/window-resize-service.js.map +1 -1
  47. package/dist/collection/stories/ContentNavigationBlock.stories.js +1 -1
  48. package/dist/collection/stories/ContentNavigationBlock.stories.js.map +1 -1
  49. package/dist/collection/stories/ContentTextBlock.stories.js +5 -5
  50. package/dist/collection/stories/ContentTextBlock.stories.js.map +1 -1
  51. package/dist/collection/stories/FullPageExample.stories.js +164 -214
  52. package/dist/collection/stories/FullPageExample.stories.js.map +1 -1
  53. package/dist/collection/utils/utils.js +31 -25
  54. package/dist/collection/utils/utils.js.map +1 -1
  55. package/dist/collection/utils/utils.spec.js +28 -3
  56. package/dist/collection/utils/utils.spec.js.map +1 -1
  57. package/dist/components/content-button.js +3 -3
  58. package/dist/components/content-button.js.map +1 -1
  59. package/dist/components/content-carousel.js +5 -4
  60. package/dist/components/content-carousel.js.map +1 -1
  61. package/dist/components/content-grid-formatter2.js +8 -1
  62. package/dist/components/content-grid-formatter2.js.map +1 -1
  63. package/dist/components/content-hero-block.js +1 -1
  64. package/dist/components/content-hero-block.js.map +1 -1
  65. package/dist/components/content-image.js +4 -4
  66. package/dist/components/content-image.js.map +1 -1
  67. package/dist/components/content-navigation-block.js +48 -25
  68. package/dist/components/content-navigation-block.js.map +1 -1
  69. package/dist/components/content-overlay.js +51 -1543
  70. package/dist/components/content-overlay.js.map +1 -1
  71. package/dist/components/content-spacer.js +3 -3
  72. package/dist/components/content-spacer.js.map +1 -1
  73. package/dist/components/content-tout-block.js +1 -1
  74. package/dist/components/content-tout-block.js.map +1 -1
  75. package/dist/components/content-video.js +1 -1
  76. package/dist/components/content-video.js.map +1 -1
  77. package/dist/components/focus-trap.esm.js +1507 -0
  78. package/dist/components/focus-trap.esm.js.map +1 -0
  79. package/dist/components/index2.js +5200 -0
  80. package/dist/components/index2.js.map +1 -0
  81. package/dist/components/swiper.js +1 -402
  82. package/dist/components/swiper.js.map +1 -1
  83. package/dist/components/utils.js +34 -28
  84. package/dist/components/utils.js.map +1 -1
  85. package/dist/components/utils2.js +433 -0
  86. package/dist/components/utils2.js.map +1 -0
  87. package/dist/components/window-resize-service.js.map +1 -1
  88. package/dist/content-blocks/content-blocks.esm.js +1 -1
  89. package/dist/content-blocks/content-blocks.esm.js.map +1 -1
  90. package/dist/content-blocks/index.esm.js +1 -1
  91. package/dist/content-blocks/p-0131bfdf.entry.js +2 -0
  92. package/dist/content-blocks/p-0131bfdf.entry.js.map +1 -0
  93. package/dist/content-blocks/{p-4bfbd7ef.entry.js → p-1b448306.entry.js} +2 -2
  94. package/dist/content-blocks/p-39788531.entry.js +2 -0
  95. package/dist/content-blocks/p-39788531.entry.js.map +1 -0
  96. package/dist/content-blocks/{p-8cc22c1e.entry.js → p-3bd97960.entry.js} +2 -2
  97. package/dist/content-blocks/{p-cfb4593f.js → p-3fe594af.js} +2 -2
  98. package/dist/content-blocks/{p-cfb4593f.js.map → p-3fe594af.js.map} +1 -1
  99. package/dist/content-blocks/p-75ac85e9.js +2 -0
  100. package/dist/content-blocks/p-75ac85e9.js.map +1 -0
  101. package/dist/content-blocks/p-878dc806.js +10 -0
  102. package/dist/content-blocks/p-878dc806.js.map +1 -0
  103. package/dist/content-blocks/p-97c4ca9d.js +2 -0
  104. package/dist/content-blocks/p-97c4ca9d.js.map +1 -0
  105. package/dist/content-blocks/{p-271fb304.entry.js → p-cbc1dd73.entry.js} +2 -2
  106. package/dist/content-blocks/p-cbc1dd73.entry.js.map +1 -0
  107. package/dist/content-blocks/p-cc7397cf.js +2 -0
  108. package/dist/content-blocks/p-cc7397cf.js.map +1 -0
  109. package/dist/content-blocks/p-e2907508.js +2 -0
  110. package/dist/content-blocks/p-e2907508.js.map +1 -0
  111. package/dist/esm/content-accordion_11.entry.js +69 -1556
  112. package/dist/esm/content-accordion_11.entry.js.map +1 -1
  113. package/dist/esm/content-blocks.js +1 -1
  114. package/dist/esm/content-carousel.entry.js +6 -5
  115. package/dist/esm/content-carousel.entry.js.map +1 -1
  116. package/dist/esm/content-navigation-block.entry.js +43 -26
  117. package/dist/esm/content-navigation-block.entry.js.map +1 -1
  118. package/dist/esm/content-split-block.entry.js +2 -2
  119. package/dist/esm/content-tabs.entry.js +2 -2
  120. package/dist/esm/focus-trap.esm-49c9613c.js +1507 -0
  121. package/dist/esm/focus-trap.esm-49c9613c.js.map +1 -0
  122. package/dist/esm/index-d9f353de.js +5200 -0
  123. package/dist/esm/index-d9f353de.js.map +1 -0
  124. package/dist/esm/index.js +1 -1
  125. package/dist/esm/loader.js +1 -1
  126. package/dist/esm/{swiper-3e7be625.js → swiper-3394f7fd.js} +2 -403
  127. package/dist/esm/swiper-3394f7fd.js.map +1 -0
  128. package/dist/esm/utils-075121ec.js +433 -0
  129. package/dist/esm/utils-075121ec.js.map +1 -0
  130. package/dist/esm/{utils-4f78228e.js → utils-9a901aa9.js} +35 -29
  131. package/dist/esm/utils-9a901aa9.js.map +1 -0
  132. package/dist/esm/{window-resize-service-f40ec51c.js → window-resize-service-a6537000.js} +2 -2
  133. package/dist/esm/{window-resize-service-f40ec51c.js.map → window-resize-service-a6537000.js.map} +1 -1
  134. package/dist/types/components/content-carousel/content-carousel.d.ts +3 -3
  135. package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +11 -0
  136. package/dist/types/components/content-overlay/content-overlay.d.ts +11 -0
  137. package/dist/types/components.d.ts +34 -2
  138. package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +8 -1
  139. package/dist/types/formatters/content-spacer/content-spacer.d.ts +2 -1
  140. package/dist/types/stories/ContentNavigationBlock.stories.d.ts +1 -3
  141. package/dist/types/stories/ContentTextBlock.stories.d.ts +1 -7
  142. package/dist/types/utils/utils.d.ts +8 -3
  143. package/package.json +2 -2
  144. package/dist/cjs/swiper-4fade542.js.map +0 -1
  145. package/dist/cjs/utils-db61cd70.js.map +0 -1
  146. package/dist/content-blocks/p-10819bfa.js +0 -2
  147. package/dist/content-blocks/p-10819bfa.js.map +0 -1
  148. package/dist/content-blocks/p-24657e66.entry.js +0 -10
  149. package/dist/content-blocks/p-24657e66.entry.js.map +0 -1
  150. package/dist/content-blocks/p-271fb304.entry.js.map +0 -1
  151. package/dist/content-blocks/p-6a177aef.entry.js +0 -2
  152. package/dist/content-blocks/p-6a177aef.entry.js.map +0 -1
  153. package/dist/content-blocks/p-b04fe808.js +0 -2
  154. package/dist/content-blocks/p-b04fe808.js.map +0 -1
  155. package/dist/esm/swiper-3e7be625.js.map +0 -1
  156. package/dist/esm/utils-4f78228e.js.map +0 -1
  157. /package/dist/content-blocks/{p-4bfbd7ef.entry.js.map → p-1b448306.entry.js.map} +0 -0
  158. /package/dist/content-blocks/{p-8cc22c1e.entry.js.map → p-3bd97960.entry.js.map} +0 -0
@@ -15,6 +15,7 @@ export class ContentGridFormatter {
15
15
  this.horizontal = 'space-between';
16
16
  this.columns = '1';
17
17
  this.columnGap = '0';
18
+ this.rowGap = '0';
18
19
  this.activeClassString = undefined;
19
20
  this.inlineStyle = {};
20
21
  }
@@ -39,6 +40,10 @@ export class ContentGridFormatter {
39
40
  this.columnGap = newValue;
40
41
  this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--column-gap': newValue });
41
42
  }),
43
+ WindowResizeService.registerProp(this.rowGap).subscribe(newValue => {
44
+ this.rowGap = newValue;
45
+ this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--row-gap': newValue });
46
+ }),
42
47
  WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue)),
43
48
  ]);
44
49
  }
@@ -334,6 +339,36 @@ export class ContentGridFormatter {
334
339
  "attribute": "column-gap",
335
340
  "reflect": true,
336
341
  "defaultValue": "'0'"
342
+ },
343
+ "rowGap": {
344
+ "type": "string",
345
+ "mutable": true,
346
+ "complexType": {
347
+ "original": "ResponsiveNumber",
348
+ "resolved": "string",
349
+ "references": {
350
+ "ResponsiveNumber": {
351
+ "location": "import",
352
+ "path": "../../typings",
353
+ "id": "src/typings.d.ts::ResponsiveNumber"
354
+ }
355
+ }
356
+ },
357
+ "required": false,
358
+ "optional": false,
359
+ "docs": {
360
+ "tags": [{
361
+ "name": "type",
362
+ "text": "Number"
363
+ }, {
364
+ "name": "responsive",
365
+ "text": undefined
366
+ }],
367
+ "text": ""
368
+ },
369
+ "attribute": "row-gap",
370
+ "reflect": true,
371
+ "defaultValue": "'0'"
337
372
  }
338
373
  };
339
374
  }
@@ -344,5 +379,6 @@ export class ContentGridFormatter {
344
379
  "inlineStyle": {}
345
380
  };
346
381
  }
382
+ static get elementRef() { return "hostElement"; }
347
383
  }
348
384
  //# sourceMappingURL=content-grid-formatter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-grid-formatter.js","sourceRoot":"","sources":["../../../../src/formatters/content-grid-formatter/content-grid-formatter.tsx"],"names":[],"mappings":"AAAA,OA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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 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 vertical: 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 horizontal: 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.vertical).subscribe(newValue => {\n this.vertical = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--align-items': this.vertical,\n };\n }),\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => {\n this.horizontal = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--justify-content': this.horizontal,\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"]}
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;AAE3E,OAAO,EAAE,OAAO,EAAsB,MAAM,wBAAwB,CAAC;AAErE;;;GAGG;AAMH,MAAM,O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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';\nimport { Element, HTMLStencilElement } from '@stencil/core/internal';\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 vertical: 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 horizontal: 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 /**\n * @type Number\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n rowGap: ResponsiveNumber = '0';\n\n @Element() hostElement: HTMLStencilElement;\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.vertical).subscribe(newValue => {\n this.vertical = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--align-items': this.vertical,\n };\n }),\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => {\n this.horizontal = newValue as FLEX_JUSTIFY_OPTIONS;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--justify-content': this.horizontal,\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.rowGap).subscribe(newValue => {\n this.rowGap = newValue as string;\n this.inlineStyle = {\n ...this.inlineStyle,\n '--row-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,6 +7,9 @@ content-spacer {
7
7
  width: 100%;
8
8
  height: auto;
9
9
  }
10
+ content-spacer .content-spacer__content {
11
+ width: 100%;
12
+ }
10
13
  content-spacer[full-height=true] {
11
14
  height: 100%;
12
15
  }
@@ -33,14 +36,13 @@ content-spacer[horizontal=right] {
33
36
  }
34
37
  content-spacer[vertical] {
35
38
  display: flex;
36
- flex-direction: column;
37
39
  }
38
40
  content-spacer[vertical=top] {
39
- justify-content: flex-start;
41
+ align-items: flex-start;
40
42
  }
41
43
  content-spacer[vertical=center] {
42
- justify-content: center;
44
+ align-items: center;
43
45
  }
44
46
  content-spacer[vertical=bottom] {
45
- justify-content: flex-end;
47
+ align-items: flex-end;
46
48
  }
@@ -12,7 +12,7 @@ export class ContentSpacingWrapper {
12
12
  this.fullHeight = 'false';
13
13
  this.textAlign = 'default';
14
14
  this.horizontal = 'default';
15
- this.vertical = 'top';
15
+ this.vertical = '';
16
16
  this.topOffset = '0';
17
17
  this.bottomOffset = '0';
18
18
  this.leftOffset = '0';
@@ -42,7 +42,7 @@ export class ContentSpacingWrapper {
42
42
  WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));
43
43
  }
44
44
  render() {
45
- return (h(Host, { class: this.classString, style: this.inlineStyle }, h("slot", { name: "content" }), h("slot", null)));
45
+ return (h(Host, { class: this.classString, style: this.inlineStyle }, h("div", { class: "content-spacer__content" }, h("slot", { name: "content" }), h("slot", null))));
46
46
  }
47
47
  static get is() { return "content-spacer"; }
48
48
  static get originalStyleUrls() {
@@ -234,9 +234,14 @@ export class ContentSpacingWrapper {
234
234
  "type": "string",
235
235
  "mutable": true,
236
236
  "complexType": {
237
- "original": "ContentVerticalAlignments",
238
- "resolved": "\"bottom\" | \"center\" | \"top\"",
237
+ "original": "ResponsiveString | ContentVerticalAlignments",
238
+ "resolved": "string",
239
239
  "references": {
240
+ "ResponsiveString": {
241
+ "location": "import",
242
+ "path": "../../typings",
243
+ "id": "src/typings.d.ts::ResponsiveString"
244
+ },
240
245
  "ContentVerticalAlignments": {
241
246
  "location": "import",
242
247
  "path": "../../typings",
@@ -259,6 +264,9 @@ export class ContentSpacingWrapper {
259
264
  }, {
260
265
  "name": "options",
261
266
  "text": "bottom"
267
+ }, {
268
+ "name": "options",
269
+ "text": "default"
262
270
  }, {
263
271
  "name": "responsive",
264
272
  "text": undefined
@@ -267,7 +275,7 @@ export class ContentSpacingWrapper {
267
275
  },
268
276
  "attribute": "vertical",
269
277
  "reflect": true,
270
- "defaultValue": "'top'"
278
+ "defaultValue": "''"
271
279
  },
272
280
  "topOffset": {
273
281
  "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;0BAeR,SAAS;wBAcb,KAAK;yBAQL,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,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,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;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, 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 horizontal: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentVerticalAlignments for text box placement.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ContentVerticalAlignments = 'top';\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.horizontal).subscribe(newValue => (this.horizontal = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue as ContentVerticalAlignments));\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;0BAeR,SAAS;wBAeM,EAAE;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,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,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,QAAuC,CAAC,CAAC,CAAC;QACrI,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAqC,CAAC,CAAC,CAAC;QAC/H,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;YAC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,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,WAAK,KAAK,EAAC,yBAAyB;gBAClC,YAAM,IAAI,EAAC,SAAS,GAAQ;gBAC5B,eAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, 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 horizontal: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentVerticalAlignments for text box placement.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n * @options default\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ResponsiveString | ContentVerticalAlignments = '';\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.horizontal).subscribe(newValue => (this.horizontal = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue as ContentVerticalAlignments));\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 <div class=\"content-spacer__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -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,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
+ {"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;QAItF,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 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();"]}
@@ -18,7 +18,7 @@ export const BasicExample = args => ` <content-navigation-block classes="mo
18
18
  </nav>
19
19
  </content-navigation-block>`;
20
20
  BasicExample.args = {
21
- src: 'https://picsum.photos/id/2/768/400',
21
+ // src: 'https://picsum.photos/id/2/768/400',
22
22
  };
23
23
  export default {
24
24
  title: 'Content Navigation Block',
@@ -1 +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"]}
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;AAClB,6CAA6C;CAC9C,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"]}
@@ -5,11 +5,11 @@ export const BasicExample = args => `
5
5
  </content-spacer>
6
6
  </content-text-block>`;
7
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',
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
13
  };
14
14
  export default {
15
15
  title: 'Content Text Block',
@@ -1 +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"]}
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;AAClB,2BAA2B;AAC3B,8BAA8B;AAC9B,4BAA4B;AAC5B,6BAA6B;AAC7B,6CAA6C;CAC9C,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"]}