@amiceli/papierjs 0.1.0 → 0.2.0

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 (85) hide show
  1. package/dist/cjs/{index-e5bb90c8.js → index-1be60996.js} +301 -5
  2. package/dist/cjs/index-1be60996.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/p-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/p-badge.cjs.entry.js +34 -0
  6. package/dist/cjs/p-badge.cjs.entry.js.map +1 -0
  7. package/dist/cjs/p-button.cjs.entry.js +2 -2
  8. package/dist/cjs/p-dropdown-item.cjs.entry.js +2 -2
  9. package/dist/cjs/p-dropdown.cjs.entry.js +3 -3
  10. package/dist/cjs/p-input-text.cjs.entry.js +2 -2
  11. package/dist/cjs/p-leaf.cjs.entry.js +26 -0
  12. package/dist/cjs/p-leaf.cjs.entry.js.map +1 -0
  13. package/dist/cjs/p-progress-bar.cjs.entry.js +2 -2
  14. package/dist/cjs/papierjs.cjs.js +2 -2
  15. package/dist/collection/collection-manifest.json +2 -0
  16. package/dist/collection/components/badge/badge.css +3222 -0
  17. package/dist/collection/components/badge/badge.js +82 -0
  18. package/dist/collection/components/badge/badge.js.map +1 -0
  19. package/dist/collection/components/button/button.js +1 -1
  20. package/dist/collection/components/dropdown/dropdown.js +2 -2
  21. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  22. package/dist/collection/components/input/input-text/input-text.js +1 -1
  23. package/dist/collection/components/leaf/leaf.css +3219 -0
  24. package/dist/collection/components/leaf/leaf.js +48 -0
  25. package/dist/collection/components/leaf/leaf.js.map +1 -0
  26. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  27. package/dist/components/index.js +1 -1
  28. package/dist/components/{p-92aa42e7.js → p-81e1c3fa.js} +293 -5
  29. package/dist/components/p-81e1c3fa.js.map +1 -0
  30. package/dist/components/p-alert.js +1 -1
  31. package/dist/components/p-badge.d.ts +11 -0
  32. package/dist/components/p-badge.js +52 -0
  33. package/dist/components/p-badge.js.map +1 -0
  34. package/dist/components/p-button.js +2 -2
  35. package/dist/components/p-dropdown-item.js +2 -2
  36. package/dist/components/p-dropdown.js +3 -3
  37. package/dist/components/p-input-text.js +2 -2
  38. package/dist/components/p-leaf.d.ts +11 -0
  39. package/dist/components/p-leaf.js +42 -0
  40. package/dist/components/p-leaf.js.map +1 -0
  41. package/dist/components/p-progress-bar.js +2 -2
  42. package/dist/esm/{index-809c10ff.js → index-a242df70.js} +301 -5
  43. package/dist/esm/index-a242df70.js.map +1 -0
  44. package/dist/esm/loader.js +3 -3
  45. package/dist/esm/p-alert.entry.js +1 -1
  46. package/dist/esm/p-badge.entry.js +30 -0
  47. package/dist/esm/p-badge.entry.js.map +1 -0
  48. package/dist/esm/p-button.entry.js +2 -2
  49. package/dist/esm/p-dropdown-item.entry.js +2 -2
  50. package/dist/esm/p-dropdown.entry.js +3 -3
  51. package/dist/esm/p-input-text.entry.js +2 -2
  52. package/dist/esm/p-leaf.entry.js +22 -0
  53. package/dist/esm/p-leaf.entry.js.map +1 -0
  54. package/dist/esm/p-progress-bar.entry.js +2 -2
  55. package/dist/esm/papierjs.js +3 -3
  56. package/dist/papierjs/{p-c3243b73.entry.js → p-0feb5c6d.entry.js} +2 -2
  57. package/dist/papierjs/{p-ce66a0db.entry.js → p-17353c7b.entry.js} +2 -2
  58. package/dist/papierjs/p-370e3431.entry.js +2 -0
  59. package/dist/papierjs/p-370e3431.entry.js.map +1 -0
  60. package/dist/papierjs/p-3c1781d8.js +3 -0
  61. package/dist/papierjs/p-3c1781d8.js.map +1 -0
  62. package/dist/papierjs/{p-99159731.entry.js → p-4199034f.entry.js} +2 -2
  63. package/dist/papierjs/{p-8e9a6ac4.entry.js → p-524777fc.entry.js} +2 -2
  64. package/dist/papierjs/{p-6e9110f7.entry.js → p-9cbdff58.entry.js} +3 -3
  65. package/dist/papierjs/{p-de62cf76.entry.js → p-aa9cca5f.entry.js} +2 -2
  66. package/dist/papierjs/p-b1a06c34.entry.js +2 -0
  67. package/dist/papierjs/p-b1a06c34.entry.js.map +1 -0
  68. package/dist/papierjs/papierjs.esm.js +1 -1
  69. package/dist/papierjs/papierjs.esm.js.map +1 -1
  70. package/dist/types/components/badge/badge.d.ts +9 -0
  71. package/dist/types/components/leaf/leaf.d.ts +5 -0
  72. package/dist/types/components.d.ts +32 -0
  73. package/package.json +3 -3
  74. package/readme.md +14 -6
  75. package/dist/cjs/index-e5bb90c8.js.map +0 -1
  76. package/dist/components/p-92aa42e7.js.map +0 -1
  77. package/dist/esm/index-809c10ff.js.map +0 -1
  78. package/dist/papierjs/p-45914d24.js +0 -3
  79. package/dist/papierjs/p-45914d24.js.map +0 -1
  80. /package/dist/papierjs/{p-c3243b73.entry.js.map → p-0feb5c6d.entry.js.map} +0 -0
  81. /package/dist/papierjs/{p-ce66a0db.entry.js.map → p-17353c7b.entry.js.map} +0 -0
  82. /package/dist/papierjs/{p-99159731.entry.js.map → p-4199034f.entry.js.map} +0 -0
  83. /package/dist/papierjs/{p-8e9a6ac4.entry.js.map → p-524777fc.entry.js.map} +0 -0
  84. /package/dist/papierjs/{p-6e9110f7.entry.js.map → p-9cbdff58.entry.js.map} +0 -0
  85. /package/dist/papierjs/{p-de62cf76.entry.js.map → p-aa9cca5f.entry.js.map} +0 -0
@@ -0,0 +1,82 @@
1
+ import { h } from "@stencil/core";
2
+ export class Alert {
3
+ constructor() {
4
+ this.type = undefined;
5
+ this.dark = false;
6
+ }
7
+ getParentClass() {
8
+ let cssClass = `papier`;
9
+ if (this.dark) {
10
+ cssClass = `${cssClass} is--dark`;
11
+ }
12
+ return cssClass;
13
+ }
14
+ getClass() {
15
+ return `badge ${this.type || ''}`;
16
+ }
17
+ render() {
18
+ return (h("span", { key: '8947da087996ec478bcc59b0c878c203cbe4ff10', class: this.getParentClass() }, h("span", { key: 'fc50c11ce3ed7c7ffe89c386f13f8a5613ead19f', class: this.getClass() }, h("slot", { key: '3b4f74d27a93595c92acec9522e963f5fbd9af01' }))));
19
+ }
20
+ static get is() { return "p-badge"; }
21
+ static get encapsulation() { return "shadow"; }
22
+ static get originalStyleUrls() {
23
+ return {
24
+ "$": ["badge.scss"]
25
+ };
26
+ }
27
+ static get styleUrls() {
28
+ return {
29
+ "$": ["badge.css"]
30
+ };
31
+ }
32
+ static get properties() {
33
+ return {
34
+ "type": {
35
+ "type": "string",
36
+ "mutable": false,
37
+ "complexType": {
38
+ "original": "BadgeColor",
39
+ "resolved": "\"danger\" | \"secondary\" | \"success\" | \"warning\"",
40
+ "references": {
41
+ "BadgeColor": {
42
+ "location": "global",
43
+ "id": "global::BadgeColor"
44
+ }
45
+ }
46
+ },
47
+ "required": false,
48
+ "optional": true,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": ""
52
+ },
53
+ "getter": false,
54
+ "setter": false,
55
+ "attribute": "type",
56
+ "reflect": false,
57
+ "defaultValue": "undefined"
58
+ },
59
+ "dark": {
60
+ "type": "boolean",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "boolean",
64
+ "resolved": "boolean",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": true,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": ""
72
+ },
73
+ "getter": false,
74
+ "setter": false,
75
+ "attribute": "dark",
76
+ "reflect": false,
77
+ "defaultValue": "false"
78
+ }
79
+ };
80
+ }
81
+ }
82
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AASlD,MAAM,OAAO,KAAK;IALlB;QAOI,SAAI,GAAgB,SAAS,CAAA;QAE7B,SAAI,GAAa,KAAK,CAAA;KAyBzB;IAvBU,cAAc;QACjB,IAAI,QAAQ,GAAG,QAAQ,CAAA;QAEvB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,QAAQ,GAAG,GAAG,QAAQ,WAAW,CAAA;QACrC,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;IAEM,QAAQ;QACX,OAAO,SAAS,IAAI,CAAC,IAAI,IAAI,EAAE,EAAE,CAAA;IACrC,CAAC;IAED,MAAM;QACF,OAAO,CACH,6DAAM,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE;YAC9B,6DAAM,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACxB,8DAAQ,CACL,CACJ,CACV,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from '@stencil/core'\n\ntype BadgeColor = 'secondary' | 'success' | 'warning' | 'danger'\n\n@Component({\n tag: 'p-badge',\n styleUrl: 'badge.scss',\n shadow: true,\n})\nexport class Alert {\n @Prop()\n type?: BadgeColor = undefined\n @Prop()\n dark?: boolean = false\n\n public getParentClass() {\n let cssClass = `papier`\n\n if (this.dark) {\n cssClass = `${cssClass} is--dark`\n }\n\n return cssClass\n }\n\n public getClass() {\n return `badge ${this.type || ''}`\n }\n\n render() {\n return (\n <span class={this.getParentClass()}>\n <span class={this.getClass()}>\n <slot />\n </span>\n </span>\n )\n }\n}\n"]}
@@ -38,7 +38,7 @@ export class Button {
38
38
  return cssClass;
39
39
  }
40
40
  render() {
41
- return (h("div", { key: '597893e05d6a5a2432e4a4aa0ec7ea4e5934c657', class: this.getParentClass() }, h("button", { key: '0fa7c40002b479f0cf80fee09976357b61d00d4c', disabled: this.disabled, type: "button", class: this.getClass() }, h("slot", { key: '489bc0c324547c9f8ac1ac475cf8a27b66324a98' }))));
41
+ return (h("div", { key: '102c3aea93dea15e705a1ba57326c1f2c5748e16', class: this.getParentClass() }, h("button", { key: 'c2ef895fac2e3cff008c2fa446a5d0fd49defdfd', disabled: this.disabled, type: "button", class: this.getClass() }, h("slot", { key: '1c9ad05b9580c33c6e6f89ffb0cb84bf3f635243' }))));
42
42
  }
43
43
  static get is() { return "p-button"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -48,9 +48,9 @@ export class Alert {
48
48
  render() {
49
49
  const selected = this.getSelectedValue();
50
50
  const arrowIcon = feather.icons['chevron-down'].toSvg();
51
- return (h("div", { key: '002a7bfa5e5a36233fbd47863293d73467ca774a', class: this.getParentClass() }, h("div", { key: 'ea64fcb682d0e76f00bf73e97e9a3a553b78ee3a', class: "dropdown__header border border-primary", onClick: () => {
51
+ return (h("div", { key: '9267bc78025abeecd0bc726dcfe821aee868460d', class: this.getParentClass() }, h("div", { key: '8824eb5a51fec062d691130a71acf8bb18fb8119', class: "dropdown__header border border-primary", onClick: () => {
52
52
  this.open = !this.open;
53
- } }, h("span", { key: 'c48011555dcbbd1a889961dad4ed4729cd1179dc' }, selected), h("span", { key: 'dd4a5176c381eaa15688d67076a8078d9e7da163', class: "for--icon", innerHTML: arrowIcon })), h("div", { key: '19c9a60f2d163bd9bc5c8a1579fa1afc099942d8', class: "dropdown__children" }, h("slot", { key: 'ce9d8b28fe0f9421f5b3023056bb20455729d8cd' }))));
53
+ } }, h("span", { key: '83643aad843f3a54b989fea80164c2a4f316b674' }, selected), h("span", { key: '0aabe82681e645e3c1c8fa492d7d133b26db2599', class: "for--icon", innerHTML: arrowIcon })), h("div", { key: '0058f2115ad9891e10f3c56c5d8de147f4970ca5', class: "dropdown__children" }, h("slot", { key: 'da55754f87fc902893a51fd1be4301d3b27e25f7' }))));
54
54
  }
55
55
  static get is() { return "p-dropdown"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class Alert {
15
15
  this.changeEvent.emit(this.value);
16
16
  }
17
17
  render() {
18
- return (h("div", { key: '543df4195168fbce2f872da8f2f66e92bcf2f32e', class: this.getParentClass(), onClick: () => this.sendClick() }, h("div", { key: 'ea21c2644e2020afa722b4f1492afc8875086edd', class: "border border-primary" }, h("slot", { key: '9df042457b82b7e88f3b12e7431b51c02919be61' }))));
18
+ return (h("div", { key: 'cbfa41e3df447562cfe2f3e75b4e9c71bf55a438', class: this.getParentClass(), onClick: () => this.sendClick() }, h("div", { key: 'e17717f3f982eb2b59ef4fc088e59adebb36dd33', class: "border border-primary" }, h("slot", { key: 'f69cd73c7416e8f19cd77d78ad019e48d0d4e93d' }))));
19
19
  }
20
20
  static get is() { return "p-dropdown-item"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -25,7 +25,7 @@ export class InputText {
25
25
  this.changeEvent.emit(e.target.value);
26
26
  }
27
27
  render() {
28
- return (h("div", { key: '6f21cd264cc73d32e61814a02ee06b2e029ef7c0', class: this.getParentClass() }, this.label && (h("label", { key: '49de6b7cd6d184726bd9b707a472efd475aa50d5', htmlFor: "paperInputs1" }, this.label, this.required ? '*' : '')), h("input", { key: '6e051636164ab41b8f14a312ce7c6827c48349b4', type: "text", placeholder: this.placeholder, id: "paperInputs1", disabled: this.disabled, value: this.value, onChange: (e) => this.onChange(e) })));
28
+ return (h("div", { key: 'e33b740772e27d4523130c4eeee2893595269235', class: this.getParentClass() }, this.label && (h("label", { key: 'a14fbd5465a9f40c807211afcc587d5f4198925d', htmlFor: "paperInputs1" }, this.label, this.required ? '*' : '')), h("input", { key: 'b5a644a95747494d77c15d36cf055b4a8244561a', type: "text", placeholder: this.placeholder, id: "paperInputs1", disabled: this.disabled, value: this.value, onChange: (e) => this.onChange(e) })));
29
29
  }
30
30
  static get is() { return "p-input-text"; }
31
31
  static get encapsulation() { return "shadow"; }