@ptcwebops/ptcw-design 0.2.8 → 0.2.9

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 (142) hide show
  1. package/dist/cjs/icon-asset_16.cjs.entry.js +812 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{ptc-announcement_2.cjs.entry.js → ptc-announcement.cjs.entry.js} +0 -25
  4. package/dist/cjs/ptc-list.cjs.entry.js +2 -3
  5. package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
  6. package/dist/cjs/ptcw-design.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +5 -0
  8. package/dist/collection/components/icon-asset/media/designer.svg +33 -0
  9. package/dist/collection/components/list-item/list-item.css +39 -1
  10. package/dist/collection/components/list-item/list-item.js +26 -5
  11. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
  12. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
  13. package/dist/collection/components/ptc-button/ptc-button.css +12 -1
  14. package/dist/collection/components/ptc-button/ptc-button.js +29 -7
  15. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +12 -0
  16. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
  17. package/dist/collection/components/ptc-card-content/ptc-card-content.css +61 -0
  18. package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
  19. package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +19 -0
  20. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
  21. package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
  22. package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
  23. package/dist/collection/components/ptc-img/ptc-img.js +6 -1
  24. package/dist/collection/components/ptc-link/ptc-link.css +25 -3
  25. package/dist/collection/components/ptc-link/ptc-link.js +3 -2
  26. package/dist/collection/components/ptc-list/ptc-list.css +8 -4
  27. package/dist/collection/components/ptc-list/ptc-list.js +5 -8
  28. package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
  29. package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
  30. package/dist/collection/components/ptc-para/ptc-para.css +59 -0
  31. package/dist/collection/components/ptc-para/ptc-para.js +53 -7
  32. package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
  33. package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
  34. package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
  35. package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
  36. package/dist/collection/components/ptc-span/ptc-span.css +26 -1
  37. package/dist/collection/components/ptc-span/ptc-span.js +6 -3
  38. package/dist/collection/components/ptc-title/ptc-title.css +108 -11
  39. package/dist/collection/components/ptc-title/ptc-title.js +62 -4
  40. package/dist/custom-elements/index.d.ts +30 -0
  41. package/dist/custom-elements/index.js +199 -35
  42. package/dist/esm/icon-asset_16.entry.js +793 -0
  43. package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
  44. package/dist/esm/loader.js +2 -2
  45. package/dist/esm/lottie-player.entry.js +1 -1
  46. package/dist/esm/my-component.entry.js +1 -1
  47. package/dist/esm/{ptc-announcement_2.entry.js → ptc-announcement.entry.js} +2 -26
  48. package/dist/esm/ptc-avatar.entry.js +1 -1
  49. package/dist/esm/ptc-card.entry.js +1 -1
  50. package/dist/esm/ptc-countdown.entry.js +1 -1
  51. package/dist/esm/ptc-date.entry.js +1 -1
  52. package/dist/esm/ptc-footer.entry.js +1 -1
  53. package/dist/esm/ptc-form.entry.js +1 -1
  54. package/dist/esm/ptc-input.entry.js +1 -1
  55. package/dist/esm/ptc-list.entry.js +3 -4
  56. package/dist/esm/ptc-lottie.entry.js +1 -1
  57. package/dist/esm/ptc-nav-item.entry.js +1 -1
  58. package/dist/esm/ptc-nav.entry.js +1 -1
  59. package/dist/esm/ptc-select.entry.js +1 -1
  60. package/dist/esm/ptc-svg-btn.entry.js +27 -0
  61. package/dist/esm/ptcw-design.js +2 -2
  62. package/dist/ptcw-design/media/designer.svg +33 -0
  63. package/dist/ptcw-design/{p-63b55aba.entry.js → p-281824f5.entry.js} +1 -1
  64. package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
  65. package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
  66. package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
  67. package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
  69. package/dist/ptcw-design/p-609dec21.entry.js +1 -0
  70. package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
  71. package/dist/ptcw-design/p-8bbb4277.entry.js +1 -0
  72. package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
  73. package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
  74. package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
  75. package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
  76. package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
  77. package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
  78. package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
  79. package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
  80. package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
  81. package/dist/ptcw-design/ptcw-design.css +2 -2
  82. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  83. package/dist/types/components/list-item/list-item.d.ts +2 -1
  84. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
  85. package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
  86. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
  87. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
  88. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
  89. package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
  90. package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
  91. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
  92. package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
  93. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
  94. package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
  95. package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
  96. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
  97. package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
  98. package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
  99. package/dist/types/components.d.ts +229 -28
  100. package/package.json +1 -1
  101. package/readme.md +1 -1
  102. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  103. package/dist/cjs/interfaces-0ecd8027.js +0 -15
  104. package/dist/cjs/list-item.cjs.entry.js +0 -27
  105. package/dist/cjs/ptc-button.cjs.entry.js +0 -72
  106. package/dist/cjs/ptc-img.cjs.entry.js +0 -155
  107. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  108. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  109. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  110. package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
  111. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  112. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  113. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  114. package/dist/esm/icon-asset.entry.js +0 -60
  115. package/dist/esm/interfaces-3cb94654.js +0 -12
  116. package/dist/esm/list-item.entry.js +0 -23
  117. package/dist/esm/ptc-button.entry.js +0 -68
  118. package/dist/esm/ptc-img.entry.js +0 -151
  119. package/dist/esm/ptc-link.entry.js +0 -49
  120. package/dist/esm/ptc-overlay.entry.js +0 -15
  121. package/dist/esm/ptc-para.entry.js +0 -36
  122. package/dist/esm/ptc-picture.entry.js +0 -155
  123. package/dist/esm/ptc-spacer.entry.js +0 -42
  124. package/dist/esm/ptc-span.entry.js +0 -27
  125. package/dist/esm/ptc-title.entry.js +0 -45
  126. package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
  127. package/dist/ptcw-design/p-08827128.entry.js +0 -1
  128. package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
  129. package/dist/ptcw-design/p-23d07898.entry.js +0 -1
  130. package/dist/ptcw-design/p-240733ce.js +0 -1
  131. package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
  132. package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
  133. package/dist/ptcw-design/p-389a5670.entry.js +0 -1
  134. package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
  135. package/dist/ptcw-design/p-54794e45.entry.js +0 -1
  136. package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
  137. package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
  138. package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
  139. package/dist/ptcw-design/p-a86452af.entry.js +0 -1
  140. package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
  141. package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
  142. package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
@@ -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,
@@ -1,3 +1,13 @@
1
+ :host {
2
+ z-index: 1;
3
+ }
4
+ :host span {
5
+ -moz-osx-font-smoothing: grayscale;
6
+ /*(For Firefox)*/
7
+ -webkit-font-smoothing: antialiased;
8
+ /*(For Chrome and Safari)*/
9
+ }
10
+
1
11
  :host(.link-style) span {
2
12
  color: var(--color-primary-uigrey);
3
13
  font-weight: var(--ptc-font-weight-black);
@@ -20,7 +30,14 @@
20
30
  font-size: var(--ptc-font-size-medium);
21
31
  line-height: var(--ptc-line-height-dense);
22
32
  font-weight: var(--ptc-font-weight-regular);
23
- color: #40434a;
33
+ color: var(--color-primary-grey);
34
+ }
35
+
36
+ :host(.plm-hub-style) span {
37
+ font-size: var(--ptc-font-size-medium);
38
+ line-height: var(--ptc-line-height-19);
39
+ font-weight: var(--ptc-font-weight-medium);
40
+ color: var(--color-white);
24
41
  }
25
42
 
26
43
  :host(.inline) span {
@@ -33,4 +50,12 @@
33
50
 
34
51
  :host(.inline-block) span {
35
52
  display: inline-block;
53
+ }
54
+
55
+ :host(.white) span {
56
+ color: var(--color-white);
57
+ }
58
+
59
+ :host(.primary-grey) span {
60
+ color: var(--color-primary-grey);
36
61
  }
@@ -5,6 +5,9 @@ export class PtcSpan {
5
5
  * Span Style
6
6
  */
7
7
  this.spanStyle = 'tag-style';
8
+ /**
9
+ * Display
10
+ */
8
11
  this.display = 'inline';
9
12
  }
10
13
  render() {
@@ -33,8 +36,8 @@ export class PtcSpan {
33
36
  "type": "string",
34
37
  "mutable": false,
35
38
  "complexType": {
36
- "original": "'link-style' | 'tag-style' | 'nav-style'",
37
- "resolved": "\"link-style\" | \"nav-style\" | \"tag-style\"",
39
+ "original": "'link-style' | 'tag-style' | 'nav-style' | 'plm-hub-style'",
40
+ "resolved": "\"link-style\" | \"nav-style\" | \"plm-hub-style\" | \"tag-style\"",
38
41
  "references": {}
39
42
  },
40
43
  "required": false,
@@ -59,7 +62,7 @@ export class PtcSpan {
59
62
  "optional": false,
60
63
  "docs": {
61
64
  "tags": [],
62
- "text": ""
65
+ "text": "Display"
63
66
  },
64
67
  "attribute": "display",
65
68
  "reflect": false,
@@ -1,23 +1,34 @@
1
1
  div.center {
2
2
  text-align: center;
3
3
  }
4
- div.center.dotted h1::before, div.center.dotted h2::before, div.center.dotted h3::before {
4
+ div.center.dotted h1::before,
5
+ div.center.dotted h2::before,
6
+ div.center.dotted h3::before {
5
7
  left: 50%;
6
8
  transform: translateX(-50%);
7
9
  }
8
10
  div.left {
9
11
  text-align: left;
10
12
  }
11
- div.left.dotted h1::before, div.left.dotted h2::before, div.left.dotted h3::before {
13
+ div.left.dotted h1::before,
14
+ div.left.dotted h2::before,
15
+ div.left.dotted h3::before {
12
16
  left: 0%;
13
17
  }
14
18
  div.right {
15
19
  text-align: right;
16
20
  }
17
- div.right.dotted h1::before, div.right.dotted h2::before, div.right.dotted h3::before {
21
+ div.right.dotted h1::before,
22
+ div.right.dotted h2::before,
23
+ div.right.dotted h3::before {
18
24
  right: 0%;
19
25
  }
20
- div.dotted h1::before, div.dotted h2::before, div.dotted h3::before {
26
+ div.inherit {
27
+ text-align: inherit;
28
+ }
29
+ div.dotted h1::before,
30
+ div.dotted h2::before,
31
+ div.dotted h3::before {
21
32
  content: "";
22
33
  position: absolute;
23
34
  top: -6px;
@@ -25,7 +36,9 @@ div.dotted h1::before, div.dotted h2::before, div.dotted h3::before {
25
36
  display: block;
26
37
  border-top: 3px dashed #5bb73b;
27
38
  }
28
- div.solid h1::before, div.solid h2::before, div.solid h3::before {
39
+ div.solid h1::before,
40
+ div.solid h2::before,
41
+ div.solid h3::before {
29
42
  content: "";
30
43
  position: absolute;
31
44
  width: 100%;
@@ -34,7 +47,9 @@ div.solid h1::before, div.solid h2::before, div.solid h3::before {
34
47
  opacity: 0.9;
35
48
  left: 0px;
36
49
  }
37
- div.solid h1::after, div.solid h2::after, div.solid h3::after {
50
+ div.solid h1::after,
51
+ div.solid h2::after,
52
+ div.solid h3::after {
38
53
  content: "";
39
54
  position: absolute;
40
55
  width: 20%;
@@ -43,22 +58,104 @@ div.solid h1::after, div.solid h2::after, div.solid h3::after {
43
58
  top: -2px;
44
59
  left: 0px;
45
60
  }
46
- div h1,
47
- div h2,
48
- div h3 {
61
+ div.is-standard h1,
62
+ div.is-standard h2,
63
+ div.is-standard h3 {
49
64
  display: inline-block;
50
65
  position: relative;
51
66
  }
52
- div h1 {
67
+ div.is-standard h1 {
53
68
  font-size: 46px;
54
69
  line-height: 52px;
55
70
  font-weight: 800;
56
71
  letter-spacing: 0px;
57
72
  color: var(--color-primary-grey);
58
73
  }
59
- div h2 {
74
+ div.is-standard h2 {
60
75
  font-size: 28px;
61
76
  line-height: 32px;
62
77
  font-weight: 800;
63
78
  color: var(--color-primary-grey);
79
+ }
80
+ div.is-plm-hub h1,
81
+ div.is-plm-hub h2,
82
+ div.is-plm-hub h3 {
83
+ display: inline-block;
84
+ position: relative;
85
+ margin-block-start: 0em;
86
+ margin-block-end: 0em;
87
+ margin-inline-start: 0px;
88
+ margin-inline-end: 0px;
89
+ }
90
+ div.is-plm-hub h1 {
91
+ font-weight: var(--ptc-font-weight-bold);
92
+ font-size: 50px;
93
+ line-height: 59px;
94
+ color: var(--color-white);
95
+ }
96
+ div.is-plm-hub h2 {
97
+ font-weight: var(--ptc-font-weight-bold);
98
+ font-size: var(--ptc-font-size-x-large);
99
+ line-height: 28px;
100
+ color: var(--color-white);
101
+ }
102
+ div.is-plm-hub h3 {
103
+ font-weight: var(--ptc-font-weight-bold);
104
+ font-size: var(--ptc-font-size-large);
105
+ line-height: 23px;
106
+ color: var(--color-white);
107
+ }
108
+ div.margin-flush {
109
+ margin-top: 0;
110
+ margin-bottom: 0;
111
+ }
112
+ div.margin-top-2 {
113
+ margin-top: var(--ptc-element-spacing-02);
114
+ }
115
+ div.margin-top-3 {
116
+ margin-top: var(--ptc-element-spacing-03);
117
+ }
118
+ div.margin-top-4 {
119
+ margin-top: var(--ptc-element-spacing-04);
120
+ }
121
+ div.margin-top-5 {
122
+ margin-top: var(--ptc-element-spacing-05);
123
+ }
124
+ div.margin-top-6 {
125
+ margin-top: var(--ptc-element-spacing-06);
126
+ }
127
+ div.margin-bottom-2 {
128
+ margin-bottom: var(--ptc-element-spacing-02);
129
+ }
130
+ div.margin-bottom-3 {
131
+ margin-bottom: var(--ptc-element-spacing-03);
132
+ }
133
+ div.margin-bottom-4 {
134
+ margin-bottom: var(--ptc-element-spacing-04);
135
+ }
136
+ div.margin-bottom-5 {
137
+ margin-bottom: var(--ptc-element-spacing-05);
138
+ }
139
+ div.margin-bottom-6 {
140
+ margin-bottom: var(--ptc-element-spacing-06);
141
+ }
142
+ div.margin-2 {
143
+ margin-top: var(--ptc-element-spacing-02);
144
+ margin-bottom: var(--ptc-element-spacing-02);
145
+ }
146
+ div.margin-3 {
147
+ margin-top: var(--ptc-element-spacing-03);
148
+ margin-bottom: var(--ptc-element-spacing-03);
149
+ }
150
+ div.margin-4 {
151
+ margin-top: var(--ptc-element-spacing-04);
152
+ margin-bottom: var(--ptc-element-spacing-04);
153
+ }
154
+ div.margin-5 {
155
+ margin-top: var(--ptc-element-spacing-05);
156
+ margin-bottom: var(--ptc-element-spacing-05);
157
+ }
158
+ div.margin-6 {
159
+ margin-top: var(--ptc-element-spacing-06);
160
+ margin-bottom: var(--ptc-element-spacing-06);
64
161
  }
@@ -1,6 +1,10 @@
1
1
  import { Component, Host, h, Prop } from '@stencil/core';
2
2
  export class PtcTitle {
3
3
  constructor() {
4
+ /**
5
+ * Is this title using on the PLM Hub page
6
+ */
7
+ this.isPlmHub = false;
4
8
  /**
5
9
  * Title Tag Type
6
10
  */
@@ -36,6 +40,8 @@ export class PtcTitle {
36
40
  return {
37
41
  [this.textAlign]: true,
38
42
  [this.upperline]: true,
43
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
44
+ [this.titleMargin]: !!this.titleMargin ? true : false
39
45
  };
40
46
  }
41
47
  static get is() { return "ptc-title"; }
@@ -47,6 +53,24 @@ export class PtcTitle {
47
53
  "$": ["ptc-title.css"]
48
54
  }; }
49
55
  static get properties() { return {
56
+ "isPlmHub": {
57
+ "type": "boolean",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "boolean",
61
+ "resolved": "boolean",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": "Is this title using on the PLM Hub page"
69
+ },
70
+ "attribute": "is-plm-hub",
71
+ "reflect": false,
72
+ "defaultValue": "false"
73
+ },
50
74
  "type": {
51
75
  "type": "string",
52
76
  "mutable": false,
@@ -69,8 +93,8 @@ export class PtcTitle {
69
93
  "type": "string",
70
94
  "mutable": false,
71
95
  "complexType": {
72
- "original": "'left' | 'center' | 'right'",
73
- "resolved": "\"center\" | \"left\" | \"right\"",
96
+ "original": "'left' | 'center' | 'right' | 'inherit'",
97
+ "resolved": "\"center\" | \"inherit\" | \"left\" | \"right\"",
74
98
  "references": {}
75
99
  },
76
100
  "required": false,
@@ -87,8 +111,8 @@ export class PtcTitle {
87
111
  "type": "string",
88
112
  "mutable": false,
89
113
  "complexType": {
90
- "original": "'dotted' | 'solid'",
91
- "resolved": "\"dotted\" | \"solid\"",
114
+ "original": "'dotted' | 'solid' | 'no-upperline'",
115
+ "resolved": "\"dotted\" | \"no-upperline\" | \"solid\"",
92
116
  "references": {}
93
117
  },
94
118
  "required": false,
@@ -100,6 +124,40 @@ export class PtcTitle {
100
124
  "attribute": "upperline",
101
125
  "reflect": false,
102
126
  "defaultValue": "'dotted'"
127
+ },
128
+ "titleMargin": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "| 'margin-flush'\n | 'margin-top-3'\n | 'margin-top-4'\n | 'margin-top-5'\n | 'margin-top-6'\n | 'margin-bottom-3'\n | 'margin-bottom-4'\n | 'margin-bottom-5'\n | 'margin-bottom-6'\n | 'margin-3'\n | 'margin-4'\n | 'margin-5'\n | 'margin-6'",
133
+ "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\"",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": true,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": "Title Margin"
141
+ },
142
+ "attribute": "title-margin",
143
+ "reflect": false
144
+ },
145
+ "styles": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": true,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "Injected Style"
158
+ },
159
+ "attribute": "styles",
160
+ "reflect": false
103
161
  }
104
162
  }; }
105
163
  }