@ptcwebops/ptcw-design 0.0.5 → 0.0.7

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.
@@ -153,6 +153,10 @@ export namespace Components {
153
153
  "sizeXs": string;
154
154
  }
155
155
  interface PtcLink {
156
+ /**
157
+ * Disabled link
158
+ */
159
+ "disabled": boolean;
156
160
  /**
157
161
  * Rxternal link
158
162
  */
@@ -176,7 +180,7 @@ export namespace Components {
176
180
  /**
177
181
  * Theme
178
182
  */
179
- "theme": 'simple' | 'arrow';
183
+ "theme": 'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link';
180
184
  /**
181
185
  * Uppercase
182
186
  */
@@ -228,6 +232,32 @@ export namespace Components {
228
232
  */
229
233
  "url": string;
230
234
  }
235
+ interface PtcNcard {
236
+ /**
237
+ * Card Link URL (Optional)
238
+ */
239
+ "cardHref"?: string;
240
+ /**
241
+ * If this card has Image
242
+ */
243
+ "hasImage": boolean;
244
+ /**
245
+ * If this card has Lottie Image
246
+ */
247
+ "hasLottie": boolean;
248
+ /**
249
+ * If this card has Video
250
+ */
251
+ "hasVideo": boolean;
252
+ /**
253
+ * (optional) Link card rel
254
+ */
255
+ "rel"?: string;
256
+ /**
257
+ * (optional) Link card target
258
+ */
259
+ "target"?: string;
260
+ }
231
261
  interface PtcOverlay {
232
262
  }
233
263
  interface PtcPara {
@@ -364,6 +394,12 @@ declare global {
364
394
  prototype: HTMLPtcNavItemElement;
365
395
  new (): HTMLPtcNavItemElement;
366
396
  };
397
+ interface HTMLPtcNcardElement extends Components.PtcNcard, HTMLStencilElement {
398
+ }
399
+ var HTMLPtcNcardElement: {
400
+ prototype: HTMLPtcNcardElement;
401
+ new (): HTMLPtcNcardElement;
402
+ };
367
403
  interface HTMLPtcOverlayElement extends Components.PtcOverlay, HTMLStencilElement {
368
404
  }
369
405
  var HTMLPtcOverlayElement: {
@@ -415,6 +451,7 @@ declare global {
415
451
  "ptc-lottie": HTMLPtcLottieElement;
416
452
  "ptc-nav": HTMLPtcNavElement;
417
453
  "ptc-nav-item": HTMLPtcNavItemElement;
454
+ "ptc-ncard": HTMLPtcNcardElement;
418
455
  "ptc-overlay": HTMLPtcOverlayElement;
419
456
  "ptc-para": HTMLPtcParaElement;
420
457
  "ptc-picture": HTMLPtcPictureElement;
@@ -575,6 +612,10 @@ declare namespace LocalJSX {
575
612
  "sizeXs"?: string;
576
613
  }
577
614
  interface PtcLink {
615
+ /**
616
+ * Disabled link
617
+ */
618
+ "disabled"?: boolean;
578
619
  /**
579
620
  * Rxternal link
580
621
  */
@@ -598,7 +639,7 @@ declare namespace LocalJSX {
598
639
  /**
599
640
  * Theme
600
641
  */
601
- "theme"?: 'simple' | 'arrow';
642
+ "theme"?: 'simple' | 'arrow' | 'nav-title'| 'primary-nav-link' | 'nav-title-link' | 'secondary-nav-link' | 'footer-nav-link' | 'copyright-link';
602
643
  /**
603
644
  * Uppercase
604
645
  */
@@ -654,6 +695,32 @@ declare namespace LocalJSX {
654
695
  */
655
696
  "url"?: string;
656
697
  }
698
+ interface PtcNcard {
699
+ /**
700
+ * Card Link URL (Optional)
701
+ */
702
+ "cardHref"?: string;
703
+ /**
704
+ * If this card has Image
705
+ */
706
+ "hasImage"?: boolean;
707
+ /**
708
+ * If this card has Lottie Image
709
+ */
710
+ "hasLottie"?: boolean;
711
+ /**
712
+ * If this card has Video
713
+ */
714
+ "hasVideo"?: boolean;
715
+ /**
716
+ * (optional) Link card rel
717
+ */
718
+ "rel"?: string;
719
+ /**
720
+ * (optional) Link card target
721
+ */
722
+ "target"?: string;
723
+ }
657
724
  interface PtcOverlay {
658
725
  }
659
726
  interface PtcPara {
@@ -719,6 +786,7 @@ declare namespace LocalJSX {
719
786
  "ptc-lottie": PtcLottie;
720
787
  "ptc-nav": PtcNav;
721
788
  "ptc-nav-item": PtcNavItem;
789
+ "ptc-ncard": PtcNcard;
722
790
  "ptc-overlay": PtcOverlay;
723
791
  "ptc-para": PtcPara;
724
792
  "ptc-picture": PtcPicture;
@@ -745,6 +813,7 @@ declare module "@stencil/core" {
745
813
  "ptc-lottie": LocalJSX.PtcLottie & JSXBase.HTMLAttributes<HTMLPtcLottieElement>;
746
814
  "ptc-nav": LocalJSX.PtcNav & JSXBase.HTMLAttributes<HTMLPtcNavElement>;
747
815
  "ptc-nav-item": LocalJSX.PtcNavItem & JSXBase.HTMLAttributes<HTMLPtcNavItemElement>;
816
+ "ptc-ncard": LocalJSX.PtcNcard & JSXBase.HTMLAttributes<HTMLPtcNcardElement>;
748
817
  "ptc-overlay": LocalJSX.PtcOverlay & JSXBase.HTMLAttributes<HTMLPtcOverlayElement>;
749
818
  "ptc-para": LocalJSX.PtcPara & JSXBase.HTMLAttributes<HTMLPtcParaElement>;
750
819
  "ptc-picture": LocalJSX.PtcPicture & JSXBase.HTMLAttributes<HTMLPtcPictureElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptcwebops/ptcw-design",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",
@@ -1 +0,0 @@
1
- import{r as t,h as a,H as i}from"./p-4f366fc3.js";const r=class{constructor(a){t(this,a),this.external=!1,this.target="_self",this.theme="simple",this.uppercase=!1,this.fontSize="medium"}render(){const t=this.getCssClassMap();return a(i,null,a("a",{class:t,href:this.href,target:this.external?"_blank":this.target,title:this.linkTitle},"arrow"==this.theme?a("icon-asset",{type:"solid",size:"small",name:"arrow-right"}):"",a("slot",null)))}getCssClassMap(){return{"ptc-link":!0,[this.theme]:!0,uppercase:this.uppercase,[this.fontSize]:!0}}};r.style='ptc-link a.ptc-link{display:inline-block;color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal);margin-bottom:var(--ptc-element-spacing-01);outline:none;text-decoration:none}ptc-link a.simple::after{content:"";position:absolute;width:100%;left:0px;bottom:2px;transition:opacity var(--ptc-transition-fast) var(--ptc-standard-ease);border-bottom:2px solid var(--color-primary-green);opacity:0}ptc-link a:hover.simple::after{opacity:1}ptc-link a.arrow{margin-right:var(--ptc-element-spacing-01)}ptc-link a.arrow::after{position:absolute;display:block;content:"";width:var(--ptc-element-spacing-06);border-bottom:2px solid var(--color-primary-green);bottom:1px;transition:width var(--ptc-transition-fast) var(--ptc-standard-ease)}ptc-link a:hover.arrow::after{width:100%}ptc-link a.uppercase{text-transform:uppercase}ptc-link a.small{font-size:var(--ptc-font-size-small)}ptc-link a.medium{font-size:var(--ptc-font-size-medium)}ptc-link a.large{font-size:var(--ptc-font-size-large)}ptc-link a icon-asset{position:absolute;right:-25px;transition:transform var(--ptc-transition-fast) var(--ptc-standard-ease)}ptc-link a:hover.arrow icon-asset{transform:translateX(var(--ptc-element-spacing-04))}';export{r as ptc_link}