xv-webcomponents 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +129 -129
  3. package/dist/types/components/xv-checkbox/xv-checkbox.d.ts +66 -2
  4. package/dist/types/components/xv-table/defs.d.ts +16 -0
  5. package/dist/types/components/xv-table/xv-table-col/xv-table-col.d.ts +3 -0
  6. package/dist/types/components/xv-table/xv-table-header-row/xv-table-header-row.d.ts +25 -0
  7. package/dist/types/components/xv-table/xv-table-row/xv-table-row.d.ts +59 -0
  8. package/dist/types/components/xv-table/xv-table.d.ts +40 -0
  9. package/dist/types/components.d.ts +342 -0
  10. package/dist/types/types/enum.d.ts +7 -0
  11. package/dist/types/utils/utils.d.ts +7 -0
  12. package/dist/xv-webcomponents/index-90b82796.js +3971 -0
  13. package/dist/xv-webcomponents/index-90b82796.js.map +1 -0
  14. package/dist/xv-webcomponents/index.esm.js +12 -1
  15. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  16. package/dist/xv-webcomponents/utils-e6dc0550.js +17 -0
  17. package/dist/xv-webcomponents/utils-e6dc0550.js.map +1 -0
  18. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +35 -0
  19. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
  20. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +40 -0
  21. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
  22. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +17 -0
  23. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
  24. package/dist/xv-webcomponents/xv-button-v2.entry.js +33 -0
  25. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
  26. package/dist/xv-webcomponents/xv-card-v2.entry.js +18 -0
  27. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
  28. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +99 -0
  29. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
  30. package/dist/xv-webcomponents/xv-link-v2.entry.js +26 -0
  31. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
  32. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +19 -0
  33. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
  34. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +39 -0
  35. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
  36. package/dist/xv-webcomponents/xv-table-v2-col.entry.js +17 -0
  37. package/dist/xv-webcomponents/xv-table-v2-col.entry.js.map +1 -0
  38. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js +34 -0
  39. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js.map +1 -0
  40. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +112 -0
  41. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
  42. package/dist/xv-webcomponents/xv-table-v2.entry.js +114 -0
  43. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
  44. package/dist/xv-webcomponents/xv-tag-v2.entry.js +28 -0
  45. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
  46. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +23 -0
  47. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
  48. package/dist/xv-webcomponents/xv-webcomponents.esm.js +48 -1
  49. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  50. package/package.json +51 -51
  51. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  52. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  53. package/dist/cjs/index-4d938647.js +0 -1483
  54. package/dist/cjs/index-4d938647.js.map +0 -1
  55. package/dist/cjs/index.cjs.js +0 -11
  56. package/dist/cjs/index.cjs.js.map +0 -1
  57. package/dist/cjs/loader.cjs.js +0 -17
  58. package/dist/cjs/loader.cjs.js.map +0 -1
  59. package/dist/cjs/utils-c7652b74.js +0 -13
  60. package/dist/cjs/utils-c7652b74.js.map +0 -1
  61. package/dist/cjs/xv-accordion-v2_10.cjs.entry.js +0 -265
  62. package/dist/cjs/xv-accordion-v2_10.cjs.entry.js.map +0 -1
  63. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -22
  64. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
  65. package/dist/cjs/xv-webcomponents.cjs.js +0 -27
  66. package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
  67. package/dist/collection/collection-manifest.json +0 -22
  68. package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
  69. package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
  70. package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
  71. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
  72. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
  73. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
  74. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
  75. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
  76. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
  77. package/dist/collection/components/xv-button/xv-button-v2.css +0 -153
  78. package/dist/collection/components/xv-button/xv-button.js +0 -138
  79. package/dist/collection/components/xv-button/xv-button.js.map +0 -1
  80. package/dist/collection/components/xv-card/xv-card.css +0 -63
  81. package/dist/collection/components/xv-card/xv-card.js +0 -122
  82. package/dist/collection/components/xv-card/xv-card.js.map +0 -1
  83. package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -22
  84. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
  85. package/dist/collection/components/xv-link/xv-link.css +0 -60
  86. package/dist/collection/components/xv-link/xv-link.js +0 -132
  87. package/dist/collection/components/xv-link/xv-link.js.map +0 -1
  88. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -7
  89. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -70
  90. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
  91. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -66
  92. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -47
  93. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
  94. package/dist/collection/components/xv-tag/xv-tag.css +0 -97
  95. package/dist/collection/components/xv-tag/xv-tag.js +0 -158
  96. package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
  97. package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -154
  98. package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -70
  99. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
  100. package/dist/collection/index.js +0 -11
  101. package/dist/collection/index.js.map +0 -1
  102. package/dist/collection/utils/utils.js +0 -7
  103. package/dist/collection/utils/utils.js.map +0 -1
  104. package/dist/esm/index-60f5a964.js +0 -1454
  105. package/dist/esm/index-60f5a964.js.map +0 -1
  106. package/dist/esm/index.js +0 -3
  107. package/dist/esm/index.js.map +0 -1
  108. package/dist/esm/loader.js +0 -13
  109. package/dist/esm/loader.js.map +0 -1
  110. package/dist/esm/utils-9bb6333b.js +0 -10
  111. package/dist/esm/utils-9bb6333b.js.map +0 -1
  112. package/dist/esm/xv-accordion-v2_10.entry.js +0 -252
  113. package/dist/esm/xv-accordion-v2_10.entry.js.map +0 -1
  114. package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
  115. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
  116. package/dist/esm/xv-webcomponents.js +0 -22
  117. package/dist/esm/xv-webcomponents.js.map +0 -1
  118. package/dist/index.cjs.js +0 -1
  119. package/dist/index.js +0 -1
  120. package/dist/xv-webcomponents/p-08297c60.entry.js +0 -2
  121. package/dist/xv-webcomponents/p-08297c60.entry.js.map +0 -1
  122. package/dist/xv-webcomponents/p-543fe755.js +0 -3
  123. package/dist/xv-webcomponents/p-543fe755.js.map +0 -1
  124. package/dist/xv-webcomponents/p-6fe85516.entry.js +0 -2
  125. package/dist/xv-webcomponents/p-6fe85516.entry.js.map +0 -1
  126. package/dist/xv-webcomponents/p-a0b74d3c.js +0 -2
  127. package/dist/xv-webcomponents/p-a0b74d3c.js.map +0 -1
  128. package/dist/xv-webcomponents/p-e1255160.js +0 -2
  129. package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
  130. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js +0 -0
  131. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js.map +0 -0
@@ -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: '347b7aed9ce24e2e048bb4e6d0b07b23f0f60d5b', class: `xv-card xv-card_${this.variant}`, part: this.variant }, h("div", { key: '9cd9f38cfe7d93fc271907fc8435033df860c246', class: "xv-card_media" }, h("slot", { key: '35e2bae3084a0e7d26e13c0e3116daa9895ea6c1', name: "media" }, this.media && h("img", { key: '60d4305b136766e447653cb399f92ae70e3d9430', class: "xv-card_media__content", src: this.media, alt: this.header }))), h("div", { key: '3751defc0abf18997dca82ae5b5d6601c6e9f60b', class: "xv-card_content" }, h("div", { key: 'cca74475b9e5dba03c82f77851fb503a5323ce3c', class: "xv-card_header" }, h("slot", { key: '02c4e3ddfb73bd56ef8f5b44a22bfe710654171a', name: "header" }, this.header && h("p", { key: '56998aa4742cc7576a023fcbe3e0892f312805ee', class: "xv-card_header__content" }, this.header))), h("div", { key: '86da97df293ff58dbcfe0a2b7bc25c98053ac6a2', class: "xv-card_body" }, h("slot", { key: 'ff8d6dc3ef8e437d28f237c415bf43382df85f19', name: "body" }, this.body && h("p", { key: '7e8e351ac0fa2100fc7929e81cc380a4a32e7019', class: "xv-card_body__content" }, this.header))), h("div", { key: 'dc9824b523f2dbdb4f88dc05ac0e490f9b04f529', class: "xv-card_footer" }, h("slot", { key: 'ea4fbffc436ee2ef43f481be7656aad07dfc55ce', 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';\n\n@Component({\n tag: 'xv-card-v2',\n styleUrl: 'xv-card.scss',\n shadow: true,\n})\nexport class XvCard {\n @Prop() variant: 'horizontal' | 'vertical' = 'vertical';\n @Prop() media: string;\n @Prop() header: string;\n @Prop() body: string;\n @Prop() footer: string;\n render() {\n return (\n <Host class={`xv-card xv-card_${this.variant}`} part={this.variant}>\n <div class=\"xv-card_media\">\n <slot name=\"media\">\n {this.media && <img class=\"xv-card_media__content\" src={this.media} alt={this.header} />}\n </slot>\n </div>\n\n <div class=\"xv-card_content\">\n <div class=\"xv-card_header\">\n <slot name=\"header\">\n {this.header && <p class=\"xv-card_header__content\">{this.header}</p>}\n </slot>\n </div>\n <div class=\"xv-card_body\">\n <slot name=\"body\">\n {this.body && <p class=\"xv-card_body__content\">{this.header}</p>}\n </slot>\n </div>\n <div class=\"xv-card_footer\">\n <slot name=\"footer\">{this.footer}</slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1,22 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export class XvCheckbox {
3
- applyGlobalStyles() {
4
- var _a;
5
- const globalStyle = document.getElementById("brand-style");
6
- if (globalStyle) {
7
- const styleClone = document.createElement("style");
8
- styleClone.innerHTML = `@import url('${globalStyle.href}');`;
9
- (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.appendChild(styleClone);
10
- }
11
- }
12
- componentWillLoad() {
13
- this.applyGlobalStyles();
14
- }
15
- render() {
16
- return (h("label", { key: '854b175975d81eaa3dd16ab5e5e7ecb8075da6a2', class: "checkbox-container" }, h("input", { key: '4a40abb6dcec0a634d1e2d40878e877771ffd94d', type: "checkbox" }), h("span", { key: '473ce5b6240284f96d2b9a4d759ee18182470c10', class: "checkmark" }), h("slot", { key: '664f0b742f6ee4e2d71e984031052b9e746189b9' })));
17
- }
18
- static get is() { return "xv-checkbox-v2"; }
19
- static get encapsulation() { return "shadow"; }
20
- static get elementRef() { return "el"; }
21
- }
22
- //# sourceMappingURL=xv-checkbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-checkbox.js","sourceRoot":"","sources":["../../../src/components/xv-checkbox/xv-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAMtD,MAAM,OAAO,UAAU;IAGb,iBAAiB;;QACvB,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAoB,CAAC;QAC9E,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YACnD,UAAU,CAAC,SAAS,GAAG,gBAAgB,WAAW,CAAC,IAAI,KAAK,CAAC;YAC7D,MAAA,IAAI,CAAC,EAAE,CAAC,UAAU,0CAAE,WAAW,CAAC,UAAU,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,8DAAO,KAAK,EAAC,oBAAoB;YAC/B,8DAAO,IAAI,EAAC,UAAU,GAAG;YACzB,6DAAM,KAAK,EAAC,WAAW,GAAQ;YAC/B,8DAAa,CACP,CACT,CAAC;IACJ,CAAC;;;;CACF","sourcesContent":["import { Component, h, Element } from '@stencil/core';\n\n@Component({\n tag: 'xv-checkbox-v2',\n shadow: true, // ✅ Shadow DOM aktiviert\n})\nexport class XvCheckbox {\n @Element() el!: HTMLElement;\n\n private applyGlobalStyles() {\n const globalStyle = document.getElementById(\"brand-style\") as HTMLLinkElement;\n if (globalStyle) {\n const styleClone = document.createElement(\"style\");\n styleClone.innerHTML = `@import url('${globalStyle.href}');`;\n this.el.shadowRoot?.appendChild(styleClone);\n }\n }\n\n componentWillLoad() {\n this.applyGlobalStyles();\n }\n\n render() {\n return (\n <label class=\"checkbox-container\">\n <input type=\"checkbox\" />\n <span class=\"checkmark\"></span>\n <slot></slot>\n </label>\n );\n }\n}\n"]}
@@ -1,60 +0,0 @@
1
- :host {
2
- font-family: var(--ff-body, inherit);
3
- }
4
-
5
- :host(.xv-link_inline) {
6
- display: inline-block;
7
- }
8
- :host(.xv-link_inline) .xv-link {
9
- text-decoration-line: underline;
10
- text-decoration-style: solid;
11
- text-decoration-skip-ink: none;
12
- text-decoration-thickness: auto;
13
- text-underline-offset: auto;
14
- text-underline-position: from-font;
15
- }
16
-
17
- :host(.xv-link_standalone) {
18
- display: block;
19
- }
20
- :host(.xv-link_standalone) .xv-link {
21
- text-decoration-line: none;
22
- }
23
-
24
- .xv-link {
25
- display: inline-flex;
26
- gap: 8px;
27
- align-items: center;
28
- color: var(--link-primary);
29
- font-family: var(--ff-body);
30
- font-style: normal;
31
- font-weight: 400;
32
- transition: color 200ms ease-in-out;
33
- }
34
- .xv-link:active {
35
- color: var(--text-primary);
36
- }
37
- .xv-link:visited {
38
- color: var(--link-visted);
39
- }
40
- .xv-link:hover {
41
- color: var(--link-primary-hover);
42
- cursor: pointer;
43
- }
44
- .xv-link:disabled, .xv-link_disabled, .xv-link::part(disabled) {
45
- color: var(--text-disabled);
46
- pointer-events: none;
47
- cursor: initial;
48
- }
49
- .xv-link.sm {
50
- font-size: var(--fz-sm);
51
- line-height: 137.5%;
52
- }
53
- .xv-link.md {
54
- font-size: var(--fz-md);
55
- line-height: 128.571%;
56
- }
57
- .xv-link.lg {
58
- font-size: var(--fz-lg);
59
- line-height: 133.333%;
60
- }
@@ -1,132 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- export class XvLink {
3
- constructor() {
4
- this.disabled = false;
5
- this.size = 'md';
6
- this.variant = 'inline';
7
- }
8
- preventLinkHandler(e) {
9
- if (!this.disabled)
10
- return;
11
- e.preventDefault();
12
- e.stopPropagation();
13
- }
14
- render() {
15
- return (h(Host, { key: 'da2418a05379b0510c46ede0992a67bdc4847238', class: `xv-link_${this.variant}` }, h("a", { key: '5632ecb0da02799b43fbdcfa522243502a6c2a7a', href: this.href, onClick: this.preventLinkHandler.bind(this), class: `xv-link ${this.disabled ? 'xv-link_disabled' : ''} ${this.size}`, target: this.target }, h("slot", { key: '15efb0b41fbc63459d83ec104a972b645541cc80', name: "icon-left" }), h("slot", { key: '47aab9fa38e9d637a2b6fd838e14805602343aea' }), h("slot", { key: 'a103c85ea4c15c83045b9e52d5dcf19fdff45076', name: "icon-right" }))));
16
- }
17
- static get is() { return "xv-link-v2"; }
18
- static get encapsulation() { return "shadow"; }
19
- static get originalStyleUrls() {
20
- return {
21
- "$": ["xv-link.scss"]
22
- };
23
- }
24
- static get styleUrls() {
25
- return {
26
- "$": ["xv-link.css"]
27
- };
28
- }
29
- static get properties() {
30
- return {
31
- "href": {
32
- "type": "string",
33
- "mutable": false,
34
- "complexType": {
35
- "original": "string",
36
- "resolved": "string",
37
- "references": {}
38
- },
39
- "required": false,
40
- "optional": false,
41
- "docs": {
42
- "tags": [],
43
- "text": ""
44
- },
45
- "getter": false,
46
- "setter": false,
47
- "attribute": "href",
48
- "reflect": false
49
- },
50
- "target": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "'_self' | '_blank' | '_parent' | '_top'",
55
- "resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
56
- "references": {}
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- },
64
- "getter": false,
65
- "setter": false,
66
- "attribute": "target",
67
- "reflect": false
68
- },
69
- "disabled": {
70
- "type": "boolean",
71
- "mutable": false,
72
- "complexType": {
73
- "original": "boolean",
74
- "resolved": "boolean",
75
- "references": {}
76
- },
77
- "required": false,
78
- "optional": false,
79
- "docs": {
80
- "tags": [],
81
- "text": ""
82
- },
83
- "getter": false,
84
- "setter": false,
85
- "attribute": "disabled",
86
- "reflect": false,
87
- "defaultValue": "false"
88
- },
89
- "size": {
90
- "type": "string",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "'sm' | 'md' | 'lg'",
94
- "resolved": "\"lg\" | \"md\" | \"sm\"",
95
- "references": {}
96
- },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": ""
102
- },
103
- "getter": false,
104
- "setter": false,
105
- "attribute": "size",
106
- "reflect": false,
107
- "defaultValue": "'md'"
108
- },
109
- "variant": {
110
- "type": "string",
111
- "mutable": false,
112
- "complexType": {
113
- "original": "'standalone' | 'inline'",
114
- "resolved": "\"inline\" | \"standalone\"",
115
- "references": {}
116
- },
117
- "required": false,
118
- "optional": false,
119
- "docs": {
120
- "tags": [],
121
- "text": ""
122
- },
123
- "getter": false,
124
- "setter": false,
125
- "attribute": "variant",
126
- "reflect": false,
127
- "defaultValue": "'inline'"
128
- }
129
- };
130
- }
131
- }
132
- //# sourceMappingURL=xv-link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-link.js","sourceRoot":"","sources":["../../../src/components/xv-link/xv-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,MAAM;IALnB;QAQU,aAAQ,GAAY,KAAK,CAAC;QAC1B,SAAI,GAAuB,IAAI,CAAC;QAChC,YAAO,GAA4B,QAAQ,CAAC;KA2BrD;IAzBC,kBAAkB,CAAC,CAAe;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO;QAE3B,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,WAAW,IAAI,CAAC,OAAO,EAAE;YACpC,0DACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3C,KAAK,EAAE,WAAW,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EACxE,MAAM,EAAE,IAAI,CAAC,MAAM;gBAEnB,6DAAM,IAAI,EAAC,WAAW,GAAQ;gBAE9B,8DAAa;gBAEb,6DAAM,IAAI,EAAC,YAAY,GAAQ,CAC7B,CACC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-link-v2',\n styleUrl: 'xv-link.scss',\n shadow: true,\n})\nexport class XvLink {\n @Prop() href: string;\n @Prop() target: '_self' | '_blank' | '_parent' | '_top';\n @Prop() disabled: boolean = false;\n @Prop() size: 'sm' | 'md' | 'lg' = 'md';\n @Prop() variant: 'standalone' | 'inline' = 'inline';\n\n preventLinkHandler(e: PointerEvent) {\n if (!this.disabled) return;\n\n e.preventDefault();\n e.stopPropagation();\n }\n\n render() {\n return (\n <Host class={`xv-link_${this.variant}`}>\n <a\n href={this.href}\n onClick={this.preventLinkHandler.bind(this)}\n class={`xv-link ${this.disabled ? 'xv-link_disabled' : ''} ${this.size}`}\n target={this.target}\n >\n <slot name=\"icon-left\"></slot>\n\n <slot></slot>\n\n <slot name=\"icon-right\"></slot>\n </a>\n </Host>\n );\n }\n}\n"]}
@@ -1,7 +0,0 @@
1
- :host {
2
- display: flex;
3
- align-items: flex-start;
4
- justify-content: space-between;
5
- font-family: var(--ff-body, inherit);
6
- overflow-x: auto;
7
- }
@@ -1,70 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class XvProgressIndicator {
3
- constructor() {
4
- this.progress = 0;
5
- }
6
- // Update 'xv-progress-indicator-item' done status
7
- updateChildItems() {
8
- const items = this.el.children;
9
- const itemsCount = this.el.childElementCount;
10
- const progressPerItem = 100 / itemsCount;
11
- if (!items.length || !itemsCount)
12
- return;
13
- Array.from(items).forEach((item, index) => {
14
- const itemProgress = (index + 1) * progressPerItem;
15
- const done = this.progress >= itemProgress;
16
- item.setAttribute('done', done ? 'true' : 'false');
17
- });
18
- }
19
- // Load initial done status
20
- componentDidLoad() {
21
- this.updateChildItems();
22
- }
23
- render() {
24
- return (h(Host, { key: '009b89bf21bd093b84040e6ede3be78d5c402f53', class: "xv-progress-indicator" }, h("slot", { key: '8ca75f700170c5aeb2da17133080fcde7e667947' })));
25
- }
26
- static get is() { return "xv-progress-indicator-v2"; }
27
- static get encapsulation() { return "shadow"; }
28
- static get originalStyleUrls() {
29
- return {
30
- "$": ["xv-progress-indicator.scss"]
31
- };
32
- }
33
- static get styleUrls() {
34
- return {
35
- "$": ["xv-progress-indicator.css"]
36
- };
37
- }
38
- static get properties() {
39
- return {
40
- "progress": {
41
- "type": "number",
42
- "mutable": false,
43
- "complexType": {
44
- "original": "number",
45
- "resolved": "number",
46
- "references": {}
47
- },
48
- "required": false,
49
- "optional": false,
50
- "docs": {
51
- "tags": [],
52
- "text": ""
53
- },
54
- "getter": false,
55
- "setter": false,
56
- "attribute": "progress",
57
- "reflect": false,
58
- "defaultValue": "0"
59
- }
60
- };
61
- }
62
- static get elementRef() { return "el"; }
63
- static get watchers() {
64
- return [{
65
- "propName": "progress",
66
- "methodName": "updateChildItems"
67
- }];
68
- }
69
- }
70
- //# sourceMappingURL=xv-progress-indicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-progress-indicator.js","sourceRoot":"","sources":["../../../src/components/xv-progress-indicator/xv-progress-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOzE,MAAM,OAAO,mBAAmB;IALhC;QAOU,aAAQ,GAAW,CAAC,CAAC;KA8B9B;IA5BC,kDAAkD;IAElD,gBAAgB;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC;QAC7C,MAAM,eAAe,GAAG,GAAG,GAAG,UAAU,CAAC;QAEzC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,UAAU;YAAE,OAAO;QAEzC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACxC,MAAM,YAAY,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;YACnD,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,IAAI,YAAY,CAAC;YAC1C,IAAoB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;IACL,CAAC;IAED,2BAA2B;IAC3B,gBAAgB;QACd,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,uBAAuB;YACjC,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Watch, Element } from '@stencil/core';\n\n@Component({\n tag: 'xv-progress-indicator-v2',\n styleUrl: 'xv-progress-indicator.scss',\n shadow: true,\n})\nexport class XvProgressIndicator {\n @Element() el: HTMLElement;\n @Prop() progress: number = 0;\n\n // Update 'xv-progress-indicator-item' done status\n @Watch('progress')\n updateChildItems() {\n const items = this.el.children;\n const itemsCount = this.el.childElementCount;\n const progressPerItem = 100 / itemsCount;\n\n if (!items.length || !itemsCount) return;\n\n Array.from(items).forEach((item, index) => {\n const itemProgress = (index + 1) * progressPerItem;\n const done = this.progress >= itemProgress;\n (item as HTMLElement).setAttribute('done', done ? 'true' : 'false');\n });\n }\n\n // Load initial done status\n componentDidLoad() {\n this.updateChildItems()\n }\n\n render() {\n return (\n <Host class=\"xv-progress-indicator\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1,66 +0,0 @@
1
- :host(.xv-progress-indicator-item) {
2
- display: flex;
3
- flex: 1;
4
- flex-direction: column;
5
- align-items: center;
6
- justify-content: center;
7
- position: relative;
8
- padding: 10px 16px;
9
- }
10
- :host(.xv-progress-indicator-item):before {
11
- width: 100%;
12
- }
13
- :host(.xv-progress-indicator-item):before, :host(.xv-progress-indicator-item) .line {
14
- content: "";
15
- z-index: 1;
16
- display: inline-block;
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- right: 0;
21
- height: 2px;
22
- color: inherit;
23
- background-color: var(--border-subtle-01, grey);
24
- }
25
- :host(.xv-progress-indicator-item) .line {
26
- width: 0;
27
- color: inherit;
28
- transition: width 250ms ease;
29
- background-color: var(--background-brand, currentColor);
30
- }
31
- :host(.xv-progress-indicator-item) .icon {
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
- width: 22px;
36
- height: 22px;
37
- max-width: 22px;
38
- max-height: 22px;
39
- border: 2px dashed var(--icon-primary, currentColor);
40
- border-radius: 50%;
41
- }
42
- :host(.xv-progress-indicator-item) .icon svg {
43
- opacity: 0;
44
- transition: opacity 500ms ease-in-out;
45
- }
46
- :host(.xv-progress-indicator-item) .label {
47
- color: var(--text-primary);
48
- font-size: 14px;
49
- font-style: normal;
50
- font-weight: 400;
51
- line-height: 18px;
52
- letter-spacing: 0.16px;
53
- }
54
-
55
- :host(.done) .icon {
56
- border-color: var(--background-brand, currentColor);
57
- color: var(--background-brand, inherit);
58
- border-style: solid;
59
- }
60
- :host(.done) .icon svg {
61
- opacity: 1;
62
- }
63
- :host(.done) .line {
64
- width: 100% !important;
65
- background-color: var(--background-brand, currentColor);
66
- }
@@ -1,47 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class XvProgressIndicatorItem {
3
- constructor() {
4
- this.done = false;
5
- }
6
- render() {
7
- return (h(Host, { key: 'e18a645a83758b1e6d1c1fe32e3aab8e75ff3e7b', class: `xv-progress-indicator-item ${this.done ? 'done' : ''}` }, h("span", { key: '000bfef67379218d2af3c3393432dbfc46c20707', class: "line" }), h("span", { key: 'c1056a34648ab5b55ddb56faa30f5be8ecae83cf', class: "icon" }, h("svg", { key: 'ce1d729b7464f044808577460714d279374a7e9f', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", width: 14, height: 14 }, h("path", { key: 'c67e17743357ccd75295b3d1f354e6f8096dbde8', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), h("p", { key: '593c6a4c187148315cade226fc7f272462445a0e', class: "label" }, h("slot", { key: 'c3ed988d5cc8722e5bd5200646bd5c824921dd27' }))));
8
- }
9
- static get is() { return "xv-progress-indicator-v2-item"; }
10
- static get encapsulation() { return "shadow"; }
11
- static get originalStyleUrls() {
12
- return {
13
- "$": ["xv-progress-indicator-item.scss"]
14
- };
15
- }
16
- static get styleUrls() {
17
- return {
18
- "$": ["xv-progress-indicator-item.css"]
19
- };
20
- }
21
- static get properties() {
22
- return {
23
- "done": {
24
- "type": "boolean",
25
- "mutable": false,
26
- "complexType": {
27
- "original": "boolean",
28
- "resolved": "boolean",
29
- "references": {}
30
- },
31
- "required": false,
32
- "optional": false,
33
- "docs": {
34
- "tags": [],
35
- "text": ""
36
- },
37
- "getter": false,
38
- "setter": false,
39
- "attribute": "done",
40
- "reflect": false,
41
- "defaultValue": "false"
42
- }
43
- };
44
- }
45
- static get elementRef() { return "el"; }
46
- }
47
- //# sourceMappingURL=xv-progress-indicator-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-progress-indicator-item.js","sourceRoot":"","sources":["../../../src/components/xv-progress-indicator-item/xv-progress-indicator-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,uBAAuB;IALpC;QAO4B,SAAI,GAAY,KAAK,CAAC;KAuBjD;IArBC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,8BAA8B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YAClE,6DAAM,KAAK,EAAC,MAAM,GAAE;YACpB,6DAAM,KAAK,EAAC,MAAM;gBAChB,4DACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;oBAEN,6DACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,sLAAsL,GACxL,CACF,CACD;YACP,0DAAG,KAAK,EAAC,OAAO;gBAAC,8DAAO,CAAI,CACvB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-progress-indicator-v2-item',\n styleUrl: 'xv-progress-indicator-item.scss',\n shadow: true,\n})\nexport class XvProgressIndicatorItem {\n @Element() el: HTMLElement;\n @Prop({ reflect: false }) done: boolean = false;\n\n render() {\n return (\n <Host class={`xv-progress-indicator-item ${this.done ? 'done' : ''}`}>\n <span class=\"line\"/>\n <span class=\"icon\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n width={14}\n height={14}\n >\n <path\n fill=\"currentColor\"\n d=\"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z\"\n />\n </svg>\n </span>\n <p class=\"label\"><slot/></p>\n </Host>\n );\n }\n}\n"]}
@@ -1,97 +0,0 @@
1
- @charset "UTF-8";
2
- :host {
3
- display: inline-flex;
4
- align-items: center;
5
- justify-content: space-between;
6
- border-radius: 1000px;
7
- background-color: var(--background);
8
- color: var(--text-primary);
9
- font-family: var(--ff-body, inherit);
10
- }
11
- :host .xv-tag_content {
12
- padding-left: 8px;
13
- padding-right: 8px;
14
- color: inherit;
15
- font-family: var(--ff-body);
16
- font-style: normal;
17
- font-weight: 400;
18
- line-height: 16px;
19
- letter-spacing: 0.32px;
20
- white-space: nowrap;
21
- overflow: hidden;
22
- text-overflow: ellipsis;
23
- }
24
- :host .xv-tag_close {
25
- box-sizing: border-box;
26
- text-decoration: none;
27
- border: none;
28
- background-color: inherit;
29
- outline: none;
30
- border-spacing: 0;
31
- list-style: none outside none;
32
- margin: 0;
33
- padding: 0;
34
- display: inline-flex;
35
- align-items: center;
36
- justify-content: center;
37
- border-radius: 62px;
38
- width: 15px;
39
- height: 15px;
40
- text-align: left;
41
- color: inherit;
42
- text-indent: 0;
43
- transition: opacity 300ms ease-in-out, filter 300ms ease-in-out;
44
- }
45
- :host .xv-tag_close:hover {
46
- cursor: pointer;
47
- filter: brightness(80%);
48
- }
49
- :host .xv-tag_close:active {
50
- opacity: 0.7;
51
- }
52
- :host .xv-tag_close:focus {
53
- outline: 1px solid currentColor;
54
- }
55
- :host .xv-tag_close:after {
56
- overflow: hidden;
57
- width: inherit;
58
- height: inherit;
59
- color: inherit;
60
- font-size: 16px;
61
- display: inline-flex;
62
- align-items: center;
63
- justify-content: center;
64
- content: "×";
65
- }
66
-
67
- :host(.sm) {
68
- font-size: var(--fz-sm);
69
- }
70
-
71
- :host(.md) {
72
- font-size: var(--fz-md);
73
- }
74
- :host(.md) .xv-tag_content {
75
- line-height: 24px;
76
- }
77
- :host(.md) .xv-tag_close {
78
- height: 24px;
79
- width: 24px;
80
- }
81
-
82
- :host(.lg) {
83
- font-size: var(--fz-lg);
84
- }
85
- :host(.lg) .xv-tag_content {
86
- line-height: 26px;
87
- }
88
- :host(.lg) .xv-tag_close {
89
- height: 26px;
90
- width: 26px;
91
- }
92
-
93
- :host(.disabled) {
94
- pointer-events: none;
95
- background-color: var(--layer-01);
96
- color: var(--text-disabled);
97
- }