xv-webcomponents 0.1.18 → 0.1.20
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/dist/xv-webcomponents/index-90b82796.js +3971 -0
- package/dist/xv-webcomponents/index-90b82796.js.map +1 -0
- package/dist/xv-webcomponents/index.esm.js +12 -1
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/{collection/utils/utils.js → xv-webcomponents/utils-e6dc0550.js} +7 -4
- package/dist/xv-webcomponents/utils-e6dc0550.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +35 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js +40 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +17 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.js +33 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.js +18 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +99 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.js +26 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +19 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +39 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-col.entry.js +17 -0
- package/dist/xv-webcomponents/xv-table-v2-col.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js +34 -0
- package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js +112 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.js +114 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.js +28 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +23 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +48 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- 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_14.cjs.entry.js +0 -602
- package/dist/cjs/xv-accordion-v2_14.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/collection-manifest.json +0 -26
- 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-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/types/enum.js +0 -9
- package/dist/collection/types/enum.js.map +0 -1
- package/dist/collection/utils/utils.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_14.entry.js +0 -585
- package/dist/esm/xv-accordion-v2_14.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/xv-webcomponents/p-5f18d718.entry.js +0 -2
- package/dist/xv-webcomponents/p-5f18d718.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-bfe83d1e.entry.js +0 -2
- package/dist/xv-webcomponents/p-bfe83d1e.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/{esm → xv-webcomponents}/app-globals-0f993ce5.js +0 -0
- /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js.map +0 -0
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class XvTag {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.size = 'md';
|
|
5
|
-
this.color = '';
|
|
6
|
-
this.bg = '';
|
|
7
|
-
this.disabled = false;
|
|
8
|
-
this.closeable = false;
|
|
9
|
-
}
|
|
10
|
-
closeHandler(e) {
|
|
11
|
-
if (this.disabled)
|
|
12
|
-
return;
|
|
13
|
-
this.closeClick.emit(e);
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (h(Host, { key: '3164ae035733d790ba1fb02040dd8ba5430c960a', style: { color: this.color, background: this.bg }, class: `xv-tag ${this.disabled ? 'disabled' : ''} ${this.size}` }, h("div", { key: '1c540ff9be6a45d89d8a2175bf2603640e43b478', class: "xv-tag_content" }, h("slot", { key: '2d893f03cc168828c932c4995ba2bbb6a649897b' })), this.closeable && (h("button", { key: '459f1f667f3b207fa6f5b24af82e2b5f6470db0d', onClick: this.closeHandler.bind(this), class: "xv-tag_close" }))));
|
|
17
|
-
}
|
|
18
|
-
static get is() { return "xv-tag-v2"; }
|
|
19
|
-
static get encapsulation() { return "shadow"; }
|
|
20
|
-
static get originalStyleUrls() {
|
|
21
|
-
return {
|
|
22
|
-
"$": ["xv-tag.scss"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
static get styleUrls() {
|
|
26
|
-
return {
|
|
27
|
-
"$": ["xv-tag.css"]
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static get properties() {
|
|
31
|
-
return {
|
|
32
|
-
"size": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"mutable": false,
|
|
35
|
-
"complexType": {
|
|
36
|
-
"original": "'sm' | 'md' | 'lg'",
|
|
37
|
-
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
38
|
-
"references": {}
|
|
39
|
-
},
|
|
40
|
-
"required": false,
|
|
41
|
-
"optional": false,
|
|
42
|
-
"docs": {
|
|
43
|
-
"tags": [],
|
|
44
|
-
"text": ""
|
|
45
|
-
},
|
|
46
|
-
"getter": false,
|
|
47
|
-
"setter": false,
|
|
48
|
-
"attribute": "size",
|
|
49
|
-
"reflect": false,
|
|
50
|
-
"defaultValue": "'md'"
|
|
51
|
-
},
|
|
52
|
-
"color": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"mutable": false,
|
|
55
|
-
"complexType": {
|
|
56
|
-
"original": "string",
|
|
57
|
-
"resolved": "string",
|
|
58
|
-
"references": {}
|
|
59
|
-
},
|
|
60
|
-
"required": false,
|
|
61
|
-
"optional": false,
|
|
62
|
-
"docs": {
|
|
63
|
-
"tags": [],
|
|
64
|
-
"text": ""
|
|
65
|
-
},
|
|
66
|
-
"getter": false,
|
|
67
|
-
"setter": false,
|
|
68
|
-
"attribute": "color",
|
|
69
|
-
"reflect": false,
|
|
70
|
-
"defaultValue": "''"
|
|
71
|
-
},
|
|
72
|
-
"bg": {
|
|
73
|
-
"type": "string",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "string",
|
|
77
|
-
"resolved": "string",
|
|
78
|
-
"references": {}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": false,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": ""
|
|
85
|
-
},
|
|
86
|
-
"getter": false,
|
|
87
|
-
"setter": false,
|
|
88
|
-
"attribute": "bg",
|
|
89
|
-
"reflect": false,
|
|
90
|
-
"defaultValue": "''"
|
|
91
|
-
},
|
|
92
|
-
"disabled": {
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "boolean",
|
|
97
|
-
"resolved": "boolean",
|
|
98
|
-
"references": {}
|
|
99
|
-
},
|
|
100
|
-
"required": false,
|
|
101
|
-
"optional": false,
|
|
102
|
-
"docs": {
|
|
103
|
-
"tags": [],
|
|
104
|
-
"text": ""
|
|
105
|
-
},
|
|
106
|
-
"getter": false,
|
|
107
|
-
"setter": false,
|
|
108
|
-
"attribute": "disabled",
|
|
109
|
-
"reflect": false,
|
|
110
|
-
"defaultValue": "false"
|
|
111
|
-
},
|
|
112
|
-
"closeable": {
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"mutable": false,
|
|
115
|
-
"complexType": {
|
|
116
|
-
"original": "boolean",
|
|
117
|
-
"resolved": "boolean",
|
|
118
|
-
"references": {}
|
|
119
|
-
},
|
|
120
|
-
"required": false,
|
|
121
|
-
"optional": false,
|
|
122
|
-
"docs": {
|
|
123
|
-
"tags": [],
|
|
124
|
-
"text": ""
|
|
125
|
-
},
|
|
126
|
-
"getter": false,
|
|
127
|
-
"setter": false,
|
|
128
|
-
"attribute": "closeable",
|
|
129
|
-
"reflect": false,
|
|
130
|
-
"defaultValue": "false"
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
static get events() {
|
|
135
|
-
return [{
|
|
136
|
-
"method": "closeClick",
|
|
137
|
-
"name": "closeClick",
|
|
138
|
-
"bubbles": true,
|
|
139
|
-
"cancelable": true,
|
|
140
|
-
"composed": true,
|
|
141
|
-
"docs": {
|
|
142
|
-
"tags": [],
|
|
143
|
-
"text": ""
|
|
144
|
-
},
|
|
145
|
-
"complexType": {
|
|
146
|
-
"original": "PointerEvent",
|
|
147
|
-
"resolved": "PointerEvent",
|
|
148
|
-
"references": {
|
|
149
|
-
"PointerEvent": {
|
|
150
|
-
"location": "global",
|
|
151
|
-
"id": "global::PointerEvent"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}];
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
//# sourceMappingURL=xv-tag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-tag.js","sourceRoot":"","sources":["../../../src/components/xv-tag/xv-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAO9E,MAAM,OAAO,KAAK;IALlB;QAMU,SAAI,GAAuB,IAAI,CAAC;QAChC,UAAK,GAAW,EAAE,CAAC;QACnB,OAAE,GAAW,EAAE,CAAC;QAChB,aAAQ,GAAY,KAAK,CAAC;QAC1B,cAAS,GAAY,KAAK,CAAC;KAwBpC;IArBC,YAAY,CAAC,CAAe;QAC1B,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO;QAE1B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE,EACjD,KAAK,EAAE,UAAU,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE;YAE/D,4DAAK,KAAK,EAAC,gBAAgB;gBACzB,8DAAa,CACT;YACL,IAAI,CAAC,SAAS,IAAI,CACjB,+DAAQ,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAC,cAAc,GAAU,CAC9E,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xv-tag-v2',\n styleUrl: 'xv-tag.scss',\n shadow: true,\n})\nexport class XvTag {\n @Prop() size: 'sm' | 'md' | 'lg' = 'md';\n @Prop() color: string = '';\n @Prop() bg: string = '';\n @Prop() disabled: boolean = false;\n @Prop() closeable: boolean = false;\n @Event() closeClick: EventEmitter<PointerEvent>;\n\n closeHandler(e: PointerEvent) {\n if (this.disabled) return;\n\n this.closeClick.emit(e);\n }\n\n render() {\n return (\n <Host\n style={{ color: this.color, background: this.bg }}\n class={`xv-tag ${this.disabled ? 'disabled' : ''} ${this.size}`}\n >\n <div class=\"xv-tag_content\">\n <slot></slot>\n </div>\n {this.closeable && (\n <button onClick={this.closeHandler.bind(this)} class=\"xv-tag_close\"></button>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
line-height: 0.5;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* General styles for tooltip */
|
|
9
|
-
:host::before,
|
|
10
|
-
:host::after {
|
|
11
|
-
position: absolute;
|
|
12
|
-
opacity: 0;
|
|
13
|
-
visibility: hidden;
|
|
14
|
-
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
15
|
-
z-index: 10;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Tooltip */
|
|
19
|
-
:host::before {
|
|
20
|
-
content: attr(tooltip);
|
|
21
|
-
background: var(--background-inverse, #333);
|
|
22
|
-
color: var(--icon-inverse, #fff);
|
|
23
|
-
padding: var(--gap-sm, 5px) var(--gap-md, 16px);
|
|
24
|
-
border-radius: 2px;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
text-overflow: ellipsis;
|
|
28
|
-
max-width: 70vw;
|
|
29
|
-
font-family: var(--fz-body, Tahoma);
|
|
30
|
-
font-size: var(fz-md, 14px);
|
|
31
|
-
font-weight: 400;
|
|
32
|
-
line-height: 18px;
|
|
33
|
-
letter-spacing: 0.16px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Arrow */
|
|
37
|
-
:host::after {
|
|
38
|
-
content: "";
|
|
39
|
-
border: 6px solid transparent;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Show Tooltip and arrow */
|
|
43
|
-
:host(:hover)::before,
|
|
44
|
-
:host(:hover)::after,
|
|
45
|
-
:host(:focus)::before,
|
|
46
|
-
:host(:focus)::after {
|
|
47
|
-
opacity: 1;
|
|
48
|
-
visibility: visible;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* Tooltip positions */
|
|
52
|
-
:host(.xv-tooltip_top)::before {
|
|
53
|
-
bottom: 100%;
|
|
54
|
-
left: 50%;
|
|
55
|
-
transform: translateX(-50%) translateY(-5px);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host(.xv-tooltip_top)::after {
|
|
59
|
-
bottom: 100%;
|
|
60
|
-
left: 50%;
|
|
61
|
-
border-top-color: var(--background-inverse, #333);
|
|
62
|
-
transform: translateX(-50%) translateY(5px);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:host(.xv-tooltip_top-left)::before {
|
|
66
|
-
bottom: 100%;
|
|
67
|
-
left: 0;
|
|
68
|
-
transform: translateY(-5px);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host(.xv-tooltip_top-left)::after {
|
|
72
|
-
bottom: 100%;
|
|
73
|
-
left: 10px;
|
|
74
|
-
border-top-color: black;
|
|
75
|
-
transform: translateY(5px);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:host(.xv-tooltip_top-right)::before {
|
|
79
|
-
bottom: 100%;
|
|
80
|
-
right: 0;
|
|
81
|
-
transform: translateY(-5px);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:host(.xv-tooltip_top-right)::after {
|
|
85
|
-
bottom: 100%;
|
|
86
|
-
right: 10px;
|
|
87
|
-
border-top-color: var(--background-inverse, #333);
|
|
88
|
-
transform: translateY(5px);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:host(.xv-tooltip_bottom)::before {
|
|
92
|
-
top: 100%;
|
|
93
|
-
left: 50%;
|
|
94
|
-
transform: translateX(-50%) translateY(5px);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
:host(.xv-tooltip_bottom)::after {
|
|
98
|
-
top: 100%;
|
|
99
|
-
left: 50%;
|
|
100
|
-
border-bottom-color: black;
|
|
101
|
-
transform: translateX(-50%) translateY(-5px);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:host(.xv-tooltip_bottom-left)::before {
|
|
105
|
-
top: 100%;
|
|
106
|
-
left: 0;
|
|
107
|
-
transform: translateY(5px);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:host(.xv-tooltip_bottom-left)::after {
|
|
111
|
-
top: 100%;
|
|
112
|
-
left: 10px;
|
|
113
|
-
border-bottom-color: var(--background-inverse, #333);
|
|
114
|
-
transform: translateY(-5px);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
:host(.xv-tooltip_bottom-right)::before {
|
|
118
|
-
top: 100%;
|
|
119
|
-
right: 0;
|
|
120
|
-
transform: translateY(5px);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
:host(.xv-tooltip_bottom-right)::after {
|
|
124
|
-
top: 100%;
|
|
125
|
-
right: 10px;
|
|
126
|
-
border-bottom-color: var(--background-inverse, #333);
|
|
127
|
-
transform: translateY(-5px);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host(.xv-tooltip_left)::before {
|
|
131
|
-
right: 100%;
|
|
132
|
-
top: 50%;
|
|
133
|
-
transform: translateY(-50%) translateX(-5px);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
:host(.xv-tooltip_left)::after {
|
|
137
|
-
right: 100%;
|
|
138
|
-
top: 50%;
|
|
139
|
-
border-left-color: var(--background-inverse, #333);
|
|
140
|
-
transform: translateY(-50%) translateX(5px);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
:host(.xv-tooltip_right)::before {
|
|
144
|
-
left: 100%;
|
|
145
|
-
top: 50%;
|
|
146
|
-
transform: translateY(-50%) translateX(5px);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
:host(.xv-tooltip_right)::after {
|
|
150
|
-
left: 100%;
|
|
151
|
-
top: 50%;
|
|
152
|
-
border-right-color: var(--background-inverse, #333);
|
|
153
|
-
transform: translateY(-50%) translateX(-5px);
|
|
154
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class XvTooltip {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Tooltip and arrow position related to element
|
|
6
|
-
* possible options: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'.
|
|
7
|
-
* By default, "top"
|
|
8
|
-
*/
|
|
9
|
-
this.position = 'top';
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return (h(Host, { key: '476077c0607c160c2374a48f00c5ddabd199da03', tooltip: this.message, class: `xv-tooltip_${this.position}` }, h("slot", { key: '9ebaf660c304374fd7eb1802a5e145a7856c7b70' }, h("svg", { key: '196a46d3bf15df204853bc092361538dafcbf9f8', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, h("path", { key: '042422978eb1dca37c64df75b076fc25f4f0dd87', fill: "currentColor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" })))));
|
|
13
|
-
}
|
|
14
|
-
static get is() { return "xv-tooltip-v2"; }
|
|
15
|
-
static get encapsulation() { return "shadow"; }
|
|
16
|
-
static get originalStyleUrls() {
|
|
17
|
-
return {
|
|
18
|
-
"$": ["xv-tooltip.scss"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get styleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["xv-tooltip.css"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
static get properties() {
|
|
27
|
-
return {
|
|
28
|
-
"message": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"mutable": false,
|
|
31
|
-
"complexType": {
|
|
32
|
-
"original": "string",
|
|
33
|
-
"resolved": "string",
|
|
34
|
-
"references": {}
|
|
35
|
-
},
|
|
36
|
-
"required": false,
|
|
37
|
-
"optional": false,
|
|
38
|
-
"docs": {
|
|
39
|
-
"tags": [],
|
|
40
|
-
"text": "Message what will be shown for tooltip *"
|
|
41
|
-
},
|
|
42
|
-
"getter": false,
|
|
43
|
-
"setter": false,
|
|
44
|
-
"attribute": "message",
|
|
45
|
-
"reflect": false
|
|
46
|
-
},
|
|
47
|
-
"position": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"mutable": false,
|
|
50
|
-
"complexType": {
|
|
51
|
-
"original": "'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'",
|
|
52
|
-
"resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
|
|
53
|
-
"references": {}
|
|
54
|
-
},
|
|
55
|
-
"required": false,
|
|
56
|
-
"optional": false,
|
|
57
|
-
"docs": {
|
|
58
|
-
"tags": [],
|
|
59
|
-
"text": "Tooltip and arrow position related to element\npossible options: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'.\nBy default, \"top\""
|
|
60
|
-
},
|
|
61
|
-
"getter": false,
|
|
62
|
-
"setter": false,
|
|
63
|
-
"attribute": "position",
|
|
64
|
-
"reflect": false,
|
|
65
|
-
"defaultValue": "'top'"
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=xv-tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-tooltip.js","sourceRoot":"","sources":["../../../src/components/xv-tooltip/xv-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,SAAS;IALtB;QAQE;;;;WAIG;QACK,aAAQ,GAAoG,KAAK,CAAC;KAgB3H;IAdC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,cAAc,IAAI,CAAC,QAAQ,EAAE;YAC/D;gBACE,4DAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;oBACjF,6DACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,yTAAyT,GAC3T,CACE,CACD,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-tooltip-v2',\n styleUrl: 'xv-tooltip.scss',\n shadow: true,\n})\nexport class XvTooltip {\n /** Message what will be shown for tooltip **/\n @Prop() message: string;\n /**\n * Tooltip and arrow position related to element\n * possible options: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'.\n * By default, \"top\"\n */\n @Prop() position: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right' = 'top';\n\n render() {\n return (\n <Host tooltip={this.message} class={`xv-tooltip_${this.position}`}>\n <slot>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width={16} height={16}>\n <path\n fill=\"currentColor\"\n d=\"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"\n />\n </svg>\n </slot>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview entry point for your component library
|
|
3
|
-
*
|
|
4
|
-
* This is the entry point for your component library. Use this file to export utilities,
|
|
5
|
-
* constants or data structure that accompany your components.
|
|
6
|
-
*
|
|
7
|
-
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
8
|
-
* to consume components of this package as outlined in the `README.md`.
|
|
9
|
-
*/
|
|
10
|
-
export { format } from './utils/utils';
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC","sourcesContent":["/**\n * @fileoverview entry point for your component library\n *\n * This is the entry point for your component library. Use this file to export utilities,\n * constants or data structure that accompany your components.\n *\n * DO NOT use this file to export your components. Instead, use the recommended approaches\n * to consume components of this package as outlined in the `README.md`.\n */\n\nexport { format } from './utils/utils';\nexport type * from './components.d.ts';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../src/types/enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;AACX,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB","sourcesContent":["export enum SIZE_VAR {\n XS = 'XS',\n SM = 'sm',\n MD = 'md',\n LG = 'lg',\n XL = 'xl',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,sCAAsC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAClE,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAChF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,CAA+C,EAC/C,SAAoD,EACpD,UAAgB,EAChB,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC","sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n\nexport function uidGenerator() {\n return \"10000000-1000-4000-8000-100000000000\".replace(/[018]/g, c =>\n (+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16)\n );\n}\n\n/**\n * Walks through the given DOM collection and runs the given callback.\n * @param a A DOM collection.\n * @param predicate The callback function.\n * @param [thisObject] The context object for the given callback function.\n */\nexport const forEach = (\n a: NodeListOf<Node> | HTMLCollectionOf<Element>,\n predicate: (search: Element, index?: number) => void,\n thisObject?: any\n) => Array.prototype.forEach.call(a, predicate, thisObject);\n"]}
|