@ptcwebops/ptcw-design 4.6.8 → 4.7.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.
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +9 -2
- package/dist/cjs/homepage-toggled-content.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset_8.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/most-popular-news.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/ptc-info-tile.cjs.entry.js +3 -2
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-card.cjs.entry.js +3 -3
- package/dist/cjs/ptc-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ptc-picture.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-section.cjs.entry.js +26 -10
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/{utils-fe61106d.js → utils-1e19654c.js} +25 -0
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +15 -8
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +14 -1
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +37 -8
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +19 -1
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +50 -165
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +2 -2
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +8 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +2 -2
- package/dist/collection/components/ptc-picture/ptc-picture.css +8 -0
- package/dist/collection/components/ptc-picture/ptc-picture.js +2 -2
- package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +34 -10
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +18 -2
- package/dist/collection/stories/Breadcrumb.stories.js +8 -2
- package/dist/collection/stories/Overlay.stories.js +5 -10
- package/dist/collection/stories/TextCopyWithBackground.stories.js +5 -5
- package/dist/collection/utils/utils.js +17 -11
- package/dist/custom-elements/index.js +248 -201
- package/dist/esm/homepage-jumbotron.entry.js +9 -2
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/icon-asset_8.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_2.entry.js +1 -1
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-info-tile.entry.js +3 -2
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +1 -1
- package/dist/esm/ptc-nav-card.entry.js +3 -3
- package/dist/esm/ptc-overlay.entry.js +1 -1
- package/dist/esm/ptc-picture.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +26 -10
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-4a9e39a7.js → utils-c3e38928.js} +25 -1
- package/dist/ptcw-design/{p-90d50eb8.entry.js → p-0a48b79e.entry.js} +1 -1
- package/dist/ptcw-design/p-0b7eba48.entry.js +1 -0
- package/dist/ptcw-design/{p-8938268f.entry.js → p-2927fcf2.entry.js} +1 -1
- package/dist/ptcw-design/{p-0d2036aa.entry.js → p-2a3735a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-7fdadf0d.entry.js → p-2c0b813f.entry.js} +1 -1
- package/dist/ptcw-design/{p-62be464f.entry.js → p-4145c884.entry.js} +1 -1
- package/dist/ptcw-design/{p-8687424d.entry.js → p-4335d7f3.entry.js} +1 -1
- package/dist/ptcw-design/p-496ea175.entry.js +1 -0
- package/dist/ptcw-design/p-542b6730.entry.js +1 -0
- package/dist/ptcw-design/{p-3c560782.entry.js → p-6e93bbc6.entry.js} +1 -1
- package/dist/ptcw-design/p-76f916a8.js +1 -0
- package/dist/ptcw-design/p-7875f1de.entry.js +1 -0
- package/dist/ptcw-design/{p-17f2c9a5.entry.js → p-794eebdb.entry.js} +1 -1
- package/dist/ptcw-design/{p-50f94166.entry.js → p-7c1508be.entry.js} +1 -1
- package/dist/ptcw-design/{p-b9bf864e.entry.js → p-81e07694.entry.js} +1 -1
- package/dist/ptcw-design/{p-74f53c15.entry.js → p-9fea5f19.entry.js} +1 -1
- package/dist/ptcw-design/{p-388bab26.entry.js → p-d0f1693d.entry.js} +1 -1
- package/dist/ptcw-design/{p-e6f6c3c8.entry.js → p-d1bec2b4.entry.js} +1 -1
- package/dist/ptcw-design/{p-91efd911.entry.js → p-d7b6d68a.entry.js} +1 -1
- package/dist/ptcw-design/{p-029d283d.entry.js → p-f26024bf.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.d.ts +2 -0
- package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +4 -0
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +1 -1
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +1 -1
- package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +3 -0
- package/dist/types/components.d.ts +12 -4
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-2b45b978.entry.js +0 -1
- package/dist/ptcw-design/p-2ee1c89a.entry.js +0 -1
- package/dist/ptcw-design/p-5b5e8973.entry.js +0 -1
- package/dist/ptcw-design/p-b8fd8532.js +0 -1
- package/dist/ptcw-design/p-bd58f3d2.entry.js +0 -1
- package/dist/types/utils/eloqua.d.ts +0 -9
|
@@ -61,64 +61,22 @@ ptc-link, ptc-square-card,
|
|
|
61
61
|
position: relative;
|
|
62
62
|
}
|
|
63
63
|
:host .nav-card-wrap {
|
|
64
|
-
-webkit-box-orient: vertical;
|
|
65
|
-
-webkit-box-direction: normal;
|
|
66
|
-
-webkit-box-pack: center;
|
|
67
|
-
-ms-flex-pack: center;
|
|
68
|
-
display: -webkit-box;
|
|
69
|
-
display: -ms-flexbox;
|
|
70
64
|
display: flex;
|
|
71
|
-
-
|
|
72
|
-
flex-direction: column;
|
|
73
|
-
font-size: 16px;
|
|
74
|
-
justify-content: center;
|
|
75
|
-
letter-spacing: 1.2px;
|
|
76
|
-
line-height: 1.5;
|
|
77
|
-
list-style: none;
|
|
78
|
-
margin: 2.5px;
|
|
79
|
-
padding: 16px 40px 16px 0;
|
|
80
|
-
text-align: left;
|
|
65
|
+
align-items: center;
|
|
81
66
|
width: 100%;
|
|
67
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
68
|
+
background-color: var(--color-gray-12);
|
|
69
|
+
transition: background-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
82
70
|
}
|
|
83
|
-
:host .nav-card-wrap:
|
|
84
|
-
|
|
85
|
-
background: var(--color-gray-11);
|
|
71
|
+
:host .nav-card-wrap:hover {
|
|
72
|
+
background-color: var(--color-gray-08);
|
|
86
73
|
}
|
|
87
74
|
@media only screen and (min-width: 1200px) {
|
|
88
75
|
:host .nav-card-wrap {
|
|
89
|
-
|
|
90
|
-
width: 100%;
|
|
91
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
92
|
-
background-color: var(--color-gray-12);
|
|
93
|
-
transition: background-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
94
|
-
-webkit-box-orient: vertical;
|
|
95
|
-
-webkit-box-direction: normal;
|
|
96
|
-
-webkit-box-pack: center;
|
|
97
|
-
-ms-flex-pack: center;
|
|
98
|
-
border-radius: 4px;
|
|
99
|
-
display: -webkit-box;
|
|
100
|
-
display: -ms-flexbox;
|
|
101
|
-
display: flex;
|
|
102
|
-
-ms-flex-direction: column;
|
|
103
|
-
flex-direction: column;
|
|
104
|
-
font-size: 12px;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
letter-spacing: 1.2px;
|
|
107
|
-
line-height: 18px;
|
|
108
|
-
list-style: none;
|
|
109
|
-
padding: 15px;
|
|
110
|
-
text-align: left;
|
|
111
|
-
background: transparent;
|
|
112
|
-
outline: 5px solid transparent;
|
|
113
|
-
border: 2px solid transparent;
|
|
76
|
+
background-color: var(--color-gray-10);
|
|
114
77
|
}
|
|
115
78
|
:host .nav-card-wrap:hover {
|
|
116
|
-
background-color: var(--color-gray-
|
|
117
|
-
border-radius: 4px;
|
|
118
|
-
}
|
|
119
|
-
:host .nav-card-wrap:active {
|
|
120
|
-
border-radius: 4px;
|
|
121
|
-
background: var(--color-gray-10);
|
|
79
|
+
background-color: var(--color-gray-08);
|
|
122
80
|
}
|
|
123
81
|
}
|
|
124
82
|
:host .nav-card-wrap h4,
|
|
@@ -129,28 +87,19 @@ ptc-link, ptc-square-card,
|
|
|
129
87
|
text-decoration: none;
|
|
130
88
|
}
|
|
131
89
|
:host .nav-card-wrap .media-card-wrap {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
-ms-flex-align: center;
|
|
136
|
-
align-items: center;
|
|
137
|
-
display: -webkit-box;
|
|
138
|
-
display: -ms-flexbox;
|
|
90
|
+
padding: 1rem 1.5rem 1.125rem 1.5rem;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
139
93
|
display: flex;
|
|
140
|
-
-
|
|
141
|
-
flex-direction: row;
|
|
94
|
+
align-items: center;
|
|
142
95
|
}
|
|
143
96
|
@media only screen and (min-width: 1200px) {
|
|
144
97
|
:host .nav-card-wrap .media-card-wrap {
|
|
145
98
|
padding: 1rem;
|
|
146
|
-
padding: 1rem 1.5rem 1.125rem 1.5rem;
|
|
147
|
-
width: 100%;
|
|
148
|
-
height: 100%;
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
99
|
}
|
|
152
100
|
}
|
|
153
101
|
:host .nav-card-wrap .media-card-wrap h4 {
|
|
102
|
+
margin-bottom: 0.25rem;
|
|
154
103
|
font-weight: 800;
|
|
155
104
|
display: flex;
|
|
156
105
|
align-items: center;
|
|
@@ -171,7 +120,7 @@ ptc-link, ptc-square-card,
|
|
|
171
120
|
}
|
|
172
121
|
}
|
|
173
122
|
:host .nav-card-wrap .media-card-wrap .card-logo {
|
|
174
|
-
padding-right:
|
|
123
|
+
padding-right: 1.5rem;
|
|
175
124
|
}
|
|
176
125
|
@media only screen and (min-width: 1200px) {
|
|
177
126
|
:host .nav-card-wrap .media-card-wrap .card-logo {
|
|
@@ -190,80 +139,13 @@ ptc-link, ptc-square-card,
|
|
|
190
139
|
}
|
|
191
140
|
}
|
|
192
141
|
|
|
193
|
-
:host(.media-card) .nav-card-wrap
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
-webkit-box-align: center;
|
|
197
|
-
-ms-flex-align: center;
|
|
198
|
-
align-items: center;
|
|
199
|
-
display: -webkit-box;
|
|
200
|
-
display: -ms-flexbox;
|
|
201
|
-
display: flex;
|
|
202
|
-
-ms-flex-direction: row;
|
|
203
|
-
flex-direction: row;
|
|
204
|
-
}
|
|
205
|
-
@media only screen and (min-width: 1200px) {
|
|
206
|
-
:host(.media-card) .nav-card-wrap .media-card-wrap {
|
|
207
|
-
padding: 0px;
|
|
208
|
-
}
|
|
209
|
-
:host(.media-card) .nav-card-wrap .media-card-wrap:focus {
|
|
210
|
-
border: none !important;
|
|
211
|
-
outline: none !important;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
:host(.media-card) .nav-card-wrap .media-card-wrap .card-logo img {
|
|
215
|
-
height: auto;
|
|
216
|
-
width: 24px;
|
|
217
|
-
max-width: 24px;
|
|
218
|
-
min-width: 24px;
|
|
219
|
-
}
|
|
220
|
-
:host(.media-card) .nav-card-wrap .media-card-wrap h4 {
|
|
221
|
-
font-size: 16px;
|
|
222
|
-
font-stretch: normal;
|
|
223
|
-
font-style: normal;
|
|
224
|
-
font-weight: 800;
|
|
225
|
-
letter-spacing: normal;
|
|
226
|
-
line-height: 24px;
|
|
227
|
-
text-align: left;
|
|
228
|
-
word-break: break-word;
|
|
229
|
-
hyphens: auto;
|
|
230
|
-
margin-bottom: 0px;
|
|
231
|
-
}
|
|
232
|
-
@media only screen and (min-width: 1200px) {
|
|
233
|
-
:host(.media-card) .nav-card-wrap .media-card-wrap h4 {
|
|
234
|
-
font-size: 12px;
|
|
235
|
-
hyphens: auto;
|
|
236
|
-
line-height: 18px;
|
|
237
|
-
text-align: left;
|
|
238
|
-
margin-bottom: 0rem;
|
|
239
|
-
font-stretch: normal;
|
|
240
|
-
font-style: normal;
|
|
241
|
-
letter-spacing: normal;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
:host(.media-card) .nav-card-wrap .media-card-wrap p {
|
|
245
|
-
font-size: 14px;
|
|
246
|
-
font-stretch: normal;
|
|
247
|
-
font-style: normal;
|
|
248
|
-
font-weight: 400;
|
|
249
|
-
-webkit-hyphens: auto;
|
|
250
|
-
-ms-hyphens: auto;
|
|
251
|
-
hyphens: auto;
|
|
252
|
-
letter-spacing: normal;
|
|
253
|
-
line-height: 21px;
|
|
254
|
-
text-align: left;
|
|
255
|
-
word-break: break-word;
|
|
142
|
+
:host(.media-card) .nav-card-wrap {
|
|
143
|
+
min-height: 99px;
|
|
144
|
+
box-sizing: border-box;
|
|
256
145
|
}
|
|
257
146
|
@media only screen and (min-width: 1200px) {
|
|
258
|
-
:host(.media-card) .nav-card-wrap
|
|
259
|
-
|
|
260
|
-
font-stretch: normal;
|
|
261
|
-
font-style: normal;
|
|
262
|
-
font-weight: 400;
|
|
263
|
-
letter-spacing: normal;
|
|
264
|
-
line-height: 18px;
|
|
265
|
-
margin-bottom: 0;
|
|
266
|
-
text-align: left;
|
|
147
|
+
:host(.media-card) .nav-card-wrap {
|
|
148
|
+
min-height: 80px;
|
|
267
149
|
}
|
|
268
150
|
}
|
|
269
151
|
|
|
@@ -295,46 +177,49 @@ ptc-link, ptc-square-card,
|
|
|
295
177
|
margin-left: 0.375rem;
|
|
296
178
|
}
|
|
297
179
|
|
|
298
|
-
:host(.links-card) .nav-card-wrap
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
180
|
+
:host(.links-card) .nav-card-wrap {
|
|
181
|
+
background-color: transparent;
|
|
182
|
+
align-items: flex-start;
|
|
183
|
+
padding: 1rem 1.5rem 1.5rem 1.5rem;
|
|
184
|
+
border-bottom: 1px solid var(--color-gray-07);
|
|
185
|
+
border-radius: 0;
|
|
186
|
+
margin: 0 -1.5rem;
|
|
187
|
+
transition: background-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
188
|
+
}
|
|
189
|
+
@media only screen and (min-width: 1200px) {
|
|
190
|
+
:host(.links-card) .nav-card-wrap {
|
|
191
|
+
margin: 0;
|
|
192
|
+
padding: 1.5rem;
|
|
193
|
+
border: 1px solid var(--color-gray-10);
|
|
194
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
:host(.links-card) .nav-card-wrap:hover {
|
|
198
|
+
background-color: transparent;
|
|
310
199
|
}
|
|
311
200
|
:host(.links-card) .nav-card-wrap h3 {
|
|
312
|
-
margin: 0;
|
|
201
|
+
margin: 0 0 8px 0;
|
|
313
202
|
display: inline-block;
|
|
314
203
|
font-weight: 800;
|
|
204
|
+
font-size: 20px;
|
|
315
205
|
color: var(--color-white);
|
|
316
|
-
font-size: 16px;
|
|
317
|
-
font-style: normal;
|
|
318
|
-
letter-spacing: normal;
|
|
319
|
-
line-height: normal;
|
|
320
|
-
position: relative;
|
|
321
|
-
text-align: left;
|
|
322
206
|
}
|
|
323
207
|
@media only screen and (min-width: 1200px) {
|
|
324
208
|
:host(.links-card) .nav-card-wrap h3 {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
line-height: 1.5;
|
|
328
|
-
-ms-flex-item-align: center;
|
|
329
|
-
align-self: center;
|
|
209
|
+
font-size: 15px;
|
|
210
|
+
margin: 0 0 10px 0;
|
|
330
211
|
}
|
|
331
212
|
}
|
|
332
213
|
:host(.links-card) .nav-card-wrap h3 svg {
|
|
333
|
-
margin-left:
|
|
334
|
-
margin-bottom: 3px;
|
|
214
|
+
margin-left: 0.375rem;
|
|
335
215
|
vertical-align: middle;
|
|
336
|
-
|
|
337
|
-
|
|
216
|
+
}
|
|
217
|
+
:host(.links-card) .nav-card-wrap h3 a {
|
|
218
|
+
border-bottom: 1.5px solid transparent;
|
|
219
|
+
transition: border-color var(--ptc-transition-medium) var(--ptc-ease-inout);
|
|
220
|
+
}
|
|
221
|
+
:host(.links-card) .nav-card-wrap h3 a:hover {
|
|
222
|
+
border-color: var(--color-green-06);
|
|
338
223
|
}
|
|
339
224
|
:host(.links-card) ::slotted(ptc-link) {
|
|
340
225
|
padding: 8px 0;
|
|
@@ -26,9 +26,9 @@ export class PtcNavCard {
|
|
|
26
26
|
render() {
|
|
27
27
|
return (h(Host, { class: this.cardType }, h("div", { class: "nav-card-wrap" }, this.cardType == 'links-card' ?
|
|
28
28
|
h("div", { class: "links-card-wrap" }, h("h3", null, (this.cardHref && !(this.cardHref.startsWith('#'))) ?
|
|
29
|
-
(h("a", { href: this.cardHref, title: this.linkTitle
|
|
29
|
+
(h("a", { href: this.cardHref, title: this.linkTitle }, this.heading, h("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M6.3125 0.3125L6.3125 3.66515L-1.46549e-07 3.66515L-2.63246e-07 6.33487L6.3125 6.33487L6.3125 9.6875L11.25 4.96896L6.3125 0.3125Z", fill: "#3DAB49" })))) : (this.heading)), h("slot", null))
|
|
30
30
|
:
|
|
31
|
-
h("a", { href: this.cardHref, title: this.linkTitle,
|
|
31
|
+
h("a", { href: this.cardHref, title: this.linkTitle, class: "media-card-wrap" }, this.cardLogo &&
|
|
32
32
|
h("div", { class: "card-logo" }, h("img", { src: this.cardLogo, alt: this.logoAlt })), h("div", { class: "card-content" }, h("h4", null, this.heading, this.cardType == "cta-card" &&
|
|
33
33
|
h("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M6.3125 0.3125L6.3125 3.66515L-1.46549e-07 3.66515L-2.63246e-07 6.33487L6.3125 6.33487L6.3125 9.6875L11.25 4.96896L6.3125 0.3125Z", fill: "#3DAB49" }))), this.description &&
|
|
34
34
|
h("p", null, this.description))))));
|
|
@@ -173,6 +173,14 @@ ptc-link, ptc-square-card,
|
|
|
173
173
|
border-radius: var(--ptc-border-radius-large);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
:host(.radius-pill) {
|
|
177
|
+
border-radius: var(--ptc-border-radius-pill);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host(.radius-circle) {
|
|
181
|
+
border-radius: var(--ptc-border-radius-circle);
|
|
182
|
+
}
|
|
183
|
+
|
|
176
184
|
:host(.z-index-auto) {
|
|
177
185
|
z-index: auto;
|
|
178
186
|
}
|
|
@@ -55,8 +55,8 @@ export class PtcOverlay {
|
|
|
55
55
|
"type": "string",
|
|
56
56
|
"mutable": false,
|
|
57
57
|
"complexType": {
|
|
58
|
-
"original": "'radius-standard' | 'radius-large'",
|
|
59
|
-
"resolved": "\"radius-large\" | \"radius-standard\"",
|
|
58
|
+
"original": "'radius-standard' | 'radius-large'| 'radius-pill' | 'radius-circle'",
|
|
59
|
+
"resolved": "\"radius-circle\" | \"radius-large\" | \"radius-pill\" | \"radius-standard\"",
|
|
60
60
|
"references": {}
|
|
61
61
|
},
|
|
62
62
|
"required": false,
|
|
@@ -120,6 +120,14 @@ img {
|
|
|
120
120
|
border-radius: var(--ptc-border-radius-large);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
.radius-pill {
|
|
124
|
+
border-radius: var(--ptc-border-radius-pill);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.radius-circle {
|
|
128
|
+
border-radius: var(--ptc-border-radius-circle);
|
|
129
|
+
}
|
|
130
|
+
|
|
123
131
|
.is-full-height {
|
|
124
132
|
height: 100%;
|
|
125
133
|
}
|
|
@@ -309,8 +309,8 @@ export class PtcPicture {
|
|
|
309
309
|
"type": "string",
|
|
310
310
|
"mutable": false,
|
|
311
311
|
"complexType": {
|
|
312
|
-
"original": "'radius-standard' | 'radius-large'",
|
|
313
|
-
"resolved": "\"radius-large\" | \"radius-standard\"",
|
|
312
|
+
"original": "'radius-standard' | 'radius-large' | 'radius-pill' | 'radius-circle'",
|
|
313
|
+
"resolved": "\"radius-circle\" | \"radius-large\" | \"radius-pill\" | \"radius-standard\"",
|
|
314
314
|
"references": {}
|
|
315
315
|
},
|
|
316
316
|
"required": false,
|
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
export class PtcStickySection {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.hasPreloader = false;
|
|
5
|
+
}
|
|
3
6
|
componentDidLoad() {
|
|
7
|
+
if (this.stickyEl.classList.contains('sticky')) {
|
|
8
|
+
this.stickyEl.classList.remove('sticky');
|
|
9
|
+
}
|
|
4
10
|
let that = this;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
if (this.hasPreloader) {
|
|
12
|
+
setTimeout(() => {
|
|
13
|
+
that.stickyEl = that.el.shadowRoot.querySelector('.stickyEl');
|
|
14
|
+
that.originalPosition = this.elPosition(that.stickyEl);
|
|
15
|
+
window.addEventListener('scroll', that.handleScroll);
|
|
16
|
+
}, 3100);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
that.stickyEl = that.el.shadowRoot.querySelector('.stickyEl');
|
|
21
|
+
that.originalPosition = that.stickyEl.offsetTop;
|
|
22
|
+
window.addEventListener('scroll', that.handleScroll);
|
|
23
|
+
}, 1500);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
elPosition(element) {
|
|
27
|
+
const rect = element.getBoundingClientRect();
|
|
28
|
+
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
29
|
+
return rect.top + scrollTop;
|
|
15
30
|
}
|
|
16
31
|
disconnectedCallback() {
|
|
17
32
|
window.removeEventListener('scroll', this.handleScroll);
|
|
@@ -26,6 +41,9 @@ export class PtcStickySection {
|
|
|
26
41
|
}
|
|
27
42
|
}
|
|
28
43
|
}
|
|
44
|
+
handleResize() {
|
|
45
|
+
this.handleScroll();
|
|
46
|
+
}
|
|
29
47
|
render() {
|
|
30
48
|
return (h(Host, null, h("div", { class: "stickyEl", ref: el => (this.stickyEl = el) }, h("slot", null))));
|
|
31
49
|
}
|
|
@@ -49,6 +67,12 @@ export class PtcStickySection {
|
|
|
49
67
|
"target": "window",
|
|
50
68
|
"capture": false,
|
|
51
69
|
"passive": true
|
|
70
|
+
}, {
|
|
71
|
+
"name": "resize",
|
|
72
|
+
"method": "handleResize",
|
|
73
|
+
"target": "window",
|
|
74
|
+
"capture": false,
|
|
75
|
+
"passive": true
|
|
52
76
|
}];
|
|
53
77
|
}
|
|
54
78
|
}
|
package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css
CHANGED
|
@@ -179,8 +179,24 @@ ptc-link, ptc-square-card,
|
|
|
179
179
|
|
|
180
180
|
:host(.bottom-right) .tcb-top-slit {
|
|
181
181
|
top: auto;
|
|
182
|
-
bottom:
|
|
183
|
-
transform: scale(1.5, 1
|
|
182
|
+
bottom: -1px;
|
|
183
|
+
transform: scale(1.5, 1);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host(.bottom-left) .tcb-top-slit {
|
|
187
|
+
top: auto;
|
|
188
|
+
bottom: -1px;
|
|
189
|
+
transform: scale(1.5, 1) scaleX(-1);
|
|
190
|
+
left: 80px;
|
|
191
|
+
right: auto;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host(.top-left) .tcb-top-slit {
|
|
195
|
+
top: -1px;
|
|
196
|
+
bottom: auto;
|
|
197
|
+
transform: scale(1.5, 1) rotate(180deg);
|
|
198
|
+
left: 80px;
|
|
199
|
+
right: auto;
|
|
184
200
|
}
|
|
185
201
|
|
|
186
202
|
:host(.case-studies) {
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
// },
|
|
13
13
|
position: {
|
|
14
14
|
control: 'select',
|
|
15
|
-
options: ['left', 'center', 'right'],
|
|
15
|
+
options: ['left', 'center', 'right'],
|
|
16
16
|
description: 'breadcrumb position',
|
|
17
17
|
defaultValue: { summary: 'undefined' }
|
|
18
18
|
},
|
|
@@ -21,6 +21,12 @@ export default {
|
|
|
21
21
|
description: 'remove topMargin',
|
|
22
22
|
defaultValue: { summary: 'false' }
|
|
23
23
|
},
|
|
24
|
+
color: {
|
|
25
|
+
control: 'select',
|
|
26
|
+
description: 'Color',
|
|
27
|
+
defaultValue: { summary: 'white' },
|
|
28
|
+
options: [ 'black', 'white', 'ptc-green', 'gray', 'light-gray', 'primary-gray', 'default', 'inherit' ]
|
|
29
|
+
},
|
|
24
30
|
// styles: {
|
|
25
31
|
// control: '',
|
|
26
32
|
// description: '(optional) Injected CSS styles',
|
|
@@ -48,4 +54,4 @@ Example.args = {
|
|
|
48
54
|
position: 'undefined',
|
|
49
55
|
removeTopMargin: 'false',
|
|
50
56
|
// styles: 'undefined'
|
|
51
|
-
}
|
|
57
|
+
}
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
argTypes: {
|
|
7
7
|
borderRadius: {
|
|
8
8
|
control: 'select',
|
|
9
|
-
options: [
|
|
9
|
+
options: ['radius-standard', 'radius-large', 'radius-pill', 'radius-circle'],
|
|
10
10
|
description: 'Overlay border shape',
|
|
11
11
|
defaultValue: { summary: 'undefined' }
|
|
12
12
|
},
|
|
@@ -21,23 +21,18 @@ export default {
|
|
|
21
21
|
options: ["z-index-auto", "z-index-n-1", "z-index-n-2", "z-index-p-1", "z-index-p-2"],
|
|
22
22
|
description: 'Overlay z-index',
|
|
23
23
|
defaultValue: { summary: 'z-index-auto' }
|
|
24
|
-
}
|
|
25
|
-
// styles: {
|
|
26
|
-
// control: '',
|
|
27
|
-
// description: 'Injected Styles',
|
|
28
|
-
// defaultValue: { summary: 'undefined' }
|
|
29
|
-
// }
|
|
24
|
+
}
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
|
|
33
|
-
const Template = args => { return html `<ptc-picture alt="image-test" border-radius
|
|
28
|
+
const Template = args => { return html `<ptc-picture alt="image-test" border-radius=${args.borderRadius} image-position="relative" src="https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data">
|
|
34
29
|
<ptc-overlay
|
|
35
30
|
border-radius=${args.borderRadius}
|
|
36
31
|
filter-color=${args.filterColor}
|
|
37
32
|
overlay-z-index=${args.overlayZIndex}
|
|
38
33
|
styles=${args.styles}
|
|
39
34
|
></ptc-overlay>
|
|
40
|
-
</ptc-picture>`;}
|
|
35
|
+
</ptc-picture> <style>ptc-picture{ display: inline-block}</style>`;}
|
|
41
36
|
|
|
42
37
|
export const Example = Template.bind({});
|
|
43
38
|
|
|
@@ -46,4 +41,4 @@ Example.args = {
|
|
|
46
41
|
filterColor: 'green',
|
|
47
42
|
overlayZIndex: 'z-index-auto',
|
|
48
43
|
// styles: 'undefined'
|
|
49
|
-
}
|
|
44
|
+
}
|
|
@@ -27,9 +27,9 @@ export default {
|
|
|
27
27
|
slitPosition: {
|
|
28
28
|
control: 'select',
|
|
29
29
|
options: [
|
|
30
|
-
|
|
31
|
-
"bottom-right",
|
|
32
|
-
|
|
30
|
+
"bottom-left",
|
|
31
|
+
"bottom-right",
|
|
32
|
+
"top-left",
|
|
33
33
|
"top-right"
|
|
34
34
|
],
|
|
35
35
|
description: '(optional) topSlitPosition: It will decide the position of .',
|
|
@@ -184,7 +184,7 @@ const TabCTAWithBackgroundImageTemplate = args => { return html `<ptc-text-copy-
|
|
|
184
184
|
<ptc-button type="link" color="ptc-secondary" link-href="https://www.ptc.com"
|
|
185
185
|
target="_blank">Explore the Solution
|
|
186
186
|
</ptc-button>
|
|
187
|
-
</div>
|
|
187
|
+
</div>
|
|
188
188
|
</div>
|
|
189
189
|
</div>
|
|
190
190
|
</ptc-text-copy-with-background>`;}
|
|
@@ -235,4 +235,4 @@ CaseStudiesSliderCtaWithBackgroundImage.args = {
|
|
|
235
235
|
slitPosition: 'bottom-right',
|
|
236
236
|
topSlitBackgroundColor: 'white',
|
|
237
237
|
type: 'case-studies'
|
|
238
|
-
}
|
|
238
|
+
}
|
|
@@ -118,22 +118,28 @@ export function seoSlotReset(element) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
// for elements in the light dom
|
|
121
|
-
export function equalizeHeights(selector) {
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
export function equalizeHeights(selector, elem) {
|
|
122
|
+
let elements = elem.querySelectorAll(selector);
|
|
123
|
+
console.log('element: ' + elements[0].tagName);
|
|
124
|
+
//reset height
|
|
125
|
+
elements.forEach((element) => {
|
|
126
|
+
element.style.removeProperty('height');
|
|
127
|
+
});
|
|
124
128
|
let tallestHeight = 0;
|
|
125
|
-
//
|
|
126
|
-
elements.forEach(element => {
|
|
129
|
+
// Find the tallest element
|
|
130
|
+
elements.forEach((element) => {
|
|
127
131
|
const height = element.offsetHeight;
|
|
128
|
-
if (height > tallestHeight) {
|
|
132
|
+
if (height > tallestHeight && element.classList.contains('hydrated')) {
|
|
129
133
|
tallestHeight = height;
|
|
130
134
|
}
|
|
131
135
|
});
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
if (tallestHeight > 0) {
|
|
137
|
+
// Set all elements to the tallest height
|
|
138
|
+
elements.forEach((element) => {
|
|
139
|
+
element.style.height = `${tallestHeight}px`;
|
|
140
|
+
});
|
|
141
|
+
//return true;
|
|
142
|
+
}
|
|
137
143
|
}
|
|
138
144
|
//for elements in the shadow dom
|
|
139
145
|
export function equalizeHeightsWithinShadow(selector, shadowRootOrHostElement) {
|