@ptcwebops/ptcw-design 3.1.6 → 3.1.8
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/embedded-form_9.cjs.entry.js +2 -0
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +11 -2
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +7 -0
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +10 -1
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +5 -0
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +2 -0
- package/dist/collection/stories/Link.stories.js +6 -0
- package/dist/collection/stories/design-tokens/color/Color.stories.js +96 -0
- package/dist/collection/stories/design-tokens/color/Temp.stories.js +98 -0
- package/dist/collection/stories/design-tokens/containers/About.stories.js +19 -0
- package/dist/collection/stories/design-tokens/elevations/About.stories.js +68 -0
- package/dist/collection/stories/design-tokens/grid/About.stories.js +22 -0
- package/dist/collection/stories/design-tokens/motion/About.stories.js +13 -0
- package/dist/collection/stories/design-tokens/shape/About.stories.js +69 -0
- package/dist/collection/stories/design-tokens/space/About.stories.js +128 -0
- package/dist/collection/stories/design-tokens/typography/About.stories.js +20 -0
- package/dist/custom-elements/index.js +14 -3
- package/dist/esm/embedded-form_9.entry.js +2 -0
- package/dist/esm/ptc-filter-dropdown_4.entry.js +11 -2
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- package/dist/ptcw-design/{p-d5c6c695.entry.js → p-31859f44.entry.js} +1 -1
- package/dist/ptcw-design/{p-e0b63e3d.entry.js → p-886999a8.entry.js} +1 -1
- package/dist/ptcw-design/p-ac566e05.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +2 -0
- package/package.json +2 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-744b640e.entry.js +0 -1
|
@@ -11749,6 +11749,8 @@ const PtcTextfield = class {
|
|
|
11749
11749
|
if (this.el.classList.contains('invalid-field')) {
|
|
11750
11750
|
this.el.classList.remove('invalid-field');
|
|
11751
11751
|
}
|
|
11752
|
+
this.inputValue = this.iti.getNumber();
|
|
11753
|
+
// console.log('sending phone number: ' + this.inputValue);
|
|
11752
11754
|
}
|
|
11753
11755
|
else if (!this.iti.isValidNumber()) {
|
|
11754
11756
|
if (!this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd9a1b1a.js');
|
|
6
6
|
|
|
7
|
-
const ptcFilterDropdownCss = ":host{display:block;box-sizing:border-box}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;font-size:16px;color:var(--color-gray-10)}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-05);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:34px;border-radius:4px}:host .dropdown .caret{display:inline-block;vertical-align:middle;margin-left:5px}:host .dropdown .dropdown-menu{position:absolute;top:100%;left:0;left:0;border:1px solid var(--color-gray-03);background-color:var(--color-white);overflow-y:auto;width:100%;border-radius:4px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.25);display:flex;flex-direction:column;margin-top:8px;min-width:278px;overflow:hidden;position:absolute;transition:max-height 0.25s ease-out;z-index:2000;max-height:1000px}:host .dropdown .dropdown-menu .filter-list{padding:24px 24px 16px 24px;margin:0;list-style:none;border-bottom:1px solid var(--color-gray-02)}:host .dropdown .dropdown-menu .filter-btns{display:flex;justify-content:space-between;align-items:center;padding:16px 24px}:host .dropdown .dropdown-menu .filter-btns .clear-btn{cursor:pointer}:host .dropdown .dropdown-menu .filter-btns .clear-btn:hover{text-decoration:underline}:host .dropdown::-webkit-scrollbar{width:5px}:host .dropdown::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .radio-label{margin-bottom:16px;font-size:16px;font-weight:500;cursor:pointer;display:block;font-weight:500;position:relative;user-select:none;line-height:1.5;display:flex;align-items:baseline;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}:host .radio-label input{margin-right:10px}:host .radio-label .checkmark{width:20px;height:20px;background-color:#fff;border:1px solid #1f2024;border-radius:0.4rem;margin-right:8px;position:absolute;left:0;top:0}:host .radio-label .checkmark::after{background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"10\" viewBox=\"0 0 14 10\" fill=\"none\"><path d=\"M1.5 4L5.5 8L12.5 1\" stroke=\"white\" stroke-width=\"2\"/></svg>');background-position:50%;background-repeat:no-repeat;background-size:75% 100%;content:\"\";height:20px;width:20px;position:absolute;left:0;top:0;display:none}";
|
|
7
|
+
const ptcFilterDropdownCss = ":host{display:block;box-sizing:border-box}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;font-size:16px;color:var(--color-gray-10)}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-05);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:34px;border-radius:4px}:host .dropdown .dropdown-toggle .dropdown-placeholder{display:flex}:host .dropdown .dropdown-toggle .dropdown-placeholder .dropdown-filter-name{padding-left:10px;padding-right:5px}:host .dropdown .caret{display:inline-block;vertical-align:middle;margin-left:5px}:host .dropdown .dropdown-menu{position:absolute;top:100%;left:0;left:0;border:1px solid var(--color-gray-03);background-color:var(--color-white);overflow-y:auto;width:100%;border-radius:4px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.25);display:flex;flex-direction:column;margin-top:8px;min-width:278px;overflow:hidden;position:absolute;transition:max-height 0.25s ease-out;z-index:2000;max-height:1000px}:host .dropdown .dropdown-menu .filter-list{padding:24px 24px 16px 24px;margin:0;list-style:none;border-bottom:1px solid var(--color-gray-02)}:host .dropdown .dropdown-menu .filter-btns{display:flex;justify-content:space-between;align-items:center;padding:16px 24px}:host .dropdown .dropdown-menu .filter-btns .clear-btn{cursor:pointer}:host .dropdown .dropdown-menu .filter-btns .clear-btn:hover{text-decoration:underline}:host .dropdown::-webkit-scrollbar{width:5px}:host .dropdown::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .radio-label{margin-bottom:16px;font-size:16px;font-weight:500;cursor:pointer;display:block;font-weight:500;position:relative;user-select:none;line-height:1.5;display:flex;align-items:baseline;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}:host .radio-label input{margin-right:10px}:host .radio-label .checkmark{width:20px;height:20px;background-color:#fff;border:1px solid #1f2024;border-radius:0.4rem;margin-right:8px;position:absolute;left:0;top:0}:host .radio-label .checkmark::after{background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"10\" viewBox=\"0 0 14 10\" fill=\"none\"><path d=\"M1.5 4L5.5 8L12.5 1\" stroke=\"white\" stroke-width=\"2\"/></svg>');background-position:50%;background-repeat:no-repeat;background-size:75% 100%;content:\"\";height:20px;width:20px;position:absolute;left:0;top:0;display:none}";
|
|
8
8
|
|
|
9
9
|
const PtcFilterDropdown = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -16,6 +16,9 @@ const PtcFilterDropdown = class {
|
|
|
16
16
|
this.selectedTag = undefined;
|
|
17
17
|
this.isOpen = false;
|
|
18
18
|
}
|
|
19
|
+
componentDidLoad() {
|
|
20
|
+
this.dropdownPlaceholder = this.hostElement.shadowRoot.querySelector('.dropdown-placeholder .dropdown-filter-name');
|
|
21
|
+
}
|
|
19
22
|
parseOptions() {
|
|
20
23
|
let options = Array.from(this.hostElement.querySelectorAll('span'));
|
|
21
24
|
if (options) {
|
|
@@ -39,6 +42,9 @@ const PtcFilterDropdown = class {
|
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
//this.emitSelectedOptions();
|
|
45
|
+
if (this.dropdownPlaceholder) {
|
|
46
|
+
this.dropdownPlaceholder.textContent = this.placeholder;
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
emitSelectedOptions() {
|
|
44
50
|
// debugger
|
|
@@ -57,12 +63,15 @@ const PtcFilterDropdown = class {
|
|
|
57
63
|
selectedOptions: this.selectedOptions,
|
|
58
64
|
});
|
|
59
65
|
this.toggleDropdown();
|
|
66
|
+
if (this.dropdownPlaceholder) {
|
|
67
|
+
this.dropdownPlaceholder.textContent = this.selectedOptions[0].value;
|
|
68
|
+
}
|
|
60
69
|
}
|
|
61
70
|
componentWillRender() {
|
|
62
71
|
this.parseOptions();
|
|
63
72
|
}
|
|
64
73
|
render() {
|
|
65
|
-
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" }, index.h("strong", null, "Filter: "), this.placeholder), index.h("span", { class: "caret" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "7", viewBox: "0 0 12 7", fill: "none" }, index.h("path", { d: "M10.2426 1.24264L6 5.48528L1.75736 1.24264", stroke: "#20262A", "stroke-width": "2", "stroke-linecap": "round" })))), this.isOpen && (index.h("div", { class: "dropdown-menu" }, index.h("ul", { class: "filter-list" }, this.internalOptions.map((option) => (index.h("li", { key: option.tabId }, index.h("label", { class: "radio-label", htmlFor: option.value.replace(/\s+/g, '') }, index.h("input", { type: "radio", id: option.value.replace(/\s+/g, ''), name: "theater-filter", value: option.value, checked: this.selectedOptions.some((item) => item.value === option.value), "tab-id": option.tabId, "tag-name": option.tagName }), option.value))))), index.h("div", { class: "filter-btns" }, index.h("span", { class: "clear-btn", onClick: () => this.clearFilter() }, "Clear"), index.h("ptc-button", { type: "link", color: "ptc-secondary", onClick: () => this.emitSelectedOptions(), styles: ' a span { font-size: 16px !important; } a{ padding: 10px 16px !important; }' }, "Apply"))))), index.h("div", { class: "hidden" }, index.h("slot", null))));
|
|
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" }, index.h("strong", null, "Filter: "), index.h("span", { class: "dropdown-filter-name" }, this.placeholder)), index.h("span", { class: "caret" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "7", viewBox: "0 0 12 7", fill: "none" }, index.h("path", { d: "M10.2426 1.24264L6 5.48528L1.75736 1.24264", stroke: "#20262A", "stroke-width": "2", "stroke-linecap": "round" })))), this.isOpen && (index.h("div", { class: "dropdown-menu" }, index.h("ul", { class: "filter-list" }, this.internalOptions.map((option) => (index.h("li", { key: option.tabId }, index.h("label", { class: "radio-label", htmlFor: option.value.replace(/\s+/g, '') }, index.h("input", { type: "radio", id: option.value.replace(/\s+/g, ''), name: "theater-filter", value: option.value, checked: this.selectedOptions.some((item) => item.value === option.value), "tab-id": option.tabId, "tag-name": option.tagName }), option.value))))), index.h("div", { class: "filter-btns" }, index.h("span", { class: "clear-btn", onClick: () => this.clearFilter() }, "Clear"), index.h("ptc-button", { type: "link", color: "ptc-secondary", onClick: () => this.emitSelectedOptions(), styles: ' a span { font-size: 16px !important; } a{ padding: 10px 16px !important; }' }, "Apply"))))), index.h("div", { class: "hidden" }, index.h("slot", null))));
|
|
66
75
|
}
|
|
67
76
|
get hostElement() { return index.getElement(this); }
|
|
68
77
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd9a1b1a.js');
|
|
6
6
|
|
|
7
|
-
const ptcFilterLevelTheaterCss = ".ptc-container.sc-ptc-filter-level-theater{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container.sc-ptc-filter-level-theater{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container.sc-ptc-filter-level-theater{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg.sc-ptc-filter-level-theater{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid.sc-ptc-filter-level-theater{width:100%}a.sc-ptc-filter-level-theater{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-blue-07);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a.sc-ptc-filter-level-theater:visited{color:var(--color-blue-10)}a.sc-ptc-filter-level-theater:active,a.sc-ptc-filter-level-theater:visited:active{color:var(--color-blue-09)}a.sc-ptc-filter-level-theater:hover,a.sc-ptc-filter-level-theater:visited:hover{color:var(--color-blue-08)}a.disabled.sc-ptc-filter-level-theater{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater{color:var(--color-blue-04)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited{color:var(--color-blue-06)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:active,.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:active,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:active,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:active,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:active,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:active,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:active,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:active,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:active,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:active,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:active,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:active{color:var(--color-blue-07)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:hover,.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:hover,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:hover,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:hover,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:hover,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:hover,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:hover,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:hover,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:hover,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:hover,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:hover,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:hover{color:var(--color-blue-05)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).disabled.sc-ptc-filter-level-theater,.light-links.sc-ptc-filter-level-theater a.light-link.disabled.sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).disabled.sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.light-link.disabled.sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).disabled.sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.disabled.sc-ptc-filter-level-theater{color:var(--color-gray-04) !important;cursor:not-allowed}.ptc-link.sc-ptc-filter-level-theater{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link.sc-ptc-filter-level-theater:hover{color:var(--color-green-06)}.ptc-link.sc-ptc-filter-level-theater:visited{color:var(--color-gray-10)}.ptc-link.sc-ptc-filter-level-theater:active,.ptc-link.sc-ptc-filter-level-theater:visited:active{color:var(--color-green-06)}.ptc-link.sc-ptc-filter-level-theater:hover,.ptc-link.sc-ptc-filter-level-theater:visited:hover{color:var(--color-green-06)}.ptc-link-dark.sc-ptc-filter-level-theater{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark.sc-ptc-filter-level-theater:hover{color:var(--color-green-06)}.ptc-link-dark.sc-ptc-filter-level-theater:visited{color:var(--color-white)}.ptc-link-dark.sc-ptc-filter-level-theater:active,.ptc-link-dark.sc-ptc-filter-level-theater:visited:active{color:var(--color-green-06)}.ptc-link-dark.sc-ptc-filter-level-theater:hover,.ptc-link-dark.sc-ptc-filter-level-theater:visited:hover{color:var(--color-green-06)}.sc-ptc-filter-level-theater-h{display:block;position:relative;background-color:var(--color-gray-12);color:var(--color-white);box-sizing:border-box}.sc-ptc-filter-level-theater-h .filter-section.sc-ptc-filter-level-theater{max-width:400px}.sc-ptc-filter-level-theater-h .filter-section.sc-ptc-filter-level-theater ptc-product-dropdown.sc-ptc-filter-level-theater{color:var(--color-gray-10)}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;z-index:0;overflow-x:hidden}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater .flt-bg-img.sc-ptc-filter-level-theater{width:100%;height:100%;display:none;position:absolute;right:-100%;animation:slide 0.5s forwards;animation-delay:2s}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater .flt-bg-img.active-tab.sc-ptc-filter-level-theater{display:block;animation:slide 0.5s forwards;animation-delay:0.1s}@-webkit-keyframes slide{100%{right:0}}@keyframes slide{100%{right:0}}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater .bg-img-overlay.sc-ptc-filter-level-theater{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(40, 47, 53, 0.7)}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater{padding-top:44px;padding-bottom:44px;position:relative}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .filter-section.sc-ptc-filter-level-theater{padding-bottom:36px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater{width:100%}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater{display:flex;justify-content:space-between}}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater{order:1;max-width:700px;padding-right:24px}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.sc-ptc-filter-level-theater{display:none}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.sc-ptc-filter-level-theater p.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.sc-ptc-filter-level-theater ul.sc-ptc-filter-level-theater li.sc-ptc-filter-level-theater{font-size:18px;line-height:1.5;color:var(--color-white)}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.active-tab.sc-ptc-filter-level-theater{display:block}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater{margin-bottom:32px}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater{order:2;max-width:304px;margin-bottom:0}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater{min-width:223px;display:flex;overflow-x:auto;align-items:center;padding-bottom:24px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater::-webkit-scrollbar{height:3px;border-radius:4px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater::-webkit-scrollbar-track{background-color:#3E4A52;border-radius:4px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater::-webkit-scrollbar-thumb{background-color:#819099;border-radius:4px}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater{display:block;overflow-x:hidden;padding-bottom:0}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater ptc-button.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater{max-width:304px;min-width:223px;margin-right:24px;margin-bottom:0}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater ptc-button.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater{min-width:auto;margin-bottom:24px;margin-right:0}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater{border-radius:4px;box-sizing:border-box;border:2px solid #33A13C;padding:16px 24px;background-color:#323B42;cursor:pointer}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.active-box.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater:hover{border-color:#C37729;background-color:#20262A}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater ptc-button.sc-ptc-filter-level-theater{width:100%;display:block}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater{border-radius:4px;padding:12px;text-align:center;background:#BEC6CA;box-sizing:border-box}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater ptc-social-share.sc-ptc-filter-level-theater{margin-right:24px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater ptc-social-share.sc-ptc-filter-level-theater:last-child{margin-right:0}.sc-ptc-filter-level-theater-h ptc-theater-video-playlist.sc-ptc-filter-level-theater{padding-top:26px;clear:both}.sc-ptc-filter-level-theater-h ptc-theater-video-playlist.sc-ptc-filter-level-theater ptc-theater-video.sc-ptc-filter-level-theater{margin-right:32px;display:inline-block;margin-bottom:28px}@media only screen and (min-width: 1200px){.sc-ptc-filter-level-theater-h ptc-theater-video-playlist.sc-ptc-filter-level-theater ptc-theater-video.sc-ptc-filter-level-theater{margin-right:40px}}.sc-ptc-filter-level-theater-h p.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h ul.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h li.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h ptc-title.sc-ptc-filter-level-theater .sc-ptc-title.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h span.sc-ptc-filter-level-theater{word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}a.sc-ptc-filter-level-theater{font-family:\"Raleway\", sans-serif;font-style:normal;text-decoration-line:underline;color:#197BC0;transition:color 250ms cubic-bezier(0, 0, 0.58, 1);font-weight:700}a.sc-ptc-filter-level-theater:visited{color:#0D3E62}a.sc-ptc-filter-level-theater:active,a.sc-ptc-filter-level-theater:visited:active{color:#104E7B}a.sc-ptc-filter-level-theater:hover,a.sc-ptc-filter-level-theater:visited:hover{color:#14629A}a.disabled.sc-ptc-filter-level-theater{color:#AEB8BD !important;cursor:not-allowed}";
|
|
7
|
+
const ptcFilterLevelTheaterCss = ".ptc-container.sc-ptc-filter-level-theater{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container.sc-ptc-filter-level-theater{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container.sc-ptc-filter-level-theater{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg.sc-ptc-filter-level-theater{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg.sc-ptc-filter-level-theater{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid.sc-ptc-filter-level-theater{width:100%}a.sc-ptc-filter-level-theater{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-blue-07);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a.sc-ptc-filter-level-theater:visited{color:var(--color-blue-10)}a.sc-ptc-filter-level-theater:active,a.sc-ptc-filter-level-theater:visited:active{color:var(--color-blue-09)}a.sc-ptc-filter-level-theater:hover,a.sc-ptc-filter-level-theater:visited:hover{color:var(--color-blue-08)}a.disabled.sc-ptc-filter-level-theater{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater{color:var(--color-blue-04)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited{color:var(--color-blue-06)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:active,.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:active,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:active,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:active,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:active,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:active,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:active,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:active,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:active,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:active,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:active,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:active{color:var(--color-blue-07)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:hover,.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:hover,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:hover,.light-links.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:hover,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:hover,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:hover,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:hover,.background-grey-10.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:hover,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:hover,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).sc-ptc-filter-level-theater:visited:hover,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:hover,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.sc-ptc-filter-level-theater:visited:hover{color:var(--color-blue-05)}.light-links.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).disabled.sc-ptc-filter-level-theater,.light-links.sc-ptc-filter-level-theater a.light-link.disabled.sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).disabled.sc-ptc-filter-level-theater,.background-grey-10.sc-ptc-filter-level-theater a.light-link.disabled.sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.sc-ptc-filter-level-theater:not(.hero-footer-form-wrapper a).disabled.sc-ptc-filter-level-theater,.background-plm-grey.sc-ptc-filter-level-theater a.light-link.disabled.sc-ptc-filter-level-theater{color:var(--color-gray-04) !important;cursor:not-allowed}.ptc-link.sc-ptc-filter-level-theater{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link.sc-ptc-filter-level-theater:hover{color:var(--color-green-06)}.ptc-link.sc-ptc-filter-level-theater:visited{color:var(--color-gray-10)}.ptc-link.sc-ptc-filter-level-theater:active,.ptc-link.sc-ptc-filter-level-theater:visited:active{color:var(--color-green-06)}.ptc-link.sc-ptc-filter-level-theater:hover,.ptc-link.sc-ptc-filter-level-theater:visited:hover{color:var(--color-green-06)}.ptc-link-dark.sc-ptc-filter-level-theater{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark.sc-ptc-filter-level-theater:hover{color:var(--color-green-06)}.ptc-link-dark.sc-ptc-filter-level-theater:visited{color:var(--color-white)}.ptc-link-dark.sc-ptc-filter-level-theater:active,.ptc-link-dark.sc-ptc-filter-level-theater:visited:active{color:var(--color-green-06)}.ptc-link-dark.sc-ptc-filter-level-theater:hover,.ptc-link-dark.sc-ptc-filter-level-theater:visited:hover{color:var(--color-green-06)}.sc-ptc-filter-level-theater-h{display:block;position:relative;background-color:var(--color-gray-12);color:var(--color-white);box-sizing:border-box}.sc-ptc-filter-level-theater-h .filter-section.sc-ptc-filter-level-theater{max-width:400px}@media only screen and (min-width: 992px){.sc-ptc-filter-level-theater-h .filter-section.sc-ptc-filter-level-theater{max-width:600px}}.sc-ptc-filter-level-theater-h .filter-section.sc-ptc-filter-level-theater ptc-product-dropdown.sc-ptc-filter-level-theater{color:var(--color-gray-10)}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;z-index:0;overflow-x:hidden}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater .flt-bg-img.sc-ptc-filter-level-theater{width:100%;height:100%;display:none;position:absolute;right:-100%;animation:slide 0.5s forwards;animation-delay:2s}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater .flt-bg-img.active-tab.sc-ptc-filter-level-theater{display:block;animation:slide 0.5s forwards;animation-delay:0.1s}@-webkit-keyframes slide{100%{right:0}}@keyframes slide{100%{right:0}}.sc-ptc-filter-level-theater-h .flt-bg-image-wrapper.sc-ptc-filter-level-theater .bg-img-overlay.sc-ptc-filter-level-theater{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(40, 47, 53, 0.7)}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater{padding-top:44px;padding-bottom:44px;position:relative}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .filter-section.sc-ptc-filter-level-theater{padding-bottom:36px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater{width:100%}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater{display:flex;justify-content:space-between}}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater{order:1;max-width:700px;padding-right:24px}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.sc-ptc-filter-level-theater{display:none}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.sc-ptc-filter-level-theater p.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.sc-ptc-filter-level-theater ul.sc-ptc-filter-level-theater li.sc-ptc-filter-level-theater{font-size:18px;line-height:1.5;color:var(--color-white)}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-content-wrap.sc-ptc-filter-level-theater .flt-content.active-tab.sc-ptc-filter-level-theater{display:block}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater{margin-bottom:32px}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater{order:2;max-width:304px;margin-bottom:0}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater{min-width:223px;display:flex;overflow-x:auto;align-items:center;padding-bottom:24px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater::-webkit-scrollbar{height:3px;border-radius:4px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater::-webkit-scrollbar-track{background-color:#3E4A52;border-radius:4px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater::-webkit-scrollbar-thumb{background-color:#819099;border-radius:4px}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater{display:block;overflow-x:hidden;padding-bottom:0}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater ptc-button.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater{max-width:304px;min-width:223px;margin-right:24px;margin-bottom:0}@media only screen and (min-width: 768px){.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater ptc-button.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater{min-width:auto;margin-bottom:24px;margin-right:0}}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater{border-radius:4px;box-sizing:border-box;border:2px solid #33A13C;padding:16px 24px;background-color:#323B42;cursor:pointer}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.active-box.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .tab-box.sc-ptc-filter-level-theater:hover{border-color:#C37729;background-color:#20262A}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater ptc-button.sc-ptc-filter-level-theater{width:100%;display:block}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater{border-radius:4px;padding:12px;text-align:center;background:#BEC6CA;box-sizing:border-box}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater ptc-social-share.sc-ptc-filter-level-theater{margin-right:24px}.sc-ptc-filter-level-theater-h .flt-wrapper.sc-ptc-filter-level-theater .content-tab-wrapper.sc-ptc-filter-level-theater .flt-tab-wrapper.sc-ptc-filter-level-theater .tab-list.sc-ptc-filter-level-theater .flt-social-icon-list.sc-ptc-filter-level-theater ptc-social-share.sc-ptc-filter-level-theater:last-child{margin-right:0}.sc-ptc-filter-level-theater-h ptc-theater-video-playlist.sc-ptc-filter-level-theater{padding-top:26px;clear:both}.sc-ptc-filter-level-theater-h ptc-theater-video-playlist.sc-ptc-filter-level-theater ptc-theater-video.sc-ptc-filter-level-theater{margin-right:32px;display:inline-block;margin-bottom:28px}@media only screen and (min-width: 1200px){.sc-ptc-filter-level-theater-h ptc-theater-video-playlist.sc-ptc-filter-level-theater ptc-theater-video.sc-ptc-filter-level-theater{margin-right:40px}}.sc-ptc-filter-level-theater-h p.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h ul.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h li.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h ptc-title.sc-ptc-filter-level-theater .sc-ptc-title.sc-ptc-filter-level-theater,.sc-ptc-filter-level-theater-h span.sc-ptc-filter-level-theater{word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}a.sc-ptc-filter-level-theater{font-family:\"Raleway\", sans-serif;font-style:normal;text-decoration-line:underline;color:#197BC0;transition:color 250ms cubic-bezier(0, 0, 0.58, 1);font-weight:700}a.sc-ptc-filter-level-theater:visited{color:#0D3E62}a.sc-ptc-filter-level-theater:active,a.sc-ptc-filter-level-theater:visited:active{color:#104E7B}a.sc-ptc-filter-level-theater:hover,a.sc-ptc-filter-level-theater:visited:hover{color:#14629A}a.disabled.sc-ptc-filter-level-theater{color:#AEB8BD !important;cursor:not-allowed}";
|
|
8
8
|
|
|
9
9
|
const PtcFilterLevelTheater = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -22,6 +22,13 @@
|
|
|
22
22
|
min-height: 34px;
|
|
23
23
|
border-radius: 4px;
|
|
24
24
|
}
|
|
25
|
+
:host .dropdown .dropdown-toggle .dropdown-placeholder {
|
|
26
|
+
display: flex;
|
|
27
|
+
}
|
|
28
|
+
:host .dropdown .dropdown-toggle .dropdown-placeholder .dropdown-filter-name {
|
|
29
|
+
padding-left: 10px;
|
|
30
|
+
padding-right: 5px;
|
|
31
|
+
}
|
|
25
32
|
:host .dropdown .caret {
|
|
26
33
|
display: inline-block;
|
|
27
34
|
vertical-align: middle;
|
|
@@ -7,6 +7,9 @@ export class PtcFilterDropdown {
|
|
|
7
7
|
this.selectedTag = undefined;
|
|
8
8
|
this.isOpen = false;
|
|
9
9
|
}
|
|
10
|
+
componentDidLoad() {
|
|
11
|
+
this.dropdownPlaceholder = this.hostElement.shadowRoot.querySelector('.dropdown-placeholder .dropdown-filter-name');
|
|
12
|
+
}
|
|
10
13
|
parseOptions() {
|
|
11
14
|
let options = Array.from(this.hostElement.querySelectorAll('span'));
|
|
12
15
|
if (options) {
|
|
@@ -30,6 +33,9 @@ export class PtcFilterDropdown {
|
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
35
|
//this.emitSelectedOptions();
|
|
36
|
+
if (this.dropdownPlaceholder) {
|
|
37
|
+
this.dropdownPlaceholder.textContent = this.placeholder;
|
|
38
|
+
}
|
|
33
39
|
}
|
|
34
40
|
emitSelectedOptions() {
|
|
35
41
|
// debugger
|
|
@@ -48,12 +54,15 @@ export class PtcFilterDropdown {
|
|
|
48
54
|
selectedOptions: this.selectedOptions,
|
|
49
55
|
});
|
|
50
56
|
this.toggleDropdown();
|
|
57
|
+
if (this.dropdownPlaceholder) {
|
|
58
|
+
this.dropdownPlaceholder.textContent = this.selectedOptions[0].value;
|
|
59
|
+
}
|
|
51
60
|
}
|
|
52
61
|
componentWillRender() {
|
|
53
62
|
this.parseOptions();
|
|
54
63
|
}
|
|
55
64
|
render() {
|
|
56
|
-
return (h(Host, null, h("div", { class: "dropdown" }, h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, h("span", { class: "dropdown-placeholder" }, h("strong", null, "Filter: "), this.placeholder), h("span", { class: "caret" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "7", viewBox: "0 0 12 7", fill: "none" }, h("path", { d: "M10.2426 1.24264L6 5.48528L1.75736 1.24264", stroke: "#20262A", "stroke-width": "2", "stroke-linecap": "round" })))), this.isOpen && (h("div", { class: "dropdown-menu" }, h("ul", { class: "filter-list" }, this.internalOptions.map((option) => (h("li", { key: option.tabId }, h("label", { class: "radio-label", htmlFor: option.value.replace(/\s+/g, '') }, h("input", { type: "radio", id: option.value.replace(/\s+/g, ''), name: "theater-filter", value: option.value, checked: this.selectedOptions.some((item) => item.value === option.value), "tab-id": option.tabId, "tag-name": option.tagName }), option.value))))), h("div", { class: "filter-btns" }, h("span", { class: "clear-btn", onClick: () => this.clearFilter() }, "Clear"), h("ptc-button", { type: "link", color: "ptc-secondary", onClick: () => this.emitSelectedOptions(), styles: ' a span { font-size: 16px !important; } a{ padding: 10px 16px !important; }' }, "Apply"))))), h("div", { class: "hidden" }, h("slot", null))));
|
|
65
|
+
return (h(Host, null, h("div", { class: "dropdown" }, h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, h("span", { class: "dropdown-placeholder" }, h("strong", null, "Filter: "), h("span", { class: "dropdown-filter-name" }, this.placeholder)), h("span", { class: "caret" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "7", viewBox: "0 0 12 7", fill: "none" }, h("path", { d: "M10.2426 1.24264L6 5.48528L1.75736 1.24264", stroke: "#20262A", "stroke-width": "2", "stroke-linecap": "round" })))), this.isOpen && (h("div", { class: "dropdown-menu" }, h("ul", { class: "filter-list" }, this.internalOptions.map((option) => (h("li", { key: option.tabId }, h("label", { class: "radio-label", htmlFor: option.value.replace(/\s+/g, '') }, h("input", { type: "radio", id: option.value.replace(/\s+/g, ''), name: "theater-filter", value: option.value, checked: this.selectedOptions.some((item) => item.value === option.value), "tab-id": option.tabId, "tag-name": option.tagName }), option.value))))), h("div", { class: "filter-btns" }, h("span", { class: "clear-btn", onClick: () => this.clearFilter() }, "Clear"), h("ptc-button", { type: "link", color: "ptc-secondary", onClick: () => this.emitSelectedOptions(), styles: ' a span { font-size: 16px !important; } a{ padding: 10px 16px !important; }' }, "Apply"))))), h("div", { class: "hidden" }, h("slot", null))));
|
|
57
66
|
}
|
|
58
67
|
static get is() { return "ptc-filter-dropdown"; }
|
|
59
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -146,6 +146,11 @@ a.disabled {
|
|
|
146
146
|
:host .filter-section {
|
|
147
147
|
max-width: 400px;
|
|
148
148
|
}
|
|
149
|
+
@media only screen and (min-width: 992px) {
|
|
150
|
+
:host .filter-section {
|
|
151
|
+
max-width: 600px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
149
154
|
:host .filter-section ptc-product-dropdown {
|
|
150
155
|
color: var(--color-gray-10);
|
|
151
156
|
}
|
|
@@ -94,6 +94,8 @@ export class PtcTextfield {
|
|
|
94
94
|
if (this.el.classList.contains('invalid-field')) {
|
|
95
95
|
this.el.classList.remove('invalid-field');
|
|
96
96
|
}
|
|
97
|
+
this.inputValue = this.iti.getNumber();
|
|
98
|
+
// console.log('sending phone number: ' + this.inputValue);
|
|
97
99
|
}
|
|
98
100
|
else if (!this.iti.isValidNumber()) {
|
|
99
101
|
if (!this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
|
|
@@ -3,6 +3,12 @@ import { html } from 'lit';
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Atoms/ptc-link',
|
|
5
5
|
tags: ['autodocs'],
|
|
6
|
+
parameters: {
|
|
7
|
+
design: {
|
|
8
|
+
type: "figma",
|
|
9
|
+
url: "https://www.figma.com/file/vN5aEOCLun1QmatmlVBeX0/PTC.com-UX-Library?type=design&node-id=1802%3A62&mode=design&t=e6dLB5mUTCuEu23J-1",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
6
12
|
argTypes: {
|
|
7
13
|
disabled: {
|
|
8
14
|
control: 'boolean',
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import colors from "./colors.json";
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Design Tokens/Color',
|
|
6
|
+
parameters: {
|
|
7
|
+
design: {
|
|
8
|
+
type: "figma",
|
|
9
|
+
url: "https://www.figma.com/file/vN5aEOCLun1QmatmlVBeX0/PTC.com-UX-Library?type=design&node-id=1718%3A247&mode=design&t=3CAodvJ7V1gNzCOU-1",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const About = {
|
|
17
|
+
render: () => {
|
|
18
|
+
const colorPicker = document.createElement('div');
|
|
19
|
+
|
|
20
|
+
const colorBaseSelect = document.createElement('section');
|
|
21
|
+
const select = document.createElement('select');
|
|
22
|
+
select.id = "color-base";
|
|
23
|
+
const colorBases = Object.keys(colors);
|
|
24
|
+
for (let color of colorBases) {
|
|
25
|
+
select.insertAdjacentHTML(
|
|
26
|
+
'beforeend',
|
|
27
|
+
`<option value="${color}">${color}</option>`
|
|
28
|
+
)
|
|
29
|
+
};
|
|
30
|
+
colorBaseSelect.insertAdjacentHTML('beforeend', '<label>Color</label>');
|
|
31
|
+
colorBaseSelect.insertAdjacentElement('beforeend', select);
|
|
32
|
+
|
|
33
|
+
const colorVariantInput = document.createElement('section');
|
|
34
|
+
const input = document.createElement('input');
|
|
35
|
+
input.id = "color-variant";
|
|
36
|
+
input.type = "number";
|
|
37
|
+
input.value = 7;
|
|
38
|
+
input.min = 1;
|
|
39
|
+
input.max = 12;
|
|
40
|
+
colorVariantInput.insertAdjacentHTML('beforeend', '<label>Variant</label>');
|
|
41
|
+
colorVariantInput.insertAdjacentElement('beforeend', input);
|
|
42
|
+
|
|
43
|
+
const colorBlock = document.createElement('section');
|
|
44
|
+
colorBlock.id = "color-block";
|
|
45
|
+
colorBlock.style.background = "#00890B";
|
|
46
|
+
colorBlock.style.marginBottom = "50px";
|
|
47
|
+
colorBlock.value = "--color-green-07";
|
|
48
|
+
|
|
49
|
+
const colorVariable = document.createElement('section');
|
|
50
|
+
colorVariable.insertAdjacentHTML('beforeend', "<label>Variable</label>");
|
|
51
|
+
colorVariable.insertAdjacentHTML('beforeend', "<code id='color-variable'>--color-green-07</code>");
|
|
52
|
+
|
|
53
|
+
const colorHexCode = document.createElement('section');
|
|
54
|
+
colorHexCode.insertAdjacentHTML('beforeend', "<label>Hex code</label>");
|
|
55
|
+
colorHexCode.insertAdjacentHTML('beforeend', "<code id='color-hex-code'>#00890B</code>");
|
|
56
|
+
|
|
57
|
+
select.addEventListener('change', e => {
|
|
58
|
+
let colorBase = e.target.value;
|
|
59
|
+
let colorVariant = document.getElementById('color-variant');
|
|
60
|
+
let colorBlock = document.getElementById('color-block');
|
|
61
|
+
let colorVariable = document.getElementById('color-variable');
|
|
62
|
+
let colorHex = document.getElementById('color-hex-code');
|
|
63
|
+
|
|
64
|
+
colorVariant.max = colors[colorBase].length;
|
|
65
|
+
colorVariant.value = 1;
|
|
66
|
+
let colorHexCode = colors[colorBase][0]["code"];
|
|
67
|
+
colorBlock.style.background = colorHexCode;
|
|
68
|
+
colorVariable.innerText = colors[colorBase][0]["variable"];
|
|
69
|
+
colorHex.innerText = colorHexCode;
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
input.addEventListener('change', e => {
|
|
73
|
+
let colorBase = document.getElementById('color-base').value;
|
|
74
|
+
let colorVariant = e.target;
|
|
75
|
+
let colorBlock = document.getElementById('color-block');
|
|
76
|
+
let colorVariable = document.getElementById('color-variable');
|
|
77
|
+
let colorHex = document.getElementById('color-hex-code');
|
|
78
|
+
|
|
79
|
+
let colorVariantValue = colorVariant.value;
|
|
80
|
+
colorVariant.max = colors[colorBase].length;
|
|
81
|
+
let colorHexCode = colors[colorBase][colorVariantValue-1]["code"];
|
|
82
|
+
colorBlock.style.background = colorHexCode;
|
|
83
|
+
colorVariable.innerText = colors[colorBase][colorVariantValue-1]["variable"];
|
|
84
|
+
colorHex.innerText = colorHexCode;
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
colorPicker.insertAdjacentHTML('beforeend', "<h2>Color Palette 2.0</h2>");
|
|
88
|
+
colorPicker.insertAdjacentElement('beforeend', colorBaseSelect);
|
|
89
|
+
colorPicker.insertAdjacentElement('beforeend', colorVariantInput);
|
|
90
|
+
colorPicker.insertAdjacentElement('beforeend', colorBlock);
|
|
91
|
+
colorPicker.insertAdjacentElement('beforeend', colorVariable);
|
|
92
|
+
colorPicker.insertAdjacentElement('beforeend', colorHexCode);
|
|
93
|
+
|
|
94
|
+
return colorPicker;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Design Tokens/Temp',
|
|
5
|
+
parameters: {
|
|
6
|
+
design: {
|
|
7
|
+
type: "figma",
|
|
8
|
+
url: "https://www.figma.com/file/vN5aEOCLun1QmatmlVBeX0/PTC.com-UX-Library?type=design&node-id=1718%3A247&mode=design&t=3CAodvJ7V1gNzCOU-1",
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const AboutTemplate = args => {
|
|
14
|
+
return html `
|
|
15
|
+
<style>
|
|
16
|
+
input {
|
|
17
|
+
padding: 5px 8px 5px 8px;
|
|
18
|
+
width: 200px;
|
|
19
|
+
border-radius: 8px;
|
|
20
|
+
border: 1px solid var(--color-gray-04);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
select {
|
|
24
|
+
padding: 5px 8px 5px 8px;
|
|
25
|
+
width: 200px;
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
border: 1px solid var(--color-gray-04);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#color-block {
|
|
31
|
+
height: 100px;
|
|
32
|
+
width: 100px;
|
|
33
|
+
border-radius: 5px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
40
|
+
|
|
41
|
+
<h2>Color</h2>
|
|
42
|
+
|
|
43
|
+
<div style="margin-bottom: 50px">
|
|
44
|
+
<div>
|
|
45
|
+
<label>Color</label><br/>
|
|
46
|
+
<select>
|
|
47
|
+
<option selected="selected" value="green">Green</option>
|
|
48
|
+
<option value="blue">Blue</option>
|
|
49
|
+
<option value="orange">Orange</option>
|
|
50
|
+
<option value="red">Red</option>
|
|
51
|
+
<option value="gray">Gray</option>
|
|
52
|
+
</select>
|
|
53
|
+
</div>
|
|
54
|
+
<br/>
|
|
55
|
+
<div>
|
|
56
|
+
<label>Variant</label><br/>
|
|
57
|
+
<input id="number" type="number" value="7" min="1" max="12"/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div id="color-block" style="background:#00890B" value="--color-green-07"></div>
|
|
61
|
+
<br />
|
|
62
|
+
<div>
|
|
63
|
+
<label>Variable</label><br/>
|
|
64
|
+
<code id="color-variable">--color-green-07</code>
|
|
65
|
+
</div>
|
|
66
|
+
<br/>
|
|
67
|
+
<div>
|
|
68
|
+
<label>Hex code</label><br/>
|
|
69
|
+
<code id="color-hex-code">#00890B</code>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<script>
|
|
73
|
+
const colors = {
|
|
74
|
+
"green": ["#E1F1E2","#BDE1BF","#97CF9B","#7DC382","#5CB463","#33A13C","#00890B","#006E09","#005807","#004606","#003805","#002D04"],
|
|
75
|
+
"blue": ["#E1EDF6","#C3DDEE","#A1C9E5","#89BBDF","#6CAAD7","#4795CD","#197BC0","#14629A","#104E7B","#0D3E62","#0A324E","#08283E"],
|
|
76
|
+
"orange": ["#F8EDE3","#F0DBC7","#E7C7A7","#E1B991","#D9A876","#CF9254","#C37729","#9C5F21","#7D4C1A","#643D15","#503111","#40270E"],
|
|
77
|
+
"red": ["#FAE6E6","#F4CDCD","#EDB1B1","#E99D9D","#E38484","#DC6565","#D33E3E","#A7232E","#861C25","#6B161E","#561218","#450E13"],
|
|
78
|
+
"gray": ["#F6F6F6","#E4E7E9","#BEC6CA","#AEB8BD","#9AA6AD","#819099","#617480","#4E5D66","#3E4A52","#323B42","#282F35","#20262A"]
|
|
79
|
+
}
|
|
80
|
+
document.querySelector('select').addEventListener('change', e => {
|
|
81
|
+
let colorBase = e.target.value;
|
|
82
|
+
let colorVariant = document.querySelector('#number').value;
|
|
83
|
+
let colorHexCode = colors[colorBase][colorVariant-1];
|
|
84
|
+
document.getElementById('color-block').style.background = colorHexCode;
|
|
85
|
+
document.getElementById('color-variable').innerText = "--color-"+colorBase+"-"+colorVariant.padStart(2,'0');
|
|
86
|
+
document.getElementById('color-hex-code').innerText = colorHexCode;
|
|
87
|
+
});
|
|
88
|
+
document.querySelector('#number').addEventListener('change', e => {
|
|
89
|
+
let colorBase = document.querySelector('select').value;
|
|
90
|
+
let colorVariant = e.target.value;
|
|
91
|
+
let colorHexCode = colors[colorBase][colorVariant-1];
|
|
92
|
+
document.getElementById('color-block').style.background = colorHexCode;
|
|
93
|
+
document.getElementById('color-variable').innerText = "--color-"+colorBase+"-"+colorVariant.padStart(2,'0');
|
|
94
|
+
document.getElementById('color-hex-code').innerText = colorHexCode;
|
|
95
|
+
});
|
|
96
|
+
</script>
|
|
97
|
+
`
|
|
98
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Design Tokens/Containers',
|
|
5
|
+
parameters: {
|
|
6
|
+
design: {
|
|
7
|
+
type: "figma",
|
|
8
|
+
url: "https://www.figma.com/file/vN5aEOCLun1QmatmlVBeX0/PTC.com-UX-Library?type=design&node-id=1771%3A59&mode=design&t=mXFihiX08xo9n6HS-1",
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const AboutTemplate = args => {
|
|
14
|
+
return html `
|
|
15
|
+
<h2>Containers</h2>
|
|
16
|
+
`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const About = AboutTemplate.bind({});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Design Tokens/Elevations',
|
|
5
|
+
parameters: {
|
|
6
|
+
design: {
|
|
7
|
+
type: "figma",
|
|
8
|
+
url: "https://www.figma.com/file/vN5aEOCLun1QmatmlVBeX0/PTC.com-UX-Library?type=design&node-id=1%3A261&mode=design&t=6gVgJ9yDrxuMo3pg-1",
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const AboutTemplate = args => {
|
|
14
|
+
return html `
|
|
15
|
+
<style>
|
|
16
|
+
table {
|
|
17
|
+
border-collapse: collapse;
|
|
18
|
+
width: 100%;
|
|
19
|
+
border: 1px solid whitesmoke;
|
|
20
|
+
border-radius: 7px;
|
|
21
|
+
box-shadow: var(--ptc-shadow-x-small);
|
|
22
|
+
margin: 10px 0 30px 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
th, td {
|
|
26
|
+
text-align: left;
|
|
27
|
+
padding: 25px;
|
|
28
|
+
border: 1px solid whitesmoke;
|
|
29
|
+
}
|
|
30
|
+
tr:nth-child(even) {background-color: #f2f2f2;}
|
|
31
|
+
</style>
|
|
32
|
+
<h2>Elevation</h2>
|
|
33
|
+
<p>Elevation tokens are used to give elements the appearance of being raised off the page. Use them with the <strong>box-shadow</strong> property. These are especially useful for menus, popovers, and dialogs.</p>
|
|
34
|
+
|
|
35
|
+
<table>
|
|
36
|
+
<thead>
|
|
37
|
+
<tr>
|
|
38
|
+
<th>Token</th>
|
|
39
|
+
<th>Example</th>
|
|
40
|
+
</tr>
|
|
41
|
+
</thead>
|
|
42
|
+
<tbody>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>--ptc-shadow-x-small</td>
|
|
45
|
+
<td><div class="elevation-demo" style="box-shadow: var(--ptc-shadow-x-small);"></div></td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td>--ptc-shadow-small</td>
|
|
49
|
+
<td><div class="elevation-demo" style="box-shadow: var(--ptc-shadow-small);"></div></td>
|
|
50
|
+
</tr>
|
|
51
|
+
<tr>
|
|
52
|
+
<td>--ptc-shadow-medium</td>
|
|
53
|
+
<td><div class="elevation-demo" style="box-shadow: var(--ptc-shadow-medium);"></div></td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>--ptc-shadow-large</td>
|
|
57
|
+
<td><div class="elevation-demo" style="box-shadow: var(--ptc-shadow-large);"></div></td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td>--ptc-shadow-x-large</td>
|
|
61
|
+
<td><div class="elevation-demo" style="box-shadow: var(--ptc-shadow-x-large);"></div></td>
|
|
62
|
+
</tr>
|
|
63
|
+
</tbody>
|
|
64
|
+
</table>
|
|
65
|
+
`
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const About = AboutTemplate.bind({});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { Source } from '@storybook/blocks';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Design Tokens/Grid',
|
|
6
|
+
parameters: {
|
|
7
|
+
design: {
|
|
8
|
+
type: "figma",
|
|
9
|
+
url: "https://www.figma.com/file/vN5aEOCLun1QmatmlVBeX0/PTC.com-UX-Library?type=design&node-id=1637%3A58&mode=design&t=wElsipYyzT8825HE-1",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const AboutTemplate = args => {
|
|
15
|
+
return html `
|
|
16
|
+
<h2>Grid</h2>
|
|
17
|
+
<p>PTC Design System is using Griddle. Credits to Dave Berning. <br>
|
|
18
|
+
Please check the <a href="https://github.com/daveberning/griddle#spacing-modifiers" target="_blank">github documentation</a>
|
|
19
|
+
<p>
|
|
20
|
+
`
|
|
21
|
+
}
|
|
22
|
+
export const About = AboutTemplate.bind({});
|