@ptcwebops/ptcw-design 1.5.8 → 1.6.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/{icon-asset_16.cjs.entry.js → bundle-jumbotron-example_14.cjs.entry.js} +401 -407
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +46 -0
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-card.cjs.entry.js +33 -0
- package/dist/cjs/ptc-product-category.cjs.entry.js +21 -0
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +80 -0
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +23 -0
- package/dist/cjs/ptc-product-list.cjs.entry.js +128 -0
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +130 -0
- package/dist/cjs/{ptc-social-share.cjs.entry.js → ptc-progress-bar_2.cjs.entry.js} +26 -5
- package/dist/cjs/ptc-slit-card.cjs.entry.js +36 -0
- package/dist/cjs/ptc-span.cjs.entry.js +3 -1
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +34 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/icon-asset/media/designer.svg +36 -0
- package/dist/collection/components/ptc-card/ptc-card.css +4 -4
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +48 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
- package/dist/collection/components/ptc-link/ptc-link.css +23 -1
- package/dist/collection/components/ptc-link/ptc-link.js +2 -2
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +48 -0
- package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.css +13 -0
- package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -0
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +64 -0
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -0
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +7 -7
- package/dist/collection/components/ptc-span/ptc-span.css +34 -0
- package/dist/collection/components/ptc-span/ptc-span.js +22 -2
- package/dist/collection/components/ptc-sticky-title/media/logo.png +0 -0
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.css +115 -0
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -0
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +103 -13
- package/dist/esm/{icon-asset_16.entry.js → bundle-jumbotron-example_14.entry.js} +396 -400
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-back-to-top.entry.js +42 -0
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-product-card.entry.js +29 -0
- package/dist/esm/ptc-product-category.entry.js +17 -0
- package/dist/esm/ptc-product-dropdown.entry.js +76 -0
- package/dist/esm/ptc-product-highlight-card.entry.js +19 -0
- package/dist/esm/ptc-product-list.entry.js +124 -0
- package/dist/esm/ptc-product-sidebar.entry.js +126 -0
- package/dist/esm/{ptc-social-share.entry.js → ptc-progress-bar_2.entry.js} +26 -6
- package/dist/esm/ptc-slit-card.entry.js +32 -0
- package/dist/esm/ptc-span.entry.js +3 -1
- package/dist/esm/ptc-sticky-title.entry.js +30 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/media/designer.svg +36 -0
- package/dist/ptcw-design/media/logo.png +0 -0
- package/dist/ptcw-design/{p-9703a463.entry.js → p-046b0224.entry.js} +1 -1
- package/dist/ptcw-design/p-19ec063d.entry.js +1 -0
- package/dist/ptcw-design/{p-078e0f3d.entry.js → p-2404b2db.entry.js} +1 -1
- package/dist/ptcw-design/p-43e72cf0.entry.js +1 -0
- package/dist/ptcw-design/p-49dc9b68.entry.js +1 -0
- package/dist/ptcw-design/p-65513c45.entry.js +1 -0
- package/dist/ptcw-design/p-798c2328.entry.js +1 -0
- package/dist/ptcw-design/p-8148b960.entry.js +1 -0
- package/dist/ptcw-design/p-ac5dfbd0.entry.js +1 -0
- package/dist/ptcw-design/p-af3a4142.entry.js +1 -0
- package/dist/ptcw-design/p-c26920ef.entry.js +1 -0
- package/dist/ptcw-design/{p-325b2d5c.entry.js → p-c2c85e61.entry.js} +1 -1
- package/dist/ptcw-design/p-cd44eedb.entry.js +1 -0
- package/dist/ptcw-design/p-e341cb46.entry.js +1 -0
- package/dist/ptcw-design/p-ff1585a9.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-link/ptc-link.d.ts +1 -1
- package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -0
- package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -0
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +1 -1
- package/dist/types/components/ptc-span/ptc-span.d.ts +5 -1
- package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -0
- package/dist/types/components.d.ts +127 -6
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +0 -50
- package/dist/cjs/interfaces-574e6df7.js +0 -15
- package/dist/cjs/max-width-container_3.cjs.entry.js +0 -237
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -135
- package/dist/esm/bundle-jumbotron-example.entry.js +0 -46
- package/dist/esm/interfaces-7c0243be.js +0 -12
- package/dist/esm/max-width-container_3.entry.js +0 -231
- package/dist/esm/ptc-jumbotron.entry.js +0 -131
- package/dist/ptcw-design/p-0f8784e9.entry.js +0 -1
- package/dist/ptcw-design/p-609d4967.entry.js +0 -1
- package/dist/ptcw-design/p-6e8222ce.entry.js +0 -1
- package/dist/ptcw-design/p-73ea7065.entry.js +0 -1
- package/dist/ptcw-design/p-7db9319d.entry.js +0 -1
- package/dist/ptcw-design/p-e8c46d2e.entry.js +0 -1
- package/dist/ptcw-design/p-ee1183b2.js +0 -1
|
@@ -3,6 +3,7 @@ export class PtcSpan {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.spanStyle = 'tag-style';
|
|
5
5
|
this.display = 'inline';
|
|
6
|
+
this.fontWeight = 'w-4';
|
|
6
7
|
this.styles = undefined;
|
|
7
8
|
}
|
|
8
9
|
render() {
|
|
@@ -12,6 +13,7 @@ export class PtcSpan {
|
|
|
12
13
|
getCssClassMap() {
|
|
13
14
|
return {
|
|
14
15
|
[this.spanStyle]: true,
|
|
16
|
+
[this.fontWeight]: true,
|
|
15
17
|
[this.display]: true,
|
|
16
18
|
};
|
|
17
19
|
}
|
|
@@ -33,8 +35,8 @@ export class PtcSpan {
|
|
|
33
35
|
"type": "string",
|
|
34
36
|
"mutable": false,
|
|
35
37
|
"complexType": {
|
|
36
|
-
"original": "'link-style' | 'tag-style' | 'nav-style' | 'plm-hub-style' | 'plm-hub-style-smaller'",
|
|
37
|
-
"resolved": "\"link-style\" | \"nav-style\" | \"plm-hub-style\" | \"plm-hub-style-smaller\" | \"tag-style\"",
|
|
38
|
+
"original": "'link-style' | 'tag-style' | 'nav-style' | 'plm-hub-style' | 'plm-hub-style-smaller' | 'blog-tag'",
|
|
39
|
+
"resolved": "\"blog-tag\" | \"link-style\" | \"nav-style\" | \"plm-hub-style\" | \"plm-hub-style-smaller\" | \"tag-style\"",
|
|
38
40
|
"references": {}
|
|
39
41
|
},
|
|
40
42
|
"required": false,
|
|
@@ -65,6 +67,24 @@ export class PtcSpan {
|
|
|
65
67
|
"reflect": false,
|
|
66
68
|
"defaultValue": "'inline'"
|
|
67
69
|
},
|
|
70
|
+
"fontWeight": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "'w-3' | 'w-4' | 'w-5' | 'w-6' | 'w-7' | 'w-8' | 'w-9'",
|
|
75
|
+
"resolved": "\"w-3\" | \"w-4\" | \"w-5\" | \"w-6\" | \"w-7\" | \"w-8\" | \"w-9\"",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "Span weight"
|
|
83
|
+
},
|
|
84
|
+
"attribute": "font-weight",
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"defaultValue": "'w-4'"
|
|
87
|
+
},
|
|
68
88
|
"styles": {
|
|
69
89
|
"type": "string",
|
|
70
90
|
"mutable": false,
|
|
Binary file
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
z-index: 3;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.sticky-header-container {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 0;
|
|
13
|
+
padding: 0 24px;
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
transition: height 0.3s ease-in-out;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: flex-end;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
20
|
+
@media only screen and (min-width: 768px) {
|
|
21
|
+
.sticky-header-container {
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sticky-header-container.sticky {
|
|
27
|
+
position: fixed;
|
|
28
|
+
height: 74px;
|
|
29
|
+
background-image: linear-gradient(272deg, #3b4550, #1a1a1a);
|
|
30
|
+
z-index: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sticky-header-title {
|
|
34
|
+
width: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: flex-start;
|
|
37
|
+
align-items: center;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
@media only screen and (min-width: 768px) {
|
|
41
|
+
.sticky-header-title {
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.sticky-header-title .logo-image {
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 0px;
|
|
48
|
+
visibility: hidden;
|
|
49
|
+
transform: translateY(-25px);
|
|
50
|
+
}
|
|
51
|
+
@media only screen and (min-width: 768px) {
|
|
52
|
+
.sticky-header-title .logo-image {
|
|
53
|
+
transform: translateY(0px);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.sticky-header-title .logo-image.is-visible {
|
|
57
|
+
visibility: visible;
|
|
58
|
+
}
|
|
59
|
+
.sticky-header-title .logo-image img {
|
|
60
|
+
max-height: 24px;
|
|
61
|
+
width: auto;
|
|
62
|
+
}
|
|
63
|
+
@media only screen and (min-width: 768px) {
|
|
64
|
+
.sticky-header-title .logo-image img {
|
|
65
|
+
max-height: 100%;
|
|
66
|
+
width: 60px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
@media only screen and (min-width: 992px) {
|
|
70
|
+
.sticky-header-title .logo-image img {
|
|
71
|
+
width: 90px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.sticky-header-title .share-icons {
|
|
75
|
+
position: absolute;
|
|
76
|
+
right: 0px;
|
|
77
|
+
visibility: visible;
|
|
78
|
+
transform: translateY(-25px);
|
|
79
|
+
transition: visibility 0.3s ease-in-out;
|
|
80
|
+
}
|
|
81
|
+
@media only screen and (min-width: 768px) {
|
|
82
|
+
.sticky-header-title .share-icons {
|
|
83
|
+
visibility: hidden;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.sticky-header-title .share-icons ptc-social-share {
|
|
87
|
+
margin-left: var(--ptc-element-spacing-03);
|
|
88
|
+
}
|
|
89
|
+
.sticky-header-title h1 {
|
|
90
|
+
color: #ffffff;
|
|
91
|
+
font-size: var(--ptc-font-size-small);
|
|
92
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
93
|
+
margin-top: var(--ptc-element-spacing-05);
|
|
94
|
+
margin-bottom: var(--ptc-element-spacing-05);
|
|
95
|
+
}
|
|
96
|
+
@media only screen and (min-width: 768px) {
|
|
97
|
+
.sticky-header-title h1 {
|
|
98
|
+
margin-top: 0.67em;
|
|
99
|
+
margin-bottom: 0.67em;
|
|
100
|
+
font-size: var(--ptc-font-size-large);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ptc-progress-bar {
|
|
105
|
+
display: none;
|
|
106
|
+
width: 100%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sticky ptc-progress-bar {
|
|
110
|
+
position: absolute;
|
|
111
|
+
bottom: 0;
|
|
112
|
+
left: 0;
|
|
113
|
+
width: 100%;
|
|
114
|
+
display: block;
|
|
115
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Host, h, getAssetPath } from '@stencil/core';
|
|
2
|
+
export class PtcStickyTitle {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.barTitle = 'Bar Title';
|
|
5
|
+
this.isSticky = false;
|
|
6
|
+
this.logo = 'logo.png';
|
|
7
|
+
}
|
|
8
|
+
handleScroll() {
|
|
9
|
+
const scrollTop = document.documentElement.scrollTop;
|
|
10
|
+
const threshold = 260;
|
|
11
|
+
if (scrollTop > threshold) {
|
|
12
|
+
this.isSticky = true;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
this.isSticky = false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const logoImg = getAssetPath(`./media/${this.logo}`);
|
|
20
|
+
return (h(Host, null, h("div", { class: `sticky-header-container ${this.isSticky ? 'sticky' : ''}` }, h("div", { class: "sticky-header-title" }, h("div", { class: `logo-image ${this.isSticky ? 'is-visible' : ''}` }, h("img", { src: logoImg })), h("h1", null, this.barTitle), h("div", { class: `share-icons is-flex ${this.isSticky ? 'is-visible' : ''}` }, h("ptc-social-share", { class: "icon", display: "inline-block", "share-type": "blog-facebook", text: "summary", url: "https://www.ptc.com", "share-title": "title goes here", source: "linkedin source", recipient: "yqiantest@ptc.com" }), h("ptc-social-share", { class: "icon", display: "inline-block", "share-type": "blog-twitter", text: "summary", url: "https://www.ptc.com", "share-title": "title goes here", source: "linkedin source", recipient: "yqiantest@ptc.com" }), h("ptc-social-share", { class: "icon", display: "inline-block", "share-type": "blog-linkedin", text: "summary", url: "https://www.ptc.com", "share-title": "title goes here", source: "linkedin source", recipient: "yqiantest@ptc.com" }), h("ptc-social-share", { class: "icon", display: "inline-block", "share-type": "blog-mail", text: "summary", url: "https://www.ptc.com", "share-title": "title goes here", source: "linkedin source", recipient: "yqiantest@ptc.com" }))), h("ptc-progress-bar", null))));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "ptc-sticky-title"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["ptc-sticky-title.scss"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get styleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["ptc-sticky-title.css"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get assetsDirs() { return ["media"]; }
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"barTitle": {
|
|
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": "bar title"
|
|
50
|
+
},
|
|
51
|
+
"attribute": "bar-title",
|
|
52
|
+
"reflect": false,
|
|
53
|
+
"defaultValue": "'Bar Title'"
|
|
54
|
+
},
|
|
55
|
+
"logo": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "string",
|
|
60
|
+
"resolved": "string",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
},
|
|
69
|
+
"attribute": "logo",
|
|
70
|
+
"reflect": false,
|
|
71
|
+
"defaultValue": "'logo.png'"
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static get states() {
|
|
76
|
+
return {
|
|
77
|
+
"isSticky": {}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
static get listeners() {
|
|
81
|
+
return [{
|
|
82
|
+
"name": "scroll",
|
|
83
|
+
"method": "handleScroll",
|
|
84
|
+
"target": "window",
|
|
85
|
+
"capture": false,
|
|
86
|
+
"passive": true
|
|
87
|
+
}];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -362,6 +362,12 @@ export const PtcProductSidebar: {
|
|
|
362
362
|
new (): PtcProductSidebar;
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
+
interface PtcProgressBar extends Components.PtcProgressBar, HTMLElement {}
|
|
366
|
+
export const PtcProgressBar: {
|
|
367
|
+
prototype: PtcProgressBar;
|
|
368
|
+
new (): PtcProgressBar;
|
|
369
|
+
};
|
|
370
|
+
|
|
365
371
|
interface PtcQuote extends Components.PtcQuote, HTMLElement {}
|
|
366
372
|
export const PtcQuote: {
|
|
367
373
|
prototype: PtcQuote;
|
|
@@ -398,6 +404,12 @@ export const PtcSkeleton: {
|
|
|
398
404
|
new (): PtcSkeleton;
|
|
399
405
|
};
|
|
400
406
|
|
|
407
|
+
interface PtcSlitCard extends Components.PtcSlitCard, HTMLElement {}
|
|
408
|
+
export const PtcSlitCard: {
|
|
409
|
+
prototype: PtcSlitCard;
|
|
410
|
+
new (): PtcSlitCard;
|
|
411
|
+
};
|
|
412
|
+
|
|
401
413
|
interface PtcSocialShare extends Components.PtcSocialShare, HTMLElement {}
|
|
402
414
|
export const PtcSocialShare: {
|
|
403
415
|
prototype: PtcSocialShare;
|
|
@@ -428,6 +440,12 @@ export const PtcStickySection: {
|
|
|
428
440
|
new (): PtcStickySection;
|
|
429
441
|
};
|
|
430
442
|
|
|
443
|
+
interface PtcStickyTitle extends Components.PtcStickyTitle, HTMLElement {}
|
|
444
|
+
export const PtcStickyTitle: {
|
|
445
|
+
prototype: PtcStickyTitle;
|
|
446
|
+
new (): PtcStickyTitle;
|
|
447
|
+
};
|
|
448
|
+
|
|
431
449
|
interface PtcSubnav extends Components.PtcSubnav, HTMLElement {}
|
|
432
450
|
export const PtcSubnav: {
|
|
433
451
|
prototype: PtcSubnav;
|