@ptcwebops/ptcw-design 0.2.9 → 0.3.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 (53) hide show
  1. package/dist/cjs/{icon-asset_16.cjs.entry.js → icon-asset_11.cjs.entry.js} +30 -302
  2. package/dist/cjs/interfaces-0ecd8027.js +15 -0
  3. package/dist/cjs/list-item.cjs.entry.js +29 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +23 -0
  6. package/dist/cjs/ptc-button.cjs.entry.js +76 -0
  7. package/dist/cjs/ptc-hero.cjs.entry.js +25 -0
  8. package/dist/cjs/ptc-img.cjs.entry.js +160 -0
  9. package/dist/cjs/ptc-span.cjs.entry.js +34 -0
  10. package/dist/cjs/ptcw-design.cjs.js +1 -1
  11. package/dist/collection/components/icon-asset/icon-asset.css +4 -0
  12. package/dist/collection/components/icon-asset/icon-asset.js +2 -2
  13. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +16 -0
  14. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +2 -2
  15. package/dist/collection/components/ptc-card-content/ptc-card-content.css +29 -3
  16. package/dist/collection/components/ptc-card-content/ptc-card-content.js +2 -2
  17. package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +25 -3
  18. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +2 -2
  19. package/dist/collection/components/ptc-date/ptc-date.css +8 -0
  20. package/dist/collection/components/ptc-date/ptc-date.js +24 -1
  21. package/dist/custom-elements/index.js +13 -7
  22. package/dist/esm/{icon-asset_16.entry.js → icon-asset_11.entry.js} +28 -295
  23. package/dist/esm/interfaces-c1c73092.js +12 -0
  24. package/dist/esm/list-item.entry.js +25 -0
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/esm/ptc-breadcrumb.entry.js +19 -0
  27. package/dist/esm/ptc-button.entry.js +72 -0
  28. package/dist/esm/ptc-hero.entry.js +21 -0
  29. package/dist/esm/ptc-img.entry.js +156 -0
  30. package/dist/esm/ptc-span.entry.js +30 -0
  31. package/dist/esm/ptcw-design.js +1 -1
  32. package/dist/ptcw-design/p-29fe43a9.entry.js +1 -0
  33. package/dist/ptcw-design/p-473ec631.entry.js +1 -0
  34. package/dist/ptcw-design/p-50e52c88.js +1 -0
  35. package/dist/ptcw-design/p-563d409f.entry.js +1 -0
  36. package/dist/ptcw-design/p-797e4a7d.entry.js +1 -0
  37. package/dist/ptcw-design/p-9372c930.entry.js +1 -0
  38. package/dist/ptcw-design/p-abd4772d.entry.js +1 -0
  39. package/dist/ptcw-design/p-b3d73b7f.entry.js +1 -0
  40. package/dist/ptcw-design/ptcw-design.css +2 -2
  41. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  42. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  43. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +1 -1
  44. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -1
  45. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +1 -1
  46. package/dist/types/components/ptc-date/ptc-date.d.ts +5 -0
  47. package/dist/types/components.d.ts +16 -8
  48. package/package.json +1 -1
  49. package/readme.md +1 -1
  50. package/dist/cjs/ptc-date.cjs.entry.js +0 -48
  51. package/dist/esm/ptc-date.entry.js +0 -44
  52. package/dist/ptcw-design/p-281824f5.entry.js +0 -1
  53. package/dist/ptcw-design/p-8bbb4277.entry.js +0 -1
@@ -0,0 +1,76 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0b899fc6.js');
6
+
7
+ const ptcButtonCss = "button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-primary-uigrey);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:3px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:0.86}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-primary-uigrey);background-image:linear-gradient(285deg, var(--color-primary-uigrey) 155%, #6e717c 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px #5bb73b;background-image:linear-gradient(285deg, #5bb73b 155%, #178642 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-primary-uigrey);background-image:linear-gradient(to right, #ffffff, #d3d3d3, #e5e5e5)}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-primary-uigrey)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:4px;margin-top:4px;box-shadow:0 0 25.8px 3.2px rgba(0, 0, 0, 0.5);border:solid 2.5px var(--color-secondary-tutlegreen-dark);background-image:linear-gradient(to right, var(--color-secondary-turtlegreen), var(--color-secondary-tutlegreen-dark))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-secondary-tutlegreen-dark), var(--color-secondary-turtlegreen));opacity:0;transition:opacity 0.6s cubic-bezier(0, 0, 0.23, 1);border-radius:2px}.legacy-green:hover{box-shadow:0 0 49px 6.1px rgba(0, 0, 0, 0.55)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-medium)}@media screen and (min-width: 768px){.legacy-green span{font-size:19px;letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:3px;display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all ease-out 0.25s;position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}.nav{font-family:var(--ptc-font-latin);background-color:#323b42;border-radius:var(--ptc-border-radius-medium);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:13px;font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:26px;list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-decelerated-ease)}.nav:focus{outline:3px solid #0092d1;outline-offset:2px}.nav:hover{background-color:#20262a}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary{padding:var(--ptc-font-size-small) var(--ptc-font-size-large);transition:background-color var(--ptc-standard-ease) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled{pointer-events:none;border-color:#a8aaaf;background:#e1e2e4}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span{color:#a8aaaf}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]){fill:#a8aaaf !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus{outline:3px solid #0092d1;outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:17px;line-height:20px;letter-spacing:normal}.ptc-primary{background:#1f2024;border:2px solid #5bb73a;border-radius:var(--ptc-border-radius-medium)}.ptc-primary:hover{background-color:#33353a}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:#1f2024;border:2px solid #6d707b;border-radius:var(--ptc-border-radius-medium)}.ptc-secondary:hover{background-color:#33353a}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-primary-grey);border-radius:var(--ptc-border-radius-medium)}.ptc-tertiary:hover{background-color:#e1e2e4}.ptc-tertiary:active{background-color:#c5c5ca}.ptc-tertiary span{color:var(--color-primary-grey)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-primary-grey) !important}.ptc-quaternary{background:#158542;border:2px solid #459e67;border-radius:var(--ptc-border-radius-medium)}.ptc-quaternary:hover{background-color:#17713a}.ptc-quaternary:active{background-color:#186135}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}";
8
+
9
+ let PtcButton = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.clickEvent = index.createEvent(this, "clickEvent", 7);
13
+ /**
14
+ * Disabled button
15
+ */
16
+ this.disabled = false;
17
+ /**
18
+ * Button type
19
+ */
20
+ this.type = 'button';
21
+ /**
22
+ * Button theme color
23
+ */
24
+ this.color = 'ptc-primary';
25
+ /**
26
+ * Icon Animation
27
+ */
28
+ this.iconAnimation = '';
29
+ /**
30
+ * Icon Position
31
+ */
32
+ this.iconPosition = 'icon-right';
33
+ /**
34
+ * Link URL
35
+ */
36
+ this.linkHref = undefined;
37
+ /**
38
+ * link Title
39
+ */
40
+ this.linkTitle = undefined;
41
+ /**
42
+ * Link target
43
+ * */
44
+ this.target = '_self';
45
+ /**
46
+ * Link rel
47
+ * */
48
+ this.rel = undefined;
49
+ /**
50
+ * (optional) tab-nav.
51
+ * indicates that its element can be focused, and where it participates in sequential keyboard navigation.
52
+ * A negative value (usually tabindex="-1") means that the element is not reachable via sequential keyboard navigation
53
+ */
54
+ this.tabNav = 0;
55
+ }
56
+ clickEventHandler() {
57
+ this.clickEvent.emit();
58
+ //console.log('click!');
59
+ }
60
+ render() {
61
+ const classMap = this.getCssClassMap();
62
+ const Tag = !!this.linkHref ? 'a' : 'button';
63
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
64
+ }
65
+ getCssClassMap() {
66
+ return {
67
+ [this.color]: true,
68
+ [this.iconAnimation]: true,
69
+ [this.iconPosition]: true,
70
+ ['disabled']: this.disabled ? true : false,
71
+ };
72
+ }
73
+ };
74
+ PtcButton.style = ptcButtonCss;
75
+
76
+ exports.ptc_button = PtcButton;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0b899fc6.js');
6
+
7
+ const ptcHeroCss = ":host{display:block;position:relative}:host(.jumbotron) .ptc-hero-wrapper,:host(.footer-cta) .ptc-hero-wrapper{position:relative}:host(.footer-cta) .ptc-hero-wrapper div>*{text-align:center}";
8
+
9
+ let PtcHero = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ const classMap = this.getCssClassMap();
15
+ return (index.h(index.Host, { class: classMap }, index.h("div", { class: "ptc-hero-wrapper" }, index.h("ptc-img", { "image-type": "smart-bg", "img-url": "http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway", "size-xs": "600x450", "size-sm": "1108x658", "size-md": "1920x1080", "size-lg": "2700x1500" }, this.heroType == 'jumbotron' ? ([index.h("ptc-overlay", { "filter-color": "black-1-xs" }), index.h("ptc-overlay", { "filter-color": "black-2-xs" })]) : this.heroType == 'footer-cta' ? (index.h("ptc-overlay", { "filter-color": "black-3" })) : null, index.h("slot", null)))));
16
+ }
17
+ getCssClassMap() {
18
+ return {
19
+ [this.heroType]: this.heroType ? true : false,
20
+ };
21
+ }
22
+ };
23
+ PtcHero.style = ptcHeroCss;
24
+
25
+ exports.ptc_hero = PtcHero;
@@ -0,0 +1,160 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0b899fc6.js');
6
+ const interfaces = require('./interfaces-0ecd8027.js');
7
+
8
+ const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-sm{border-radius:var(--ptc-border-radius-small)}.radius-md{border-radius:var(--ptc-border-radius-medium)}.radius-lg{border-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-primary-lightgrey)}@media (max-width: 767px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media (min-width: 1200px){.hidden-lg{display:none !important}}";
9
+
10
+ let PtcImg = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ /**
14
+ * Image size for smallest screen
15
+ * <=767px
16
+ */
17
+ this.sizeXs = '510x340';
18
+ /**
19
+ * Image size for small screen
20
+ * >=768px and <=991px
21
+ */
22
+ this.sizeSm = '1240x496';
23
+ /**
24
+ * Image size for medium screen
25
+ * >=992px and <=1199px
26
+ */
27
+ this.sizeMd = '1366x500';
28
+ /**
29
+ * Image solution for large screen
30
+ * >=1200px
31
+ */
32
+ this.sizeLg = '1920x1080';
33
+ /**
34
+ * Image type
35
+ */
36
+ this.imageType = 'smart-bg';
37
+ /**
38
+ * Image border shape
39
+ */
40
+ this.borderRadius = '';
41
+ /**
42
+ * Lazy loading option
43
+ */
44
+ this.loadMode = 'lazy-bg';
45
+ }
46
+ /**
47
+ * Image Z Index
48
+ */
49
+ // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
50
+ WindowResize() {
51
+ this.setResponsiveBg();
52
+ }
53
+ render() {
54
+ const classMap = this.getCssClassMap();
55
+ return (index.h(index.Host, null, index.h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? index.h("slot", null) : null)));
56
+ }
57
+ componentDidLoad() {
58
+ this.addIntersectionObserver();
59
+ this.setResponsiveBg();
60
+ }
61
+ componentWillUpdate() {
62
+ // console.log('componentWillUpdate!');
63
+ this.addIntersectionObserver();
64
+ this.setResponsiveBg();
65
+ }
66
+ //responsive image
67
+ setResponsiveBg() {
68
+ // Define local variables
69
+ let backgrounds = (this.el || document).querySelectorAll(interfaces.ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
70
+ // console.log('current breakpoint: ' + currentBreakpoint);
71
+ // Loop through all target elements
72
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
73
+ // Set current variables
74
+ el = backgrounds[i];
75
+ elData = el.getAttribute('data-' + currentBreakpoint);
76
+ // If the data attribute exists, set the background
77
+ if (elData !== null) {
78
+ el.style.backgroundImage = "url('" + elData + "')";
79
+ }
80
+ else {
81
+ if (typeof console == 'object') {
82
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
83
+ }
84
+ }
85
+ }
86
+ }
87
+ //lazy loading
88
+ addIntersectionObserver() {
89
+ if (!this.imgUrl) {
90
+ console.log('no image!');
91
+ return;
92
+ }
93
+ if ('IntersectionObserver' in window) {
94
+ let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
95
+ let bgObserver = new IntersectionObserver(entries => {
96
+ entries.forEach(entry => {
97
+ if (entry.isIntersecting) {
98
+ const image = entry.target;
99
+ image.classList.remove('lazy-bg');
100
+ // console.log('loaded');
101
+ bgObserver.unobserve(image);
102
+ }
103
+ });
104
+ });
105
+ lazyLoadBgs.forEach(image => {
106
+ bgObserver.observe(image);
107
+ });
108
+ }
109
+ }
110
+ getCssClassMap() {
111
+ return {
112
+ [this.imageType]: true,
113
+ 'ptc-img': true,
114
+ [this.borderRadius]: true,
115
+ [this.loadMode]: true,
116
+ // [this.imageZIndex] : true
117
+ };
118
+ }
119
+ getCurrentBreakPoints() {
120
+ // Define local variables
121
+ let doc = window.document, temp = doc.createElement('div'), env;
122
+ // Append test node
123
+ doc.body.appendChild(temp);
124
+ // Loop through breakpoints
125
+ for (let i = interfaces.ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
126
+ env = interfaces.ResponsiveBgVariables.envs[i];
127
+ // Add classes
128
+ temp.className = 'hidden-' + env;
129
+ // Found breakpoint
130
+ if (temp.offsetParent === null) {
131
+ // Remove our test node
132
+ doc.body.removeChild(temp);
133
+ console.log('remove test node');
134
+ // Return current breakpoint
135
+ return env;
136
+ }
137
+ }
138
+ // Breakpoint not found, try fallback
139
+ doc.body.removeChild(temp);
140
+ return this.getFallbackBreakpoint();
141
+ }
142
+ getFallbackBreakpoint() {
143
+ if (window.matchMedia('(min-width: 992px)').matches) {
144
+ return 'lg';
145
+ }
146
+ else if (window.matchMedia('(min-width: 768px)').matches) {
147
+ return 'md';
148
+ }
149
+ else if (window.matchMedia('(min-width: 576px)').matches) {
150
+ return 'sm';
151
+ }
152
+ else {
153
+ return 'xs';
154
+ }
155
+ }
156
+ get el() { return index.getElement(this); }
157
+ };
158
+ PtcImg.style = ptcImgCss;
159
+
160
+ exports.ptc_img = PtcImg;
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0b899fc6.js');
6
+
7
+ const ptcSpanCss = ":host{z-index:1}:host span{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}:host(.link-style) span{color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal)}:host(.nav-style) span{display:block;color:#cac8c8;font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-transform:capitalize;padding-left:var(--ptc-element-spacing-05);font-size:17px;padding-bottom:var(--ptc-element-spacing-03)}:host(.tag-style) span{font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-dense);font-weight:var(--ptc-font-weight-regular);color:var(--color-primary-grey)}:host(.plm-hub-style) span{font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-19);font-weight:var(--ptc-font-weight-medium);color:var(--color-white)}:host(.inline) span{display:inline}:host(.block) span{display:block}:host(.inline-block) span{display:inline-block}:host(.white) span{color:var(--color-white)}:host(.primary-grey) span{color:var(--color-primary-grey)}";
8
+
9
+ let PtcSpan = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /**
13
+ * Span Style
14
+ */
15
+ this.spanStyle = 'tag-style';
16
+ /**
17
+ * Display
18
+ */
19
+ this.display = 'inline';
20
+ }
21
+ render() {
22
+ const classMap = this.getCssClassMap();
23
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("span", { part: "part-ptc-span" }, index.h("slot", null))));
24
+ }
25
+ getCssClassMap() {
26
+ return {
27
+ [this.spanStyle]: true,
28
+ [this.display]: true,
29
+ };
30
+ }
31
+ };
32
+ PtcSpan.style = ptcSpanCss;
33
+
34
+ exports.ptc_span = PtcSpan;
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["ptc-announcement.cjs",[[1,"ptc-announcement",{"barTitle":[1,"bar-title"],"Description":[1,"description"],"linkText":[513,"link-text"],"visible":[1540],"linkUrl":[513,"link-url"],"tempContainer":[4,"temp-container"]}]]],["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"headingTransform":[1,"heading-transform"],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-form.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}]]],["ptc-input.cjs",[[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}]]],["ptc-list.cjs",[[2,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-select.cjs",[[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-svg-btn.cjs",[[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset_16.cjs",[[1,"ptc-breadcrumb"],[1,"ptc-hero",{"heroType":[1,"hero-type"]}],[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}],[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"linkTitle":[1,"link-title"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-card-bottom",{"cardType":[1,"card-type"]}],[1,"ptc-card-content",{"cardType":[1,"card-type"]}],[1,"ptc-card-plm",{"cardType":[1,"card-type"],"cardLink":[1,"card-link"],"linkTitle":[1,"link-title"],"linkTarget":[1,"link-target"]}],[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraColor":[1,"para-color"],"paraLineH":[1,"para-line-h"],"paraMargin":[1,"para-margin"]}],[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imagePosition":[1,"image-position"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]],[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}],[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}],[6,"ptc-title",{"isPlmHub":[4,"is-plm-hub"],"type":[1],"textAlign":[1,"text-align"],"upperline":[1],"titleMargin":[1,"title-margin"],"styles":[1]}],[1,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"],"flushBefore":[4,"flush-before"]}],[4,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]],[1,"ptc-overlay",{"filterColor":[1,"filter-color"],"borderRadius":[1,"border-radius"],"overlayZIndex":[1,"overlay-z-index"],"styles":[1]}],[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
18
+ return index.bootstrapLazy([["ptc-breadcrumb.cjs",[[1,"ptc-breadcrumb"]]],["ptc-hero.cjs",[[1,"ptc-hero",{"heroType":[1,"hero-type"]}]]],["ptc-announcement.cjs",[[1,"ptc-announcement",{"barTitle":[1,"bar-title"],"Description":[1,"description"],"linkText":[513,"link-text"],"visible":[1540],"linkUrl":[513,"link-url"],"tempContainer":[4,"temp-container"]}]]],["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"headingTransform":[1,"heading-transform"],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-button.cjs",[[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"linkTitle":[1,"link-title"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-form.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}]]],["ptc-input.cjs",[[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}]]],["ptc-list.cjs",[[2,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-select.cjs",[[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["list-item.cjs",[[1,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"],"flushBefore":[4,"flush-before"]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-img.cjs",[[4,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["ptc-svg-btn.cjs",[[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset_11.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}],[1,"ptc-card-bottom",{"cardType":[1,"card-type"]}],[1,"ptc-card-content",{"cardType":[1,"card-type"]}],[1,"ptc-card-plm",{"cardType":[1,"card-type"],"cardLink":[1,"card-link"],"linkTitle":[1,"link-title"],"linkTarget":[1,"link-target"]}],[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraColor":[1,"para-color"],"paraLineH":[1,"para-line-h"],"paraMargin":[1,"para-margin"]}],[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imagePosition":[1,"image-position"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]],[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}],[6,"ptc-title",{"isPlmHub":[4,"is-plm-hub"],"type":[1],"textAlign":[1,"text-align"],"upperline":[1],"titleMargin":[1,"title-margin"],"styles":[1]}],[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateColor":[1,"date-color"],"dateStyles":[1,"date-styles"]}],[1,"ptc-overlay",{"filterColor":[1,"filter-color"],"borderRadius":[1,"border-radius"],"overlayZIndex":[1,"overlay-z-index"],"styles":[1]}],[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
19
19
  });
@@ -19,6 +19,10 @@ svg.large {
19
19
  width: var(--ptc-font-size-large);
20
20
  height: var(--ptc-font-size-large);
21
21
  }
22
+ svg.x-large {
23
+ width: var(--ptc-font-size-x-large);
24
+ height: var(--ptc-font-size-x-large);
25
+ }
22
26
  svg.xx-large {
23
27
  width: var(--ptc-font-size-xx-large);
24
28
  height: var(--ptc-font-size-xx-large);
@@ -87,8 +87,8 @@ export class IconAsset {
87
87
  "type": "string",
88
88
  "mutable": false,
89
89
  "complexType": {
90
- "original": "'x-small' | 'small' | 'large' | 'xx-large'",
91
- "resolved": "\"large\" | \"small\" | \"x-small\" | \"xx-large\"",
90
+ "original": "'x-small' | 'small' | 'large' | 'x-large' | 'xx-large'",
91
+ "resolved": "\"large\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\"",
92
92
  "references": {}
93
93
  },
94
94
  "required": false,
@@ -9,4 +9,20 @@
9
9
  left: 0;
10
10
  padding: 0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-05) var(--ptc-element-spacing-04);
11
11
  z-index: 2;
12
+ }
13
+
14
+ :host(.card-playlist) {
15
+ flex: 72% 2 1;
16
+ align-self: center;
17
+ }
18
+
19
+ @media screen and (min-width: 1200px) {
20
+ :host(.card-video-intro) {
21
+ flex: 20% 2 1;
22
+ justify-content: flex-end;
23
+ }
24
+ :host(.card-video-intro) .ptc-card-bottom-wrapper {
25
+ display: flex;
26
+ justify-content: flex-end;
27
+ }
12
28
  }
@@ -24,8 +24,8 @@ export class PtcCardBottom {
24
24
  "type": "string",
25
25
  "mutable": false,
26
26
  "complexType": {
27
- "original": "\"card-video\" | \"card-tall\" | \"card-2up\" | \"card-wide\"",
28
- "resolved": "\"card-2up\" | \"card-tall\" | \"card-video\" | \"card-wide\"",
27
+ "original": "\"card-video\" | \"card-tall\" | \"card-2up\" | \"card-wide\" | \"card-playlist\"",
28
+ "resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-wide\"",
29
29
  "references": {}
30
30
  },
31
31
  "required": false,
@@ -16,13 +16,15 @@
16
16
  }
17
17
  :host(.card-tall) .ptc-card-content-wrapper,
18
18
  :host(.card-video) .ptc-card-content-wrapper,
19
- :host(.card-wide) .ptc-card-content-wrapper {
19
+ :host(.card-wide) .ptc-card-content-wrapper,
20
+ :host(.card-playlist) .ptc-card-content-wrapper {
20
21
  border-radius: var(--ptc-border-radius-x-large);
21
22
  position: relative;
22
23
  }
23
24
  :host(.card-tall) .ptc-card-content-wrapper::before,
24
25
  :host(.card-video) .ptc-card-content-wrapper::before,
25
- :host(.card-wide) .ptc-card-content-wrapper::before {
26
+ :host(.card-wide) .ptc-card-content-wrapper::before,
27
+ :host(.card-playlist) .ptc-card-content-wrapper::before {
26
28
  content: "";
27
29
  position: absolute;
28
30
  width: 100%;
@@ -37,7 +39,8 @@
37
39
  }
38
40
  :host(.card-tall) .ptc-card-content-wrapper::after,
39
41
  :host(.card-video) .ptc-card-content-wrapper::after,
40
- :host(.card-wide) .ptc-card-content-wrapper::after {
42
+ :host(.card-wide) .ptc-card-content-wrapper::after,
43
+ :host(.card-playlist) .ptc-card-content-wrapper::after {
41
44
  content: url("data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
42
45
  position: absolute;
43
46
  opacity: 0;
@@ -48,6 +51,18 @@
48
51
  transition: opacity var(--ptc-transition-medium) var(--ptc-acceletated-ease);
49
52
  }
50
53
 
54
+ :host(.card-playlist) .ptc-card-content-wrapper {
55
+ width: 88px;
56
+ height: 88px;
57
+ }
58
+ :host(.card-playlist) .ptc-card-content-wrapper::before {
59
+ width: 88px;
60
+ height: 88px;
61
+ }
62
+ :host(.card-playlist) .ptc-card-content-wrapper::after {
63
+ content: url("data:image/svg+xml,%3Csvg width='46' height='48' viewBox='0 0 46 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10337)'%3E%3Cpath d='M34 16L12 28V4L34 16Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10337' x='0' y='0' width='46' height='48' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10337'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10337' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
64
+ }
65
+
51
66
  :host(.mouse-hover) .ptc-card-content-wrapper::before {
52
67
  background: rgba(0, 0, 0, 0.6);
53
68
  }
@@ -58,4 +73,15 @@
58
73
  :host(.card-tall) .ptc-card-content-wrapper::before,
59
74
  :host(.card-wide) .ptc-card-content-wrapper::before {
60
75
  height: 100%;
76
+ }
77
+
78
+ :host(.card-playlist) {
79
+ flex: 28% 1 2;
80
+ margin-right: var(--ptc-element-spacing-03);
81
+ }
82
+
83
+ @media screen and (min-width: 1200px) {
84
+ :host(.card-video-intro) {
85
+ flex: 80% 8 1;
86
+ }
61
87
  }
@@ -32,8 +32,8 @@ export class PtcCardContent {
32
32
  "type": "string",
33
33
  "mutable": false,
34
34
  "complexType": {
35
- "original": "'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump'",
36
- "resolved": "\"card-2up\" | \"card-tall\" | \"card-video\" | \"card-wide\" | \"speed-bump\"",
35
+ "original": "'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist'",
36
+ "resolved": "\"card-2up\" | \"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-wide\" | \"speed-bump\"",
37
37
  "references": {}
38
38
  },
39
39
  "required": false,
@@ -4,16 +4,38 @@
4
4
 
5
5
  :host(.card-tall),
6
6
  :host(.card-wide),
7
- :host(.card-video) {
7
+ :host(.card-video) :host(.card-playlist) {
8
8
  position: relative;
9
9
  }
10
10
  :host(.card-tall) a,
11
11
  :host(.card-wide) a,
12
- :host(.card-video) a {
12
+ :host(.card-video) :host(.card-playlist) a {
13
13
  text-decoration: none;
14
14
  }
15
15
  :host(.card-tall) a:hover,
16
16
  :host(.card-wide) a:hover,
17
- :host(.card-video) a:hover {
17
+ :host(.card-video) :host(.card-playlist) a:hover {
18
18
  text-decoration: none;
19
+ }
20
+
21
+ :host(.card-playlist) div,
22
+ :host(.card-playlist) a {
23
+ display: flex;
24
+ text-decoration: none;
25
+ outline: none;
26
+ }
27
+ :host(.card-playlist) div:hover,
28
+ :host(.card-playlist) a:hover {
29
+ text-decoration: none;
30
+ outline: none;
31
+ }
32
+
33
+ :host(.card-video-intro) div {
34
+ display: block;
35
+ }
36
+
37
+ @media screen and (min-width: 1200px) {
38
+ :host(.card-video-intro) div {
39
+ display: flex;
40
+ }
19
41
  }
@@ -28,8 +28,8 @@ export class PtcCardPlm {
28
28
  "type": "string",
29
29
  "mutable": false,
30
30
  "complexType": {
31
- "original": "'card-video'| 'card-tall' | 'card-wide' | 'speed-bump'",
32
- "resolved": "\"card-tall\" | \"card-video\" | \"card-wide\" | \"speed-bump\"",
31
+ "original": "'card-video'| 'card-tall' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro'",
32
+ "resolved": "\"card-playlist\" | \"card-tall\" | \"card-video\" | \"card-video-intro\" | \"card-wide\" | \"speed-bump\"",
33
33
  "references": {}
34
34
  },
35
35
  "required": false,
@@ -1,3 +1,11 @@
1
1
  :host {
2
2
  display: block;
3
+ }
4
+
5
+ :host(.primary-grey) {
6
+ color: var(--color-primary-gray-new);
7
+ }
8
+
9
+ :host(.white) span {
10
+ color: var(--color-white);
3
11
  }
@@ -23,10 +23,16 @@ export class PtcDate {
23
23
  }
24
24
  render() {
25
25
  // const newDate = new Date(this.year, this.month, this.day);
26
- return (h(Host, null,
26
+ const classMap = this.getCssClassMap();
27
+ return (h(Host, { class: classMap },
27
28
  this.dateStyles && h("style", null, this.dateStyles),
28
29
  h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
29
30
  }
31
+ getCssClassMap() {
32
+ return {
33
+ [this.dateColor]: !!this.dateColor ? true : false
34
+ };
35
+ }
30
36
  getDate() {
31
37
  if (this.dateString) {
32
38
  let newDate = new Date(this.dateString.replace(/-/g, '\/'));
@@ -134,6 +140,23 @@ export class PtcDate {
134
140
  "attribute": "date-string",
135
141
  "reflect": false
136
142
  },
143
+ "dateColor": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "'white' | 'primary-grey'",
148
+ "resolved": "\"primary-grey\" | \"white\"",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": "Date Color"
156
+ },
157
+ "attribute": "date-color",
158
+ "reflect": false
159
+ },
137
160
  "dateStyles": {
138
161
  "type": "string",
139
162
  "mutable": false,