@ptcwebops/ptcw-design 1.6.0 → 1.6.1

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 (77) hide show
  1. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +50 -0
  2. package/dist/cjs/{bundle-jumbotron-example_14.cjs.entry.js → icon-asset_16.cjs.entry.js} +406 -401
  3. package/dist/cjs/interfaces-574e6df7.js +15 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/max-width-container_3.cjs.entry.js +237 -0
  6. package/dist/cjs/ptc-card.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-jumbotron.cjs.entry.js +135 -0
  8. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  9. package/dist/cjs/ptcw-design.cjs.js +1 -1
  10. package/dist/collection/components/ptc-card/ptc-card.css +26 -179
  11. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +4 -0
  12. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +4 -0
  13. package/dist/collection/components/ptc-product-card/ptc-product-card.css +1 -1
  14. package/dist/collection/components/ptc-product-card/ptc-product-card.js +1 -19
  15. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +2 -6
  16. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +1 -1
  17. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +2 -2
  18. package/dist/collection/stories/Button.js +21 -0
  19. package/dist/collection/stories/Button.stories.js +45 -0
  20. package/dist/collection/stories/Header.js +45 -0
  21. package/dist/collection/stories/Header.stories.js +18 -0
  22. package/dist/collection/stories/Page.js +61 -0
  23. package/dist/collection/stories/Page.stories.js +20 -0
  24. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  25. package/dist/collection/stories/assets/colors.svg +1 -0
  26. package/dist/collection/stories/assets/comments.svg +1 -0
  27. package/dist/collection/stories/assets/direction.svg +1 -0
  28. package/dist/collection/stories/assets/flow.svg +1 -0
  29. package/dist/collection/stories/assets/plugin.svg +1 -0
  30. package/dist/collection/stories/assets/repo.svg +1 -0
  31. package/dist/collection/stories/assets/stackalt.svg +1 -0
  32. package/dist/custom-elements/index.js +8 -9
  33. package/dist/esm/bundle-jumbotron-example.entry.js +46 -0
  34. package/dist/esm/{bundle-jumbotron-example_14.entry.js → icon-asset_16.entry.js} +399 -396
  35. package/dist/esm/interfaces-7c0243be.js +12 -0
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/max-width-container_3.entry.js +231 -0
  38. package/dist/esm/ptc-card.entry.js +1 -1
  39. package/dist/esm/ptc-jumbotron.entry.js +131 -0
  40. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  41. package/dist/esm/ptcw-design.js +1 -1
  42. package/dist/ptcw-design/p-0d2c381a.entry.js +1 -0
  43. package/dist/ptcw-design/p-73ea7065.entry.js +1 -0
  44. package/dist/ptcw-design/{p-2404b2db.entry.js → p-9e23fa0e.entry.js} +1 -1
  45. package/dist/ptcw-design/p-b8debc73.entry.js +1 -0
  46. package/dist/ptcw-design/p-e8c46d2e.entry.js +1 -0
  47. package/dist/ptcw-design/p-eba1521a.entry.js +1 -0
  48. package/dist/ptcw-design/p-ee1183b2.js +1 -0
  49. package/dist/ptcw-design/ptcw-design.css +1 -1
  50. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  51. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +0 -2
  52. package/dist/types/components.d.ts +0 -5
  53. package/package.json +15 -3
  54. package/readme.md +1 -1
  55. package/dist/cjs/ptc-back-to-top.cjs.entry.js +0 -46
  56. package/dist/cjs/ptc-product-card.cjs.entry.js +0 -33
  57. package/dist/cjs/ptc-product-category.cjs.entry.js +0 -21
  58. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -80
  59. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +0 -23
  60. package/dist/cjs/ptc-product-list.cjs.entry.js +0 -128
  61. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +0 -130
  62. package/dist/esm/ptc-back-to-top.entry.js +0 -42
  63. package/dist/esm/ptc-product-card.entry.js +0 -29
  64. package/dist/esm/ptc-product-category.entry.js +0 -17
  65. package/dist/esm/ptc-product-dropdown.entry.js +0 -76
  66. package/dist/esm/ptc-product-highlight-card.entry.js +0 -19
  67. package/dist/esm/ptc-product-list.entry.js +0 -124
  68. package/dist/esm/ptc-product-sidebar.entry.js +0 -126
  69. package/dist/ptcw-design/p-046b0224.entry.js +0 -1
  70. package/dist/ptcw-design/p-19ec063d.entry.js +0 -1
  71. package/dist/ptcw-design/p-43e72cf0.entry.js +0 -1
  72. package/dist/ptcw-design/p-49dc9b68.entry.js +0 -1
  73. package/dist/ptcw-design/p-65513c45.entry.js +0 -1
  74. package/dist/ptcw-design/p-798c2328.entry.js +0 -1
  75. package/dist/ptcw-design/p-ac5dfbd0.entry.js +0 -1
  76. package/dist/ptcw-design/p-e341cb46.entry.js +0 -1
  77. package/dist/ptcw-design/p-ff1585a9.entry.js +0 -1
@@ -1621,10 +1621,6 @@ export interface PtcPricingTabsCustomEvent<T> extends CustomEvent<T> {
1621
1621
  detail: T;
1622
1622
  target: HTMLPtcPricingTabsElement;
1623
1623
  }
1624
- export interface PtcProductCardCustomEvent<T> extends CustomEvent<T> {
1625
- detail: T;
1626
- target: HTMLPtcProductCardElement;
1627
- }
1628
1624
  export interface PtcProductDropdownCustomEvent<T> extends CustomEvent<T> {
1629
1625
  detail: T;
1630
1626
  target: HTMLPtcProductDropdownElement;
@@ -3398,7 +3394,6 @@ declare namespace LocalJSX {
3398
3394
  */
3399
3395
  "cardTitle"?: string;
3400
3396
  "isSlotEmpty"?: boolean;
3401
- "onIsOpenProductHighlight"?: (event: PtcProductCardCustomEvent<any>) => void;
3402
3397
  /**
3403
3398
  * toggleCtaTitle
3404
3399
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptcwebops/ptcw-design",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "./dist/index.js",
@@ -23,7 +23,9 @@
23
23
  "test.end-to-end": "stencil test --e2e",
24
24
  "test.unit.watch": "stencil test --spec --watch",
25
25
  "generate": "stencil generate",
26
- "prepare": "stencil build --docs"
26
+ "prepare": "stencil build --docs",
27
+ "storybook": "storybook dev -p 6006",
28
+ "build-storybook": "storybook build"
27
29
  },
28
30
  "dependencies": {
29
31
  "@daveberning/griddle": "^0.3.0",
@@ -35,13 +37,23 @@
35
37
  },
36
38
  "license": "MIT",
37
39
  "devDependencies": {
40
+ "@babel/preset-env": "^7.22.4",
38
41
  "@stencil/sass": "^1.4.1",
42
+ "@storybook/addon-essentials": "^7.0.18",
43
+ "@storybook/addon-links": "^7.0.18",
44
+ "@storybook/blocks": "^7.0.18",
45
+ "@storybook/web-components": "^7.0.18",
46
+ "@storybook/web-components-webpack5": "^7.0.18",
39
47
  "@types/jest": "^27.0.3",
40
48
  "jest": "^27.4.5",
41
49
  "jest-cli": "^27.4.5",
50
+ "lit": "^2.7.4",
42
51
  "mobile-select": "^1.1.2",
43
52
  "puppeteer": "^10.0.0",
44
- "stencil-inline-svg": "^1.1.0"
53
+ "react": "^18.2.0",
54
+ "react-dom": "^18.2.0",
55
+ "stencil-inline-svg": "^1.1.0",
56
+ "storybook": "^7.0.18"
45
57
  },
46
58
  "directories": {
47
59
  "doc": "docs"
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
2
2
 
3
- # PTC Design 1.6.0
3
+ # PTC Design 1.6.1
4
4
  The site is the place for documentation on PTC Design System
5
5
 
6
6
  ## Building the Site
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcBackToTopCss = ":host{display:block}:host .back-to-top-button{position:fixed;bottom:140px;right:24px;width:64px;height:58px;border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);color:var(--color-gray-10);font-size:12px;font-weight:var(--ptc-font-weight-semibold);outline:none;cursor:pointer;transition:opacity 0.3s ease-in-out;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--ptc-shadow-small)}:host .back-to-top-button:hover{opacity:1}:host .arrow{margin-bottom:5px}";
8
-
9
- const PtcBackToTop = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.handleScroll = () => {
13
- const scrollY = window.pageYOffset || document.documentElement.scrollTop;
14
- this.showButton = scrollY > window.innerHeight * 1;
15
- };
16
- this.showButton = false;
17
- }
18
- componentDidLoad() {
19
- window.addEventListener('scroll', this.handleScroll);
20
- }
21
- disconnectedCallback() {
22
- window.removeEventListener('scroll', this.handleScroll);
23
- }
24
- handleClick() {
25
- this.scrollToTop();
26
- }
27
- scrollToTop() {
28
- if ('scrollBehavior' in document.documentElement.style) {
29
- // Smooth scrolling is supported
30
- window.scrollTo({
31
- top: 0,
32
- behavior: 'smooth',
33
- });
34
- }
35
- else {
36
- // Fallback for browsers that do not support smooth scrolling
37
- window.scrollTo(0, 0);
38
- }
39
- }
40
- render() {
41
- return (index.h(index.Host, null, this.showButton && (index.h("button", { class: 'back-to-top-button', title: "Back to Top" }, index.h("span", { class: 'arrow' }, index.h("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M15.5248 11.625L8.9998 5.1L2.4748 11.625L0.112305 9.2625L8.9998 0.375L17.8873 9.2625L15.5248 11.625Z", fill: "#323B42" }))), index.h("span", { class: 'text' }, "Back to Top")))));
42
- }
43
- };
44
- PtcBackToTop.style = ptcBackToTopCss;
45
-
46
- exports.ptc_back_to_top = PtcBackToTop;
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcProductCardCss = ":host{display:block;background-color:var(--color-white);padding-top:var(--ptc-layout-spacing-03);border-radius:var(--ptc-border-radius-standard);margin-bottom:var(--ptc-layout-spacing-03)}:host .card-wrap{display:flex;align-items:center}:host .card-wrap ptc-picture{display:none}@media only screen and (min-width: 768px){:host .card-wrap ptc-picture{display:block;margin-left:var(--ptc-element-spacing-06);min-width:38px;max-width:38px}}:host .card-wrap .content{padding:0 38px 24px 38px}@media only screen and (min-width: 768px){:host .card-wrap .content{padding:0 44px 24px 44px}}@media only screen and (min-width: 1200px){:host .card-wrap .content{display:flex;align-items:center}}:host .card-wrap .content .cta-wrap{margin-left:0;margin-top:24px}@media only screen and (min-width: 1200px){:host .card-wrap .content .cta-wrap{margin-top:0px;margin-left:44px}}:host .toggle-btn{padding:16px;text-align:center;border-top:1px solid var(--color-gray-04);display:block;cursor:pointer}:host .toggle-btn svg{margin-right:var(--ptc-element-spacing-03);vertical-align:middle;margin-top:-2px}:host .product-highlights-container{padding:0px 20px 16px 20px}";
8
-
9
- const PtcProductCard = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.isOpenProductHighlight = index.createEvent(this, "isOpenProductHighlight", 7);
13
- this.cardTitle = undefined;
14
- this.cardImage = undefined;
15
- this.cardImageAltText = undefined;
16
- this.cardDescription = undefined;
17
- this.cardCtaText = undefined;
18
- this.toggleCtaTitle = undefined;
19
- this.isOpen = false;
20
- this.isSlotEmpty = undefined;
21
- }
22
- togglePanel() {
23
- this.isOpen = !this.isOpen;
24
- }
25
- render() {
26
- return (index.h(index.Host, null, index.h("div", { class: "card-wrap" }, index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: '38' }), index.h("div", { class: "content" }, index.h("div", null, index.h("ptc-title", { type: 'h3', upperline: "no-upperline", "title-size": "medium", "title-weight": "w-8", "title-height": "densest", "title-margin": 'margin-flush' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "16", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))), index.h("div", { class: 'cta-wrap' }, index.h("slot", { name: "cta" })))), this.toggleCtaTitle &&
27
- index.h("ptc-para", { class: "toggle-btn", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel() }, index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("rect", { width: "18", height: "18", rx: "4", fill: "#00890B" }), this.isOpen ? (index.h("g", { "clip-path": "url(#clip0_187_1609)" }, index.h("path", { d: "M4.86365 7.98779V10.0128H14.3824V7.98779H4.86365Z", fill: "white" }))) : (index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.953 4.23535H8.04712V8.04712H4.23535V9.953H8.04712V13.7648H9.953V9.953H13.7648V8.04712H9.953V4.23535Z", fill: "white" })), index.h("defs", null, index.h("clipPath", { id: "clip0_187_1609" }, index.h("rect", { width: "9.51872", height: "9.52941", fill: "white", transform: "translate(4.86365 4.23535)" })))), index.h("span", null, this.toggleCtaTitle)), this.isOpen && (index.h("div", { class: 'product-highlights-container' }, index.h("slot", null)))));
28
- }
29
- get hostElement() { return index.getElement(this); }
30
- };
31
- PtcProductCard.style = ptcProductCardCss;
32
-
33
- exports.ptc_product_card = PtcProductCard;
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcProductCategoryCss = ":host{display:block;padding-bottom:var(--ptc-layout-spacing-03)}";
8
-
9
- const PtcProductCategory = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.categoryTitle = undefined;
13
- this.categoryDescription = undefined;
14
- }
15
- render() {
16
- return (index.h(index.Host, null, index.h("ptc-title", { type: "h2", upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "xx-large" }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-999", description: this.categoryTitle, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "x-small" }), index.h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), index.h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "9", "z-index": "z-999", description: this.categoryDescription, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "large" }), index.h("slot", null)));
17
- }
18
- };
19
- PtcProductCategory.style = ptcProductCategoryCss;
20
-
21
- exports.ptc_product_category = PtcProductCategory;
@@ -1,80 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcProductDropdownCss = ":host{display:block;margin-top:4px;background-color:var(--color-white)}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;width:100%;font-size:16px}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;margin-left:0.25rem;width:0;height:0;border-top:0.4rem solid;border-right:0.4rem solid transparent;border-left:0.4rem solid transparent;vertical-align:middle}:host .dropdown-menu{position:absolute;top:100%;left:0;min-width:10rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);z-index:105;max-height:400px;overflow-y:auto}:host .dropdown-menu::-webkit-scrollbar{width:5px}:host .dropdown-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown-menu::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .checkbox-label{display:flex;align-items:flex-start;padding:6px 16px;cursor:pointer;font-size:14px}:host .checkbox-label:first-child{padding-top:20px}:host .checkbox-label:last-child{padding-bottom:20px}:host .checkbox-label input[type=checkbox]{min-width:20px;margin-right:8px;width:20px;height:20px;margin-top:0}";
8
-
9
- const PtcProductDropdown = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.selectedValues = index.createEvent(this, "selectedValues", 7);
13
- this.dropdownTouched = index.createEvent(this, "dropdownTouched", 7);
14
- this.internalOptions = undefined;
15
- this.newOptions = undefined;
16
- this.selectedOptions = [];
17
- this.placeholder = undefined;
18
- this.isOpen = false;
19
- }
20
- parseOptions() {
21
- let options = Array.from(this.hostElement.querySelectorAll('span'));
22
- if (options) {
23
- this.internalOptions = options.map((option) => {
24
- return option.textContent;
25
- });
26
- }
27
- }
28
- toggleDropdown() {
29
- this.isOpen = !this.isOpen;
30
- this.dropdownTouched.emit({
31
- 'sender': this,
32
- 'isOpen': this.isOpen
33
- });
34
- }
35
- handleSearchResult(event) {
36
- const { sender, searchTerm } = event.detail;
37
- if (sender) {
38
- if (searchTerm === "") {
39
- this.selectedOptions = [];
40
- this.isOpen = false;
41
- }
42
- }
43
- }
44
- handleinputChanged(event) {
45
- const { sender } = event.detail;
46
- if (sender) {
47
- this.selectedOptions = [];
48
- this.isOpen = false;
49
- }
50
- }
51
- handleCheckboxChange(option) {
52
- const index = this.selectedOptions.indexOf(option);
53
- if (index > -1) {
54
- this.selectedOptions.splice(index, 1);
55
- //console.log(this.selectedOptions);
56
- this.selectedValues.emit({
57
- 'sender': this,
58
- 'selectedOptions': this.selectedOptions
59
- });
60
- }
61
- else {
62
- this.selectedOptions.push(option);
63
- //console.log(this.selectedOptions);
64
- this.selectedValues.emit({
65
- 'sender': this,
66
- 'selectedOptions': this.selectedOptions
67
- });
68
- }
69
- }
70
- componentWillLoad() {
71
- this.parseOptions();
72
- }
73
- render() {
74
- return (index.h(index.Host, null, index.h("div", { class: "dropdown" }, index.h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, index.h("span", { class: "dropdown-placeholder" }, this.placeholder), index.h("span", { class: "caret" })), this.isOpen && (index.h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (index.h("label", { class: "checkbox-label" }, index.h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), index.h("div", { class: "hidden" }, index.h("slot", null))));
75
- }
76
- get hostElement() { return index.getElement(this); }
77
- };
78
- PtcProductDropdown.style = ptcProductDropdownCss;
79
-
80
- exports.ptc_product_dropdown = PtcProductDropdown;
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcProductHighlightCardCss = ":host{max-width:300px;display:block;padding:18px 10px 12px 10px;border:1px solid var(--color-gray-04);border-radius:var(--ptc-border-radius-standard);margin:auto}:host ptc-picture{min-height:100px}";
8
-
9
- const PtcProductHighlightCard = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.cardTitle = undefined;
13
- this.cardImage = undefined;
14
- this.cardImageAltText = undefined;
15
- this.cardDescription = undefined;
16
- }
17
- render() {
18
- return (index.h(index.Host, null, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": 'center' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-align": 'left', "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))));
19
- }
20
- };
21
- PtcProductHighlightCard.style = ptcProductHighlightCardCss;
22
-
23
- exports.ptc_product_highlight_card = PtcProductHighlightCard;
@@ -1,128 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcProductListCss = ":host{display:block;padding-bottom:52px}@media only screen and (min-width: 992px){:host{padding-bottom:102px}}:host .no-result-wrap{display:none}:host .no-result-wrap.show{display:block}:host .no-result-wrap .no-result{display:flex;justify-content:center;align-items:center;min-height:160px;padding:20px;text-align:center}";
8
-
9
- const PtcProductList = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.clearCtaClicked = index.createEvent(this, "clearCtaClicked", 7);
13
- }
14
- handleSearchResult(event) {
15
- const { sender, searchTerm } = event.detail;
16
- if (sender) {
17
- this.sortCards(searchTerm);
18
- }
19
- }
20
- handleMultipleSearchResult(event) {
21
- const { sender, selectedOptions } = event.detail;
22
- if (sender) {
23
- this.sortMultipleCards(selectedOptions);
24
- }
25
- }
26
- handleEmptyResult(event) {
27
- const { sender, searchTerm } = event.detail;
28
- if (sender) {
29
- this.noresultSection.classList.add('show');
30
- this.sortCards(searchTerm);
31
- }
32
- }
33
- sortMultipleCards(searchItems) {
34
- const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
35
- categoryList.forEach((category) => {
36
- const categoryTitle = category.getAttribute('category-title');
37
- const productList = Array.from(category.querySelectorAll('ptc-product-card'));
38
- if (searchItems.length > 0) {
39
- const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
40
- category.style.display = shouldDisplayCategory ? 'block' : 'none';
41
- if (shouldDisplayCategory) {
42
- productList.forEach(product => {
43
- product.style.display = 'block';
44
- });
45
- }
46
- else {
47
- productList.forEach(product => {
48
- const productTitle = product.getAttribute('card-title');
49
- const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
50
- product.style.display = shouldDisplayProduct ? 'block' : 'none';
51
- });
52
- }
53
- }
54
- else {
55
- category.style.display = 'block';
56
- productList.forEach(product => {
57
- product.style.display = 'block';
58
- });
59
- }
60
- });
61
- }
62
- // Sorting the
63
- sortCards(searchItem) {
64
- const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
65
- categoryList.forEach((category) => {
66
- const categoryTitle = category.getAttribute('category-title');
67
- const productList = category.querySelectorAll('ptc-product-card');
68
- category.style.display = 'none';
69
- if (searchItem === '') {
70
- category.style.display = 'block';
71
- productList.forEach(product => {
72
- product.style.display = 'block';
73
- });
74
- this.noresultSection.classList.remove('show');
75
- }
76
- else {
77
- const searchItemLowerCase = searchItem; //
78
- if (searchItemLowerCase === categoryTitle) {
79
- category.style.display = 'block';
80
- productList.forEach(product => {
81
- product.style.display = 'block';
82
- });
83
- }
84
- else {
85
- productList.forEach(product => {
86
- const productTitle = product.getAttribute('card-title');
87
- product.style.display = 'none';
88
- if (searchItemLowerCase === productTitle) {
89
- product.style.display = 'block';
90
- category.style.display = 'block';
91
- }
92
- });
93
- }
94
- }
95
- });
96
- }
97
- componentDidLoad() {
98
- this.addIds();
99
- this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
100
- this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
101
- }
102
- handleClick(event) {
103
- this.clearCtaClicked.emit({
104
- 'sender': this,
105
- 'event': event,
106
- });
107
- }
108
- // Adding id to the category and product cards
109
- addIds() {
110
- const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
111
- categoryList.forEach((category) => {
112
- const categoryTitle = category.getAttribute('category-title');
113
- category.setAttribute('id', categoryTitle);
114
- const productList = category.querySelectorAll('ptc-product-card');
115
- productList.forEach(product => {
116
- const productTitle = product.getAttribute('card-title');
117
- product.setAttribute('id', productTitle);
118
- });
119
- });
120
- }
121
- render() {
122
- return (index.h(index.Host, null, index.h("div", { class: "product-list" }, index.h("slot", null)), index.h("div", { class: "no-result-wrap" }, index.h("div", { class: "no-result" }, index.h("div", null, index.h("ptc-title", { type: 'h3', "title-margin": "margin-flush", upperline: 'no-upperline', "title-size": "large" }, "No Results Found"), index.h("ptc-para", { "font-size": "x-small" }, "Try changing or removing some of your filters"), index.h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => { this.handleClick(e); } }, "Clear Filters"))))));
123
- }
124
- get hostElement() { return index.getElement(this); }
125
- };
126
- PtcProductList.style = ptcProductListCss;
127
-
128
- exports.ptc_product_list = PtcProductList;
@@ -1,130 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-88135a6b.js');
6
-
7
- const ptcProductSidebarCss = ":host{display:block;position:relative}:host .hide{display:none !important}:host .white-box{padding:12px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard)}:host .sort-wrap{display:block}@media only screen and (min-width: 480px){:host .sort-wrap{display:flex;justify-content:space-between}}@media only screen and (min-width: 992px){:host .sort-wrap{display:block}}:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small);font-weight:600}:host .filter-result-wrap .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}@media only screen and (min-width: 992px){:host .filter-result-wrap .result-header{margin-bottom:26px}}:host .filter-result-wrap .result-header .clear-cta{cursor:pointer;display:none;color:var(--color-gray-07);font-size:var(--ptc-font-size-x-small);text-decoration:underline}:host .filter-result-wrap .result-header .clear-cta.show{display:block}:host .filter-result-wrap .typeahead-input{box-sizing:border-box;margin-bottom:14px;width:100%;margin-right:0}@media only screen and (min-width: 480px){:host .filter-result-wrap .typeahead-input{margin-right:40px}}@media only screen and (min-width: 992px){:host .filter-result-wrap .typeahead-input{margin-right:0}}:host .filter-result-wrap .typeahead-input .input-wrap{position:relative}:host .filter-result-wrap .typeahead-input .input-wrap svg{position:absolute;left:8px;top:8px}:host .filter-result-wrap .typeahead-input .input-wrap input{margin-top:4px;padding:8px 8px 8px 34px;display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-gray-03);font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap{position:relative;width:100%}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions{border:1px solid var(--color-gray-03);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);background-color:var(--color-white);position:absolute;z-index:105;top:0;margin:0;width:100%;box-sizing:border-box;padding:0;max-height:400px;overflow-y:auto}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar{width:5px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li{list-style:none;padding:10px 16px;cursor:pointer;display:block;font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child{padding-top:20px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:last-child{padding-bottom:20px}:host .filter-result-wrap .dropdwon-filter{margin-bottom:10px;width:100%}:host .product-list-wrap{display:none}@media only screen and (min-width: 992px){:host .product-list-wrap{display:block}}:host .product-list-wrap .category-list{display:block;padding:12px 4px;font-size:var(--ptc-font-size-x-small)}:host .product-list-wrap .category-list ptc-para{padding-bottom:4px;display:block}:host .product-list-wrap .category-list ul{padding-left:20px;margin:0}";
8
-
9
- const PtcProductSidebar = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.selectedResult = index.createEvent(this, "selectedResult", 7);
13
- this.clearsearch = index.createEvent(this, "clearsearch", 7);
14
- this.inputChanged = index.createEvent(this, "inputChanged", 7);
15
- this.emptyResult = index.createEvent(this, "emptyResult", 7);
16
- this.searchTerm = '';
17
- this.suggestions = [];
18
- this.suggestionList = [];
19
- }
20
- componentWillLoad() {
21
- this.getDomData();
22
- }
23
- componentDidLoad() {
24
- this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
25
- this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
26
- }
27
- // Getting category title and products list
28
- getDomData() {
29
- const categoryList = document.querySelectorAll('ptc-product-category');
30
- categoryList.forEach(category => {
31
- let categoryTitle = category.getAttribute('category-title');
32
- let categoryObject = { categoryName: categoryTitle, products: [] };
33
- this.suggestionList.push(categoryObject);
34
- let productList = category.querySelectorAll('ptc-product-card');
35
- productList.forEach(product => {
36
- let productTitle = product.getAttribute('card-title');
37
- categoryObject.products.push(productTitle);
38
- });
39
- });
40
- }
41
- handleInputChange(event) {
42
- const inputElement = event.target;
43
- this.searchTerm = inputElement.value.toLocaleLowerCase();
44
- this.productListWrap.classList.add('hide');
45
- this.clearBtn.classList.add('show');
46
- this.getSuggestions();
47
- this.inputChanged.emit({
48
- 'sender': this,
49
- 'event': event,
50
- });
51
- }
52
- getSuggestions() {
53
- const searchTerm = this.searchTerm.toLowerCase();
54
- const suggestions = this.suggestionList.reduce((acc, item) => {
55
- if (item.categoryName.toLowerCase().includes(searchTerm)) {
56
- acc.push(item.categoryName); // Include the category if it matches the search term
57
- }
58
- const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
59
- if (matchedProducts.length > 0) {
60
- acc.push(...matchedProducts); // Include the matching products
61
- }
62
- return acc;
63
- }, []);
64
- this.suggestions = suggestions;
65
- }
66
- handleSelectSuggestion(suggestion, event) {
67
- this.searchTerm = suggestion;
68
- //this.serachInput.setAttribute('value', this.searchTerm);
69
- this.selectedResult.emit({
70
- 'sender': this,
71
- 'event': event,
72
- 'searchTerm': this.searchTerm
73
- });
74
- }
75
- handleKeyUp(e) {
76
- const inputElement = e.target;
77
- this.searchTerm = inputElement.value.toLocaleLowerCase();
78
- if (e.keyCode === 13 && this.suggestions.length == 0) {
79
- console.log('Enter key pressed');
80
- this.emptyResult.emit({
81
- 'sender': this,
82
- 'event': e,
83
- });
84
- }
85
- }
86
- clearSearch(event) {
87
- let input = this.hostElement.shadowRoot.querySelector('input');
88
- this.productListWrap.classList.remove('hide');
89
- this.clearBtn.classList.remove('show');
90
- if (input) {
91
- input.value = "";
92
- }
93
- this.suggestions = [];
94
- this.clearsearch.emit({
95
- 'sender': this,
96
- 'event': event,
97
- 'searchTerm': input.value
98
- });
99
- }
100
- handleDropdownTouched(event) {
101
- const { sender, isOpen } = event.detail;
102
- if (sender) {
103
- this.productListWrap.classList.add('hide');
104
- this.clearBtn.classList.add('show');
105
- if (isOpen) {
106
- let input = this.hostElement.shadowRoot.querySelector('input');
107
- if (input) {
108
- input.value = "";
109
- }
110
- }
111
- }
112
- }
113
- handleClick() {
114
- this.suggestions = [];
115
- }
116
- handleclearCtaClicked(event) {
117
- const { sender, event: mouseEvent, } = event.detail;
118
- if (sender) {
119
- this.clearSearch(mouseEvent);
120
- }
121
- }
122
- render() {
123
- return (index.h(index.Host, { class: 'search-box' }, index.h("div", { class: "filter-result-wrap white-box" }, index.h("div", { class: "result-header" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Filter Result"), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, "Filter"), index.h("div", { class: "input-wrap" }, index.h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), index.h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
124
- index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, "Technology"), index.h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), index.h("div", { class: "product-list-wrap white-box" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Jump to Product"), this.suggestionList.map((item) => (index.h("div", { class: "category-list" }, index.h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, index.h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, item.categoryName)), index.h("div", { class: "product-list" }, index.h("ul", null, item.products.map((product) => (index.h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
125
- }
126
- get hostElement() { return index.getElement(this); }
127
- };
128
- PtcProductSidebar.style = ptcProductSidebarCss;
129
-
130
- exports.ptc_product_sidebar = PtcProductSidebar;
@@ -1,42 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-8e63c32d.js';
2
-
3
- const ptcBackToTopCss = ":host{display:block}:host .back-to-top-button{position:fixed;bottom:140px;right:24px;width:64px;height:58px;border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);color:var(--color-gray-10);font-size:12px;font-weight:var(--ptc-font-weight-semibold);outline:none;cursor:pointer;transition:opacity 0.3s ease-in-out;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--ptc-shadow-small)}:host .back-to-top-button:hover{opacity:1}:host .arrow{margin-bottom:5px}";
4
-
5
- const PtcBackToTop = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.handleScroll = () => {
9
- const scrollY = window.pageYOffset || document.documentElement.scrollTop;
10
- this.showButton = scrollY > window.innerHeight * 1;
11
- };
12
- this.showButton = false;
13
- }
14
- componentDidLoad() {
15
- window.addEventListener('scroll', this.handleScroll);
16
- }
17
- disconnectedCallback() {
18
- window.removeEventListener('scroll', this.handleScroll);
19
- }
20
- handleClick() {
21
- this.scrollToTop();
22
- }
23
- scrollToTop() {
24
- if ('scrollBehavior' in document.documentElement.style) {
25
- // Smooth scrolling is supported
26
- window.scrollTo({
27
- top: 0,
28
- behavior: 'smooth',
29
- });
30
- }
31
- else {
32
- // Fallback for browsers that do not support smooth scrolling
33
- window.scrollTo(0, 0);
34
- }
35
- }
36
- render() {
37
- return (h(Host, null, this.showButton && (h("button", { class: 'back-to-top-button', title: "Back to Top" }, h("span", { class: 'arrow' }, h("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M15.5248 11.625L8.9998 5.1L2.4748 11.625L0.112305 9.2625L8.9998 0.375L17.8873 9.2625L15.5248 11.625Z", fill: "#323B42" }))), h("span", { class: 'text' }, "Back to Top")))));
38
- }
39
- };
40
- PtcBackToTop.style = ptcBackToTopCss;
41
-
42
- export { PtcBackToTop as ptc_back_to_top };
@@ -1,29 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-8e63c32d.js';
2
-
3
- const ptcProductCardCss = ":host{display:block;background-color:var(--color-white);padding-top:var(--ptc-layout-spacing-03);border-radius:var(--ptc-border-radius-standard);margin-bottom:var(--ptc-layout-spacing-03)}:host .card-wrap{display:flex;align-items:center}:host .card-wrap ptc-picture{display:none}@media only screen and (min-width: 768px){:host .card-wrap ptc-picture{display:block;margin-left:var(--ptc-element-spacing-06);min-width:38px;max-width:38px}}:host .card-wrap .content{padding:0 38px 24px 38px}@media only screen and (min-width: 768px){:host .card-wrap .content{padding:0 44px 24px 44px}}@media only screen and (min-width: 1200px){:host .card-wrap .content{display:flex;align-items:center}}:host .card-wrap .content .cta-wrap{margin-left:0;margin-top:24px}@media only screen and (min-width: 1200px){:host .card-wrap .content .cta-wrap{margin-top:0px;margin-left:44px}}:host .toggle-btn{padding:16px;text-align:center;border-top:1px solid var(--color-gray-04);display:block;cursor:pointer}:host .toggle-btn svg{margin-right:var(--ptc-element-spacing-03);vertical-align:middle;margin-top:-2px}:host .product-highlights-container{padding:0px 20px 16px 20px}";
4
-
5
- const PtcProductCard = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.isOpenProductHighlight = createEvent(this, "isOpenProductHighlight", 7);
9
- this.cardTitle = undefined;
10
- this.cardImage = undefined;
11
- this.cardImageAltText = undefined;
12
- this.cardDescription = undefined;
13
- this.cardCtaText = undefined;
14
- this.toggleCtaTitle = undefined;
15
- this.isOpen = false;
16
- this.isSlotEmpty = undefined;
17
- }
18
- togglePanel() {
19
- this.isOpen = !this.isOpen;
20
- }
21
- render() {
22
- return (h(Host, null, h("div", { class: "card-wrap" }, h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: '38' }), h("div", { class: "content" }, h("div", null, h("ptc-title", { type: 'h3', upperline: "no-upperline", "title-size": "medium", "title-weight": "w-8", "title-height": "densest", "title-margin": 'margin-flush' }, h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-z-index": "z-auto" }, h("ptc-tooltip", { "text-display": "block", "text-lines": "16", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))), h("div", { class: 'cta-wrap' }, h("slot", { name: "cta" })))), this.toggleCtaTitle &&
23
- h("ptc-para", { class: "toggle-btn", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel() }, h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "18", height: "18", rx: "4", fill: "#00890B" }), this.isOpen ? (h("g", { "clip-path": "url(#clip0_187_1609)" }, h("path", { d: "M4.86365 7.98779V10.0128H14.3824V7.98779H4.86365Z", fill: "white" }))) : (h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.953 4.23535H8.04712V8.04712H4.23535V9.953H8.04712V13.7648H9.953V9.953H13.7648V8.04712H9.953V4.23535Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_187_1609" }, h("rect", { width: "9.51872", height: "9.52941", fill: "white", transform: "translate(4.86365 4.23535)" })))), h("span", null, this.toggleCtaTitle)), this.isOpen && (h("div", { class: 'product-highlights-container' }, h("slot", null)))));
24
- }
25
- get hostElement() { return getElement(this); }
26
- };
27
- PtcProductCard.style = ptcProductCardCss;
28
-
29
- export { PtcProductCard as ptc_product_card };