@ptcwebops/ptcw-design 0.0.4 → 0.0.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/icon-asset.cjs.entry.js +64 -0
- package/dist/cjs/{index-825cf1b6.js → index-ac192914.js} +268 -6
- package/dist/cjs/list-item.cjs.entry.js +27 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottie-player.cjs.entry.js +13476 -0
- package/dist/cjs/my-component.cjs.entry.js +26 -0
- package/dist/cjs/ptc-button.cjs.entry.js +48 -0
- package/dist/cjs/ptc-card.cjs.entry.js +52 -3
- package/dist/cjs/ptc-date.cjs.entry.js +39 -0
- package/dist/cjs/ptc-footer.cjs.entry.js +19 -0
- package/dist/cjs/ptc-image.cjs.entry.js +2 -6
- package/dist/cjs/ptc-img.cjs.entry.js +84 -0
- package/dist/cjs/ptc-link.cjs.entry.js +10 -5
- package/dist/cjs/ptc-list.cjs.entry.js +11 -3
- package/dist/cjs/ptc-lottie.cjs.entry.js +23 -0
- package/dist/cjs/ptc-nav-item.cjs.entry.js +94 -0
- package/dist/cjs/ptc-nav.cjs.entry.js +19 -0
- package/dist/cjs/ptc-overlay.cjs.entry.js +19 -0
- package/dist/cjs/ptc-para.cjs.entry.js +39 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +26 -0
- package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
- package/dist/cjs/ptc-span.cjs.entry.js +26 -0
- package/dist/cjs/ptc-title.cjs.entry.js +49 -0
- package/dist/cjs/ptcw-design.cjs.js +2 -2
- package/dist/collection/assets/responsive-background-image.min.js +1 -0
- package/dist/collection/collection-manifest.json +20 -1
- package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
- package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +73 -0
- package/dist/collection/components/icon-asset/icon-asset.css +6 -2
- package/dist/collection/components/icon-asset/icon-asset.js +25 -16
- package/dist/collection/components/list-item/list-item.css +3 -0
- package/dist/collection/components/list-item/list-item.js +63 -0
- package/dist/collection/components/ptc-button/ptc-button.css +35 -136
- package/dist/collection/components/ptc-button/ptc-button.js +45 -47
- package/dist/collection/components/ptc-card/ptc-card.css +87 -0
- package/dist/collection/components/ptc-card/ptc-card.js +233 -7
- package/dist/collection/components/ptc-date/ptc-date.css +3 -0
- package/dist/collection/components/ptc-date/ptc-date.js +110 -0
- package/dist/collection/components/ptc-footer/ptc-footer.css +40 -0
- package/dist/collection/components/ptc-footer/ptc-footer.js +25 -0
- package/dist/collection/components/ptc-image/ptc-image.css +3 -2
- package/dist/collection/components/ptc-image/ptc-image.js +0 -4
- package/dist/collection/components/ptc-img/ptc-img.css +48 -0
- package/dist/collection/components/ptc-img/ptc-img.js +192 -0
- package/dist/collection/components/ptc-link/ptc-link.css +23 -13
- package/dist/collection/components/ptc-link/ptc-link.js +22 -15
- package/dist/collection/components/ptc-list/ptc-list.css +23 -2
- package/dist/collection/components/ptc-list/ptc-list.js +53 -5
- package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -0
- package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -0
- package/dist/collection/components/ptc-nav/ptc-nav.css +29 -0
- package/dist/collection/components/ptc-nav/ptc-nav.js +21 -0
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +81 -0
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +3 -0
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +14 -0
- package/dist/collection/components/ptc-para/ptc-para.css +53 -0
- package/dist/collection/components/ptc-para/ptc-para.js +92 -0
- package/dist/collection/components/ptc-picture/ptc-picture.css +3 -0
- package/dist/collection/components/ptc-picture/ptc-picture.js +44 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +307 -0
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -0
- package/dist/collection/components/ptc-span/ptc-span.css +16 -0
- package/dist/collection/components/ptc-span/ptc-span.js +44 -0
- package/dist/collection/utils/interfaces.js +6 -1
- package/dist/custom-elements/index.d.ts +72 -0
- package/dist/custom-elements/index.js +13992 -41
- package/dist/esm/icon-asset.entry.js +60 -0
- package/dist/esm/{index-4bbf8fa5.js → index-5b1c792c.js} +268 -7
- package/dist/esm/list-item.entry.js +23 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +13472 -0
- package/dist/esm/my-component.entry.js +22 -0
- package/dist/esm/ptc-button.entry.js +44 -0
- package/dist/esm/ptc-card.entry.js +52 -3
- package/dist/esm/ptc-date.entry.js +35 -0
- package/dist/esm/ptc-footer.entry.js +15 -0
- package/dist/esm/ptc-image.entry.js +2 -6
- package/dist/esm/ptc-img.entry.js +80 -0
- package/dist/esm/ptc-link.entry.js +10 -5
- package/dist/esm/ptc-list.entry.js +11 -3
- package/dist/esm/ptc-lottie.entry.js +19 -0
- package/dist/esm/ptc-nav-item.entry.js +90 -0
- package/dist/esm/ptc-nav.entry.js +15 -0
- package/dist/esm/ptc-overlay.entry.js +15 -0
- package/dist/esm/ptc-para.entry.js +35 -0
- package/dist/esm/ptc-picture.entry.js +22 -0
- package/dist/esm/ptc-spacer.entry.js +42 -0
- package/dist/esm/ptc-span.entry.js +22 -0
- package/dist/esm/ptc-title.entry.js +45 -0
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +187 -0
- package/dist/ptcw-design/assets/footer-social.svg +0 -0
- package/dist/ptcw-design/assets/ptc-sprite.svg +73 -0
- package/dist/ptcw-design/p-01dc360c.entry.js +1 -0
- package/dist/ptcw-design/p-07624831.entry.js +1 -0
- package/dist/ptcw-design/p-0a44a2f7.entry.js +1 -0
- package/dist/ptcw-design/p-15a428d4.entry.js +1 -0
- package/dist/ptcw-design/p-1a26bade.entry.js +1 -0
- package/dist/ptcw-design/p-1b4fd3da.entry.js +1 -0
- package/dist/ptcw-design/p-2d357f92.entry.js +1 -0
- package/dist/ptcw-design/p-31f4bd0c.entry.js +1 -0
- package/dist/ptcw-design/p-3af43980.entry.js +1 -0
- package/dist/ptcw-design/p-4f366fc3.js +1 -0
- package/dist/ptcw-design/p-662ae9b6.entry.js +1 -0
- package/dist/ptcw-design/p-77f87fa3.entry.js +1 -0
- package/dist/ptcw-design/p-85131a2a.entry.js +1 -0
- package/dist/ptcw-design/p-8b6c805c.entry.js +1 -0
- package/dist/ptcw-design/p-9f96864d.entry.js +1 -0
- package/dist/ptcw-design/p-ac0ad25e.entry.js +1 -0
- package/dist/ptcw-design/p-b0b2e82c.entry.js +1 -0
- package/dist/ptcw-design/{p-9aef6d0e.entry.js → p-c169281f.entry.js} +1 -1
- package/dist/ptcw-design/p-ce8b8a72.entry.js +1 -0
- package/dist/ptcw-design/p-d0909325.entry.js +1 -0
- package/dist/ptcw-design/p-df01ac95.entry.js +1 -0
- package/dist/ptcw-design/p-fe6a3ba5.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/icon-asset/icon-asset.d.ts +6 -5
- package/dist/types/components/list-item/list-item.d.ts +6 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +9 -7
- package/dist/types/components/ptc-card/ptc-card.d.ts +42 -2
- package/dist/types/components/ptc-date/ptc-date.d.ts +22 -0
- package/dist/types/components/ptc-footer/ptc-footer.d.ts +3 -0
- package/dist/types/components/ptc-img/ptc-img.d.ts +14 -0
- package/dist/types/components/ptc-link/ptc-link.d.ts +2 -2
- package/dist/types/components/ptc-list/ptc-list.d.ts +3 -0
- package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -0
- package/dist/types/components/ptc-nav/ptc-nav.d.ts +3 -0
- package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +53 -0
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +3 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +16 -0
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -0
- package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -0
- package/dist/types/components/ptc-span/ptc-span.d.ts +5 -0
- package/dist/types/components.d.ts +442 -38
- package/dist/types/utils/interfaces.d.ts +7 -1
- package/package.json +2 -1
- package/dist/cjs/icon-asset_4.cjs.entry.js +0 -165
- package/dist/esm/icon-asset_4.entry.js +0 -158
- package/dist/ptcw-design/p-0492a377.entry.js +0 -1
- package/dist/ptcw-design/p-bd9fac27.entry.js +0 -1
- package/dist/ptcw-design/p-d855d70c.js +0 -1
- package/dist/ptcw-design/p-e33cba65.entry.js +0 -1
- package/dist/ptcw-design/p-e899eb48.entry.js +0 -1
|
@@ -10,13 +10,13 @@ export namespace Components {
|
|
|
10
10
|
/**
|
|
11
11
|
* Icon Color
|
|
12
12
|
*/
|
|
13
|
-
"color": 'black' | 'white'| 'ptc-green';
|
|
13
|
+
"color": 'black' | 'white' | 'ptc-green';
|
|
14
14
|
/**
|
|
15
15
|
* Icon ID name
|
|
16
16
|
*/
|
|
17
17
|
"name": string;
|
|
18
18
|
/**
|
|
19
|
-
* Icon Pulse Animation
|
|
19
|
+
* Icon Pulse Animation (not valid for ptc type)
|
|
20
20
|
*/
|
|
21
21
|
"pulse": 'fa-pulse' | '';
|
|
22
22
|
/**
|
|
@@ -24,13 +24,17 @@ export namespace Components {
|
|
|
24
24
|
*/
|
|
25
25
|
"size": 'small' | 'large';
|
|
26
26
|
/**
|
|
27
|
-
* Icon Spin Animation
|
|
27
|
+
* Icon Spin Animation (not valid for ptc type)
|
|
28
28
|
*/
|
|
29
29
|
"spin": 'fa-spin' | '';
|
|
30
30
|
/**
|
|
31
31
|
* Icon Type
|
|
32
32
|
*/
|
|
33
|
-
"type": 'solid' | '
|
|
33
|
+
"type": 'solid' | 'brands' | 'ptc' | 'regular';
|
|
34
|
+
}
|
|
35
|
+
interface ListItem {
|
|
36
|
+
"linkHref"?: string;
|
|
37
|
+
"listType": 'link-primary' | 'link-sub' | 'icon' | 'para-list';
|
|
34
38
|
}
|
|
35
39
|
interface MyComponent {
|
|
36
40
|
/**
|
|
@@ -50,23 +54,19 @@ export namespace Components {
|
|
|
50
54
|
/**
|
|
51
55
|
* Button theme color
|
|
52
56
|
*/
|
|
53
|
-
"color": 'offwhite' | 'blackgrey' | 'turtlegreen'| 'neon';
|
|
57
|
+
"color": 'offwhite' | 'blackgrey' | 'turtlegreen' | 'neon';
|
|
54
58
|
/**
|
|
55
59
|
* Disabled button
|
|
56
60
|
*/
|
|
57
|
-
"disabled"
|
|
61
|
+
"disabled"?: boolean | undefined;
|
|
58
62
|
/**
|
|
59
63
|
* Icon Animation
|
|
60
64
|
*/
|
|
61
|
-
"
|
|
62
|
-
/**
|
|
63
|
-
* Button shape
|
|
64
|
-
*/
|
|
65
|
-
"shape": 'square' | 'round';
|
|
65
|
+
"iconAnimation": 'animation-right' | 'animation-down' | '';
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Icon Position
|
|
68
68
|
*/
|
|
69
|
-
"
|
|
69
|
+
"iconPosition": 'icon-left' | 'icon-right';
|
|
70
70
|
/**
|
|
71
71
|
* Button type
|
|
72
72
|
*/
|
|
@@ -74,9 +74,65 @@ export namespace Components {
|
|
|
74
74
|
}
|
|
75
75
|
interface PtcCard {
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Card Link URL (Optional)
|
|
78
78
|
*/
|
|
79
|
-
"
|
|
79
|
+
"cardHref"?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Card Type Specify Card Type, default to simple card
|
|
82
|
+
*/
|
|
83
|
+
"cardType": 'simple-card' | 'lotti-image-card-1' | 'normal-image-card-1' | 'highlight-card';
|
|
84
|
+
/**
|
|
85
|
+
* If this card has Image
|
|
86
|
+
*/
|
|
87
|
+
"hasImage": boolean;
|
|
88
|
+
/**
|
|
89
|
+
* If this card has Lottie Image
|
|
90
|
+
*/
|
|
91
|
+
"hasLottie": boolean;
|
|
92
|
+
/**
|
|
93
|
+
* If this card has Video
|
|
94
|
+
*/
|
|
95
|
+
"hasVideo": boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Card heading
|
|
98
|
+
*/
|
|
99
|
+
"heading": string;
|
|
100
|
+
/**
|
|
101
|
+
* Card Heading Arrow (Optional)
|
|
102
|
+
*/
|
|
103
|
+
"headingArrow"?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Heading Position These values are available: 'is-placed-left', 'is-placed-left', 'is-placed-right', 'is-placed-normal', 'is-placed-start' Default: "is-placed-left"
|
|
106
|
+
*/
|
|
107
|
+
"headingPosition"?: string;
|
|
108
|
+
/**
|
|
109
|
+
* (optional) Link card rel
|
|
110
|
+
*/
|
|
111
|
+
"rel"?: string;
|
|
112
|
+
/**
|
|
113
|
+
* (optional) Link card target
|
|
114
|
+
*/
|
|
115
|
+
"target"?: string;
|
|
116
|
+
}
|
|
117
|
+
interface PtcDate {
|
|
118
|
+
/**
|
|
119
|
+
* Country examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
|
|
120
|
+
*/
|
|
121
|
+
"country": string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Day An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
|
|
124
|
+
*/
|
|
125
|
+
"day": number;
|
|
126
|
+
/**
|
|
127
|
+
* Month An integer between 0 (January) and 11 (December) representing the month.If omitted, defaults to 0.
|
|
128
|
+
*/
|
|
129
|
+
"month": number;
|
|
130
|
+
/**
|
|
131
|
+
* Year
|
|
132
|
+
*/
|
|
133
|
+
"year": number;
|
|
134
|
+
}
|
|
135
|
+
interface PtcFooter {
|
|
80
136
|
}
|
|
81
137
|
interface PtcImage {
|
|
82
138
|
/**
|
|
@@ -88,11 +144,19 @@ export namespace Components {
|
|
|
88
144
|
*/
|
|
89
145
|
"src": string;
|
|
90
146
|
}
|
|
147
|
+
interface PtcImg {
|
|
148
|
+
"imageType": 'smart-bg' | 'smart-img';
|
|
149
|
+
"imgUrl": string;
|
|
150
|
+
"sizeLg": string;
|
|
151
|
+
"sizeMd": string;
|
|
152
|
+
"sizeSm": string;
|
|
153
|
+
"sizeXs": string;
|
|
154
|
+
}
|
|
91
155
|
interface PtcLink {
|
|
92
156
|
/**
|
|
93
157
|
* Rxternal link
|
|
94
158
|
*/
|
|
95
|
-
"external"
|
|
159
|
+
"external": boolean;
|
|
96
160
|
/**
|
|
97
161
|
* Font Size
|
|
98
162
|
*/
|
|
@@ -109,16 +173,96 @@ export namespace Components {
|
|
|
109
173
|
* Target
|
|
110
174
|
*/
|
|
111
175
|
"target": string | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* Uppercase
|
|
114
|
-
*/
|
|
115
|
-
"textTransform": 'uppercase' | '';
|
|
116
176
|
/**
|
|
117
177
|
* Theme
|
|
118
178
|
*/
|
|
119
179
|
"theme": 'simple' | 'arrow';
|
|
180
|
+
/**
|
|
181
|
+
* Uppercase
|
|
182
|
+
*/
|
|
183
|
+
"uppercase": boolean;
|
|
120
184
|
}
|
|
121
185
|
interface PtcList {
|
|
186
|
+
"linkHref"?: string;
|
|
187
|
+
"listType": 'link-primary' | 'link-sub' | 'icon' | 'para-list';
|
|
188
|
+
}
|
|
189
|
+
interface PtcLottie {
|
|
190
|
+
/**
|
|
191
|
+
* Set Json file src
|
|
192
|
+
*/
|
|
193
|
+
"jsonSrc": string;
|
|
194
|
+
/**
|
|
195
|
+
* Animation speed
|
|
196
|
+
*/
|
|
197
|
+
"speed": number;
|
|
198
|
+
}
|
|
199
|
+
interface PtcNav {
|
|
200
|
+
}
|
|
201
|
+
interface PtcNavItem {
|
|
202
|
+
/**
|
|
203
|
+
* If the current nav item is expanded
|
|
204
|
+
*/
|
|
205
|
+
"ariaExpanded": boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Depth of the current nav item
|
|
208
|
+
*/
|
|
209
|
+
"depth": number;
|
|
210
|
+
/**
|
|
211
|
+
* If the current nav item has children nav items
|
|
212
|
+
*/
|
|
213
|
+
"hasChildren": boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Nav Description
|
|
216
|
+
*/
|
|
217
|
+
"label": string;
|
|
218
|
+
/**
|
|
219
|
+
* Nav Item Type
|
|
220
|
+
*/
|
|
221
|
+
"navType": 'primary-nav' | 'secondary-nav' | 'primary-footer' | 'secondary-footer' | 'language-nav';
|
|
222
|
+
/**
|
|
223
|
+
* If the parent nav item of the current one is expanded
|
|
224
|
+
*/
|
|
225
|
+
"parentExpanded": boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Link URL
|
|
228
|
+
*/
|
|
229
|
+
"url": string;
|
|
230
|
+
}
|
|
231
|
+
interface PtcOverlay {
|
|
232
|
+
}
|
|
233
|
+
interface PtcPara {
|
|
234
|
+
/**
|
|
235
|
+
* Paragraph font size
|
|
236
|
+
*/
|
|
237
|
+
"fontSize": 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large';
|
|
238
|
+
/**
|
|
239
|
+
* Paragraph font weight
|
|
240
|
+
*/
|
|
241
|
+
"fontWeight": 'w-3' | 'w-4' | 'w-5' | 'w-6' | 'w-7' | 'w-8' | 'w-9';
|
|
242
|
+
/**
|
|
243
|
+
* Paragraph Style
|
|
244
|
+
*/
|
|
245
|
+
"paraStyle": 'default' | 'intro' | 'small';
|
|
246
|
+
}
|
|
247
|
+
interface PtcPicture {
|
|
248
|
+
"lazy": 'lazy' | 'eager';
|
|
249
|
+
}
|
|
250
|
+
interface PtcSpacer {
|
|
251
|
+
/**
|
|
252
|
+
* Breakpoint
|
|
253
|
+
*/
|
|
254
|
+
"breakpoint": '' | 'medium' | 'small' | 'large' | 'x-large' | 'xx-large' | 'x-small' | 'xx-small';
|
|
255
|
+
/**
|
|
256
|
+
* Direction
|
|
257
|
+
*/
|
|
258
|
+
"direction": 'vertical' | 'horizontal';
|
|
259
|
+
/**
|
|
260
|
+
* Spacing Size
|
|
261
|
+
*/
|
|
262
|
+
"size": 'large' | 'medium' | 'small' | 'x-large' | 'x-small' | 'xx-large' | 'xx-small' | 'xxx-large' | 'xxxx-large';
|
|
263
|
+
}
|
|
264
|
+
interface PtcSpan {
|
|
265
|
+
"spanStyle": 'link-style' | 'tag-style' | 'nav-style';
|
|
122
266
|
}
|
|
123
267
|
interface PtcTitle {
|
|
124
268
|
/**
|
|
@@ -142,6 +286,12 @@ declare global {
|
|
|
142
286
|
prototype: HTMLIconAssetElement;
|
|
143
287
|
new (): HTMLIconAssetElement;
|
|
144
288
|
};
|
|
289
|
+
interface HTMLListItemElement extends Components.ListItem, HTMLStencilElement {
|
|
290
|
+
}
|
|
291
|
+
var HTMLListItemElement: {
|
|
292
|
+
prototype: HTMLListItemElement;
|
|
293
|
+
new (): HTMLListItemElement;
|
|
294
|
+
};
|
|
145
295
|
interface HTMLMyComponentElement extends Components.MyComponent, HTMLStencilElement {
|
|
146
296
|
}
|
|
147
297
|
var HTMLMyComponentElement: {
|
|
@@ -160,12 +310,30 @@ declare global {
|
|
|
160
310
|
prototype: HTMLPtcCardElement;
|
|
161
311
|
new (): HTMLPtcCardElement;
|
|
162
312
|
};
|
|
313
|
+
interface HTMLPtcDateElement extends Components.PtcDate, HTMLStencilElement {
|
|
314
|
+
}
|
|
315
|
+
var HTMLPtcDateElement: {
|
|
316
|
+
prototype: HTMLPtcDateElement;
|
|
317
|
+
new (): HTMLPtcDateElement;
|
|
318
|
+
};
|
|
319
|
+
interface HTMLPtcFooterElement extends Components.PtcFooter, HTMLStencilElement {
|
|
320
|
+
}
|
|
321
|
+
var HTMLPtcFooterElement: {
|
|
322
|
+
prototype: HTMLPtcFooterElement;
|
|
323
|
+
new (): HTMLPtcFooterElement;
|
|
324
|
+
};
|
|
163
325
|
interface HTMLPtcImageElement extends Components.PtcImage, HTMLStencilElement {
|
|
164
326
|
}
|
|
165
327
|
var HTMLPtcImageElement: {
|
|
166
328
|
prototype: HTMLPtcImageElement;
|
|
167
329
|
new (): HTMLPtcImageElement;
|
|
168
330
|
};
|
|
331
|
+
interface HTMLPtcImgElement extends Components.PtcImg, HTMLStencilElement {
|
|
332
|
+
}
|
|
333
|
+
var HTMLPtcImgElement: {
|
|
334
|
+
prototype: HTMLPtcImgElement;
|
|
335
|
+
new (): HTMLPtcImgElement;
|
|
336
|
+
};
|
|
169
337
|
interface HTMLPtcLinkElement extends Components.PtcLink, HTMLStencilElement {
|
|
170
338
|
}
|
|
171
339
|
var HTMLPtcLinkElement: {
|
|
@@ -178,6 +346,54 @@ declare global {
|
|
|
178
346
|
prototype: HTMLPtcListElement;
|
|
179
347
|
new (): HTMLPtcListElement;
|
|
180
348
|
};
|
|
349
|
+
interface HTMLPtcLottieElement extends Components.PtcLottie, HTMLStencilElement {
|
|
350
|
+
}
|
|
351
|
+
var HTMLPtcLottieElement: {
|
|
352
|
+
prototype: HTMLPtcLottieElement;
|
|
353
|
+
new (): HTMLPtcLottieElement;
|
|
354
|
+
};
|
|
355
|
+
interface HTMLPtcNavElement extends Components.PtcNav, HTMLStencilElement {
|
|
356
|
+
}
|
|
357
|
+
var HTMLPtcNavElement: {
|
|
358
|
+
prototype: HTMLPtcNavElement;
|
|
359
|
+
new (): HTMLPtcNavElement;
|
|
360
|
+
};
|
|
361
|
+
interface HTMLPtcNavItemElement extends Components.PtcNavItem, HTMLStencilElement {
|
|
362
|
+
}
|
|
363
|
+
var HTMLPtcNavItemElement: {
|
|
364
|
+
prototype: HTMLPtcNavItemElement;
|
|
365
|
+
new (): HTMLPtcNavItemElement;
|
|
366
|
+
};
|
|
367
|
+
interface HTMLPtcOverlayElement extends Components.PtcOverlay, HTMLStencilElement {
|
|
368
|
+
}
|
|
369
|
+
var HTMLPtcOverlayElement: {
|
|
370
|
+
prototype: HTMLPtcOverlayElement;
|
|
371
|
+
new (): HTMLPtcOverlayElement;
|
|
372
|
+
};
|
|
373
|
+
interface HTMLPtcParaElement extends Components.PtcPara, HTMLStencilElement {
|
|
374
|
+
}
|
|
375
|
+
var HTMLPtcParaElement: {
|
|
376
|
+
prototype: HTMLPtcParaElement;
|
|
377
|
+
new (): HTMLPtcParaElement;
|
|
378
|
+
};
|
|
379
|
+
interface HTMLPtcPictureElement extends Components.PtcPicture, HTMLStencilElement {
|
|
380
|
+
}
|
|
381
|
+
var HTMLPtcPictureElement: {
|
|
382
|
+
prototype: HTMLPtcPictureElement;
|
|
383
|
+
new (): HTMLPtcPictureElement;
|
|
384
|
+
};
|
|
385
|
+
interface HTMLPtcSpacerElement extends Components.PtcSpacer, HTMLStencilElement {
|
|
386
|
+
}
|
|
387
|
+
var HTMLPtcSpacerElement: {
|
|
388
|
+
prototype: HTMLPtcSpacerElement;
|
|
389
|
+
new (): HTMLPtcSpacerElement;
|
|
390
|
+
};
|
|
391
|
+
interface HTMLPtcSpanElement extends Components.PtcSpan, HTMLStencilElement {
|
|
392
|
+
}
|
|
393
|
+
var HTMLPtcSpanElement: {
|
|
394
|
+
prototype: HTMLPtcSpanElement;
|
|
395
|
+
new (): HTMLPtcSpanElement;
|
|
396
|
+
};
|
|
181
397
|
interface HTMLPtcTitleElement extends Components.PtcTitle, HTMLStencilElement {
|
|
182
398
|
}
|
|
183
399
|
var HTMLPtcTitleElement: {
|
|
@@ -186,12 +402,24 @@ declare global {
|
|
|
186
402
|
};
|
|
187
403
|
interface HTMLElementTagNameMap {
|
|
188
404
|
"icon-asset": HTMLIconAssetElement;
|
|
405
|
+
"list-item": HTMLListItemElement;
|
|
189
406
|
"my-component": HTMLMyComponentElement;
|
|
190
407
|
"ptc-button": HTMLPtcButtonElement;
|
|
191
408
|
"ptc-card": HTMLPtcCardElement;
|
|
409
|
+
"ptc-date": HTMLPtcDateElement;
|
|
410
|
+
"ptc-footer": HTMLPtcFooterElement;
|
|
192
411
|
"ptc-image": HTMLPtcImageElement;
|
|
412
|
+
"ptc-img": HTMLPtcImgElement;
|
|
193
413
|
"ptc-link": HTMLPtcLinkElement;
|
|
194
414
|
"ptc-list": HTMLPtcListElement;
|
|
415
|
+
"ptc-lottie": HTMLPtcLottieElement;
|
|
416
|
+
"ptc-nav": HTMLPtcNavElement;
|
|
417
|
+
"ptc-nav-item": HTMLPtcNavItemElement;
|
|
418
|
+
"ptc-overlay": HTMLPtcOverlayElement;
|
|
419
|
+
"ptc-para": HTMLPtcParaElement;
|
|
420
|
+
"ptc-picture": HTMLPtcPictureElement;
|
|
421
|
+
"ptc-spacer": HTMLPtcSpacerElement;
|
|
422
|
+
"ptc-span": HTMLPtcSpanElement;
|
|
195
423
|
"ptc-title": HTMLPtcTitleElement;
|
|
196
424
|
}
|
|
197
425
|
}
|
|
@@ -200,13 +428,13 @@ declare namespace LocalJSX {
|
|
|
200
428
|
/**
|
|
201
429
|
* Icon Color
|
|
202
430
|
*/
|
|
203
|
-
"color"?: 'black' | 'white'| 'ptc-green';
|
|
431
|
+
"color"?: 'black' | 'white' | 'ptc-green';
|
|
204
432
|
/**
|
|
205
433
|
* Icon ID name
|
|
206
434
|
*/
|
|
207
435
|
"name"?: string;
|
|
208
436
|
/**
|
|
209
|
-
* Icon Pulse Animation
|
|
437
|
+
* Icon Pulse Animation (not valid for ptc type)
|
|
210
438
|
*/
|
|
211
439
|
"pulse"?: 'fa-pulse' | '';
|
|
212
440
|
/**
|
|
@@ -214,13 +442,17 @@ declare namespace LocalJSX {
|
|
|
214
442
|
*/
|
|
215
443
|
"size"?: 'small' | 'large';
|
|
216
444
|
/**
|
|
217
|
-
* Icon Spin Animation
|
|
445
|
+
* Icon Spin Animation (not valid for ptc type)
|
|
218
446
|
*/
|
|
219
447
|
"spin"?: 'fa-spin' | '';
|
|
220
448
|
/**
|
|
221
449
|
* Icon Type
|
|
222
450
|
*/
|
|
223
|
-
"type"?: 'solid' | '
|
|
451
|
+
"type"?: 'solid' | 'brands' | 'ptc' | 'regular';
|
|
452
|
+
}
|
|
453
|
+
interface ListItem {
|
|
454
|
+
"linkHref"?: string;
|
|
455
|
+
"listType"?: 'link-primary' | 'link-sub' | 'icon' | 'para-list';
|
|
224
456
|
}
|
|
225
457
|
interface MyComponent {
|
|
226
458
|
/**
|
|
@@ -240,23 +472,23 @@ declare namespace LocalJSX {
|
|
|
240
472
|
/**
|
|
241
473
|
* Button theme color
|
|
242
474
|
*/
|
|
243
|
-
"color"?: 'offwhite' | 'blackgrey' | 'turtlegreen'| 'neon';
|
|
475
|
+
"color"?: 'offwhite' | 'blackgrey' | 'turtlegreen' | 'neon';
|
|
244
476
|
/**
|
|
245
477
|
* Disabled button
|
|
246
478
|
*/
|
|
247
|
-
"disabled"?: boolean;
|
|
479
|
+
"disabled"?: boolean | undefined;
|
|
248
480
|
/**
|
|
249
481
|
* Icon Animation
|
|
250
482
|
*/
|
|
251
|
-
"
|
|
483
|
+
"iconAnimation"?: 'animation-right' | 'animation-down' | '';
|
|
252
484
|
/**
|
|
253
|
-
*
|
|
485
|
+
* Icon Position
|
|
254
486
|
*/
|
|
255
|
-
"
|
|
487
|
+
"iconPosition"?: 'icon-left' | 'icon-right';
|
|
256
488
|
/**
|
|
257
|
-
*
|
|
489
|
+
* Emitted when the button has focus.
|
|
258
490
|
*/
|
|
259
|
-
"
|
|
491
|
+
"onClickEvent"?: (event: CustomEvent<void>) => void;
|
|
260
492
|
/**
|
|
261
493
|
* Button type
|
|
262
494
|
*/
|
|
@@ -264,9 +496,65 @@ declare namespace LocalJSX {
|
|
|
264
496
|
}
|
|
265
497
|
interface PtcCard {
|
|
266
498
|
/**
|
|
267
|
-
*
|
|
499
|
+
* Card Link URL (Optional)
|
|
268
500
|
*/
|
|
269
|
-
"
|
|
501
|
+
"cardHref"?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Card Type Specify Card Type, default to simple card
|
|
504
|
+
*/
|
|
505
|
+
"cardType"?: 'simple-card' | 'lotti-image-card-1' | 'normal-image-card-1' | 'highlight-card';
|
|
506
|
+
/**
|
|
507
|
+
* If this card has Image
|
|
508
|
+
*/
|
|
509
|
+
"hasImage"?: boolean;
|
|
510
|
+
/**
|
|
511
|
+
* If this card has Lottie Image
|
|
512
|
+
*/
|
|
513
|
+
"hasLottie"?: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* If this card has Video
|
|
516
|
+
*/
|
|
517
|
+
"hasVideo"?: boolean;
|
|
518
|
+
/**
|
|
519
|
+
* Card heading
|
|
520
|
+
*/
|
|
521
|
+
"heading"?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Card Heading Arrow (Optional)
|
|
524
|
+
*/
|
|
525
|
+
"headingArrow"?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Heading Position These values are available: 'is-placed-left', 'is-placed-left', 'is-placed-right', 'is-placed-normal', 'is-placed-start' Default: "is-placed-left"
|
|
528
|
+
*/
|
|
529
|
+
"headingPosition"?: string;
|
|
530
|
+
/**
|
|
531
|
+
* (optional) Link card rel
|
|
532
|
+
*/
|
|
533
|
+
"rel"?: string;
|
|
534
|
+
/**
|
|
535
|
+
* (optional) Link card target
|
|
536
|
+
*/
|
|
537
|
+
"target"?: string;
|
|
538
|
+
}
|
|
539
|
+
interface PtcDate {
|
|
540
|
+
/**
|
|
541
|
+
* Country examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
|
|
542
|
+
*/
|
|
543
|
+
"country"?: string | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* Day An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
|
|
546
|
+
*/
|
|
547
|
+
"day"?: number;
|
|
548
|
+
/**
|
|
549
|
+
* Month An integer between 0 (January) and 11 (December) representing the month.If omitted, defaults to 0.
|
|
550
|
+
*/
|
|
551
|
+
"month"?: number;
|
|
552
|
+
/**
|
|
553
|
+
* Year
|
|
554
|
+
*/
|
|
555
|
+
"year"?: number;
|
|
556
|
+
}
|
|
557
|
+
interface PtcFooter {
|
|
270
558
|
}
|
|
271
559
|
interface PtcImage {
|
|
272
560
|
/**
|
|
@@ -278,11 +566,19 @@ declare namespace LocalJSX {
|
|
|
278
566
|
*/
|
|
279
567
|
"src"?: string;
|
|
280
568
|
}
|
|
569
|
+
interface PtcImg {
|
|
570
|
+
"imageType"?: 'smart-bg' | 'smart-img';
|
|
571
|
+
"imgUrl"?: string;
|
|
572
|
+
"sizeLg"?: string;
|
|
573
|
+
"sizeMd"?: string;
|
|
574
|
+
"sizeSm"?: string;
|
|
575
|
+
"sizeXs"?: string;
|
|
576
|
+
}
|
|
281
577
|
interface PtcLink {
|
|
282
578
|
/**
|
|
283
579
|
* Rxternal link
|
|
284
580
|
*/
|
|
285
|
-
"external"?: boolean
|
|
581
|
+
"external"?: boolean;
|
|
286
582
|
/**
|
|
287
583
|
* Font Size
|
|
288
584
|
*/
|
|
@@ -299,16 +595,100 @@ declare namespace LocalJSX {
|
|
|
299
595
|
* Target
|
|
300
596
|
*/
|
|
301
597
|
"target"?: string | undefined;
|
|
302
|
-
/**
|
|
303
|
-
* Uppercase
|
|
304
|
-
*/
|
|
305
|
-
"textTransform"?: 'uppercase' | '';
|
|
306
598
|
/**
|
|
307
599
|
* Theme
|
|
308
600
|
*/
|
|
309
601
|
"theme"?: 'simple' | 'arrow';
|
|
602
|
+
/**
|
|
603
|
+
* Uppercase
|
|
604
|
+
*/
|
|
605
|
+
"uppercase"?: boolean;
|
|
310
606
|
}
|
|
311
607
|
interface PtcList {
|
|
608
|
+
"linkHref"?: string;
|
|
609
|
+
"listType"?: 'link-primary' | 'link-sub' | 'icon' | 'para-list';
|
|
610
|
+
}
|
|
611
|
+
interface PtcLottie {
|
|
612
|
+
/**
|
|
613
|
+
* Set Json file src
|
|
614
|
+
*/
|
|
615
|
+
"jsonSrc"?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Animation speed
|
|
618
|
+
*/
|
|
619
|
+
"speed"?: number;
|
|
620
|
+
}
|
|
621
|
+
interface PtcNav {
|
|
622
|
+
}
|
|
623
|
+
interface PtcNavItem {
|
|
624
|
+
/**
|
|
625
|
+
* If the current nav item is expanded
|
|
626
|
+
*/
|
|
627
|
+
"ariaExpanded"?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Depth of the current nav item
|
|
630
|
+
*/
|
|
631
|
+
"depth"?: number;
|
|
632
|
+
/**
|
|
633
|
+
* If the current nav item has children nav items
|
|
634
|
+
*/
|
|
635
|
+
"hasChildren"?: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Nav Description
|
|
638
|
+
*/
|
|
639
|
+
"label"?: string;
|
|
640
|
+
/**
|
|
641
|
+
* Nav Item Type
|
|
642
|
+
*/
|
|
643
|
+
"navType"?: 'primary-nav' | 'secondary-nav' | 'primary-footer' | 'secondary-footer' | 'language-nav';
|
|
644
|
+
/**
|
|
645
|
+
* Menu Toggle Event
|
|
646
|
+
*/
|
|
647
|
+
"onMenuItemToggled"?: (event: CustomEvent<any>) => void;
|
|
648
|
+
/**
|
|
649
|
+
* If the parent nav item of the current one is expanded
|
|
650
|
+
*/
|
|
651
|
+
"parentExpanded"?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Link URL
|
|
654
|
+
*/
|
|
655
|
+
"url"?: string;
|
|
656
|
+
}
|
|
657
|
+
interface PtcOverlay {
|
|
658
|
+
}
|
|
659
|
+
interface PtcPara {
|
|
660
|
+
/**
|
|
661
|
+
* Paragraph font size
|
|
662
|
+
*/
|
|
663
|
+
"fontSize"?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large';
|
|
664
|
+
/**
|
|
665
|
+
* Paragraph font weight
|
|
666
|
+
*/
|
|
667
|
+
"fontWeight"?: 'w-3' | 'w-4' | 'w-5' | 'w-6' | 'w-7' | 'w-8' | 'w-9';
|
|
668
|
+
/**
|
|
669
|
+
* Paragraph Style
|
|
670
|
+
*/
|
|
671
|
+
"paraStyle"?: 'default' | 'intro' | 'small';
|
|
672
|
+
}
|
|
673
|
+
interface PtcPicture {
|
|
674
|
+
"lazy"?: 'lazy' | 'eager';
|
|
675
|
+
}
|
|
676
|
+
interface PtcSpacer {
|
|
677
|
+
/**
|
|
678
|
+
* Breakpoint
|
|
679
|
+
*/
|
|
680
|
+
"breakpoint"?: '' | 'medium' | 'small' | 'large' | 'x-large' | 'xx-large' | 'x-small' | 'xx-small';
|
|
681
|
+
/**
|
|
682
|
+
* Direction
|
|
683
|
+
*/
|
|
684
|
+
"direction"?: 'vertical' | 'horizontal';
|
|
685
|
+
/**
|
|
686
|
+
* Spacing Size
|
|
687
|
+
*/
|
|
688
|
+
"size"?: 'large' | 'medium' | 'small' | 'x-large' | 'x-small' | 'xx-large' | 'xx-small' | 'xxx-large' | 'xxxx-large';
|
|
689
|
+
}
|
|
690
|
+
interface PtcSpan {
|
|
691
|
+
"spanStyle"?: 'link-style' | 'tag-style' | 'nav-style';
|
|
312
692
|
}
|
|
313
693
|
interface PtcTitle {
|
|
314
694
|
/**
|
|
@@ -326,12 +706,24 @@ declare namespace LocalJSX {
|
|
|
326
706
|
}
|
|
327
707
|
interface IntrinsicElements {
|
|
328
708
|
"icon-asset": IconAsset;
|
|
709
|
+
"list-item": ListItem;
|
|
329
710
|
"my-component": MyComponent;
|
|
330
711
|
"ptc-button": PtcButton;
|
|
331
712
|
"ptc-card": PtcCard;
|
|
713
|
+
"ptc-date": PtcDate;
|
|
714
|
+
"ptc-footer": PtcFooter;
|
|
332
715
|
"ptc-image": PtcImage;
|
|
716
|
+
"ptc-img": PtcImg;
|
|
333
717
|
"ptc-link": PtcLink;
|
|
334
718
|
"ptc-list": PtcList;
|
|
719
|
+
"ptc-lottie": PtcLottie;
|
|
720
|
+
"ptc-nav": PtcNav;
|
|
721
|
+
"ptc-nav-item": PtcNavItem;
|
|
722
|
+
"ptc-overlay": PtcOverlay;
|
|
723
|
+
"ptc-para": PtcPara;
|
|
724
|
+
"ptc-picture": PtcPicture;
|
|
725
|
+
"ptc-spacer": PtcSpacer;
|
|
726
|
+
"ptc-span": PtcSpan;
|
|
335
727
|
"ptc-title": PtcTitle;
|
|
336
728
|
}
|
|
337
729
|
}
|
|
@@ -340,12 +732,24 @@ declare module "@stencil/core" {
|
|
|
340
732
|
export namespace JSX {
|
|
341
733
|
interface IntrinsicElements {
|
|
342
734
|
"icon-asset": LocalJSX.IconAsset & JSXBase.HTMLAttributes<HTMLIconAssetElement>;
|
|
735
|
+
"list-item": LocalJSX.ListItem & JSXBase.HTMLAttributes<HTMLListItemElement>;
|
|
343
736
|
"my-component": LocalJSX.MyComponent & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
|
|
344
737
|
"ptc-button": LocalJSX.PtcButton & JSXBase.HTMLAttributes<HTMLPtcButtonElement>;
|
|
345
738
|
"ptc-card": LocalJSX.PtcCard & JSXBase.HTMLAttributes<HTMLPtcCardElement>;
|
|
739
|
+
"ptc-date": LocalJSX.PtcDate & JSXBase.HTMLAttributes<HTMLPtcDateElement>;
|
|
740
|
+
"ptc-footer": LocalJSX.PtcFooter & JSXBase.HTMLAttributes<HTMLPtcFooterElement>;
|
|
346
741
|
"ptc-image": LocalJSX.PtcImage & JSXBase.HTMLAttributes<HTMLPtcImageElement>;
|
|
742
|
+
"ptc-img": LocalJSX.PtcImg & JSXBase.HTMLAttributes<HTMLPtcImgElement>;
|
|
347
743
|
"ptc-link": LocalJSX.PtcLink & JSXBase.HTMLAttributes<HTMLPtcLinkElement>;
|
|
348
744
|
"ptc-list": LocalJSX.PtcList & JSXBase.HTMLAttributes<HTMLPtcListElement>;
|
|
745
|
+
"ptc-lottie": LocalJSX.PtcLottie & JSXBase.HTMLAttributes<HTMLPtcLottieElement>;
|
|
746
|
+
"ptc-nav": LocalJSX.PtcNav & JSXBase.HTMLAttributes<HTMLPtcNavElement>;
|
|
747
|
+
"ptc-nav-item": LocalJSX.PtcNavItem & JSXBase.HTMLAttributes<HTMLPtcNavItemElement>;
|
|
748
|
+
"ptc-overlay": LocalJSX.PtcOverlay & JSXBase.HTMLAttributes<HTMLPtcOverlayElement>;
|
|
749
|
+
"ptc-para": LocalJSX.PtcPara & JSXBase.HTMLAttributes<HTMLPtcParaElement>;
|
|
750
|
+
"ptc-picture": LocalJSX.PtcPicture & JSXBase.HTMLAttributes<HTMLPtcPictureElement>;
|
|
751
|
+
"ptc-spacer": LocalJSX.PtcSpacer & JSXBase.HTMLAttributes<HTMLPtcSpacerElement>;
|
|
752
|
+
"ptc-span": LocalJSX.PtcSpan & JSXBase.HTMLAttributes<HTMLPtcSpanElement>;
|
|
349
753
|
"ptc-title": LocalJSX.PtcTitle & JSXBase.HTMLAttributes<HTMLPtcTitleElement>;
|
|
350
754
|
}
|
|
351
755
|
}
|