@ptcwebops/ptcw-design 4.3.0 → 4.3.2
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-clickable-tab.cjs.entry.js +25 -0
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +56 -0
- package/dist/cjs/homepage-toggled-content.cjs.entry.js +40 -0
- package/dist/cjs/jumbotron-sub-mune.cjs.entry.js +34 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +46 -0
- package/dist/cjs/ptc-info-tile.cjs.entry.js +29 -0
- package/dist/cjs/{ptc-breadcrumb_2.cjs.entry.js → ptc-jumbotron.cjs.entry.js} +1 -41
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.css +102 -0
- package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.js +81 -0
- package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.css +133 -0
- package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.js +61 -0
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +856 -0
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +134 -0
- package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.css +228 -0
- package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +47 -0
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +136 -0
- package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +136 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +2 -2
- package/dist/collection/components/ptc-media-card/ptc-media-card.css +6 -0
- package/dist/custom-elements/index.d.ts +30 -0
- package/dist/custom-elements/index.js +4733 -4566
- package/dist/esm/homepage-clickable-tab.entry.js +21 -0
- package/dist/esm/homepage-jumbotron.entry.js +52 -0
- package/dist/esm/homepage-toggled-content.entry.js +36 -0
- package/dist/esm/jumbotron-sub-mune.entry.js +30 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +42 -0
- package/dist/esm/ptc-info-tile.entry.js +25 -0
- package/dist/esm/{ptc-breadcrumb_2.entry.js → ptc-jumbotron.entry.js} +2 -41
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-22f5b976.entry.js +1 -0
- package/dist/ptcw-design/p-230f8bce.entry.js +1 -0
- package/dist/ptcw-design/p-2a999b1f.entry.js +1 -0
- package/dist/ptcw-design/p-84da0491.entry.js +1 -0
- package/dist/ptcw-design/{p-08937894.entry.js → p-9c9bab6c.entry.js} +1 -1
- package/dist/ptcw-design/p-c3bfaef4.entry.js +1 -0
- package/dist/ptcw-design/p-e347dc85.entry.js +1 -0
- package/dist/ptcw-design/p-e9bbf7b1.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/homepage-clickable-tab/homepage-clickable-tab.d.ts +8 -0
- package/dist/types/components/jumbotron-sub-mune/jumbotron-sub-mune.d.ts +7 -0
- package/dist/types/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.d.ts +14 -0
- package/dist/types/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.d.ts +12 -0
- package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +11 -0
- package/dist/types/components.d.ts +99 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-c0010157.entry.js +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4,
|
|
5
|
+
h5,
|
|
6
|
+
h6,
|
|
7
|
+
p,
|
|
8
|
+
ul,
|
|
9
|
+
li,
|
|
10
|
+
ptc-subnav,
|
|
11
|
+
ptc-tab-list,
|
|
12
|
+
ptc-link, ptc-square-card {
|
|
13
|
+
word-break: break-word;
|
|
14
|
+
hyphens: manual;
|
|
15
|
+
-webkit-hyphens: manual;
|
|
16
|
+
-moz-hyphens: manual;
|
|
17
|
+
-ms-hyphens: manual;
|
|
18
|
+
}
|
|
19
|
+
@supports (hyphenate-limit-chars: 12 3 3) {
|
|
20
|
+
h1,
|
|
21
|
+
h2,
|
|
22
|
+
h3,
|
|
23
|
+
h4,
|
|
24
|
+
h5,
|
|
25
|
+
h6,
|
|
26
|
+
p,
|
|
27
|
+
ul,
|
|
28
|
+
li,
|
|
29
|
+
ptc-subnav,
|
|
30
|
+
ptc-tab-list,
|
|
31
|
+
ptc-link, ptc-square-card {
|
|
32
|
+
hyphens: auto;
|
|
33
|
+
-webkit-hyphenate-limit-before: 3;
|
|
34
|
+
/* For Safari */
|
|
35
|
+
-webkit-hyphenate-limit-after: 3;
|
|
36
|
+
/* For Safari */
|
|
37
|
+
hyphenate-limit-chars: 12 3 3;
|
|
38
|
+
hyphenate-limit-lines: 2;
|
|
39
|
+
hyphenate-limit-last: always;
|
|
40
|
+
hyphenate-limit-zone: 6%;
|
|
41
|
+
-webkit-hyphens: auto;
|
|
42
|
+
-webkit-hyphenate-limit-before: 3;
|
|
43
|
+
-webkit-hyphenate-limit-after: 3;
|
|
44
|
+
-webkit-hyphenate-limit-chars: 12 3 3;
|
|
45
|
+
-webkit-hyphenate-limit-lines: 2;
|
|
46
|
+
-moz-hyphens: auto;
|
|
47
|
+
-moz-hyphenate-limit-chars: 12 3 3;
|
|
48
|
+
-moz-hyphenate-limit-lines: 2;
|
|
49
|
+
-ms-hyphens: auto;
|
|
50
|
+
-ms-hyphenate-limit-chars: 12 3 3;
|
|
51
|
+
-ms-hyphenate-limit-lines: 2;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.menu {
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
color: white;
|
|
58
|
+
position: relative;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.menu-list {
|
|
62
|
+
list-style: none;
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
justify-content: space-around;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.menu-list li {
|
|
71
|
+
margin: 0 10px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.menu-list a, .menu-list button {
|
|
75
|
+
color: white;
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
border: none;
|
|
78
|
+
background: none;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.menu-list a::after, .menu-list button::after {
|
|
84
|
+
content: "";
|
|
85
|
+
display: block;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 2px;
|
|
88
|
+
background: white;
|
|
89
|
+
transition: transform 0.3s ease;
|
|
90
|
+
transform: scaleX(0);
|
|
91
|
+
transform-origin: right;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.menu-list a:hover::after, .menu-list a:focus::after,
|
|
95
|
+
.menu-list button:hover::after, .menu-list button:focus::after {
|
|
96
|
+
transform: scaleX(1);
|
|
97
|
+
transform-origin: left;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mobile-menu-icon {
|
|
101
|
+
display: none;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
font-size: 24px;
|
|
104
|
+
text-align: center;
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (max-width: 768px) {
|
|
111
|
+
.menu-list {
|
|
112
|
+
display: none;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
width: 100%;
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 40px;
|
|
118
|
+
/* adjust according to your needs */
|
|
119
|
+
right: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.menu-list.open {
|
|
123
|
+
display: flex;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.mobile-menu-icon {
|
|
127
|
+
display: block;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.menu-list li {
|
|
131
|
+
margin: 10px 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class JumbotronSubMune {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.items = undefined;
|
|
5
|
+
this.isOpen = false;
|
|
6
|
+
}
|
|
7
|
+
getItems() {
|
|
8
|
+
try {
|
|
9
|
+
return JSON.parse(this.items);
|
|
10
|
+
}
|
|
11
|
+
catch (e) {
|
|
12
|
+
console.error('Invalid Json format for items prop', e);
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
toggleMenu() {
|
|
17
|
+
this.isOpen = !this.isOpen;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
const menuItems = this.getItems();
|
|
21
|
+
return (h("nav", { class: "menu" }, h("div", { class: "mobile-menu-icon", onClick: () => this.toggleMenu() }, h("span", null, this.isOpen ? '▲' : '▼')), h("ul", { class: `menu-list ${this.isOpen ? 'open' : ''}` }, menuItems.map(item => h("li", null, item.isButton ? (h("button", { onClick: () => { console.log('clicked!'); } }, item.text)) : (h("a", { href: item.link }, item.text)))))));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "jumbotron-sub-mune"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["jumbotron-sub-mune.scss"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["jumbotron-sub-mune.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"items": {
|
|
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": ""
|
|
50
|
+
},
|
|
51
|
+
"attribute": "items",
|
|
52
|
+
"reflect": false
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get states() {
|
|
57
|
+
return {
|
|
58
|
+
"isOpen": {}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|