@ptcwebops/ptcw-design 0.7.0 → 0.7.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/dropdown-item.cjs.entry.js +21 -0
- package/dist/cjs/icon-asset.cjs.entry.js +65 -0
- package/dist/cjs/list-item.cjs.entry.js +30 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-button.cjs.entry.js +76 -0
- package/dist/cjs/{ptc-card.cjs.entry.js → ptc-card_6.cjs.entry.js} +492 -0
- package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ptc-container.cjs.entry.js +46 -0
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +48 -0
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero.cjs.entry.js +29 -0
- package/dist/cjs/ptc-link.cjs.entry.js +1 -1
- package/dist/cjs/ptc-modal.cjs.entry.js +6 -2
- package/dist/cjs/ptc-overlay.cjs.entry.js +31 -0
- package/dist/cjs/ptc-previous-url.cjs.entry.js +19 -0
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +26 -0
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +64 -0
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +94 -0
- package/dist/cjs/ptc-tab-list.cjs.entry.js +133 -0
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +35 -0
- package/dist/cjs/ptc-title.cjs.entry.js +84 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/tab-content.cjs.entry.js +37 -0
- package/dist/cjs/tab-header.cjs.entry.js +54 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/dropdown-item/dropdown-item.css +2 -7
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +6 -5
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +11 -16
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +1 -1
- package/dist/collection/components/ptc-link/ptc-link.css +0 -1
- package/dist/collection/components/ptc-modal/ptc-modal.css +4 -1
- package/dist/collection/components/ptc-modal/ptc-modal.js +23 -1
- package/dist/collection/components/ptc-para/ptc-para.css +7 -0
- package/dist/collection/components/ptc-para/ptc-para.js +30 -2
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.css +17 -18
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +11 -7
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +14 -10
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +96 -0
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +129 -0
- package/dist/collection/components/ptc-title/ptc-title.css +34 -3
- package/dist/collection/components/ptc-title/ptc-title.js +54 -2
- package/dist/collection/components/tab-content/tab-content.css +10 -5
- package/dist/collection/components/tab-header/tab-header.css +18 -4
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +96 -29
- package/dist/esm/dropdown-item.entry.js +17 -0
- package/dist/esm/icon-asset.entry.js +61 -0
- package/dist/esm/{index-a91c2367.js → index-5ff11327.js} +1 -1
- package/dist/esm/list-item.entry.js +26 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +72 -0
- package/dist/esm/ptc-card-bottom.entry.js +1 -1
- package/dist/esm/ptc-card-content.entry.js +1 -1
- package/dist/esm/ptc-card-plm.entry.js +1 -1
- package/dist/esm/{ptc-card.entry.js → ptc-card_6.entry.js} +489 -2
- package/dist/esm/ptc-checkbox.entry.js +2 -2
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +42 -0
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +44 -0
- package/dist/esm/ptc-filter-tag.entry.js +2 -2
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +25 -0
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +2 -2
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-minimized-footer.entry.js +1 -1
- package/dist/esm/ptc-minimized-header.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +1 -1
- package/dist/esm/ptc-modal.entry.js +7 -3
- package/dist/esm/ptc-nav-item.entry.js +1 -1
- package/dist/esm/ptc-nav.entry.js +1 -1
- package/dist/esm/ptc-overlay.entry.js +27 -0
- package/dist/esm/ptc-pagenation.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +15 -0
- package/dist/esm/ptc-pricing-block.entry.js +22 -0
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-shopping-cart.entry.js +60 -0
- package/dist/esm/ptc-social-share.entry.js +1 -1
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +90 -0
- package/dist/esm/ptc-tab-list.entry.js +129 -0
- package/dist/esm/ptc-text-copy-with-background.entry.js +31 -0
- package/dist/esm/ptc-title.entry.js +80 -0
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/esm/tab-content.entry.js +33 -0
- package/dist/esm/tab-header.entry.js +50 -0
- package/dist/ptcw-design/p-09351f78.entry.js +1 -0
- package/dist/ptcw-design/{p-401e8ad1.entry.js → p-10385027.entry.js} +1 -1
- package/dist/ptcw-design/{p-7274d38e.entry.js → p-10f6d8ae.entry.js} +1 -1
- package/dist/ptcw-design/p-15ec8469.entry.js +1 -0
- package/dist/ptcw-design/{p-b614e18a.entry.js → p-1a77a824.entry.js} +1 -1
- package/dist/ptcw-design/p-1ec512ea.entry.js +1 -0
- package/dist/ptcw-design/{p-0507d8de.entry.js → p-39b8d25b.entry.js} +1 -1
- package/dist/ptcw-design/p-3a4bb2b1.entry.js +1 -0
- package/dist/ptcw-design/{p-22a11703.js → p-4355ed7c.js} +1 -1
- package/dist/ptcw-design/{p-a6a938d2.entry.js → p-446423fc.entry.js} +1 -1
- package/dist/ptcw-design/{p-a3e99867.entry.js → p-4ab335ac.entry.js} +1 -1
- package/dist/ptcw-design/p-4da25d67.entry.js +1 -0
- package/dist/ptcw-design/p-53790fb4.entry.js +1 -0
- package/dist/ptcw-design/{p-870406ab.entry.js → p-5bf5932c.entry.js} +1 -1
- package/dist/ptcw-design/p-5c02f876.entry.js +1 -0
- package/dist/ptcw-design/{p-e3b5792a.entry.js → p-5c5c8f25.entry.js} +1 -1
- package/dist/ptcw-design/{p-82d428ea.entry.js → p-5e845a15.entry.js} +1 -1
- package/dist/ptcw-design/p-5fd37a0e.entry.js +1 -0
- package/dist/ptcw-design/p-5fd60b15.entry.js +1 -0
- package/dist/ptcw-design/{p-92d95119.entry.js → p-64f85e40.entry.js} +1 -1
- package/dist/ptcw-design/{p-80be8fe1.entry.js → p-6ab5aee9.entry.js} +1 -1
- package/dist/ptcw-design/{p-b6a9d66f.entry.js → p-70d2c46d.entry.js} +1 -1
- package/dist/ptcw-design/{p-735fb369.entry.js → p-74a31734.entry.js} +1 -1
- package/dist/ptcw-design/{p-03648d85.entry.js → p-7599491c.entry.js} +1 -1
- package/dist/ptcw-design/p-7a37d762.entry.js +1 -0
- package/dist/ptcw-design/{p-f4148769.entry.js → p-83a9720c.entry.js} +1 -1
- package/dist/ptcw-design/{p-77327ab7.entry.js → p-85e7bbc3.entry.js} +1 -1
- package/dist/ptcw-design/p-8ba6cef7.entry.js +1 -0
- package/dist/ptcw-design/{p-0004abbb.entry.js → p-8c0ba2d5.entry.js} +1 -1
- package/dist/ptcw-design/p-8c594b35.entry.js +1 -0
- package/dist/ptcw-design/p-8d46a06e.entry.js +1 -0
- package/dist/ptcw-design/p-96bfb95b.entry.js +1 -0
- package/dist/ptcw-design/p-a06bc9a8.entry.js +1 -0
- package/dist/ptcw-design/{p-3f2c3e47.entry.js → p-b1bfc20f.entry.js} +1 -1
- package/dist/ptcw-design/{p-13d45895.entry.js → p-baa7d351.entry.js} +1 -1
- package/dist/ptcw-design/{p-e7e07b91.entry.js → p-bb4485e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-30f33198.entry.js → p-bcfd05dc.entry.js} +1 -1
- package/dist/ptcw-design/p-be32e928.entry.js +1 -0
- package/dist/ptcw-design/{p-3f0d3485.entry.js → p-c05f0c98.entry.js} +1 -1
- package/dist/ptcw-design/{p-273ff521.entry.js → p-c267b720.entry.js} +1 -1
- package/dist/ptcw-design/{p-ca54a4bc.entry.js → p-c26e343e.entry.js} +1 -1
- package/dist/ptcw-design/{p-c9ba3915.entry.js → p-c460a62d.entry.js} +1 -1
- package/dist/ptcw-design/{p-75a36c38.entry.js → p-c91a875b.entry.js} +1 -1
- package/dist/ptcw-design/p-cd2404f0.entry.js +1 -0
- package/dist/ptcw-design/p-ce5ee58d.entry.js +1 -0
- package/dist/ptcw-design/p-d39668ca.entry.js +1 -0
- package/dist/ptcw-design/{p-07e08a42.entry.js → p-e955c833.entry.js} +1 -1
- package/dist/ptcw-design/p-f0cd0fb4.entry.js +1 -0
- package/dist/ptcw-design/p-f5ba2d0e.entry.js +1 -0
- package/dist/ptcw-design/p-f7d18b93.entry.js +1 -0
- package/dist/ptcw-design/p-fce72f70.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-modal/ptc-modal.d.ts +4 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +5 -0
- package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +25 -0
- package/dist/types/components/ptc-title/ptc-title.d.ts +9 -0
- package/dist/types/components.d.ts +85 -0
- package/dist/types/utils/interfaces.d.ts +4 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/dropdown-item_19.cjs.entry.js +0 -993
- package/dist/cjs/interfaces-0ecd8027.js +0 -15
- package/dist/cjs/ptc-date.cjs.entry.js +0 -59
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -179
- package/dist/esm/dropdown-item_19.entry.js +0 -971
- package/dist/esm/interfaces-3cb94654.js +0 -12
- package/dist/esm/ptc-date.entry.js +0 -55
- package/dist/esm/ptc-picture.entry.js +0 -175
- package/dist/ptcw-design/p-08b4804a.entry.js +0 -1
- package/dist/ptcw-design/p-240733ce.js +0 -1
- package/dist/ptcw-design/p-3ef2b02f.entry.js +0 -1
- package/dist/ptcw-design/p-43e3f76e.entry.js +0 -1
- package/dist/ptcw-design/p-62e7565c.entry.js +0 -1
- package/dist/ptcw-design/p-6c034edd.entry.js +0 -1
- package/dist/ptcw-design/p-704bf1cd.entry.js +0 -1
- package/dist/ptcw-design/p-a2ca6ff1.entry.js +0 -1
- package/dist/ptcw-design/p-b985e510.entry.js +0 -1
- package/dist/ptcw-design/p-c7e63622.entry.js +0 -1
package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
padding: var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-01);
|
|
5
|
+
color: var(--color-white);
|
|
6
|
+
}
|
|
7
|
+
@media only screen and (min-width: 768px) {
|
|
8
|
+
:host {
|
|
9
|
+
padding: var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-03);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
@media only screen and (min-width: 992px) {
|
|
13
|
+
:host {
|
|
14
|
+
padding: var(--ptc-layout-spacing-06) 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@media only screen and (min-width: 1200px) {
|
|
18
|
+
:host {
|
|
19
|
+
padding: var(--ptc-layout-spacing-06) var(--ptc-layout-spacing-03);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
:host .content-wrap {
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
:host .tcb-top-slit {
|
|
26
|
+
fill: #f3f3f3;
|
|
27
|
+
-webkit-transform: scaleX(-1);
|
|
28
|
+
-ms-transform: scaleX(-1);
|
|
29
|
+
transform: scale(1.5, -1);
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: -1px;
|
|
32
|
+
right: 80px;
|
|
33
|
+
z-index: 99;
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
@media only screen and (min-width: 992px) {
|
|
37
|
+
:host .tcb-top-slit {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
:host .bg-img-filter {
|
|
42
|
+
-webkit-filter: url(#blur);
|
|
43
|
+
filter: url(#blur);
|
|
44
|
+
-webkit-mask: -webkit-gradient(linear, left top, right top, color-stop(30%, var(--color-black)), to(rgba(0, 0, 0, 0)));
|
|
45
|
+
-webkit-mask: linear-gradient(90deg, var(--color-black) 30%, rgba(0, 0, 0, 0));
|
|
46
|
+
-webkit-filter: blur(7px);
|
|
47
|
+
}
|
|
48
|
+
:host .copy-bg-image {
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
height: 100%;
|
|
52
|
+
width: 100%;
|
|
53
|
+
position: absolute;
|
|
54
|
+
-o-object-fit: cover;
|
|
55
|
+
object-fit: cover;
|
|
56
|
+
}
|
|
57
|
+
@media only screen and (min-width: 992px) {
|
|
58
|
+
:host .copy-bg-image {
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
:host .copy-bg-overlay-layer {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
height: 100%;
|
|
67
|
+
width: 100%;
|
|
68
|
+
background: var(--color-black);
|
|
69
|
+
opacity: 0.55;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media only screen and (min-width: 1200px) {
|
|
73
|
+
:host(.hero-footer-cta) {
|
|
74
|
+
padding: calc(var(--ptc-layout-spacing-06) + var(--ptc-layout-spacing-03)) var(--ptc-layout-spacing-03);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host(.tab-cta-with-background) {
|
|
79
|
+
min-height: 400px;
|
|
80
|
+
padding: var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-02);
|
|
81
|
+
}
|
|
82
|
+
@media only screen and (min-width: 1200px) {
|
|
83
|
+
:host(.tab-cta-with-background) {
|
|
84
|
+
padding: calc(var(--ptc-layout-spacing-06) + var(--ptc-layout-spacing-03)) var(--ptc-layout-spacing-05);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
:host(.tab-cta-with-background) .copy-bg-overlay-layer {
|
|
88
|
+
background: initial;
|
|
89
|
+
opacity: 1;
|
|
90
|
+
background-image: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.9) 63%, rgba(176, 188, 194, 0) 95%);
|
|
91
|
+
}
|
|
92
|
+
@media only screen and (min-width: 992px) {
|
|
93
|
+
:host(.tab-cta-with-background) .copy-bg-overlay-layer {
|
|
94
|
+
background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 43%, rgba(176, 188, 194, 0) 95%);
|
|
95
|
+
}
|
|
96
|
+
}
|
package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
+
export class PtcTextCopyWithBackground {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Type
|
|
6
|
+
* Specify Type, default is text-copy-with-background
|
|
7
|
+
*/
|
|
8
|
+
this.type = 'text-copy-with-background';
|
|
9
|
+
/**
|
|
10
|
+
* (optional) isBackgroundBlur: If true,it will add background blur image effect
|
|
11
|
+
*/
|
|
12
|
+
this.isBackgroundBlur = false;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const classMap = this.getCssClassMap();
|
|
16
|
+
return (h(Host, { class: classMap },
|
|
17
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "tcb-top-slit", width: "320.963", height: "28.179", viewBox: "0 0 320.963 28.179", style: { fill: this.topSlitBackgroundColor } },
|
|
18
|
+
h("path", { id: "Path_8770", d: "M737.02 463.856v27.8H416.057v.378h102.38l47.607-28.179z", class: "tcb-top-slit-cls-1", "data-name": "Path 8770", transform: "translate(-416.057 -463.856)" })),
|
|
19
|
+
h("div", { class: "" },
|
|
20
|
+
h("img", { class: "copy-bg-image", alt: this.ImageAltText, src: this.backgroundImage }),
|
|
21
|
+
this.isBackgroundBlur &&
|
|
22
|
+
h("img", { class: "copy-bg-image bg-img-filter", alt: this.ImageAltText, src: this.backgroundImage })),
|
|
23
|
+
h("div", { class: "copy-bg-overlay-layer" }),
|
|
24
|
+
h("div", { class: "content-wrap" },
|
|
25
|
+
h("slot", null))));
|
|
26
|
+
}
|
|
27
|
+
getCssClassMap() {
|
|
28
|
+
return {
|
|
29
|
+
[this.type]: true
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "ptc-text-copy-with-background"; }
|
|
33
|
+
static get encapsulation() { return "shadow"; }
|
|
34
|
+
static get originalStyleUrls() { return {
|
|
35
|
+
"$": ["ptc-text-copy-with-background.scss"]
|
|
36
|
+
}; }
|
|
37
|
+
static get styleUrls() { return {
|
|
38
|
+
"$": ["ptc-text-copy-with-background.css"]
|
|
39
|
+
}; }
|
|
40
|
+
static get properties() { return {
|
|
41
|
+
"type": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"mutable": false,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background'",
|
|
46
|
+
"resolved": "\"hero-footer-cta\" | \"tab-cta-with-background\" | \"text-copy-with-background\"",
|
|
47
|
+
"references": {}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [],
|
|
53
|
+
"text": "Type\nSpecify Type, default is text-copy-with-background"
|
|
54
|
+
},
|
|
55
|
+
"attribute": "type",
|
|
56
|
+
"reflect": false,
|
|
57
|
+
"defaultValue": "'text-copy-with-background'"
|
|
58
|
+
},
|
|
59
|
+
"backgroundImage": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "Background image"
|
|
72
|
+
},
|
|
73
|
+
"attribute": "background-image",
|
|
74
|
+
"reflect": false
|
|
75
|
+
},
|
|
76
|
+
"ImageAltText": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": true,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "(optional) Image alt text"
|
|
89
|
+
},
|
|
90
|
+
"attribute": "image-alt-text",
|
|
91
|
+
"reflect": false
|
|
92
|
+
},
|
|
93
|
+
"topSlitBackgroundColor": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "string",
|
|
98
|
+
"resolved": "string",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": true,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "(optional) topSlitBackgroundColor: It will be color value which should match the background of the body."
|
|
106
|
+
},
|
|
107
|
+
"attribute": "top-slit-background-color",
|
|
108
|
+
"reflect": false
|
|
109
|
+
},
|
|
110
|
+
"isBackgroundBlur": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "boolean",
|
|
115
|
+
"resolved": "boolean",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": true,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "(optional) isBackgroundBlur: If true,it will add background blur image effect"
|
|
123
|
+
},
|
|
124
|
+
"attribute": "is-background-blur",
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"defaultValue": "false"
|
|
127
|
+
}
|
|
128
|
+
}; }
|
|
129
|
+
}
|
|
@@ -239,13 +239,28 @@ div.x-large h1, div.x-large h2, div.x-large h3, div.x-large h4, div.x-large h5,
|
|
|
239
239
|
font-size: var(--ptc-font-size-x-large);
|
|
240
240
|
}
|
|
241
241
|
div.xx-large h1, div.xx-large h2, div.xx-large h3, div.xx-large h4 {
|
|
242
|
-
font-size: var(--ptc-font-size-
|
|
242
|
+
font-size: var(--ptc-font-size-x-large);
|
|
243
|
+
}
|
|
244
|
+
@media only screen and (min-width: 768px) {
|
|
245
|
+
div.xx-large h1, div.xx-large h2, div.xx-large h3, div.xx-large h4 {
|
|
246
|
+
font-size: var(--ptc-font-size-xx-large);
|
|
247
|
+
}
|
|
243
248
|
}
|
|
244
249
|
div.xxx-large h1, div.xxx-large h2, div.xxx-large h3, div.xxx-large h4, div.xxx-large h5, div.xxx-large h6 {
|
|
245
|
-
font-size: var(--ptc-font-size-
|
|
250
|
+
font-size: var(--ptc-font-size-xx-large);
|
|
251
|
+
}
|
|
252
|
+
@media only screen and (min-width: 768px) {
|
|
253
|
+
div.xxx-large h1, div.xxx-large h2, div.xxx-large h3, div.xxx-large h4, div.xxx-large h5, div.xxx-large h6 {
|
|
254
|
+
font-size: var(--ptc-font-size-xxx-large);
|
|
255
|
+
}
|
|
246
256
|
}
|
|
247
257
|
div.xxxx-large h1, div.xxxx-large h2, div.xxxx-large h3, div.xxxx-large h4, div.xxxx-large h5, div.xxxx-large h6 {
|
|
248
|
-
font-size: var(--ptc-font-size-
|
|
258
|
+
font-size: var(--ptc-font-size-xxx-large);
|
|
259
|
+
}
|
|
260
|
+
@media only screen and (min-width: 768px) {
|
|
261
|
+
div.xxxx-large h1, div.xxxx-large h2, div.xxxx-large h3, div.xxxx-large h4, div.xxxx-large h5, div.xxxx-large h6 {
|
|
262
|
+
font-size: var(--ptc-font-size-xxxx-large);
|
|
263
|
+
}
|
|
249
264
|
}
|
|
250
265
|
div.densest h1, div.densest h2, div.densest h3, div.densest h4, div.densest h5, div.densest h6 {
|
|
251
266
|
line-height: var(--ptc-line-height-densest);
|
|
@@ -267,4 +282,20 @@ div.looser h1, div.looser h2, div.looser h3, div.looser h4, div.looser h5, div.l
|
|
|
267
282
|
}
|
|
268
283
|
div.paragraph h1, div.paragraph h2, div.paragraph h3, div.paragraph h4, div.paragraph h5, div.paragraph h6 {
|
|
269
284
|
line-height: var(--ptc-line-height-paragraph);
|
|
285
|
+
}
|
|
286
|
+
div.black h1, div.black h2, div.black h3, div.black h4, div.black h5, div.black h6 {
|
|
287
|
+
color: var(--color-black);
|
|
288
|
+
}
|
|
289
|
+
div.white h1, div.white h2, div.white h3, div.white h4, div.white h5, div.white h6 {
|
|
290
|
+
color: var(--color-white);
|
|
291
|
+
}
|
|
292
|
+
div.gray h1, div.gray h2, div.gray h3, div.gray h4, div.gray h5, div.gray h6 {
|
|
293
|
+
color: var(--color-gray-10);
|
|
294
|
+
}
|
|
295
|
+
div.ellipsis-boxing h1, div.ellipsis-boxing h2, div.ellipsis-boxing h3, div.ellipsis-boxing h4, div.ellipsis-boxing h5, div.ellipsis-boxing h6 {
|
|
296
|
+
display: -webkit-box;
|
|
297
|
+
-webkit-line-clamp: 1;
|
|
298
|
+
-webkit-box-orient: vertical;
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
text-overflow: ellipsis;
|
|
270
301
|
}
|
|
@@ -13,6 +13,10 @@ export class PtcTitle {
|
|
|
13
13
|
* Upperline Style
|
|
14
14
|
*/
|
|
15
15
|
this.upperline = 'dotted';
|
|
16
|
+
/**
|
|
17
|
+
* Title color
|
|
18
|
+
*/
|
|
19
|
+
this.titleColor = 'gray';
|
|
16
20
|
/**
|
|
17
21
|
* Title line height
|
|
18
22
|
*/
|
|
@@ -20,6 +24,7 @@ export class PtcTitle {
|
|
|
20
24
|
}
|
|
21
25
|
render() {
|
|
22
26
|
const classMap = this.getCssClassMap();
|
|
27
|
+
const cutOff = this.getLineCuttoff();
|
|
23
28
|
let TagType;
|
|
24
29
|
switch (this.type) {
|
|
25
30
|
case 'h1':
|
|
@@ -40,10 +45,11 @@ export class PtcTitle {
|
|
|
40
45
|
default:
|
|
41
46
|
TagType = 'h2';
|
|
42
47
|
}
|
|
48
|
+
;
|
|
43
49
|
return (h(Host, null,
|
|
44
50
|
this.styles && h("style", null, this.styles),
|
|
45
51
|
h("div", { class: classMap },
|
|
46
|
-
h(TagType,
|
|
52
|
+
h(TagType, { style: cutOff },
|
|
47
53
|
h("slot", null)))));
|
|
48
54
|
}
|
|
49
55
|
getCssClassMap() {
|
|
@@ -55,9 +61,20 @@ export class PtcTitle {
|
|
|
55
61
|
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
56
62
|
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
57
63
|
[this.titleSize]: !!this.titleSize ? true : false,
|
|
58
|
-
[this.titleHeight]: !!this.titleHeight ? true : false
|
|
64
|
+
[this.titleHeight]: !!this.titleHeight ? true : false,
|
|
65
|
+
[this.titleColor]: !!this.titleColor ? true : false,
|
|
66
|
+
['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0
|
|
59
67
|
};
|
|
60
68
|
}
|
|
69
|
+
getLineCuttoff() {
|
|
70
|
+
let result;
|
|
71
|
+
if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
|
|
72
|
+
result = {
|
|
73
|
+
['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
61
78
|
static get is() { return "ptc-title"; }
|
|
62
79
|
static get encapsulation() { return "scoped"; }
|
|
63
80
|
static get originalStyleUrls() { return {
|
|
@@ -155,6 +172,24 @@ export class PtcTitle {
|
|
|
155
172
|
"attribute": "title-shadow",
|
|
156
173
|
"reflect": false
|
|
157
174
|
},
|
|
175
|
+
"titleColor": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "'black' | 'white' | 'gray'",
|
|
180
|
+
"resolved": "\"black\" | \"gray\" | \"white\"",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": false,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": "Title color"
|
|
188
|
+
},
|
|
189
|
+
"attribute": "title-color",
|
|
190
|
+
"reflect": false,
|
|
191
|
+
"defaultValue": "'gray'"
|
|
192
|
+
},
|
|
158
193
|
"titleMargin": {
|
|
159
194
|
"type": "string",
|
|
160
195
|
"mutable": false,
|
|
@@ -240,6 +275,23 @@ export class PtcTitle {
|
|
|
240
275
|
},
|
|
241
276
|
"attribute": "styles",
|
|
242
277
|
"reflect": false
|
|
278
|
+
},
|
|
279
|
+
"ellipsisLineCutoff": {
|
|
280
|
+
"type": "number",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "number",
|
|
284
|
+
"resolved": "number",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": true,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Line number to cut text off at and add ellipsis"
|
|
292
|
+
},
|
|
293
|
+
"attribute": "ellipsis-line-cutoff",
|
|
294
|
+
"reflect": false
|
|
243
295
|
}
|
|
244
296
|
}; }
|
|
245
297
|
}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
.tab-content {
|
|
2
2
|
display: none;
|
|
3
3
|
}
|
|
4
|
+
.tab-content p, .tab-content ul, .tab-content ol, .tab-content span {
|
|
5
|
+
max-width: 720px;
|
|
6
|
+
font-weight: var(--ptc-font-weight-normal);
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
.tab-content-selected {
|
|
6
10
|
display: block;
|
|
7
11
|
}
|
|
8
12
|
|
|
9
|
-
p {
|
|
10
|
-
max-width: 720px;
|
|
11
|
-
font-weight: 400px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
13
|
.tab-content h3 {
|
|
15
14
|
font-size: 24px;
|
|
16
15
|
font-weight: 700;
|
|
16
|
+
}
|
|
17
|
+
.tab-content :first-child {
|
|
18
|
+
margin-top: 0px;
|
|
19
|
+
}
|
|
20
|
+
.tab-content :last-child {
|
|
21
|
+
margin-bottom: 0px;
|
|
17
22
|
}
|
|
@@ -12,12 +12,24 @@
|
|
|
12
12
|
font-family: "Raleway";
|
|
13
13
|
font-style: normal;
|
|
14
14
|
font-weight: 700;
|
|
15
|
-
font-size:
|
|
16
|
-
line-height:
|
|
15
|
+
font-size: var(--ptc-font-size-small);
|
|
16
|
+
line-height: var(--ptc-line-height-p);
|
|
17
17
|
white-space: nowrap;
|
|
18
18
|
/* identical to box height, or 150% */
|
|
19
19
|
text-align: center;
|
|
20
20
|
color: var(--color-gray-07);
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
.tab-header::after {
|
|
24
|
+
content: "";
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 2px;
|
|
27
|
+
background-color: var(--color-gray-02);
|
|
28
|
+
position: absolute;
|
|
29
|
+
display: block;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
bottom: -4px;
|
|
21
33
|
}
|
|
22
34
|
|
|
23
35
|
@media (max-width: 599px) {
|
|
@@ -26,7 +38,9 @@
|
|
|
26
38
|
}
|
|
27
39
|
}
|
|
28
40
|
.tab-header-selected {
|
|
29
|
-
border-bottom: 2px solid var(--color-green-07);
|
|
30
41
|
color: var(--color-gray-10);
|
|
31
|
-
font-weight:
|
|
42
|
+
font-weight: var(--ptc-font-weight-bold);
|
|
43
|
+
}
|
|
44
|
+
.tab-header-selected::after {
|
|
45
|
+
background-color: var(--color-green-07);
|
|
32
46
|
}
|
|
@@ -296,6 +296,12 @@ export const PtcTabList: {
|
|
|
296
296
|
new (): PtcTabList;
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
+
interface PtcTextCopyWithBackground extends Components.PtcTextCopyWithBackground, HTMLElement {}
|
|
300
|
+
export const PtcTextCopyWithBackground: {
|
|
301
|
+
prototype: PtcTextCopyWithBackground;
|
|
302
|
+
new (): PtcTextCopyWithBackground;
|
|
303
|
+
};
|
|
304
|
+
|
|
299
305
|
interface PtcTitle extends Components.PtcTitle, HTMLElement {}
|
|
300
306
|
export const PtcTitle: {
|
|
301
307
|
prototype: PtcTitle;
|