@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.
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/ptcw-design/app-globals-0f993ce5.js +3 -0
- package/dist/ptcw-design/assets/ptc-sprite.svg +67 -0
- package/dist/ptcw-design/css-shim-003e9264.js +4 -0
- package/dist/ptcw-design/dom-1b195079.js +73 -0
- package/dist/{esm → ptcw-design}/icon-asset.entry.js +2 -2
- package/dist/{cjs/index-ac192914.js → ptcw-design/index-f7043a90.js} +1311 -195
- package/dist/ptcw-design/index.esm.js +1 -0
- package/dist/{esm → ptcw-design}/list-item.entry.js +1 -1
- package/dist/{esm → ptcw-design}/lottie-player.entry.js +782 -31
- package/dist/{esm → ptcw-design}/my-component.entry.js +1 -1
- package/dist/ptcw-design/ptc-announcement.entry.js +31 -0
- package/dist/ptcw-design/ptc-button.entry.js +57 -0
- package/dist/{esm → ptcw-design}/ptc-card.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-date.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-footer.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-image.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-img.entry.js +12 -1
- package/dist/{esm → ptcw-design}/ptc-link.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-list.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-lottie.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-nav-item.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-nav.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-overlay.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-para.entry.js +2 -2
- package/dist/{esm → ptcw-design}/ptc-picture.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-spacer.entry.js +1 -1
- package/dist/{esm → ptcw-design}/ptc-span.entry.js +1 -1
- package/dist/ptcw-design/ptc-svg-btn.entry.js +27 -0
- package/dist/{esm → ptcw-design}/ptc-title.entry.js +1 -1
- package/dist/ptcw-design/ptcw-design.css +1030 -2
- package/dist/ptcw-design/ptcw-design.esm.js +122 -1
- package/dist/ptcw-design/shadow-css-c1ad5fdc.js +383 -0
- package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
- package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +27 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +13 -1
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +4 -0
- package/dist/types/components.d.ts +94 -6
- package/package.json +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -64
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/list-item.cjs.entry.js +0 -27
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/lottie-player.cjs.entry.js +0 -13476
- package/dist/cjs/my-component.cjs.entry.js +0 -26
- package/dist/cjs/ptc-button.cjs.entry.js +0 -48
- package/dist/cjs/ptc-card.cjs.entry.js +0 -75
- package/dist/cjs/ptc-date.cjs.entry.js +0 -48
- package/dist/cjs/ptc-footer.cjs.entry.js +0 -19
- package/dist/cjs/ptc-image.cjs.entry.js +0 -58
- package/dist/cjs/ptc-img.cjs.entry.js +0 -163
- package/dist/cjs/ptc-link.cjs.entry.js +0 -53
- package/dist/cjs/ptc-list.cjs.entry.js +0 -32
- package/dist/cjs/ptc-lottie.cjs.entry.js +0 -23
- package/dist/cjs/ptc-nav-item.cjs.entry.js +0 -94
- package/dist/cjs/ptc-nav.cjs.entry.js +0 -19
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
- package/dist/cjs/ptc-para.cjs.entry.js +0 -40
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -26
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
- package/dist/cjs/ptc-span.cjs.entry.js +0 -31
- package/dist/cjs/ptc-title.cjs.entry.js +0 -49
- package/dist/cjs/ptcw-design.cjs.js +0 -19
- package/dist/collection/assets/responsive-background-image.min.js +0 -1
- package/dist/collection/collection-manifest.json +0 -38
- package/dist/collection/components/icon-asset/assets/brands.svg +0 -1381
- package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
- package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +0 -77
- package/dist/collection/components/icon-asset/assets/regular.svg +0 -463
- package/dist/collection/components/icon-asset/assets/solid.svg +0 -3013
- package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +0 -5
- package/dist/collection/components/icon-asset/icon-asset.css +0 -26
- package/dist/collection/components/icon-asset/icon-asset.js +0 -177
- package/dist/collection/components/list-item/list-item.css +0 -3
- package/dist/collection/components/list-item/list-item.js +0 -63
- package/dist/collection/components/my-component/my-component.css +0 -3
- package/dist/collection/components/my-component/my-component.js +0 -74
- package/dist/collection/components/ptc-button/ptc-button.css +0 -76
- package/dist/collection/components/ptc-button/ptc-button.js +0 -153
- package/dist/collection/components/ptc-card/ptc-card.css +0 -239
- package/dist/collection/components/ptc-card/ptc-card.js +0 -260
- package/dist/collection/components/ptc-date/ptc-date.css +0 -3
- package/dist/collection/components/ptc-date/ptc-date.js +0 -155
- package/dist/collection/components/ptc-footer/ptc-footer.css +0 -40
- package/dist/collection/components/ptc-footer/ptc-footer.js +0 -25
- package/dist/collection/components/ptc-image/ptc-image.css +0 -4
- package/dist/collection/components/ptc-image/ptc-image.js +0 -92
- package/dist/collection/components/ptc-img/ptc-img.css +0 -65
- package/dist/collection/components/ptc-img/ptc-img.js +0 -318
- package/dist/collection/components/ptc-link/ptc-link.css +0 -168
- package/dist/collection/components/ptc-link/ptc-link.js +0 -197
- package/dist/collection/components/ptc-list/ptc-list.css +0 -24
- package/dist/collection/components/ptc-list/ptc-list.js +0 -66
- package/dist/collection/components/ptc-lottie/ptc-lottie.css +0 -5
- package/dist/collection/components/ptc-lottie/ptc-lottie.js +0 -58
- package/dist/collection/components/ptc-nav/ptc-nav.css +0 -29
- package/dist/collection/components/ptc-nav/ptc-nav.js +0 -21
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +0 -81
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +0 -252
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +0 -3
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +0 -14
- package/dist/collection/components/ptc-para/ptc-para.css +0 -57
- package/dist/collection/components/ptc-para/ptc-para.js +0 -111
- package/dist/collection/components/ptc-picture/ptc-picture.css +0 -3
- package/dist/collection/components/ptc-picture/ptc-picture.js +0 -44
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +0 -307
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +0 -99
- package/dist/collection/components/ptc-span/ptc-span.css +0 -36
- package/dist/collection/components/ptc-span/ptc-span.js +0 -86
- package/dist/collection/components/ptc-title/ptc-title.css +0 -64
- package/dist/collection/components/ptc-title/ptc-title.js +0 -105
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/interfaces.js +0 -6
- package/dist/collection/utils/utils.js +0 -3
- package/dist/custom-elements/index.js +0 -14381
- package/dist/esm/index-5b1c792c.js +0 -1687
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/ptc-button.entry.js +0 -44
- package/dist/esm/ptcw-design.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +0 -187
- package/dist/ptcw-design/p-00b6c442.entry.js +0 -1
- package/dist/ptcw-design/p-01dc360c.entry.js +0 -1
- package/dist/ptcw-design/p-07624831.entry.js +0 -1
- package/dist/ptcw-design/p-0a44a2f7.entry.js +0 -1
- package/dist/ptcw-design/p-1a26bade.entry.js +0 -1
- package/dist/ptcw-design/p-2d357f92.entry.js +0 -1
- package/dist/ptcw-design/p-31f4bd0c.entry.js +0 -1
- package/dist/ptcw-design/p-3af43980.entry.js +0 -1
- package/dist/ptcw-design/p-4f366fc3.js +0 -1
- package/dist/ptcw-design/p-662ae9b6.entry.js +0 -1
- package/dist/ptcw-design/p-70adca2e.entry.js +0 -1
- package/dist/ptcw-design/p-76dfa56f.entry.js +0 -1
- package/dist/ptcw-design/p-77f87fa3.entry.js +0 -1
- package/dist/ptcw-design/p-7a63ca63.entry.js +0 -1
- package/dist/ptcw-design/p-83696cae.entry.js +0 -1
- package/dist/ptcw-design/p-83d98048.entry.js +0 -1
- package/dist/ptcw-design/p-85131a2a.entry.js +0 -1
- package/dist/ptcw-design/p-ac0ad25e.entry.js +0 -1
- package/dist/ptcw-design/p-c169281f.entry.js +0 -1
- package/dist/ptcw-design/p-ce8b8a72.entry.js +0 -1
- package/dist/ptcw-design/p-d4f117d2.entry.js +0 -1
- package/dist/ptcw-design/p-fe6a3ba5.entry.js +0 -1
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop, Host } from '@stencil/core';
|
|
2
|
-
export class PtcLink {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Disabled link
|
|
6
|
-
*/
|
|
7
|
-
this.disabled = false;
|
|
8
|
-
/**
|
|
9
|
-
* Rxternal link
|
|
10
|
-
* */
|
|
11
|
-
this.external = false;
|
|
12
|
-
/**
|
|
13
|
-
* Target
|
|
14
|
-
*/
|
|
15
|
-
this.target = '_self';
|
|
16
|
-
/**
|
|
17
|
-
* Theme
|
|
18
|
-
*/
|
|
19
|
-
this.theme = 'simple';
|
|
20
|
-
/**
|
|
21
|
-
* Uppercase
|
|
22
|
-
*/
|
|
23
|
-
this.uppercase = false;
|
|
24
|
-
/**
|
|
25
|
-
* Font Size
|
|
26
|
-
*/
|
|
27
|
-
this.fontSize = 'medium';
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
const classMap = this.getCssClassMap();
|
|
31
|
-
return (h(Host, null,
|
|
32
|
-
h("a", { class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle },
|
|
33
|
-
this.theme == 'arrow' ? h("icon-asset", { type: "solid", size: "small", name: "arrow-right" }) : '',
|
|
34
|
-
h("slot", null))));
|
|
35
|
-
}
|
|
36
|
-
getCssClassMap() {
|
|
37
|
-
return {
|
|
38
|
-
['ptc-link']: true,
|
|
39
|
-
[this.theme]: true,
|
|
40
|
-
['uppercase']: this.uppercase,
|
|
41
|
-
['disabled']: this.disabled,
|
|
42
|
-
[this.fontSize]: true,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
static get is() { return "ptc-link"; }
|
|
46
|
-
static get encapsulation() { return "shadow"; }
|
|
47
|
-
static get originalStyleUrls() { return {
|
|
48
|
-
"$": ["ptc-link.scss"]
|
|
49
|
-
}; }
|
|
50
|
-
static get styleUrls() { return {
|
|
51
|
-
"$": ["ptc-link.css"]
|
|
52
|
-
}; }
|
|
53
|
-
static get properties() { return {
|
|
54
|
-
"disabled": {
|
|
55
|
-
"type": "boolean",
|
|
56
|
-
"mutable": false,
|
|
57
|
-
"complexType": {
|
|
58
|
-
"original": "boolean",
|
|
59
|
-
"resolved": "boolean",
|
|
60
|
-
"references": {}
|
|
61
|
-
},
|
|
62
|
-
"required": false,
|
|
63
|
-
"optional": false,
|
|
64
|
-
"docs": {
|
|
65
|
-
"tags": [],
|
|
66
|
-
"text": "Disabled link"
|
|
67
|
-
},
|
|
68
|
-
"attribute": "disabled",
|
|
69
|
-
"reflect": true,
|
|
70
|
-
"defaultValue": "false"
|
|
71
|
-
},
|
|
72
|
-
"external": {
|
|
73
|
-
"type": "boolean",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "boolean",
|
|
77
|
-
"resolved": "boolean",
|
|
78
|
-
"references": {}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": false,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": "Rxternal link"
|
|
85
|
-
},
|
|
86
|
-
"attribute": "external",
|
|
87
|
-
"reflect": true,
|
|
88
|
-
"defaultValue": "false"
|
|
89
|
-
},
|
|
90
|
-
"href": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"mutable": false,
|
|
93
|
-
"complexType": {
|
|
94
|
-
"original": "string | undefined",
|
|
95
|
-
"resolved": "string",
|
|
96
|
-
"references": {}
|
|
97
|
-
},
|
|
98
|
-
"required": false,
|
|
99
|
-
"optional": false,
|
|
100
|
-
"docs": {
|
|
101
|
-
"tags": [],
|
|
102
|
-
"text": "href"
|
|
103
|
-
},
|
|
104
|
-
"attribute": "href",
|
|
105
|
-
"reflect": false
|
|
106
|
-
},
|
|
107
|
-
"target": {
|
|
108
|
-
"type": "string",
|
|
109
|
-
"mutable": false,
|
|
110
|
-
"complexType": {
|
|
111
|
-
"original": "string | undefined",
|
|
112
|
-
"resolved": "string",
|
|
113
|
-
"references": {}
|
|
114
|
-
},
|
|
115
|
-
"required": false,
|
|
116
|
-
"optional": false,
|
|
117
|
-
"docs": {
|
|
118
|
-
"tags": [],
|
|
119
|
-
"text": "Target"
|
|
120
|
-
},
|
|
121
|
-
"attribute": "target",
|
|
122
|
-
"reflect": false,
|
|
123
|
-
"defaultValue": "'_self'"
|
|
124
|
-
},
|
|
125
|
-
"linkTitle": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"mutable": false,
|
|
128
|
-
"complexType": {
|
|
129
|
-
"original": "string | undefined",
|
|
130
|
-
"resolved": "string",
|
|
131
|
-
"references": {}
|
|
132
|
-
},
|
|
133
|
-
"required": false,
|
|
134
|
-
"optional": false,
|
|
135
|
-
"docs": {
|
|
136
|
-
"tags": [],
|
|
137
|
-
"text": "Title"
|
|
138
|
-
},
|
|
139
|
-
"attribute": "link-title",
|
|
140
|
-
"reflect": false
|
|
141
|
-
},
|
|
142
|
-
"theme": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"mutable": false,
|
|
145
|
-
"complexType": {
|
|
146
|
-
"original": "'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link'",
|
|
147
|
-
"resolved": "\"arrow\" | \"copyright-link\" | \"footer-nav-link\" | \"nav-title\" | \"nav-title-link\" | \"primary-nav-link\" | \"secondary-nav-link\" | \"simple\"",
|
|
148
|
-
"references": {}
|
|
149
|
-
},
|
|
150
|
-
"required": false,
|
|
151
|
-
"optional": false,
|
|
152
|
-
"docs": {
|
|
153
|
-
"tags": [],
|
|
154
|
-
"text": "Theme"
|
|
155
|
-
},
|
|
156
|
-
"attribute": "theme",
|
|
157
|
-
"reflect": false,
|
|
158
|
-
"defaultValue": "'simple'"
|
|
159
|
-
},
|
|
160
|
-
"uppercase": {
|
|
161
|
-
"type": "boolean",
|
|
162
|
-
"mutable": false,
|
|
163
|
-
"complexType": {
|
|
164
|
-
"original": "boolean",
|
|
165
|
-
"resolved": "boolean",
|
|
166
|
-
"references": {}
|
|
167
|
-
},
|
|
168
|
-
"required": false,
|
|
169
|
-
"optional": false,
|
|
170
|
-
"docs": {
|
|
171
|
-
"tags": [],
|
|
172
|
-
"text": "Uppercase"
|
|
173
|
-
},
|
|
174
|
-
"attribute": "uppercase",
|
|
175
|
-
"reflect": false,
|
|
176
|
-
"defaultValue": "false"
|
|
177
|
-
},
|
|
178
|
-
"fontSize": {
|
|
179
|
-
"type": "string",
|
|
180
|
-
"mutable": false,
|
|
181
|
-
"complexType": {
|
|
182
|
-
"original": "'small' | 'medium' | 'large'",
|
|
183
|
-
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
184
|
-
"references": {}
|
|
185
|
-
},
|
|
186
|
-
"required": false,
|
|
187
|
-
"optional": false,
|
|
188
|
-
"docs": {
|
|
189
|
-
"tags": [],
|
|
190
|
-
"text": "Font Size"
|
|
191
|
-
},
|
|
192
|
-
"attribute": "font-size",
|
|
193
|
-
"reflect": false,
|
|
194
|
-
"defaultValue": "'medium'"
|
|
195
|
-
}
|
|
196
|
-
}; }
|
|
197
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
ptc-list .link-primary li {
|
|
2
|
-
font-size: var(--ptc-font-size-medium);
|
|
3
|
-
line-height: var(--ptc-line-height-normal);
|
|
4
|
-
letter-spacing: var(--ptc-letter-spacing-normal);
|
|
5
|
-
list-style: none;
|
|
6
|
-
}
|
|
7
|
-
ptc-list .link-primary li:not(:last-child) {
|
|
8
|
-
margin-bottom: 0.625rem;
|
|
9
|
-
}
|
|
10
|
-
ptc-list .link-primary li a {
|
|
11
|
-
color: var(--color-white);
|
|
12
|
-
outline: none;
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
font-family: Rajdhani;
|
|
15
|
-
font-size: var(--ptc-font-size-medium);
|
|
16
|
-
font-weight: var(--ptc-font-weight-bold);
|
|
17
|
-
line-height: var(--ptc-line-height-normal);
|
|
18
|
-
text-transform: uppercase;
|
|
19
|
-
letter-spacing: var(--ptc-letter-spacing-normal);
|
|
20
|
-
}
|
|
21
|
-
ptc-list .link-primary li a:hover {
|
|
22
|
-
color: var(--color-white);
|
|
23
|
-
border-bottom: 1.5px solid var(--color-primary-green);
|
|
24
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
-
export class PtcList {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.listType = 'para-list';
|
|
5
|
-
}
|
|
6
|
-
render() {
|
|
7
|
-
const classMap = this.getCssClassMap();
|
|
8
|
-
const listItems = this.listItems;
|
|
9
|
-
if (!listItems || listItems.length === 0) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
return (h(Host, { class: classMap },
|
|
13
|
-
h("ul", null, listItems.map(listItem => {
|
|
14
|
-
h("li", null,
|
|
15
|
-
"$",
|
|
16
|
-
listItem);
|
|
17
|
-
}))));
|
|
18
|
-
}
|
|
19
|
-
getCssClassMap() {
|
|
20
|
-
return {
|
|
21
|
-
[this.listType]: true,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
static get is() { return "ptc-list"; }
|
|
25
|
-
static get originalStyleUrls() { return {
|
|
26
|
-
"$": ["ptc-list.scss"]
|
|
27
|
-
}; }
|
|
28
|
-
static get styleUrls() { return {
|
|
29
|
-
"$": ["ptc-list.css"]
|
|
30
|
-
}; }
|
|
31
|
-
static get properties() { return {
|
|
32
|
-
"listType": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"mutable": false,
|
|
35
|
-
"complexType": {
|
|
36
|
-
"original": "'link-primary' | 'link-sub' | 'icon' | 'para-list'",
|
|
37
|
-
"resolved": "\"icon\" | \"link-primary\" | \"link-sub\" | \"para-list\"",
|
|
38
|
-
"references": {}
|
|
39
|
-
},
|
|
40
|
-
"required": false,
|
|
41
|
-
"optional": false,
|
|
42
|
-
"docs": {
|
|
43
|
-
"tags": [],
|
|
44
|
-
"text": ""
|
|
45
|
-
},
|
|
46
|
-
"attribute": "list-type",
|
|
47
|
-
"reflect": false,
|
|
48
|
-
"defaultValue": "'para-list'"
|
|
49
|
-
},
|
|
50
|
-
"listItems": {
|
|
51
|
-
"type": "unknown",
|
|
52
|
-
"mutable": false,
|
|
53
|
-
"complexType": {
|
|
54
|
-
"original": "string[]",
|
|
55
|
-
"resolved": "string[]",
|
|
56
|
-
"references": {}
|
|
57
|
-
},
|
|
58
|
-
"required": false,
|
|
59
|
-
"optional": true,
|
|
60
|
-
"docs": {
|
|
61
|
-
"tags": [],
|
|
62
|
-
"text": ""
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}; }
|
|
66
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop } from '@stencil/core';
|
|
2
|
-
import '@teamhive/lottie-player';
|
|
3
|
-
export class PtcLottie {
|
|
4
|
-
constructor() {
|
|
5
|
-
/**
|
|
6
|
-
* Animation speed
|
|
7
|
-
*/
|
|
8
|
-
this.speed = 1;
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return (h("lottie-player", { autoplay: true, loop: true, src: this.jsonSrc, speed: this.speed }));
|
|
12
|
-
}
|
|
13
|
-
static get is() { return "ptc-lottie"; }
|
|
14
|
-
static get encapsulation() { return "shadow"; }
|
|
15
|
-
static get originalStyleUrls() { return {
|
|
16
|
-
"$": ["ptc-lottie.css"]
|
|
17
|
-
}; }
|
|
18
|
-
static get styleUrls() { return {
|
|
19
|
-
"$": ["ptc-lottie.css"]
|
|
20
|
-
}; }
|
|
21
|
-
static get properties() { return {
|
|
22
|
-
"jsonSrc": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"mutable": true,
|
|
25
|
-
"complexType": {
|
|
26
|
-
"original": "string",
|
|
27
|
-
"resolved": "string",
|
|
28
|
-
"references": {}
|
|
29
|
-
},
|
|
30
|
-
"required": false,
|
|
31
|
-
"optional": false,
|
|
32
|
-
"docs": {
|
|
33
|
-
"tags": [],
|
|
34
|
-
"text": "Set Json file src"
|
|
35
|
-
},
|
|
36
|
-
"attribute": "json-src",
|
|
37
|
-
"reflect": false
|
|
38
|
-
},
|
|
39
|
-
"speed": {
|
|
40
|
-
"type": "number",
|
|
41
|
-
"mutable": true,
|
|
42
|
-
"complexType": {
|
|
43
|
-
"original": "number",
|
|
44
|
-
"resolved": "number",
|
|
45
|
-
"references": {}
|
|
46
|
-
},
|
|
47
|
-
"required": false,
|
|
48
|
-
"optional": false,
|
|
49
|
-
"docs": {
|
|
50
|
-
"tags": [],
|
|
51
|
-
"text": "Animation speed"
|
|
52
|
-
},
|
|
53
|
-
"attribute": "speed",
|
|
54
|
-
"reflect": false,
|
|
55
|
-
"defaultValue": "1"
|
|
56
|
-
}
|
|
57
|
-
}; }
|
|
58
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.nav-style {
|
|
6
|
-
background-color: #1c2126;
|
|
7
|
-
display: block;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media only screen and (min-width: 992px) {
|
|
11
|
-
.nav-style {
|
|
12
|
-
display: grid;
|
|
13
|
-
grid-template-columns: auto fit-content(76px);
|
|
14
|
-
grid-template-rows: fit-content(22px) 1fr;
|
|
15
|
-
grid-template-areas: "secondary secondary" "primary language";
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.primary-nav {
|
|
19
|
-
grid-area: primary;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.secondary-nav {
|
|
23
|
-
grid-area: secondary;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.language-nav {
|
|
27
|
-
grid-area: language;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h } from '@stencil/core';
|
|
2
|
-
export class PtcNav {
|
|
3
|
-
render() {
|
|
4
|
-
return (h(Host, null,
|
|
5
|
-
h("nav", { class: "nav-style" },
|
|
6
|
-
h("div", { class: "primary-nav", part: "primary-nav-part" },
|
|
7
|
-
h("slot", { name: "primary-nav-content" })),
|
|
8
|
-
h("div", { class: "secondary-nav", part: "secondary-nav-part" },
|
|
9
|
-
h("slot", { name: "secondary-nav-content" })),
|
|
10
|
-
h("div", { class: "language-nav", part: "language-nav-part" },
|
|
11
|
-
h("slot", { name: "language-nav-content" })))));
|
|
12
|
-
}
|
|
13
|
-
static get is() { return "ptc-nav"; }
|
|
14
|
-
static get encapsulation() { return "shadow"; }
|
|
15
|
-
static get originalStyleUrls() { return {
|
|
16
|
-
"$": ["ptc-nav.scss"]
|
|
17
|
-
}; }
|
|
18
|
-
static get styleUrls() { return {
|
|
19
|
-
"$": ["ptc-nav.css"]
|
|
20
|
-
}; }
|
|
21
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
}
|
|
5
|
-
@media screen and (min-width: 992px) {
|
|
6
|
-
:host {
|
|
7
|
-
width: auto;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host([depth="2"]) a {
|
|
12
|
-
font-family: var(--ptc-font-secondary-latin);
|
|
13
|
-
font-size: var(--ptc-font-size-medium);
|
|
14
|
-
font-weight: var(--ptc-font-weight-bold);
|
|
15
|
-
line-height: var(--ptc-line-height-dense);
|
|
16
|
-
letter-spacing: var(--ptc-letter-spacing-dense);
|
|
17
|
-
margin-bottom: var(--ptc-element-spacing-03);
|
|
18
|
-
padding-left: 50px;
|
|
19
|
-
}
|
|
20
|
-
@media screen and (min-width: 992px) {
|
|
21
|
-
:host([depth="2"]) a {
|
|
22
|
-
padding-left: 0px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([depth="1"]) a {
|
|
27
|
-
font-weight: var(--ptc-font-weight-bold);
|
|
28
|
-
line-height: var(--ptc-line-height-dense);
|
|
29
|
-
letter-spacing: var(--ptc-letter-spacing-dense);
|
|
30
|
-
padding: 20px 25px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([nav-type=secondary-nav]) a {
|
|
34
|
-
font-size: var(--ptc-font-size-x-small);
|
|
35
|
-
font-weight: var(--ptc-font-weight-thin);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([nav-type=language-nav]) a {
|
|
39
|
-
font-size: var(--ptc-font-size-x-small);
|
|
40
|
-
font-weight: var(--ptc-font-weight-thin);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@media only screen and (min-width: 992px) {
|
|
44
|
-
.primary-nav ~ .ptc-nav-children {
|
|
45
|
-
position: absolute;
|
|
46
|
-
left: 0;
|
|
47
|
-
}
|
|
48
|
-
.primary-nav ~ .ptc-nav-children ::slotted(.nav-tab) {
|
|
49
|
-
background-color: #1c2126;
|
|
50
|
-
display: flex;
|
|
51
|
-
width: 100vw;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.language-nav ~ .ptc-nav-children {
|
|
55
|
-
position: absolute;
|
|
56
|
-
background-color: #1c2126;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
a[aria-expanded=true] ~ .ptc-nav-children {
|
|
60
|
-
padding-top: var(--ptc-element-spacing-04);
|
|
61
|
-
max-height: 2000px;
|
|
62
|
-
}
|
|
63
|
-
@media screen and (min-width: 992px) {
|
|
64
|
-
a[aria-expanded=true] ~ .ptc-nav-children {
|
|
65
|
-
padding-top: 0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ptc-nav-children {
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
max-height: 0;
|
|
72
|
-
transition: max-height 0.25s ease-in-out, padding-top 0.25s ease-in-out;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
a {
|
|
76
|
-
color: var(--color-white);
|
|
77
|
-
text-transform: uppercase;
|
|
78
|
-
display: block;
|
|
79
|
-
outline: none;
|
|
80
|
-
text-decoration: none;
|
|
81
|
-
}
|