@ptcwebops/ptcw-design 0.0.5 → 0.0.7
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/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +6 -1
- package/dist/cjs/ptc-ncard.cjs.entry.js +50 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ptc-card/ptc-card.js +1 -1
- package/dist/collection/components/ptc-link/ptc-link.css +122 -12
- package/dist/collection/components/ptc-link/ptc-link.js +26 -2
- package/dist/collection/components/ptc-ncard/ptc-ncard.css +3 -0
- package/dist/collection/components/ptc-ncard/ptc-ncard.js +162 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +57 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +6 -1
- package/dist/esm/ptc-ncard.entry.js +46 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-76dfa56f.entry.js +1 -0
- package/dist/ptcw-design/p-a802ffd7.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 +5 -1
- package/dist/types/components/ptc-ncard/ptc-ncard.d.ts +28 -0
- package/dist/types/components.d.ts +71 -2
- package/package.json +1 -1
- package/dist/ptcw-design/p-d0909325.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link.cjs",[[
|
|
17
|
+
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date.cjs",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-image.cjs",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img.cjs",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-ncard.cjs",[[1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture.cjs",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -52,7 +52,7 @@ const PtcCard = class {
|
|
|
52
52
|
const Tag = this.cardHref ? 'a' : 'div';
|
|
53
53
|
//const hPositionClass = this.headingPosition === 'center' ? ('is-placed-center'):(this.headingPosition === 'right' ? ('is-placed-right'):('is-placed-left'));
|
|
54
54
|
const classMap = this.getCssClassMap();
|
|
55
|
-
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "card-border", part: "c-border-option" }, index.h(Tag, Object.assign({}, (this.cardHref ? { href: this.cardHref } : {}), (this.target && this.cardHref ? { target: this.target } : {}), (this.rel && this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "is-grid" }, index.h("div", { class: "is-col-12 is-placed-center" }, index.h("slot", { name: "card-meida" })))) : null, index.h("div", { class: "card-body", part: "c-body-option" }, index.h("div", { class: "is-grid has-no-row-gap" }, index.h("div", { class: "is-col-12" }, index.h("slot", { name: "before-heading" })), index.h("div", { class: {
|
|
55
|
+
return (index.h(index.Host, { class: classMap }, index.h("div", { class: "card-border", part: "c-border-option" }, index.h(Tag, Object.assign({}, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "is-grid" }, index.h("div", { class: "is-col-12 is-placed-center" }, index.h("slot", { name: "card-meida" })))) : null, index.h("div", { class: "card-body", part: "c-body-option" }, index.h("div", { class: "is-grid has-no-row-gap" }, index.h("div", { class: "is-col-12" }, index.h("slot", { name: "before-heading" })), index.h("div", { class: {
|
|
56
56
|
'is-col-12': true,
|
|
57
57
|
[this.headingPosition]: true,
|
|
58
58
|
} }, index.h("span", { class: "heading" }, this.heading), this.cardHref && this.headingArrow ? index.h("icon-asset", { type: "solid", size: "small", color: "ptc-green", name: "arrow-right" }) : null), index.h("div", { class: "is-col-12 is-placed-left body-space" }, index.h("slot", { name: "body-content" }))))))));
|
|
@@ -4,11 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ac192914.js');
|
|
6
6
|
|
|
7
|
-
const ptcLinkCss = "
|
|
7
|
+
const ptcLinkCss = ".disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}.simple::after{content:\"\";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}.simple:hover.simple::after{opacity:1}.arrow{margin-right:var(--ptc-element-spacing-01)}.arrow::after{position:absolute;display:block;content:\"\";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}.arrow:hover.arrow::after{width:100%}.uppercase{text-transform:uppercase}.small{font-size:var(--ptc-font-size-small)}.medium{font-size:var(--ptc-font-size-medium)}.large{font-size:var(--ptc-font-size-large)}icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}icon-asset svg{fill:var(--color-primary-green) !important}.ptc-link:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}.nav-title{font-size:17px;line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-element-spacing-01);color:#cac8c8;text-shadow:1px 1px 2px rgba(0, 0, 0, 0.8);font-weight:var(--ptc-font-weight-semibold)}.primary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-normal);font-weight:var(--ptc-font-weight-bold);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:var(--ptc-element-spacing-04) 50px;background-color:transparent;text-decoration:none;outline:none}.primary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.nav-title-link{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:1.56;color:var(--color-white);text-decoration:none;outline:none;background-color:transparent;transition:color var(--ptc-transition-medium) var(--ptc-decelerated-ease);border-bottom:1.5px solid transparent}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-secondary-turtlegreen)}.secondary-nav-link{display:inline-block;position:relative;font-size:var(--ptc-font-size-x-small);line-height:20px;font-weight:var(--ptc-font-weight-light);color:var(--color-white);transition:color var(--ptc-transition-slow) ease;padding:10px 15px;background-color:transparent;text-decoration:none;outline:none}.secondary-nav-link:hover{color:var(--color-secondary-turtlegreen);text-decoration:none;outline:none;background-color:transparent}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);line-height:1.73;letter-spacing:1.13px;text-align:left;font-size:15px}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-secondary-turtlegreen);color:var(--color-secondary-turtlegreen)}.copyright-link{color:var(--color-white);font-size:13px;font-weight:var(--ptc-font-weight-normal);line-height:2;display:inline-block}";
|
|
8
8
|
|
|
9
9
|
const PtcLink = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Disabled link
|
|
14
|
+
*/
|
|
15
|
+
this.disabled = false;
|
|
12
16
|
/**
|
|
13
17
|
* Rxternal link
|
|
14
18
|
* */
|
|
@@ -39,6 +43,7 @@ const PtcLink = class {
|
|
|
39
43
|
['ptc-link']: true,
|
|
40
44
|
[this.theme]: true,
|
|
41
45
|
['uppercase']: this.uppercase,
|
|
46
|
+
['disabled']: this.disabled,
|
|
42
47
|
[this.fontSize]: true,
|
|
43
48
|
};
|
|
44
49
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-ac192914.js');
|
|
6
|
+
|
|
7
|
+
const ptcNcardCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const PtcNcard = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Card Link URL (Optional)
|
|
14
|
+
*/
|
|
15
|
+
this.cardHref = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* (optional) Link card target
|
|
18
|
+
* */
|
|
19
|
+
this.target = '_self';
|
|
20
|
+
/**
|
|
21
|
+
* (optional) Link card rel
|
|
22
|
+
* */
|
|
23
|
+
this.rel = undefined;
|
|
24
|
+
/**
|
|
25
|
+
* If this card has Image
|
|
26
|
+
*/
|
|
27
|
+
this.hasImage = false;
|
|
28
|
+
/**
|
|
29
|
+
* If this card has Video
|
|
30
|
+
*/
|
|
31
|
+
this.hasVideo = false;
|
|
32
|
+
/**
|
|
33
|
+
* If this card has Lottie Image
|
|
34
|
+
*/
|
|
35
|
+
this.hasLottie = false;
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
39
|
+
const classMap = this.getCssClassMap();
|
|
40
|
+
return (index.h(index.Host, null, index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (index.h("slot", { name: "slot-lottie" })) : null)) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, index.h("slot", { name: "slot-body" }))))));
|
|
41
|
+
}
|
|
42
|
+
getCssClassMap() {
|
|
43
|
+
return {
|
|
44
|
+
['is-grid']: true,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
PtcNcard.style = ptcNcardCss;
|
|
49
|
+
|
|
50
|
+
exports.ptc_ncard = PtcNcard;
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link.cjs",[[
|
|
18
|
+
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date.cjs",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-image.cjs",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img.cjs",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"]},[[9,"resize","WindowResize"]]]]],["ptc-list.cjs",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-ncard.cjs",[[1,"ptc-ncard",{"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture.cjs",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title.cjs",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"./components/ptc-lottie/ptc-lottie.js",
|
|
15
15
|
"./components/ptc-nav/ptc-nav.js",
|
|
16
16
|
"./components/ptc-nav-item/ptc-nav-item.js",
|
|
17
|
+
"./components/ptc-ncard/ptc-ncard.js",
|
|
17
18
|
"./components/ptc-overlay/ptc-overlay.js",
|
|
18
19
|
"./components/ptc-para/ptc-para.js",
|
|
19
20
|
"./components/ptc-picture/ptc-picture.js",
|
|
@@ -46,7 +46,7 @@ export class PtcCard {
|
|
|
46
46
|
const classMap = this.getCssClassMap();
|
|
47
47
|
return (h(Host, { class: classMap },
|
|
48
48
|
h("div", { class: "card-border", part: "c-border-option" },
|
|
49
|
-
h(Tag, Object.assign({}, (this.cardHref ? { href: this.cardHref } : {}), (this.target && this.cardHref ? { target: this.target } : {}), (this.rel && this.cardHref ? { rel: this.rel } : {})),
|
|
49
|
+
h(Tag, Object.assign({}, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
|
|
50
50
|
this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "is-grid" },
|
|
51
51
|
h("div", { class: "is-col-12 is-placed-center" },
|
|
52
52
|
h("slot", { name: "card-meida" })))) : null,
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
.disabled {
|
|
2
|
+
pointer-events: none;
|
|
3
|
+
cursor: default;
|
|
4
|
+
text-decoration: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ptc-link {
|
|
2
8
|
display: inline-block;
|
|
3
9
|
color: var(--color-primary-uigrey);
|
|
4
10
|
font-weight: var(--ptc-font-weight-black);
|
|
@@ -8,7 +14,8 @@ ptc-link a.ptc-link {
|
|
|
8
14
|
outline: none;
|
|
9
15
|
text-decoration: none;
|
|
10
16
|
}
|
|
11
|
-
|
|
17
|
+
|
|
18
|
+
.simple::after {
|
|
12
19
|
content: "";
|
|
13
20
|
position: absolute;
|
|
14
21
|
width: 100%;
|
|
@@ -18,13 +25,14 @@ ptc-link a.simple::after {
|
|
|
18
25
|
border-bottom: 2px solid var(--color-primary-green);
|
|
19
26
|
opacity: 0;
|
|
20
27
|
}
|
|
21
|
-
|
|
28
|
+
.simple:hover.simple::after {
|
|
22
29
|
opacity: 1;
|
|
23
30
|
}
|
|
24
|
-
|
|
31
|
+
|
|
32
|
+
.arrow {
|
|
25
33
|
margin-right: var(--ptc-element-spacing-01);
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
.arrow::after {
|
|
28
36
|
position: absolute;
|
|
29
37
|
display: block;
|
|
30
38
|
content: "";
|
|
@@ -33,26 +41,128 @@ ptc-link a.arrow::after {
|
|
|
33
41
|
bottom: 1px;
|
|
34
42
|
transition: width var(--ptc-transition-fast) var(--ptc-standard-ease);
|
|
35
43
|
}
|
|
36
|
-
|
|
44
|
+
.arrow:hover.arrow::after {
|
|
37
45
|
width: 100%;
|
|
38
46
|
}
|
|
39
|
-
|
|
47
|
+
|
|
48
|
+
.uppercase {
|
|
40
49
|
text-transform: uppercase;
|
|
41
50
|
}
|
|
42
|
-
|
|
51
|
+
|
|
52
|
+
.small {
|
|
43
53
|
font-size: var(--ptc-font-size-small);
|
|
44
54
|
}
|
|
45
|
-
|
|
55
|
+
|
|
56
|
+
.medium {
|
|
46
57
|
font-size: var(--ptc-font-size-medium);
|
|
47
58
|
}
|
|
48
|
-
|
|
59
|
+
|
|
60
|
+
.large {
|
|
49
61
|
font-size: var(--ptc-font-size-large);
|
|
50
62
|
}
|
|
51
|
-
|
|
63
|
+
|
|
64
|
+
icon-asset {
|
|
52
65
|
position: absolute;
|
|
53
66
|
right: -25px;
|
|
54
67
|
transition: transform var(--ptc-transition-fast) var(--ptc-standard-ease);
|
|
55
68
|
}
|
|
56
|
-
|
|
69
|
+
icon-asset svg {
|
|
70
|
+
fill: var(--color-primary-green) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ptc-link:hover.arrow icon-asset {
|
|
57
74
|
transform: translateX(var(--ptc-element-spacing-04));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.nav-title {
|
|
78
|
+
font-size: 17px;
|
|
79
|
+
line-height: var(--ptc-line-height-dense);
|
|
80
|
+
letter-spacing: var(--ptc-element-spacing-01);
|
|
81
|
+
color: #cac8c8;
|
|
82
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
|
|
83
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.primary-nav-link {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
position: relative;
|
|
89
|
+
font-size: var(--ptc-font-size-small);
|
|
90
|
+
line-height: var(--ptc-line-height-normal);
|
|
91
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
92
|
+
color: var(--color-white);
|
|
93
|
+
transition: color var(--ptc-transition-slow) ease;
|
|
94
|
+
padding: var(--ptc-element-spacing-04) 50px;
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
outline: none;
|
|
98
|
+
}
|
|
99
|
+
.primary-nav-link:hover {
|
|
100
|
+
color: var(--color-secondary-turtlegreen);
|
|
101
|
+
text-decoration: none;
|
|
102
|
+
outline: none;
|
|
103
|
+
background-color: transparent;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.nav-title-link {
|
|
107
|
+
font-family: var(--ptc-font-secondary-latin);
|
|
108
|
+
font-size: var(--ptc-font-size-medium);
|
|
109
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
110
|
+
line-height: 1.56;
|
|
111
|
+
color: var(--color-white);
|
|
112
|
+
text-decoration: none;
|
|
113
|
+
outline: none;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
transition: color var(--ptc-transition-medium) var(--ptc-decelerated-ease);
|
|
116
|
+
border-bottom: 1.5px solid transparent;
|
|
117
|
+
}
|
|
118
|
+
.nav-title-link:hover {
|
|
119
|
+
color: var(--color-white);
|
|
120
|
+
border-bottom: 1.5px solid var(--color-secondary-turtlegreen);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.secondary-nav-link {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
position: relative;
|
|
126
|
+
font-size: var(--ptc-font-size-x-small);
|
|
127
|
+
line-height: 20px;
|
|
128
|
+
font-weight: var(--ptc-font-weight-light);
|
|
129
|
+
color: var(--color-white);
|
|
130
|
+
transition: color var(--ptc-transition-slow) ease;
|
|
131
|
+
padding: 10px 15px;
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
text-decoration: none;
|
|
134
|
+
outline: none;
|
|
135
|
+
}
|
|
136
|
+
.secondary-nav-link:hover {
|
|
137
|
+
color: var(--color-secondary-turtlegreen);
|
|
138
|
+
text-decoration: none;
|
|
139
|
+
outline: none;
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.footer-nav-link {
|
|
144
|
+
color: var(--color-white);
|
|
145
|
+
transition: border var(--ptc-transition-medium) var(--ptc-standard-ease), color var(--ptc-transition-medium) var(--ptc-standard-ease);
|
|
146
|
+
border-bottom: 1px solid transparent;
|
|
147
|
+
outline: none;
|
|
148
|
+
text-decoration: none;
|
|
149
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
150
|
+
line-height: 1.73;
|
|
151
|
+
letter-spacing: 1.13px;
|
|
152
|
+
text-align: left;
|
|
153
|
+
font-size: 15px;
|
|
154
|
+
}
|
|
155
|
+
.footer-nav-link:hover {
|
|
156
|
+
outline: none;
|
|
157
|
+
text-decoration: none;
|
|
158
|
+
border-bottom: 0.1rem solid var(--color-secondary-turtlegreen);
|
|
159
|
+
color: var(--color-secondary-turtlegreen);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.copyright-link {
|
|
163
|
+
color: var(--color-white);
|
|
164
|
+
font-size: 13px;
|
|
165
|
+
font-weight: var(--ptc-font-weight-normal);
|
|
166
|
+
line-height: 2;
|
|
167
|
+
display: inline-block;
|
|
58
168
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Component, h, Prop, Host } from '@stencil/core';
|
|
2
2
|
export class PtcLink {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Disabled link
|
|
6
|
+
*/
|
|
7
|
+
this.disabled = false;
|
|
4
8
|
/**
|
|
5
9
|
* Rxternal link
|
|
6
10
|
* */
|
|
@@ -34,10 +38,12 @@ export class PtcLink {
|
|
|
34
38
|
['ptc-link']: true,
|
|
35
39
|
[this.theme]: true,
|
|
36
40
|
['uppercase']: this.uppercase,
|
|
41
|
+
['disabled']: this.disabled,
|
|
37
42
|
[this.fontSize]: true,
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
45
|
static get is() { return "ptc-link"; }
|
|
46
|
+
static get encapsulation() { return "shadow"; }
|
|
41
47
|
static get originalStyleUrls() { return {
|
|
42
48
|
"$": ["ptc-link.scss"]
|
|
43
49
|
}; }
|
|
@@ -45,6 +51,24 @@ export class PtcLink {
|
|
|
45
51
|
"$": ["ptc-link.css"]
|
|
46
52
|
}; }
|
|
47
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
|
+
},
|
|
48
72
|
"external": {
|
|
49
73
|
"type": "boolean",
|
|
50
74
|
"mutable": false,
|
|
@@ -119,8 +143,8 @@ export class PtcLink {
|
|
|
119
143
|
"type": "string",
|
|
120
144
|
"mutable": false,
|
|
121
145
|
"complexType": {
|
|
122
|
-
"original": "'simple' | 'arrow'",
|
|
123
|
-
"resolved": "\"arrow\" | \"simple\"",
|
|
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\"",
|
|
124
148
|
"references": {}
|
|
125
149
|
},
|
|
126
150
|
"required": false,
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Component, Prop, Host, h } from '@stencil/core';
|
|
2
|
+
export class PtcNcard {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Card Link URL (Optional)
|
|
6
|
+
*/
|
|
7
|
+
this.cardHref = undefined;
|
|
8
|
+
/**
|
|
9
|
+
* (optional) Link card target
|
|
10
|
+
* */
|
|
11
|
+
this.target = '_self';
|
|
12
|
+
/**
|
|
13
|
+
* (optional) Link card rel
|
|
14
|
+
* */
|
|
15
|
+
this.rel = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* If this card has Image
|
|
18
|
+
*/
|
|
19
|
+
this.hasImage = false;
|
|
20
|
+
/**
|
|
21
|
+
* If this card has Video
|
|
22
|
+
*/
|
|
23
|
+
this.hasVideo = false;
|
|
24
|
+
/**
|
|
25
|
+
* If this card has Lottie Image
|
|
26
|
+
*/
|
|
27
|
+
this.hasLottie = false;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
31
|
+
const classMap = this.getCssClassMap();
|
|
32
|
+
return (h(Host, null,
|
|
33
|
+
h("div", { class: "card-border", part: "border-wrapper" },
|
|
34
|
+
h(Tag, Object.assign({ class: classMap }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
|
|
35
|
+
this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (h("slot", { name: "slot-lottie" })) : null)) : null,
|
|
36
|
+
h("div", { class: "card-body", part: "body-wrapper" },
|
|
37
|
+
h("slot", { name: "slot-body" }))))));
|
|
38
|
+
}
|
|
39
|
+
getCssClassMap() {
|
|
40
|
+
return {
|
|
41
|
+
['is-grid']: true,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "ptc-ncard"; }
|
|
45
|
+
static get encapsulation() { return "shadow"; }
|
|
46
|
+
static get originalStyleUrls() { return {
|
|
47
|
+
"$": ["ptc-ncard.scss"]
|
|
48
|
+
}; }
|
|
49
|
+
static get styleUrls() { return {
|
|
50
|
+
"$": ["ptc-ncard.css"]
|
|
51
|
+
}; }
|
|
52
|
+
static get properties() { return {
|
|
53
|
+
"cardHref": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": true,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": "Card Link URL (Optional)"
|
|
66
|
+
},
|
|
67
|
+
"attribute": "card-href",
|
|
68
|
+
"reflect": false,
|
|
69
|
+
"defaultValue": "undefined"
|
|
70
|
+
},
|
|
71
|
+
"target": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "string",
|
|
76
|
+
"resolved": "string",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": "(optional) Link card target"
|
|
84
|
+
},
|
|
85
|
+
"attribute": "target",
|
|
86
|
+
"reflect": false,
|
|
87
|
+
"defaultValue": "'_self'"
|
|
88
|
+
},
|
|
89
|
+
"rel": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"mutable": false,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "string",
|
|
94
|
+
"resolved": "string",
|
|
95
|
+
"references": {}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "(optional) Link card rel"
|
|
102
|
+
},
|
|
103
|
+
"attribute": "rel",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "undefined"
|
|
106
|
+
},
|
|
107
|
+
"hasImage": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "If this card has Image"
|
|
120
|
+
},
|
|
121
|
+
"attribute": "has-image",
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"defaultValue": "false"
|
|
124
|
+
},
|
|
125
|
+
"hasVideo": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "boolean",
|
|
130
|
+
"resolved": "boolean",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "If this card has Video"
|
|
138
|
+
},
|
|
139
|
+
"attribute": "has-video",
|
|
140
|
+
"reflect": false,
|
|
141
|
+
"defaultValue": "false"
|
|
142
|
+
},
|
|
143
|
+
"hasLottie": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"mutable": false,
|
|
146
|
+
"complexType": {
|
|
147
|
+
"original": "boolean",
|
|
148
|
+
"resolved": "boolean",
|
|
149
|
+
"references": {}
|
|
150
|
+
},
|
|
151
|
+
"required": false,
|
|
152
|
+
"optional": false,
|
|
153
|
+
"docs": {
|
|
154
|
+
"tags": [],
|
|
155
|
+
"text": "If this card has Lottie Image"
|
|
156
|
+
},
|
|
157
|
+
"attribute": "has-lottie",
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"defaultValue": "false"
|
|
160
|
+
}
|
|
161
|
+
}; }
|
|
162
|
+
}
|
|
@@ -86,6 +86,12 @@ export const PtcNavItem: {
|
|
|
86
86
|
new (): PtcNavItem;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
+
interface PtcNcard extends Components.PtcNcard, HTMLElement {}
|
|
90
|
+
export const PtcNcard: {
|
|
91
|
+
prototype: PtcNcard;
|
|
92
|
+
new (): PtcNcard;
|
|
93
|
+
};
|
|
94
|
+
|
|
89
95
|
interface PtcOverlay extends Components.PtcOverlay, HTMLElement {}
|
|
90
96
|
export const PtcOverlay: {
|
|
91
97
|
prototype: PtcOverlay;
|