xv-webcomponents 0.1.23 → 0.1.25
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/LICENSE +21 -21
- package/README.md +129 -129
- package/package.json +51 -51
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/index-782b9733.js +0 -1535
- package/dist/cjs/index-782b9733.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -11
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -17
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/utils-c7652b74.js +0 -13
- package/dist/cjs/utils-c7652b74.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_16.cjs.entry.js +0 -663
- package/dist/cjs/xv-accordion-v2_16.cjs.entry.js.map +0 -1
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -22
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
- package/dist/cjs/xv-webcomponents.cjs.js +0 -27
- package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
- package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +0 -3717
- package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +0 -15326
- package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +0 -12420
- package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +0 -11323
- package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +0 -9653
- package/dist/collection/collection-manifest.json +0 -28
- package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
- package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
- package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
- package/dist/collection/components/xv-button/xv-button-v2.css +0 -153
- package/dist/collection/components/xv-button/xv-button.js +0 -138
- package/dist/collection/components/xv-button/xv-button.js.map +0 -1
- package/dist/collection/components/xv-card/xv-card.css +0 -63
- package/dist/collection/components/xv-card/xv-card.js +0 -122
- package/dist/collection/components/xv-card/xv-card.js.map +0 -1
- package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -108
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -376
- package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
- package/dist/collection/components/xv-footer/xv-footer.css +0 -230
- package/dist/collection/components/xv-footer/xv-footer.js +0 -37
- package/dist/collection/components/xv-footer/xv-footer.js.map +0 -1
- package/dist/collection/components/xv-header/xv-header.css +0 -22587
- package/dist/collection/components/xv-header/xv-header.js +0 -46
- package/dist/collection/components/xv-header/xv-header.js.map +0 -1
- package/dist/collection/components/xv-link/xv-link.css +0 -60
- package/dist/collection/components/xv-link/xv-link.js +0 -132
- package/dist/collection/components/xv-link/xv-link.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -7
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -70
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -66
- package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -47
- package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
- package/dist/collection/components/xv-table/defs.js +0 -14
- package/dist/collection/components/xv-table/defs.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-col/xv-table-col.css +0 -8
- package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js +0 -19
- package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.css +0 -21
- package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js +0 -122
- package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -53
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -299
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table.css +0 -154
- package/dist/collection/components/xv-table/xv-table.js +0 -245
- package/dist/collection/components/xv-table/xv-table.js.map +0 -1
- package/dist/collection/components/xv-tag/xv-tag.css +0 -97
- package/dist/collection/components/xv-tag/xv-tag.js +0 -158
- package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -154
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -70
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
- package/dist/collection/index.js +0 -11
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/scss/xv/images/xv-sprite.svg +0 -1
- package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +0 -1
- package/dist/collection/types/enum.js +0 -9
- package/dist/collection/types/enum.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -14
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/index-83ab73b7.js +0 -1506
- package/dist/esm/index-83ab73b7.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -13
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/utils-9bb6333b.js +0 -10
- package/dist/esm/utils-9bb6333b.js.map +0 -1
- package/dist/esm/xv-accordion-v2_16.entry.js +0 -644
- package/dist/esm/xv-accordion-v2_16.entry.js.map +0 -1
- package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
- package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
- package/dist/esm/xv-webcomponents.js +0 -22
- package/dist/esm/xv-webcomponents.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/xv-accordion/xv-accordion.d.ts +0 -20
- package/dist/types/components/xv-accordion-item/xv-accordion-item.d.ts +0 -15
- package/dist/types/components/xv-breadcrumbs/xv-breadcrumbs.d.ts +0 -3
- package/dist/types/components/xv-button/xv-button.d.ts +0 -16
- package/dist/types/components/xv-card/xv-card.d.ts +0 -8
- package/dist/types/components/xv-checkbox/xv-checkbox.d.ts +0 -70
- package/dist/types/components/xv-footer/xv-footer.d.ts +0 -6
- package/dist/types/components/xv-header/xv-header.d.ts +0 -6
- package/dist/types/components/xv-link/xv-link.d.ts +0 -9
- package/dist/types/components/xv-progress-indicator/xv-progress-indicator.d.ts +0 -7
- package/dist/types/components/xv-progress-indicator-item/xv-progress-indicator-item.d.ts +0 -5
- package/dist/types/components/xv-table/defs.d.ts +0 -16
- package/dist/types/components/xv-table/xv-table-col/xv-table-col.d.ts +0 -3
- package/dist/types/components/xv-table/xv-table-header-row/xv-table-header-row.d.ts +0 -25
- package/dist/types/components/xv-table/xv-table-row/xv-table-row.d.ts +0 -59
- package/dist/types/components/xv-table/xv-table.d.ts +0 -40
- package/dist/types/components/xv-tag/xv-tag.d.ts +0 -11
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +0 -11
- package/dist/types/components.d.ts +0 -705
- package/dist/types/index.d.ts +0 -11
- package/dist/types/stencil-public-runtime.d.ts +0 -1680
- package/dist/types/types/enum.d.ts +0 -7
- package/dist/types/utils/utils.d.ts +0 -9
- package/dist/xv-webcomponents/index.esm.js +0 -2
- package/dist/xv-webcomponents/index.esm.js.map +0 -1
- package/dist/xv-webcomponents/p-59dc31ad.entry.js +0 -2
- package/dist/xv-webcomponents/p-59dc31ad.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-840929c5.js +0 -3
- package/dist/xv-webcomponents/p-840929c5.js.map +0 -1
- package/dist/xv-webcomponents/p-a0b74d3c.js +0 -2
- package/dist/xv-webcomponents/p-a0b74d3c.js.map +0 -1
- package/dist/xv-webcomponents/p-c1cf7200.entry.js +0 -2
- package/dist/xv-webcomponents/p-c1cf7200.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-e1255160.js +0 -2
- package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +0 -2
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/loader/package.json +0 -11
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
export class XvButton {
|
|
3
|
-
constructor() {
|
|
4
|
-
/** Button label */
|
|
5
|
-
this.label = '';
|
|
6
|
-
/** Container width Button */
|
|
7
|
-
this.block = false;
|
|
8
|
-
/** Variant */
|
|
9
|
-
this.variant = 'primary';
|
|
10
|
-
/** Disabled state */
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
/** Handle click only if not disabled */
|
|
13
|
-
this.handleClick = () => {
|
|
14
|
-
if (this.disabled) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
this.buttonClick.emit();
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (h("button", { key: '4b6d2d71bd297a7b1e2a00ba36c8e4380395e696', class: `xv-button ${this.variant} ${this.block ? 'xv-button-block' : ''}`, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '2934a04fa4aae539014f0a283444903dc9807888', name: "icon-left" }), h("slot", { key: '7139fa048b1f6e10f45853f7d1ff3b8cef1b9db6' }, this.label), h("slot", { key: 'ff326b3d02d3c4102f85132b890a595fcfec08d4', name: "icon-right" })));
|
|
22
|
-
}
|
|
23
|
-
static get is() { return "xv-button-v2"; }
|
|
24
|
-
static get encapsulation() { return "shadow"; }
|
|
25
|
-
static get originalStyleUrls() {
|
|
26
|
-
return {
|
|
27
|
-
"$": ["xv-button-v2.scss"]
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static get styleUrls() {
|
|
31
|
-
return {
|
|
32
|
-
"$": ["xv-button-v2.css"]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static get properties() {
|
|
36
|
-
return {
|
|
37
|
-
"label": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"mutable": false,
|
|
40
|
-
"complexType": {
|
|
41
|
-
"original": "string",
|
|
42
|
-
"resolved": "string",
|
|
43
|
-
"references": {}
|
|
44
|
-
},
|
|
45
|
-
"required": false,
|
|
46
|
-
"optional": false,
|
|
47
|
-
"docs": {
|
|
48
|
-
"tags": [],
|
|
49
|
-
"text": "Button label"
|
|
50
|
-
},
|
|
51
|
-
"getter": false,
|
|
52
|
-
"setter": false,
|
|
53
|
-
"attribute": "label",
|
|
54
|
-
"reflect": false,
|
|
55
|
-
"defaultValue": "''"
|
|
56
|
-
},
|
|
57
|
-
"block": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "boolean",
|
|
62
|
-
"resolved": "boolean",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": "Container width Button"
|
|
70
|
-
},
|
|
71
|
-
"getter": false,
|
|
72
|
-
"setter": false,
|
|
73
|
-
"attribute": "block",
|
|
74
|
-
"reflect": false,
|
|
75
|
-
"defaultValue": "false"
|
|
76
|
-
},
|
|
77
|
-
"variant": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "'accent' | 'primary' | 'secondary' | 'tertiary' | 'ghost'",
|
|
82
|
-
"resolved": "\"accent\" | \"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": "Variant"
|
|
90
|
-
},
|
|
91
|
-
"getter": false,
|
|
92
|
-
"setter": false,
|
|
93
|
-
"attribute": "variant",
|
|
94
|
-
"reflect": false,
|
|
95
|
-
"defaultValue": "'primary'"
|
|
96
|
-
},
|
|
97
|
-
"disabled": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"mutable": false,
|
|
100
|
-
"complexType": {
|
|
101
|
-
"original": "boolean",
|
|
102
|
-
"resolved": "boolean",
|
|
103
|
-
"references": {}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": "Disabled state"
|
|
110
|
-
},
|
|
111
|
-
"getter": false,
|
|
112
|
-
"setter": false,
|
|
113
|
-
"attribute": "disabled",
|
|
114
|
-
"reflect": false,
|
|
115
|
-
"defaultValue": "false"
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
static get events() {
|
|
120
|
-
return [{
|
|
121
|
-
"method": "buttonClick",
|
|
122
|
-
"name": "buttonClick",
|
|
123
|
-
"bubbles": true,
|
|
124
|
-
"cancelable": true,
|
|
125
|
-
"composed": true,
|
|
126
|
-
"docs": {
|
|
127
|
-
"tags": [],
|
|
128
|
-
"text": "Emits when the button is clicked"
|
|
129
|
-
},
|
|
130
|
-
"complexType": {
|
|
131
|
-
"original": "void",
|
|
132
|
-
"resolved": "void",
|
|
133
|
-
"references": {}
|
|
134
|
-
}
|
|
135
|
-
}];
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
//# sourceMappingURL=xv-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-button.js","sourceRoot":"","sources":["../../../src/components/xv-button/xv-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,eAAe,CAAC;AAQxE,MAAM,OAAO,QAAQ;IALrB;QAME,mBAAmB;QACX,UAAK,GAAW,EAAE,CAAC;QAE3B,6BAA6B;QACrB,UAAK,GAAY,KAAK,CAAC;QAE/B,cAAc;QACN,YAAO,GAA8D,SAAS,CAAC;QAEvF,qBAAqB;QACb,aAAQ,GAAY,KAAK,CAAC;QAKlC,wCAAwC;QAChC,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,OAAO;YACT,CAAC;YACD,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAC1B,CAAC,CAAC;KAmBH;IAjBC,MAAM;QACJ,OAAO,CACL,+DACE,KAAK,EAAE,aAAa,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,EAAE,EACzE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW;YAEzB,6DAAM,IAAI,EAAC,WAAW,GAAQ;YAE9B,+DACG,IAAI,CAAC,KAAK,CACN;YAEP,6DAAM,IAAI,EAAC,YAAY,GAAQ,CACxB,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, Event, EventEmitter, h } from '@stencil/core';\r\n\r\n\r\n@Component({\r\n tag: 'xv-button-v2',\r\n styleUrl: 'xv-button-v2.scss',\r\n shadow: true,\r\n})\r\nexport class XvButton {\r\n /** Button label */\r\n @Prop() label: string = '';\r\n\r\n /** Container width Button */\r\n @Prop() block: boolean = false;\r\n\r\n /** Variant */\r\n @Prop() variant: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'ghost' = 'primary';\r\n\r\n /** Disabled state */\r\n @Prop() disabled: boolean = false;\r\n\r\n /** Emits when the button is clicked */\r\n @Event() buttonClick!: EventEmitter<void>;\r\n\r\n /** Handle click only if not disabled */\r\n private handleClick = () => {\r\n if (this.disabled) {\r\n return;\r\n }\r\n this.buttonClick.emit();\r\n };\r\n\r\n render() {\r\n return (\r\n <button\r\n class={`xv-button ${this.variant} ${this.block ? 'xv-button-block' : ''}`}\r\n disabled={this.disabled}\r\n onClick={this.handleClick}\r\n >\r\n <slot name=\"icon-left\"></slot>\r\n\r\n <slot>\r\n {this.label}\r\n </slot>\r\n\r\n <slot name=\"icon-right\"></slot>\r\n </button>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
border-radius: 8px;
|
|
5
|
-
border: 1px solid var(--border-subtle-00);
|
|
6
|
-
background: var(--layer-layer-02);
|
|
7
|
-
box-shadow: 0 1px 3px 1px rgba(39, 52, 53, 0.15), 0 1px 2px 0 rgba(39, 52, 53, 0.3);
|
|
8
|
-
font-family: var(--ff-body, inherit);
|
|
9
|
-
overflow: visible !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host(.xv-card_vertical) {
|
|
13
|
-
width: 100% !important;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host(.xv-card_horizontal) {
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
display: flex;
|
|
19
|
-
width: max-content;
|
|
20
|
-
}
|
|
21
|
-
:host(.xv-card_horizontal) .xv-card_media__content, :host(.xv-card_horizontal) .xv-card_media ::slotted([slot=media]) {
|
|
22
|
-
min-height: 100%;
|
|
23
|
-
max-height: 100%;
|
|
24
|
-
max-width: 160px;
|
|
25
|
-
min-width: 160px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.xv-card_content {
|
|
29
|
-
padding: 16px;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
flex: 1;
|
|
33
|
-
text-align: left;
|
|
34
|
-
}
|
|
35
|
-
.xv-card_media__content, .xv-card_media ::slotted([slot=media]) {
|
|
36
|
-
max-width: 100%;
|
|
37
|
-
min-width: 100%;
|
|
38
|
-
min-height: 199px;
|
|
39
|
-
max-height: 199px;
|
|
40
|
-
object-fit: cover;
|
|
41
|
-
object-position: center;
|
|
42
|
-
}
|
|
43
|
-
.xv-card_header__content, .xv-card_header ::slotted([slot=header]) {
|
|
44
|
-
margin: 0 0 8px;
|
|
45
|
-
color: var(--text-primary);
|
|
46
|
-
font-size: 16px;
|
|
47
|
-
font-style: normal;
|
|
48
|
-
font-weight: 700;
|
|
49
|
-
line-height: 24px;
|
|
50
|
-
letter-spacing: -0.6px;
|
|
51
|
-
}
|
|
52
|
-
.xv-card_body {
|
|
53
|
-
flex: 1;
|
|
54
|
-
}
|
|
55
|
-
.xv-card_body__content, .xv-card_body ::slotted([slot=body]) {
|
|
56
|
-
margin: 0 0 8px;
|
|
57
|
-
color: var(--text-secondary);
|
|
58
|
-
font-size: 14px;
|
|
59
|
-
font-style: normal;
|
|
60
|
-
font-weight: 400;
|
|
61
|
-
line-height: 20px;
|
|
62
|
-
letter-spacing: -0.1px;
|
|
63
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class XvCard {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.variant = 'vertical';
|
|
5
|
-
}
|
|
6
|
-
render() {
|
|
7
|
-
return (h(Host, { key: '3fdd414c3ca982b59e824fdc5e7e7b29e64e86af', class: `xv-card xv-card_${this.variant}`, part: this.variant }, h("div", { key: 'cbcdeeb4478684a62284f1117b958419b8bf3c85', class: "xv-card_media" }, h("slot", { key: '8f1dfba6d6857a56104f025b853ab7e0eda904ac', name: "media" }, this.media && h("img", { key: 'cffec805d1be5621af7f31f0011d8bf85cbde14c', class: "xv-card_media__content", src: this.media, alt: this.header }))), h("div", { key: 'd145688646a6b28558a356223fa513bc4b647b05', class: "xv-card_content" }, h("div", { key: 'a24d5400de24e07f988a70f4c53097b8b890e4ea', class: "xv-card_header" }, h("slot", { key: '91ef62b994ea0718b1d25c92dd54890c531d12e6', name: "header" }, this.header && h("p", { key: '65dded3b31a4791c25e16d99657006d3602a5184', class: "xv-card_header__content" }, this.header))), h("div", { key: '2ec7a6d441629b1f3c168b071ac9fcda69d074ce', class: "xv-card_body" }, h("slot", { key: '8a4c90c328b3ddc5c465ef47340e8fa04081d2e9', name: "body" }, this.body && h("p", { key: '613f98fddb84e57f8f0088cda701da76d63f4946', class: "xv-card_body__content" }, this.header))), h("div", { key: '51d8b0d621f41768f2baf1adb80289efb644bf29', class: "xv-card_footer" }, h("slot", { key: 'b5df708c75f4445936230be35ce8f95566cafa2b', name: "footer" }, this.footer)))));
|
|
8
|
-
}
|
|
9
|
-
static get is() { return "xv-card-v2"; }
|
|
10
|
-
static get encapsulation() { return "shadow"; }
|
|
11
|
-
static get originalStyleUrls() {
|
|
12
|
-
return {
|
|
13
|
-
"$": ["xv-card.scss"]
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
static get styleUrls() {
|
|
17
|
-
return {
|
|
18
|
-
"$": ["xv-card.css"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get properties() {
|
|
22
|
-
return {
|
|
23
|
-
"variant": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"mutable": false,
|
|
26
|
-
"complexType": {
|
|
27
|
-
"original": "'horizontal' | 'vertical'",
|
|
28
|
-
"resolved": "\"horizontal\" | \"vertical\"",
|
|
29
|
-
"references": {}
|
|
30
|
-
},
|
|
31
|
-
"required": false,
|
|
32
|
-
"optional": false,
|
|
33
|
-
"docs": {
|
|
34
|
-
"tags": [],
|
|
35
|
-
"text": ""
|
|
36
|
-
},
|
|
37
|
-
"getter": false,
|
|
38
|
-
"setter": false,
|
|
39
|
-
"attribute": "variant",
|
|
40
|
-
"reflect": false,
|
|
41
|
-
"defaultValue": "'vertical'"
|
|
42
|
-
},
|
|
43
|
-
"media": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"mutable": false,
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "string",
|
|
48
|
-
"resolved": "string",
|
|
49
|
-
"references": {}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": false,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [],
|
|
55
|
-
"text": ""
|
|
56
|
-
},
|
|
57
|
-
"getter": false,
|
|
58
|
-
"setter": false,
|
|
59
|
-
"attribute": "media",
|
|
60
|
-
"reflect": false
|
|
61
|
-
},
|
|
62
|
-
"header": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"mutable": false,
|
|
65
|
-
"complexType": {
|
|
66
|
-
"original": "string",
|
|
67
|
-
"resolved": "string",
|
|
68
|
-
"references": {}
|
|
69
|
-
},
|
|
70
|
-
"required": false,
|
|
71
|
-
"optional": false,
|
|
72
|
-
"docs": {
|
|
73
|
-
"tags": [],
|
|
74
|
-
"text": ""
|
|
75
|
-
},
|
|
76
|
-
"getter": false,
|
|
77
|
-
"setter": false,
|
|
78
|
-
"attribute": "header",
|
|
79
|
-
"reflect": false
|
|
80
|
-
},
|
|
81
|
-
"body": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"mutable": false,
|
|
84
|
-
"complexType": {
|
|
85
|
-
"original": "string",
|
|
86
|
-
"resolved": "string",
|
|
87
|
-
"references": {}
|
|
88
|
-
},
|
|
89
|
-
"required": false,
|
|
90
|
-
"optional": false,
|
|
91
|
-
"docs": {
|
|
92
|
-
"tags": [],
|
|
93
|
-
"text": ""
|
|
94
|
-
},
|
|
95
|
-
"getter": false,
|
|
96
|
-
"setter": false,
|
|
97
|
-
"attribute": "body",
|
|
98
|
-
"reflect": false
|
|
99
|
-
},
|
|
100
|
-
"footer": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "string",
|
|
105
|
-
"resolved": "string",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": ""
|
|
113
|
-
},
|
|
114
|
-
"getter": false,
|
|
115
|
-
"setter": false,
|
|
116
|
-
"attribute": "footer",
|
|
117
|
-
"reflect": false
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=xv-card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-card.js","sourceRoot":"","sources":["../../../src/components/xv-card/xv-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,MAAM;IALnB;QAMU,YAAO,GAA8B,UAAU,CAAC;KAgCzD;IA3BC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,mBAAmB,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO;YAChE,4DAAK,KAAK,EAAC,eAAe;gBACxB,6DAAM,IAAI,EAAC,OAAO,IACf,IAAI,CAAC,KAAK,IAAI,4DAAK,KAAK,EAAC,wBAAwB,EAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,MAAM,GAAI,CACnF,CACH;YAEN,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,4DAAK,KAAK,EAAC,gBAAgB;oBACzB,6DAAM,IAAI,EAAC,QAAQ,IAChB,IAAI,CAAC,MAAM,IAAI,0DAAG,KAAK,EAAC,yBAAyB,IAAE,IAAI,CAAC,MAAM,CAAK,CAC/D,CACH;gBACN,4DAAK,KAAK,EAAC,cAAc;oBACvB,6DAAM,IAAI,EAAC,MAAM,IACd,IAAI,CAAC,IAAI,IAAI,0DAAG,KAAK,EAAC,uBAAuB,IAAE,IAAI,CAAC,MAAM,CAAK,CAC3D,CACH;gBACN,4DAAK,KAAK,EAAC,gBAAgB;oBACzB,6DAAM,IAAI,EAAC,QAAQ,IAAE,IAAI,CAAC,MAAM,CAAQ,CACpC,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'xv-card-v2',\r\n styleUrl: 'xv-card.scss',\r\n shadow: true,\r\n})\r\nexport class XvCard {\r\n @Prop() variant: 'horizontal' | 'vertical' = 'vertical';\r\n @Prop() media: string;\r\n @Prop() header: string;\r\n @Prop() body: string;\r\n @Prop() footer: string;\r\n render() {\r\n return (\r\n <Host class={`xv-card xv-card_${this.variant}`} part={this.variant}>\r\n <div class=\"xv-card_media\">\r\n <slot name=\"media\">\r\n {this.media && <img class=\"xv-card_media__content\" src={this.media} alt={this.header} />}\r\n </slot>\r\n </div>\r\n\r\n <div class=\"xv-card_content\">\r\n <div class=\"xv-card_header\">\r\n <slot name=\"header\">\r\n {this.header && <p class=\"xv-card_header__content\">{this.header}</p>}\r\n </slot>\r\n </div>\r\n <div class=\"xv-card_body\">\r\n <slot name=\"body\">\r\n {this.body && <p class=\"xv-card_body__content\">{this.header}</p>}\r\n </slot>\r\n </div>\r\n <div class=\"xv-card_footer\">\r\n <slot name=\"footer\">{this.footer}</slot>\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--checkbox-size: 20px;
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:host([error]) .xv-checkbox .checkmark {
|
|
9
|
-
border-color: var(--text-error, #D62512);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.error,
|
|
13
|
-
[name=info] {
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: flex-start;
|
|
17
|
-
font-size: var(--fz-sm, 12px);
|
|
18
|
-
font-family: var(--ff-body, Tahoma);
|
|
19
|
-
line-height: 133.333%;
|
|
20
|
-
letter-spacing: 0.32px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.error {
|
|
24
|
-
margin-top: var(--gap-xs, 5px);
|
|
25
|
-
color: var(--text-error, #D62512);
|
|
26
|
-
}
|
|
27
|
-
.error::before {
|
|
28
|
-
margin-right: var(--gap-xs, 5px);
|
|
29
|
-
content: "!";
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
width: 20px;
|
|
34
|
-
height: 20px;
|
|
35
|
-
font-size: var(--fz-sm, 12px);
|
|
36
|
-
font-weight: bold;
|
|
37
|
-
color: white;
|
|
38
|
-
background-color: var(--text-error, #D62512);
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.xv-checkbox {
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
user-select: none;
|
|
47
|
-
}
|
|
48
|
-
.xv-checkbox.disabled {
|
|
49
|
-
cursor: not-allowed;
|
|
50
|
-
opacity: 0.6;
|
|
51
|
-
}
|
|
52
|
-
.xv-checkbox input[type=checkbox] {
|
|
53
|
-
position: absolute;
|
|
54
|
-
width: var(--checkbox-size);
|
|
55
|
-
height: var(--checkbox-size);
|
|
56
|
-
margin: 0;
|
|
57
|
-
padding: 0;
|
|
58
|
-
opacity: 0;
|
|
59
|
-
pointer-events: none;
|
|
60
|
-
box-sizing: border-box;
|
|
61
|
-
}
|
|
62
|
-
.xv-checkbox .checkmark {
|
|
63
|
-
width: var(--checkbox-size);
|
|
64
|
-
min-width: var(--checkbox-size);
|
|
65
|
-
height: var(--checkbox-size);
|
|
66
|
-
min-height: var(--checkbox-size);
|
|
67
|
-
box-sizing: border-box;
|
|
68
|
-
margin: 0;
|
|
69
|
-
padding: 0;
|
|
70
|
-
border: 2px solid var(--border-subtle-03, #D1D1D1);
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
background-color: var(--background, #FFF);
|
|
73
|
-
transition: all 0.2s ease;
|
|
74
|
-
display: inline-flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
}
|
|
78
|
-
.xv-checkbox input:checked + .checkmark {
|
|
79
|
-
background-color: var(--background-brand, #97BF0D);
|
|
80
|
-
border-color: var(--background-brand, #97BF0D);
|
|
81
|
-
}
|
|
82
|
-
.xv-checkbox input:checked + .checkmark:not(.checkmark-partial)::after {
|
|
83
|
-
content: "";
|
|
84
|
-
width: calc(var(--checkbox-size) / 4);
|
|
85
|
-
height: calc(var(--checkbox-size) / 2.5);
|
|
86
|
-
border: solid var(--background, #FFF);
|
|
87
|
-
margin-bottom: calc(var(--checkbox-size) / 10);
|
|
88
|
-
border-width: 0 2px 2px 0;
|
|
89
|
-
transform: rotate(45deg);
|
|
90
|
-
display: block;
|
|
91
|
-
}
|
|
92
|
-
.xv-checkbox input:checked + .checkmark.checkmark-partial::after {
|
|
93
|
-
content: "";
|
|
94
|
-
width: calc(var(--checkbox-size) / 3);
|
|
95
|
-
height: calc(var(--checkbox-size) / 10);
|
|
96
|
-
background-color: var(--background, #FFF);
|
|
97
|
-
}
|
|
98
|
-
.xv-checkbox input:focus + .checkmark {
|
|
99
|
-
outline: 1px solid var(--border-strong-01, #8B8B8B);
|
|
100
|
-
}
|
|
101
|
-
.xv-checkbox .label {
|
|
102
|
-
margin-left: 8px;
|
|
103
|
-
color: var(--text-primary, #333);
|
|
104
|
-
font-family: var(--ff-body, Tahoma);
|
|
105
|
-
font-size: var(--fz-md, 14px);
|
|
106
|
-
line-height: 128.571%;
|
|
107
|
-
letter-spacing: 0.16px;
|
|
108
|
-
}
|