@ptcwebops/ptcw-design 1.2.3 → 1.2.5
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/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container_5.cjs.entry.js +9 -3
- package/dist/cjs/ptc-bio-card.cjs.entry.js +35 -0
- package/dist/cjs/ptc-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pagenation.cjs.entry.js +3 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +225 -0
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -0
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +2 -1
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +2 -1
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +58 -0
- package/dist/collection/components/ptc-modal/ptc-modal.css +70 -0
- package/dist/collection/components/ptc-modal/ptc-modal.js +44 -2
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +3 -0
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +58 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +50 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/max-width-container_5.entry.js +9 -3
- package/dist/esm/ptc-bio-card.entry.js +31 -0
- package/dist/esm/ptc-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-filter-tag.entry.js +1 -1
- package/dist/esm/ptc-pagenation.entry.js +3 -0
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-08f17ab6.entry.js +1 -0
- package/dist/ptcw-design/p-384d24fd.entry.js +1 -0
- package/dist/ptcw-design/p-c3dc0bdd.entry.js +1 -0
- package/dist/ptcw-design/{p-55d7245e.entry.js → p-da23d3d7.entry.js} +1 -1
- package/dist/ptcw-design/p-dc109608.entry.js +1 -0
- package/dist/ptcw-design/{p-a4d49579.entry.js → p-e4c48b02.entry.js} +1 -1
- package/dist/ptcw-design/p-effa1f41.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +8 -0
- package/dist/types/components.d.ts +69 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-2d0de92a.entry.js +0 -1
- package/dist/ptcw-design/p-6f244989.entry.js +0 -1
- package/dist/ptcw-design/p-c80aebb8.entry.js +0 -1
- package/dist/ptcw-design/p-f733dad8.entry.js +0 -1
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
color: var(--color-gray-10);
|
|
4
|
+
}
|
|
5
|
+
:host .bio-card {
|
|
6
|
+
display: flex;
|
|
7
|
+
box-shadow: var(--ptc-shadow-small);
|
|
8
|
+
transition: box-shadow 0.25s ease-out, -webkit-box-shadow 0.25s ease-out;
|
|
9
|
+
}
|
|
10
|
+
:host .bio-card .bio-card__image {
|
|
11
|
+
max-width: 150px;
|
|
12
|
+
min-width: 100px;
|
|
13
|
+
}
|
|
14
|
+
@media only screen and (min-width: 480px) {
|
|
15
|
+
:host .bio-card .bio-card__image {
|
|
16
|
+
min-width: 140px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
@media only screen and (min-width: 768px) {
|
|
20
|
+
:host .bio-card .bio-card__image {
|
|
21
|
+
width: 35%;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
:host .bio-card .bio-card__image img {
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
display: block;
|
|
27
|
+
max-height: 150px;
|
|
28
|
+
}
|
|
29
|
+
@media only screen and (min-width: 480px) {
|
|
30
|
+
:host .bio-card .bio-card__image img {
|
|
31
|
+
max-height: 200px;
|
|
32
|
+
min-width: auto;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
:host .bio-card .bio-card__content {
|
|
36
|
+
padding: 12px 12px 1px 12px;
|
|
37
|
+
flex-grow: 1;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
align-content: space-between;
|
|
42
|
+
}
|
|
43
|
+
@media only screen and (min-width: 768px) {
|
|
44
|
+
:host .bio-card .bio-card__content {
|
|
45
|
+
width: 65%;
|
|
46
|
+
padding: 16px 16px 1px 16px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
:host .bio-card .bio-card__content .bio-card__name {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
margin: 0;
|
|
52
|
+
font-size: var(--ptc-font-size-small);
|
|
53
|
+
font-weight: var(--ptc-font-weight-black);
|
|
54
|
+
line-height: var(--ptc-line-height-denser);
|
|
55
|
+
letter-spacing: 0.031rem;
|
|
56
|
+
border-bottom: 1px solid transparent;
|
|
57
|
+
}
|
|
58
|
+
@media only screen and (min-width: 992px) {
|
|
59
|
+
:host .bio-card .bio-card__content .bio-card__name {
|
|
60
|
+
font-size: var(--ptc-font-size-xx-small);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
:host .bio-card .bio-card__content .bio-card__job-title {
|
|
64
|
+
font-size: var(--ptc-font-size-xxx-small);
|
|
65
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
66
|
+
line-height: var(--ptc-line-height-p);
|
|
67
|
+
letter-spacing: 0.031rem;
|
|
68
|
+
margin: 2px 0 0 0;
|
|
69
|
+
}
|
|
70
|
+
@media only screen and (min-width: 480px) {
|
|
71
|
+
:host .bio-card .bio-card__content .bio-card__job-title {
|
|
72
|
+
font-size: var(--ptc-font-size-x-small);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@media only screen and (min-width: 992px) {
|
|
76
|
+
:host .bio-card .bio-card__content .bio-card__job-title {
|
|
77
|
+
font-size: var(--ptc-font-size-xxx-small);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
:host .bio-card .bio-card__content .bio-card__social-links {
|
|
81
|
+
border-top: 1px solid var(--color-gray-03);
|
|
82
|
+
padding-top: 12px;
|
|
83
|
+
}
|
|
84
|
+
:host .bio-card .bio-card__content .bio-card__social-links .social-icon {
|
|
85
|
+
margin-right: 20px;
|
|
86
|
+
display: inline-block;
|
|
87
|
+
border-bottom: 1px solid var(--color-green-14);
|
|
88
|
+
line-height: var(--ptc-line-height-denser);
|
|
89
|
+
}
|
|
90
|
+
:host .bio-card .bio-card__content .bio-card__social-links .social-icon svg {
|
|
91
|
+
max-width: 27px;
|
|
92
|
+
max-height: 44px;
|
|
93
|
+
}
|
|
94
|
+
:host .bio-card:hover {
|
|
95
|
+
box-shadow: var(--ptc-shadow-x-large);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
:host .bio-card:hover .bio-card__name {
|
|
99
|
+
border-bottom-color: var(--color-green-07);
|
|
100
|
+
}
|
|
101
|
+
:host .modal-wrap {
|
|
102
|
+
display: flex;
|
|
103
|
+
}
|
|
104
|
+
:host .modal-wrap .bio-modal-left {
|
|
105
|
+
width: 140px;
|
|
106
|
+
max-height: 208px;
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
:host .modal-wrap .bio-modal-left .bio-modal__image {
|
|
110
|
+
margin-bottom: 35px;
|
|
111
|
+
}
|
|
112
|
+
:host .modal-wrap .bio-modal-left .bio-modal__image img {
|
|
113
|
+
max-width: 100%;
|
|
114
|
+
display: block;
|
|
115
|
+
min-width: 140px;
|
|
116
|
+
}
|
|
117
|
+
:host .modal-wrap .bio-modal-left .bio-card__social-links {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
}
|
|
123
|
+
:host .modal-wrap .bio-modal-left .bio-card__social-links .social-icon {
|
|
124
|
+
margin-bottom: 10px;
|
|
125
|
+
}
|
|
126
|
+
:host .modal-wrap .bio-modal-left .bio-card__social-links .social-icon:last-child {
|
|
127
|
+
margin-bottom: 0;
|
|
128
|
+
}
|
|
129
|
+
@media only screen and (min-width: 768px) {
|
|
130
|
+
:host .modal-wrap .bio-modal-left {
|
|
131
|
+
display: block;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
:host .modal-wrap .bio-modal-right {
|
|
135
|
+
padding-left: 30px;
|
|
136
|
+
padding-right: 15px;
|
|
137
|
+
}
|
|
138
|
+
:host .modal-wrap .bio-modal-right .bio-modal-header {
|
|
139
|
+
position: relative;
|
|
140
|
+
width: 95%;
|
|
141
|
+
}
|
|
142
|
+
@media only screen and (min-width: 992px) {
|
|
143
|
+
:host .modal-wrap .bio-modal-right .bio-modal-header::after {
|
|
144
|
+
content: "";
|
|
145
|
+
position: absolute;
|
|
146
|
+
width: 100%;
|
|
147
|
+
height: 100%;
|
|
148
|
+
background-image: url("https://www.ptc.com/dist/ptc/images/Exec-Leadership/Card-Decoration.svg");
|
|
149
|
+
background-size: 340px;
|
|
150
|
+
transform: rotate(180deg);
|
|
151
|
+
z-index: -1;
|
|
152
|
+
background-repeat: no-repeat;
|
|
153
|
+
top: -20px;
|
|
154
|
+
right: 5%;
|
|
155
|
+
opacity: 0.4;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
:host .modal-wrap .bio-modal-right .bio-modal-header .bio-card__name {
|
|
159
|
+
margin: 0 0 4px 0;
|
|
160
|
+
font-weight: var(--ptc-font-weight-black);
|
|
161
|
+
font-size: var(--ptc-font-size-small);
|
|
162
|
+
line-height: var(--ptc-line-height-denser);
|
|
163
|
+
}
|
|
164
|
+
:host .modal-wrap .bio-modal-right .bio-modal-header .bio-card__job-title {
|
|
165
|
+
margin: 0;
|
|
166
|
+
font-size: var(--ptc-font-size-small);
|
|
167
|
+
font-weight: var(--ptc-font-weight-medium);
|
|
168
|
+
}
|
|
169
|
+
:host .modal-wrap .bio-modal-right .bio-modal-description {
|
|
170
|
+
margin-top: 40px;
|
|
171
|
+
max-height: 500px;
|
|
172
|
+
overflow-y: auto;
|
|
173
|
+
padding-right: 8%;
|
|
174
|
+
}
|
|
175
|
+
:host .modal-wrap .bio-modal-right .bio-modal-description::before {
|
|
176
|
+
background: var(--color-white);
|
|
177
|
+
background: linear-gradient(0deg, var(--color-white), rgba(255, 255, 255, 0));
|
|
178
|
+
bottom: 0;
|
|
179
|
+
content: "";
|
|
180
|
+
display: block;
|
|
181
|
+
height: 25%;
|
|
182
|
+
left: 0;
|
|
183
|
+
position: absolute;
|
|
184
|
+
right: 1rem;
|
|
185
|
+
width: 100%;
|
|
186
|
+
border-bottom-left-radius: var(--ptc-border-radius-large);
|
|
187
|
+
border-bottom-right-radius: var(--ptc-border-radius-large);
|
|
188
|
+
}
|
|
189
|
+
:host .modal-wrap .bio-modal-right .bio-modal-description::after {
|
|
190
|
+
content: " ";
|
|
191
|
+
width: 10px;
|
|
192
|
+
height: 120px;
|
|
193
|
+
display: block;
|
|
194
|
+
}
|
|
195
|
+
:host .modal-wrap .bio-modal-right .bio-modal-description::-webkit-scrollbar {
|
|
196
|
+
width: 0.188rem;
|
|
197
|
+
}
|
|
198
|
+
:host .modal-wrap .bio-modal-right .bio-modal-description::-webkit-scrollbar-track {
|
|
199
|
+
background: var(--color-gray-03);
|
|
200
|
+
}
|
|
201
|
+
:host .modal-wrap .bio-modal-right .bio-modal-description::-webkit-scrollbar-thumb {
|
|
202
|
+
background: var(--color-gray-10);
|
|
203
|
+
border-radius: 2rem;
|
|
204
|
+
}
|
|
205
|
+
:host .social-icon .cls-1 {
|
|
206
|
+
transition: all ease-in 250ms;
|
|
207
|
+
}
|
|
208
|
+
:host .social-icon .cls-3,
|
|
209
|
+
:host .social-icon .cls-4 {
|
|
210
|
+
stroke: none;
|
|
211
|
+
}
|
|
212
|
+
:host .social-icon .cls-4 {
|
|
213
|
+
transition: all ease-in 250ms;
|
|
214
|
+
fill: var(--color-gray-03);
|
|
215
|
+
}
|
|
216
|
+
:host .social-icon:hover .cls-1 {
|
|
217
|
+
transition: all ease-in 250ms;
|
|
218
|
+
fill: var(--color-white);
|
|
219
|
+
}
|
|
220
|
+
:host .social-icon:hover .cls-2 {
|
|
221
|
+
fill: var(--color-green-14);
|
|
222
|
+
}
|
|
223
|
+
:host .social-icon:hover .cls-4 {
|
|
224
|
+
fill: var(--color-green-14);
|
|
225
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcBioCard {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.showModal = false;
|
|
5
|
+
this.name = undefined;
|
|
6
|
+
this.jobTitle = undefined;
|
|
7
|
+
this.image = undefined;
|
|
8
|
+
this.linkedin = undefined;
|
|
9
|
+
this.twitter = undefined;
|
|
10
|
+
}
|
|
11
|
+
openModal() {
|
|
12
|
+
this.showModal = true;
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
let PtcModal = this.el.shadowRoot.querySelector('#bio-modal');
|
|
16
|
+
PtcModal.addEventListener('closed', () => {
|
|
17
|
+
this.showModal = false;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, { onClick: () => { this.openModal(); }, type: "button" }, h("div", { class: "bio-card" }, h("div", { class: "bio-card__image" }, h("img", { src: this.image, alt: `${this.name} profile image` })), h("div", { class: "bio-card__content" }, h("div", null, h("h3", { class: "bio-card__name" }, this.name), h("p", { class: "bio-card__job-title" }, this.jobTitle)), (this.linkedin || this.twitter) && (h("div", { class: "bio-card__social-links" }, this.linkedin && (h("a", { href: this.linkedin, target: "_blank", class: "tw social-icon", "aria-label": "linkedin" }, h("style", null, `.social-icon .cls-1 { fill: url(#linear-gradient1-in); } `), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "31.995", height: "36.794", viewBox: "0 0 31.995 36.794" }, h("defs", null, h("linearGradient", { id: "linear-gradient1-in", x1: ".5", x2: ".5", y2: "1", gradientUnits: "objectBoundingBox" }, h("stop", { offset: "0", "stop-color": "#fff" }), h("stop", { offset: "1", "stop-color": "#e5e5e5" }))), h("g", { class: "cls-1", "data-name": "Path 4255" }, h("path", { d: "M27.307 31.495H9.487L.578 15.998 9.487.5h17.82l8.91 15.498-8.91 15.497z", class: "cls-3", transform: "rotate(90 15.998 15.998)" }), h("path", { d: "M9.777 1L1.154 15.998l8.623 14.997h17.24l8.624-14.997L27.017 1H9.777M9.2 0h18.397l9.198 15.998-9.198 15.997H9.199L0 15.998 9.199 0z", class: "cls-4", transform: "rotate(90 15.998 15.998)" })), h("path", { d: "M-416.964 153.563h-2.487v-7.987h2.487zm-1.311-8.985h-.018a1.385 1.385 0 0 1-1.485-1.279v-.107a1.4 1.4 0 0 1 1.524-1.385 1.393 1.393 0 0 1 1.5 1.278v.107a1.4 1.4 0 0 1-1.521 1.386zm11.283 8.985h-2.842v-4.132c0-1.066-.441-1.819-1.421-1.819a1.422 1.422 0 0 0-1.35.977 1.82 1.82 0 0 0-.06.65v4.324h-2.778s.036-7.319 0-7.983h2.8v1.265a2.563 2.563 0 0 1 2.487-1.329c1.776 0 3.165 1.147 3.165 3.62z", class: "cls-2", "data-name": "Path 8769", transform: "translate(429.342 -128.977)" })))), this.twitter && (h("a", { href: this.twitter, target: "_blank", class: "tw social-icon", "aria-label": "twitter" }, h("style", null, `.social-icon .cls-1 { fill: url(#linear-gradient0-tw); } `), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "31.995", height: "36.794", viewBox: "0 0 31.995 36.794" }, h("defs", null, h("linearGradient", { id: "linear-gradient0-tw", x1: ".5", x2: ".5", y2: "1", gradientUnits: "objectBoundingBox" }, h("stop", { offset: "0", "stop-color": "#fff" }), h("stop", { offset: "1", "stop-color": "#e5e5e5" }))), h("g", { class: "cls-1", "data-name": "Path 4255" }, h("path", { d: "M27.307 31.495H9.487L.578 15.998 9.487.5h17.82l8.91 15.498-8.91 15.497z", class: "cls-3", transform: "rotate(90 15.998 15.998)" }), h("path", { d: "M9.777 1L1.154 15.998l8.623 14.997h17.24l8.624-14.997L27.017 1H9.777M9.2 0h18.397l9.198 15.998-9.198 15.997H9.199L0 15.998 9.199 0z", class: "cls-4", transform: "rotate(90 15.998 15.998)" })), h("g", { "data-name": "Group 3004", transform: "translate(9.205 13.034)" }, h("g", null, h("path", { d: "M-617.4 147a5.577 5.577 0 0 1-1.6.436 2.78 2.78 0 0 0 1.219-1.535 5.54 5.54 0 0 1-1.765.674 2.78 2.78 0 0 0-3.93-.118 2.782 2.782 0 0 0-.874 2.018 2.754 2.754 0 0 0 .072.632 7.9 7.9 0 0 1-5.73-2.9 2.784 2.784 0 0 0 .861 3.71 2.784 2.784 0 0 1-1.26-.346v.034a2.78 2.78 0 0 0 2.231 2.724 2.714 2.714 0 0 1-.734.1 2.774 2.774 0 0 1-.534-.049 2.776 2.776 0 0 0 2.6 1.93 5.619 5.619 0 0 1-4.1 1.151 7.874 7.874 0 0 0 4.259 1.249 7.844 7.844 0 0 0 7.9-7.9v-.376A5.652 5.652 0 0 0-617.4 147", class: "cls-2", "data-name": "Path 4252", transform: "translate(630.939 -145.697)" })))))))))), h("ptc-modal", { id: "bio-modal", show: this.showModal, size: "lg", "border-radius": 'large', "is-bio-modal": true }, h("div", { class: "modal-wrap" }, h("div", { class: "bio-modal-left" }, h("div", { class: "bio-modal__image" }, h("img", { src: this.image, alt: `${this.name} profile image` })), (this.linkedin || this.twitter) && (h("div", { class: "bio-card__social-links" }, this.linkedin && (h("a", { href: this.linkedin, target: "_blank", class: "tw social-icon", "aria-label": "linkedin" }, h("style", null, `.social-icon .cls-1 { fill: url(#linear-gradient1-in); } `), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "31.995", height: "36.794", viewBox: "0 0 31.995 36.794" }, h("defs", null, h("linearGradient", { id: "linear-gradient1-in", x1: ".5", x2: ".5", y2: "1", gradientUnits: "objectBoundingBox" }, h("stop", { offset: "0", "stop-color": "#fff" }), h("stop", { offset: "1", "stop-color": "#e5e5e5" }))), h("g", { class: "cls-1", "data-name": "Path 4255" }, h("path", { d: "M27.307 31.495H9.487L.578 15.998 9.487.5h17.82l8.91 15.498-8.91 15.497z", class: "cls-3", transform: "rotate(90 15.998 15.998)" }), h("path", { d: "M9.777 1L1.154 15.998l8.623 14.997h17.24l8.624-14.997L27.017 1H9.777M9.2 0h18.397l9.198 15.998-9.198 15.997H9.199L0 15.998 9.199 0z", class: "cls-4", transform: "rotate(90 15.998 15.998)" })), h("path", { d: "M-416.964 153.563h-2.487v-7.987h2.487zm-1.311-8.985h-.018a1.385 1.385 0 0 1-1.485-1.279v-.107a1.4 1.4 0 0 1 1.524-1.385 1.393 1.393 0 0 1 1.5 1.278v.107a1.4 1.4 0 0 1-1.521 1.386zm11.283 8.985h-2.842v-4.132c0-1.066-.441-1.819-1.421-1.819a1.422 1.422 0 0 0-1.35.977 1.82 1.82 0 0 0-.06.65v4.324h-2.778s.036-7.319 0-7.983h2.8v1.265a2.563 2.563 0 0 1 2.487-1.329c1.776 0 3.165 1.147 3.165 3.62z", class: "cls-2", "data-name": "Path 8769", transform: "translate(429.342 -128.977)" })))), this.twitter && (h("a", { href: this.twitter, target: "_blank", class: "tw social-icon", "aria-label": "twitter" }, h("style", null, `.social-icon .cls-1 { fill: url(#linear-gradient0-tw); } `), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "31.995", height: "36.794", viewBox: "0 0 31.995 36.794" }, h("defs", null, h("linearGradient", { id: "linear-gradient0-tw", x1: ".5", x2: ".5", y2: "1", gradientUnits: "objectBoundingBox" }, h("stop", { offset: "0", "stop-color": "#fff" }), h("stop", { offset: "1", "stop-color": "#e5e5e5" }))), h("g", { class: "cls-1", "data-name": "Path 4255" }, h("path", { d: "M27.307 31.495H9.487L.578 15.998 9.487.5h17.82l8.91 15.498-8.91 15.497z", class: "cls-3", transform: "rotate(90 15.998 15.998)" }), h("path", { d: "M9.777 1L1.154 15.998l8.623 14.997h17.24l8.624-14.997L27.017 1H9.777M9.2 0h18.397l9.198 15.998-9.198 15.997H9.199L0 15.998 9.199 0z", class: "cls-4", transform: "rotate(90 15.998 15.998)" })), h("g", { "data-name": "Group 3004", transform: "translate(9.205 13.034)" }, h("g", null, h("path", { d: "M-617.4 147a5.577 5.577 0 0 1-1.6.436 2.78 2.78 0 0 0 1.219-1.535 5.54 5.54 0 0 1-1.765.674 2.78 2.78 0 0 0-3.93-.118 2.782 2.782 0 0 0-.874 2.018 2.754 2.754 0 0 0 .072.632 7.9 7.9 0 0 1-5.73-2.9 2.784 2.784 0 0 0 .861 3.71 2.784 2.784 0 0 1-1.26-.346v.034a2.78 2.78 0 0 0 2.231 2.724 2.714 2.714 0 0 1-.734.1 2.774 2.774 0 0 1-.534-.049 2.776 2.776 0 0 0 2.6 1.93 5.619 5.619 0 0 1-4.1 1.151 7.874 7.874 0 0 0 4.259 1.249 7.844 7.844 0 0 0 7.9-7.9v-.376A5.652 5.652 0 0 0-617.4 147", class: "cls-2", "data-name": "Path 4252", transform: "translate(630.939 -145.697)" }))))))))), h("div", { class: "bio-modal-right" }, h("div", { class: "bio-modal-header" }, h("h2", { class: "bio-card__name" }, this.name), h("p", { class: "bio-card__job-title" }, this.jobTitle)), h("div", { class: "bio-modal-description" }, h("slot", null)))))));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "ptc-bio-card"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["ptc-bio-card.scss"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["ptc-bio-card.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"name": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "string",
|
|
42
|
+
"resolved": "string",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": "Name"
|
|
50
|
+
},
|
|
51
|
+
"attribute": "name",
|
|
52
|
+
"reflect": false
|
|
53
|
+
},
|
|
54
|
+
"jobTitle": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "Job Title"
|
|
67
|
+
},
|
|
68
|
+
"attribute": "job-title",
|
|
69
|
+
"reflect": false
|
|
70
|
+
},
|
|
71
|
+
"image": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "string",
|
|
76
|
+
"resolved": "string",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": false,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": "Profile Image"
|
|
84
|
+
},
|
|
85
|
+
"attribute": "image",
|
|
86
|
+
"reflect": false
|
|
87
|
+
},
|
|
88
|
+
"linkedin": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "string",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "LinkedIn Url"
|
|
101
|
+
},
|
|
102
|
+
"attribute": "linkedin",
|
|
103
|
+
"reflect": false
|
|
104
|
+
},
|
|
105
|
+
"twitter": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "string",
|
|
110
|
+
"resolved": "string",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": "Twiiter Url"
|
|
118
|
+
},
|
|
119
|
+
"attribute": "twitter",
|
|
120
|
+
"reflect": false
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static get states() {
|
|
125
|
+
return {
|
|
126
|
+
"showModal": {}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static get elementRef() { return "el"; }
|
|
130
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
align-items: center;
|
|
16
16
|
align-content: center;
|
|
17
17
|
border: 1px solid var(--color-gray-05);
|
|
18
|
-
padding: 0.
|
|
18
|
+
padding: 0.1875rem 0.75rem 0.1875rem 0.75rem;
|
|
19
19
|
border-radius: 4px;
|
|
20
20
|
font-family: var(--ptc-font-latin);
|
|
21
21
|
font-size: var(--ptc-font-size-x-small);
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
line-height: var(--ptc-line-height-loose);
|
|
24
24
|
letter-spacing: 0em;
|
|
25
25
|
text-align: left;
|
|
26
|
+
height: 1.5rem;
|
|
26
27
|
}
|
|
27
28
|
:host .dropdown__header b {
|
|
28
29
|
font-weight: var(--ptc-font-weight-semibold);
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
margin: 0.25rem;
|
|
6
6
|
}
|
|
7
7
|
.ptc-filter-tag.bubble {
|
|
8
|
+
margin: 0 0.25rem;
|
|
8
9
|
display: inline-block;
|
|
9
10
|
color: var(--color-gray-12);
|
|
10
11
|
font-family: Raleway;
|
|
11
12
|
font-size: var(--ptc-font-size-xx-small);
|
|
12
13
|
font-weight: var(--ptc-font-weight-semibold);
|
|
13
|
-
line-height: var(--ptc-line-height-denser);
|
|
14
14
|
letter-spacing: var(--ptc-letter-spacing-normal);
|
|
15
|
+
line-height: 1.125rem;
|
|
15
16
|
text-align: left;
|
|
16
17
|
align-items: center;
|
|
17
18
|
transition: border-color ease-out 250ms;
|
|
@@ -822,6 +822,64 @@ ptc-icon-list.icon-top-align-list a:hover {
|
|
|
822
822
|
grid-row-gap: 12px;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
+
ptc-bio-card .bio-modal-open-content {
|
|
826
|
+
color: var(--color-gray-10);
|
|
827
|
+
font-size: var(--ptc-font-size-small);
|
|
828
|
+
line-height: var(--ptc-line-height-denser);
|
|
829
|
+
}
|
|
830
|
+
ptc-bio-card .bio-modal-open-content h3 {
|
|
831
|
+
letter-spacing: 0.08rem;
|
|
832
|
+
margin-bottom: 2px;
|
|
833
|
+
font-size: var(--ptc-font-size-small);
|
|
834
|
+
}
|
|
835
|
+
ptc-bio-card .bio-modal-open-content ul {
|
|
836
|
+
margin-top: 0;
|
|
837
|
+
}
|
|
838
|
+
ptc-bio-card .bio-modal-open-content ul li {
|
|
839
|
+
line-height: var(--ptc-line-height-p);
|
|
840
|
+
}
|
|
841
|
+
ptc-bio-card .bio-modal-open-content ul li a {
|
|
842
|
+
text-decoration: none;
|
|
843
|
+
color: var(--color-green-06);
|
|
844
|
+
transition: color 0.3s ease;
|
|
845
|
+
}
|
|
846
|
+
ptc-bio-card .bio-modal-open-content ul li a:hover {
|
|
847
|
+
color: var(--color-gray-10);
|
|
848
|
+
transition: color 0.3s ease;
|
|
849
|
+
}
|
|
850
|
+
ptc-bio-card .bio-modal-open-content .btn-blackgrey {
|
|
851
|
+
background-color: var(--color-gray-10);
|
|
852
|
+
display: inline-block;
|
|
853
|
+
border-style: solid;
|
|
854
|
+
border-width: 1px;
|
|
855
|
+
white-space: normal;
|
|
856
|
+
position: relative;
|
|
857
|
+
text-decoration: none;
|
|
858
|
+
-moz-osx-font-smoothing: grayscale;
|
|
859
|
+
/*(For Firefox)*/
|
|
860
|
+
-webkit-font-smoothing: antialiased;
|
|
861
|
+
/*(For Chrome and Safari)*/
|
|
862
|
+
cursor: pointer;
|
|
863
|
+
padding: 14px 20px;
|
|
864
|
+
border: 2px solid var(--color-gray-08);
|
|
865
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
866
|
+
color: var(--color-white);
|
|
867
|
+
font-weight: 700;
|
|
868
|
+
}
|
|
869
|
+
ptc-bio-card .bio-modal-open-content .btn-blackgrey:hover {
|
|
870
|
+
background-color: var(--color-gray-09);
|
|
871
|
+
border-color: var(--color-gray-08);
|
|
872
|
+
}
|
|
873
|
+
ptc-bio-card .bio-modal-open-content .btn-blackgrey svg {
|
|
874
|
+
display: none;
|
|
875
|
+
}
|
|
876
|
+
ptc-bio-card .bio-modal-open-content hr {
|
|
877
|
+
margin-top: 20px;
|
|
878
|
+
margin-bottom: 20px;
|
|
879
|
+
border: 0;
|
|
880
|
+
border-top: 1px solid #eee;
|
|
881
|
+
}
|
|
882
|
+
|
|
825
883
|
:host {
|
|
826
884
|
display: block;
|
|
827
885
|
}
|
|
@@ -118,4 +118,74 @@
|
|
|
118
118
|
z-index: 3010;
|
|
119
119
|
display: block;
|
|
120
120
|
background-color: rgba(0, 0, 0, 0.6);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:host(.standard) .modal-popup {
|
|
124
|
+
border-radius: var(--ptc-border-radius-standard);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(.large) .modal-popup {
|
|
128
|
+
border-radius: var(--ptc-border-radius-large);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host(.pill) .modal-popup {
|
|
132
|
+
border-radius: var(--ptc-border-radius-pill);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host(.circle) .modal-popup {
|
|
136
|
+
border-radius: var(--ptc-border-radius-circle);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host(.bio-modal) .modal-popup {
|
|
140
|
+
padding: 30px 15px 30px 0;
|
|
141
|
+
max-width: 1200px;
|
|
142
|
+
}
|
|
143
|
+
@media only screen and (min-width: 1440px) {
|
|
144
|
+
:host(.bio-modal) .modal-popup {
|
|
145
|
+
max-width: 1400px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
:host(.bio-modal) .close {
|
|
149
|
+
position: absolute;
|
|
150
|
+
margin: 0;
|
|
151
|
+
right: 15px;
|
|
152
|
+
top: 30px;
|
|
153
|
+
}
|
|
154
|
+
:host(.bio-modal) .close svg .cls-1, :host(.bio-modal) .close svg .cls-2 {
|
|
155
|
+
fill: none;
|
|
156
|
+
stroke-width: 2px;
|
|
157
|
+
}
|
|
158
|
+
:host(.bio-modal) .close svg .cls-1 {
|
|
159
|
+
stroke: #1c2439;
|
|
160
|
+
stroke-linecap: square;
|
|
161
|
+
}
|
|
162
|
+
:host(.bio-modal) .close svg .cls-2 {
|
|
163
|
+
stroke: #74c34d;
|
|
164
|
+
}
|
|
165
|
+
:host(.bio-modal) .close svg path {
|
|
166
|
+
transition: all ease-in-out 250ms;
|
|
167
|
+
}
|
|
168
|
+
:host(.bio-modal) .close svg .cls-1:nth-child(1) {
|
|
169
|
+
transform: translate(175.5px, 135.5px);
|
|
170
|
+
}
|
|
171
|
+
:host(.bio-modal) .close svg .cls-1:nth-child(2) {
|
|
172
|
+
transform: translate(175.5px, 174.985px);
|
|
173
|
+
}
|
|
174
|
+
:host(.bio-modal) .close svg .cls-1:nth-child(3) {
|
|
175
|
+
transform: translate(215.5px, 141.393px);
|
|
176
|
+
}
|
|
177
|
+
:host(.bio-modal) .close svg .cls-1:nth-child(4) {
|
|
178
|
+
transform: translate(175.5px, 135.5px);
|
|
179
|
+
}
|
|
180
|
+
:host(.bio-modal) .close:hover svg .cls-1:nth-child(1) {
|
|
181
|
+
transform: translate(175.5px, 162px);
|
|
182
|
+
}
|
|
183
|
+
:host(.bio-modal) .close:hover svg .cls-1:nth-child(2) {
|
|
184
|
+
transform: translate(149px, 174.985px);
|
|
185
|
+
}
|
|
186
|
+
:host(.bio-modal) .close:hover svg .cls-1:nth-child(3) {
|
|
187
|
+
transform: translate(215.5px, 174px);
|
|
188
|
+
}
|
|
189
|
+
:host(.bio-modal) .close:hover svg .cls-1:nth-child(4) {
|
|
190
|
+
transform: translate(152.5px, 135.5px);
|
|
121
191
|
}
|
|
@@ -10,6 +10,8 @@ export class PtcModal {
|
|
|
10
10
|
this.rounded = false;
|
|
11
11
|
this.showHeaderFooter = false;
|
|
12
12
|
this.overlayHeight = undefined;
|
|
13
|
+
this.borderRadius = 'standard | large | pill | circle';
|
|
14
|
+
this.isBioModal = false;
|
|
13
15
|
this.bodyOverflowSetting = undefined;
|
|
14
16
|
}
|
|
15
17
|
fireOnClosed(modal) {
|
|
@@ -108,7 +110,11 @@ export class PtcModal {
|
|
|
108
110
|
let content;
|
|
109
111
|
let overlay;
|
|
110
112
|
let type = this.iframeUrl ? 'frame' : 'html';
|
|
111
|
-
let closebtn = (h("div", { class: "close" }, h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } },
|
|
113
|
+
let closebtn = (h("div", { class: "close" }, h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, this.isBioModal
|
|
114
|
+
?
|
|
115
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "42", height: "41.485", viewBox: "0 0 42 41.485" }, h("g", { "data-name": "Group 1042", transform: "rotate(180 108.25 87.993)" }, h("path", { d: "M0 0v39.486", class: "cls-1", "data-name": "Line 446" }), h("path", { d: "M0 0h40", class: "cls-1", "data-name": "Line 447" }), h("path", { d: "M0 33.592V0", class: "cls-1", "data-name": "Line 448" }), h("path", { d: "M23.994 0H0", class: "cls-1", "data-name": "Line 449" }), h("path", { d: "M0 0l17.596 17.596", class: "cls-2", "data-name": "Line 450", transform: "translate(187.229 147.226)" }), h("path", { d: "M0 7.198L7.199 0", class: "cls-2", "data-name": "Line 451", transform: "translate(197.55 147.312)" }), h("path", { d: "M0 7.2L7.2 0", class: "cls-2", "data-name": "Path 114", transform: "translate(187.313 157.549)" })))
|
|
116
|
+
:
|
|
117
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { d: "M1 1L13 13", stroke: "black" }), h("path", { d: "M13 1L1 13", stroke: "black" })))));
|
|
112
118
|
if (this.iframeUrl) {
|
|
113
119
|
content = (h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
114
120
|
}
|
|
@@ -128,7 +134,7 @@ export class PtcModal {
|
|
|
128
134
|
overlay = h("div", { class: "overlay" });
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
|
-
return (h(Host,
|
|
137
|
+
return (h(Host, { class: `${this.isBioModal ? "bio-modal" : ""} ${this.borderRadius}` }, h("div", { class: `wrapper ${this.show ? "show" : "hide"} ${this.fixed ? 'fixed' : ''} ` }, overlay, h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
|
|
132
138
|
h("div", { class: "modal-header" }, h("slot", { name: "header" }), closebtn),
|
|
133
139
|
h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
134
140
|
h("div", { class: "modal-footer" }, h("slot", { name: "footer" }))
|
|
@@ -293,6 +299,42 @@ export class PtcModal {
|
|
|
293
299
|
"attribute": "show-header-footer",
|
|
294
300
|
"reflect": false,
|
|
295
301
|
"defaultValue": "false"
|
|
302
|
+
},
|
|
303
|
+
"borderRadius": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"mutable": true,
|
|
306
|
+
"complexType": {
|
|
307
|
+
"original": "string",
|
|
308
|
+
"resolved": "string",
|
|
309
|
+
"references": {}
|
|
310
|
+
},
|
|
311
|
+
"required": false,
|
|
312
|
+
"optional": true,
|
|
313
|
+
"docs": {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": "Add the border radius Options: standard | large | pill | circle"
|
|
316
|
+
},
|
|
317
|
+
"attribute": "border-radius",
|
|
318
|
+
"reflect": false,
|
|
319
|
+
"defaultValue": "'standard | large | pill | circle'"
|
|
320
|
+
},
|
|
321
|
+
"isBioModal": {
|
|
322
|
+
"type": "boolean",
|
|
323
|
+
"mutable": true,
|
|
324
|
+
"complexType": {
|
|
325
|
+
"original": "boolean",
|
|
326
|
+
"resolved": "boolean",
|
|
327
|
+
"references": {}
|
|
328
|
+
},
|
|
329
|
+
"required": false,
|
|
330
|
+
"optional": true,
|
|
331
|
+
"docs": {
|
|
332
|
+
"tags": [],
|
|
333
|
+
"text": "Sets if popup is nio modal"
|
|
334
|
+
},
|
|
335
|
+
"attribute": "is-bio-modal",
|
|
336
|
+
"reflect": false,
|
|
337
|
+
"defaultValue": "false"
|
|
296
338
|
}
|
|
297
339
|
};
|
|
298
340
|
}
|