@ptcwebops/ptcw-design 1.6.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{esm/core-1c9d4889.js → cjs/core-5a811549.js} +26 -1
- package/dist/cjs/{icon-asset_17.cjs.entry.js → icon-asset_16.cjs.entry.js} +44 -38
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1685 -0
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +29 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-news.cjs.entry.js +28 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-progress-bar_2.cjs.entry.js +11 -1
- package/dist/cjs/ptc-readmore.cjs.entry.js +2 -2
- package/dist/cjs/ptc-slit-card.cjs.entry.js +36 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/sequential-bundle-example.cjs.entry.js +1 -1
- package/dist/cjs/sequential-bundle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/icon-asset/media/designer.svg +33 -3
- package/dist/collection/components/ptc-button/ptc-button.css +18 -0
- package/dist/collection/components/ptc-button/ptc-button.js +20 -1
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +831 -0
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +91 -0
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.css +49 -0
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +51 -0
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +0 -17
- package/dist/collection/components/ptc-news/ptc-news.css +47 -0
- package/dist/collection/components/ptc-news/ptc-news.js +169 -0
- package/dist/collection/components/ptc-para/ptc-para.css +8 -0
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +0 -17
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +22 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.js +3 -2
- package/dist/collection/components/ptc-product-list/ptc-product-list.js +23 -0
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +6 -1
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +18 -2
- package/dist/collection/components/ptc-readmore/ptc-readmore.js +2 -2
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +32 -4
- package/dist/collection/stories/ReadMore.stories.js +100 -0
- package/dist/collection/stories/Tooltip.stories.js +112 -0
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +9666 -7875
- package/dist/{cjs/core-fd18b67a.js → esm/core-2af05469.js} +14 -3
- package/dist/esm/{icon-asset_17.entry.js → icon-asset_16.entry.js} +45 -38
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-case-studies-slider.entry.js +1681 -0
- package/dist/esm/ptc-image-download-strip.entry.js +25 -0
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-news.entry.js +24 -0
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-progress-bar_2.entry.js +11 -1
- package/dist/esm/ptc-readmore.entry.js +2 -2
- package/dist/esm/ptc-slit-card.entry.js +32 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/sequential-bundle-example.entry.js +1 -1
- package/dist/esm/sequential-bundle.entry.js +1 -1
- package/dist/ptcw-design/media/designer.svg +33 -3
- package/dist/ptcw-design/{p-9e23fa0e.entry.js → p-1cea4b9e.entry.js} +1 -1
- package/dist/ptcw-design/p-4e551e25.entry.js +1 -0
- package/dist/ptcw-design/p-5507ef4b.entry.js +1 -0
- package/dist/ptcw-design/p-575de112.js +1 -0
- package/dist/ptcw-design/{p-b1a63c48.entry.js → p-7753a23d.entry.js} +1 -1
- package/dist/ptcw-design/p-aa942e3b.entry.js +1 -0
- package/dist/ptcw-design/p-b5d7c48e.entry.js +1 -0
- package/dist/ptcw-design/p-c5fadad0.entry.js +1 -0
- package/dist/ptcw-design/{p-9cb33f7d.entry.js → p-d9f4813a.entry.js} +1 -1
- package/dist/ptcw-design/{p-48c53295.entry.js → p-f1f1b19d.entry.js} +1 -1
- package/dist/ptcw-design/p-fe438f03.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-button/ptc-button.d.ts +4 -0
- package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +14 -0
- package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +9 -0
- package/dist/types/components/ptc-news/ptc-news.d.ts +35 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +1 -0
- package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +1 -0
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +5 -1
- package/dist/types/components.d.ts +135 -8
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-2c23c489.entry.js +0 -1
- package/dist/ptcw-design/p-69dddd51.js +0 -1
- package/dist/ptcw-design/p-c26920ef.entry.js +0 -1
|
@@ -20,7 +20,7 @@ export class PtcReadmore {
|
|
|
20
20
|
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
23
|
+
// Created this function to initialize the truncate function on specific elements like tabs
|
|
24
24
|
enableAddTruncatedClass(element) {
|
|
25
25
|
const allTabHeaders = document.querySelectorAll(element);
|
|
26
26
|
for (const element of Array.from(allTabHeaders)) {
|
|
@@ -52,7 +52,7 @@ export class PtcReadmore {
|
|
|
52
52
|
this.checked = event.target.checked;
|
|
53
53
|
// Getting cta element
|
|
54
54
|
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
55
|
-
// Updating the cta text
|
|
55
|
+
// Updating the cta text
|
|
56
56
|
this.checked
|
|
57
57
|
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
58
58
|
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
@@ -11,10 +11,12 @@ export class PtcSocialShare {
|
|
|
11
11
|
this.iconColor = 'white';
|
|
12
12
|
this.iconHoverColor = 'gray';
|
|
13
13
|
this.isHover = false;
|
|
14
|
+
this.iconSize = 'large';
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
17
|
const classMap = this.getCssClassMap();
|
|
17
|
-
return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size:
|
|
18
|
+
return (h(Host, { class: classMap }, h("div", { onClick: () => this.share(), onMouseEnter: () => this.hoverToggle(), onMouseLeave: () => this.hoverToggle() }, this.shareType == 'mail' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-mail" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-linkedin" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-twitter" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "plm-fb" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-mail' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "mail-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-linkedin' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "linkedin-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-twitter' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "twitter-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'blog-facebook' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "facebook-blogs-icon" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'share-api' ? h("icon-asset", Object.assign({ type: "solid", size: this.iconSize, name: "share-square" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null, this.shareType == 'download' ? h("icon-asset", Object.assign({ type: "ptc", size: this.iconSize, name: "download-arrow-news", color: "inherit" }, (this.isHover ? { color: this.iconHoverColor } : { color: this.iconColor }))) : null), this.shareType == 'download' &&
|
|
19
|
+
h("ptc-modal", { id: "download-modal", show: false, size: "lg", fixed: true, "is-bio-modal": true }, h("ptc-title", { type: 'h2', "text-align": 'center', "title-weight": "w-5", upperline: "no-upperline" }, "Thanks For Downloading"))));
|
|
18
20
|
}
|
|
19
21
|
getCssClassMap() {
|
|
20
22
|
return {
|
|
@@ -54,6 +56,14 @@ export class PtcSocialShare {
|
|
|
54
56
|
window.open(`http://twitter.com/share?text=${this.text}&url=${this.url}`);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
59
|
+
if (this.shareType == 'download') {
|
|
60
|
+
let modal = this.el.shadowRoot.querySelector('#download-modal');
|
|
61
|
+
modal.setAttribute('show', 'true');
|
|
62
|
+
setTimeout(() => {
|
|
63
|
+
modal.setAttribute('show', 'false');
|
|
64
|
+
window.open(`${this.url}`, "_self");
|
|
65
|
+
}, 1000);
|
|
66
|
+
}
|
|
57
67
|
}
|
|
58
68
|
static get is() { return "ptc-social-share"; }
|
|
59
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,8 +101,8 @@ export class PtcSocialShare {
|
|
|
91
101
|
"type": "string",
|
|
92
102
|
"mutable": false,
|
|
93
103
|
"complexType": {
|
|
94
|
-
"original": "'mail' | 'twitter' | 'linkedin' | 'facebook' | 'share-api' | 'blog-mail' | 'blog-twitter' | 'blog-linkedin' | 'blog-facebook'",
|
|
95
|
-
"resolved": "\"blog-facebook\" | \"blog-linkedin\" | \"blog-mail\" | \"blog-twitter\" | \"facebook\" | \"linkedin\" | \"mail\" | \"share-api\" | \"twitter\"",
|
|
104
|
+
"original": "'mail' | 'twitter' | 'linkedin' | 'facebook' | 'share-api' | 'download' | 'blog-mail' | 'blog-twitter' | 'blog-linkedin' | 'blog-facebook'",
|
|
105
|
+
"resolved": "\"blog-facebook\" | \"blog-linkedin\" | \"blog-mail\" | \"blog-twitter\" | \"download\" | \"facebook\" | \"linkedin\" | \"mail\" | \"share-api\" | \"twitter\"",
|
|
96
106
|
"references": {}
|
|
97
107
|
},
|
|
98
108
|
"required": false,
|
|
@@ -196,7 +206,7 @@ export class PtcSocialShare {
|
|
|
196
206
|
"type": "string",
|
|
197
207
|
"mutable": false,
|
|
198
208
|
"complexType": {
|
|
199
|
-
"original": "'black' | 'white' | 'ptc-green' | 'gray' | 'primary-gray' |'inherit'",
|
|
209
|
+
"original": "'black' | 'white' | 'ptc-green' | 'gray' | 'primary-gray' | 'inherit'",
|
|
200
210
|
"resolved": "\"black\" | \"gray\" | \"inherit\" | \"primary-gray\" | \"ptc-green\" | \"white\"",
|
|
201
211
|
"references": {}
|
|
202
212
|
},
|
|
@@ -227,6 +237,24 @@ export class PtcSocialShare {
|
|
|
227
237
|
"attribute": "icon-hover-color",
|
|
228
238
|
"reflect": false,
|
|
229
239
|
"defaultValue": "'gray'"
|
|
240
|
+
},
|
|
241
|
+
"iconSize": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"mutable": false,
|
|
244
|
+
"complexType": {
|
|
245
|
+
"original": "'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large'",
|
|
246
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"xx-large\" | \"xxx-large\" | \"xxxx-large\"",
|
|
247
|
+
"references": {}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": true,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "Icon Size"
|
|
254
|
+
},
|
|
255
|
+
"attribute": "icon-size",
|
|
256
|
+
"reflect": false,
|
|
257
|
+
"defaultValue": "'large'"
|
|
230
258
|
}
|
|
231
259
|
};
|
|
232
260
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Atoms/ptc-readmore',
|
|
5
|
+
tags: ['autodocs'],
|
|
6
|
+
component: Readmore,
|
|
7
|
+
argTypes: {
|
|
8
|
+
content: {
|
|
9
|
+
name: 'Read more content',
|
|
10
|
+
description: "Set content in the follwing textarea"
|
|
11
|
+
},
|
|
12
|
+
moreText : {
|
|
13
|
+
name: 'Read More *',
|
|
14
|
+
description: "Set read more label",
|
|
15
|
+
defaultValue: { summary: 'read more' }
|
|
16
|
+
},
|
|
17
|
+
lessText : {
|
|
18
|
+
name: 'Read Less',
|
|
19
|
+
description: "Set read less label. If read less label is not set then the it will be removed from component"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
readMorePosition: {
|
|
23
|
+
name: 'Read more position',
|
|
24
|
+
description: 'Set the location of the "Read more label" below the text',
|
|
25
|
+
control: { type: 'select' },
|
|
26
|
+
options: ['left', 'right', 'center'],
|
|
27
|
+
defaultValue: { summary: 'right' }
|
|
28
|
+
},
|
|
29
|
+
visibleLines: {
|
|
30
|
+
name: 'Visible lines',
|
|
31
|
+
description: "Set the visible line from follwing options",
|
|
32
|
+
control: { type: 'select' },
|
|
33
|
+
options: ['line1','line2','line3','line4','line5' ,'line10'],
|
|
34
|
+
defaultValue: { summary: 'line2' }
|
|
35
|
+
},
|
|
36
|
+
visibleLinesCustom: {
|
|
37
|
+
name: 'Visible lines Custom',
|
|
38
|
+
description: "Set the visible line number",
|
|
39
|
+
control: { type: 'number'}
|
|
40
|
+
},
|
|
41
|
+
size: {
|
|
42
|
+
name: 'Size of the read more/less text',
|
|
43
|
+
description: "Set the size of the read more/less text",
|
|
44
|
+
control: {type: 'select'},
|
|
45
|
+
options: ['small','medium','large'],
|
|
46
|
+
defaultValue: { summary: 'small' }
|
|
47
|
+
},
|
|
48
|
+
color: {
|
|
49
|
+
name: 'Color: Read more text',
|
|
50
|
+
description: "Set the color of the read more/less text",
|
|
51
|
+
control: {type: 'select'},
|
|
52
|
+
options: ['blue','gray','green','initial'],
|
|
53
|
+
defaultValue: { summary: 'blue' }
|
|
54
|
+
},
|
|
55
|
+
isIcon: {
|
|
56
|
+
name: 'Arrow Icon',
|
|
57
|
+
description: "Set the arrow besides read more text",
|
|
58
|
+
control: {type: 'boolean'},
|
|
59
|
+
defaultValue: { summary: false }
|
|
60
|
+
},
|
|
61
|
+
display: {
|
|
62
|
+
name: 'Text Display css property',
|
|
63
|
+
description: "Set display propety inline ",
|
|
64
|
+
control: { type: 'select' },
|
|
65
|
+
options: ['inline', 'block'],
|
|
66
|
+
defaultValue: { summary: 'inline' },
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const Template = args => { return html `<ptc-readmore
|
|
72
|
+
more-text="${args.moreText}"
|
|
73
|
+
less-text="${args.lessText}"
|
|
74
|
+
size="${args.size}"
|
|
75
|
+
read-more-position="${args.readMorePosition}"
|
|
76
|
+
visible-lines="${args.visibleLines}"
|
|
77
|
+
visible-lines-custom="${args.visibleLinesCustom}"
|
|
78
|
+
color="${args.color}"
|
|
79
|
+
is-icon="${args.isIcon}"
|
|
80
|
+
display=${args.display}>
|
|
81
|
+
${args.content}
|
|
82
|
+
</ptc-readmore>`};
|
|
83
|
+
|
|
84
|
+
export const Readmore = Template.bind({});
|
|
85
|
+
Readmore.args={
|
|
86
|
+
moreText : 'Read more',
|
|
87
|
+
lessText : 'Read less',
|
|
88
|
+
readMorePosition: 'right',
|
|
89
|
+
visibleLines: 'line2',
|
|
90
|
+
visibleLinesCustom: 2,
|
|
91
|
+
size: 'small',
|
|
92
|
+
color: 'blue',
|
|
93
|
+
isIcon: false,
|
|
94
|
+
display: 'inline',
|
|
95
|
+
content: 'tes Nulla ut nunc id nulla aliquam feugiat. Maecenas quis dui rhoncus, mattis risus ac, tincidunt massa. Cras dictum aliquet eleifend. Etiam condimentum suscipit vulputate. In tempus ante at eros elementum volutpat. Ut aliquam mattis velit, sed malesuada lorem. Donec eu posuere nisl, eget scelerisque lectus. Donec id nibh quis lectus euismod semper eget in sem. Ut vulputate cursus libero ut pharetra.Ut aliquam mattis velit, sed malesuada lorem. Donec eu posuere nisl, eget scelerisque lectus. Donec id nibh quis lectus euismod semper eget in sem. Ut vulputate cursus libero ut pharetra.'
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Atoms/ptc-tooltip',
|
|
5
|
+
tags: ['autodocs'],
|
|
6
|
+
argTypes: {
|
|
7
|
+
textLines: {
|
|
8
|
+
name: 'Maximum lines',
|
|
9
|
+
description: "Set maximum length in lines of content",
|
|
10
|
+
|
|
11
|
+
},
|
|
12
|
+
maxLength: {
|
|
13
|
+
name: 'Maximum chars',
|
|
14
|
+
description: "Set maximum length in chars of content",
|
|
15
|
+
defaultValue: { summary: 45 }
|
|
16
|
+
},
|
|
17
|
+
position: {
|
|
18
|
+
name: 'Position',
|
|
19
|
+
description: "Set position of the the tooltip box",
|
|
20
|
+
control: { type: 'select' },
|
|
21
|
+
options: ['left', 'right', 'bottom', 'bottom-right', 'top'],
|
|
22
|
+
defaultValue: { summary: 'bottom' }
|
|
23
|
+
},
|
|
24
|
+
width: {
|
|
25
|
+
name: 'width',
|
|
26
|
+
description: "Fill-width will make the tooltip box full-width relative to its parent",
|
|
27
|
+
control: { type: 'select' },
|
|
28
|
+
options: ['full-width', 'default'],
|
|
29
|
+
defaultValue: { summary: 'default' }
|
|
30
|
+
|
|
31
|
+
},
|
|
32
|
+
theme: {
|
|
33
|
+
name: 'Theme',
|
|
34
|
+
description: "Set the theme",
|
|
35
|
+
control: { type: 'select' },
|
|
36
|
+
options: ['standard', 'danger'],
|
|
37
|
+
defaultValue: { summary: 'standard' },
|
|
38
|
+
},
|
|
39
|
+
zIndex: {
|
|
40
|
+
name: 'zIndex',
|
|
41
|
+
description: "Set the zIndex of tooltip box",
|
|
42
|
+
control: { type: 'select' },
|
|
43
|
+
options: ['z-auto', 'z-1', 'z-2', 'z-3', 'z-999'],
|
|
44
|
+
defaultValue: { summary: 'z-auto' },
|
|
45
|
+
},
|
|
46
|
+
hideOnMobile: {
|
|
47
|
+
name: 'Hide tooltip box on mobile',
|
|
48
|
+
description: "Set true to hide the tooltip on mobile",
|
|
49
|
+
control: { type: 'boolean' },
|
|
50
|
+
defaultValue: { summary: false },
|
|
51
|
+
},
|
|
52
|
+
textDisplay: {
|
|
53
|
+
name: 'Text Display css property',
|
|
54
|
+
description: "Set textDisplay propety inline or block for tooltip text",
|
|
55
|
+
control: { type: 'select' },
|
|
56
|
+
options: ['inline', 'block'],
|
|
57
|
+
defaultValue: { summary: 'inline' },
|
|
58
|
+
},
|
|
59
|
+
description: {
|
|
60
|
+
name: 'Tooltip content',
|
|
61
|
+
description: "Set content in the follwing textarea",
|
|
62
|
+
defaultValue: { summary: 'This is a tooltip text placeholder' },
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const Template = args => {
|
|
69
|
+
return html `<ptc-tooltip
|
|
70
|
+
text-display="${args.textDisplay}"
|
|
71
|
+
text-lines="${args.textLines}"
|
|
72
|
+
max-length="${args.maxLength}"
|
|
73
|
+
description="${args.description}"
|
|
74
|
+
position="${args.position}"
|
|
75
|
+
width="${args.width}"
|
|
76
|
+
zIndex="${args.zIndex}"
|
|
77
|
+
theme="${args.theme}"
|
|
78
|
+
hide-on-mobile="${args.hideOnMobile}"
|
|
79
|
+
></ptc-tooltip>`
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export const TooltipWithLinesLimit = Template.bind({});
|
|
84
|
+
TooltipWithLinesLimit.args = {
|
|
85
|
+
textLines: 2,
|
|
86
|
+
position: 'bottom',
|
|
87
|
+
width: "default",
|
|
88
|
+
theme: "standard",
|
|
89
|
+
hideOnMobile: false,
|
|
90
|
+
zIndex: "z-auto",
|
|
91
|
+
textDisplay: "inline",
|
|
92
|
+
description: "Nulla ut nunc id nulla aliquam feugiat. Maecenas quis dui rhoncus, mattis risus ac, tincidunt massa. Cras dictum aliquet eleifend. Etiam condimentum suscipit vulputate. In tempus ante at eros elementum volutpat. Ut aliquam mattis velit, sed malesuada lorem. Donec eu posuere nisl, eget scelerisque lectus. Donec id nibh quis lectus euismod semper eget in sem. Ut vulputate cursus libero ut pharetra. Aliquam convallis vulputate dignissim. Mauris vel elit sit amet nibh porta cursus eu id urna.",
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
export const TooltipWithCharLimit = Template.bind({});
|
|
98
|
+
TooltipWithCharLimit.args = {
|
|
99
|
+
maxLength: 45,
|
|
100
|
+
position: 'bottom',
|
|
101
|
+
width: "default",
|
|
102
|
+
theme: "standard",
|
|
103
|
+
hideOnMobile: false,
|
|
104
|
+
zIndex: "z-auto",
|
|
105
|
+
textDisplay: "inline",
|
|
106
|
+
description: "Nulla ut nunc id nulla aliquam feugiat. Maecenas quis dui rhoncus, mattis risus ac, tincidunt massa. Cras dictum ",
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
@@ -128,6 +128,12 @@ export const PtcCardWrapper: {
|
|
|
128
128
|
new (): PtcCardWrapper;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
+
interface PtcCaseStudiesSlider extends Components.PtcCaseStudiesSlider, HTMLElement {}
|
|
132
|
+
export const PtcCaseStudiesSlider: {
|
|
133
|
+
prototype: PtcCaseStudiesSlider;
|
|
134
|
+
new (): PtcCaseStudiesSlider;
|
|
135
|
+
};
|
|
136
|
+
|
|
131
137
|
interface PtcCheckbox extends Components.PtcCheckbox, HTMLElement {}
|
|
132
138
|
export const PtcCheckbox: {
|
|
133
139
|
prototype: PtcCheckbox;
|
|
@@ -200,6 +206,12 @@ export const PtcIconMinimize: {
|
|
|
200
206
|
new (): PtcIconMinimize;
|
|
201
207
|
};
|
|
202
208
|
|
|
209
|
+
interface PtcImageDownloadStrip extends Components.PtcImageDownloadStrip, HTMLElement {}
|
|
210
|
+
export const PtcImageDownloadStrip: {
|
|
211
|
+
prototype: PtcImageDownloadStrip;
|
|
212
|
+
new (): PtcImageDownloadStrip;
|
|
213
|
+
};
|
|
214
|
+
|
|
203
215
|
interface PtcImg extends Components.PtcImg, HTMLElement {}
|
|
204
216
|
export const PtcImg: {
|
|
205
217
|
prototype: PtcImg;
|
|
@@ -284,6 +296,12 @@ export const PtcNavSubmenu: {
|
|
|
284
296
|
new (): PtcNavSubmenu;
|
|
285
297
|
};
|
|
286
298
|
|
|
299
|
+
interface PtcNews extends Components.PtcNews, HTMLElement {}
|
|
300
|
+
export const PtcNews: {
|
|
301
|
+
prototype: PtcNews;
|
|
302
|
+
new (): PtcNews;
|
|
303
|
+
};
|
|
304
|
+
|
|
287
305
|
interface PtcOverlay extends Components.PtcOverlay, HTMLElement {}
|
|
288
306
|
export const PtcOverlay: {
|
|
289
307
|
prototype: PtcOverlay;
|