@ptcwebops/ptcw-design 2.6.7 → 2.6.9
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.cjs.entry.js +93 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_3.cjs.entry.js +10664 -0
- package/dist/cjs/ptc-form.cjs.entry.js +89 -0
- package/dist/cjs/ptc-nav-link.cjs.entry.js +7 -3
- package/dist/cjs/ptc-subnav.cjs.entry.js +6 -2
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.css +29 -0
- package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +98 -0
- package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.css +14 -0
- package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +94 -0
- package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.css +2 -2
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +1083 -0
- package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.js +209 -0
- package/dist/collection/components/ptc-select/ptc-select.css +6099 -0
- package/dist/collection/components/ptc-select/ptc-select.js +190 -0
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +5 -2
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +3590 -0
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +351 -0
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +24 -3
- package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.css +0 -1
- package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +11 -1
- package/dist/collection/stories/FormCheckbox.stories.js +58 -0
- package/dist/collection/stories/MaxWidthContainer.stories.js +33 -19
- package/dist/collection/stories/Select.stories.js +81 -0
- package/dist/collection/stories/Textfield.stories.js +82 -0
- package/dist/custom-elements/index.d.ts +31 -1
- package/dist/custom-elements/index.js +14323 -3477
- package/dist/esm/embedded-form.entry.js +89 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_3.entry.js +10658 -0
- package/dist/esm/ptc-form.entry.js +85 -0
- package/dist/esm/ptc-nav-link.entry.js +8 -4
- package/dist/esm/ptc-subnav.entry.js +6 -2
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-018470e2.entry.js +1 -0
- package/dist/ptcw-design/p-0b1d5c21.entry.js +1 -0
- package/dist/ptcw-design/p-11582f1e.entry.js +359 -0
- package/dist/ptcw-design/p-2fb1e3d3.entry.js +1 -0
- package/dist/ptcw-design/{p-65e630ea.entry.js → p-67f50038.entry.js} +1 -1
- package/dist/ptcw-design/p-84090398.entry.js +1 -0
- package/dist/ptcw-design/p-f245f1bd.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/form/embedded-form/embedded-form.d.ts +29 -0
- package/dist/types/components/organism-bundles/form/ptc-form/ptc-form.d.ts +25 -0
- package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +20 -0
- package/dist/types/components/ptc-select/ptc-select.d.ts +18 -0
- package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +27 -0
- package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +6 -1
- package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +1 -0
- package/dist/types/components.d.ts +136 -0
- package/dist/types/utils/interfaces.d.ts +6 -0
- package/package.json +7 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-2bb95382.entry.js +0 -1
- package/dist/ptcw-design/p-5229a430.entry.js +0 -1
- package/dist/ptcw-design/p-c249785a.entry.js +0 -1
- package/dist/types/global.d.ts +0 -1072
|
@@ -24,6 +24,8 @@ export namespace Components {
|
|
|
24
24
|
"topImgAlt": string;
|
|
25
25
|
"topImgSrc": string;
|
|
26
26
|
}
|
|
27
|
+
interface EmbeddedForm {
|
|
28
|
+
}
|
|
27
29
|
interface FeaturedList {
|
|
28
30
|
}
|
|
29
31
|
interface FlTabContent {
|
|
@@ -593,6 +595,17 @@ export namespace Components {
|
|
|
593
595
|
interface PtcFilterTag {
|
|
594
596
|
"theme": 'bubble' | 'link' | 'link-lg' | 'button' | 'standard';
|
|
595
597
|
}
|
|
598
|
+
interface PtcForm {
|
|
599
|
+
}
|
|
600
|
+
interface PtcFormCheckbox {
|
|
601
|
+
"checkboxId": string;
|
|
602
|
+
"helpertext": string;
|
|
603
|
+
"isChecked": boolean;
|
|
604
|
+
"label": string;
|
|
605
|
+
"name": string;
|
|
606
|
+
"required": boolean;
|
|
607
|
+
"validateCheckbox": () => Promise<void>;
|
|
608
|
+
}
|
|
596
609
|
interface PtcHero {
|
|
597
610
|
/**
|
|
598
611
|
* Hero Background Image URL
|
|
@@ -1428,6 +1441,18 @@ export namespace Components {
|
|
|
1428
1441
|
"styles"?: string;
|
|
1429
1442
|
"textValue": string;
|
|
1430
1443
|
}
|
|
1444
|
+
interface PtcSelect {
|
|
1445
|
+
"disabled": boolean;
|
|
1446
|
+
"helpertext": string;
|
|
1447
|
+
"isRequired": boolean;
|
|
1448
|
+
"label": string;
|
|
1449
|
+
"name": string;
|
|
1450
|
+
/**
|
|
1451
|
+
* Eloqua Data
|
|
1452
|
+
*/
|
|
1453
|
+
"ptcDataEloquaName": string;
|
|
1454
|
+
"selectedValue": string;
|
|
1455
|
+
}
|
|
1431
1456
|
interface PtcShoppingCart {
|
|
1432
1457
|
"cartCount"?: string;
|
|
1433
1458
|
"color": 'black' | 'white';
|
|
@@ -1651,6 +1676,18 @@ export namespace Components {
|
|
|
1651
1676
|
*/
|
|
1652
1677
|
"type": 'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background' | 'case-studies';
|
|
1653
1678
|
}
|
|
1679
|
+
interface PtcTextfield {
|
|
1680
|
+
"disabled": boolean;
|
|
1681
|
+
"fieldId": string;
|
|
1682
|
+
"helpertext": string;
|
|
1683
|
+
"inputValue": string;
|
|
1684
|
+
"labelText": string;
|
|
1685
|
+
"name": string;
|
|
1686
|
+
"ptcDataEloquaName": string;
|
|
1687
|
+
"ptcMaxLength"?: number;
|
|
1688
|
+
"required": boolean;
|
|
1689
|
+
"type": string;
|
|
1690
|
+
}
|
|
1654
1691
|
interface PtcTitle {
|
|
1655
1692
|
/**
|
|
1656
1693
|
* Line number to cut text off at and add ellipsis
|
|
@@ -1861,10 +1898,18 @@ export interface PtcFilterTagCustomEvent<T> extends CustomEvent<T> {
|
|
|
1861
1898
|
detail: T;
|
|
1862
1899
|
target: HTMLPtcFilterTagElement;
|
|
1863
1900
|
}
|
|
1901
|
+
export interface PtcFormCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1902
|
+
detail: T;
|
|
1903
|
+
target: HTMLPtcFormCheckboxElement;
|
|
1904
|
+
}
|
|
1864
1905
|
export interface PtcModalCustomEvent<T> extends CustomEvent<T> {
|
|
1865
1906
|
detail: T;
|
|
1866
1907
|
target: HTMLPtcModalElement;
|
|
1867
1908
|
}
|
|
1909
|
+
export interface PtcNavLinkCustomEvent<T> extends CustomEvent<T> {
|
|
1910
|
+
detail: T;
|
|
1911
|
+
target: HTMLPtcNavLinkElement;
|
|
1912
|
+
}
|
|
1868
1913
|
export interface PtcNavSubmenuCustomEvent<T> extends CustomEvent<T> {
|
|
1869
1914
|
detail: T;
|
|
1870
1915
|
target: HTMLPtcNavSubmenuElement;
|
|
@@ -1897,6 +1942,10 @@ export interface PtcSearchFieldCustomEvent<T> extends CustomEvent<T> {
|
|
|
1897
1942
|
detail: T;
|
|
1898
1943
|
target: HTMLPtcSearchFieldElement;
|
|
1899
1944
|
}
|
|
1945
|
+
export interface PtcSelectCustomEvent<T> extends CustomEvent<T> {
|
|
1946
|
+
detail: T;
|
|
1947
|
+
target: HTMLPtcSelectElement;
|
|
1948
|
+
}
|
|
1900
1949
|
export interface PtcTabListCustomEvent<T> extends CustomEvent<T> {
|
|
1901
1950
|
detail: T;
|
|
1902
1951
|
target: HTMLPtcTabListElement;
|
|
@@ -1940,6 +1989,12 @@ declare global {
|
|
|
1940
1989
|
prototype: HTMLDynamicBoxBundleElement;
|
|
1941
1990
|
new (): HTMLDynamicBoxBundleElement;
|
|
1942
1991
|
};
|
|
1992
|
+
interface HTMLEmbeddedFormElement extends Components.EmbeddedForm, HTMLStencilElement {
|
|
1993
|
+
}
|
|
1994
|
+
var HTMLEmbeddedFormElement: {
|
|
1995
|
+
prototype: HTMLEmbeddedFormElement;
|
|
1996
|
+
new (): HTMLEmbeddedFormElement;
|
|
1997
|
+
};
|
|
1943
1998
|
interface HTMLFeaturedListElement extends Components.FeaturedList, HTMLStencilElement {
|
|
1944
1999
|
}
|
|
1945
2000
|
var HTMLFeaturedListElement: {
|
|
@@ -2132,6 +2187,18 @@ declare global {
|
|
|
2132
2187
|
prototype: HTMLPtcFilterTagElement;
|
|
2133
2188
|
new (): HTMLPtcFilterTagElement;
|
|
2134
2189
|
};
|
|
2190
|
+
interface HTMLPtcFormElement extends Components.PtcForm, HTMLStencilElement {
|
|
2191
|
+
}
|
|
2192
|
+
var HTMLPtcFormElement: {
|
|
2193
|
+
prototype: HTMLPtcFormElement;
|
|
2194
|
+
new (): HTMLPtcFormElement;
|
|
2195
|
+
};
|
|
2196
|
+
interface HTMLPtcFormCheckboxElement extends Components.PtcFormCheckbox, HTMLStencilElement {
|
|
2197
|
+
}
|
|
2198
|
+
var HTMLPtcFormCheckboxElement: {
|
|
2199
|
+
prototype: HTMLPtcFormCheckboxElement;
|
|
2200
|
+
new (): HTMLPtcFormCheckboxElement;
|
|
2201
|
+
};
|
|
2135
2202
|
interface HTMLPtcHeroElement extends Components.PtcHero, HTMLStencilElement {
|
|
2136
2203
|
}
|
|
2137
2204
|
var HTMLPtcHeroElement: {
|
|
@@ -2396,6 +2463,12 @@ declare global {
|
|
|
2396
2463
|
prototype: HTMLPtcSearchFieldElement;
|
|
2397
2464
|
new (): HTMLPtcSearchFieldElement;
|
|
2398
2465
|
};
|
|
2466
|
+
interface HTMLPtcSelectElement extends Components.PtcSelect, HTMLStencilElement {
|
|
2467
|
+
}
|
|
2468
|
+
var HTMLPtcSelectElement: {
|
|
2469
|
+
prototype: HTMLPtcSelectElement;
|
|
2470
|
+
new (): HTMLPtcSelectElement;
|
|
2471
|
+
};
|
|
2399
2472
|
interface HTMLPtcShoppingCartElement extends Components.PtcShoppingCart, HTMLStencilElement {
|
|
2400
2473
|
}
|
|
2401
2474
|
var HTMLPtcShoppingCartElement: {
|
|
@@ -2498,6 +2571,12 @@ declare global {
|
|
|
2498
2571
|
prototype: HTMLPtcTextCopyWithBackgroundElement;
|
|
2499
2572
|
new (): HTMLPtcTextCopyWithBackgroundElement;
|
|
2500
2573
|
};
|
|
2574
|
+
interface HTMLPtcTextfieldElement extends Components.PtcTextfield, HTMLStencilElement {
|
|
2575
|
+
}
|
|
2576
|
+
var HTMLPtcTextfieldElement: {
|
|
2577
|
+
prototype: HTMLPtcTextfieldElement;
|
|
2578
|
+
new (): HTMLPtcTextfieldElement;
|
|
2579
|
+
};
|
|
2501
2580
|
interface HTMLPtcTitleElement extends Components.PtcTitle, HTMLStencilElement {
|
|
2502
2581
|
}
|
|
2503
2582
|
var HTMLPtcTitleElement: {
|
|
@@ -2552,6 +2631,7 @@ declare global {
|
|
|
2552
2631
|
"bundle-jumbotron-example": HTMLBundleJumbotronExampleElement;
|
|
2553
2632
|
"dropdown-item": HTMLDropdownItemElement;
|
|
2554
2633
|
"dynamic-box-bundle": HTMLDynamicBoxBundleElement;
|
|
2634
|
+
"embedded-form": HTMLEmbeddedFormElement;
|
|
2555
2635
|
"featured-list": HTMLFeaturedListElement;
|
|
2556
2636
|
"fl-tab-content": HTMLFlTabContentElement;
|
|
2557
2637
|
"fl-tab-header": HTMLFlTabHeaderElement;
|
|
@@ -2584,6 +2664,8 @@ declare global {
|
|
|
2584
2664
|
"ptc-embedded-quiz": HTMLPtcEmbeddedQuizElement;
|
|
2585
2665
|
"ptc-featured-list": HTMLPtcFeaturedListElement;
|
|
2586
2666
|
"ptc-filter-tag": HTMLPtcFilterTagElement;
|
|
2667
|
+
"ptc-form": HTMLPtcFormElement;
|
|
2668
|
+
"ptc-form-checkbox": HTMLPtcFormCheckboxElement;
|
|
2587
2669
|
"ptc-hero": HTMLPtcHeroElement;
|
|
2588
2670
|
"ptc-hero-footer-cta": HTMLPtcHeroFooterCtaElement;
|
|
2589
2671
|
"ptc-icon-component": HTMLPtcIconComponentElement;
|
|
@@ -2628,6 +2710,7 @@ declare global {
|
|
|
2628
2710
|
"ptc-related-card-rail": HTMLPtcRelatedCardRailElement;
|
|
2629
2711
|
"ptc-responsive-wrapper": HTMLPtcResponsiveWrapperElement;
|
|
2630
2712
|
"ptc-search-field": HTMLPtcSearchFieldElement;
|
|
2713
|
+
"ptc-select": HTMLPtcSelectElement;
|
|
2631
2714
|
"ptc-shopping-cart": HTMLPtcShoppingCartElement;
|
|
2632
2715
|
"ptc-skeleton": HTMLPtcSkeletonElement;
|
|
2633
2716
|
"ptc-slit-card": HTMLPtcSlitCardElement;
|
|
@@ -2645,6 +2728,7 @@ declare global {
|
|
|
2645
2728
|
"ptc-tab-list": HTMLPtcTabListElement;
|
|
2646
2729
|
"ptc-tabs": HTMLPtcTabsElement;
|
|
2647
2730
|
"ptc-text-copy-with-background": HTMLPtcTextCopyWithBackgroundElement;
|
|
2731
|
+
"ptc-textfield": HTMLPtcTextfieldElement;
|
|
2648
2732
|
"ptc-title": HTMLPtcTitleElement;
|
|
2649
2733
|
"ptc-tooltip": HTMLPtcTooltipElement;
|
|
2650
2734
|
"ptc-two-column-media": HTMLPtcTwoColumnMediaElement;
|
|
@@ -2674,6 +2758,8 @@ declare namespace LocalJSX {
|
|
|
2674
2758
|
"topImgAlt"?: string;
|
|
2675
2759
|
"topImgSrc"?: string;
|
|
2676
2760
|
}
|
|
2761
|
+
interface EmbeddedForm {
|
|
2762
|
+
}
|
|
2677
2763
|
interface FeaturedList {
|
|
2678
2764
|
}
|
|
2679
2765
|
interface FlTabContent {
|
|
@@ -3270,6 +3356,17 @@ declare namespace LocalJSX {
|
|
|
3270
3356
|
"onClicked"?: (event: PtcFilterTagCustomEvent<any>) => void;
|
|
3271
3357
|
"theme"?: 'bubble' | 'link' | 'link-lg' | 'button' | 'standard';
|
|
3272
3358
|
}
|
|
3359
|
+
interface PtcForm {
|
|
3360
|
+
}
|
|
3361
|
+
interface PtcFormCheckbox {
|
|
3362
|
+
"checkboxId"?: string;
|
|
3363
|
+
"helpertext"?: string;
|
|
3364
|
+
"isChecked"?: boolean;
|
|
3365
|
+
"label"?: string;
|
|
3366
|
+
"name"?: string;
|
|
3367
|
+
"onCheckboxChanged"?: (event: PtcFormCheckboxCustomEvent<boolean>) => void;
|
|
3368
|
+
"required"?: boolean;
|
|
3369
|
+
}
|
|
3273
3370
|
interface PtcHero {
|
|
3274
3371
|
/**
|
|
3275
3372
|
* Hero Background Image URL
|
|
@@ -3589,6 +3686,10 @@ declare namespace LocalJSX {
|
|
|
3589
3686
|
* isOutsideLink = false
|
|
3590
3687
|
*/
|
|
3591
3688
|
"isOutsideLink"?: boolean;
|
|
3689
|
+
/**
|
|
3690
|
+
* Creating navLinkClicked to check if the link is clicked and toggle the subnav on mobile
|
|
3691
|
+
*/
|
|
3692
|
+
"onNavLinkClicked"?: (event: PtcNavLinkCustomEvent<any>) => void;
|
|
3592
3693
|
/**
|
|
3593
3694
|
* Anchor link Title
|
|
3594
3695
|
*/
|
|
@@ -4126,6 +4227,19 @@ declare namespace LocalJSX {
|
|
|
4126
4227
|
"styles"?: string;
|
|
4127
4228
|
"textValue"?: string;
|
|
4128
4229
|
}
|
|
4230
|
+
interface PtcSelect {
|
|
4231
|
+
"disabled"?: boolean;
|
|
4232
|
+
"helpertext"?: string;
|
|
4233
|
+
"isRequired"?: boolean;
|
|
4234
|
+
"label"?: string;
|
|
4235
|
+
"name"?: string;
|
|
4236
|
+
"onValueChange"?: (event: PtcSelectCustomEvent<string>) => void;
|
|
4237
|
+
/**
|
|
4238
|
+
* Eloqua Data
|
|
4239
|
+
*/
|
|
4240
|
+
"ptcDataEloquaName"?: string;
|
|
4241
|
+
"selectedValue"?: string;
|
|
4242
|
+
}
|
|
4129
4243
|
interface PtcShoppingCart {
|
|
4130
4244
|
"cartCount"?: string;
|
|
4131
4245
|
"color"?: 'black' | 'white';
|
|
@@ -4350,6 +4464,18 @@ declare namespace LocalJSX {
|
|
|
4350
4464
|
*/
|
|
4351
4465
|
"type"?: 'text-copy-with-background' | 'hero-footer-cta' | 'tab-cta-with-background' | 'case-studies';
|
|
4352
4466
|
}
|
|
4467
|
+
interface PtcTextfield {
|
|
4468
|
+
"disabled"?: boolean;
|
|
4469
|
+
"fieldId"?: string;
|
|
4470
|
+
"helpertext"?: string;
|
|
4471
|
+
"inputValue"?: string;
|
|
4472
|
+
"labelText"?: string;
|
|
4473
|
+
"name"?: string;
|
|
4474
|
+
"ptcDataEloquaName"?: string;
|
|
4475
|
+
"ptcMaxLength"?: number;
|
|
4476
|
+
"required"?: boolean;
|
|
4477
|
+
"type"?: string;
|
|
4478
|
+
}
|
|
4353
4479
|
interface PtcTitle {
|
|
4354
4480
|
/**
|
|
4355
4481
|
* Line number to cut text off at and add ellipsis
|
|
@@ -4512,6 +4638,7 @@ declare namespace LocalJSX {
|
|
|
4512
4638
|
"bundle-jumbotron-example": BundleJumbotronExample;
|
|
4513
4639
|
"dropdown-item": DropdownItem;
|
|
4514
4640
|
"dynamic-box-bundle": DynamicBoxBundle;
|
|
4641
|
+
"embedded-form": EmbeddedForm;
|
|
4515
4642
|
"featured-list": FeaturedList;
|
|
4516
4643
|
"fl-tab-content": FlTabContent;
|
|
4517
4644
|
"fl-tab-header": FlTabHeader;
|
|
@@ -4544,6 +4671,8 @@ declare namespace LocalJSX {
|
|
|
4544
4671
|
"ptc-embedded-quiz": PtcEmbeddedQuiz;
|
|
4545
4672
|
"ptc-featured-list": PtcFeaturedList;
|
|
4546
4673
|
"ptc-filter-tag": PtcFilterTag;
|
|
4674
|
+
"ptc-form": PtcForm;
|
|
4675
|
+
"ptc-form-checkbox": PtcFormCheckbox;
|
|
4547
4676
|
"ptc-hero": PtcHero;
|
|
4548
4677
|
"ptc-hero-footer-cta": PtcHeroFooterCta;
|
|
4549
4678
|
"ptc-icon-component": PtcIconComponent;
|
|
@@ -4588,6 +4717,7 @@ declare namespace LocalJSX {
|
|
|
4588
4717
|
"ptc-related-card-rail": PtcRelatedCardRail;
|
|
4589
4718
|
"ptc-responsive-wrapper": PtcResponsiveWrapper;
|
|
4590
4719
|
"ptc-search-field": PtcSearchField;
|
|
4720
|
+
"ptc-select": PtcSelect;
|
|
4591
4721
|
"ptc-shopping-cart": PtcShoppingCart;
|
|
4592
4722
|
"ptc-skeleton": PtcSkeleton;
|
|
4593
4723
|
"ptc-slit-card": PtcSlitCard;
|
|
@@ -4605,6 +4735,7 @@ declare namespace LocalJSX {
|
|
|
4605
4735
|
"ptc-tab-list": PtcTabList;
|
|
4606
4736
|
"ptc-tabs": PtcTabs;
|
|
4607
4737
|
"ptc-text-copy-with-background": PtcTextCopyWithBackground;
|
|
4738
|
+
"ptc-textfield": PtcTextfield;
|
|
4608
4739
|
"ptc-title": PtcTitle;
|
|
4609
4740
|
"ptc-tooltip": PtcTooltip;
|
|
4610
4741
|
"ptc-two-column-media": PtcTwoColumnMedia;
|
|
@@ -4624,6 +4755,7 @@ declare module "@stencil/core" {
|
|
|
4624
4755
|
"bundle-jumbotron-example": LocalJSX.BundleJumbotronExample & JSXBase.HTMLAttributes<HTMLBundleJumbotronExampleElement>;
|
|
4625
4756
|
"dropdown-item": LocalJSX.DropdownItem & JSXBase.HTMLAttributes<HTMLDropdownItemElement>;
|
|
4626
4757
|
"dynamic-box-bundle": LocalJSX.DynamicBoxBundle & JSXBase.HTMLAttributes<HTMLDynamicBoxBundleElement>;
|
|
4758
|
+
"embedded-form": LocalJSX.EmbeddedForm & JSXBase.HTMLAttributes<HTMLEmbeddedFormElement>;
|
|
4627
4759
|
"featured-list": LocalJSX.FeaturedList & JSXBase.HTMLAttributes<HTMLFeaturedListElement>;
|
|
4628
4760
|
"fl-tab-content": LocalJSX.FlTabContent & JSXBase.HTMLAttributes<HTMLFlTabContentElement>;
|
|
4629
4761
|
"fl-tab-header": LocalJSX.FlTabHeader & JSXBase.HTMLAttributes<HTMLFlTabHeaderElement>;
|
|
@@ -4656,6 +4788,8 @@ declare module "@stencil/core" {
|
|
|
4656
4788
|
"ptc-embedded-quiz": LocalJSX.PtcEmbeddedQuiz & JSXBase.HTMLAttributes<HTMLPtcEmbeddedQuizElement>;
|
|
4657
4789
|
"ptc-featured-list": LocalJSX.PtcFeaturedList & JSXBase.HTMLAttributes<HTMLPtcFeaturedListElement>;
|
|
4658
4790
|
"ptc-filter-tag": LocalJSX.PtcFilterTag & JSXBase.HTMLAttributes<HTMLPtcFilterTagElement>;
|
|
4791
|
+
"ptc-form": LocalJSX.PtcForm & JSXBase.HTMLAttributes<HTMLPtcFormElement>;
|
|
4792
|
+
"ptc-form-checkbox": LocalJSX.PtcFormCheckbox & JSXBase.HTMLAttributes<HTMLPtcFormCheckboxElement>;
|
|
4659
4793
|
"ptc-hero": LocalJSX.PtcHero & JSXBase.HTMLAttributes<HTMLPtcHeroElement>;
|
|
4660
4794
|
"ptc-hero-footer-cta": LocalJSX.PtcHeroFooterCta & JSXBase.HTMLAttributes<HTMLPtcHeroFooterCtaElement>;
|
|
4661
4795
|
"ptc-icon-component": LocalJSX.PtcIconComponent & JSXBase.HTMLAttributes<HTMLPtcIconComponentElement>;
|
|
@@ -4700,6 +4834,7 @@ declare module "@stencil/core" {
|
|
|
4700
4834
|
"ptc-related-card-rail": LocalJSX.PtcRelatedCardRail & JSXBase.HTMLAttributes<HTMLPtcRelatedCardRailElement>;
|
|
4701
4835
|
"ptc-responsive-wrapper": LocalJSX.PtcResponsiveWrapper & JSXBase.HTMLAttributes<HTMLPtcResponsiveWrapperElement>;
|
|
4702
4836
|
"ptc-search-field": LocalJSX.PtcSearchField & JSXBase.HTMLAttributes<HTMLPtcSearchFieldElement>;
|
|
4837
|
+
"ptc-select": LocalJSX.PtcSelect & JSXBase.HTMLAttributes<HTMLPtcSelectElement>;
|
|
4703
4838
|
"ptc-shopping-cart": LocalJSX.PtcShoppingCart & JSXBase.HTMLAttributes<HTMLPtcShoppingCartElement>;
|
|
4704
4839
|
"ptc-skeleton": LocalJSX.PtcSkeleton & JSXBase.HTMLAttributes<HTMLPtcSkeletonElement>;
|
|
4705
4840
|
"ptc-slit-card": LocalJSX.PtcSlitCard & JSXBase.HTMLAttributes<HTMLPtcSlitCardElement>;
|
|
@@ -4717,6 +4852,7 @@ declare module "@stencil/core" {
|
|
|
4717
4852
|
"ptc-tab-list": LocalJSX.PtcTabList & JSXBase.HTMLAttributes<HTMLPtcTabListElement>;
|
|
4718
4853
|
"ptc-tabs": LocalJSX.PtcTabs & JSXBase.HTMLAttributes<HTMLPtcTabsElement>;
|
|
4719
4854
|
"ptc-text-copy-with-background": LocalJSX.PtcTextCopyWithBackground & JSXBase.HTMLAttributes<HTMLPtcTextCopyWithBackgroundElement>;
|
|
4855
|
+
"ptc-textfield": LocalJSX.PtcTextfield & JSXBase.HTMLAttributes<HTMLPtcTextfieldElement>;
|
|
4720
4856
|
"ptc-title": LocalJSX.PtcTitle & JSXBase.HTMLAttributes<HTMLPtcTitleElement>;
|
|
4721
4857
|
"ptc-tooltip": LocalJSX.PtcTooltip & JSXBase.HTMLAttributes<HTMLPtcTooltipElement>;
|
|
4722
4858
|
"ptc-two-column-media": LocalJSX.PtcTwoColumnMedia & JSXBase.HTMLAttributes<HTMLPtcTwoColumnMediaElement>;
|
|
@@ -30,3 +30,9 @@ export interface ITabGroup {
|
|
|
30
30
|
header: ITabHeaderData;
|
|
31
31
|
content: ITabContentData;
|
|
32
32
|
}
|
|
33
|
+
export interface PtcTextfieldElement extends HTMLPtcTextfieldElement {
|
|
34
|
+
}
|
|
35
|
+
export interface PtcFormCheckboxElement extends HTMLPtcFormCheckboxElement {
|
|
36
|
+
}
|
|
37
|
+
export interface PTCSelectElement extends HTMLPtcSelectElement {
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptcwebops/ptcw-design",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.9",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -31,8 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@daveberning/griddle": "^0.3.0",
|
|
34
|
+
"@material/checkbox": "^14.0.0",
|
|
35
|
+
"@material/form-field": "^14.0.0",
|
|
36
|
+
"@material/select": "^14.0.0",
|
|
37
|
+
"@material/textfield": "^14.0.0",
|
|
34
38
|
"@stencil/core": "^2.20.0",
|
|
35
39
|
"@teamhive/lottie-player": "^1.0.0",
|
|
40
|
+
"@types/intl-tel-input": "^17.0.6",
|
|
41
|
+
"intl-tel-input": "^18.2.1",
|
|
36
42
|
"npmrc": "^1.1.1",
|
|
37
43
|
"resize-observer-polyfill": "^1.5.1",
|
|
38
44
|
"swiper": "^9.1.1"
|
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# PTC Design 2.6.
|
|
3
|
+
# PTC Design 2.6.9
|
|
4
4
|
|
|
5
5
|
The site is the place for documentation on PTC Design System
|
|
6
6
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as n,H as i,g as t}from"./p-ce0e4c5c.js";const o=class{constructor(n){a(this,n),this.firstChildHref=null,this.mobileTitle="See page topics",this.navOpen=!1}toggleNav(){this.navOpen=!this.navOpen}handleScroll(){this.el.shadowRoot.querySelector("div.sticky-subnav").classList.remove("sticky")}firstChildfuncID(){const a=document.querySelector("ptc-nav-link:first-child");if(a){const n=a.shadowRoot.querySelector("a");this.firstChildHref=null==n?void 0:n.getAttribute("href"),this.firstChildID=this.firstChildHref}return this.firstChildID}scrollToSection(a){if(window.innerWidth<1200){const n=a.replace(/#/g,""),i=document.getElementById(n);i&&(i.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{this.el.shadowRoot.querySelector("nav.navbar").classList.contains("navOpen")?this.el.shadowRoot.querySelector("div.sticky-subnav").classList.add("sticky"):this.el.shadowRoot.querySelector("div.sticky-subnav").classList.remove("sticky")}),100))}}render(){return n(i,null,n("div",{class:"sticky-subnav"},n("nav",{class:"navbar "+(this.navOpen?"navOpen":"")},n("button",{class:"navbar-toggle",onClick:()=>{this.scrollToSection(this.firstChildfuncID()),this.toggleNav()}},this.mobileTitle,n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"white",class:""},n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.2375 2.83325L7.5 8.60203L1.7625 2.83325L-7.76305e-08 4.60923L7.5 12.1666L15 4.60923L13.2375 2.83325Z",fill:"white"}))),n("div",{class:"navbar-inner"},n("div",{class:"nav-wrapper"},n("slot",{name:"subnav-menu-left"}),n("slot",{name:"subnav-menu-right"}))))))}get el(){return t(this)}};o.style=":host{display:block;width:100%;background-color:var(--color-gray-12);position:relative}@media only screen and (min-width: 1200px){:host{background-color:var(--color-gray-10)}}:host .stickyEl.sticky{top:0;position:fixed;width:100%;z-index:2000;transition:top 0.5s}:host .navbar{overflow-x:hidden}@media only screen and (min-width: 1200px){:host .navbar{overflow-x:visible}}:host .navbar .navbar-inner{max-width:1200px;margin:auto;box-sizing:border-box;padding:0px;display:none}@media only screen and (min-width: 1200px){:host .navbar .navbar-inner{padding:0px;height:auto;display:block}}:host .navbar .navbar-inner .nav-wrapper{width:auto;margin:auto 0;min-width:163px;max-height:calc(100vh - 53px)}@media only screen and (min-width: 1200px){:host .navbar .navbar-inner .nav-wrapper{width:auto;display:flex;justify-content:space-between;max-height:auto}}:host .navbar.navOpen .navbar-inner{background-color:var(--color-gray-12);display:block}:host .navbar .navbar-toggle{display:block;width:100%;text-align:center;color:var(--color-white);background-color:var(--color-gray-10);border:none;padding:16px;font-size:15px;line-height:var(--ptc-line-height-denser);font-weight:var(--ptc-font-weight-bold)}:host .navbar .navbar-toggle svg{vertical-align:middle;margin-left:4px}@media only screen and (min-width: 1200px){:host .navbar .navbar-toggle{display:none}}";export{o as ptc_subnav}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as i,g as e}from"./p-ce0e4c5c.js";const a=class{constructor(o){t(this,o),this.href=void 0,this.isOutsideLink=!1,this.titleText=""}handleClick(){this.href&&this.href.startsWith("#")&&document.querySelector(this.href).scrollIntoView({behavior:"smooth"})}componentWillLoad(){const t=this.el.textContent;t.length>32&&(this.titleText=t,this.el.textContent=t.substring(0,32)+"...")}render(){return o(i,null,o("a",{href:this.href,target:this.isOutsideLink?"_blank":"_self",title:this.titleText,onClick:()=>{this.handleClick()}},o("slot",null),!this.href.startsWith("#")&&o("svg",{class:"icon-arrow-right",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10",viewBox:"0 0 14 10",fill:"none"},o("path",{d:"M8.84921 0.77792L8.81313 3.41153L0.51545 3.55584L0.515449 6.5863L8.81313 6.44199L8.81313 9.40029L13.1424 5.07107L8.84921 0.77792Z",fill:"#AEB8BD"}))))}get el(){return e(this)}};a.style=':host{display:block;position:relative}@media only screen and (min-width: 1200px){:host{display:inline-block}}:host::before,:host::after{content:" ";width:1600px;height:1px;background-color:var(--color-gray-08);position:absolute;right:0;bottom:0}@media only screen and (min-width: 1200px){:host::before,:host::after{display:none}}:host::after{left:0;right:auto}:host a{color:var(--color-gray-03);text-decoration:none;display:inline-block;border-bottom:2px solid transparent;margin-left:34%;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-03);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-denser);font-weight:var(--ptc-font-weight-bold)}@media only screen and (min-width: 480px){:host a{margin-left:38%}}@media only screen and (min-width: 768px){:host a{margin-left:42%}}@media only screen and (min-width: 1200px){:host a{padding:22px var(--ptc-element-spacing-03);margin-left:0;display:flex;align-items:center;white-space:nowrap;position:relative}:host a::after{content:"";display:block;border-bottom:2px solid transparent;margin:auto;position:absolute;width:calc(100% - 20px);left:0;right:0;bottom:20px}}:host a svg{width:1rem;height:0.875rem;display:inline-block;background-size:cover;transition:margin-left 250ms ease-out;vertical-align:middle;margin-left:4px}:host a:hover,:host a:focus{color:var(--color-white)}@media only screen and (min-width: 1200px){:host a:hover::after,:host a:focus::after{border-color:var(--color-white)}}:host a:hover svg path,:host a:focus svg path{fill:var(--color-white)}:host ::slotted(icon-asset){margin-top:4px;margin-right:8px}';export{a as ptc_nav_link}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as a,H as i}from"./p-ce0e4c5c.js";const o=class{constructor(a){t(this,a),this.type="text-copy-with-background",this.backgroundImage=void 0,this.ImageAltText=void 0,this.topSlitBackgroundColor=void 0,this.slitPosition="top-right",this.isBackgroundBlur=!1,this.overlay=!0,this.styles=void 0}render(){const t=this.getCssClassMap(),o=this.getSlitFillColor();return a(i,{class:t},this.styles&&a("style",null,this.styles),a("svg",{xmlns:"http://www.w3.org/2000/svg",class:"tcb-top-slit",width:"320.963",height:"28.179",viewBox:"0 0 320.963 28.179",style:{fill:o}},a("path",{id:"Path_8770",d:"M737.02 463.856v27.8H416.057v.378h102.38l47.607-28.179z",class:"tcb-top-slit-cls-1","data-name":"Path 8770",transform:"translate(-416.057 -463.856)"})),this.backgroundImage?a("div",{class:""},a("img",{class:"copy-bg-image",alt:this.ImageAltText,src:this.backgroundImage}),this.isBackgroundBlur&&a("img",{class:"copy-bg-image bg-img-filter",alt:this.ImageAltText,src:this.backgroundImage})):null,this.overlay&&a("div",{class:"copy-bg-overlay-layer"}),a("div",{class:"content-wrap"},"case-studies"==this.type&&a("div",{class:"ptc-container"},a("div",{class:"card-wrap"},a("div",{class:"card-animated-border"}),a("div",{class:"card-content"},a("div",{class:"card-layout"},a("slot",{name:"card-content"}))))),a("slot",null)))}getSlitFillColor(){let t="#fff";if("auto"==this.topSlitBackgroundColor){let a=getComputedStyle(document.body);a&&a.backgroundColor&&(t=a.backgroundColor)}else t=this.topSlitBackgroundColor;return t}getCssClassMap(){return{[this.type]:!0,[this.slitPosition]:!0,"light-links":this.overlay}}};o.style=':host{display:block;position:relative;width:100%;padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-01);color:var(--color-white)}@media only screen and (min-width: 768px){:host{padding:var(--ptc-layout-spacing-05) var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 992px){:host{padding:var(--ptc-layout-spacing-06) 0}}@media only screen and (min-width: 1200px){:host{padding:var(--ptc-layout-spacing-06) var(--ptc-layout-spacing-03)}}:host .content-wrap{position:relative}:host .tcb-top-slit{fill:#f3f3f3;transform:scale(1.5, -1);position:absolute;top:-1px;right:80px;z-index:99;display:none}@media only screen and (min-width: 992px){:host .tcb-top-slit{display:block}}:host .bg-img-filter{-webkit-filter:url(#blur);filter:url(#blur);-webkit-mask:-webkit-gradient(linear, left top, right top, color-stop(30%, var(--color-black)), to(rgba(0, 0, 0, 0)));-webkit-mask:linear-gradient(90deg, var(--color-black) 30%, rgba(0, 0, 0, 0));-webkit-filter:blur(7px)}:host .copy-bg-image{top:0;left:0;height:100%;width:100%;position:absolute;-o-object-fit:cover;object-fit:cover}@media only screen and (min-width: 992px){:host .copy-bg-image{display:block}}:host .copy-bg-overlay-layer{position:absolute;top:0;left:0;height:100%;width:100%;background:var(--color-black);opacity:0.6}@media only screen and (min-width: 1200px){:host(.hero-footer-cta){padding:calc(var(--ptc-layout-spacing-06) + var(--ptc-layout-spacing-03)) var(--ptc-layout-spacing-03)}}:host(.hero-footer-cta) .copy-bg-overlay-layer{opacity:0.6}:host(.tab-cta-with-background){min-height:400px;padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-02) 88px var(--ptc-layout-spacing-02)}@media only screen and (min-width: 992px){:host(.tab-cta-with-background){display:flex;align-items:center;padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-02)}}@media only screen and (min-width: 1200px){:host(.tab-cta-with-background){padding:var(--ptc-element-spacing-08)}}:host(.tab-cta-with-background) .copy-bg-overlay-layer{background:initial;opacity:1;background-image:linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.9) 63%, rgba(176, 188, 194, 0) 95%)}@media only screen and (min-width: 992px){:host(.tab-cta-with-background) .copy-bg-overlay-layer{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.95) 43%, rgba(176, 188, 194, 0) 95%)}}:host(.bottom-right) .tcb-top-slit{top:auto;bottom:0;transform:scale(1.5, 1.5)}:host(.case-studies){min-height:25rem;height:auto;margin-bottom:10rem;display:flex;align-items:center}@media only screen and (min-width: 768px){:host(.case-studies){min-height:33.75rem;height:auto;margin-bottom:0;padding-top:var(--ptc-layout-spacing-06)}}:host(.case-studies) .card-wrap{position:relative;border:1px solid transparent;width:100%;height:100%;max-width:540px;bottom:-13rem}@media only screen and (min-width: 768px){:host(.case-studies) .card-wrap{bottom:auto}}:host(.case-studies) .card-wrap::after{position:absolute;width:0;height:1px;content:"";background:#fff;top:0px;left:0px;animation:widthAnimate 0.2s linear 0.2s 1 forwards}:host(.case-studies) .card-wrap::before{position:absolute;width:1px;height:0;content:"";background:#fff;top:0px;right:0px;animation:heightAnimate 0.2s linear 0.4s 1 forwards}:host(.case-studies) .card-wrap .card-animated-border{border:1px solid transparent;position:absolute;left:-1px;right:0;bottom:0px;top:-1px;width:100%;height:100%;box-shadow:var(--ptc-shadow-x-small)}:host(.case-studies) .card-wrap .card-animated-border::after{position:absolute;width:0;height:1px;content:"";background:#fff;bottom:0px;right:0px;animation:widthAnimate 0.2s linear 0.6s 1 forwards}:host(.case-studies) .card-wrap .card-animated-border::before{position:absolute;width:1px;height:0;content:"";background:#fff;bottom:0px;left:0px;animation:heightAnimate 0.2s linear 0.8s 1 forwards}:host(.case-studies) .card-wrap .card-content{opacity:0;animation:fadeIn 0.5s ease-in 0.9s 1 forwards;background-color:transparent;width:100%;height:100%}:host(.case-studies) .card-wrap .card-content .card-layout{padding:var(--ptc-layout-spacing-04);background-color:#fff}@keyframes widthAnimate{0%{width:0}100%{width:100%}}@keyframes heightAnimate{0%{height:0}100%{height:100%}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}:host(.case-studies) .content-wrap{width:100%}:host(.case-studies) .ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){:host(.case-studies) .ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host(.case-studies) .ptc-container{padding-left:0;padding-right:0;max-width:1200px}}';export{o as ptc_text_copy_with_background}
|