@ptcwebops/ptcw-design 0.0.7 → 0.0.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.
Files changed (32) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ptc-card.cjs.entry.js +11 -22
  3. package/dist/cjs/ptc-list.cjs.entry.js +7 -2
  4. package/dist/cjs/ptcw-design.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +0 -1
  6. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +4 -0
  7. package/dist/collection/components/ptc-card/ptc-card.css +76 -66
  8. package/dist/collection/components/ptc-card/ptc-card.js +55 -92
  9. package/dist/collection/components/ptc-list/ptc-list.js +14 -11
  10. package/dist/custom-elements/index.d.ts +0 -6
  11. package/dist/custom-elements/index.js +21 -74
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/esm/ptc-card.entry.js +11 -22
  14. package/dist/esm/ptc-list.entry.js +7 -2
  15. package/dist/esm/ptcw-design.js +1 -1
  16. package/dist/ptcw-design/assets/ptc-sprite.svg +4 -0
  17. package/dist/ptcw-design/p-7a63ca63.entry.js +1 -0
  18. package/dist/ptcw-design/p-7caa43ae.entry.js +1 -0
  19. package/dist/ptcw-design/ptcw-design.css +2 -2
  20. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  21. package/dist/types/components/ptc-card/ptc-card.d.ts +9 -15
  22. package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
  23. package/dist/types/components.d.ts +13 -82
  24. package/package.json +1 -1
  25. package/dist/cjs/ptc-ncard.cjs.entry.js +0 -50
  26. package/dist/collection/components/ptc-ncard/ptc-ncard.css +0 -3
  27. package/dist/collection/components/ptc-ncard/ptc-ncard.js +0 -162
  28. package/dist/esm/ptc-ncard.entry.js +0 -46
  29. package/dist/ptcw-design/p-15a428d4.entry.js +0 -1
  30. package/dist/ptcw-design/p-a802ffd7.entry.js +0 -1
  31. package/dist/ptcw-design/p-df01ac95.entry.js +0 -1
  32. package/dist/types/components/ptc-ncard/ptc-ncard.d.ts +0 -28
@@ -80,7 +80,7 @@ export namespace Components {
80
80
  /**
81
81
  * Card Type Specify Card Type, default to simple card
82
82
  */
83
- "cardType": 'simple-card' | 'lotti-image-card-1' | 'normal-image-card-1' | 'highlight-card';
83
+ "cardType": 'simple-card' | 'lottie-card' | 'custom-card';
84
84
  /**
85
85
  * If this card has Image
86
86
  */
@@ -96,19 +96,15 @@ export namespace Components {
96
96
  /**
97
97
  * Card heading
98
98
  */
99
- "heading": string;
100
- /**
101
- * Card Heading Arrow (Optional)
102
- */
103
- "headingArrow"?: boolean;
104
- /**
105
- * Heading Position These values are available: 'is-placed-left', 'is-placed-left', 'is-placed-right', 'is-placed-normal', 'is-placed-start' Default: "is-placed-left"
106
- */
107
- "headingPosition"?: string;
99
+ "heading"?: string;
108
100
  /**
109
101
  * (optional) Link card rel
110
102
  */
111
103
  "rel"?: string;
104
+ /**
105
+ * (optional) Injected CSS styles
106
+ */
107
+ "styles"?: string;
112
108
  /**
113
109
  * (optional) Link card target
114
110
  */
@@ -187,7 +183,7 @@ export namespace Components {
187
183
  "uppercase": boolean;
188
184
  }
189
185
  interface PtcList {
190
- "linkHref"?: string;
186
+ "listItems"?: string[];
191
187
  "listType": 'link-primary' | 'link-sub' | 'icon' | 'para-list';
192
188
  }
193
189
  interface PtcLottie {
@@ -232,32 +228,6 @@ export namespace Components {
232
228
  */
233
229
  "url": string;
234
230
  }
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
- }
261
231
  interface PtcOverlay {
262
232
  }
263
233
  interface PtcPara {
@@ -394,12 +364,6 @@ declare global {
394
364
  prototype: HTMLPtcNavItemElement;
395
365
  new (): HTMLPtcNavItemElement;
396
366
  };
397
- interface HTMLPtcNcardElement extends Components.PtcNcard, HTMLStencilElement {
398
- }
399
- var HTMLPtcNcardElement: {
400
- prototype: HTMLPtcNcardElement;
401
- new (): HTMLPtcNcardElement;
402
- };
403
367
  interface HTMLPtcOverlayElement extends Components.PtcOverlay, HTMLStencilElement {
404
368
  }
405
369
  var HTMLPtcOverlayElement: {
@@ -451,7 +415,6 @@ declare global {
451
415
  "ptc-lottie": HTMLPtcLottieElement;
452
416
  "ptc-nav": HTMLPtcNavElement;
453
417
  "ptc-nav-item": HTMLPtcNavItemElement;
454
- "ptc-ncard": HTMLPtcNcardElement;
455
418
  "ptc-overlay": HTMLPtcOverlayElement;
456
419
  "ptc-para": HTMLPtcParaElement;
457
420
  "ptc-picture": HTMLPtcPictureElement;
@@ -539,7 +502,7 @@ declare namespace LocalJSX {
539
502
  /**
540
503
  * Card Type Specify Card Type, default to simple card
541
504
  */
542
- "cardType"?: 'simple-card' | 'lotti-image-card-1' | 'normal-image-card-1' | 'highlight-card';
505
+ "cardType"?: 'simple-card' | 'lottie-card' | 'custom-card';
543
506
  /**
544
507
  * If this card has Image
545
508
  */
@@ -556,18 +519,14 @@ declare namespace LocalJSX {
556
519
  * Card heading
557
520
  */
558
521
  "heading"?: string;
559
- /**
560
- * Card Heading Arrow (Optional)
561
- */
562
- "headingArrow"?: boolean;
563
- /**
564
- * Heading Position These values are available: 'is-placed-left', 'is-placed-left', 'is-placed-right', 'is-placed-normal', 'is-placed-start' Default: "is-placed-left"
565
- */
566
- "headingPosition"?: string;
567
522
  /**
568
523
  * (optional) Link card rel
569
524
  */
570
525
  "rel"?: string;
526
+ /**
527
+ * (optional) Injected CSS styles
528
+ */
529
+ "styles"?: string;
571
530
  /**
572
531
  * (optional) Link card target
573
532
  */
@@ -646,7 +605,7 @@ declare namespace LocalJSX {
646
605
  "uppercase"?: boolean;
647
606
  }
648
607
  interface PtcList {
649
- "linkHref"?: string;
608
+ "listItems"?: string[];
650
609
  "listType"?: 'link-primary' | 'link-sub' | 'icon' | 'para-list';
651
610
  }
652
611
  interface PtcLottie {
@@ -695,32 +654,6 @@ declare namespace LocalJSX {
695
654
  */
696
655
  "url"?: string;
697
656
  }
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
- }
724
657
  interface PtcOverlay {
725
658
  }
726
659
  interface PtcPara {
@@ -786,7 +719,6 @@ declare namespace LocalJSX {
786
719
  "ptc-lottie": PtcLottie;
787
720
  "ptc-nav": PtcNav;
788
721
  "ptc-nav-item": PtcNavItem;
789
- "ptc-ncard": PtcNcard;
790
722
  "ptc-overlay": PtcOverlay;
791
723
  "ptc-para": PtcPara;
792
724
  "ptc-picture": PtcPicture;
@@ -813,7 +745,6 @@ declare module "@stencil/core" {
813
745
  "ptc-lottie": LocalJSX.PtcLottie & JSXBase.HTMLAttributes<HTMLPtcLottieElement>;
814
746
  "ptc-nav": LocalJSX.PtcNav & JSXBase.HTMLAttributes<HTMLPtcNavElement>;
815
747
  "ptc-nav-item": LocalJSX.PtcNavItem & JSXBase.HTMLAttributes<HTMLPtcNavItemElement>;
816
- "ptc-ncard": LocalJSX.PtcNcard & JSXBase.HTMLAttributes<HTMLPtcNcardElement>;
817
748
  "ptc-overlay": LocalJSX.PtcOverlay & JSXBase.HTMLAttributes<HTMLPtcOverlayElement>;
818
749
  "ptc-para": LocalJSX.PtcPara & JSXBase.HTMLAttributes<HTMLPtcParaElement>;
819
750
  "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.7",
3
+ "version": "0.0.8",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",
@@ -1,50 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-ac192914.js');
6
-
7
- const ptcNcardCss = ":host{display:block}";
8
-
9
- const PtcNcard = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Card Link URL (Optional)
14
- */
15
- this.cardHref = undefined;
16
- /**
17
- * (optional) Link card target
18
- * */
19
- this.target = '_self';
20
- /**
21
- * (optional) Link card rel
22
- * */
23
- this.rel = undefined;
24
- /**
25
- * If this card has Image
26
- */
27
- this.hasImage = false;
28
- /**
29
- * If this card has Video
30
- */
31
- this.hasVideo = false;
32
- /**
33
- * If this card has Lottie Image
34
- */
35
- this.hasLottie = false;
36
- }
37
- render() {
38
- const Tag = !!this.cardHref ? 'a' : 'div';
39
- const classMap = this.getCssClassMap();
40
- return (index.h(index.Host, null, index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (index.h("slot", { name: "slot-lottie" })) : null)) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, index.h("slot", { name: "slot-body" }))))));
41
- }
42
- getCssClassMap() {
43
- return {
44
- ['is-grid']: true,
45
- };
46
- }
47
- };
48
- PtcNcard.style = ptcNcardCss;
49
-
50
- exports.ptc_ncard = PtcNcard;
@@ -1,3 +0,0 @@
1
- :host {
2
- display: block;
3
- }
@@ -1,162 +0,0 @@
1
- import { Component, Prop, Host, h } from '@stencil/core';
2
- export class PtcNcard {
3
- constructor() {
4
- /**
5
- * Card Link URL (Optional)
6
- */
7
- this.cardHref = undefined;
8
- /**
9
- * (optional) Link card target
10
- * */
11
- this.target = '_self';
12
- /**
13
- * (optional) Link card rel
14
- * */
15
- this.rel = undefined;
16
- /**
17
- * If this card has Image
18
- */
19
- this.hasImage = false;
20
- /**
21
- * If this card has Video
22
- */
23
- this.hasVideo = false;
24
- /**
25
- * If this card has Lottie Image
26
- */
27
- this.hasLottie = false;
28
- }
29
- render() {
30
- const Tag = !!this.cardHref ? 'a' : 'div';
31
- const classMap = this.getCssClassMap();
32
- return (h(Host, null,
33
- h("div", { class: "card-border", part: "border-wrapper" },
34
- h(Tag, Object.assign({ class: classMap }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})),
35
- this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (h("slot", { name: "slot-lottie" })) : null)) : null,
36
- h("div", { class: "card-body", part: "body-wrapper" },
37
- h("slot", { name: "slot-body" }))))));
38
- }
39
- getCssClassMap() {
40
- return {
41
- ['is-grid']: true,
42
- };
43
- }
44
- static get is() { return "ptc-ncard"; }
45
- static get encapsulation() { return "shadow"; }
46
- static get originalStyleUrls() { return {
47
- "$": ["ptc-ncard.scss"]
48
- }; }
49
- static get styleUrls() { return {
50
- "$": ["ptc-ncard.css"]
51
- }; }
52
- static get properties() { return {
53
- "cardHref": {
54
- "type": "string",
55
- "mutable": false,
56
- "complexType": {
57
- "original": "string",
58
- "resolved": "string",
59
- "references": {}
60
- },
61
- "required": false,
62
- "optional": true,
63
- "docs": {
64
- "tags": [],
65
- "text": "Card Link URL (Optional)"
66
- },
67
- "attribute": "card-href",
68
- "reflect": false,
69
- "defaultValue": "undefined"
70
- },
71
- "target": {
72
- "type": "string",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "string",
76
- "resolved": "string",
77
- "references": {}
78
- },
79
- "required": false,
80
- "optional": true,
81
- "docs": {
82
- "tags": [],
83
- "text": "(optional) Link card target"
84
- },
85
- "attribute": "target",
86
- "reflect": false,
87
- "defaultValue": "'_self'"
88
- },
89
- "rel": {
90
- "type": "string",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "string",
94
- "resolved": "string",
95
- "references": {}
96
- },
97
- "required": false,
98
- "optional": true,
99
- "docs": {
100
- "tags": [],
101
- "text": "(optional) Link card rel"
102
- },
103
- "attribute": "rel",
104
- "reflect": false,
105
- "defaultValue": "undefined"
106
- },
107
- "hasImage": {
108
- "type": "boolean",
109
- "mutable": false,
110
- "complexType": {
111
- "original": "boolean",
112
- "resolved": "boolean",
113
- "references": {}
114
- },
115
- "required": false,
116
- "optional": false,
117
- "docs": {
118
- "tags": [],
119
- "text": "If this card has Image"
120
- },
121
- "attribute": "has-image",
122
- "reflect": false,
123
- "defaultValue": "false"
124
- },
125
- "hasVideo": {
126
- "type": "boolean",
127
- "mutable": false,
128
- "complexType": {
129
- "original": "boolean",
130
- "resolved": "boolean",
131
- "references": {}
132
- },
133
- "required": false,
134
- "optional": false,
135
- "docs": {
136
- "tags": [],
137
- "text": "If this card has Video"
138
- },
139
- "attribute": "has-video",
140
- "reflect": false,
141
- "defaultValue": "false"
142
- },
143
- "hasLottie": {
144
- "type": "boolean",
145
- "mutable": false,
146
- "complexType": {
147
- "original": "boolean",
148
- "resolved": "boolean",
149
- "references": {}
150
- },
151
- "required": false,
152
- "optional": false,
153
- "docs": {
154
- "tags": [],
155
- "text": "If this card has Lottie Image"
156
- },
157
- "attribute": "has-lottie",
158
- "reflect": false,
159
- "defaultValue": "false"
160
- }
161
- }; }
162
- }
@@ -1,46 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
-
3
- const ptcNcardCss = ":host{display:block}";
4
-
5
- const PtcNcard = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /**
9
- * Card Link URL (Optional)
10
- */
11
- this.cardHref = undefined;
12
- /**
13
- * (optional) Link card target
14
- * */
15
- this.target = '_self';
16
- /**
17
- * (optional) Link card rel
18
- * */
19
- this.rel = undefined;
20
- /**
21
- * If this card has Image
22
- */
23
- this.hasImage = false;
24
- /**
25
- * If this card has Video
26
- */
27
- this.hasVideo = false;
28
- /**
29
- * If this card has Lottie Image
30
- */
31
- this.hasLottie = false;
32
- }
33
- render() {
34
- const Tag = !!this.cardHref ? 'a' : 'div';
35
- const classMap = this.getCssClassMap();
36
- return (h(Host, null, h("div", { class: "card-border", part: "border-wrapper" }, h(Tag, Object.assign({ class: classMap }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.hasLottie ? (h("slot", { name: "slot-lottie" })) : null)) : null, h("div", { class: "card-body", part: "body-wrapper" }, h("slot", { name: "slot-body" }))))));
37
- }
38
- getCssClassMap() {
39
- return {
40
- ['is-grid']: true,
41
- };
42
- }
43
- };
44
- PtcNcard.style = ptcNcardCss;
45
-
46
- export { PtcNcard as ptc_ncard };
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as r}from"./p-4f366fc3.js";const l=class{constructor(i){t(this,i),this.listType="para-list",this.linkHref=void 0}render(){const t=this.getCssClassMap();return i(r,{class:t},i("li",null,this.linkHref?i("a",Object.assign({},this.linkHref?{href:this.linkHref}:{}),i("slot",null)):i("slot",null)))}getCssClassMap(){return{[this.listType]:!0}}};l.style="ptc-list .link-primary li{font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-normal);letter-spacing:var(--ptc-letter-spacing-normal);list-style:none}ptc-list .link-primary li:not(:last-child){margin-bottom:0.625rem}ptc-list .link-primary li a{color:var(--color-white);outline:none;text-decoration:none;font-family:Rajdhani;font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-normal);text-transform:uppercase;letter-spacing:var(--ptc-letter-spacing-normal)}ptc-list .link-primary li a:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-primary-green)}";export{l as ptc_list}
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as i}from"./p-4f366fc3.js";const r=class{constructor(t){s(this,t),this.cardHref=void 0,this.target="_self",this.rel=void 0,this.hasImage=!1,this.hasVideo=!1,this.hasLottie=!1}render(){const s=this.cardHref?"a":"div",r=this.getCssClassMap();return t(i,null,t("div",{class:"card-border",part:"border-wrapper"},t(s,Object.assign({class:r},this.cardHref?{href:this.cardHref}:{},this.target&&this.cardHref?{target:this.target}:{},this.rel&&this.cardHref?{rel:this.rel}:{}),this.hasImage||this.hasLottie||this.hasVideo?t("div",{class:"card-media",part:"media-wrapper"},this.hasLottie?t("slot",{name:"slot-lottie"}):null):null,t("div",{class:"card-body",part:"body-wrapper"},t("slot",{name:"slot-body"})))))}getCssClassMap(){return{"is-grid":!0}}};r.style=":host{display:block}";export{r as ptc_ncard}