@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.
- package/dist/cjs/{index-e5bb90c8.js → index-1be60996.js} +301 -5
- package/dist/cjs/index-1be60996.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-alert.cjs.entry.js +1 -1
- package/dist/cjs/p-badge.cjs.entry.js +34 -0
- package/dist/cjs/p-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/p-button.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/p-input-text.cjs.entry.js +2 -2
- package/dist/cjs/p-leaf.cjs.entry.js +26 -0
- package/dist/cjs/p-leaf.cjs.entry.js.map +1 -0
- package/dist/cjs/p-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/papierjs.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/badge/badge.css +3222 -0
- package/dist/collection/components/badge/badge.js +82 -0
- package/dist/collection/components/badge/badge.js.map +1 -0
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/input/input-text/input-text.js +1 -1
- package/dist/collection/components/leaf/leaf.css +3219 -0
- package/dist/collection/components/leaf/leaf.js +48 -0
- package/dist/collection/components/leaf/leaf.js.map +1 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-92aa42e7.js → p-81e1c3fa.js} +293 -5
- package/dist/components/p-81e1c3fa.js.map +1 -0
- package/dist/components/p-alert.js +1 -1
- package/dist/components/p-badge.d.ts +11 -0
- package/dist/components/p-badge.js +52 -0
- package/dist/components/p-badge.js.map +1 -0
- package/dist/components/p-button.js +2 -2
- package/dist/components/p-dropdown-item.js +2 -2
- package/dist/components/p-dropdown.js +3 -3
- package/dist/components/p-input-text.js +2 -2
- package/dist/components/p-leaf.d.ts +11 -0
- package/dist/components/p-leaf.js +42 -0
- package/dist/components/p-leaf.js.map +1 -0
- package/dist/components/p-progress-bar.js +2 -2
- package/dist/esm/{index-809c10ff.js → index-a242df70.js} +301 -5
- package/dist/esm/index-a242df70.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-alert.entry.js +1 -1
- package/dist/esm/p-badge.entry.js +30 -0
- package/dist/esm/p-badge.entry.js.map +1 -0
- package/dist/esm/p-button.entry.js +2 -2
- package/dist/esm/p-dropdown-item.entry.js +2 -2
- package/dist/esm/p-dropdown.entry.js +3 -3
- package/dist/esm/p-input-text.entry.js +2 -2
- package/dist/esm/p-leaf.entry.js +22 -0
- package/dist/esm/p-leaf.entry.js.map +1 -0
- package/dist/esm/p-progress-bar.entry.js +2 -2
- package/dist/esm/papierjs.js +3 -3
- package/dist/papierjs/{p-c3243b73.entry.js → p-0feb5c6d.entry.js} +2 -2
- package/dist/papierjs/{p-ce66a0db.entry.js → p-17353c7b.entry.js} +2 -2
- package/dist/papierjs/p-370e3431.entry.js +2 -0
- package/dist/papierjs/p-370e3431.entry.js.map +1 -0
- package/dist/papierjs/p-3c1781d8.js +3 -0
- package/dist/papierjs/p-3c1781d8.js.map +1 -0
- package/dist/papierjs/{p-99159731.entry.js → p-4199034f.entry.js} +2 -2
- package/dist/papierjs/{p-8e9a6ac4.entry.js → p-524777fc.entry.js} +2 -2
- package/dist/papierjs/{p-6e9110f7.entry.js → p-9cbdff58.entry.js} +3 -3
- package/dist/papierjs/{p-de62cf76.entry.js → p-aa9cca5f.entry.js} +2 -2
- package/dist/papierjs/p-b1a06c34.entry.js +2 -0
- package/dist/papierjs/p-b1a06c34.entry.js.map +1 -0
- package/dist/papierjs/papierjs.esm.js +1 -1
- package/dist/papierjs/papierjs.esm.js.map +1 -1
- package/dist/types/components/badge/badge.d.ts +9 -0
- package/dist/types/components/leaf/leaf.d.ts +5 -0
- package/dist/types/components.d.ts +32 -0
- package/package.json +3 -3
- package/readme.md +14 -6
- package/dist/cjs/index-e5bb90c8.js.map +0 -1
- package/dist/components/p-92aa42e7.js.map +0 -1
- package/dist/esm/index-809c10ff.js.map +0 -1
- package/dist/papierjs/p-45914d24.js +0 -3
- package/dist/papierjs/p-45914d24.js.map +0 -1
- /package/dist/papierjs/{p-c3243b73.entry.js.map → p-0feb5c6d.entry.js.map} +0 -0
- /package/dist/papierjs/{p-ce66a0db.entry.js.map → p-17353c7b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-99159731.entry.js.map → p-4199034f.entry.js.map} +0 -0
- /package/dist/papierjs/{p-8e9a6ac4.entry.js.map → p-524777fc.entry.js.map} +0 -0
- /package/dist/papierjs/{p-6e9110f7.entry.js.map → p-9cbdff58.entry.js.map} +0 -0
- /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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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"; }
|