@ptcwebops/ptcw-design 1.8.1 → 1.8.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 (69) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ptc-announcement.cjs.entry.js +2 -1
  3. package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
  4. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  5. package/dist/cjs/ptc-readmore.cjs.entry.js +6 -2
  6. package/dist/cjs/ptc-sticky-section.cjs.entry.js +6 -3
  7. package/dist/cjs/ptc-subnav.cjs.entry.js +1 -1
  8. package/dist/cjs/ptcw-design.cjs.js +1 -1
  9. package/dist/collection/components/ptc-announcement/ptc-announcement.js +20 -1
  10. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +2 -2
  11. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +2 -2
  12. package/dist/collection/components/ptc-readmore/ptc-readmore.css +1 -0
  13. package/dist/collection/components/ptc-readmore/ptc-readmore.js +5 -1
  14. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +6 -3
  15. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.css +1 -1
  16. package/dist/collection/stories/Accordian.stories.js +206 -0
  17. package/dist/collection/stories/Announcement.stories.js +65 -0
  18. package/dist/collection/stories/BackgroundImage.stories.js +82 -0
  19. package/dist/collection/stories/Breadcrumb.stories.js +51 -0
  20. package/dist/collection/stories/Card.stories.js +234 -0
  21. package/dist/collection/stories/CardWrapper.stories.js +270 -0
  22. package/dist/collection/stories/Checkbox.stories.js +53 -0
  23. package/dist/collection/stories/Date.stories.js +81 -0
  24. package/dist/collection/stories/Dropdown.stories.js +49 -0
  25. package/dist/collection/stories/DynamicCard.stories.js +69 -0
  26. package/dist/collection/stories/FilterTag.stories.js +73 -0
  27. package/dist/collection/stories/Hero.stories.js +120 -0
  28. package/dist/collection/stories/Icon.stories.js +72 -0
  29. package/dist/collection/stories/IconList.stories.js +114 -0
  30. package/dist/collection/stories/IconMinimize.stories.js +41 -0
  31. package/dist/collection/stories/ListItem.stories.js +60 -0
  32. package/dist/collection/stories/MinimizedHeader.stories.js +37 -0
  33. package/dist/collection/stories/MobileSelect.stories.js +80 -0
  34. package/dist/collection/stories/Modal.stories.js +106 -0
  35. package/dist/collection/stories/Overlay.stories.js +49 -0
  36. package/dist/collection/stories/Pagination.stories.js +102 -0
  37. package/dist/collection/stories/Paragraph.stories.js +96 -0
  38. package/dist/collection/stories/Picture.stories.js +140 -0
  39. package/dist/collection/stories/PreviousUrl.stories.js +80 -0
  40. package/dist/collection/stories/Quote.stories.js +107 -0
  41. package/dist/collection/stories/SocialShare.stories.js +67 -0
  42. package/dist/collection/stories/Span.stories.js +57 -0
  43. package/dist/collection/stories/SvgButton.stories.js +34 -0
  44. package/dist/collection/stories/Tabs.stories.js +214 -0
  45. package/dist/collection/stories/TextCopyWithBackground.stories.js +238 -0
  46. package/dist/custom-elements/index.js +18 -10
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/ptc-announcement.entry.js +2 -1
  49. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  50. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  51. package/dist/esm/ptc-readmore.entry.js +6 -2
  52. package/dist/esm/ptc-sticky-section.entry.js +6 -3
  53. package/dist/esm/ptc-subnav.entry.js +1 -1
  54. package/dist/esm/ptcw-design.js +1 -1
  55. package/dist/ptcw-design/{p-06e361ac.entry.js → p-6a25430f.entry.js} +1 -1
  56. package/dist/ptcw-design/p-6dd37f45.entry.js +1 -0
  57. package/dist/ptcw-design/{p-5cab985d.entry.js → p-a5ba855f.entry.js} +1 -1
  58. package/dist/ptcw-design/{p-306d6394.entry.js → p-b9bbe5d9.entry.js} +1 -1
  59. package/dist/ptcw-design/p-e6fa27fb.entry.js +1 -0
  60. package/dist/ptcw-design/p-f0a76521.entry.js +1 -0
  61. package/dist/ptcw-design/ptcw-design.css +2 -2
  62. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  63. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +4 -0
  64. package/dist/types/components.d.ts +8 -0
  65. package/package.json +7 -7
  66. package/readme.md +1 -1
  67. package/dist/ptcw-design/p-2c543cd2.entry.js +0 -1
  68. package/dist/ptcw-design/p-4f540f7c.entry.js +0 -1
  69. package/dist/ptcw-design/p-c6f151df.entry.js +0 -1
@@ -0,0 +1,51 @@
1
+ import { html } from 'lit';
2
+
3
+ export default {
4
+ title: 'Molecules/ptc-breadcrumb',
5
+ tags: [ 'autodocs' ],
6
+ argTypes: {
7
+ // color: {
8
+ // control: 'select',
9
+ // options: ['black', 'white', 'ptc-green', 'gray', 'light-gray', 'primary-gray', 'default', 'inherit'],
10
+ // description: 'Theme Color',
11
+ // defaultValue: { summary: 'white' }
12
+ // },
13
+ position: {
14
+ control: 'select',
15
+ options: ['left', 'center', 'right'],
16
+ description: 'breadcrumb position',
17
+ defaultValue: { summary: 'undefined' }
18
+ },
19
+ removeTopMargin: {
20
+ control: 'boolean',
21
+ description: 'remove topMargin',
22
+ defaultValue: { summary: 'false' }
23
+ },
24
+ // styles: {
25
+ // control: '',
26
+ // description: '(optional) Injected CSS styles',
27
+ // defaultValue: { summary: 'undefined' }
28
+ // }
29
+ }
30
+ };
31
+
32
+ const Template = args => { return html `<div class="demo-with-bgcolor">
33
+ <ptc-breadcrumb
34
+ color=${args.color}
35
+ position=${args.position}
36
+ remove-top-margin=${args.removeTopMargin}
37
+ styles=${args.styles}
38
+ >
39
+ <list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us">PLM Video Hub</list-item>
40
+ <list-item list-type="breadcrumb">Current Page</list-item>
41
+ </ptc-breadcrumb>
42
+ </div>`;}
43
+
44
+ export const Example = Template.bind({});
45
+
46
+ Example.args = {
47
+ // color: 'white',
48
+ position: 'undefined',
49
+ removeTopMargin: 'false',
50
+ // styles: 'undefined'
51
+ }
@@ -0,0 +1,234 @@
1
+ import { html } from 'lit';
2
+
3
+ export default {
4
+ title: 'Molecules/ptc-card/ptc-card',
5
+ tags: [ 'autodocs' ],
6
+ argTypes: {
7
+ cardDate: {
8
+ control: 'text',
9
+ description: 'Card Date',
10
+ defaultValue: { summary: 'undefined' }
11
+ },
12
+ cardHref: {
13
+ control: '',
14
+ description: 'Card Link URL (Optional)',
15
+ defaultValue: { summary: 'undefined' }
16
+ },
17
+ // cardLogo: {
18
+ // control: '',
19
+ // description: 'Card Logo',
20
+ // defaultValue: { summary: 'undefined' }
21
+ // },
22
+ cardType: {
23
+ control: 'select',
24
+ options: ["hightlight-card", "horizontal-card", "listing-card"],
25
+ description: 'Card Type Specify Card Type, default to simple card',
26
+ defaultValue: { summary: 'custom-card' }
27
+ },
28
+ // country: {
29
+ // control: 'text',
30
+ // description: 'Card Date',
31
+ // defaultValue: { summary: 'undefined' }
32
+ // },
33
+ // eventType: {
34
+ // control: '',
35
+ // description: 'Event Type',
36
+ // defaultValue: { summary: 'undefined' }
37
+ // },
38
+ hasImage: {
39
+ control: 'boolean',
40
+ description: 'If this card has Image',
41
+ defaultValue: { summary: 'false' }
42
+ },
43
+ // hasLottie: {
44
+ // control: '',
45
+ // description: 'If this card has Lottie Image',
46
+ // defaultValue: { summary: 'false' }
47
+ // },
48
+ // hasVideo: {
49
+ // control: '',
50
+ // description: 'If this card has Video',
51
+ // defaultValue: { summary: 'false' }
52
+ // },
53
+ heading: {
54
+ control: 'text',
55
+ description: 'Card heading',
56
+ defaultValue: { summary: 'undefined' }
57
+ },
58
+ headingTransform: {
59
+ control: 'select',
60
+ options: ["capitalize", "lowercase", "none", "uppercase"],
61
+ description: 'Card heading text transform',
62
+ defaultValue: { summary: 'none' }
63
+ },
64
+ // rel: {
65
+ // control: '',
66
+ // description: '(optional) Link card rel',
67
+ // defaultValue: { summary: 'undefined' }
68
+ // },
69
+ ribbonText: {
70
+ control: 'text',
71
+ description: 'Ribbon will show on listing card if this field has any value',
72
+ defaultValue: { summary: 'undefined' }
73
+ },
74
+ // styles: {
75
+ // control: '',
76
+ // description: '(optional) Injected CSS styles',
77
+ // defaultValue: { summary: 'undefined' }
78
+ // },
79
+ target: {
80
+ control: '',
81
+ description: '(optional) Link card target',
82
+ defaultValue: { summary: '_self' }
83
+ },
84
+ // titleLineCutOff: {
85
+ // control: 'number',
86
+ // description: 'Title Line Cut off',
87
+ // defaultValue: { summary: 'undefined' }
88
+ // }
89
+ }
90
+ };
91
+
92
+ // const Template = args => { return html `<ptc-card
93
+ // card-date=${args.cardDate}
94
+ // card-href=${args.cardHref}
95
+ // card-logo=${args.cardLogo}
96
+ // card-type=${args.cardType}
97
+ // country=${args.country}
98
+ // event-type=${args.eventType}
99
+ // has-image=${args.hasImage}
100
+ // has-lottie=${args.hasLottie}
101
+ // has-video=${args.hasVideo}
102
+ // heading=${args.heading}
103
+ // heading-transform=${args.headingTransform}
104
+ // rel=${args.rel}
105
+ // ribbon-text=${args.ribbonText}
106
+ // styles=${args.styles}
107
+ // target=${args.target}
108
+ // title-line-cut-off=${args.titleLineCutOff}
109
+ // ></ptc-card>`;}
110
+
111
+ // Example.args = {
112
+ // cardDate: 'undefined',
113
+ // cardHref: 'undefined',
114
+ // cardLogo: 'undefined',
115
+ // cardType: 'custom-card',
116
+ // country: 'undefined',
117
+ // eventType: 'undefined',
118
+ // hasImage: 'false',
119
+ // hasLottie: 'false',
120
+ // hasVideo: 'false',
121
+ // heading: 'undefined',
122
+ // headingTransform: 'none',
123
+ // rel: 'undefined',
124
+ // ribbonText: 'undefined',
125
+ // styles: 'undefined',
126
+ // target: '_self',
127
+ // titleLineCutOff: 'undefined',
128
+ // }
129
+
130
+ // ** Highlight Card **
131
+
132
+ const HighlightCardTemplate = args => { return html `
133
+ <div class="is-grid">
134
+ <div class="is-col-8">
135
+ <ptc-card
136
+ card-date=${args.cardDate}
137
+ card-href=${args.cardHref}
138
+ card-type=${args.cardType}
139
+ has-image=${args.hasImage}
140
+ heading=${args.heading}
141
+ heading-transform=${args.headingTransform}
142
+ target=${args.target}
143
+ >
144
+ <ptc-img slot="slot-image" img-url="http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway" size-xs="600x450" size-sm="600x450" size-md="1108x658" size-lg="1108x658" image-type="smart-img" load-mode="lazy-bg"></ptc-img>
145
+ <ptc-span slot="slot-before-heading" styles="::part(part-ptc-span){font-size:18px!important}" span-style="tag-style" display="block">Augmented Reality</ptc-span>
146
+ <div slot="slot-description">
147
+ <ptc-para font-size="xx-small" font-weight="w-6" para-line-h="line-height-dense">
148
+ Lorem ipsum dolor sit amet, consectetur adipiscing. Lorem ipsum dolor sit amet, consectetur adipiscing. Lorem ipsum dolor sit amet, consectetur adipiscing.
149
+ </ptc-para>
150
+ </div>
151
+ </ptc-card>
152
+ </div>
153
+ </div>
154
+ `;}
155
+
156
+ export const HighlightCard = HighlightCardTemplate.bind({});
157
+
158
+ HighlightCard.args = {
159
+ cardDate: '2022-1-2',
160
+ cardHref: 'http://www.ptc.com',
161
+ cardType: 'hightlight-card',
162
+ hasImage: true,
163
+ heading: 'Lorem ipsum dolor sit amet, consectetur adipiscing',
164
+ headingTransform: 'none',
165
+ target: '_blank',
166
+ }
167
+
168
+ // ** Horizontal Card **
169
+
170
+ const HorizontalCardTemplate = args => { return html `
171
+ <ptc-card
172
+ card-href=${args.cardHref}
173
+ card-type=${args.cardType}
174
+ has-image=${args.hasImage}
175
+ heading=${args.heading}
176
+ heading-transform=${args.headingTransform}
177
+ target=${args.target}
178
+ >
179
+ <ptc-picture slot="slot-image" alt="image-test" is-full-width="true" src="https://www.ptc.com/-/media/Images/new-org/510x340/PLM/BOM-Management.jpg"></ptc-picture>
180
+ <div class="" slot="slot-description">
181
+ <ptc-para font-size="xx-small" para-line-h="line-height-dense" para-margin="margin-flush">Get full digital associativity across engineering, supply chain, manufacturing, sales, and service.</ptc-para>
182
+ </div>
183
+ </ptc-card>
184
+ `; }
185
+
186
+ export const HorizontalCard = HorizontalCardTemplate.bind({});
187
+
188
+ HorizontalCard.args = {
189
+ cardHref: 'https://www.ptc.com/en/technologies/plm/bill-of-materials',
190
+ cardType: 'horizontal-card',
191
+ hasImage: true,
192
+ heading: 'BOM management',
193
+ headingTransform: 'none',
194
+ target: '_blank',
195
+ }
196
+
197
+ // ** Listing Card **
198
+
199
+ const ListingCardTemplate = args => { return html `
200
+ <div class="is-grid">
201
+ <div class="is-col-3">
202
+ <ptc-card
203
+ card-date=${args.cardDate}
204
+ card-href=${args.cardHref}
205
+ card-type=${args.cardType}
206
+ has-image=${args.hasImage}
207
+ heading=${args.heading}
208
+ heading-transform=${args.headingTransform}
209
+ ribbon-text=${args.ribbonText}
210
+ target=${args.target}
211
+ >
212
+ <ptc-img slot="slot-image" img-url="http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway" size-xs="600x450" size-sm="600x450" size-md="1108x658" size-lg="1108x658" image-type="smart-img" load-mode="lazy-bg"></ptc-img>
213
+ <div slot="slot-description">
214
+ <ptc-para font-size="medium" font-weight="w-4" para-line-h="line-height-19">
215
+ Join us for live presentations and hear about the latest updates for Creo, Windchill PLM, and Thingworx IOT and Augmented Reality.
216
+ </ptc-para>
217
+ </div>
218
+ </ptc-card>
219
+ </div>
220
+ </div>
221
+ `;}
222
+
223
+ export const ListingCard = ListingCardTemplate.bind({});
224
+
225
+ ListingCard.args = {
226
+ cardDate: '2022-1-2',
227
+ cardHref: 'http://www.google.com',
228
+ cardType: 'listing-card',
229
+ hasImage: true,
230
+ heading: '2022 SoCal RUG Event',
231
+ headingTransform: 'none',
232
+ ribbonText: 'eBook',
233
+ target: '_blank',
234
+ }
@@ -0,0 +1,270 @@
1
+ import { html } from 'lit';
2
+
3
+ export default {
4
+ title: 'Molecules/ptc-card/ptc-card-wrapper',
5
+ tags: [ 'autodocs' ],
6
+ argTypes: {
7
+ cardLink: {
8
+ control: 'text',
9
+ description: 'Card link',
10
+ defaultValue: { summary: 'undefined' }
11
+ },
12
+ cardType: {
13
+ control: 'select',
14
+ options: [
15
+ "card-playlist",
16
+ "card-tall",
17
+ "card-video",
18
+ "card-video-intro",
19
+ // "card-wide",
20
+ "speed-bump"
21
+ ],
22
+ description: 'Card Type',
23
+ defaultValue: { summary: 'undefined' }
24
+ },
25
+ isLoading: {
26
+ control: 'boolean',
27
+ description: 'Internal Screen Size State',
28
+ defaultValue: { summary: 'false' }
29
+ },
30
+ linkTarget: {
31
+ control: '',
32
+ description: 'link Target',
33
+ defaultValue: { summary: '_self' }
34
+ },
35
+ linkTitle: {
36
+ control: '',
37
+ description: 'link Title',
38
+ defaultValue: { summary: 'undefined' }
39
+ }
40
+ }
41
+ };
42
+
43
+ // const Template = args => { return html `<ptc-card-wrapper
44
+ // card-link=${args.cardLink}
45
+ // card-type=${args.cardType}
46
+ // is-loading=${args.isLoading}
47
+ // link-target=${args.linkTarget}
48
+ // link-title=${args.linkTitle}
49
+ // ></ptc-card-wrapper>`;}
50
+
51
+ // export const Example = Template.bind({});
52
+
53
+ // Example.args = {
54
+ // cardLink: 'undefined',
55
+ // cardType: 'undefined',
56
+ // isLoading: 'false',
57
+ // linkTarget: '_self',
58
+ // linkTitle: 'undefined'
59
+ // }
60
+
61
+ // ** 16x9 Card **
62
+
63
+ const _16x9CardTemplate = args => { return html `
64
+ <div class="is-grid">
65
+ <ptc-card-wrapper class="is-col-4"
66
+ card-link=${args.cardLink}
67
+ card-type=${args.cardType}
68
+ is-loading=${args.isLoading}
69
+ link-target=${args.linkTarget}
70
+ link-title=${args.linkTitle}
71
+ >
72
+ <ptc-card-content card-type="card-video">
73
+ <ptc-picture alt="image-test" border-radius="radius-large" is-full-height is-full-width
74
+ src="https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data">
75
+ </ptc-picture>
76
+ </ptc-card-content>
77
+ <ptc-card-bottom card-type="card-video">
78
+ <ptc-para font-size="x-small" font-weight="w-7" para-line-h="line-height-19" para-color="primary-grey" para-margin="margin-top-3">
79
+ 3 Reasons Why Engineering and Manufacturing are Disjointed
80
+ </ptc-para>
81
+ </ptc-card-bottom>
82
+ </ptc-card-wrapper>
83
+ </div>
84
+ `;}
85
+
86
+ export const _16x9Card = _16x9CardTemplate.bind({});
87
+
88
+ _16x9Card.args = {
89
+ cardLink: 'https://www.ptc.com/',
90
+ cardType: 'card-video',
91
+ isLoading: 'false',
92
+ linkTarget: '_blank',
93
+ linkTitle: 'Link title on hover'
94
+ }
95
+
96
+ // ** Tall Card **
97
+
98
+ const TallCardTemplate = args => { return html `
99
+ <div class="is-grid">
100
+ <ptc-card-wrapper class="is-col-6"
101
+ card-link=${args.cardLink}
102
+ card-type=${args.cardType}
103
+ is-loading=${args.isLoading}
104
+ link-target=${args.linkTarget}
105
+ link-title=${args.linkTitle}
106
+ >
107
+ <ptc-card-content card-type="card-tall">
108
+ <ptc-picture alt="image-test" border-radius="radius-large" image-position="relative" is-full-height
109
+ src="https://s7d1.scene7.com/is/image/ptcinc//dpm-male-worker-laptop-factory-data" size-xs="435x480" size-sm="435x480" size-md="878x655" size-lg="878x655">
110
+ <ptc-overlay filter-color="green" border-radius="radius-large"></ptc-overlay>
111
+ </ptc-picture>
112
+ </ptc-card-content>
113
+ <ptc-card-bottom card-type="card-tall">
114
+ <ptc-title type="h3" upperline="no-upperline" title-shadow="green" is-plm-hub title-size="large" title-weight="w-8" title-l-height="lh-23">
115
+ Collaborative Approach Between Design and Manufacturing
116
+ </ptc-title>
117
+ </ptc-card-bottom>
118
+ </ptc-card-wrapper>
119
+ </div>
120
+ `;}
121
+
122
+ export const TallCard = TallCardTemplate.bind({});
123
+
124
+ TallCard.args = {
125
+ cardLink: 'https://www.ptc.com/',
126
+ cardType: 'card-tall',
127
+ isLoading: 'false',
128
+ linkTarget: '_blank',
129
+ linkTitle: 'Link title on hover'
130
+ }
131
+
132
+ // ** Speed Bump **
133
+
134
+ const SpeedBumpTemplate = args => { return html `
135
+ <div class="demo-plm-bgcolor">
136
+ <ptc-spacer breakpoint="x-small" size="xxxx-large"></ptc-spacer>
137
+ <ptc-spacer breakpoint="small" size="xxxx-large"></ptc-spacer>
138
+ <div class="is-col-12 is-grid">
139
+ <ptc-card-wrapper class="is-col-12"
140
+ card-link=${args.cardLink}
141
+ card-type=${args.cardType}
142
+ is-loading=${args.isLoading}
143
+ link-target=${args.linkTarget}
144
+ link-title=${args.linkTitle}
145
+ >
146
+ <ptc-card-content card-type="speed-bump">
147
+ <div class="is-grid has-no-col-gap has-no-row-gap">
148
+ <div class="is-col-12 is-row-1 is-col-9-md">
149
+ <ptc-para font-size="large" font-weight="w-8" para-margin="margin-flush" para-color="white">
150
+ Leaders Use PLM to Drive Innovation
151
+ </ptc-para>
152
+ <ptc-para font-size="small" font-weight="w-5" para-margin="margin-flush" para-color="white"
153
+ para-line-h="line-height-19">
154
+ See how global manufacturers are effectively using PLM to drive their digital transformation
155
+ journey.
156
+ </ptc-para>
157
+ <ptc-spacer breakpoint="x-small" size="large"></ptc-spacer>
158
+ <ptc-spacer breakpoint="small" size="xx-small"></ptc-spacer>
159
+ </div>
160
+ <div class="is-col-12 is-row-1 is-col-3-md u-justify-self-end">
161
+ <ptc-button type="link" color="ptc-quaternary" link-href="https://www.ptc.com" target="_blank"
162
+ class="has-m-top">
163
+ Learn More
164
+ </ptc-button>
165
+ </div>
166
+ </div>
167
+ </ptc-card-content>
168
+ </ptc-card-wrapper>
169
+ </div>
170
+ <ptc-spacer breakpoint="x-small" size="xxxx-large"></ptc-spacer>
171
+ <ptc-spacer breakpoint="small" size="xxxx-large"></ptc-spacer>
172
+ </div>
173
+ `;}
174
+
175
+ export const SpeedBump = SpeedBumpTemplate.bind({});
176
+
177
+ SpeedBump.args = {
178
+ cardLink: 'https://www.ptc.com/',
179
+ cardType: 'speed-bump',
180
+ isLoading: 'true',
181
+ linkTarget: '_blank',
182
+ linkTitle: 'Link title on hover'
183
+ }
184
+
185
+ // ** Video Intro Card **
186
+
187
+ const VideoIntroCardTemplate = args => { return html `
188
+ <ptc-card-wrapper class="background-grey-10 has-p-md"
189
+ card-link=${args.cardLink}
190
+ card-type=${args.cardType}
191
+ is-loading=${args.isLoading}
192
+ link-target=${args.linkTarget}
193
+ link-title=${args.linkTitle}
194
+ >
195
+ <ptc-card-content card-type="card-video-intro">
196
+ <ptc-title type="h3" upperline="no-upperline" is-plm-hub title-size="large" title-weight="w-8" title-l-height="lh-23">
197
+ Collaborative Approach Between Design and Manufacturing
198
+ </ptc-title>
199
+ <ptc-date date-color="white" year="2021" month="8" day="15" country="de-DE" data-size="medium" class="has-m-bottom-md"></ptc-date>
200
+ <ptc-para font-size="medium" font-weight="w-4" para-margin="margin-bottom-1" para-color="white"
201
+ para-line-h="line-height-19">
202
+ See how Polaris and Whirlpool Corporation are driving digital transformation and industrial innovation
203
+ for
204
+ their customers.
205
+ </ptc-para>
206
+ </ptc-card-content>
207
+ <ptc-card-bottom card-type="card-video-intro">
208
+ <div class="is-flex">
209
+ <ptc-social-share class="has-m-left" display="inline-block" share-type="mail" text="summary" url="https://www.ptc.com" share-title="title goes here" source="linkedin source" recipient="yqiantest@ptc.com"></ptc-social-share>
210
+ <ptc-social-share class="has-m-left" display="inline-block" share-type="linkedin" text="summary" url="https://www.ptc.com" share-title="title goes here" source="linkedin source" recipient="yqiantest@ptc.com"></ptc-social-share>
211
+ <ptc-social-share class="has-m-left" display="inline-block" share-type="twitter" text="summary" url="https://www.ptc.com" share-title="title goes here" source="linkedin source" recipient="yqiantest@ptc.com"></ptc-social-share>
212
+ <ptc-social-share class="has-m-left" display="inline-block" share-type="facebook" text="summary" url="https://www.ptc.com" share-title="title goes here" source="linkedin source" recipient="yqiantest@ptc.com"></ptc-social-share>
213
+ </div>
214
+ </ptc-card-bottom>
215
+ </ptc-card-wrapper>
216
+ `;}
217
+
218
+ export const VideoIntroCard = VideoIntroCardTemplate.bind({});
219
+
220
+ VideoIntroCard.args = {
221
+ cardLink: 'https://www.ptc.com/',
222
+ cardType: 'card-video-intro',
223
+ isLoading: 'false',
224
+ linkTarget: '_blank',
225
+ linkTitle: 'Link title on hover'
226
+ }
227
+
228
+ // ** Playlist Card **
229
+
230
+ const PlaylistCardTemplate = args => { return html `
231
+ <div class="demo-plm-bgcolor">
232
+ <ptc-spacer breakpoint="x-small" size="xxxx-large"></ptc-spacer>
233
+ <ptc-spacer breakpoint="small" size="xxxx-large"></ptc-spacer>
234
+ <div class="is-grid has-row-gap-md">
235
+ <ptc-card-wrapper class="is-col-6"
236
+ card-link=${args.cardLink}
237
+ card-type=${args.cardType}
238
+ is-loading=${args.isLoading}
239
+ link-target=${args.linkTarget}
240
+ link-title=${args.linkTitle}
241
+ >
242
+ <ptc-card-content card-type="card-playlist">
243
+ <ptc-picture alt="image-test" border-radius="radius-large"
244
+ src="http://s7d1.scene7.com/is/image/ptcinc/slts-optimize-product-design-female-engineers"
245
+ size-xs="200x200" size-sm="200x200" size-md="200x200" size-lg="200x200" width="88"></ptc-picture>
246
+ </ptc-card-content>
247
+ <ptc-card-bottom card-type="card-playlist">
248
+ <ptc-para font-size="small" font-weight="w-6" para-margin="margin-flush" para-color="white"
249
+ para-line-h="line-height-17">
250
+ See how Polaris and Whirlpool Corporation are driving digital transformation and industrial innovation
251
+ for
252
+ their customers.
253
+ </ptc-para>
254
+ </ptc-card-bottom>
255
+ </ptc-card-wrapper>
256
+ </div>
257
+ <ptc-spacer breakpoint="x-small" size="xxxx-large"></ptc-spacer>
258
+ <ptc-spacer breakpoint="small" size="xxxx-large"></ptc-spacer>
259
+ </div>
260
+ `;}
261
+
262
+ export const PlaylistCard = PlaylistCardTemplate.bind({});
263
+
264
+ PlaylistCard.args = {
265
+ cardLink: 'https://www.ptc.com/',
266
+ cardType: 'card-playlist',
267
+ isLoading: 'false',
268
+ linkTarget: '_blank',
269
+ linkTitle: 'Link title on hover'
270
+ }
@@ -0,0 +1,53 @@
1
+ import { html } from 'lit';
2
+ import {action} from '@storybook/addon-actions'
3
+
4
+ export default {
5
+ title: 'Molecules/ptc-checkbox',
6
+ tags: [ 'autodocs' ],
7
+ argTypes: {
8
+ checked: {
9
+ control: 'select',
10
+ options: ["checked", "unchecked"],
11
+ description: 'Whether checkbox state is checked or not',
12
+ defaultValue: { summary: 'unchecked' }
13
+ },
14
+ disabled: {
15
+ control: 'boolean',
16
+ description: 'Whether checkbox is disabled or not',
17
+ defaultValue: { summary: 'undefined' }
18
+ },
19
+ inputName: {
20
+ control: 'text',
21
+ description: 'The name of the underlying form input',
22
+ defaultValue: { summary: 'undefined' }
23
+ },
24
+ value: {
25
+ control: 'text',
26
+ description: 'The name of the underlying form input',
27
+ defaultValue: { summary: 'undefined' }
28
+ },
29
+ },
30
+ };
31
+
32
+ const Template = args => {
33
+ const handleClick = (e) => {
34
+ e.stopPropagation();
35
+ action('onClick')(e);
36
+ };
37
+
38
+ return html `<ptc-checkbox
39
+ checked=${args.checked}
40
+ disabled=${args.disabled}
41
+ input-name=${args.inputName}
42
+ value=${args.value}
43
+ @click=${handleClick}
44
+ >Checkbox item</ptc-checkbox>`;}
45
+
46
+ export const Example = Template.bind({});
47
+
48
+ Example.args = {
49
+ checked: 'unchecked',
50
+ disabled: 'false',
51
+ inputName: 'undefined',
52
+ value: 'undefined'
53
+ }
@@ -0,0 +1,81 @@
1
+ import { html } from 'lit';
2
+
3
+ const getNumberRange = (start, end) => {
4
+ let numberRange = [];
5
+ for(let i = start; i <= end; i++) {
6
+ numberRange.push(i);
7
+ }
8
+ return numberRange;
9
+ }
10
+
11
+ export default {
12
+ title: 'Atoms/ptc-date',
13
+ tags: ['autodocs'],
14
+
15
+ argTypes: {
16
+ country: {
17
+ control: 'select',
18
+ options: ["en-US", "zh-CN", "zh-TW", "fr-FR", "ja-JP", "ru-RU", "de-DE", "ko-KR", "it-IT", "es-ES"],
19
+ description: "Country",
20
+ defaultValue: { summary: "en-US" }
21
+ },
22
+ dataSize: {
23
+ control: 'select',
24
+ options: ["medium", "small"],
25
+ description: "Date Font Size",
26
+ defaultValue: { summary: "small" }
27
+ },
28
+ dateColor: {
29
+ control: 'select',
30
+ options: ["primary-grey", "white"],
31
+ description: "Date Color",
32
+ defaultValue: { summary: "undefined" }
33
+ },
34
+ dateString: {
35
+ control: 'text',
36
+ description: "Date examples: 2000-1-1 or 2000/01/01",
37
+ defaultValue: { summary: "undefined" }
38
+ },
39
+ day: {
40
+ control: 'select',
41
+ options: getNumberRange(1, 31),
42
+ description: "Day",
43
+ defaultValue: { summary: 1 }
44
+ },
45
+ month: {
46
+ control: 'select',
47
+ options: getNumberRange(1, 12),
48
+ description: "Month",
49
+ defaultValue: { summary: 1 }
50
+ },
51
+ year: {
52
+ control: 'select',
53
+ options: getNumberRange(1900, (new Date).getFullYear()),
54
+ description: "Year",
55
+ defaultValue: { summary: 1900 }
56
+ },
57
+ }
58
+ }
59
+
60
+ const Template = args => {
61
+ return html `<ptc-date
62
+ country="${args.country}"
63
+ data-size="${args.dataSize}"
64
+ date-color="${args.dateColor}"
65
+ date-string="${args.dateString}"
66
+ day="${args.day}"
67
+ month="${args.month}"
68
+ year="${args.year}"
69
+ ></ptc-date>`;
70
+ }
71
+
72
+ export const Example = Template.bind({});
73
+ Example.args = {
74
+ country: "en-US",
75
+ dataSize: "small",
76
+ dateColor: undefined,
77
+ dateString: undefined,
78
+ day: 1,
79
+ month: 1,
80
+ year: 1900,
81
+ }