@ptcwebops/ptcw-design 6.4.2 → 6.4.3

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.
Files changed (95) hide show
  1. package/dist/cjs/buying-option-card.cjs.entry.js +184 -0
  2. package/dist/cjs/buying-option-cards-slider.cjs.entry.js +140 -0
  3. package/dist/cjs/icon-asset.cjs.entry.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/ptc-back-to-top.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-date.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-form-radio-button.cjs.entry.js +13 -0
  8. package/dist/cjs/ptcw-design.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +2 -0
  10. package/dist/collection/components/buying-option-card/buying-option-card.css +124 -0
  11. package/dist/collection/components/buying-option-card/buying-option-card.js +227 -0
  12. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.css +1148 -0
  13. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.js +135 -0
  14. package/dist/collection/components/icon-asset/icon-asset.css +8 -0
  15. package/dist/collection/components/icon-asset/icon-asset.js +2 -2
  16. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +1 -0
  17. package/dist/collection/components/ptc-date/ptc-date.js +2 -2
  18. package/dist/collection/components/ptc-form-radio-button/ptc-form-radio-button.js +18 -2
  19. package/dist/collection/stories/Accordian.stories.js +32 -18
  20. package/dist/collection/stories/Announcement.stories.js +22 -1
  21. package/dist/collection/stories/BackgroundImage.stories.js +0 -7
  22. package/dist/collection/stories/Breadcrumb.stories.js +44 -37
  23. package/dist/collection/stories/CardWrapper.stories.js +0 -32
  24. package/dist/collection/stories/Countdown.stories.js +67 -6
  25. package/dist/collection/stories/Date.stories.js +55 -76
  26. package/dist/collection/stories/FormCheckbox.stories.js +3 -3
  27. package/dist/collection/stories/FormRadioButton.stories.js +3 -3
  28. package/dist/collection/stories/Icon.stories.js +6 -30
  29. package/dist/collection/stories/Jumbotron.stories.js +0 -36
  30. package/dist/collection/stories/Link.stories.js +3 -3
  31. package/dist/collection/stories/ListItem.stories.js +15 -47
  32. package/dist/collection/stories/MobileSelect.stories.js +1 -1
  33. package/dist/collection/stories/Select.stories.js +33 -21
  34. package/dist/collection/stories/Span.stories.js +39 -51
  35. package/dist/collection/stories/SvgButton.stories.js +1 -1
  36. package/dist/collection/stories/Textfield.stories.js +0 -14
  37. package/dist/collection/stories/organisms/ptc/Buying Options Cards Slider/preview.stories.js +264 -0
  38. package/dist/custom-elements/index.d.ts +12 -0
  39. package/dist/custom-elements/index.js +7727 -7402
  40. package/dist/esm/buying-option-card.entry.js +180 -0
  41. package/dist/esm/buying-option-cards-slider.entry.js +136 -0
  42. package/dist/esm/icon-asset.entry.js +1 -1
  43. package/dist/esm/loader.js +1 -1
  44. package/dist/esm/ptc-back-to-top.entry.js +1 -1
  45. package/dist/esm/ptc-date.entry.js +1 -1
  46. package/dist/esm/ptc-form-radio-button.entry.js +13 -0
  47. package/dist/esm/ptcw-design.js +1 -1
  48. package/dist/ptcw-design/p-0a7cc9e4.entry.js +1 -0
  49. package/dist/ptcw-design/p-214d9da6.entry.js +1 -0
  50. package/dist/ptcw-design/{p-db1dcce0.entry.js → p-23cb5b5b.entry.js} +1 -1
  51. package/dist/ptcw-design/{p-884c335c.entry.js → p-37f92bb4.entry.js} +1 -1
  52. package/dist/ptcw-design/p-a7ac0ecb.entry.js +1 -0
  53. package/dist/ptcw-design/{p-d3ac3758.entry.js → p-db0fc94d.entry.js} +1 -1
  54. package/dist/ptcw-design/ptcw-design.css +1 -1
  55. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  56. package/dist/types/components/buying-option-card/buying-option-card.d.ts +44 -0
  57. package/dist/types/components/buying-option-cards-slider/buying-option-cards-slider.d.ts +10 -0
  58. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  59. package/dist/types/components/organism-bundles/blogs-search-section/blogs-search-section.d.ts +1 -1
  60. package/dist/types/components/ptc-form-radio-button/ptc-form-radio-button.d.ts +2 -0
  61. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +1 -1
  62. package/dist/types/components.d.ts +38 -0
  63. package/package.json +1 -1
  64. package/readme.md +1 -1
  65. package/dist/collection/stories/Breadcrumb2.stories.js +0 -62
  66. package/dist/collection/stories/BrightcovVideo.stories.js +0 -21
  67. package/dist/collection/stories/Button.stories.js +0 -120
  68. package/dist/collection/stories/Checkbox.stories.js +0 -21
  69. package/dist/collection/stories/CheckboxGroup.stories.js +0 -27
  70. package/dist/collection/stories/CloseIcon.stories.js +0 -10
  71. package/dist/collection/stories/CollapseList.stories.js +0 -14
  72. package/dist/collection/stories/DataLookup.stories.js +0 -21
  73. package/dist/collection/stories/EllipsisDropdown.stories.js +0 -14
  74. package/dist/collection/stories/Hero.stories.js +0 -35
  75. package/dist/collection/stories/HeroFooterCTA.stories.js +0 -21
  76. package/dist/collection/stories/MinimizedFooter.stories.js +0 -18
  77. package/dist/collection/stories/MinimizedHeader.stories.js +0 -37
  78. package/dist/collection/stories/MultiSelect.stories.js +0 -10
  79. package/dist/collection/stories/Paragraph.stories.js +0 -104
  80. package/dist/collection/stories/ReadMore.stories.js +0 -100
  81. package/dist/collection/stories/ReadmoreV2.stories.js +0 -37
  82. package/dist/collection/stories/ScrollButton.stories.js +0 -14
  83. package/dist/collection/stories/SearchField.stories.js +0 -21
  84. package/dist/collection/stories/SocialShare.stories.js +0 -83
  85. package/dist/collection/stories/SvgBtn.stories.js +0 -36
  86. package/dist/collection/stories/TextCopyWithBackground.stories.js +0 -100
  87. package/dist/collection/stories/TheaterVideo.stories.js +0 -21
  88. package/dist/collection/stories/Title.stories.js +0 -127
  89. package/dist/collection/stories/Tooltip.stories.js +0 -112
  90. package/dist/collection/stories/VideoEmbed.stories.js +0 -10
  91. package/dist/collection/stories/backToTop.stories.js +0 -10
  92. package/dist/collection/stories/backgroundVideo.stories.js +0 -115
  93. package/dist/collection/stories/jumbotronSubMenu.stories.js +0 -14
  94. package/dist/collection/stories/ptcLink2.stories.js +0 -142
  95. package/dist/ptcw-design/p-dc85c302.entry.js +0 -1
@@ -1,37 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'Atoms/ptc-readmore-v2',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- maxCharacters: {
8
- control: '',
9
- description: 'Character limit',
10
- defaultValue: { summary: '100' }
11
- },
12
- readLessText: {
13
- control: 'text',
14
- description: 'Read Less Text',
15
- defaultValue: { summary: "'Read Less'" }
16
- },
17
- readMoreText: {
18
- control: 'text',
19
- description: 'Read More Text',
20
- defaultValue: { summary: "'Read More'" }
21
- }
22
- }
23
- };
24
-
25
- const Template = args => { return html `<ptc-readmore-v2
26
- max-characters=${args.maxCharacters}
27
- read-less-text=${args.readLessText}
28
- read-more-text=${args.readMoreText}
29
- >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.</ptc-readmore-v2>`;}
30
-
31
- export const Example = Template.bind({});
32
-
33
- Example.args = {
34
- maxCharacters: '100',
35
- readLessText: "Read Less",
36
- readMoreText: "Read More"
37
- }
@@ -1,14 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-scroll-button',
5
- tags: [ 'autodocs' ],
6
- argTypes: {}
7
- };
8
- const Template = (args) => {
9
- return html`<ptc-scroll-button
10
- >
11
- </ptc-scroll-button>`;
12
- };
13
- export const Example = Template.bind({});
14
- Example.args = {};
@@ -1,21 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-search-field',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- styles: {
8
- description: ' (optional) Injected CSS styles ',
9
- defaultValue: { summary: '' },
10
- control: 'text'
11
- }
12
- }
13
- };
14
- const Template = (args) => {
15
- return html`<ptc-search-field
16
- styles=${args.styles}
17
- >
18
- </ptc-search-field>`;
19
- };
20
- export const Example = Template.bind({});
21
- Example.args = { styles: '' };
@@ -1,83 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-social-share',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- source: {
8
- description: ' Optional - source for linkedin',
9
- defaultValue: { summary: '' },
10
- control: 'text'
11
- },
12
- recipient: {
13
- description: ' Email recipient. If you want to use mail share, you need to use this property',
14
- defaultValue: { summary: '' },
15
- control: 'text'
16
- },
17
- iconColor: {
18
- description: ' Icon asset color',
19
- defaultValue: { summary: 'white' },
20
- control: 'select',
21
- options: [
22
- 'black',
23
- 'white',
24
- 'ptc-green',
25
- 'gray',
26
- 'primary-gray',
27
- 'inherit'
28
- ]
29
- },
30
- iconHoverColor: {
31
- description: ' Icon asset hover color',
32
- defaultValue: { summary: 'gray' },
33
- control: 'select',
34
- options: [
35
- 'black',
36
- 'white',
37
- 'ptc-green',
38
- 'gray',
39
- 'primary-gray',
40
- 'inherit'
41
- ]
42
- },
43
- iconSize: {
44
- description: ' is hover or not / @State() isHover: boolean = false; / Icon Size',
45
- defaultValue: { summary: 'large' },
46
- control: 'select',
47
- options: [
48
- 'small',
49
- 'medium',
50
- 'large',
51
- 'x-large',
52
- 'xx-large',
53
- 'xxx-large',
54
- 'xxxx-large'
55
- ]
56
- },
57
- darkFocusState: {
58
- description: ' darkFocusState for dark background',
59
- defaultValue: { summary: 'false' },
60
- control: 'boolean'
61
- }
62
- }
63
- };
64
- const Template = (args) => {
65
- return html`<ptc-social-share
66
- source=${args.source}
67
- recipient=${args.recipient}
68
- iconColor=${args.iconColor}
69
- iconHoverColor=${args.iconHoverColor}
70
- iconSize=${args.iconSize}
71
- darkFocusState=${args.darkFocusState}
72
- >
73
- </ptc-social-share>`;
74
- };
75
- export const Example = Template.bind({});
76
- Example.args = {
77
- source: '',
78
- recipient: '',
79
- iconColor: 'white',
80
- iconHoverColor: 'gray',
81
- iconSize: 'large',
82
- darkFocusState: 'false'
83
- };
@@ -1,36 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-svg-btn',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- svgName: {
8
- description: ' Options: "close", "slider-left", "slider-right", "back-arrow"',
9
- defaultValue: { summary: 'close' },
10
- control: 'text'
11
- },
12
- display: {
13
- description: ' Display',
14
- defaultValue: { summary: 'block' },
15
- control: 'select',
16
- options: [ 'block', 'inline', 'inline-block', 'flex' ]
17
- },
18
- zIndex: {
19
- description: ' Z-Index',
20
- defaultValue: { summary: '' },
21
- control: 'text'
22
- },
23
- styles: { description: ' Injected Styles', defaultValue: { summary: '' } }
24
- }
25
- };
26
- const Template = (args) => {
27
- return html`<ptc-svg-btn
28
- svgName=${args.svgName}
29
- display=${args.display}
30
- zIndex=${args.zIndex}
31
- styles=${args.styles}
32
- >
33
- </ptc-svg-btn>`;
34
- };
35
- export const Example = Template.bind({});
36
- Example.args = { svgName: 'close', display: 'block', zIndex: '', styles: '' };
@@ -1,100 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-text-copy-with-background',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- type: {
8
- description: ' Type Specify Type, default is text-copy-with-background',
9
- defaultValue: { summary: 'text-copy-with-background' },
10
- control: 'select',
11
- options: [
12
- 'text-copy-with-background',
13
- 'hero-footer-cta',
14
- 'tab-cta-with-background',
15
- 'case-studies'
16
- ]
17
- },
18
- backgroundImage: {
19
- description: ' Background image',
20
- defaultValue: { summary: '' },
21
- control: 'text'
22
- },
23
- ImageAltText: {
24
- description: ' (optional) Image alt text',
25
- defaultValue: { summary: '' },
26
- control: 'text'
27
- },
28
- topSlitBackgroundColor: {
29
- description: ' (optional) topSlitBackgroundColor: It will be color value which should match the background of the body. Entering in "auto" will grab the background color of the body on page load.',
30
- defaultValue: { summary: '' },
31
- control: 'text'
32
- },
33
- slitPosition: {
34
- description: ' (optional) topSlitPosition: It will decide the position of .',
35
- defaultValue: { summary: 'top-right' },
36
- control: 'select',
37
- options: [ 'top-left', 'top-right', 'bottom-left', 'bottom-right' ]
38
- },
39
- isBackgroundBlur: {
40
- description: ' (optional) isBackgroundBlur: If true,it will add background blur image effect',
41
- defaultValue: { summary: 'false' },
42
- control: 'boolean'
43
- },
44
- overlay: {
45
- description: ' (optional) overlay: If true,it will add black overlay with 0.55 opacity',
46
- defaultValue: { summary: 'true' },
47
- control: 'boolean'
48
- },
49
- disableLightLinks: {
50
- description: ' (optional) disableLightLinks: If true, it will not add class for links to be lighter for ADA compliance',
51
- defaultValue: { summary: 'false' },
52
- control: 'boolean'
53
- },
54
- styles: {
55
- description: ' (optional) Injected CSS Styles',
56
- defaultValue: { summary: '' },
57
- control: 'text'
58
- },
59
- default: {
60
- description: 'Default slot content',
61
- control: 'text',
62
- table: { category: 'slots' }
63
- },
64
- 'card-content': {
65
- description: 'Slot: card-content',
66
- control: 'text',
67
- table: { category: 'slots' }
68
- }
69
- }
70
- };
71
- const Template = (args) => {
72
- return html`<ptc-text-copy-with-background
73
- type=${args.type}
74
- backgroundImage=${args.backgroundImage}
75
- ImageAltText=${args.ImageAltText}
76
- topSlitBackgroundColor=${args.topSlitBackgroundColor}
77
- slitPosition=${args.slitPosition}
78
- isBackgroundBlur=${args.isBackgroundBlur}
79
- overlay=${args.overlay}
80
- disableLightLinks=${args.disableLightLinks}
81
- styles=${args.styles}
82
- >
83
- ${args.default}
84
- <span slot="card-content">${args.card-content}</span>
85
- </ptc-text-copy-with-background>`;
86
- };
87
- export const Example = Template.bind({});
88
- Example.args = {
89
- type: 'text-copy-with-background',
90
- backgroundImage: '',
91
- ImageAltText: '',
92
- topSlitBackgroundColor: '',
93
- slitPosition: 'top-right',
94
- isBackgroundBlur: 'false',
95
- overlay: 'true',
96
- disableLightLinks: 'false',
97
- styles: '',
98
- default: 'Lorem ipsum text',
99
- 'card-content': 'Lorem for card-content'
100
- };
@@ -1,21 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-theater-video',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- default: {
8
- description: 'Default slot content',
9
- control: 'text',
10
- table: { category: 'slots' }
11
- }
12
- }
13
- };
14
- const Template = (args) => {
15
- return html`<ptc-theater-video
16
- >
17
- ${args.default}
18
- </ptc-theater-video>`;
19
- };
20
- export const Example = Template.bind({});
21
- Example.args = { default: 'Lorem ipsum text' };
@@ -1,127 +0,0 @@
1
- import { html } from 'lit';
2
- import { unsafeHTML } from 'lit/directives/unsafe-html.js';
3
-
4
- export default {
5
- title: 'Atoms/ptc-title',
6
- tags: ['autodocs'],
7
-
8
- argTypes: {
9
- type: {
10
- control: { type: 'inline-radio' },
11
- options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
12
- description: 'H tag',
13
- defaultValue: { summary: 'h2' },
14
- },
15
- textAlign: {
16
- control: { type: 'inline-radio' },
17
- options: ['left', 'center', 'right', 'inherit'],
18
- description: 'Title alignment',
19
- },
20
- titleDisplay: {
21
- control: { type: 'select' },
22
- options: ['block', 'inline-block'],
23
- description: 'Title heading display',
24
- defaultValue: { summary: 'inline-block' },
25
- },
26
- titleSize: {
27
- control: { type: 'select' },
28
- options: [
29
- 'xx-small',
30
- 'x-small',
31
- 'small',
32
- 'medium',
33
- 'large',
34
- 'x-large',
35
- 'xx-large',
36
- 'xxx-large',
37
- 'xxxx-large',
38
- 'xxxx-large-allbp',
39
- 'xx-large-allbp',
40
- 'xxxx-large-desktop',
41
- 'xxxx-large-store',
42
- ],
43
- description: 'Title size',
44
- },
45
- titleColor: {
46
- control: { type: 'select' },
47
- options: ['black', 'white', 'gray', 'gray-darker', 'gray-1'],
48
- description: 'Title color',
49
- defaultValue: { summary: 'gray' },
50
- },
51
- upperline: {
52
- control: { type: 'inline-radio' },
53
- options: ['dotted', 'solid', 'no-upperline'],
54
- description: 'The style of the decorative upperline',
55
- defaultValue: { summary: 'dotted' },
56
- },
57
- titleShadow: {
58
- control: { type: 'inline-radio' },
59
- options: ['blue', 'red', 'green', 'orange', 'slate-grey'],
60
- description: 'Shadow Color',
61
- },
62
- titleHeight: {
63
- control: { type: 'select' },
64
- options: ['densest', 'denser', 'dense', 'normal', 'loose', 'looser', 'paragraph'],
65
- description: 'Title Height',
66
- defaultValue: { summary: 'paragraph' },
67
- },
68
- titleWeight: {
69
- control: { type: 'select' },
70
- options: ['w-3', 'w-4', 'w-5', 'w-6', 'w-7', 'w-8', 'w-9'],
71
- description: 'Title Weight',
72
- },
73
- titleMargin: {
74
- control: {type: 'select'},
75
- options: ['margin-flush' ,'margin-top-3', 'margin-top-4', 'margin-top-5', 'margin-top-6', 'margin-bottom-3', 'margin-bottom-4', 'margin-bottom-5', 'margin-bottom-6', 'margin-3', 'margin-4', 'margin-5', 'margin-6'],
76
- description: 'title margins'
77
- },
78
- isPlmHub: {
79
- description: "is it a title for PLM Hub page?",
80
- defaultValue: {summary: false}
81
- },
82
- slotContent: {
83
- name: 'Default Slot',
84
- description: 'Text Content between the <ptc-title> tags.',
85
- control: 'text',
86
- table: {
87
- category: 'Default Slot',
88
- type: {
89
- summary: 'html',
90
- },
91
- }
92
- }
93
- },
94
- };
95
-
96
- const Template = args => {return html`<ptc-title
97
- type="${args.type}"
98
- text-align="${args.textAlign}"
99
- title-size="${args.titleSize}"
100
- title-color="${args.titleColor}"
101
- upperline="${args.upperline}"
102
- title-display="${args.titleDisplay}"
103
- title-shadow="${args.titleShadow}"
104
- title-height="${args.titleHeight}"
105
- title-margin="${args.titleMargin}"
106
- title-weight="${args.titleWeight}"
107
- is-plm-hub="${args.isPlmHub}"
108
- >
109
- ${unsafeHTML(args.slotContent)}
110
- </ptc-title>`;
111
- };
112
-
113
- export const Example = Template.bind({});
114
- Example.args = {
115
- type: 'h2',
116
- titleDisplay: 'inline-block',
117
- titleSize: 'x-large',
118
- textAlign: 'center',
119
- titleHeight: 'densest',
120
- titleMargin: 'margin-3',
121
- titleColor: 'gray',
122
- upperline: 'no-upperline',
123
- titleWeight: 'w-8',
124
- titleShadow: '',
125
- isPlmHub: false,
126
- slotContent:'Lorem ipsum',
127
- };
@@ -1,112 +0,0 @@
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
-
@@ -1,10 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default { title: 'New/ptc-video-embed', tags: [ 'autodocs' ], argTypes: {} };
4
- const Template = (args) => {
5
- return html`<ptc-video-embed
6
- >
7
- </ptc-video-embed>`;
8
- };
9
- export const Example = Template.bind({});
10
- Example.args = {};
@@ -1,10 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default { title: 'New/ptc-back-to-top', tags: [ 'autodocs' ], argTypes: {} };
4
- const Template = (args) => {
5
- return html`<ptc-back-to-top
6
- >
7
- </ptc-back-to-top>`;
8
- };
9
- export const Example = Template.bind({});
10
- Example.args = {};
@@ -1,115 +0,0 @@
1
- import { html } from 'lit';
2
-
3
- export default {
4
- title: 'New/ptc-background-video',
5
- tags: [ 'autodocs' ],
6
- argTypes: {
7
- videoSrc: {
8
- description: ' Video url',
9
- defaultValue: { summary: '' },
10
- control: 'text'
11
- },
12
- posterSrc: {
13
- description: ' Poster url(Placeholder image till the video get the loaded)',
14
- defaultValue: { summary: '' },
15
- control: 'text'
16
- },
17
- overlay: {
18
- description: ' Overlay(Optional, By default is true)',
19
- defaultValue: { summary: 'true' },
20
- control: 'boolean'
21
- },
22
- overlayType: {
23
- description: ' Overlay Type standard is gray gradient. dark is dark gradient',
24
- defaultValue: { summary: 'standard' },
25
- control: 'select',
26
- options: [ 'standard', 'dark' ]
27
- },
28
- playButtonTitle: {
29
- description: ' Play Button Title',
30
- defaultValue: { summary: '' },
31
- control: 'text'
32
- },
33
- pauseButtonTitle: {
34
- description: ' Pause Button Title',
35
- defaultValue: { summary: '' },
36
- control: 'text'
37
- },
38
- buttonLocation: {
39
- description: ' Pause Button Location',
40
- defaultValue: { summary: 'bottom-right' },
41
- control: 'select',
42
- options: [
43
- 'top-left',
44
- 'top-right',
45
- 'bottom-left',
46
- 'bottom-right',
47
- 'allbp-bottom-right'
48
- ]
49
- },
50
- buttonTabIndex: {
51
- description: ' Play/Pause Index',
52
- defaultValue: { summary: '0' }
53
- },
54
- trackerId: {
55
- description: ' Play and Pause Video / @State() paused: boolean; / tracker Id',
56
- defaultValue: { summary: '' },
57
- control: 'text'
58
- },
59
- defer: {
60
- description: ' delay loading of video to improve perfomance',
61
- defaultValue: { summary: '' },
62
- control: 'boolean'
63
- },
64
- type: {
65
- description: ' Video implementation type: default: Content need to add in tag Ex: <ptc-background-video>Content </ptc-background-video> legacy: Add the blank tag in any other setcon having relative parent. Ex: <div class="section" style="position: relative;"> <ptc-background-video></ptc-background-video> Content </div>',
66
- defaultValue: { summary: 'default' },
67
- control: 'select',
68
- options: [ 'default', 'legacy' ]
69
- },
70
- isIframe: {
71
- description: ' Is it a iframe?',
72
- defaultValue: { summary: 'false' },
73
- control: 'boolean'
74
- },
75
- default: {
76
- description: 'Default slot content',
77
- control: 'text',
78
- table: { category: 'slots' }
79
- }
80
- }
81
- };
82
- const Template = (args) => {
83
- return html`<ptc-background-video
84
- videoSrc=${args.videoSrc}
85
- posterSrc=${args.posterSrc}
86
- overlay=${args.overlay}
87
- overlayType=${args.overlayType}
88
- playButtonTitle=${args.playButtonTitle}
89
- pauseButtonTitle=${args.pauseButtonTitle}
90
- buttonLocation=${args.buttonLocation}
91
- buttonTabIndex=${args.buttonTabIndex}
92
- trackerId=${args.trackerId}
93
- defer=${args.defer}
94
- type=${args.type}
95
- isIframe=${args.isIframe}
96
- >
97
- ${args.default}
98
- </ptc-background-video>`;
99
- };
100
- export const Example = Template.bind({});
101
- Example.args = {
102
- videoSrc: '',
103
- posterSrc: '',
104
- overlay: 'true',
105
- overlayType: 'standard',
106
- playButtonTitle: '',
107
- pauseButtonTitle: '',
108
- buttonLocation: 'bottom-right',
109
- buttonTabIndex: '0',
110
- trackerId: '',
111
- defer: '',
112
- type: 'default',
113
- isIframe: 'false',
114
- default: 'Lorem ipsum text'
115
- };