xv-webcomponents 0.1.10 → 0.1.11

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 (108) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/index-4d938647.js +1483 -0
  4. package/dist/cjs/index-4d938647.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +11 -0
  6. package/dist/cjs/index.cjs.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +17 -0
  8. package/dist/cjs/loader.cjs.js.map +1 -0
  9. package/dist/cjs/utils-c7652b74.js +13 -0
  10. package/dist/cjs/utils-c7652b74.js.map +1 -0
  11. package/dist/cjs/xv-accordion_10.cjs.entry.js +263 -0
  12. package/dist/cjs/xv-accordion_10.cjs.entry.js.map +1 -0
  13. package/dist/cjs/xv-breadcrumbs.cjs.entry.js +22 -0
  14. package/dist/cjs/xv-breadcrumbs.cjs.entry.js.map +1 -0
  15. package/dist/cjs/xv-webcomponents.cjs.js +27 -0
  16. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -0
  17. package/dist/collection/collection-manifest.json +22 -0
  18. package/dist/collection/components/xv-accordion/xv-accordion.css +3 -0
  19. package/dist/collection/components/xv-accordion/xv-accordion.js +163 -0
  20. package/dist/collection/components/xv-accordion/xv-accordion.js.map +1 -0
  21. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +68 -0
  22. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +132 -0
  23. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +1 -0
  24. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +3 -0
  25. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +19 -0
  26. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +1 -0
  27. package/dist/collection/components/xv-button/xv-button-v2.css +150 -0
  28. package/dist/collection/components/xv-button/xv-button.js +116 -0
  29. package/dist/collection/components/xv-button/xv-button.js.map +1 -0
  30. package/dist/collection/components/xv-card/xv-card.css +63 -0
  31. package/dist/collection/components/xv-card/xv-card.js +122 -0
  32. package/dist/collection/components/xv-card/xv-card.js.map +1 -0
  33. package/dist/{xv-webcomponents/xv-checkbox-v2.entry.js → collection/components/xv-checkbox/xv-checkbox.js} +7 -12
  34. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -0
  35. package/dist/collection/components/xv-link/xv-link.css +60 -0
  36. package/dist/collection/components/xv-link/xv-link.js +132 -0
  37. package/dist/collection/components/xv-link/xv-link.js.map +1 -0
  38. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +6 -0
  39. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +70 -0
  40. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +1 -0
  41. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +66 -0
  42. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +47 -0
  43. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +1 -0
  44. package/dist/collection/components/xv-tag/xv-tag.css +97 -0
  45. package/dist/collection/components/xv-tag/xv-tag.js +158 -0
  46. package/dist/collection/components/xv-tag/xv-tag.js.map +1 -0
  47. package/dist/collection/components/xv-tooltip/xv-tooltip.css +153 -0
  48. package/dist/collection/components/xv-tooltip/xv-tooltip.js +70 -0
  49. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -0
  50. package/dist/collection/index.js +11 -0
  51. package/dist/collection/index.js.map +1 -0
  52. package/dist/collection/utils/utils.js +7 -0
  53. package/dist/collection/utils/utils.js.map +1 -0
  54. package/dist/esm/index-60f5a964.js +1454 -0
  55. package/dist/esm/index-60f5a964.js.map +1 -0
  56. package/dist/esm/index.js +3 -0
  57. package/dist/esm/index.js.map +1 -0
  58. package/dist/esm/loader.js +13 -0
  59. package/dist/esm/loader.js.map +1 -0
  60. package/dist/esm/xv-accordion_10.entry.js +250 -0
  61. package/dist/esm/xv-accordion_10.entry.js.map +1 -0
  62. package/dist/{xv-webcomponents → esm}/xv-breadcrumbs.entry.js +3 -2
  63. package/dist/esm/xv-breadcrumbs.entry.js.map +1 -0
  64. package/dist/esm/xv-webcomponents.js +22 -0
  65. package/dist/esm/xv-webcomponents.js.map +1 -0
  66. package/dist/index.cjs.js +1 -0
  67. package/dist/index.js +1 -0
  68. package/dist/xv-webcomponents/index.esm.js +1 -12
  69. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  70. package/dist/xv-webcomponents/p-41bd284c.entry.js +2 -0
  71. package/dist/xv-webcomponents/p-41bd284c.entry.js.map +1 -0
  72. package/dist/xv-webcomponents/p-543fe755.js +3 -0
  73. package/dist/xv-webcomponents/p-543fe755.js.map +1 -0
  74. package/dist/xv-webcomponents/p-6f058b7f.entry.js +2 -0
  75. package/dist/xv-webcomponents/p-6f058b7f.entry.js.map +1 -0
  76. package/dist/xv-webcomponents/p-a0b74d3c.js +2 -0
  77. package/dist/xv-webcomponents/p-a0b74d3c.js.map +1 -0
  78. package/dist/xv-webcomponents/p-e1255160.js +2 -0
  79. package/dist/xv-webcomponents/p-e1255160.js.map +1 -0
  80. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -48
  81. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  82. package/package.json +1 -1
  83. package/dist/xv-webcomponents/index-7b4633e7.js +0 -3971
  84. package/dist/xv-webcomponents/index-7b4633e7.js.map +0 -1
  85. package/dist/xv-webcomponents/xv-accordion-item.entry.js +0 -35
  86. package/dist/xv-webcomponents/xv-accordion-item.entry.js.map +0 -1
  87. package/dist/xv-webcomponents/xv-accordion.entry.js +0 -40
  88. package/dist/xv-webcomponents/xv-accordion.entry.js.map +0 -1
  89. package/dist/xv-webcomponents/xv-breadcrumbs.entry.js.map +0 -1
  90. package/dist/xv-webcomponents/xv-button-v2.entry.js +0 -31
  91. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +0 -1
  92. package/dist/xv-webcomponents/xv-card.entry.js +0 -18
  93. package/dist/xv-webcomponents/xv-card.entry.js.map +0 -1
  94. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +0 -1
  95. package/dist/xv-webcomponents/xv-link.entry.js +0 -26
  96. package/dist/xv-webcomponents/xv-link.entry.js.map +0 -1
  97. package/dist/xv-webcomponents/xv-progress-indicator-item.entry.js +0 -19
  98. package/dist/xv-webcomponents/xv-progress-indicator-item.entry.js.map +0 -1
  99. package/dist/xv-webcomponents/xv-progress-indicator.entry.js +0 -39
  100. package/dist/xv-webcomponents/xv-progress-indicator.entry.js.map +0 -1
  101. package/dist/xv-webcomponents/xv-tag.entry.js +0 -28
  102. package/dist/xv-webcomponents/xv-tag.entry.js.map +0 -1
  103. package/dist/xv-webcomponents/xv-tooltip.entry.js +0 -23
  104. package/dist/xv-webcomponents/xv-tooltip.entry.js.map +0 -1
  105. /package/dist/{xv-webcomponents → esm}/app-globals-0f993ce5.js +0 -0
  106. /package/dist/{xv-webcomponents → esm}/app-globals-0f993ce5.js.map +0 -0
  107. /package/dist/{xv-webcomponents → esm}/utils-9bb6333b.js +0 -0
  108. /package/dist/{xv-webcomponents → esm}/utils-9bb6333b.js.map +0 -0
@@ -0,0 +1,122 @@
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: 'c8ec1bfefb9a6cb92b316eab36d3a4e8a08e1a78', class: `xv-card xv-card_${this.variant}`, part: this.variant }, h("div", { key: 'f6274c858ce8333fd2de700b8f0b20921eb7ba09', class: "xv-card_media" }, h("slot", { key: '91105c9e61b8dfe46411bf095dd196f969e9fc02', name: "media" }, this.media && h("img", { key: '2101315142f14a478bf2dd2eb72f7ce3922dfa44', class: "xv-card_media__content", src: this.media, alt: this.header }))), h("div", { key: '58c284ccd7cde840c1808aa14185eb1c70de4751', class: "xv-card_content" }, h("div", { key: 'fb72c62a0d7b5bfedb9a14b7fd8cc4750cfac434', class: "xv-card_header" }, h("slot", { key: 'a8ef5cc27eb4b691e5f8fae2544fe96ccc202fdf', name: "header" }, this.header && h("p", { key: '01fc1daadbb56f4a2f92bd704db06e08a747cd77', class: "xv-card_header__content" }, this.header))), h("div", { key: '2950f470bd305143908ba1bb170da068d6d598f6', class: "xv-card_body" }, h("slot", { key: 'ef9fe6d7daaced77c27483b66c8b01dacfc6713a', name: "body" }, this.body && h("p", { key: '8afd1196e2a45176b503c6be29fdd85ac0e93a83', class: "xv-card_body__content" }, this.header))), h("div", { key: '42e791cfadf951a1e0d99a5a500f52f1553bedfd', class: "xv-card_footer" }, h("slot", { key: 'ac81fb8b06bba6a1851afb344c325ea3a521fceb', name: "footer" }, this.footer)))));
8
+ }
9
+ static get is() { return "xv-card"; }
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
@@ -0,0 +1 @@
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',\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,9 +1,5 @@
1
- import { r as registerInstance, h, g as getElement } from './index-7b4633e7.js';
2
-
3
- const XvCheckbox = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- }
1
+ import { h } from "@stencil/core";
2
+ export class XvCheckbox {
7
3
  applyGlobalStyles() {
8
4
  var _a;
9
5
  const globalStyle = document.getElementById("brand-style");
@@ -19,9 +15,8 @@ const XvCheckbox = class {
19
15
  render() {
20
16
  return (h("label", { key: '76ab7573da75f52db73a267122eede98d03d30a0', class: "checkbox-container" }, h("input", { key: 'fe56dd9781f8ab06d32d1d986d0e04d53b7f56e5', type: "checkbox" }), h("span", { key: '2265baa2f2f06749de8dc9de91ae375178627a5b', class: "checkmark" }), h("slot", { key: '953369ee5f0f656bcc339ca3030256dbaadec4fb' })));
21
17
  }
22
- get el() { return getElement(this); }
23
- };
24
-
25
- export { XvCheckbox as xv_checkbox_v2 };
26
-
27
- //# sourceMappingURL=xv-checkbox-v2.entry.js.map
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
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,60 @@
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
+ }
@@ -0,0 +1,132 @@
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: 'f3434063788d5b6ffda532cb527661104df3ce38', class: `xv-link_${this.variant}` }, h("a", { key: '2482f18ac929497b2f27b3da16d12414b24e3046', href: this.href, onClick: this.preventLinkHandler.bind(this), class: `xv-link ${this.disabled ? 'xv-link_disabled' : ''} ${this.size}`, target: this.target }, h("slot", { key: '1ba29bc9189583d78808e9641588da27bdebc445', name: "icon-left" }), h("slot", { key: 'f4cfc7d01a286f74e1ed1536622a097367d47d49' }), h("slot", { key: 'a33ae557aaa112dc88c291273bce04d9425f937d', name: "icon-right" }))));
16
+ }
17
+ static get is() { return "xv-link"; }
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
@@ -0,0 +1 @@
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';\r\n\r\n@Component({\r\n tag: 'xv-link',\r\n styleUrl: 'xv-link.scss',\r\n shadow: true,\r\n})\r\nexport class XvLink {\r\n @Prop() href: string;\r\n @Prop() target: '_self' | '_blank' | '_parent' | '_top';\r\n @Prop() disabled: boolean = false;\r\n @Prop() size: 'sm' | 'md' | 'lg' = 'md';\r\n @Prop() variant: 'standalone' | 'inline' = 'inline';\r\n\r\n preventLinkHandler(e: PointerEvent) {\r\n if (!this.disabled) return;\r\n\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n\r\n render() {\r\n return (\r\n <Host class={`xv-link_${this.variant}`}>\r\n <a\r\n href={this.href}\r\n onClick={this.preventLinkHandler.bind(this)}\r\n class={`xv-link ${this.disabled ? 'xv-link_disabled' : ''} ${this.size}`}\r\n target={this.target}\r\n >\r\n <slot name=\"icon-left\"></slot>\r\n\r\n <slot></slot>\r\n\r\n <slot name=\"icon-right\"></slot>\r\n </a>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -0,0 +1,6 @@
1
+ :host {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ justify-content: space-between;
5
+ font-family: var(--ff-body, inherit);
6
+ }
@@ -0,0 +1,70 @@
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: 'ce7e68173d7ec806832282ada99ade50ecc54f92', class: "xv-progress-indicator" }, h("slot", { key: '5ebad467a8d1463d4e4e3fe014135cffe5e59c8b' })));
25
+ }
26
+ static get is() { return "xv-progress-indicator"; }
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
@@ -0,0 +1 @@
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';\r\n\r\n@Component({\r\n tag: 'xv-progress-indicator',\r\n styleUrl: 'xv-progress-indicator.scss',\r\n shadow: true,\r\n})\r\nexport class XvProgressIndicator {\r\n @Element() el: HTMLElement;\r\n @Prop() progress: number = 0;\r\n\r\n // Update 'xv-progress-indicator-item' done status\r\n @Watch('progress')\r\n updateChildItems() {\r\n const items = this.el.children;\r\n const itemsCount = this.el.childElementCount;\r\n const progressPerItem = 100 / itemsCount;\r\n\r\n if (!items.length || !itemsCount) return;\r\n\r\n Array.from(items).forEach((item, index) => {\r\n const itemProgress = (index + 1) * progressPerItem;\r\n const done = this.progress >= itemProgress;\r\n (item as HTMLElement).setAttribute('done', done ? 'true' : 'false');\r\n });\r\n }\r\n\r\n // Load initial done status\r\n componentDidLoad() {\r\n this.updateChildItems()\r\n }\r\n\r\n render() {\r\n return (\r\n <Host class=\"xv-progress-indicator\">\r\n <slot></slot>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -0,0 +1,66 @@
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(--border-subtle-01, 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
+ }
@@ -0,0 +1,47 @@
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: 'c26fd7f411c7eb2111c74011ba1217289541919b', class: `xv-progress-indicator-item ${this.done ? 'done' : ''}` }, h("span", { key: 'dbc80d2176c9ce9ba8e685888f44c5081af9d92c', class: "line" }), h("span", { key: '57937d7d83193248ac110257b01e548e7da850da', class: "icon" }, h("svg", { key: '83691b60f9f5c1521e8ee2abeafe716c2713fefe', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", width: 14, height: 14 }, h("path", { key: '7e4f043bb9e81434f448efa6e95683870952760c', 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: '4b0daea5e910474dd1167c5ed70159169c317b63', class: "label" }, h("slot", { key: '2a2afe80a3070f53d6d6d9a71a6ea7c4869cd4cd' }))));
8
+ }
9
+ static get is() { return "xv-progress-indicator-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
@@ -0,0 +1 @@
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';\r\n\r\n@Component({\r\n tag: 'xv-progress-indicator-item',\r\n styleUrl: 'xv-progress-indicator-item.scss',\r\n shadow: true,\r\n})\r\nexport class XvProgressIndicatorItem {\r\n @Element() el: HTMLElement;\r\n @Prop({ reflect: false }) done: boolean = false;\r\n\r\n render() {\r\n return (\r\n <Host class={`xv-progress-indicator-item ${this.done ? 'done' : ''}`}>\r\n <span class=\"line\"/>\r\n <span class=\"icon\">\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 448 512\"\r\n width={14}\r\n height={14}\r\n >\r\n <path\r\n fill=\"currentColor\"\r\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\"\r\n />\r\n </svg>\r\n </span>\r\n <p class=\"label\"><slot/></p>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -0,0 +1,97 @@
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
+ }