@jumpgroup/jump-design-system 0.1.3 → 0.1.5
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/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/{index-168ed626.js → index-46644e39.js} +503 -152
- package/dist/cjs/index-46644e39.js.map +1 -0
- package/dist/cjs/jump-button.cjs.entry.js +35 -0
- package/dist/cjs/jump-button.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-design-system.cjs.js +6 -4
- package/dist/cjs/jump-design-system.cjs.js.map +1 -1
- package/dist/cjs/{app-icon.cjs.entry.js → jump-icon.cjs.entry.js} +22 -33
- package/dist/cjs/jump-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-pagination.cjs.entry.js +35 -0
- package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +5 -4
- package/dist/collection/components/app-icon/{app-icon.css → jump-icon.css} +2 -2
- package/dist/collection/components/app-icon/jump-icon.js +64 -0
- package/dist/collection/components/app-icon/jump-icon.js.map +1 -0
- package/dist/collection/components/app-icon/jump-icon.stories.js +25 -0
- package/dist/collection/components/app-icon/jump-icon.stories.js.map +1 -0
- package/dist/collection/components/app-icon/test/jump-icon.e2e.js +10 -0
- package/dist/collection/components/app-icon/test/jump-icon.e2e.js.map +1 -0
- package/dist/collection/components/app-icon/test/jump-icon.spec.js +18 -0
- package/dist/collection/components/app-icon/test/jump-icon.spec.js.map +1 -0
- package/dist/collection/components/jump-button/jump-button.css +107 -0
- package/dist/collection/components/jump-button/jump-button.js +270 -0
- package/dist/collection/components/jump-button/jump-button.js.map +1 -0
- package/dist/collection/components/jump-button/jump-button.stories.js +344 -0
- package/dist/collection/components/jump-button/jump-button.stories.js.map +1 -0
- package/dist/collection/components/jump-button/test/jump-button.e2e.js +10 -0
- package/dist/collection/components/jump-button/test/jump-button.e2e.js.map +1 -0
- package/dist/collection/components/jump-button/test/jump-button.spec.js +18 -0
- package/dist/collection/components/jump-button/test/jump-button.spec.js.map +1 -0
- package/dist/collection/components/jump-pagination/jump-pagination.css +43 -0
- package/dist/collection/components/jump-pagination/jump-pagination.js +180 -0
- package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -0
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js +116 -0
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -0
- package/dist/collection/components/jump-pagination/test/jump-pagination.e2e.js +10 -0
- package/dist/collection/components/jump-pagination/test/jump-pagination.e2e.js.map +1 -0
- package/dist/collection/components/jump-pagination/test/jump-pagination.spec.js +18 -0
- package/dist/collection/components/jump-pagination/test/jump-pagination.spec.js.map +1 -0
- package/dist/collection/utils/utils.js +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +12 -12
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{app-button.d.ts → jump-button.d.ts} +4 -4
- package/dist/components/jump-button.js +62 -0
- package/dist/components/jump-button.js.map +1 -0
- package/dist/components/{app-icon.d.ts → jump-icon.d.ts} +4 -4
- package/dist/components/jump-icon.js +8 -0
- package/dist/components/jump-icon.js.map +1 -0
- package/dist/components/{app-icon.js → jump-icon2.js} +39 -53
- package/dist/components/jump-icon2.js.map +1 -0
- package/dist/components/jump-pagination.d.ts +11 -0
- package/dist/components/jump-pagination.js +63 -0
- package/dist/components/jump-pagination.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/{index-330d1de1.js → index-b0176170.js} +503 -152
- package/dist/esm/index-b0176170.js.map +1 -0
- package/dist/esm/jump-button.entry.js +31 -0
- package/dist/esm/jump-button.entry.js.map +1 -0
- package/dist/esm/jump-design-system.js +7 -5
- package/dist/esm/jump-design-system.js.map +1 -1
- package/dist/esm/{app-icon.entry.js → jump-icon.entry.js} +22 -33
- package/dist/esm/jump-icon.entry.js.map +1 -0
- package/dist/esm/jump-pagination.entry.js +31 -0
- package/dist/esm/jump-pagination.entry.js.map +1 -0
- package/dist/esm/loader.js +7 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-0d2b55a8.entry.js +2 -0
- package/dist/jump-design-system/p-0d2b55a8.entry.js.map +1 -0
- package/dist/jump-design-system/{p-e8515cce.entry.js → p-3cbc3a68.entry.js} +3 -3
- package/dist/jump-design-system/p-3cbc3a68.entry.js.map +1 -0
- package/dist/jump-design-system/p-68bce598.js +3 -0
- package/dist/jump-design-system/p-68bce598.js.map +1 -0
- package/dist/jump-design-system/p-9e6ea006.entry.js +2 -0
- package/dist/jump-design-system/p-9e6ea006.entry.js.map +1 -0
- package/dist/jump-design-system/p-e1255160.js +2 -0
- package/dist/jump-design-system/p-e1255160.js.map +1 -0
- package/dist/jump-design-system-elements.json +92 -3
- package/dist/types/components/app-icon/jump-icon.d.ts +12 -0
- package/dist/types/components/app-icon/jump-icon.stories.d.ts +19 -0
- package/dist/types/components/jump-button/jump-button.d.ts +55 -0
- package/dist/types/components/jump-button/jump-button.stories.d.ts +157 -0
- package/dist/types/components/jump-pagination/jump-pagination.d.ts +26 -0
- package/dist/types/components/jump-pagination/jump-pagination.stories.d.ts +71 -0
- package/dist/types/components.d.ts +123 -22
- package/dist/types/stencil-public-runtime.d.ts +46 -5
- package/loader/index.d.ts +1 -1
- package/package.json +2 -2
- package/readme.md +33 -66
- package/dist/cjs/app-button.cjs.entry.js +0 -28
- package/dist/cjs/app-button.cjs.entry.js.map +0 -1
- package/dist/cjs/app-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/index-168ed626.js.map +0 -1
- package/dist/collection/components/app-button/app-button.css +0 -107
- package/dist/collection/components/app-button/app-button.js +0 -157
- package/dist/collection/components/app-button/app-button.js.map +0 -1
- package/dist/collection/components/app-button/app-button.stories.js +0 -227
- package/dist/collection/components/app-button/app-button.stories.js.map +0 -1
- package/dist/collection/components/app-button/test/app-button.e2e.js +0 -10
- package/dist/collection/components/app-button/test/app-button.e2e.js.map +0 -1
- package/dist/collection/components/app-button/test/app-button.spec.js +0 -18
- package/dist/collection/components/app-button/test/app-button.spec.js.map +0 -1
- package/dist/collection/components/app-icon/app-icon.js +0 -64
- package/dist/collection/components/app-icon/app-icon.js.map +0 -1
- package/dist/collection/components/app-icon/app-icon.stories.js +0 -25
- package/dist/collection/components/app-icon/app-icon.stories.js.map +0 -1
- package/dist/collection/components/app-icon/test/app-icon.e2e.js +0 -10
- package/dist/collection/components/app-icon/test/app-icon.e2e.js.map +0 -1
- package/dist/collection/components/app-icon/test/app-icon.spec.js +0 -18
- package/dist/collection/components/app-icon/test/app-icon.spec.js.map +0 -1
- package/dist/components/app-button.js +0 -49
- package/dist/components/app-button.js.map +0 -1
- package/dist/components/app-icon.js.map +0 -1
- package/dist/esm/app-button.entry.js +0 -24
- package/dist/esm/app-button.entry.js.map +0 -1
- package/dist/esm/app-icon.entry.js.map +0 -1
- package/dist/esm/index-330d1de1.js.map +0 -1
- package/dist/jump-design-system/p-28b9ffd5.js +0 -3
- package/dist/jump-design-system/p-28b9ffd5.js.map +0 -1
- package/dist/jump-design-system/p-da4d9423.entry.js +0 -2
- package/dist/jump-design-system/p-da4d9423.entry.js.map +0 -1
- package/dist/jump-design-system/p-e8515cce.entry.js.map +0 -1
- package/dist/types/components/app-button/app-button.d.ts +0 -31
- package/dist/types/components/app-button/app-button.stories.d.ts +0 -95
- package/dist/types/components/app-icon/app-icon.d.ts +0 -12
- package/dist/types/components/app-icon/app-icon.stories.d.ts +0 -19
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class AppButton {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.disabled = false;
|
|
5
|
-
this.variant = 'primary';
|
|
6
|
-
this.outline = false;
|
|
7
|
-
this.size = 'medium';
|
|
8
|
-
this.pill = false;
|
|
9
|
-
this.text = false;
|
|
10
|
-
this.onlyIcon = false;
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (h(Host, null, h("button", { "data-variant": this.variant, "data-outline": this.outline, "data-size": this.size, "data-pill": this.pill, "data-text": this.text, "data-only-icon": this.onlyIcon, disabled: this.disabled }, h("slot", { name: "prefix" }), !this.onlyIcon && h("slot", null), h("slot", { name: "suffix" }))));
|
|
14
|
-
}
|
|
15
|
-
static get is() { return "app-button"; }
|
|
16
|
-
static get originalStyleUrls() {
|
|
17
|
-
return {
|
|
18
|
-
"$": ["app-button.scss"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get styleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["app-button.css"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
static get properties() {
|
|
27
|
-
return {
|
|
28
|
-
"disabled": {
|
|
29
|
-
"type": "boolean",
|
|
30
|
-
"mutable": false,
|
|
31
|
-
"complexType": {
|
|
32
|
-
"original": "boolean",
|
|
33
|
-
"resolved": "boolean",
|
|
34
|
-
"references": {}
|
|
35
|
-
},
|
|
36
|
-
"required": false,
|
|
37
|
-
"optional": false,
|
|
38
|
-
"docs": {
|
|
39
|
-
"tags": [],
|
|
40
|
-
"text": "Set the button as disabled"
|
|
41
|
-
},
|
|
42
|
-
"attribute": "disabled",
|
|
43
|
-
"reflect": false,
|
|
44
|
-
"defaultValue": "false"
|
|
45
|
-
},
|
|
46
|
-
"variant": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"mutable": false,
|
|
49
|
-
"complexType": {
|
|
50
|
-
"original": "'primary'|'secondary'|'tertiary'",
|
|
51
|
-
"resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
|
|
52
|
-
"references": {}
|
|
53
|
-
},
|
|
54
|
-
"required": false,
|
|
55
|
-
"optional": false,
|
|
56
|
-
"docs": {
|
|
57
|
-
"tags": [],
|
|
58
|
-
"text": "Indicates the variant of the button"
|
|
59
|
-
},
|
|
60
|
-
"attribute": "variant",
|
|
61
|
-
"reflect": true,
|
|
62
|
-
"defaultValue": "'primary'"
|
|
63
|
-
},
|
|
64
|
-
"outline": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"mutable": false,
|
|
67
|
-
"complexType": {
|
|
68
|
-
"original": "boolean",
|
|
69
|
-
"resolved": "boolean",
|
|
70
|
-
"references": {}
|
|
71
|
-
},
|
|
72
|
-
"required": false,
|
|
73
|
-
"optional": false,
|
|
74
|
-
"docs": {
|
|
75
|
-
"tags": [],
|
|
76
|
-
"text": "Indicates the button as outline"
|
|
77
|
-
},
|
|
78
|
-
"attribute": "outline",
|
|
79
|
-
"reflect": true,
|
|
80
|
-
"defaultValue": "false"
|
|
81
|
-
},
|
|
82
|
-
"size": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"mutable": false,
|
|
85
|
-
"complexType": {
|
|
86
|
-
"original": "string",
|
|
87
|
-
"resolved": "string",
|
|
88
|
-
"references": {}
|
|
89
|
-
},
|
|
90
|
-
"required": false,
|
|
91
|
-
"optional": false,
|
|
92
|
-
"docs": {
|
|
93
|
-
"tags": [],
|
|
94
|
-
"text": "Indicates the size of the button"
|
|
95
|
-
},
|
|
96
|
-
"attribute": "size",
|
|
97
|
-
"reflect": true,
|
|
98
|
-
"defaultValue": "'medium'"
|
|
99
|
-
},
|
|
100
|
-
"pill": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "boolean",
|
|
105
|
-
"resolved": "boolean",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": "Indicates the button as pill"
|
|
113
|
-
},
|
|
114
|
-
"attribute": "pill",
|
|
115
|
-
"reflect": true,
|
|
116
|
-
"defaultValue": "false"
|
|
117
|
-
},
|
|
118
|
-
"text": {
|
|
119
|
-
"type": "boolean",
|
|
120
|
-
"mutable": false,
|
|
121
|
-
"complexType": {
|
|
122
|
-
"original": "boolean",
|
|
123
|
-
"resolved": "boolean",
|
|
124
|
-
"references": {}
|
|
125
|
-
},
|
|
126
|
-
"required": false,
|
|
127
|
-
"optional": false,
|
|
128
|
-
"docs": {
|
|
129
|
-
"tags": [],
|
|
130
|
-
"text": "Indicates the button as text"
|
|
131
|
-
},
|
|
132
|
-
"attribute": "text",
|
|
133
|
-
"reflect": true,
|
|
134
|
-
"defaultValue": "false"
|
|
135
|
-
},
|
|
136
|
-
"onlyIcon": {
|
|
137
|
-
"type": "boolean",
|
|
138
|
-
"mutable": false,
|
|
139
|
-
"complexType": {
|
|
140
|
-
"original": "boolean",
|
|
141
|
-
"resolved": "boolean",
|
|
142
|
-
"references": {}
|
|
143
|
-
},
|
|
144
|
-
"required": false,
|
|
145
|
-
"optional": false,
|
|
146
|
-
"docs": {
|
|
147
|
-
"tags": [],
|
|
148
|
-
"text": "Indicates the button as only icon"
|
|
149
|
-
},
|
|
150
|
-
"attribute": "only-icon",
|
|
151
|
-
"reflect": true,
|
|
152
|
-
"defaultValue": "false"
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=app-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-button.js","sourceRoot":"","sources":["../../../src/components/app-button/app-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,SAAS;;oBAIQ,KAAK;mBAKkC,SAAS;mBAKlC,KAAK;gBAKT,QAAQ;gBAKP,KAAK;gBAKL,KAAK;oBAKD,KAAK;;EAEhD,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,8BAAsB,IAAI,CAAC,OAAO,kBAAgB,IAAI,CAAC,OAAO,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,eAAa,IAAI,CAAC,IAAI,oBAAkB,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACtL,YAAM,IAAI,EAAC,QAAQ,GAAQ;QAEzB,CAAC,IAAI,CAAC,QAAQ,IAAI,eAAa;QAEjC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACpB,CACJ,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'app-button',\n styleUrl: 'app-button.scss',\n shadow: false,\n})\nexport class AppButton {\n /**\n * Set the button as disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates the variant of the button\n */\n @Prop({reflect: true}) variant: 'primary'|'secondary'|'tertiary' = 'primary';\n\n /**\n * Indicates the button as outline\n */\n @Prop({reflect: true}) outline: boolean = false;\n\n /**\n * Indicates the size of the button\n */\n @Prop({reflect: true}) size: string = 'medium';\n\n /**\n * Indicates the button as pill\n */\n @Prop({reflect: true}) pill: boolean = false;\n\n /**\n * Indicates the button as text\n */\n @Prop({reflect: true}) text: boolean = false;\n\n /**\n * Indicates the button as only icon\n **/\n @Prop({reflect: true}) onlyIcon: boolean = false;\n\n render() {\n return (\n <Host>\n <button data-variant={this.variant} data-outline={this.outline} data-size={this.size} data-pill={this.pill} data-text={this.text} data-only-icon={this.onlyIcon} disabled={this.disabled} >\n <slot name=\"prefix\"></slot>\n {\n !this.onlyIcon && <slot></slot>\n }\n <slot name=\"suffix\"></slot>\n </button>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import feather from "feather-icons";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Atoms/Button',
|
|
4
|
-
tags: ['autodocs'],
|
|
5
|
-
argTypes: {
|
|
6
|
-
label: {
|
|
7
|
-
name: 'Etichetta',
|
|
8
|
-
description: 'Imposta il testo del bottone',
|
|
9
|
-
control: 'text'
|
|
10
|
-
},
|
|
11
|
-
variant: {
|
|
12
|
-
name: 'Variante',
|
|
13
|
-
description: 'Imposta la variante di colore del bottone',
|
|
14
|
-
control: 'select',
|
|
15
|
-
options: [
|
|
16
|
-
'primary',
|
|
17
|
-
'secondary'
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
outline: {
|
|
21
|
-
name: 'Outline',
|
|
22
|
-
description: 'Imposta se il bottone deve avere il solo bordo',
|
|
23
|
-
control: 'boolean'
|
|
24
|
-
},
|
|
25
|
-
size: {
|
|
26
|
-
name: 'Dimensione',
|
|
27
|
-
description: 'Imposta la dimensione del bottone',
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: [
|
|
30
|
-
'small',
|
|
31
|
-
'medium',
|
|
32
|
-
'large'
|
|
33
|
-
],
|
|
34
|
-
labels: {
|
|
35
|
-
small: 'Piccolo',
|
|
36
|
-
medium: 'Medio',
|
|
37
|
-
large: 'Grande'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
pill: {
|
|
41
|
-
name: 'Bordo a Pillola',
|
|
42
|
-
description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',
|
|
43
|
-
control: 'boolean'
|
|
44
|
-
},
|
|
45
|
-
disabled: {
|
|
46
|
-
name: 'Disabilitato',
|
|
47
|
-
description: 'Imposta se il bottone deve essere disabilitato',
|
|
48
|
-
control: 'boolean'
|
|
49
|
-
},
|
|
50
|
-
text: {
|
|
51
|
-
name: 'Testo',
|
|
52
|
-
description: 'Imposta se il bottone essere solo testo, quindi senza bordo, sfondo e padding',
|
|
53
|
-
control: 'boolean'
|
|
54
|
-
},
|
|
55
|
-
showIcon: {
|
|
56
|
-
name: 'Mostra Icona',
|
|
57
|
-
description: 'Imposta se il bottone deve mostrare un\'icona',
|
|
58
|
-
control: 'boolean'
|
|
59
|
-
},
|
|
60
|
-
iconOnly: {
|
|
61
|
-
name: 'Mostra solo Icona',
|
|
62
|
-
description: 'Imposta se il bottone deve mostrare solo l\'icona',
|
|
63
|
-
control: 'boolean',
|
|
64
|
-
if: {
|
|
65
|
-
arg: 'showIcon',
|
|
66
|
-
eq: true
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
iconName: {
|
|
70
|
-
name: 'Nome Icona',
|
|
71
|
-
control: 'select',
|
|
72
|
-
options: Object.keys(feather.icons),
|
|
73
|
-
description: 'Seleziona il nome dell\'icona dal menu a tendina',
|
|
74
|
-
defaultValue: Object.keys(feather.icons)[0],
|
|
75
|
-
if: {
|
|
76
|
-
arg: 'showIcon',
|
|
77
|
-
eq: true
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
iconPosition: {
|
|
81
|
-
name: 'Posizione Icona',
|
|
82
|
-
description: 'Imposta la posizione dell\'icona',
|
|
83
|
-
defaultValue: 'left',
|
|
84
|
-
control: 'select',
|
|
85
|
-
options: [
|
|
86
|
-
'left',
|
|
87
|
-
'right'
|
|
88
|
-
],
|
|
89
|
-
if: {
|
|
90
|
-
arg: 'showIcon',
|
|
91
|
-
eq: true
|
|
92
|
-
},
|
|
93
|
-
labels: {
|
|
94
|
-
left: 'Sinistra',
|
|
95
|
-
right: 'Destra'
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
// regular expression to remove all the spaces indenting the template string
|
|
101
|
-
const Template = (args) => `${!args.label && !args.showIcon ? 'Errore nella configurazione del bottone' :
|
|
102
|
-
`<app-button variant="${args.variant}" size="${args.size}"${args.disabled == true ? ' disabled' : ''}${args.pill == true ? ' pill' : ''}${args.outline == true ? ' outline' : ''}${args.text == true ? ' text' : ''}${!args.label || args.iconOnly ? ' only-icon' : ''}>
|
|
103
|
-
${args.iconPosition == 'left' && args.showIcon ? `<app-icon slot="prefix" name="${args.iconName}"></app-icon>` : ''}
|
|
104
|
-
${!args.iconOnly ? args.label : ''}
|
|
105
|
-
${args.iconPosition == 'right' && args.showIcon ? `<app-icon slot="suffix" name="${args.iconName}"></app-icon>` : ''}
|
|
106
|
-
</app-button>`.replace(/\s\s+/g, '')}`;
|
|
107
|
-
export const Primary = Template.bind({});
|
|
108
|
-
Primary.args = {
|
|
109
|
-
label: 'Primary',
|
|
110
|
-
variant: 'primary',
|
|
111
|
-
outline: false,
|
|
112
|
-
pill: false,
|
|
113
|
-
size: 'medium',
|
|
114
|
-
disabled: false,
|
|
115
|
-
text: false,
|
|
116
|
-
showIcon: false,
|
|
117
|
-
iconOnly: false,
|
|
118
|
-
iconName: Object.keys(feather.icons)[0],
|
|
119
|
-
iconPosition: 'left'
|
|
120
|
-
};
|
|
121
|
-
export const OutlinePrimary = Template.bind({});
|
|
122
|
-
OutlinePrimary.args = {
|
|
123
|
-
label: 'Outline Primary',
|
|
124
|
-
variant: 'primary',
|
|
125
|
-
outline: true,
|
|
126
|
-
pill: false,
|
|
127
|
-
size: 'medium',
|
|
128
|
-
disabled: false,
|
|
129
|
-
text: false,
|
|
130
|
-
showIcon: false,
|
|
131
|
-
iconOnly: false,
|
|
132
|
-
iconName: Object.keys(feather.icons)[0],
|
|
133
|
-
iconPosition: 'left'
|
|
134
|
-
};
|
|
135
|
-
export const PillPrimary = Template.bind({});
|
|
136
|
-
PillPrimary.args = {
|
|
137
|
-
label: 'Pill Primary',
|
|
138
|
-
variant: 'primary',
|
|
139
|
-
outline: false,
|
|
140
|
-
pill: true,
|
|
141
|
-
size: 'medium',
|
|
142
|
-
disabled: false,
|
|
143
|
-
text: false,
|
|
144
|
-
showIcon: false,
|
|
145
|
-
iconOnly: false,
|
|
146
|
-
iconName: Object.keys(feather.icons)[0],
|
|
147
|
-
iconPosition: 'left'
|
|
148
|
-
};
|
|
149
|
-
export const OutlinePillPrimary = Template.bind({});
|
|
150
|
-
OutlinePillPrimary.args = {
|
|
151
|
-
label: 'Pill Primary',
|
|
152
|
-
variant: 'primary',
|
|
153
|
-
outline: true,
|
|
154
|
-
pill: true,
|
|
155
|
-
size: 'medium',
|
|
156
|
-
disabled: false,
|
|
157
|
-
text: false,
|
|
158
|
-
showIcon: false,
|
|
159
|
-
iconOnly: false,
|
|
160
|
-
iconName: Object.keys(feather.icons)[0],
|
|
161
|
-
iconPosition: 'left'
|
|
162
|
-
};
|
|
163
|
-
export const Disabled = Template.bind({});
|
|
164
|
-
Disabled.args = {
|
|
165
|
-
label: 'Disabled',
|
|
166
|
-
variant: 'primary',
|
|
167
|
-
outline: false,
|
|
168
|
-
pill: false,
|
|
169
|
-
size: 'medium',
|
|
170
|
-
disabled: true,
|
|
171
|
-
text: false,
|
|
172
|
-
showIcon: false,
|
|
173
|
-
iconOnly: false,
|
|
174
|
-
iconName: Object.keys(feather.icons)[0],
|
|
175
|
-
iconPosition: 'left'
|
|
176
|
-
};
|
|
177
|
-
export const Text = Template.bind({});
|
|
178
|
-
Text.args = {
|
|
179
|
-
label: 'Text',
|
|
180
|
-
variant: 'secondary',
|
|
181
|
-
outline: false,
|
|
182
|
-
pill: false,
|
|
183
|
-
size: 'medium',
|
|
184
|
-
disabled: false,
|
|
185
|
-
text: true,
|
|
186
|
-
showIcon: false,
|
|
187
|
-
iconOnly: false,
|
|
188
|
-
iconName: Object.keys(feather.icons)[0],
|
|
189
|
-
iconPosition: 'left'
|
|
190
|
-
};
|
|
191
|
-
// const TemplateWithIcon = (args) => `<app-button variant="${args.variant}" size="${args.size}"${args.disabled == true ? ' disabled' : ''}${args.pill == true ? ' pill' : ''}${args.outline == true ? ' outline' : ''}${args.text == true ? ' text' : ''}>
|
|
192
|
-
// ${args.iconPosition == 'left' && args.showIcon ? `<app-icon slot="prefix" name="${args.iconName}"></app-icon>` : ''}
|
|
193
|
-
// ${args.label}
|
|
194
|
-
// ${args.iconPosition == 'right' && args.showIcon ? `<app-icon slot="suffix" name="${args.iconName}"></app-icon>` : ''}
|
|
195
|
-
// </app-button>`;
|
|
196
|
-
// export const WithIcon = TemplateWithIcon.bind({});
|
|
197
|
-
// WithIcon.args = {
|
|
198
|
-
// label: 'Primary',
|
|
199
|
-
// variant: 'primary',
|
|
200
|
-
// outline: false,
|
|
201
|
-
// pill: false,
|
|
202
|
-
// size: 'medium',
|
|
203
|
-
// disabled: false,
|
|
204
|
-
// text: false,
|
|
205
|
-
// showIcon: true,
|
|
206
|
-
// iconName: 'home',
|
|
207
|
-
// iconPosition: 'left'
|
|
208
|
-
// };
|
|
209
|
-
// const TemplateWithOnlyIcon = (args) => `<app-button variant="${args.variant}" size="${args.size}"${args.disabled == true ? ' disabled' : ''}${args.pill == true ? ' pill' : ''}${args.outline == true ? ' outline' : ''}${args.text == true ? ' text' : ''}${ !args.label ? ' only-icon' : ''}>
|
|
210
|
-
// ${args.iconPosition == 'left' && args.showIcon ? `<app-icon slot="prefix" name="${args.iconName}"></app-icon>` : ''}
|
|
211
|
-
// ${args.label}
|
|
212
|
-
// ${args.iconPosition == 'right' && args.showIcon ? `<app-icon slot="suffix" name="${args.iconName}"></app-icon>` : ''}
|
|
213
|
-
// </app-button>`;
|
|
214
|
-
// export const WithOnlyIcon = TemplateWithOnlyIcon.bind({});
|
|
215
|
-
// WithOnlyIcon.args = {
|
|
216
|
-
// label: '',
|
|
217
|
-
// variant: 'primary',
|
|
218
|
-
// outline: false,
|
|
219
|
-
// pill: true,
|
|
220
|
-
// size: 'medium',
|
|
221
|
-
// disabled: false,
|
|
222
|
-
// text: false,
|
|
223
|
-
// showIcon: true,
|
|
224
|
-
// iconName: 'home',
|
|
225
|
-
// iconPosition: 'left',
|
|
226
|
-
// };
|
|
227
|
-
//# sourceMappingURL=app-button.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-button.stories.js","sourceRoot":"","sources":["../../../src/components/app-button/app-button.stories.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,eAAe;EACb,KAAK,EAAE,yBAAyB;EAChC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClB,QAAQ,EAAE;IACR,KAAK,EAAE;MACL,IAAI,EAAE,WAAW;MACjB,WAAW,EAAE,8BAA8B;MAC3C,OAAO,EAAE,MAAM;KAChB;IACD,OAAO,EAAE;MACP,IAAI,EAAE,UAAU;MAChB,WAAW,EAAE,2CAA2C;MACxD,OAAO,EAAE,QAAQ;MACjB,OAAO,EAAE;QACP,SAAS;QACT,WAAW;OACZ;KACF;IACD,OAAO,EAAG;MACR,IAAI,EAAE,SAAS;MACf,WAAW,EAAE,gDAAgD;MAC7D,OAAO,EAAE,SAAS;KACnB;IACD,IAAI,EAAE;MACJ,IAAI,EAAE,YAAY;MAClB,WAAW,EAAE,mCAAmC;MAChD,OAAO,EAAE,QAAQ;MACjB,OAAO,EAAE;QACP,OAAO;QACP,QAAQ;QACR,OAAO;OACR;MACD,MAAM,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,QAAQ;OAChB;KACF;IACD,IAAI,EAAE;MACJ,IAAI,EAAE,iBAAiB;MACvB,WAAW,EAAE,4EAA4E;MACzF,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;MACR,IAAI,EAAE,cAAc;MACpB,WAAW,EAAE,gDAAgD;MAC7D,OAAO,EAAE,SAAS;KACnB;IACD,IAAI,EAAE;MACJ,IAAI,EAAE,OAAO;MACb,WAAW,EAAE,+EAA+E;MAC5F,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;MACR,IAAI,EAAE,cAAc;MACpB,WA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AkB;AAClB,0HAA0H;AAC1H,kBAAkB;AAClB,6DAA6D;AAC7D,wBAAwB;AACxB,eAAe;AACf,wBAAwB;AACxB,oBAAoB;AACpB,gBAAgB;AAChB,oBAAoB;AACpB,qBAAqB;AACrB,iBAAiB;AACjB,oBAAoB;AACpB,sBAAsB;AACtB,0BAA0B;AAC1B,KAAK","sourcesContent":["import feather from 'feather-icons';\n\nexport default {\n title: 'Components/Atoms/Button',\n tags: ['autodocs'],\n argTypes: {\n label: {\n name: 'Etichetta',\n description: 'Imposta il testo del bottone',\n control: 'text'\n },\n variant: {\n name: 'Variante',\n description: 'Imposta la variante di colore del bottone',\n control: 'select',\n options: [\n 'primary',\n 'secondary'\n ],\n },\n outline : {\n name: 'Outline',\n description: 'Imposta se il bottone deve avere il solo bordo',\n control: 'boolean'\n },\n size: {\n name: 'Dimensione',\n description: 'Imposta la dimensione del bottone',\n control: 'select',\n options: [\n 'small',\n 'medium',\n 'large'\n ],\n labels: {\n small: 'Piccolo',\n medium: 'Medio',\n large: 'Grande'\n }\n },\n pill: {\n name: 'Bordo a Pillola',\n description: 'Imposta se il bottone deve avere il bordo completamente stondato a pillola',\n control: 'boolean'\n },\n disabled: {\n name: 'Disabilitato',\n description: 'Imposta se il bottone deve essere disabilitato',\n control: 'boolean'\n },\n text: {\n name: 'Testo',\n description: 'Imposta se il bottone essere solo testo, quindi senza bordo, sfondo e padding',\n control: 'boolean'\n },\n showIcon: {\n name: 'Mostra Icona',\n description: 'Imposta se il bottone deve mostrare un\\'icona',\n control: 'boolean'\n },\n iconOnly: {\n name: 'Mostra solo Icona',\n description: 'Imposta se il bottone deve mostrare solo l\\'icona',\n control: 'boolean',\n if: {\n arg: 'showIcon',\n eq: true\n },\n },\n iconName: {\n name: 'Nome Icona',\n control: 'select',\n options: Object.keys(feather.icons),\n description: 'Seleziona il nome dell\\'icona dal menu a tendina',\n defaultValue: Object.keys(feather.icons)[0],\n if: {\n arg: 'showIcon',\n eq: true\n },\n },\n iconPosition: {\n name: 'Posizione Icona',\n description: 'Imposta la posizione dell\\'icona',\n defaultValue: 'left',\n control: 'select',\n options: [\n 'left',\n 'right'\n ],\n if: {\n arg: 'showIcon',\n eq: true\n },\n labels: {\n left: 'Sinistra',\n right: 'Destra'\n }\n }\n\n }\n};\n\n// regular expression to remove all the spaces indenting the template string\n\nconst Template = (args) => `${ !args.label && !args.showIcon ? 'Errore nella configurazione del bottone' : \n `<app-button variant=\"${args.variant}\" size=\"${args.size}\"${args.disabled == true ? ' disabled' : ''}${args.pill == true ? ' pill' : ''}${args.outline == true ? ' outline' : ''}${args.text == true ? ' text' : ''}${ !args.label || args.iconOnly ? ' only-icon' : ''}>\n ${args.iconPosition == 'left' && args.showIcon ? `<app-icon slot=\"prefix\" name=\"${args.iconName}\"></app-icon>` : ''}\n ${ !args.iconOnly ? args.label : ''}\n ${args.iconPosition == 'right' && args.showIcon ? `<app-icon slot=\"suffix\" name=\"${args.iconName}\"></app-icon>` : ''}\n </app-button>`.replace(/\\s\\s+/g, '')\n}`;\n\nexport const Primary = Template.bind({});\nPrimary.args = {\n label: 'Primary',\n variant: 'primary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left'\n};\n\nexport const OutlinePrimary = Template.bind({});\nOutlinePrimary.args = {\n label: 'Outline Primary',\n variant: 'primary',\n outline: true,\n pill: false,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left'\n};\n\nexport const PillPrimary = Template.bind({});\nPillPrimary.args = {\n label: 'Pill Primary',\n variant: 'primary',\n outline: false,\n pill: true,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left'\n};\n\nexport const OutlinePillPrimary = Template.bind({});\nOutlinePillPrimary.args = {\n label: 'Pill Primary',\n variant: 'primary',\n outline: true,\n pill: true,\n size: 'medium',\n disabled: false,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left'\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n label: 'Disabled',\n variant: 'primary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: true,\n text: false,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left'\n};\n\nexport const Text = Template.bind({});\nText.args = {\n label: 'Text',\n variant: 'secondary',\n outline: false,\n pill: false,\n size: 'medium',\n disabled: false,\n text: true,\n showIcon: false,\n iconOnly: false,\n iconName: Object.keys(feather.icons)[0],\n iconPosition: 'left'\n};\n\n// const TemplateWithIcon = (args) => `<app-button variant=\"${args.variant}\" size=\"${args.size}\"${args.disabled == true ? ' disabled' : ''}${args.pill == true ? ' pill' : ''}${args.outline == true ? ' outline' : ''}${args.text == true ? ' text' : ''}>\n// ${args.iconPosition == 'left' && args.showIcon ? `<app-icon slot=\"prefix\" name=\"${args.iconName}\"></app-icon>` : ''}\n// ${args.label}\n// ${args.iconPosition == 'right' && args.showIcon ? `<app-icon slot=\"suffix\" name=\"${args.iconName}\"></app-icon>` : ''}\n// </app-button>`;\n// export const WithIcon = TemplateWithIcon.bind({});\n// WithIcon.args = {\n// label: 'Primary',\n// variant: 'primary',\n// outline: false,\n// pill: false,\n// size: 'medium',\n// disabled: false,\n// text: false,\n// showIcon: true,\n// iconName: 'home',\n// iconPosition: 'left'\n// };\n\n// const TemplateWithOnlyIcon = (args) => `<app-button variant=\"${args.variant}\" size=\"${args.size}\"${args.disabled == true ? ' disabled' : ''}${args.pill == true ? ' pill' : ''}${args.outline == true ? ' outline' : ''}${args.text == true ? ' text' : ''}${ !args.label ? ' only-icon' : ''}>\n// ${args.iconPosition == 'left' && args.showIcon ? `<app-icon slot=\"prefix\" name=\"${args.iconName}\"></app-icon>` : ''}\n// ${args.label}\n// ${args.iconPosition == 'right' && args.showIcon ? `<app-icon slot=\"suffix\" name=\"${args.iconName}\"></app-icon>` : ''}\n// </app-button>`;\n// export const WithOnlyIcon = TemplateWithOnlyIcon.bind({});\n// WithOnlyIcon.args = {\n// label: '',\n// variant: 'primary',\n// outline: false,\n// pill: true,\n// size: 'medium',\n// disabled: false,\n// text: false,\n// showIcon: true,\n// iconName: 'home',\n// iconPosition: 'left',\n// };\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
describe('app-button', () => {
|
|
3
|
-
it('renders', async () => {
|
|
4
|
-
const page = await newE2EPage();
|
|
5
|
-
await page.setContent('<app-button></app-button>');
|
|
6
|
-
const element = await page.find('app-button');
|
|
7
|
-
expect(element).toHaveClass('hydrated');
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=app-button.e2e.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-button.e2e.js","sourceRoot":"","sources":["../../../../src/components/app-button/test/app-button.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;EAC1B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAEnD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC9C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('app-button', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<app-button></app-button>');\n\n const element = await page.find('app-button');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
-
import { AppButton } from "../app-button";
|
|
3
|
-
describe('app-button', () => {
|
|
4
|
-
it('renders', async () => {
|
|
5
|
-
const page = await newSpecPage({
|
|
6
|
-
components: [AppButton],
|
|
7
|
-
html: `<app-button></app-button>`,
|
|
8
|
-
});
|
|
9
|
-
expect(page.root).toEqualHtml(`
|
|
10
|
-
<app-button>
|
|
11
|
-
<mock:shadow-root>
|
|
12
|
-
<slot></slot>
|
|
13
|
-
</mock:shadow-root>
|
|
14
|
-
</app-button>
|
|
15
|
-
`);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=app-button.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-button.spec.js","sourceRoot":"","sources":["../../../../src/components/app-button/test/app-button.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;EAC1B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,SAAS,CAAC;MACvB,IAAI,EAAE,2BAA2B;KAClC,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { AppButton } from '../app-button';\n\ndescribe('app-button', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [AppButton],\n html: `<app-button></app-button>`,\n });\n expect(page.root).toEqualHtml(`\n <app-button>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </app-button>\n `);\n });\n});\n"]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import feather from "feather-icons";
|
|
3
|
-
export class AppIcon {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.name = undefined;
|
|
6
|
-
this.class = undefined;
|
|
7
|
-
}
|
|
8
|
-
componentDidLoad() {
|
|
9
|
-
feather.replace();
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return (h(Host, null, h("i", { "data-feather": this.name, class: this.class })));
|
|
13
|
-
}
|
|
14
|
-
static get is() { return "app-icon"; }
|
|
15
|
-
static get originalStyleUrls() {
|
|
16
|
-
return {
|
|
17
|
-
"$": ["app-icon.scss"]
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
static get styleUrls() {
|
|
21
|
-
return {
|
|
22
|
-
"$": ["app-icon.css"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
static get properties() {
|
|
26
|
-
return {
|
|
27
|
-
"name": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"mutable": false,
|
|
30
|
-
"complexType": {
|
|
31
|
-
"original": "string",
|
|
32
|
-
"resolved": "string",
|
|
33
|
-
"references": {}
|
|
34
|
-
},
|
|
35
|
-
"required": false,
|
|
36
|
-
"optional": false,
|
|
37
|
-
"docs": {
|
|
38
|
-
"tags": [],
|
|
39
|
-
"text": "Name of the icon"
|
|
40
|
-
},
|
|
41
|
-
"attribute": "name",
|
|
42
|
-
"reflect": false
|
|
43
|
-
},
|
|
44
|
-
"class": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"mutable": false,
|
|
47
|
-
"complexType": {
|
|
48
|
-
"original": "string",
|
|
49
|
-
"resolved": "string",
|
|
50
|
-
"references": {}
|
|
51
|
-
},
|
|
52
|
-
"required": false,
|
|
53
|
-
"optional": false,
|
|
54
|
-
"docs": {
|
|
55
|
-
"tags": [],
|
|
56
|
-
"text": "Additional classes"
|
|
57
|
-
},
|
|
58
|
-
"attribute": "class",
|
|
59
|
-
"reflect": false
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=app-icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-icon.js","sourceRoot":"","sources":["../../../src/components/app-icon/app-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,eAAe,CAAC;AAOpC,MAAM,OAAO,OAAO;;;;;EAYlB,gBAAgB;IACd,OAAO,CAAC,OAAO,EAAE,CAAC;EACpB,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,yBAAiB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAM,CAC9C,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport feather from 'feather-icons';\n\n@Component({\n tag: 'app-icon',\n styleUrl: 'app-icon.scss',\n shadow: false,\n})\nexport class AppIcon {\n /**\n * Name of the icon\n **/\n @Prop() name: string;\n\n /**\n * Additional classes\n **/\n @Prop() class: string;\n\n\n componentDidLoad() {\n feather.replace();\n }\n\n render() {\n return (\n <Host>\n <i data-feather={this.name} class={this.class}></i>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import feather from "feather-icons";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Atoms/Icon',
|
|
4
|
-
tags: ['autodocs'],
|
|
5
|
-
argTypes: {
|
|
6
|
-
name: {
|
|
7
|
-
name: 'Nome Icona',
|
|
8
|
-
control: 'select',
|
|
9
|
-
options: Object.keys(feather.icons),
|
|
10
|
-
description: 'Seleziona il nome dell\'icona dal menu a tendina'
|
|
11
|
-
},
|
|
12
|
-
class: {
|
|
13
|
-
name: 'Classi aggiuntive',
|
|
14
|
-
control: 'text',
|
|
15
|
-
description: 'Aggiungi classi aggiuntive all\'icona (separate da spazio)'
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const Template = (args) => `<app-icon class="${args.class}" name="${args.name}"></app-icon>`;
|
|
20
|
-
export const Icon = Template.bind({});
|
|
21
|
-
Icon.args = {
|
|
22
|
-
name: Object.keys(feather.icons)[0],
|
|
23
|
-
class: '',
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=app-icon.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-icon.stories.js","sourceRoot":"","sources":["../../../src/components/app-icon/app-icon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,eAAe;EACb,KAAK,EAAE,uBAAuB;EAC9B,IAAI,EAAE,CAAC,UAAU,CAAC;EAClB,QAAQ,EAAE;IACR,IAAI,EAAE;MACJ,IAAI,EAAE,YAAY;MAClB,OAAO,EAAE,QAAQ;MACjB,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;MACnC,WAAW,EAAE,kDAAkD;KAChE;IACD,KAAK,EAAE;MACL,IAAI,EAAE,mBAAmB;MACzB,OAAO,EAAE,MAAM;MACf,WAAW,EAAE,4DAA4D;KAC1E;GACF;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,IAAI,eAAe,CAAC;AAE7F,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtC,IAAI,CAAC,IAAI,GAAG;EACV,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,KAAK,EAAE,EAAE;CACV,CAAC","sourcesContent":["import feather from 'feather-icons';\n\nexport default {\n title: 'Components/Atoms/Icon',\n tags: ['autodocs'],\n argTypes: {\n name: {\n name: 'Nome Icona',\n control: 'select',\n options: Object.keys(feather.icons),\n description: 'Seleziona il nome dell\\'icona dal menu a tendina'\n },\n class: {\n name: 'Classi aggiuntive',\n control: 'text',\n description: 'Aggiungi classi aggiuntive all\\'icona (separate da spazio)'\n }\n }\n};\n\nconst Template = (args) => `<app-icon class=\"${args.class}\" name=\"${args.name}\"></app-icon>`;\n\nexport const Icon = Template.bind({});\nIcon.args = {\n name: Object.keys(feather.icons)[0],\n class: '',\n};"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
describe('app-icon', () => {
|
|
3
|
-
it('renders', async () => {
|
|
4
|
-
const page = await newE2EPage();
|
|
5
|
-
await page.setContent('<app-icon></app-icon>');
|
|
6
|
-
const element = await page.find('app-icon');
|
|
7
|
-
expect(element).toHaveClass('hydrated');
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=app-icon.e2e.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-icon.e2e.js","sourceRoot":"","sources":["../../../../src/components/app-icon/test/app-icon.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAE/C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('app-icon', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<app-icon></app-icon>');\n\n const element = await page.find('app-icon');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
-
import { AppIcon } from "../app-icon";
|
|
3
|
-
describe('app-icon', () => {
|
|
4
|
-
it('renders', async () => {
|
|
5
|
-
const page = await newSpecPage({
|
|
6
|
-
components: [AppIcon],
|
|
7
|
-
html: `<app-icon></app-icon>`,
|
|
8
|
-
});
|
|
9
|
-
expect(page.root).toEqualHtml(`
|
|
10
|
-
<app-icon>
|
|
11
|
-
<mock:shadow-root>
|
|
12
|
-
<slot></slot>
|
|
13
|
-
</mock:shadow-root>
|
|
14
|
-
</app-icon>
|
|
15
|
-
`);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=app-icon.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-icon.spec.js","sourceRoot":"","sources":["../../../../src/components/app-icon/test/app-icon.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { AppIcon } from '../app-icon';\n\ndescribe('app-icon', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [AppIcon],\n html: `<app-icon></app-icon>`,\n });\n expect(page.root).toEqualHtml(`\n <app-icon>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </app-icon>\n `);\n });\n});\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const appButtonCss = "app-button button{background-color:transparent;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}app-button{display:inline-flex;align-items:center;--app-button-color:#ffffff;--app-button-color-disabled:#cbcbcb;--app-button-background:blue;--app-button-background-outline:transparent;--app-button-color-hover:#ffffff;--app-button-background-hover:darkblue;--app-button-border-radius:var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem);--app-button-padding:1rem 1.25rem}app-button button{background-color:var(--app-button-background);border-radius:var(--app-button-border-radius);color:var(--app-button-color);position:relative;font-family:var(--ff-primary, \"Arial\"), sans-serif;font-weight:var(--fw-400, 400);font-size:var(--fs-400, 1rem);line-height:var(--lh-400, 1.3);display:flex;align-items:center;gap:var(--app-button-gap, 0.5rem);padding:var(--app-button-padding)}app-button button:hover{background-color:var(--app-button-background-hover);color:var(--app-button-color-hover)}app-button button[data-variant=primary]{--app-button-color:var(--neutral-white);--app-button-background:var(--primary-standard);--app-button-color-hover:var(--neutral-white);--app-button-background-hover:var(--primary-hard)}app-button button[data-variant=secondary]{--app-button-color:var(--neutral-white);--app-button-background:var(--secondary-standard);--app-button-color-hover:var(--neutral-white);--app-button-background-hover:var(--secondary-hard)}app-button button[disabled]{--app-button-background:var(--app-button-color-disabled);--app-button-background-hover:var(--app-button-color-disabled);cursor:not-allowed}app-button button[data-pill]{border-radius:100rem}app-button button[data-size=small]{font-size:var(--fs-300, 0.875rem);line-height:var(--lh-300, 1.2);--app-button-padding:0.5rem 1rem}app-button button[data-size=medium]{font-size:var(--fs-400, 1rem);line-height:var(--lh-400, 1.3)}app-button button[data-size=large]{font-size:var(--fs-500, 1.125rem);line-height:var(--lh-500, 1.4);--app-button-padding:1.125rem 1.5rem}app-button button[data-outline]{background-color:var(--app-button-background-outline);border:1px solid var(--app-button-background);color:var(--app-button-background)}app-button button[data-outline]:hover{background-color:var(--app-button-background-hover);border:1px solid var(--app-button-background-hover);color:var(--app-button-background-hover)}app-button button[data-text]{background-color:transparent;border:none;color:var(--app-button-background);padding:0}app-button button[data-text]:hover{background-color:transparent;border:none;color:var(--app-button-background-hover)}app-button button[data-only-icon]{--app-button-padding:1.125rem}app-button button[data-only-icon][data-size=small]{--app-button-padding:0.5rem}app-button button[data-only-icon][data-size=medium]{--app-button-padding:1rem}app-button button[data-only-icon][data-size=large]{--app-button-padding:1.125rem}";
|
|
4
|
-
|
|
5
|
-
const AppButton$1 = /*@__PURE__*/ proxyCustomElement(class AppButton extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.disabled = false;
|
|
10
|
-
this.variant = 'primary';
|
|
11
|
-
this.outline = false;
|
|
12
|
-
this.size = 'medium';
|
|
13
|
-
this.pill = false;
|
|
14
|
-
this.text = false;
|
|
15
|
-
this.onlyIcon = false;
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return (h(Host, null, h("button", { "data-variant": this.variant, "data-outline": this.outline, "data-size": this.size, "data-pill": this.pill, "data-text": this.text, "data-only-icon": this.onlyIcon, disabled: this.disabled }, h("slot", { name: "prefix" }), !this.onlyIcon && h("slot", null), h("slot", { name: "suffix" }))));
|
|
19
|
-
}
|
|
20
|
-
static get style() { return appButtonCss; }
|
|
21
|
-
}, [4, "app-button", {
|
|
22
|
-
"disabled": [4],
|
|
23
|
-
"variant": [513],
|
|
24
|
-
"outline": [516],
|
|
25
|
-
"size": [513],
|
|
26
|
-
"pill": [516],
|
|
27
|
-
"text": [516],
|
|
28
|
-
"onlyIcon": [516, "only-icon"]
|
|
29
|
-
}]);
|
|
30
|
-
function defineCustomElement$1() {
|
|
31
|
-
if (typeof customElements === "undefined") {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
const components = ["app-button"];
|
|
35
|
-
components.forEach(tagName => { switch (tagName) {
|
|
36
|
-
case "app-button":
|
|
37
|
-
if (!customElements.get(tagName)) {
|
|
38
|
-
customElements.define(tagName, AppButton$1);
|
|
39
|
-
}
|
|
40
|
-
break;
|
|
41
|
-
} });
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const AppButton = AppButton$1;
|
|
45
|
-
const defineCustomElement = defineCustomElement$1;
|
|
46
|
-
|
|
47
|
-
export { AppButton, defineCustomElement };
|
|
48
|
-
|
|
49
|
-
//# sourceMappingURL=app-button.js.map
|