@ptcwebops/ptcw-design 0.0.15 → 0.1.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 (152) hide show
  1. package/dist/custom-elements/index.d.ts +12 -0
  2. package/dist/ptcw-design/app-globals-0f993ce5.js +3 -0
  3. package/dist/ptcw-design/assets/ptc-sprite.svg +67 -0
  4. package/dist/ptcw-design/css-shim-003e9264.js +4 -0
  5. package/dist/ptcw-design/dom-1b195079.js +73 -0
  6. package/dist/{esm → ptcw-design}/icon-asset.entry.js +2 -2
  7. package/dist/{cjs/index-ac192914.js → ptcw-design/index-f7043a90.js} +1311 -195
  8. package/dist/ptcw-design/index.esm.js +1 -0
  9. package/dist/{esm → ptcw-design}/list-item.entry.js +1 -1
  10. package/dist/{esm → ptcw-design}/lottie-player.entry.js +782 -31
  11. package/dist/{esm → ptcw-design}/my-component.entry.js +1 -1
  12. package/dist/ptcw-design/ptc-announcement.entry.js +31 -0
  13. package/dist/ptcw-design/ptc-button.entry.js +57 -0
  14. package/dist/{esm → ptcw-design}/ptc-card.entry.js +1 -1
  15. package/dist/{esm → ptcw-design}/ptc-date.entry.js +1 -1
  16. package/dist/{esm → ptcw-design}/ptc-footer.entry.js +1 -1
  17. package/dist/{esm → ptcw-design}/ptc-image.entry.js +1 -1
  18. package/dist/{esm → ptcw-design}/ptc-img.entry.js +12 -1
  19. package/dist/{esm → ptcw-design}/ptc-link.entry.js +1 -1
  20. package/dist/{esm → ptcw-design}/ptc-list.entry.js +1 -1
  21. package/dist/{esm → ptcw-design}/ptc-lottie.entry.js +1 -1
  22. package/dist/{esm → ptcw-design}/ptc-nav-item.entry.js +1 -1
  23. package/dist/{esm → ptcw-design}/ptc-nav.entry.js +1 -1
  24. package/dist/{esm → ptcw-design}/ptc-overlay.entry.js +1 -1
  25. package/dist/{esm → ptcw-design}/ptc-para.entry.js +2 -2
  26. package/dist/{esm → ptcw-design}/ptc-picture.entry.js +1 -1
  27. package/dist/{esm → ptcw-design}/ptc-spacer.entry.js +1 -1
  28. package/dist/{esm → ptcw-design}/ptc-span.entry.js +1 -1
  29. package/dist/ptcw-design/ptc-svg-btn.entry.js +27 -0
  30. package/dist/{esm → ptcw-design}/ptc-title.entry.js +1 -1
  31. package/dist/ptcw-design/ptcw-design.css +1030 -2
  32. package/dist/ptcw-design/ptcw-design.esm.js +122 -1
  33. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +383 -0
  34. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  35. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +27 -0
  36. package/dist/types/components/ptc-button/ptc-button.d.ts +13 -1
  37. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  38. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +4 -0
  39. package/dist/types/components.d.ts +94 -6
  40. package/package.json +1 -1
  41. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  42. package/dist/cjs/index.cjs.js +0 -2
  43. package/dist/cjs/list-item.cjs.entry.js +0 -27
  44. package/dist/cjs/loader.cjs.js +0 -21
  45. package/dist/cjs/lottie-player.cjs.entry.js +0 -13476
  46. package/dist/cjs/my-component.cjs.entry.js +0 -26
  47. package/dist/cjs/ptc-button.cjs.entry.js +0 -48
  48. package/dist/cjs/ptc-card.cjs.entry.js +0 -75
  49. package/dist/cjs/ptc-date.cjs.entry.js +0 -48
  50. package/dist/cjs/ptc-footer.cjs.entry.js +0 -19
  51. package/dist/cjs/ptc-image.cjs.entry.js +0 -58
  52. package/dist/cjs/ptc-img.cjs.entry.js +0 -163
  53. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  54. package/dist/cjs/ptc-list.cjs.entry.js +0 -32
  55. package/dist/cjs/ptc-lottie.cjs.entry.js +0 -23
  56. package/dist/cjs/ptc-nav-item.cjs.entry.js +0 -94
  57. package/dist/cjs/ptc-nav.cjs.entry.js +0 -19
  58. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  59. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  60. package/dist/cjs/ptc-picture.cjs.entry.js +0 -26
  61. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  62. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  63. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  64. package/dist/cjs/ptcw-design.cjs.js +0 -19
  65. package/dist/collection/assets/responsive-background-image.min.js +0 -1
  66. package/dist/collection/collection-manifest.json +0 -38
  67. package/dist/collection/components/icon-asset/assets/brands.svg +0 -1381
  68. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  69. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +0 -77
  70. package/dist/collection/components/icon-asset/assets/regular.svg +0 -463
  71. package/dist/collection/components/icon-asset/assets/solid.svg +0 -3013
  72. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +0 -5
  73. package/dist/collection/components/icon-asset/icon-asset.css +0 -26
  74. package/dist/collection/components/icon-asset/icon-asset.js +0 -177
  75. package/dist/collection/components/list-item/list-item.css +0 -3
  76. package/dist/collection/components/list-item/list-item.js +0 -63
  77. package/dist/collection/components/my-component/my-component.css +0 -3
  78. package/dist/collection/components/my-component/my-component.js +0 -74
  79. package/dist/collection/components/ptc-button/ptc-button.css +0 -76
  80. package/dist/collection/components/ptc-button/ptc-button.js +0 -153
  81. package/dist/collection/components/ptc-card/ptc-card.css +0 -239
  82. package/dist/collection/components/ptc-card/ptc-card.js +0 -260
  83. package/dist/collection/components/ptc-date/ptc-date.css +0 -3
  84. package/dist/collection/components/ptc-date/ptc-date.js +0 -155
  85. package/dist/collection/components/ptc-footer/ptc-footer.css +0 -40
  86. package/dist/collection/components/ptc-footer/ptc-footer.js +0 -25
  87. package/dist/collection/components/ptc-image/ptc-image.css +0 -4
  88. package/dist/collection/components/ptc-image/ptc-image.js +0 -92
  89. package/dist/collection/components/ptc-img/ptc-img.css +0 -65
  90. package/dist/collection/components/ptc-img/ptc-img.js +0 -318
  91. package/dist/collection/components/ptc-link/ptc-link.css +0 -168
  92. package/dist/collection/components/ptc-link/ptc-link.js +0 -197
  93. package/dist/collection/components/ptc-list/ptc-list.css +0 -24
  94. package/dist/collection/components/ptc-list/ptc-list.js +0 -66
  95. package/dist/collection/components/ptc-lottie/ptc-lottie.css +0 -5
  96. package/dist/collection/components/ptc-lottie/ptc-lottie.js +0 -58
  97. package/dist/collection/components/ptc-nav/ptc-nav.css +0 -29
  98. package/dist/collection/components/ptc-nav/ptc-nav.js +0 -21
  99. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +0 -81
  100. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +0 -252
  101. package/dist/collection/components/ptc-overlay/ptc-overlay.css +0 -3
  102. package/dist/collection/components/ptc-overlay/ptc-overlay.js +0 -14
  103. package/dist/collection/components/ptc-para/ptc-para.css +0 -57
  104. package/dist/collection/components/ptc-para/ptc-para.js +0 -111
  105. package/dist/collection/components/ptc-picture/ptc-picture.css +0 -3
  106. package/dist/collection/components/ptc-picture/ptc-picture.js +0 -44
  107. package/dist/collection/components/ptc-spacer/ptc-spacer.css +0 -307
  108. package/dist/collection/components/ptc-spacer/ptc-spacer.js +0 -99
  109. package/dist/collection/components/ptc-span/ptc-span.css +0 -36
  110. package/dist/collection/components/ptc-span/ptc-span.js +0 -86
  111. package/dist/collection/components/ptc-title/ptc-title.css +0 -64
  112. package/dist/collection/components/ptc-title/ptc-title.js +0 -105
  113. package/dist/collection/index.js +0 -1
  114. package/dist/collection/utils/interfaces.js +0 -6
  115. package/dist/collection/utils/utils.js +0 -3
  116. package/dist/custom-elements/index.js +0 -14381
  117. package/dist/esm/index-5b1c792c.js +0 -1687
  118. package/dist/esm/index.js +0 -1
  119. package/dist/esm/loader.js +0 -17
  120. package/dist/esm/polyfills/core-js.js +0 -11
  121. package/dist/esm/polyfills/css-shim.js +0 -1
  122. package/dist/esm/polyfills/dom.js +0 -79
  123. package/dist/esm/polyfills/es5-html-element.js +0 -1
  124. package/dist/esm/polyfills/index.js +0 -34
  125. package/dist/esm/polyfills/system.js +0 -6
  126. package/dist/esm/ptc-button.entry.js +0 -44
  127. package/dist/esm/ptcw-design.js +0 -17
  128. package/dist/index.cjs.js +0 -1
  129. package/dist/index.js +0 -1
  130. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +0 -187
  131. package/dist/ptcw-design/p-00b6c442.entry.js +0 -1
  132. package/dist/ptcw-design/p-01dc360c.entry.js +0 -1
  133. package/dist/ptcw-design/p-07624831.entry.js +0 -1
  134. package/dist/ptcw-design/p-0a44a2f7.entry.js +0 -1
  135. package/dist/ptcw-design/p-1a26bade.entry.js +0 -1
  136. package/dist/ptcw-design/p-2d357f92.entry.js +0 -1
  137. package/dist/ptcw-design/p-31f4bd0c.entry.js +0 -1
  138. package/dist/ptcw-design/p-3af43980.entry.js +0 -1
  139. package/dist/ptcw-design/p-4f366fc3.js +0 -1
  140. package/dist/ptcw-design/p-662ae9b6.entry.js +0 -1
  141. package/dist/ptcw-design/p-70adca2e.entry.js +0 -1
  142. package/dist/ptcw-design/p-76dfa56f.entry.js +0 -1
  143. package/dist/ptcw-design/p-77f87fa3.entry.js +0 -1
  144. package/dist/ptcw-design/p-7a63ca63.entry.js +0 -1
  145. package/dist/ptcw-design/p-83696cae.entry.js +0 -1
  146. package/dist/ptcw-design/p-83d98048.entry.js +0 -1
  147. package/dist/ptcw-design/p-85131a2a.entry.js +0 -1
  148. package/dist/ptcw-design/p-ac0ad25e.entry.js +0 -1
  149. package/dist/ptcw-design/p-c169281f.entry.js +0 -1
  150. package/dist/ptcw-design/p-ce8b8a72.entry.js +0 -1
  151. package/dist/ptcw-design/p-d4f117d2.entry.js +0 -1
  152. package/dist/ptcw-design/p-fe6a3ba5.entry.js +0 -1
@@ -1,239 +0,0 @@
1
- :host {
2
- display: block;
3
- }
4
-
5
- :host(.lottie-card) .card-border {
6
- box-shadow: 1px 1px 14px 0 rgba(101, 101, 101, 0.35);
7
- border: 1px solid #c9c9c9;
8
- border-radius: 10px;
9
- position: relative;
10
- overflow: hidden;
11
- }
12
- :host(.lottie-card) .card-border::after {
13
- content: "";
14
- height: 40%;
15
- width: 4px;
16
- position: absolute;
17
- top: 30%;
18
- right: -2px;
19
- background-color: #74c34d;
20
- z-index: 2;
21
- display: block;
22
- }
23
- :host(.lottie-card) .card-border:hover {
24
- box-shadow: 1px 1px 35px 0 rgba(101, 101, 101, 0.65);
25
- }
26
- :host(.lottie-card) .card-border:hover .card-body h3 {
27
- border-bottom: 2px solid var(--color-primary-green);
28
- }
29
- :host(.lottie-card) .card-layout {
30
- display: block;
31
- }
32
- @media only screen and (min-width: 992px) {
33
- :host(.lottie-card) .card-layout {
34
- display: flex;
35
- flex-flow: nowrap row;
36
- justify-content: center;
37
- }
38
- }
39
- :host(.lottie-card) .link-wrapper {
40
- outline: none;
41
- text-decoration: none;
42
- }
43
- :host(.lottie-card) .link-wrapper:hover {
44
- outline: none;
45
- text-decoration: none;
46
- }
47
- :host(.lottie-card) .card-media {
48
- flex-basis: 40%;
49
- border-right: 1px solid #c9c9c9;
50
- }
51
- :host(.lottie-card) .card-body {
52
- flex-basis: 60%;
53
- align-self: center;
54
- padding: 0 30px 10px;
55
- }
56
- :host(.lottie-card) .card-body h3 {
57
- display: inline-block;
58
- line-height: 1;
59
- color: #40434a;
60
- font-weight: var(--ptc-font-weight-bold);
61
- font-size: var(--ptc-font-size-medium);
62
- text-transform: uppercase;
63
- border-bottom: 2px solid transparent;
64
- margin-bottom: var(--ptc-element-spacing-02);
65
- }
66
-
67
- :host(.simple-card) .card-layout {
68
- display: block;
69
- }
70
- :host(.simple-card) .link-wrapper {
71
- outline: none;
72
- text-decoration: none;
73
- }
74
- :host(.simple-card) .link-wrapper:hover {
75
- outline: none;
76
- text-decoration: none;
77
- }
78
- :host(.simple-card) .link-wrapper:hover .card-body h3::before {
79
- width: 100%;
80
- }
81
- :host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]) {
82
- margin-left: 15px;
83
- }
84
- :host(.simple-card) .card-body h3 {
85
- color: #40434a;
86
- font-size: var(--ptc-font-size-small);
87
- font-weight: var(--ptc-font-weight-black);
88
- line-height: 1.86;
89
- text-transform: uppercase;
90
- position: relative;
91
- margin-bottom: var(--ptc-element-spacing-02);
92
- display: inline-block;
93
- }
94
- :host(.simple-card) .card-body h3::before {
95
- display: block;
96
- position: absolute;
97
- content: "";
98
- width: var(--ptc-element-spacing-06);
99
- border-bottom: 2px solid var(--color-secondary-turtlegreen);
100
- bottom: 1px;
101
- transition: width var(--ptc-transition-medium) var(--ptc-standard-ease);
102
- }
103
- :host(.simple-card) ::slotted([slot=slot-after-heading]) {
104
- margin-left: 5px;
105
- transition: margin-left var(--ptc-transition-medium) var(--ptc-standard-ease);
106
- }
107
-
108
- :host(.clip-edge-card) .card-border {
109
- overflow: hidden;
110
- filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);
111
- width: 100%;
112
- }
113
- :host(.clip-edge-card) .card-border:hover {
114
- filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px);
115
- }
116
- :host(.clip-edge-card) .card-layout {
117
- display: block;
118
- }
119
- :host(.clip-edge-card) .link-wrapper {
120
- outline: none;
121
- text-decoration: none;
122
- }
123
- :host(.clip-edge-card) .link-wrapper:hover {
124
- outline: none;
125
- text-decoration: none;
126
- }
127
- :host(.clip-edge-card) .card-media {
128
- position: relative;
129
- width: 100%;
130
- height: 124px;
131
- overflow: hidden;
132
- border-radius: var(--ptc-border-radius-medium);
133
- }
134
- :host(.clip-edge-card) .card-body {
135
- transform: translateY(calc((-1) * var(--ptc-element-spacing-04)));
136
- overflow: hidden;
137
- width: calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-06));
138
- font-size: var(--ptc-font-size-small);
139
- font-weight: var(--ptc-font-weight-medium);
140
- line-height: var(--ptc-line-height-dense);
141
- color: #40434a;
142
- clip-path: var(--ptc-clip-path-bottom-right);
143
- background-color: var(--color-white);
144
- border-radius: var(--ptc-border-radius-medium);
145
- padding: var(--ptc-element-spacing-05) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06);
146
- }
147
- :host(.clip-edge-card) .card-body h3 {
148
- display: inline-block;
149
- margin: 0px;
150
- font-size: var(--ptc-font-size-medium);
151
- font-weight: var(--ptc-font-weight-bold);
152
- line-height: var(--ptc-line-height-dense);
153
- color: var(--color-primary-uigrey);
154
- text-decoration: none;
155
- border-bottom: 2px solid transparent;
156
- transition: border-bottom var(--ptc-transition-medium) var(--ptc-standard-ease);
157
- margin-bottom: var(--ptc-element-spacing-03);
158
- }
159
- :host(.clip-edge-card) ::slotted([slot=slot-description]) {
160
- height: 0;
161
- opacity: 0;
162
- transition: height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-medium) var(--ptc-standard-ease);
163
- }
164
- :host(.clip-edge-card) ::slotted([slot=slot-image]) {
165
- display: block;
166
- width: 100%;
167
- height: 100%;
168
- transform: scale(1);
169
- transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
170
- transform-origin: top center;
171
- }
172
- :host(.clip-edge-card) .link-wrapper:hover .card-body h3 {
173
- border-bottom: 2px solid var(--color-secondary-turtlegreen);
174
- }
175
- :host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]) {
176
- height: 54px;
177
- opacity: 1;
178
- }
179
- :host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]) {
180
- transform: scale(1.1);
181
- }
182
-
183
- :host(.hightlight-card) .card-border {
184
- box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
185
- width: 100%;
186
- border-radius: var(--ptc-border-radius-medium);
187
- overflow: hidden;
188
- }
189
- :host(.hightlight-card) .card-border:hover .card-media {
190
- transform: scale(1.1);
191
- }
192
- :host(.hightlight-card) .card-layout {
193
- display: block;
194
- position: relative;
195
- }
196
- :host(.hightlight-card) .link-wrapper {
197
- outline: none;
198
- text-decoration: none;
199
- }
200
- :host(.hightlight-card) .link-wrapper:hover {
201
- outline: none;
202
- text-decoration: none;
203
- }
204
- :host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]) {
205
- height: var(--ptc-layout-spacing-05);
206
- opacity: 1;
207
- }
208
- :host(.hightlight-card) .card-media {
209
- width: 100%;
210
- height: auto;
211
- min-height: 450px;
212
- position: relative;
213
- transform: scale(1);
214
- transform-origin: center bottom;
215
- transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
216
- transition-delay: var(--ptc-delay-medium);
217
- }
218
- :host(.hightlight-card) .card-body {
219
- position: absolute;
220
- bottom: 0;
221
- top: auto;
222
- left: 0;
223
- right: auto;
224
- padding: var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);
225
- background-color: var(--color-white);
226
- }
227
- :host(.hightlight-card) .card-body h3 {
228
- font-size: 30px;
229
- line-height: 1.27;
230
- font-weight: var(--ptc-font-weight-bold);
231
- color: var(--color-primary-uigrey);
232
- margin: var(--ptc-element-spacing-04) 0;
233
- }
234
- :host(.hightlight-card) ::slotted([slot=slot-description]) {
235
- height: 0;
236
- opacity: 0;
237
- transition: height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-fast) var(--ptc-standard-ease);
238
- transition-delay: var(--ptc-delay-medium);
239
- }
@@ -1,260 +0,0 @@
1
- import { Component, Prop, Host, h } from '@stencil/core';
2
- export class PtcCard {
3
- constructor() {
4
- /**
5
- * Card Type
6
- * Specify Card Type, default to simple card
7
- */
8
- this.cardType = 'custom-card';
9
- /**
10
- * Card Link URL (Optional)
11
- */
12
- this.cardHref = undefined;
13
- /**
14
- * (optional) Link card target
15
- * */
16
- this.target = '_self';
17
- /**
18
- * (optional) Link card rel
19
- * */
20
- this.rel = undefined;
21
- /**
22
- * If this card has Image
23
- */
24
- this.hasImage = false;
25
- /**
26
- * If this card has Video
27
- */
28
- this.hasVideo = false;
29
- /**
30
- * If this card has Lottie Image
31
- */
32
- this.hasLottie = false;
33
- }
34
- render() {
35
- const Tag = !!this.cardHref ? 'a' : 'div';
36
- const classMap = this.getCssClassMap();
37
- return (h(Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})),
38
- this.styles && h("style", null, this.styles),
39
- h("div", { class: "card-border", part: "border-wrapper" },
40
- h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
41
- this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null,
42
- h("div", { class: "card-body", part: "body-wrapper" },
43
- h("slot", { name: "slot-before-heading" }),
44
- !!this.heading
45
- ? [
46
- h("h3", { class: "ptc-h3", part: "card-heading" }, this.heading),
47
- h("slot", { name: "slot-after-heading" }),
48
- ]
49
- : null,
50
- h("slot", { name: "slot-description" }),
51
- !!this.cardDate ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "::part(part-ptc-date){color:#40434a;font-size:var(--ptc-font-size-medium);margin-top:var(--ptc-element-spacing-04);display:inline-block;}" }) : null)))));
52
- }
53
- getCssClassMap() {
54
- return {
55
- ['card-layout']: true,
56
- ['link-wrapper']: !!this.cardType ? true : false,
57
- };
58
- }
59
- getMediaSlot() {
60
- if (this.hasLottie) {
61
- return 'slot-lottie';
62
- }
63
- else if (this.hasVideo) {
64
- return 'slot-video';
65
- }
66
- else if (this.hasImage) {
67
- return 'slot-image';
68
- }
69
- else {
70
- return null;
71
- }
72
- }
73
- static get is() { return "ptc-card"; }
74
- static get encapsulation() { return "shadow"; }
75
- static get originalStyleUrls() { return {
76
- "$": ["ptc-card.scss"]
77
- }; }
78
- static get styleUrls() { return {
79
- "$": ["ptc-card.css"]
80
- }; }
81
- static get properties() { return {
82
- "cardType": {
83
- "type": "string",
84
- "mutable": false,
85
- "complexType": {
86
- "original": "'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card'",
87
- "resolved": "\"clip-edge-card\" | \"custom-card\" | \"hightlight-card\" | \"lottie-card\" | \"simple-card\"",
88
- "references": {}
89
- },
90
- "required": false,
91
- "optional": false,
92
- "docs": {
93
- "tags": [],
94
- "text": "Card Type\nSpecify Card Type, default to simple card"
95
- },
96
- "attribute": "card-type",
97
- "reflect": false,
98
- "defaultValue": "'custom-card'"
99
- },
100
- "cardHref": {
101
- "type": "string",
102
- "mutable": false,
103
- "complexType": {
104
- "original": "string",
105
- "resolved": "string",
106
- "references": {}
107
- },
108
- "required": false,
109
- "optional": true,
110
- "docs": {
111
- "tags": [],
112
- "text": "Card Link URL (Optional)"
113
- },
114
- "attribute": "card-href",
115
- "reflect": false,
116
- "defaultValue": "undefined"
117
- },
118
- "target": {
119
- "type": "string",
120
- "mutable": false,
121
- "complexType": {
122
- "original": "string",
123
- "resolved": "string",
124
- "references": {}
125
- },
126
- "required": false,
127
- "optional": true,
128
- "docs": {
129
- "tags": [],
130
- "text": "(optional) Link card target"
131
- },
132
- "attribute": "target",
133
- "reflect": false,
134
- "defaultValue": "'_self'"
135
- },
136
- "rel": {
137
- "type": "string",
138
- "mutable": false,
139
- "complexType": {
140
- "original": "string",
141
- "resolved": "string",
142
- "references": {}
143
- },
144
- "required": false,
145
- "optional": true,
146
- "docs": {
147
- "tags": [],
148
- "text": "(optional) Link card rel"
149
- },
150
- "attribute": "rel",
151
- "reflect": false,
152
- "defaultValue": "undefined"
153
- },
154
- "hasImage": {
155
- "type": "boolean",
156
- "mutable": false,
157
- "complexType": {
158
- "original": "boolean",
159
- "resolved": "boolean",
160
- "references": {}
161
- },
162
- "required": false,
163
- "optional": false,
164
- "docs": {
165
- "tags": [],
166
- "text": "If this card has Image"
167
- },
168
- "attribute": "has-image",
169
- "reflect": false,
170
- "defaultValue": "false"
171
- },
172
- "hasVideo": {
173
- "type": "boolean",
174
- "mutable": false,
175
- "complexType": {
176
- "original": "boolean",
177
- "resolved": "boolean",
178
- "references": {}
179
- },
180
- "required": false,
181
- "optional": false,
182
- "docs": {
183
- "tags": [],
184
- "text": "If this card has Video"
185
- },
186
- "attribute": "has-video",
187
- "reflect": false,
188
- "defaultValue": "false"
189
- },
190
- "hasLottie": {
191
- "type": "boolean",
192
- "mutable": false,
193
- "complexType": {
194
- "original": "boolean",
195
- "resolved": "boolean",
196
- "references": {}
197
- },
198
- "required": false,
199
- "optional": false,
200
- "docs": {
201
- "tags": [],
202
- "text": "If this card has Lottie Image"
203
- },
204
- "attribute": "has-lottie",
205
- "reflect": false,
206
- "defaultValue": "false"
207
- },
208
- "heading": {
209
- "type": "string",
210
- "mutable": false,
211
- "complexType": {
212
- "original": "string",
213
- "resolved": "string",
214
- "references": {}
215
- },
216
- "required": false,
217
- "optional": true,
218
- "docs": {
219
- "tags": [],
220
- "text": "Card heading"
221
- },
222
- "attribute": "heading",
223
- "reflect": false
224
- },
225
- "cardDate": {
226
- "type": "string",
227
- "mutable": false,
228
- "complexType": {
229
- "original": "string",
230
- "resolved": "string",
231
- "references": {}
232
- },
233
- "required": false,
234
- "optional": true,
235
- "docs": {
236
- "tags": [],
237
- "text": "Card Date"
238
- },
239
- "attribute": "card-date",
240
- "reflect": false
241
- },
242
- "styles": {
243
- "type": "string",
244
- "mutable": false,
245
- "complexType": {
246
- "original": "string",
247
- "resolved": "string",
248
- "references": {}
249
- },
250
- "required": false,
251
- "optional": true,
252
- "docs": {
253
- "tags": [],
254
- "text": "(optional) Injected CSS styles"
255
- },
256
- "attribute": "styles",
257
- "reflect": false
258
- }
259
- }; }
260
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- display: block;
3
- }
@@ -1,155 +0,0 @@
1
- import { Component, Host, h, Prop } from '@stencil/core';
2
- export class PtcDate {
3
- constructor() {
4
- /**
5
- * Year
6
- */
7
- this.year = 1900;
8
- /**
9
- * Month
10
- * An integer between 0 (January) and 11 (December) representing the month.If omitted, defaults to 0.
11
- */
12
- this.month = 0;
13
- /**
14
- * Day
15
- * An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
16
- */
17
- this.day = 1;
18
- /**
19
- * Country
20
- * examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
21
- */
22
- this.country = "en-US";
23
- }
24
- render() {
25
- // const newDate = new Date(this.year, this.month, this.day);
26
- return (h(Host, null,
27
- this.dateStyles && h("style", null, this.dateStyles),
28
- h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
29
- }
30
- getDate() {
31
- if (this.dateString) {
32
- let newDate = new Date(this.dateString.replace(/-/g, '\/'));
33
- return newDate;
34
- }
35
- else {
36
- return new Date(this.year, this.month, this.day);
37
- }
38
- }
39
- static get is() { return "ptc-date"; }
40
- static get encapsulation() { return "shadow"; }
41
- static get originalStyleUrls() { return {
42
- "$": ["ptc-date.scss"]
43
- }; }
44
- static get styleUrls() { return {
45
- "$": ["ptc-date.css"]
46
- }; }
47
- static get properties() { return {
48
- "year": {
49
- "type": "number",
50
- "mutable": false,
51
- "complexType": {
52
- "original": "number",
53
- "resolved": "number",
54
- "references": {}
55
- },
56
- "required": false,
57
- "optional": false,
58
- "docs": {
59
- "tags": [],
60
- "text": "Year"
61
- },
62
- "attribute": "year",
63
- "reflect": false,
64
- "defaultValue": "1900"
65
- },
66
- "month": {
67
- "type": "number",
68
- "mutable": false,
69
- "complexType": {
70
- "original": "number",
71
- "resolved": "number",
72
- "references": {}
73
- },
74
- "required": false,
75
- "optional": false,
76
- "docs": {
77
- "tags": [],
78
- "text": "Month\nAn integer between 0 (January) and 11 (December) representing the month.If omitted, defaults to 0."
79
- },
80
- "attribute": "month",
81
- "reflect": false,
82
- "defaultValue": "0"
83
- },
84
- "day": {
85
- "type": "number",
86
- "mutable": false,
87
- "complexType": {
88
- "original": "number",
89
- "resolved": "number",
90
- "references": {}
91
- },
92
- "required": false,
93
- "optional": false,
94
- "docs": {
95
- "tags": [],
96
- "text": "Day\nAn integer between 1 and 31 representing the day of the month. If omitted, defaults to 1."
97
- },
98
- "attribute": "day",
99
- "reflect": false,
100
- "defaultValue": "1"
101
- },
102
- "country": {
103
- "type": "string",
104
- "mutable": false,
105
- "complexType": {
106
- "original": "string | undefined",
107
- "resolved": "string",
108
- "references": {}
109
- },
110
- "required": false,
111
- "optional": false,
112
- "docs": {
113
- "tags": [],
114
- "text": "Country\nexamples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES"
115
- },
116
- "attribute": "country",
117
- "reflect": false,
118
- "defaultValue": "\"en-US\""
119
- },
120
- "dateString": {
121
- "type": "string",
122
- "mutable": false,
123
- "complexType": {
124
- "original": "string",
125
- "resolved": "string",
126
- "references": {}
127
- },
128
- "required": false,
129
- "optional": true,
130
- "docs": {
131
- "tags": [],
132
- "text": "Date\nexamples: 2000-1-1 or 2000/01/01"
133
- },
134
- "attribute": "date-string",
135
- "reflect": false
136
- },
137
- "dateStyles": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "string",
142
- "resolved": "string",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": true,
147
- "docs": {
148
- "tags": [],
149
- "text": "Injected styles"
150
- },
151
- "attribute": "date-styles",
152
- "reflect": false
153
- }
154
- }; }
155
- }
@@ -1,40 +0,0 @@
1
- :host {
2
- display: block;
3
- background-color: #1c2126;
4
- }
5
-
6
- .footer-style {
7
- position: relative;
8
- bottom: 0;
9
- display: grid;
10
- grid-template-columns: 1fr 1fr;
11
- grid-template-rows: auto auto auto auto;
12
- grid-template-areas: "left lImage" "right right" "share share" "copyright copyright";
13
- }
14
- @media screen and (min-width: 992px) {
15
- .footer-style {
16
- grid-template-columns: 1fr 1fr 1fr 1fr;
17
- grid-template-rows: 1fr fit-content(26px);
18
- grid-template-areas: "lImage left right share" "copyright copyright copyright copyright";
19
- }
20
- }
21
-
22
- .footer-image {
23
- grid-area: lImage;
24
- }
25
-
26
- .footer-link-left {
27
- grid-area: left;
28
- }
29
-
30
- .footer-link-right {
31
- grid-area: right;
32
- }
33
-
34
- .footer-share {
35
- grid-area: share;
36
- }
37
-
38
- .footer-copyright {
39
- grid-area: copyright;
40
- }