@ptcwebops/ptcw-design 0.9.1 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle-example.cjs.entry.js +26 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +151 -0
- package/dist/cjs/ptc-card-content.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card_6.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +4 -2
- package/dist/cjs/ptc-nav-card.cjs.entry.js +49 -0
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +2 -2
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +77 -0
- package/dist/cjs/{ptc-readmore_2.cjs.entry.js → ptc-readmore.cjs.entry.js} +0 -62
- package/dist/cjs/ptc-search-field.cjs.entry.js +9 -2
- package/dist/cjs/ptc-tooltip.cjs.entry.js +68 -0
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/bundle-example/bundle-example.css +6 -0
- package/dist/collection/components/bundle-example/bundle-example.js +32 -0
- package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.css +2 -5
- package/dist/collection/components/ptc-card/ptc-card.css +20 -20
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +27 -0
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +2 -2
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +7 -7
- package/dist/collection/components/ptc-link/ptc-link.css +28 -0
- package/dist/collection/components/ptc-link/ptc-link.js +20 -1
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +108 -0
- package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +208 -0
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +5 -5
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +775 -0
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +148 -0
- package/dist/collection/components/ptc-search-field/ptc-search-field.css +17 -0
- package/dist/collection/components/ptc-search-field/ptc-search-field.js +26 -2
- package/dist/collection/components/ptc-skeleton/ptc-skeleton.css +34 -0
- package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +146 -0
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +2 -3
- package/dist/custom-elements/index.d.ts +22 -4
- package/dist/custom-elements/index.js +192 -40
- package/dist/esm/bundle-example.entry.js +22 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-card-bottom_3.entry.js +145 -0
- package/dist/esm/ptc-card-content.entry.js +1 -1
- package/dist/esm/ptc-card_6.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +4 -2
- package/dist/esm/ptc-nav-card.entry.js +45 -0
- package/dist/esm/ptc-pricing-block.entry.js +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +73 -0
- package/dist/esm/{ptc-readmore_2.entry.js → ptc-readmore.entry.js} +1 -62
- package/dist/esm/ptc-search-field.entry.js +10 -3
- package/dist/esm/ptc-tooltip.entry.js +64 -0
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-0d8841a4.entry.js +1 -0
- package/dist/ptcw-design/p-13e70d43.entry.js +1 -0
- package/dist/ptcw-design/p-166d584d.entry.js +1 -0
- package/dist/ptcw-design/p-195dece6.entry.js +1 -0
- package/dist/ptcw-design/p-294df3ac.entry.js +1 -0
- package/dist/ptcw-design/{p-163fcfc1.entry.js → p-4882c5fc.entry.js} +1 -1
- package/dist/ptcw-design/p-631238df.entry.js +1 -0
- package/dist/ptcw-design/p-b9f12c38.entry.js +1 -0
- package/dist/ptcw-design/{p-049964f4.entry.js → p-bbeb95bd.entry.js} +1 -1
- package/dist/ptcw-design/p-c177667e.entry.js +1 -0
- package/dist/ptcw-design/{p-9962aa65.entry.js → p-c460476d.entry.js} +1 -1
- package/dist/ptcw-design/p-dd1576c8.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/bundle-example/bundle-example.d.ts +5 -0
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +1 -1
- package/dist/types/components/ptc-link/ptc-link.d.ts +4 -0
- package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +42 -0
- package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +1 -1
- package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +31 -0
- package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +3 -1
- package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -0
- package/dist/types/components.d.ts +159 -13
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -46
- package/dist/cjs/ptc-card-wrapper.cjs.entry.js +0 -83
- package/dist/cjs/ptc-pricing-options-component.cjs.entry.js +0 -33
- package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.css +0 -56
- package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js +0 -39
- package/dist/esm/ptc-card-bottom.entry.js +0 -42
- package/dist/esm/ptc-card-wrapper.entry.js +0 -79
- package/dist/esm/ptc-pricing-options-component.entry.js +0 -29
- package/dist/ptcw-design/p-071b6a69.entry.js +0 -1
- package/dist/ptcw-design/p-20cc9c39.entry.js +0 -1
- package/dist/ptcw-design/p-30007bf3.entry.js +0 -1
- package/dist/ptcw-design/p-52092387.entry.js +0 -1
- package/dist/ptcw-design/p-5f20876d.entry.js +0 -1
- package/dist/ptcw-design/p-6b71e273.entry.js +0 -1
- package/dist/ptcw-design/p-a5f20c41.entry.js +0 -1
- package/dist/types/components/ptc-pricing-options-component/ptc-pricing-options-component.d.ts +0 -6
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
|
+
interface BundleExample {
|
|
10
|
+
}
|
|
9
11
|
interface DropdownItem {
|
|
10
12
|
"linkHref"?: string;
|
|
11
13
|
"linkTarget": string | undefined;
|
|
@@ -287,7 +289,7 @@ export namespace Components {
|
|
|
287
289
|
"styles"?: string;
|
|
288
290
|
}
|
|
289
291
|
interface PtcCardContent {
|
|
290
|
-
"cardType"?: 'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-dynamic' | 'extra-tall' | 'color-outlined';
|
|
292
|
+
"cardType"?: 'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-dynamic' | 'extra-tall' | 'color-outlined' | 'thumbnail-video-preview';
|
|
291
293
|
"outlineColor"?: 'o-red' | 'o-orange' | 'o-blue' | 'o-slate-grey' | 'o-green';
|
|
292
294
|
"removeInlineHeight": () => Promise<void>;
|
|
293
295
|
"setHeight": (height: number) => Promise<void>;
|
|
@@ -497,6 +499,10 @@ export namespace Components {
|
|
|
497
499
|
* Font Size
|
|
498
500
|
*/
|
|
499
501
|
"fontSize": 'small' | 'medium' | 'large' | 'medium-large';
|
|
502
|
+
/**
|
|
503
|
+
* Font Weight
|
|
504
|
+
*/
|
|
505
|
+
"fontWeight"?: 'w-thin' | 'w-regular' | 'w-medium' | 'w-semibold' | 'w-bold' | 'w-extrabold' | 'w-black';
|
|
500
506
|
/**
|
|
501
507
|
* href
|
|
502
508
|
*/
|
|
@@ -649,6 +655,40 @@ export namespace Components {
|
|
|
649
655
|
*/
|
|
650
656
|
"size"?: 'sm' | 'md' | 'lg' | 'xl';
|
|
651
657
|
}
|
|
658
|
+
interface PtcNavCard {
|
|
659
|
+
/**
|
|
660
|
+
* Card Link URL (Optional)
|
|
661
|
+
*/
|
|
662
|
+
"cardHref"?: string;
|
|
663
|
+
/**
|
|
664
|
+
* Card Link URL Alt text(Optional)
|
|
665
|
+
*/
|
|
666
|
+
"cardHrefAlt"?: string;
|
|
667
|
+
/**
|
|
668
|
+
* If this card has Image
|
|
669
|
+
*/
|
|
670
|
+
"cardLogo"?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Card Type Specify Card Type
|
|
673
|
+
*/
|
|
674
|
+
"cardType": 'media-card' | 'links-card' | 'cta-card';
|
|
675
|
+
/**
|
|
676
|
+
* Card description
|
|
677
|
+
*/
|
|
678
|
+
"description"?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Card heading
|
|
681
|
+
*/
|
|
682
|
+
"heading"?: string;
|
|
683
|
+
/**
|
|
684
|
+
* (optional) Link card rel
|
|
685
|
+
*/
|
|
686
|
+
"rel"?: string;
|
|
687
|
+
/**
|
|
688
|
+
* (optional) Link card target
|
|
689
|
+
*/
|
|
690
|
+
"target"?: string;
|
|
691
|
+
}
|
|
652
692
|
interface PtcOverlay {
|
|
653
693
|
/**
|
|
654
694
|
* Overlay border shape
|
|
@@ -822,10 +862,18 @@ export namespace Components {
|
|
|
822
862
|
"text": string | undefined;
|
|
823
863
|
}
|
|
824
864
|
interface PtcPricingBlock {
|
|
825
|
-
"active":
|
|
865
|
+
"active": boolean;
|
|
826
866
|
"optionClicked": boolean;
|
|
827
867
|
}
|
|
828
|
-
interface
|
|
868
|
+
interface PtcPricingTabs {
|
|
869
|
+
/**
|
|
870
|
+
* Header of the pricing block
|
|
871
|
+
*/
|
|
872
|
+
"header": string;
|
|
873
|
+
/**
|
|
874
|
+
* Sub title tag the shows in top left corner
|
|
875
|
+
*/
|
|
876
|
+
"productTag": string;
|
|
829
877
|
}
|
|
830
878
|
interface PtcQuote {
|
|
831
879
|
/**
|
|
@@ -902,6 +950,7 @@ export namespace Components {
|
|
|
902
950
|
interface PtcResponsiveWrapper {
|
|
903
951
|
}
|
|
904
952
|
interface PtcSearchField {
|
|
953
|
+
"darkTheme": boolean;
|
|
905
954
|
"placeholderLabel": string;
|
|
906
955
|
"textValue": string;
|
|
907
956
|
}
|
|
@@ -909,6 +958,14 @@ export namespace Components {
|
|
|
909
958
|
"cartCount"?: string;
|
|
910
959
|
"color": 'black' | 'white';
|
|
911
960
|
}
|
|
961
|
+
interface PtcSkeleton {
|
|
962
|
+
"animated": boolean;
|
|
963
|
+
"borderRadius": string;
|
|
964
|
+
"btmMargin": string;
|
|
965
|
+
"isLoading": boolean;
|
|
966
|
+
"topMargin": string;
|
|
967
|
+
"width": string;
|
|
968
|
+
}
|
|
912
969
|
interface PtcSocialShare {
|
|
913
970
|
"display"?: 'inline-block' | 'block' | 'inline' | 'flex';
|
|
914
971
|
/**
|
|
@@ -1184,6 +1241,10 @@ export interface PtcPagenationCustomEvent<T> extends CustomEvent<T> {
|
|
|
1184
1241
|
detail: T;
|
|
1185
1242
|
target: HTMLPtcPagenationElement;
|
|
1186
1243
|
}
|
|
1244
|
+
export interface PtcPricingTabsCustomEvent<T> extends CustomEvent<T> {
|
|
1245
|
+
detail: T;
|
|
1246
|
+
target: HTMLPtcPricingTabsElement;
|
|
1247
|
+
}
|
|
1187
1248
|
export interface PtcSearchFieldCustomEvent<T> extends CustomEvent<T> {
|
|
1188
1249
|
detail: T;
|
|
1189
1250
|
target: HTMLPtcSearchFieldElement;
|
|
@@ -1197,6 +1258,12 @@ export interface TabHeaderCustomEvent<T> extends CustomEvent<T> {
|
|
|
1197
1258
|
target: HTMLTabHeaderElement;
|
|
1198
1259
|
}
|
|
1199
1260
|
declare global {
|
|
1261
|
+
interface HTMLBundleExampleElement extends Components.BundleExample, HTMLStencilElement {
|
|
1262
|
+
}
|
|
1263
|
+
var HTMLBundleExampleElement: {
|
|
1264
|
+
prototype: HTMLBundleExampleElement;
|
|
1265
|
+
new (): HTMLBundleExampleElement;
|
|
1266
|
+
};
|
|
1200
1267
|
interface HTMLDropdownItemElement extends Components.DropdownItem, HTMLStencilElement {
|
|
1201
1268
|
}
|
|
1202
1269
|
var HTMLDropdownItemElement: {
|
|
@@ -1413,6 +1480,12 @@ declare global {
|
|
|
1413
1480
|
prototype: HTMLPtcModalElement;
|
|
1414
1481
|
new (): HTMLPtcModalElement;
|
|
1415
1482
|
};
|
|
1483
|
+
interface HTMLPtcNavCardElement extends Components.PtcNavCard, HTMLStencilElement {
|
|
1484
|
+
}
|
|
1485
|
+
var HTMLPtcNavCardElement: {
|
|
1486
|
+
prototype: HTMLPtcNavCardElement;
|
|
1487
|
+
new (): HTMLPtcNavCardElement;
|
|
1488
|
+
};
|
|
1416
1489
|
interface HTMLPtcOverlayElement extends Components.PtcOverlay, HTMLStencilElement {
|
|
1417
1490
|
}
|
|
1418
1491
|
var HTMLPtcOverlayElement: {
|
|
@@ -1449,11 +1522,11 @@ declare global {
|
|
|
1449
1522
|
prototype: HTMLPtcPricingBlockElement;
|
|
1450
1523
|
new (): HTMLPtcPricingBlockElement;
|
|
1451
1524
|
};
|
|
1452
|
-
interface
|
|
1525
|
+
interface HTMLPtcPricingTabsElement extends Components.PtcPricingTabs, HTMLStencilElement {
|
|
1453
1526
|
}
|
|
1454
|
-
var
|
|
1455
|
-
prototype:
|
|
1456
|
-
new ():
|
|
1527
|
+
var HTMLPtcPricingTabsElement: {
|
|
1528
|
+
prototype: HTMLPtcPricingTabsElement;
|
|
1529
|
+
new (): HTMLPtcPricingTabsElement;
|
|
1457
1530
|
};
|
|
1458
1531
|
interface HTMLPtcQuoteElement extends Components.PtcQuote, HTMLStencilElement {
|
|
1459
1532
|
}
|
|
@@ -1485,6 +1558,12 @@ declare global {
|
|
|
1485
1558
|
prototype: HTMLPtcShoppingCartElement;
|
|
1486
1559
|
new (): HTMLPtcShoppingCartElement;
|
|
1487
1560
|
};
|
|
1561
|
+
interface HTMLPtcSkeletonElement extends Components.PtcSkeleton, HTMLStencilElement {
|
|
1562
|
+
}
|
|
1563
|
+
var HTMLPtcSkeletonElement: {
|
|
1564
|
+
prototype: HTMLPtcSkeletonElement;
|
|
1565
|
+
new (): HTMLPtcSkeletonElement;
|
|
1566
|
+
};
|
|
1488
1567
|
interface HTMLPtcSocialShareElement extends Components.PtcSocialShare, HTMLStencilElement {
|
|
1489
1568
|
}
|
|
1490
1569
|
var HTMLPtcSocialShareElement: {
|
|
@@ -1570,6 +1649,7 @@ declare global {
|
|
|
1570
1649
|
new (): HTMLTabHeaderElement;
|
|
1571
1650
|
};
|
|
1572
1651
|
interface HTMLElementTagNameMap {
|
|
1652
|
+
"bundle-example": HTMLBundleExampleElement;
|
|
1573
1653
|
"dropdown-item": HTMLDropdownItemElement;
|
|
1574
1654
|
"icon-asset": HTMLIconAssetElement;
|
|
1575
1655
|
"list-item": HTMLListItemElement;
|
|
@@ -1606,18 +1686,20 @@ declare global {
|
|
|
1606
1686
|
"ptc-minimized-header": HTMLPtcMinimizedHeaderElement;
|
|
1607
1687
|
"ptc-mobile-select": HTMLPtcMobileSelectElement;
|
|
1608
1688
|
"ptc-modal": HTMLPtcModalElement;
|
|
1689
|
+
"ptc-nav-card": HTMLPtcNavCardElement;
|
|
1609
1690
|
"ptc-overlay": HTMLPtcOverlayElement;
|
|
1610
1691
|
"ptc-pagenation": HTMLPtcPagenationElement;
|
|
1611
1692
|
"ptc-para": HTMLPtcParaElement;
|
|
1612
1693
|
"ptc-picture": HTMLPtcPictureElement;
|
|
1613
1694
|
"ptc-previous-url": HTMLPtcPreviousUrlElement;
|
|
1614
1695
|
"ptc-pricing-block": HTMLPtcPricingBlockElement;
|
|
1615
|
-
"ptc-pricing-
|
|
1696
|
+
"ptc-pricing-tabs": HTMLPtcPricingTabsElement;
|
|
1616
1697
|
"ptc-quote": HTMLPtcQuoteElement;
|
|
1617
1698
|
"ptc-readmore": HTMLPtcReadmoreElement;
|
|
1618
1699
|
"ptc-responsive-wrapper": HTMLPtcResponsiveWrapperElement;
|
|
1619
1700
|
"ptc-search-field": HTMLPtcSearchFieldElement;
|
|
1620
1701
|
"ptc-shopping-cart": HTMLPtcShoppingCartElement;
|
|
1702
|
+
"ptc-skeleton": HTMLPtcSkeletonElement;
|
|
1621
1703
|
"ptc-social-share": HTMLPtcSocialShareElement;
|
|
1622
1704
|
"ptc-spacer": HTMLPtcSpacerElement;
|
|
1623
1705
|
"ptc-span": HTMLPtcSpanElement;
|
|
@@ -1635,6 +1717,8 @@ declare global {
|
|
|
1635
1717
|
}
|
|
1636
1718
|
}
|
|
1637
1719
|
declare namespace LocalJSX {
|
|
1720
|
+
interface BundleExample {
|
|
1721
|
+
}
|
|
1638
1722
|
interface DropdownItem {
|
|
1639
1723
|
"linkHref"?: string;
|
|
1640
1724
|
"linkTarget"?: string | undefined;
|
|
@@ -1930,7 +2014,7 @@ declare namespace LocalJSX {
|
|
|
1930
2014
|
"styles"?: string;
|
|
1931
2015
|
}
|
|
1932
2016
|
interface PtcCardContent {
|
|
1933
|
-
"cardType"?: 'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-dynamic' | 'extra-tall' | 'color-outlined';
|
|
2017
|
+
"cardType"?: 'card-video' | 'card-tall' | 'card-2up' | 'card-wide' | 'speed-bump' | 'card-playlist' | 'card-video-intro' | 'card-dynamic' | 'extra-tall' | 'color-outlined' | 'thumbnail-video-preview';
|
|
1934
2018
|
"onHoverEvent"?: (event: PtcCardContentCustomEvent<void>) => void;
|
|
1935
2019
|
"onLeaveEvent"?: (event: PtcCardContentCustomEvent<void>) => void;
|
|
1936
2020
|
"outlineColor"?: 'o-red' | 'o-orange' | 'o-blue' | 'o-slate-grey' | 'o-green';
|
|
@@ -2150,6 +2234,10 @@ declare namespace LocalJSX {
|
|
|
2150
2234
|
* Font Size
|
|
2151
2235
|
*/
|
|
2152
2236
|
"fontSize"?: 'small' | 'medium' | 'large' | 'medium-large';
|
|
2237
|
+
/**
|
|
2238
|
+
* Font Weight
|
|
2239
|
+
*/
|
|
2240
|
+
"fontWeight"?: 'w-thin' | 'w-regular' | 'w-medium' | 'w-semibold' | 'w-bold' | 'w-extrabold' | 'w-black';
|
|
2153
2241
|
/**
|
|
2154
2242
|
* href
|
|
2155
2243
|
*/
|
|
@@ -2310,6 +2398,40 @@ declare namespace LocalJSX {
|
|
|
2310
2398
|
*/
|
|
2311
2399
|
"size"?: 'sm' | 'md' | 'lg' | 'xl';
|
|
2312
2400
|
}
|
|
2401
|
+
interface PtcNavCard {
|
|
2402
|
+
/**
|
|
2403
|
+
* Card Link URL (Optional)
|
|
2404
|
+
*/
|
|
2405
|
+
"cardHref"?: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* Card Link URL Alt text(Optional)
|
|
2408
|
+
*/
|
|
2409
|
+
"cardHrefAlt"?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* If this card has Image
|
|
2412
|
+
*/
|
|
2413
|
+
"cardLogo"?: string;
|
|
2414
|
+
/**
|
|
2415
|
+
* Card Type Specify Card Type
|
|
2416
|
+
*/
|
|
2417
|
+
"cardType"?: 'media-card' | 'links-card' | 'cta-card';
|
|
2418
|
+
/**
|
|
2419
|
+
* Card description
|
|
2420
|
+
*/
|
|
2421
|
+
"description"?: string;
|
|
2422
|
+
/**
|
|
2423
|
+
* Card heading
|
|
2424
|
+
*/
|
|
2425
|
+
"heading"?: string;
|
|
2426
|
+
/**
|
|
2427
|
+
* (optional) Link card rel
|
|
2428
|
+
*/
|
|
2429
|
+
"rel"?: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* (optional) Link card target
|
|
2432
|
+
*/
|
|
2433
|
+
"target"?: string;
|
|
2434
|
+
}
|
|
2313
2435
|
interface PtcOverlay {
|
|
2314
2436
|
/**
|
|
2315
2437
|
* Overlay border shape
|
|
@@ -2483,10 +2605,19 @@ declare namespace LocalJSX {
|
|
|
2483
2605
|
"text"?: string | undefined;
|
|
2484
2606
|
}
|
|
2485
2607
|
interface PtcPricingBlock {
|
|
2486
|
-
"active"?:
|
|
2608
|
+
"active"?: boolean;
|
|
2487
2609
|
"optionClicked"?: boolean;
|
|
2488
2610
|
}
|
|
2489
|
-
interface
|
|
2611
|
+
interface PtcPricingTabs {
|
|
2612
|
+
/**
|
|
2613
|
+
* Header of the pricing block
|
|
2614
|
+
*/
|
|
2615
|
+
"header"?: string;
|
|
2616
|
+
"onTabChanged"?: (event: PtcPricingTabsCustomEvent<any>) => void;
|
|
2617
|
+
/**
|
|
2618
|
+
* Sub title tag the shows in top left corner
|
|
2619
|
+
*/
|
|
2620
|
+
"productTag"?: string;
|
|
2490
2621
|
}
|
|
2491
2622
|
interface PtcQuote {
|
|
2492
2623
|
/**
|
|
@@ -2563,6 +2694,7 @@ declare namespace LocalJSX {
|
|
|
2563
2694
|
interface PtcResponsiveWrapper {
|
|
2564
2695
|
}
|
|
2565
2696
|
interface PtcSearchField {
|
|
2697
|
+
"darkTheme"?: boolean;
|
|
2566
2698
|
"onClicked"?: (event: PtcSearchFieldCustomEvent<any>) => void;
|
|
2567
2699
|
"onValueChanged"?: (event: PtcSearchFieldCustomEvent<any>) => void;
|
|
2568
2700
|
"placeholderLabel"?: string;
|
|
@@ -2572,6 +2704,14 @@ declare namespace LocalJSX {
|
|
|
2572
2704
|
"cartCount"?: string;
|
|
2573
2705
|
"color"?: 'black' | 'white';
|
|
2574
2706
|
}
|
|
2707
|
+
interface PtcSkeleton {
|
|
2708
|
+
"animated"?: boolean;
|
|
2709
|
+
"borderRadius"?: string;
|
|
2710
|
+
"btmMargin"?: string;
|
|
2711
|
+
"isLoading"?: boolean;
|
|
2712
|
+
"topMargin"?: string;
|
|
2713
|
+
"width"?: string;
|
|
2714
|
+
}
|
|
2575
2715
|
interface PtcSocialShare {
|
|
2576
2716
|
"display"?: 'inline-block' | 'block' | 'inline' | 'flex';
|
|
2577
2717
|
/**
|
|
@@ -2794,6 +2934,7 @@ declare namespace LocalJSX {
|
|
|
2794
2934
|
"tooltip"?: string;
|
|
2795
2935
|
}
|
|
2796
2936
|
interface IntrinsicElements {
|
|
2937
|
+
"bundle-example": BundleExample;
|
|
2797
2938
|
"dropdown-item": DropdownItem;
|
|
2798
2939
|
"icon-asset": IconAsset;
|
|
2799
2940
|
"list-item": ListItem;
|
|
@@ -2830,18 +2971,20 @@ declare namespace LocalJSX {
|
|
|
2830
2971
|
"ptc-minimized-header": PtcMinimizedHeader;
|
|
2831
2972
|
"ptc-mobile-select": PtcMobileSelect;
|
|
2832
2973
|
"ptc-modal": PtcModal;
|
|
2974
|
+
"ptc-nav-card": PtcNavCard;
|
|
2833
2975
|
"ptc-overlay": PtcOverlay;
|
|
2834
2976
|
"ptc-pagenation": PtcPagenation;
|
|
2835
2977
|
"ptc-para": PtcPara;
|
|
2836
2978
|
"ptc-picture": PtcPicture;
|
|
2837
2979
|
"ptc-previous-url": PtcPreviousUrl;
|
|
2838
2980
|
"ptc-pricing-block": PtcPricingBlock;
|
|
2839
|
-
"ptc-pricing-
|
|
2981
|
+
"ptc-pricing-tabs": PtcPricingTabs;
|
|
2840
2982
|
"ptc-quote": PtcQuote;
|
|
2841
2983
|
"ptc-readmore": PtcReadmore;
|
|
2842
2984
|
"ptc-responsive-wrapper": PtcResponsiveWrapper;
|
|
2843
2985
|
"ptc-search-field": PtcSearchField;
|
|
2844
2986
|
"ptc-shopping-cart": PtcShoppingCart;
|
|
2987
|
+
"ptc-skeleton": PtcSkeleton;
|
|
2845
2988
|
"ptc-social-share": PtcSocialShare;
|
|
2846
2989
|
"ptc-spacer": PtcSpacer;
|
|
2847
2990
|
"ptc-span": PtcSpan;
|
|
@@ -2862,6 +3005,7 @@ export { LocalJSX as JSX };
|
|
|
2862
3005
|
declare module "@stencil/core" {
|
|
2863
3006
|
export namespace JSX {
|
|
2864
3007
|
interface IntrinsicElements {
|
|
3008
|
+
"bundle-example": LocalJSX.BundleExample & JSXBase.HTMLAttributes<HTMLBundleExampleElement>;
|
|
2865
3009
|
"dropdown-item": LocalJSX.DropdownItem & JSXBase.HTMLAttributes<HTMLDropdownItemElement>;
|
|
2866
3010
|
"icon-asset": LocalJSX.IconAsset & JSXBase.HTMLAttributes<HTMLIconAssetElement>;
|
|
2867
3011
|
"list-item": LocalJSX.ListItem & JSXBase.HTMLAttributes<HTMLListItemElement>;
|
|
@@ -2898,18 +3042,20 @@ declare module "@stencil/core" {
|
|
|
2898
3042
|
"ptc-minimized-header": LocalJSX.PtcMinimizedHeader & JSXBase.HTMLAttributes<HTMLPtcMinimizedHeaderElement>;
|
|
2899
3043
|
"ptc-mobile-select": LocalJSX.PtcMobileSelect & JSXBase.HTMLAttributes<HTMLPtcMobileSelectElement>;
|
|
2900
3044
|
"ptc-modal": LocalJSX.PtcModal & JSXBase.HTMLAttributes<HTMLPtcModalElement>;
|
|
3045
|
+
"ptc-nav-card": LocalJSX.PtcNavCard & JSXBase.HTMLAttributes<HTMLPtcNavCardElement>;
|
|
2901
3046
|
"ptc-overlay": LocalJSX.PtcOverlay & JSXBase.HTMLAttributes<HTMLPtcOverlayElement>;
|
|
2902
3047
|
"ptc-pagenation": LocalJSX.PtcPagenation & JSXBase.HTMLAttributes<HTMLPtcPagenationElement>;
|
|
2903
3048
|
"ptc-para": LocalJSX.PtcPara & JSXBase.HTMLAttributes<HTMLPtcParaElement>;
|
|
2904
3049
|
"ptc-picture": LocalJSX.PtcPicture & JSXBase.HTMLAttributes<HTMLPtcPictureElement>;
|
|
2905
3050
|
"ptc-previous-url": LocalJSX.PtcPreviousUrl & JSXBase.HTMLAttributes<HTMLPtcPreviousUrlElement>;
|
|
2906
3051
|
"ptc-pricing-block": LocalJSX.PtcPricingBlock & JSXBase.HTMLAttributes<HTMLPtcPricingBlockElement>;
|
|
2907
|
-
"ptc-pricing-
|
|
3052
|
+
"ptc-pricing-tabs": LocalJSX.PtcPricingTabs & JSXBase.HTMLAttributes<HTMLPtcPricingTabsElement>;
|
|
2908
3053
|
"ptc-quote": LocalJSX.PtcQuote & JSXBase.HTMLAttributes<HTMLPtcQuoteElement>;
|
|
2909
3054
|
"ptc-readmore": LocalJSX.PtcReadmore & JSXBase.HTMLAttributes<HTMLPtcReadmoreElement>;
|
|
2910
3055
|
"ptc-responsive-wrapper": LocalJSX.PtcResponsiveWrapper & JSXBase.HTMLAttributes<HTMLPtcResponsiveWrapperElement>;
|
|
2911
3056
|
"ptc-search-field": LocalJSX.PtcSearchField & JSXBase.HTMLAttributes<HTMLPtcSearchFieldElement>;
|
|
2912
3057
|
"ptc-shopping-cart": LocalJSX.PtcShoppingCart & JSXBase.HTMLAttributes<HTMLPtcShoppingCartElement>;
|
|
3058
|
+
"ptc-skeleton": LocalJSX.PtcSkeleton & JSXBase.HTMLAttributes<HTMLPtcSkeletonElement>;
|
|
2913
3059
|
"ptc-social-share": LocalJSX.PtcSocialShare & JSXBase.HTMLAttributes<HTMLPtcSocialShareElement>;
|
|
2914
3060
|
"ptc-spacer": LocalJSX.PtcSpacer & JSXBase.HTMLAttributes<HTMLPtcSpacerElement>;
|
|
2915
3061
|
"ptc-span": LocalJSX.PtcSpan & JSXBase.HTMLAttributes<HTMLPtcSpanElement>;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# PTC Design 0.9.
|
|
3
|
+
# PTC Design 0.9.3
|
|
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-c27e52b2.js');
|
|
6
|
-
|
|
7
|
-
const ptcCardBottomCss = ":host{display:block}:host(.card-tall) .ptc-card-bottom-wrapper,:host(.card-wide) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0 var(--ptc-element-spacing-07) var(--ptc-element-spacing-07) var(--ptc-element-spacing-06);z-index:2}:host(.card-2up) .ptc-card-bottom-wrapper{position:absolute;bottom:0;left:0;padding:0px 24px 24px 16px}:host(.card-playlist){flex:72% 2 1;align-self:center}:host(.mouse-hover-card-bottom) .ptc-card-bottom-wrapper{z-index:5;cursor:pointer}:host(.extra-tall){position:absolute;top:0;left:0}:host(.extra-tall) .ptc-card-bottom-wrapper{position:relative;top:0px;left:0px;bottom:0px;right:0px;display:flex;flex-direction:column;align-items:center;width:calc(100% - 64px);padding:var(--ptc-layout-spacing-05) var(--ptc-element-spacing-07);padding-bottom:calc(var(--ptc-layout-spacing-03) + var(--ptc-layout-spacing-05));z-index:2}@media only screen and (min-width: 768px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-bottom:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-04) + var(--ptc-layout-spacing-05))}}@media only screen and (min-width: 1440px){:host(.extra-tall) .ptc-card-bottom-wrapper{padding-top:calc(var(--ptc-layout-spacing-05) * 2)}}:host(.color-outlined) .ptc-card-bottom-wrapper{position:absolute;top:50%;transform:translateY(-50%);display:flex;justify-content:center;flex-direction:column;align-items:center;width:calc(100% - 80px);height:100%;padding:0px var(--ptc-element-spacing-08)}@media only screen and (min-width: 768px){:host(.card-2up) .ptc-card-bottom-wrapper{padding:0 32px 32px 24px}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:20% 2 1;justify-content:flex-end}:host(.card-video-intro) .ptc-card-bottom-wrapper{display:flex;justify-content:flex-end}}@media only screen and (min-width: 1440px){:host(.card-2up) .ptc-card-bottom-wrapper{width:70%}}@media only screen and (min-width: 1980px){:host(.card-2up) .ptc-card-bottom-wrapper{width:60%}}";
|
|
8
|
-
|
|
9
|
-
const PtcCardBottom = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
|
|
13
|
-
this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
|
|
14
|
-
this.cardType = undefined;
|
|
15
|
-
this.styles = undefined;
|
|
16
|
-
}
|
|
17
|
-
hoverEventHandler() {
|
|
18
|
-
this.hoverEvent.emit();
|
|
19
|
-
//if statement: the card type that doesn't need a hover event
|
|
20
|
-
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
|
|
21
|
-
this.el.previousElementSibling.classList.add('mouse-hover');
|
|
22
|
-
this.el.classList.add('mouse-hover-card-bottom');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
leaveEventHandler() {
|
|
26
|
-
this.hoverEvent.emit();
|
|
27
|
-
//if statement: the card type that doesn't need a hover event
|
|
28
|
-
if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && !this.el.classList.contains('extra-tall')) {
|
|
29
|
-
this.el.previousElementSibling.classList.remove('mouse-hover');
|
|
30
|
-
this.el.classList.remove('mouse-hover-card-bottom');
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const classMap = this.getCssClassMap();
|
|
35
|
-
return (index.h(index.Host, { part: "card-bottom", class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "ptc-card-bottom-wrapper" }, index.h("slot", null))));
|
|
36
|
-
}
|
|
37
|
-
getCssClassMap() {
|
|
38
|
-
return {
|
|
39
|
-
[this.cardType]: this.cardType ? true : false,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
get el() { return index.getElement(this); }
|
|
43
|
-
};
|
|
44
|
-
PtcCardBottom.style = ptcCardBottomCss;
|
|
45
|
-
|
|
46
|
-
exports.ptc_card_bottom = PtcCardBottom;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-c27e52b2.js');
|
|
6
|
-
|
|
7
|
-
const ptcCardWrapperCss = ":host{display:block}:host(.card-tall),:host(.card-wide),:host(.card-video),:host(.card-playlist),:host(.card-2up){position:relative}:host(.card-tall) a,:host(.card-wide) a,:host(.card-video) a,:host(.card-playlist) a,:host(.card-2up) a{text-decoration:none !important}:host(.card-tall) a:hover,:host(.card-wide) a:hover,:host(.card-video) a:hover,:host(.card-playlist) a:hover,:host(.card-2up) a:hover{text-decoration:none}:host(.card-tall) a:focus,:host(.card-wide) a:focus,:host(.card-video) a:focus,:host(.card-playlist) a:focus,:host(.card-2up) a:focus{outline:none;text-decoration:none}:host(.card-tall) a:focus-visible,:host(.card-wide) a:focus-visible,:host(.card-video) a:focus-visible,:host(.card-playlist) a:focus-visible,:host(.card-2up) a:focus-visible{outline:none;text-decoration:none}:host(.card-playlist) div,:host(.card-playlist) a{display:flex;text-decoration:none;outline:none}:host(.card-playlist) div:hover,:host(.card-playlist) a:hover{text-decoration:none;outline:none}:host(.card-video-intro){border-bottom-left-radius:var(--ptc-border-radius-large);border-bottom-right-radius:var(--ptc-border-radius-large)}:host(.card-video-intro) div{display:block}:host(.card-video-shadow){box-shadow:var(--ptc-shadow-x-small)}:host(.extra-tall){position:relative}:host(.extra-tall) a{position:relative;display:block;width:100%;height:100%;inset:0px}:host(.color-outlined){position:relative;border-radius:var(--ptc-border-radius-large)}:host(.card-video-p){padding:var(--ptc-element-spacing-05);padding-bottom:var(--ptc-element-spacing-06)}:host(.card-m-right){margin-right:var(--ptc-element-spacing-02)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-02)}:host(.extraT-overlay) a::after{content:\"\";position:absolute;width:100%;height:100%;background:rgba(0, 0, 0, 0.6);bottom:0;left:0;border-radius:var(--ptc-border-radius-large)}@media only screen and (min-width: 768px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-03)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-03)}}@media only screen and (min-width: 992px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-04)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 1200px){:host(.card-video-intro) div{display:flex}}";
|
|
8
|
-
|
|
9
|
-
const PtcCardPlm = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
|
|
13
|
-
this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
|
|
14
|
-
this.cardType = undefined;
|
|
15
|
-
this.cardLink = undefined;
|
|
16
|
-
this.linkTitle = undefined;
|
|
17
|
-
this.linkTarget = '_self';
|
|
18
|
-
}
|
|
19
|
-
/** Internal Screen Size State */
|
|
20
|
-
// @State() mql: MediaQueryList;
|
|
21
|
-
handleResize() {
|
|
22
|
-
this.checkScreenSize();
|
|
23
|
-
}
|
|
24
|
-
hoverEventHandler() {
|
|
25
|
-
if (this.el.classList.contains('extra-tall')) {
|
|
26
|
-
this.hoverEvent.emit();
|
|
27
|
-
this.el.classList.add('extraT-overlay');
|
|
28
|
-
}
|
|
29
|
-
if (this.el.classList.contains('color-outlined')) {
|
|
30
|
-
this.hoverEvent.emit();
|
|
31
|
-
const cardOverlay = this.el.querySelector('ptc-overlay');
|
|
32
|
-
cardOverlay.setOverlay('black-5');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
leaveEventHandler() {
|
|
36
|
-
if (this.el.classList.contains('extra-tall')) {
|
|
37
|
-
this.hoverEvent.emit();
|
|
38
|
-
this.el.classList.remove('extraT-overlay');
|
|
39
|
-
}
|
|
40
|
-
if (this.el.classList.contains('color-outlined')) {
|
|
41
|
-
this.hoverEvent.emit();
|
|
42
|
-
const cardOverlay = this.el.querySelector('ptc-overlay');
|
|
43
|
-
cardOverlay.setOverlay('black-4');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
componentDidLoad() {
|
|
47
|
-
this.checkScreenSize();
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
const classMap = this.getCssClassMap();
|
|
51
|
-
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
52
|
-
return (index.h(index.Host, { class: classMap, onMouseEnter: this.hoverEventHandler.bind(this), onMouseLeave: this.leaveEventHandler.bind(this) }, index.h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), index.h("slot", null))));
|
|
53
|
-
}
|
|
54
|
-
getCssClassMap() {
|
|
55
|
-
return {
|
|
56
|
-
[this.cardType]: this.cardType ? true : false,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
getBtmContentHeight() {
|
|
60
|
-
const bottomContent = this.el.querySelector('ptc-card-bottom');
|
|
61
|
-
return bottomContent.offsetHeight;
|
|
62
|
-
}
|
|
63
|
-
checkScreenSize() {
|
|
64
|
-
if (window.innerWidth < 768) {
|
|
65
|
-
if (this.cardType === 'extra-tall') {
|
|
66
|
-
const cardContent = this.el.querySelector('ptc-card-content');
|
|
67
|
-
if (cardContent) {
|
|
68
|
-
cardContent.setHeight(this.getBtmContentHeight());
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
const cardContent = this.el.querySelector('ptc-card-content');
|
|
74
|
-
if (cardContent) {
|
|
75
|
-
cardContent.removeInlineHeight();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
get el() { return index.getElement(this); }
|
|
80
|
-
};
|
|
81
|
-
PtcCardPlm.style = ptcCardWrapperCss;
|
|
82
|
-
|
|
83
|
-
exports.ptc_card_wrapper = PtcCardPlm;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-c27e52b2.js');
|
|
6
|
-
|
|
7
|
-
const ptcPricingOptionsComponentCss = ":host{display:block;margin-top:var(--ptc-element-spacing-03)}:host #tabs p.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block{width:100%;background-color:var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);display:block;transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .ptc-pricing-block.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block:hover:not(.active){background-color:var(--color-gray-03)}:host .right-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);text-align:right;float:right;margin:15px 20px 15px 15px;display:block}:host .left-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-align:left;margin:15px 15px 15px 20px;display:inline-block}:host div .panel-right{text-align:center;background:#FFFFFF;border:1px solid #E4E7E9;border-radius:4px;padding:32px 50px;min-height:267px;display:flex;align-content:center;align-items:center}";
|
|
8
|
-
|
|
9
|
-
const ptcPricingOptionsComponent = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.showOptions = undefined;
|
|
13
|
-
}
|
|
14
|
-
onContentChange(content) {
|
|
15
|
-
this.showOptions = content === 'Content 2';
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
const classMap = this.getCssClassMap();
|
|
19
|
-
let selectedOption = index.h("slot", null);
|
|
20
|
-
if (this.showOptions) {
|
|
21
|
-
selectedOption = (index.h("div", { class: "is-col-6-md is-col-12 panel-right" }, index.h("div", { class: "panel-content" }, index.h("ptc-para", { "font-size": "small", "font-weight": "w-5", "para-margin": "margin-flush", "para-style": "main" }, "1-500 Tags"), index.h("ptc-title", { type: 'h2', "text-align": 'center', upperline: "no-upperline", "title-size": "xxx-large", "title-weight": "w-8", styles: "H2 { margin-top:0 !important}" }, "$2,968/yr"), index.h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-margin": "margin-2", "para-style": "main", "para-line-h": "line-height-denser" }, "Pay an annual fee to use the software. Support & Maintenance is included."), index.h("ptc-button", { type: "link", color: "ptc-quaternary", "link-href": "https://www.ptc.com", target: "_blank" }, "Add to Cart"))));
|
|
22
|
-
}
|
|
23
|
-
return (index.h(index.Host, null, index.h("div", { class: classMap }, index.h("div", null, selectedOption), index.h("section", { id: "tabs" }, index.h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 1') }, index.h("span", { slot: "left-text" }, "1-500 Tags"), index.h("span", { slot: "right-text" }, "$990/yr")), index.h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 2') }, index.h("span", { slot: "left-text" }, "501-5000 Tags"), index.h("span", { slot: "right-text" }, "$1,450/yr")), index.h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 3') }, index.h("span", { slot: "left-text" }, "5002+ Tags"), index.h("span", { slot: "right-text" }, "$2,968/yr"))))));
|
|
24
|
-
}
|
|
25
|
-
getCssClassMap() {
|
|
26
|
-
return {
|
|
27
|
-
['ptc-pricing-options-components']: true
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
ptcPricingOptionsComponent.style = ptcPricingOptionsComponentCss;
|
|
32
|
-
|
|
33
|
-
exports.ptc_pricing_options_component = ptcPricingOptionsComponent;
|
package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.css
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
margin-top: var(--ptc-element-spacing-03);
|
|
4
|
-
}
|
|
5
|
-
:host #tabs p.active {
|
|
6
|
-
background-color: var(--color-gray-12);
|
|
7
|
-
color: var(--color-white);
|
|
8
|
-
}
|
|
9
|
-
:host .ptc-pricing-block {
|
|
10
|
-
width: 100%;
|
|
11
|
-
background-color: var(--color-gray-02);
|
|
12
|
-
border-radius: var(--ptc-border-radius-standard);
|
|
13
|
-
font-family: var(--ptc-font-latin);
|
|
14
|
-
font-size: var(--ptc-font-size-small);
|
|
15
|
-
font-weight: var(--ptc-font-weight-medium);
|
|
16
|
-
line-height: var(--ptc-line-height-dense);
|
|
17
|
-
display: block;
|
|
18
|
-
transition: background-color var(--ptc-ease-inout) var(--ptc-transition-medium);
|
|
19
|
-
}
|
|
20
|
-
:host .ptc-pricing-block.active {
|
|
21
|
-
background-color: var(--color-gray-12);
|
|
22
|
-
color: var(--color-white);
|
|
23
|
-
}
|
|
24
|
-
:host .ptc-pricing-block:hover:not(.active) {
|
|
25
|
-
background-color: var(--color-gray-03);
|
|
26
|
-
}
|
|
27
|
-
:host .right-text {
|
|
28
|
-
font-family: var(--ptc-font-latin);
|
|
29
|
-
font-size: var(--ptc-font-size-small);
|
|
30
|
-
font-weight: var(--ptc-font-weight-extrabold);
|
|
31
|
-
line-height: var(--ptc-line-height-dense);
|
|
32
|
-
text-align: right;
|
|
33
|
-
float: right;
|
|
34
|
-
margin: 15px 20px 15px 15px;
|
|
35
|
-
display: block;
|
|
36
|
-
}
|
|
37
|
-
:host .left-text {
|
|
38
|
-
font-family: var(--ptc-font-latin);
|
|
39
|
-
font-size: var(--ptc-font-size-small);
|
|
40
|
-
font-weight: var(--ptc-font-weight-medium);
|
|
41
|
-
line-height: var(--ptc-line-height-dense);
|
|
42
|
-
text-align: left;
|
|
43
|
-
margin: 15px 15px 15px 20px;
|
|
44
|
-
display: inline-block;
|
|
45
|
-
}
|
|
46
|
-
:host div .panel-right {
|
|
47
|
-
text-align: center;
|
|
48
|
-
background: #FFFFFF;
|
|
49
|
-
border: 1px solid #E4E7E9;
|
|
50
|
-
border-radius: 4px;
|
|
51
|
-
padding: 32px 50px;
|
|
52
|
-
min-height: 267px;
|
|
53
|
-
display: flex;
|
|
54
|
-
align-content: center;
|
|
55
|
-
align-items: center;
|
|
56
|
-
}
|
package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { h, Host } from '@stencil/core';
|
|
2
|
-
export class ptcPricingOptionsComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.showOptions = undefined;
|
|
5
|
-
}
|
|
6
|
-
onContentChange(content) {
|
|
7
|
-
this.showOptions = content === 'Content 2';
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
const classMap = this.getCssClassMap();
|
|
11
|
-
let selectedOption = h("slot", null);
|
|
12
|
-
if (this.showOptions) {
|
|
13
|
-
selectedOption = (h("div", { class: "is-col-6-md is-col-12 panel-right" }, h("div", { class: "panel-content" }, h("ptc-para", { "font-size": "small", "font-weight": "w-5", "para-margin": "margin-flush", "para-style": "main" }, "1-500 Tags"), h("ptc-title", { type: 'h2', "text-align": 'center', upperline: "no-upperline", "title-size": "xxx-large", "title-weight": "w-8", styles: "H2 { margin-top:0 !important}" }, "$2,968/yr"), h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-margin": "margin-2", "para-style": "main", "para-line-h": "line-height-denser" }, "Pay an annual fee to use the software. Support & Maintenance is included."), h("ptc-button", { type: "link", color: "ptc-quaternary", "link-href": "https://www.ptc.com", target: "_blank" }, "Add to Cart"))));
|
|
14
|
-
}
|
|
15
|
-
return (h(Host, null, h("div", { class: classMap }, h("div", null, selectedOption), h("section", { id: "tabs" }, h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 1') }, h("span", { slot: "left-text" }, "1-500 Tags"), h("span", { slot: "right-text" }, "$990/yr")), h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 2') }, h("span", { slot: "left-text" }, "501-5000 Tags"), h("span", { slot: "right-text" }, "$1,450/yr")), h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 3') }, h("span", { slot: "left-text" }, "5002+ Tags"), h("span", { slot: "right-text" }, "$2,968/yr"))))));
|
|
16
|
-
}
|
|
17
|
-
getCssClassMap() {
|
|
18
|
-
return {
|
|
19
|
-
['ptc-pricing-options-components']: true
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
static get is() { return "ptc-pricing-options-component"; }
|
|
23
|
-
static get encapsulation() { return "shadow"; }
|
|
24
|
-
static get originalStyleUrls() {
|
|
25
|
-
return {
|
|
26
|
-
"$": ["ptc-pricing-options-component.scss"]
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
static get styleUrls() {
|
|
30
|
-
return {
|
|
31
|
-
"$": ["ptc-pricing-options-component.css"]
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
static get states() {
|
|
35
|
-
return {
|
|
36
|
-
"showOptions": {}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|