@ptcwebops/ptcw-design 0.2.8 → 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 (158) hide show
  1. package/dist/cjs/icon-asset_11.cjs.entry.js +540 -0
  2. package/dist/cjs/list-item.cjs.entry.js +5 -3
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{ptc-announcement_2.cjs.entry.js → ptc-announcement.cjs.entry.js} +0 -25
  5. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +23 -0
  6. package/dist/cjs/ptc-button.cjs.entry.js +9 -5
  7. package/dist/cjs/ptc-hero.cjs.entry.js +25 -0
  8. package/dist/cjs/ptc-img.cjs.entry.js +6 -1
  9. package/dist/cjs/ptc-list.cjs.entry.js +2 -3
  10. package/dist/cjs/ptc-span.cjs.entry.js +4 -1
  11. package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
  12. package/dist/cjs/ptcw-design.cjs.js +1 -1
  13. package/dist/collection/collection-manifest.json +5 -0
  14. package/dist/collection/components/icon-asset/icon-asset.css +4 -0
  15. package/dist/collection/components/icon-asset/icon-asset.js +2 -2
  16. package/dist/collection/components/icon-asset/media/designer.svg +33 -0
  17. package/dist/collection/components/list-item/list-item.css +39 -1
  18. package/dist/collection/components/list-item/list-item.js +26 -5
  19. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
  20. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
  21. package/dist/collection/components/ptc-button/ptc-button.css +12 -1
  22. package/dist/collection/components/ptc-button/ptc-button.js +29 -7
  23. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +28 -0
  24. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
  25. package/dist/collection/components/ptc-card-content/ptc-card-content.css +87 -0
  26. package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
  27. package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +41 -0
  28. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
  29. package/dist/collection/components/ptc-date/ptc-date.css +8 -0
  30. package/dist/collection/components/ptc-date/ptc-date.js +24 -1
  31. package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
  32. package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
  33. package/dist/collection/components/ptc-img/ptc-img.js +6 -1
  34. package/dist/collection/components/ptc-link/ptc-link.css +25 -3
  35. package/dist/collection/components/ptc-link/ptc-link.js +3 -2
  36. package/dist/collection/components/ptc-list/ptc-list.css +8 -4
  37. package/dist/collection/components/ptc-list/ptc-list.js +5 -8
  38. package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
  39. package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
  40. package/dist/collection/components/ptc-para/ptc-para.css +59 -0
  41. package/dist/collection/components/ptc-para/ptc-para.js +53 -7
  42. package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
  43. package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
  44. package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
  45. package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
  46. package/dist/collection/components/ptc-span/ptc-span.css +26 -1
  47. package/dist/collection/components/ptc-span/ptc-span.js +6 -3
  48. package/dist/collection/components/ptc-title/ptc-title.css +108 -11
  49. package/dist/collection/components/ptc-title/ptc-title.js +62 -4
  50. package/dist/custom-elements/index.d.ts +30 -0
  51. package/dist/custom-elements/index.js +209 -39
  52. package/dist/esm/icon-asset_11.entry.js +526 -0
  53. package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
  54. package/dist/esm/{interfaces-3cb94654.js → interfaces-c1c73092.js} +1 -1
  55. package/dist/esm/list-item.entry.js +6 -4
  56. package/dist/esm/loader.js +2 -2
  57. package/dist/esm/lottie-player.entry.js +1 -1
  58. package/dist/esm/my-component.entry.js +1 -1
  59. package/dist/esm/{ptc-announcement_2.entry.js → ptc-announcement.entry.js} +2 -26
  60. package/dist/esm/ptc-avatar.entry.js +1 -1
  61. package/dist/esm/ptc-breadcrumb.entry.js +19 -0
  62. package/dist/esm/ptc-button.entry.js +10 -6
  63. package/dist/esm/ptc-card.entry.js +1 -1
  64. package/dist/esm/ptc-countdown.entry.js +1 -1
  65. package/dist/esm/ptc-footer.entry.js +1 -1
  66. package/dist/esm/ptc-form.entry.js +1 -1
  67. package/dist/esm/ptc-hero.entry.js +21 -0
  68. package/dist/esm/ptc-img.entry.js +8 -3
  69. package/dist/esm/ptc-input.entry.js +1 -1
  70. package/dist/esm/ptc-list.entry.js +3 -4
  71. package/dist/esm/ptc-lottie.entry.js +1 -1
  72. package/dist/esm/ptc-nav-item.entry.js +1 -1
  73. package/dist/esm/ptc-nav.entry.js +1 -1
  74. package/dist/esm/ptc-select.entry.js +1 -1
  75. package/dist/esm/ptc-span.entry.js +5 -2
  76. package/dist/esm/ptc-svg-btn.entry.js +27 -0
  77. package/dist/esm/ptcw-design.js +2 -2
  78. package/dist/ptcw-design/media/designer.svg +33 -0
  79. package/dist/ptcw-design/p-29fe43a9.entry.js +1 -0
  80. package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
  81. package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
  82. package/dist/ptcw-design/p-473ec631.entry.js +1 -0
  83. package/dist/ptcw-design/{p-240733ce.js → p-50e52c88.js} +1 -1
  84. package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
  85. package/dist/ptcw-design/p-563d409f.entry.js +1 -0
  86. package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
  87. package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
  88. package/dist/ptcw-design/p-609dec21.entry.js +1 -0
  89. package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
  90. package/dist/ptcw-design/p-797e4a7d.entry.js +1 -0
  91. package/dist/ptcw-design/p-9372c930.entry.js +1 -0
  92. package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
  93. package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
  94. package/dist/ptcw-design/p-abd4772d.entry.js +1 -0
  95. package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
  96. package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
  97. package/dist/ptcw-design/p-b3d73b7f.entry.js +1 -0
  98. package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
  99. package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
  100. package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
  101. package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
  102. package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
  103. package/dist/ptcw-design/ptcw-design.css +2 -2
  104. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  105. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  106. package/dist/types/components/list-item/list-item.d.ts +2 -1
  107. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
  108. package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
  109. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
  110. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
  111. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
  112. package/dist/types/components/ptc-date/ptc-date.d.ts +5 -0
  113. package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
  114. package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
  115. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
  116. package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
  117. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
  118. package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
  119. package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
  120. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
  121. package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
  122. package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
  123. package/dist/types/components.d.ts +239 -30
  124. package/package.json +1 -1
  125. package/readme.md +1 -1
  126. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  127. package/dist/cjs/ptc-date.cjs.entry.js +0 -48
  128. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  129. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  130. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  131. package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
  132. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  133. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  134. package/dist/esm/icon-asset.entry.js +0 -60
  135. package/dist/esm/ptc-date.entry.js +0 -44
  136. package/dist/esm/ptc-link.entry.js +0 -49
  137. package/dist/esm/ptc-overlay.entry.js +0 -15
  138. package/dist/esm/ptc-para.entry.js +0 -36
  139. package/dist/esm/ptc-picture.entry.js +0 -155
  140. package/dist/esm/ptc-spacer.entry.js +0 -42
  141. package/dist/esm/ptc-title.entry.js +0 -45
  142. package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
  143. package/dist/ptcw-design/p-08827128.entry.js +0 -1
  144. package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
  145. package/dist/ptcw-design/p-23d07898.entry.js +0 -1
  146. package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
  147. package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
  148. package/dist/ptcw-design/p-389a5670.entry.js +0 -1
  149. package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
  150. package/dist/ptcw-design/p-54794e45.entry.js +0 -1
  151. package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
  152. package/dist/ptcw-design/p-63b55aba.entry.js +0 -1
  153. package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
  154. package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
  155. package/dist/ptcw-design/p-a86452af.entry.js +0 -1
  156. package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
  157. package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
  158. package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
@@ -14,7 +14,6 @@
14
14
  font-weight: var(--ptc-font-weight-black);
15
15
  position: relative;
16
16
  line-height: var(--ptc-line-height-normal);
17
- margin-bottom: var(--ptc-element-spacing-01);
18
17
  outline: none;
19
18
  text-decoration: none;
20
19
  }
@@ -65,14 +64,22 @@
65
64
  font-size: var(--ptc-font-size-large);
66
65
  }
67
66
 
68
- icon-asset {
67
+ .ptc-link.arrow icon-asset {
69
68
  position: absolute;
70
69
  right: -25px;
71
70
  transition: transform var(--ptc-transition-fast) var(--ptc-standard-ease);
72
71
  }
73
- icon-asset svg {
72
+ .ptc-link.arrow icon-asset svg {
74
73
  fill: var(--color-primary-green) !important;
75
74
  }
75
+ .ptc-link.arrow-plm icon-asset {
76
+ position: absolute;
77
+ right: -6.75px;
78
+ transform: translate(100%, 8%);
79
+ }
80
+ .ptc-link.arrow-plm svg {
81
+ fill: #3DAB49 !important;
82
+ }
76
83
 
77
84
  .ptc-link:hover.arrow icon-asset {
78
85
  transform: translateX(var(--ptc-element-spacing-04));
@@ -194,4 +201,19 @@ icon-asset svg {
194
201
  font-weight: var(--ptc-font-weight-normal);
195
202
  line-height: 2;
196
203
  display: inline-block;
204
+ }
205
+
206
+ .arrow-plm {
207
+ color: var(--color-white);
208
+ font-weight: var(--ptc-font-weight-extrabold);
209
+ font-size: var(--ptc-font-size-medium);
210
+ line-height: var(--ptc-line-height-19);
211
+ text-decoration: underline;
212
+ text-decoration-thickness: 1px;
213
+ text-decoration-color: transparent;
214
+ text-underline-offset: 2px;
215
+ transition: text-decoration-color var(--ptc-transition-medium) var(--ptc-acceletated-ease);
216
+ }
217
+ .arrow-plm:hover {
218
+ text-decoration-color: #3DAB49;
197
219
  }
@@ -31,6 +31,7 @@ export class PtcLink {
31
31
  return (h(Host, null,
32
32
  h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle },
33
33
  this.theme == 'arrow' ? h("icon-asset", { type: "solid", size: "small", name: "arrow-right" }) : '',
34
+ this.theme == 'arrow-plm' ? h("icon-asset", { type: "ptc", size: "x-small", name: "button-arrow-right" }) : '',
34
35
  h("slot", null))));
35
36
  }
36
37
  getCssClassMap() {
@@ -143,8 +144,8 @@ export class PtcLink {
143
144
  "type": "string",
144
145
  "mutable": false,
145
146
  "complexType": {
146
- "original": "'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link'",
147
- "resolved": "\"arrow\" | \"copyright-link\" | \"footer-nav-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"secondary-nav-link\" | \"simple\"",
147
+ "original": "'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link' | 'arrow-plm'",
148
+ "resolved": "\"arrow\" | \"arrow-plm\" | \"copyright-link\" | \"footer-nav-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"secondary-nav-link\" | \"simple\"",
148
149
  "references": {}
149
150
  },
150
151
  "required": false,
@@ -1,13 +1,17 @@
1
- ptc-list .link-primary li {
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host(.list-primary) li {
2
6
  font-size: var(--ptc-font-size-medium);
3
7
  line-height: var(--ptc-line-height-normal);
4
8
  letter-spacing: var(--ptc-letter-spacing-normal);
5
9
  list-style: none;
6
10
  }
7
- ptc-list .link-primary li:not(:last-child) {
11
+ :host(.list-primary) li:not(:last-child) {
8
12
  margin-bottom: 0.625rem;
9
13
  }
10
- ptc-list .link-primary li a {
14
+ :host(.list-primary) li a {
11
15
  color: var(--color-white);
12
16
  outline: none;
13
17
  text-decoration: none;
@@ -18,7 +22,7 @@ ptc-list .link-primary li a {
18
22
  text-transform: uppercase;
19
23
  letter-spacing: var(--ptc-letter-spacing-normal);
20
24
  }
21
- ptc-list .link-primary li a:hover {
25
+ :host(.list-primary) li a:hover {
22
26
  color: var(--color-white);
23
27
  border-bottom: 1.5px solid var(--color-primary-green);
24
28
  }
@@ -1,8 +1,5 @@
1
1
  import { Component, Host, h, Prop } from '@stencil/core';
2
2
  export class PtcList {
3
- constructor() {
4
- this.listType = 'para-list';
5
- }
6
3
  render() {
7
4
  const classMap = this.getCssClassMap();
8
5
  const listItems = this.listItems;
@@ -18,10 +15,11 @@ export class PtcList {
18
15
  }
19
16
  getCssClassMap() {
20
17
  return {
21
- [this.listType]: true,
18
+ [this.listType]: this.listItems ? true : false,
22
19
  };
23
20
  }
24
21
  static get is() { return "ptc-list"; }
22
+ static get encapsulation() { return "scoped"; }
25
23
  static get originalStyleUrls() { return {
26
24
  "$": ["ptc-list.scss"]
27
25
  }; }
@@ -33,8 +31,8 @@ export class PtcList {
33
31
  "type": "string",
34
32
  "mutable": false,
35
33
  "complexType": {
36
- "original": "'link-primary' | 'link-sub' | 'icon' | 'para-list'",
37
- "resolved": "\"icon\" | \"link-primary\" | \"link-sub\" | \"para-list\"",
34
+ "original": "'list-primary'",
35
+ "resolved": "\"list-primary\"",
38
36
  "references": {}
39
37
  },
40
38
  "required": false,
@@ -44,8 +42,7 @@ export class PtcList {
44
42
  "text": ""
45
43
  },
46
44
  "attribute": "list-type",
47
- "reflect": false,
48
- "defaultValue": "'para-list'"
45
+ "reflect": false
49
46
  },
50
47
  "listItems": {
51
48
  "type": "unknown",
@@ -1,3 +1,84 @@
1
1
  :host {
2
2
  display: block;
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ }
9
+
10
+ :host(.blue) {
11
+ background: linear-gradient(180deg, rgba(25, 123, 192, 0.2) 0%, #197BC0 100%);
12
+ }
13
+
14
+ :host(.red) {
15
+ background: linear-gradient(180deg, rgba(209, 44, 58, 0.2) 0%, #D12C3A 100%);
16
+ }
17
+
18
+ :host(.orange) {
19
+ background: linear-gradient(180deg, rgba(195, 119, 41, 0.2) 0%, #C37729 100%);
20
+ }
21
+
22
+ :host(.green) {
23
+ background: linear-gradient(180deg, rgba(0, 137, 11, 0.2) 0%, #00890B 100%);
24
+ }
25
+
26
+ :host(.black-1-sm) {
27
+ background: linear-gradient(270deg, rgba(32, 38, 42, 0) 33.33%, #20262A 100%);
28
+ }
29
+
30
+ :host(.black-2-sm) {
31
+ background: linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, #20262A 100%);
32
+ }
33
+
34
+ :host(.black-1-xs) {
35
+ background: linear-gradient(270deg, rgba(32, 38, 42, 0.32) 33.33%, #20262A 100%);
36
+ }
37
+
38
+ :host(.black-2-xs) {
39
+ background: linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, #20262A 100%);
40
+ }
41
+
42
+ :host(.black-3) {
43
+ background: linear-gradient(180deg, #20262A 0%, rgba(32, 38, 42, 0.55) 100%);
44
+ }
45
+
46
+ :host(.slate-grey) {
47
+ background: linear-gradient(180deg, rgba(97, 116, 128, 0.2) 0%, #617480 100%);
48
+ }
49
+
50
+ :host(.radius-sm) {
51
+ border-radius: var(--ptc-border-radius-small);
52
+ }
53
+
54
+ :host(.radius-md) {
55
+ border-radius: var(--ptc-border-radius-medium);
56
+ }
57
+
58
+ :host(.radius-lg) {
59
+ border-radius: var(--ptc-border-radius-large);
60
+ }
61
+
62
+ :host(.radius-x-lg) {
63
+ border-radius: var(--ptc-border-radius-x-large);
64
+ }
65
+
66
+ :host(.z-index-auto) {
67
+ z-index: auto;
68
+ }
69
+
70
+ :host(.z-index-n-1) {
71
+ z-index: -1;
72
+ }
73
+
74
+ :host(.z-index-n-2) {
75
+ z-index: -2;
76
+ }
77
+
78
+ :host(.z-index-p-1) {
79
+ z-index: 1;
80
+ }
81
+
82
+ :host(.z-index-p-2) {
83
+ z-index: 2;
3
84
  }
@@ -1,14 +1,99 @@
1
- import { Component, Host, h } from '@stencil/core';
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
2
  export class PtcOverlay {
3
+ constructor() {
4
+ /**
5
+ * Overlay z-index
6
+ */
7
+ this.overlayZIndex = 'z-index-auto';
8
+ }
3
9
  render() {
4
- return (h(Host, null,
5
- h("slot", null)));
10
+ const classMap = this.getCssClassMap();
11
+ return h(Host, { class: classMap });
12
+ }
13
+ getCssClassMap() {
14
+ return {
15
+ [this.filterColor]: !!this.filterColor ? true : false,
16
+ [this.borderRadius]: !!this.borderRadius ? true : false,
17
+ [this.overlayZIndex]: true
18
+ };
6
19
  }
7
20
  static get is() { return "ptc-overlay"; }
21
+ static get encapsulation() { return "shadow"; }
8
22
  static get originalStyleUrls() { return {
9
23
  "$": ["ptc-overlay.scss"]
10
24
  }; }
11
25
  static get styleUrls() { return {
12
26
  "$": ["ptc-overlay.css"]
13
27
  }; }
28
+ static get properties() { return {
29
+ "filterColor": {
30
+ "type": "string",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "'blue' | 'red' | 'orange' | 'green' | 'black-1-xs' | 'black-2-xs' | 'black-1-sm' | 'black-2-sm' | 'black-3' | 'slate-grey'",
34
+ "resolved": "\"black-1-sm\" | \"black-1-xs\" | \"black-2-sm\" | \"black-2-xs\" | \"black-3\" | \"blue\" | \"green\" | \"orange\" | \"red\" | \"slate-grey\"",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": "Filter Color"
42
+ },
43
+ "attribute": "filter-color",
44
+ "reflect": false
45
+ },
46
+ "borderRadius": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "'radius-sm' | 'radius-md' | 'radius-lg' | 'radius-x-lg'",
51
+ "resolved": "\"radius-lg\" | \"radius-md\" | \"radius-sm\" | \"radius-x-lg\"",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Overlay border shape"
59
+ },
60
+ "attribute": "border-radius",
61
+ "reflect": false
62
+ },
63
+ "overlayZIndex": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2'",
68
+ "resolved": "\"z-index-auto\" | \"z-index-n-1\" | \"z-index-n-2\" | \"z-index-p-1\" | \"z-index-p-2\"",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Overlay z-index"
76
+ },
77
+ "attribute": "overlay-z-index",
78
+ "reflect": false,
79
+ "defaultValue": "'z-index-auto'"
80
+ },
81
+ "styles": {
82
+ "type": "string",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "string",
86
+ "resolved": "string",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": true,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Injected Styles"
94
+ },
95
+ "attribute": "styles",
96
+ "reflect": false
97
+ }
98
+ }; }
14
99
  }
@@ -1,8 +1,24 @@
1
+ :host {
2
+ z-index: 1;
3
+ }
4
+
1
5
  p.default {
6
+ -moz-osx-font-smoothing: grayscale;
7
+ /*(For Firefox)*/
8
+ -webkit-font-smoothing: antialiased;
9
+ /*(For Chrome and Safari)*/
10
+ }
11
+ p.main {
2
12
  text-shadow: 0 3px 6px var(--color-white);
3
13
  line-height: var(--ptc-line-height-dense);
4
14
  color: var(--color-primary-grey);
5
15
  }
16
+ p.primary-grey {
17
+ color: var(--color-primary-grey);
18
+ }
19
+ p.white {
20
+ color: var(--color-white);
21
+ }
6
22
  p.xx-small {
7
23
  font-size: var(--ptc-font-size-xx-small);
8
24
  }
@@ -30,6 +46,9 @@ p.xxx-large {
30
46
  p.xxxx-large {
31
47
  font-size: var(--ptc-font-size-xxxx-large);
32
48
  }
49
+ p.font-size-15 {
50
+ font-size: var(--ptc-font-size-15);
51
+ }
33
52
  p.w-3 {
34
53
  font-weight: var(--ptc-font-weight-thin);
35
54
  }
@@ -79,6 +98,46 @@ p.margin-bottom-5 {
79
98
  p.margin-bottom-6 {
80
99
  margin-bottom: var(--ptc-element-spacing-06);
81
100
  }
101
+ p.margin-3 {
102
+ margin-top: var(--ptc-element-spacing-03);
103
+ margin-bottom: var(--ptc-element-spacing-03);
104
+ }
105
+ p.margin-4 {
106
+ margin-top: var(--ptc-element-spacing-04);
107
+ margin-bottom: var(--ptc-element-spacing-04);
108
+ }
109
+ p.margin-5 {
110
+ margin-top: var(--ptc-element-spacing-05);
111
+ margin-bottom: var(--ptc-element-spacing-05);
112
+ }
113
+ p.margin-6 {
114
+ margin-top: var(--ptc-element-spacing-06);
115
+ margin-bottom: var(--ptc-element-spacing-06);
116
+ }
117
+ p.line-height-17 {
118
+ line-height: var(--ptc-line-height-17);
119
+ }
120
+ p.line-height-18 {
121
+ line-height: var(--ptc-line-height-18);
122
+ }
123
+ p.line-height-19 {
124
+ line-height: var(--ptc-line-height-19);
125
+ }
126
+ p.line-height-denser {
127
+ line-height: var(--ptc-line-height-denser);
128
+ }
129
+ p.line-height-dense {
130
+ line-height: var(--ptc-line-height-dense);
131
+ }
132
+ p.line-height-normal {
133
+ line-height: var(--ptc-line-height-normal);
134
+ }
135
+ p.line-height-loose {
136
+ line-height: var(--ptc-line-height-loose);
137
+ }
138
+ p.line-height-looser {
139
+ line-height: var(--ptc-line-height-looser);
140
+ }
82
141
  p.announcement {
83
142
  text-transform: uppercase;
84
143
  font-size: var(--ptc-font-size-small);
@@ -13,6 +13,14 @@ export class PtcPara {
13
13
  * Paragraph Style
14
14
  **/
15
15
  this.paraStyle = 'default';
16
+ /**
17
+ * Paragraph Color
18
+ */
19
+ this.paraColor = 'primary-grey';
20
+ /**
21
+ * line height
22
+ */
23
+ this.paraLineH = 'line-height-normal';
16
24
  }
17
25
  render() {
18
26
  const classMap = this.getCssClassMap();
@@ -24,7 +32,9 @@ export class PtcPara {
24
32
  [this.fontSize]: true,
25
33
  [this.fontWeight]: true,
26
34
  [this.paraStyle]: true,
27
- [this.paraMargin]: true,
35
+ [this.paraMargin]: !!this.paraMargin ? true : false,
36
+ [this.paraColor]: true,
37
+ [this.paraLineH]: true
28
38
  };
29
39
  }
30
40
  static get is() { return "ptc-para"; }
@@ -40,8 +50,8 @@ export class PtcPara {
40
50
  "type": "string",
41
51
  "mutable": false,
42
52
  "complexType": {
43
- "original": "'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large'",
44
- "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\"",
53
+ "original": "'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large' | 'font-size-15'",
54
+ "resolved": "\"font-size-15\" | \"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\"",
45
55
  "references": {}
46
56
  },
47
57
  "required": false,
@@ -76,8 +86,8 @@ export class PtcPara {
76
86
  "type": "string",
77
87
  "mutable": false,
78
88
  "complexType": {
79
- "original": "'default' | 'intro' | 'small' | 'announcement'",
80
- "resolved": "\"announcement\" | \"default\" | \"intro\" | \"small\"",
89
+ "original": "'default' | 'intro' | 'small' | 'announcement' | 'flush-style' | 'main'",
90
+ "resolved": "\"announcement\" | \"default\" | \"flush-style\" | \"intro\" | \"main\" | \"small\"",
81
91
  "references": {}
82
92
  },
83
93
  "required": false,
@@ -90,12 +100,48 @@ export class PtcPara {
90
100
  "reflect": false,
91
101
  "defaultValue": "'default'"
92
102
  },
103
+ "paraColor": {
104
+ "type": "string",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "'primary-grey' | 'white'",
108
+ "resolved": "\"primary-grey\" | \"white\"",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": false,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": "Paragraph Color"
116
+ },
117
+ "attribute": "para-color",
118
+ "reflect": false,
119
+ "defaultValue": "'primary-grey'"
120
+ },
121
+ "paraLineH": {
122
+ "type": "string",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "'line-height-17' | 'line-height-18' | 'line-height-19' | 'line-height-denser' | 'line-height-dense' | 'line-height-normal' | 'line-height-loose' | 'line-height-looser'",
126
+ "resolved": "\"line-height-17\" | \"line-height-18\" | \"line-height-19\" | \"line-height-dense\" | \"line-height-denser\" | \"line-height-loose\" | \"line-height-looser\" | \"line-height-normal\"",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": "line height"
134
+ },
135
+ "attribute": "para-line-h",
136
+ "reflect": false,
137
+ "defaultValue": "'line-height-normal'"
138
+ },
93
139
  "paraMargin": {
94
140
  "type": "string",
95
141
  "mutable": false,
96
142
  "complexType": {
97
- "original": "'margin-flush' | 'margin-top-3' | 'margin-top-4' | 'margin-top-5' | 'margin-top-6' | 'margin-bottom-3' | 'margin-bottom-4' | 'margin-bottom-5' | 'margin-bottom-6'",
98
- "resolved": "\"margin-bottom-3\" | \"margin-bottom-4\" | \"margin-bottom-5\" | \"margin-bottom-6\" | \"margin-flush\" | \"margin-top-3\" | \"margin-top-4\" | \"margin-top-5\" | \"margin-top-6\"",
143
+ "original": "'margin-flush' | 'margin-top-3' | 'margin-top-4' | 'margin-top-5' | 'margin-top-6' | 'margin-bottom-3' | 'margin-bottom-4' | 'margin-bottom-5' | 'margin-bottom-6'| 'margin-3' | 'margin-4' | 'margin-5' | 'margin-6'",
144
+ "resolved": "\"margin-3\" | \"margin-4\" | \"margin-5\" | \"margin-6\" | \"margin-bottom-3\" | \"margin-bottom-4\" | \"margin-bottom-5\" | \"margin-bottom-6\" | \"margin-flush\" | \"margin-top-3\" | \"margin-top-4\" | \"margin-top-5\" | \"margin-top-6\"",
99
145
  "references": {}
100
146
  },
101
147
  "required": false,
@@ -3,9 +3,20 @@
3
3
  overflow: hidden;
4
4
  }
5
5
 
6
+ :host(.relative) {
7
+ position: relative;
8
+ }
9
+
10
+ :host(.static) {
11
+ position: static;
12
+ }
13
+
14
+ :host(.absoltue) {
15
+ position: static;
16
+ }
17
+
6
18
  img {
7
19
  max-width: 100%;
8
- height: auto;
9
20
  }
10
21
 
11
22
  .cover {
@@ -34,4 +45,20 @@ img {
34
45
 
35
46
  .inherit {
36
47
  object-fit: inherit;
48
+ }
49
+
50
+ .radius-sm {
51
+ border-radius: var(--ptc-border-radius-small);
52
+ }
53
+
54
+ .radius-md {
55
+ border-radius: var(--ptc-border-radius-medium);
56
+ }
57
+
58
+ .radius-lg {
59
+ border-radius: var(--ptc-border-radius-large);
60
+ }
61
+
62
+ .radius-x-lg {
63
+ border-radius: var(--ptc-border-radius-x-large);
37
64
  }
@@ -27,9 +27,9 @@ export class PtcPicture {
27
27
  */
28
28
  this.sizeLg = '1920x1080';
29
29
  /**
30
- * Image border shape
30
+ * Image Position
31
31
  */
32
- this.borderRadius = '';
32
+ this.imagePosition = 'static';
33
33
  /**
34
34
  * Object Fit
35
35
  * Default: cover
@@ -99,9 +99,10 @@ export class PtcPicture {
99
99
  }
100
100
  render() {
101
101
  const classMap = this.getCssClassMap();
102
- return (h(Host, null,
102
+ return (h(Host, { class: this.imagePosition },
103
103
  this.styles && h("style", null, this.styles),
104
- h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt }))));
104
+ h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt })),
105
+ h("slot", null)));
105
106
  }
106
107
  getCurrentBreakPoints() {
107
108
  // Define local variables
@@ -142,7 +143,7 @@ export class PtcPicture {
142
143
  }
143
144
  getCssClassMap() {
144
145
  return {
145
- [this.borderRadius]: true,
146
+ [this.borderRadius]: this.borderRadius ? true : false,
146
147
  [this.objectFit]: true,
147
148
  };
148
149
  }
@@ -262,12 +263,30 @@ export class PtcPicture {
262
263
  "reflect": false,
263
264
  "defaultValue": "'1920x1080'"
264
265
  },
266
+ "imagePosition": {
267
+ "type": "string",
268
+ "mutable": false,
269
+ "complexType": {
270
+ "original": "'relative' | 'absolute' | 'static'",
271
+ "resolved": "\"absolute\" | \"relative\" | \"static\"",
272
+ "references": {}
273
+ },
274
+ "required": false,
275
+ "optional": false,
276
+ "docs": {
277
+ "tags": [],
278
+ "text": "Image Position"
279
+ },
280
+ "attribute": "image-position",
281
+ "reflect": false,
282
+ "defaultValue": "'static'"
283
+ },
265
284
  "borderRadius": {
266
285
  "type": "string",
267
286
  "mutable": false,
268
287
  "complexType": {
269
- "original": "'radius-sm' | 'radius-md' | 'radius-lg' | ''",
270
- "resolved": "\"\" | \"radius-lg\" | \"radius-md\" | \"radius-sm\"",
288
+ "original": "'radius-sm' | 'radius-md' | 'radius-lg' | 'radius-x-lg'",
289
+ "resolved": "\"radius-lg\" | \"radius-md\" | \"radius-sm\" | \"radius-x-lg\"",
271
290
  "references": {}
272
291
  },
273
292
  "required": false,
@@ -277,8 +296,7 @@ export class PtcPicture {
277
296
  "text": "Image border shape"
278
297
  },
279
298
  "attribute": "border-radius",
280
- "reflect": false,
281
- "defaultValue": "''"
299
+ "reflect": false
282
300
  },
283
301
  "height": {
284
302
  "type": "string",
@@ -236,6 +236,17 @@
236
236
  }
237
237
  }
238
238
 
239
+ :host(.ptc-spacer-vertical.space-144){
240
+ width: 100%;
241
+ height: 144px;
242
+ min-height: 144px;
243
+ }
244
+ :host(.ptc-spacer-vertical.space-120){
245
+ width: 100%;
246
+ height: 120px;
247
+ min-height: 120px;
248
+ }
249
+
239
250
  :host(.ptc-spacer-xx-small) {
240
251
  display: none
241
252
  }
@@ -63,8 +63,8 @@ export class PtcSpacer {
63
63
  "type": "string",
64
64
  "mutable": false,
65
65
  "complexType": {
66
- "original": "'large' | 'medium' | 'small' | 'x-large' | 'x-small' | 'xx-large' | 'xx-small' | 'xxx-large' | 'xxxx-large'",
67
- "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\"",
66
+ "original": "'large' | 'medium' | 'small' | 'x-large' | 'x-small' | 'xx-large' | 'xx-small' | 'xxx-large' | 'xxxx-large' | 'space-144' | 'space-120'",
67
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"space-120\" | \"space-144\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\"",
68
68
  "references": {}
69
69
  },
70
70
  "required": false,