@ptcwebops/ptcw-design 1.6.0 → 1.6.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.
- package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +50 -0
- package/dist/cjs/{bundle-jumbotron-example_14.cjs.entry.js → icon-asset_16.cjs.entry.js} +406 -401
- package/dist/cjs/interfaces-574e6df7.js +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container_3.cjs.entry.js +237 -0
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +135 -0
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-slit-card.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-card/ptc-card.css +28 -179
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +4 -0
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +4 -0
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +1 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.js +1 -19
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +2 -6
- package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +1 -1
- package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +2 -2
- package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +3 -0
- package/dist/collection/stories/Button.stories.js +43 -0
- package/dist/collection/stories/MaxWidthContainer.stories.js +32 -0
- package/dist/collection/stories/Title.stories.js +115 -0
- package/dist/collection/stories/assets/code-brackets.svg +1 -0
- package/dist/collection/stories/assets/colors.svg +1 -0
- package/dist/collection/stories/assets/comments.svg +1 -0
- package/dist/collection/stories/assets/direction.svg +1 -0
- package/dist/collection/stories/assets/flow.svg +1 -0
- package/dist/collection/stories/assets/plugin.svg +1 -0
- package/dist/collection/stories/assets/repo.svg +1 -0
- package/dist/collection/stories/assets/stackalt.svg +1 -0
- package/dist/custom-elements/index.js +9 -10
- package/dist/esm/bundle-jumbotron-example.entry.js +46 -0
- package/dist/esm/{bundle-jumbotron-example_14.entry.js → icon-asset_16.entry.js} +399 -396
- package/dist/esm/interfaces-7c0243be.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/max-width-container_3.entry.js +231 -0
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-jumbotron.entry.js +131 -0
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-00b3984e.entry.js +1 -0
- package/dist/ptcw-design/p-4e551e25.entry.js +1 -0
- package/dist/ptcw-design/p-73ea7065.entry.js +1 -0
- package/dist/ptcw-design/{p-2404b2db.entry.js → p-9e23fa0e.entry.js} +1 -1
- package/dist/ptcw-design/p-b8debc73.entry.js +1 -0
- package/dist/ptcw-design/p-e8c46d2e.entry.js +1 -0
- package/dist/ptcw-design/p-eba1521a.entry.js +1 -0
- package/dist/ptcw-design/p-ee1183b2.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-product-card/ptc-product-card.d.ts +0 -2
- package/dist/types/components.d.ts +0 -5
- package/package.json +15 -3
- package/readme.md +1 -1
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +0 -46
- package/dist/cjs/ptc-product-card.cjs.entry.js +0 -33
- package/dist/cjs/ptc-product-category.cjs.entry.js +0 -21
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -80
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +0 -23
- package/dist/cjs/ptc-product-list.cjs.entry.js +0 -128
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +0 -130
- package/dist/esm/ptc-back-to-top.entry.js +0 -42
- package/dist/esm/ptc-product-card.entry.js +0 -29
- package/dist/esm/ptc-product-category.entry.js +0 -17
- package/dist/esm/ptc-product-dropdown.entry.js +0 -76
- package/dist/esm/ptc-product-highlight-card.entry.js +0 -19
- package/dist/esm/ptc-product-list.entry.js +0 -124
- package/dist/esm/ptc-product-sidebar.entry.js +0 -126
- package/dist/ptcw-design/p-046b0224.entry.js +0 -1
- package/dist/ptcw-design/p-19ec063d.entry.js +0 -1
- package/dist/ptcw-design/p-43e72cf0.entry.js +0 -1
- package/dist/ptcw-design/p-49dc9b68.entry.js +0 -1
- package/dist/ptcw-design/p-65513c45.entry.js +0 -1
- package/dist/ptcw-design/p-798c2328.entry.js +0 -1
- package/dist/ptcw-design/p-8148b960.entry.js +0 -1
- package/dist/ptcw-design/p-ac5dfbd0.entry.js +0 -1
- package/dist/ptcw-design/p-e341cb46.entry.js +0 -1
- package/dist/ptcw-design/p-ff1585a9.entry.js +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-88135a6b.js');
|
|
6
|
+
|
|
7
|
+
const bundleJumbotronExampleCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const BundleJumbotronExample = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.jumbotron = 'light';
|
|
13
|
+
this.isIframe = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
let $pngSrc;
|
|
17
|
+
let $gifSrc;
|
|
18
|
+
let $bgVideoSrc;
|
|
19
|
+
let $bgSrc;
|
|
20
|
+
let $popupVideo;
|
|
21
|
+
//replace dummy data
|
|
22
|
+
if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
|
|
23
|
+
$bgSrc =
|
|
24
|
+
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80';
|
|
25
|
+
}
|
|
26
|
+
else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
|
|
27
|
+
//$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
|
|
28
|
+
// if is iframe use src from iframe
|
|
29
|
+
$bgVideoSrc = 'https://player.vimeo.com/video/749261406?h=5e6a60ffc5&muted=1&autoplay=1&loop=1&transparent=0&background=1&app_id=122963%22&controls=0';
|
|
30
|
+
}
|
|
31
|
+
else if (this.jumbotron === 'png') {
|
|
32
|
+
$pngSrc =
|
|
33
|
+
'https://images.unsplash.com/photo-1676883343977-5f8ecc36856c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NzgyMjcxNDU&ixlib=rb-4.0.3&q=80&w=400';
|
|
34
|
+
}
|
|
35
|
+
else if (this.jumbotron === 'gif') {
|
|
36
|
+
$gifSrc = 'https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif';
|
|
37
|
+
}
|
|
38
|
+
//Optional: set $popupVideo
|
|
39
|
+
//$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
|
|
40
|
+
return (index.h(index.Host, null, index.h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!$pngSrc && { pngSrc: $pngSrc }), (!!$gifSrc && { gifSrc: $gifSrc }), (!!$bgVideoSrc && { bgVideoSrc: $bgVideoSrc }), (!!$bgSrc && { bgSrc: $bgSrc }), (!!$popupVideo ), { "sub-title": "totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." // bind sub title data (multi-line)
|
|
41
|
+
,
|
|
42
|
+
"is-iframe": this.isIframe }), index.h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), index.h("list-item", Object.assign({ "list-type": "breadcrumb", "link-href": "https://www.ptc.com/contact-us" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "PLM Video Hub"), index.h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), index.h("ptc-title", { slot: "main-title", type: "h1", upperline: "no-upperline", "title-size": "xxxx-large", "title-height": "densest", "title-weight": "w-8", "title-margin": "margin-flush", "text-align": "left" // if type=text, text-align=center, otherwise left
|
|
43
|
+
,
|
|
44
|
+
"title-color": "gray" //if dark, dark-video then "gray-1"
|
|
45
|
+
}, index.h("ptc-tooltip", { "text-lines": "3", description: "Sed ut perspiciatis unde omnis iste natus", position: "right" })), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
BundleJumbotronExample.style = bundleJumbotronExampleCss;
|
|
49
|
+
|
|
50
|
+
exports.bundle_jumbotron_example = BundleJumbotronExample;
|