xv-webcomponents 0.1.43 → 0.1.44

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 (310) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +129 -129
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  4. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  5. package/dist/cjs/index-BE3kw7I4.js +36 -0
  6. package/dist/cjs/index-BE3kw7I4.js.map +1 -0
  7. package/dist/cjs/index-MLh9SbX2.js +1917 -0
  8. package/dist/cjs/index-MLh9SbX2.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +10 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/loader.cjs.js +16 -0
  12. package/dist/cjs/loader.cjs.js.map +1 -0
  13. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +3510 -0
  14. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +1 -0
  15. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +20 -0
  16. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +1 -0
  17. package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +1 -0
  18. package/dist/cjs/xv-webcomponents.cjs.js +28 -0
  19. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -0
  20. package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +3717 -0
  21. package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +15326 -0
  22. package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +12420 -0
  23. package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +11323 -0
  24. package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +9653 -0
  25. package/dist/collection/collection-manifest.json +46 -0
  26. package/dist/collection/components/xv-accordion/xv-accordion.css +3 -0
  27. package/dist/collection/components/xv-accordion/xv-accordion.js +163 -0
  28. package/dist/collection/components/xv-accordion/xv-accordion.js.map +1 -0
  29. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +68 -0
  30. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +132 -0
  31. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +1 -0
  32. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +3 -0
  33. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +19 -0
  34. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +1 -0
  35. package/dist/collection/components/xv-button/xv-button-v2.css +173 -0
  36. package/dist/collection/components/xv-button/xv-button.js +229 -0
  37. package/dist/collection/components/xv-button/xv-button.js.map +1 -0
  38. package/dist/collection/components/xv-card/xv-card.css +63 -0
  39. package/dist/collection/components/xv-card/xv-card.js +122 -0
  40. package/dist/collection/components/xv-card/xv-card.js.map +1 -0
  41. package/dist/collection/components/xv-checkbox/xv-checkbox.css +138 -0
  42. package/dist/collection/components/xv-checkbox/xv-checkbox.js +402 -0
  43. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -0
  44. package/dist/collection/components/xv-data-table/_vars.js +3 -0
  45. package/dist/collection/components/xv-data-table/_vars.js.map +1 -0
  46. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +90 -0
  47. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +182 -0
  48. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +1 -0
  49. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +7 -0
  50. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +101 -0
  51. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +1 -0
  52. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +71 -0
  53. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +354 -0
  54. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +1 -0
  55. package/dist/collection/components/xv-data-table/xv-data-table.css +104 -0
  56. package/dist/collection/components/xv-data-table/xv-data-table.js +114 -0
  57. package/dist/collection/components/xv-data-table/xv-data-table.js.map +1 -0
  58. package/dist/collection/components/xv-dropdown/_vars.js +2 -0
  59. package/dist/collection/components/xv-dropdown/_vars.js.map +1 -0
  60. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +14 -0
  61. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +153 -0
  62. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +1 -0
  63. package/dist/collection/components/xv-dropdown/xv-dropdown.css +232 -0
  64. package/dist/collection/components/xv-dropdown/xv-dropdown.js +443 -0
  65. package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -0
  66. package/dist/collection/components/xv-file-uploader/_vars.js +6 -0
  67. package/dist/collection/components/xv-file-uploader/_vars.js.map +1 -0
  68. package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +136 -0
  69. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +448 -0
  70. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +1 -0
  71. package/dist/collection/components/xv-footer/xv-footer.css +230 -0
  72. package/dist/collection/components/xv-footer/xv-footer.js +37 -0
  73. package/dist/collection/components/xv-footer/xv-footer.js.map +1 -0
  74. package/dist/collection/components/xv-header/xv-header.css +22587 -0
  75. package/dist/collection/components/xv-header/xv-header.js +54 -0
  76. package/dist/collection/components/xv-header/xv-header.js.map +1 -0
  77. package/dist/collection/components/xv-link/xv-link.css +67 -0
  78. package/dist/collection/components/xv-link/xv-link.js +132 -0
  79. package/dist/collection/components/xv-link/xv-link.js.map +1 -0
  80. package/dist/collection/components/xv-loader/xv-loader.css +65 -0
  81. package/dist/collection/components/xv-loader/xv-loader.js +106 -0
  82. package/dist/collection/components/xv-loader/xv-loader.js.map +1 -0
  83. package/dist/collection/components/xv-login-modal/xv-login-modal.css +22575 -0
  84. package/dist/collection/components/xv-login-modal/xv-login-modal.js +146 -0
  85. package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +1 -0
  86. package/dist/collection/components/xv-modal/xv-modal.css +102 -0
  87. package/dist/collection/components/xv-modal/xv-modal.js +226 -0
  88. package/dist/collection/components/xv-modal/xv-modal.js.map +1 -0
  89. package/dist/collection/components/xv-notification/_vars.js +8 -0
  90. package/dist/collection/components/xv-notification/_vars.js.map +1 -0
  91. package/dist/collection/components/xv-notification/xv-notification.css +113 -0
  92. package/dist/collection/components/xv-notification/xv-notification.js +118 -0
  93. package/dist/collection/components/xv-notification/xv-notification.js.map +1 -0
  94. package/dist/collection/components/xv-number-input/xv-number-input.css +128 -0
  95. package/dist/collection/components/xv-number-input/xv-number-input.js +373 -0
  96. package/dist/collection/components/xv-number-input/xv-number-input.js.map +1 -0
  97. package/dist/collection/components/xv-overflow-menu/_vars.js +6 -0
  98. package/dist/collection/components/xv-overflow-menu/_vars.js.map +1 -0
  99. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +45 -0
  100. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +137 -0
  101. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +1 -0
  102. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +105 -0
  103. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +202 -0
  104. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +1 -0
  105. package/dist/{xv-webcomponents/_vars-IZ3lIQzL.js → collection/components/xv-progress-indicator/_vars.js} +3 -7
  106. package/dist/collection/components/xv-progress-indicator/_vars.js.map +1 -0
  107. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +96 -0
  108. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +54 -0
  109. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +1 -0
  110. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +45 -0
  111. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +157 -0
  112. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +1 -0
  113. package/dist/collection/components/xv-table/_vars.js +3 -0
  114. package/dist/collection/components/xv-table/_vars.js.map +1 -0
  115. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +93 -0
  116. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +160 -0
  117. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +1 -0
  118. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +58 -0
  119. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +76 -0
  120. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +1 -0
  121. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +39 -0
  122. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +333 -0
  123. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +1 -0
  124. package/dist/collection/components/xv-table/xv-table.css +137 -0
  125. package/dist/collection/components/xv-table/xv-table.js +159 -0
  126. package/dist/collection/components/xv-table/xv-table.js.map +1 -0
  127. package/dist/collection/components/xv-tabs/_vars.js +11 -0
  128. package/dist/collection/components/xv-tabs/_vars.js.map +1 -0
  129. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +10 -0
  130. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +106 -0
  131. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +1 -0
  132. package/dist/collection/components/xv-tabs/xv-tabs.css +139 -0
  133. package/dist/collection/components/xv-tabs/xv-tabs.js +221 -0
  134. package/dist/collection/components/xv-tabs/xv-tabs.js.map +1 -0
  135. package/dist/collection/components/xv-tag/xv-tag.css +97 -0
  136. package/dist/collection/components/xv-tag/xv-tag.js +158 -0
  137. package/dist/collection/components/xv-tag/xv-tag.js.map +1 -0
  138. package/dist/collection/components/xv-text-input/xv-text-input.css +144 -0
  139. package/dist/collection/components/xv-text-input/xv-text-input.js +324 -0
  140. package/dist/collection/components/xv-text-input/xv-text-input.js.map +1 -0
  141. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +95 -0
  142. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +201 -0
  143. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +1 -0
  144. package/dist/collection/components/xv-tooltip/xv-tooltip.css +43 -0
  145. package/dist/collection/components/xv-tooltip/xv-tooltip.js +114 -0
  146. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -0
  147. package/dist/collection/index.js +11 -0
  148. package/dist/collection/index.js.map +1 -0
  149. package/dist/collection/scss/xv/images/xv-sprite.svg +1 -0
  150. package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +1 -0
  151. package/dist/collection/types/enum.js +15 -0
  152. package/dist/collection/types/enum.js.map +1 -0
  153. package/dist/{xv-webcomponents/utils-1tk8kwKx.js → collection/utils/utils.js} +7 -11
  154. package/dist/collection/utils/utils.js.map +1 -0
  155. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  156. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  157. package/dist/esm/index-DLYJiP99.js +1907 -0
  158. package/dist/esm/index-DLYJiP99.js.map +1 -0
  159. package/dist/esm/index-NvoCloOY.js +31 -0
  160. package/dist/esm/index-NvoCloOY.js.map +1 -0
  161. package/dist/esm/index.js +4 -0
  162. package/dist/esm/index.js.map +1 -0
  163. package/dist/esm/loader.js +14 -0
  164. package/dist/esm/loader.js.map +1 -0
  165. package/dist/esm/xv-accordion-v2_34.entry.js +3475 -0
  166. package/dist/esm/xv-accordion-v2_34.entry.js.map +1 -0
  167. package/dist/esm/xv-breadcrumbs-v2.entry.js +18 -0
  168. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +1 -0
  169. package/dist/esm/xv-webcomponents.js +24 -0
  170. package/dist/esm/xv-webcomponents.js.map +1 -0
  171. package/dist/index.cjs.js +1 -0
  172. package/dist/index.js +1 -0
  173. package/dist/types/components/xv-button/xv-button.d.ts +21 -12
  174. package/dist/types/components/xv-data-table/_vars.d.ts +11 -0
  175. package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +13 -0
  176. package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +9 -0
  177. package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +25 -0
  178. package/dist/types/components/xv-data-table/xv-data-table.d.ts +9 -0
  179. package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +1 -0
  180. package/dist/types/components/xv-file-uploader/_vars.d.ts +4 -0
  181. package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +36 -0
  182. package/dist/types/components/xv-header/xv-header.d.ts +0 -2
  183. package/dist/types/components/xv-number-input/xv-number-input.d.ts +26 -0
  184. package/dist/types/components/xv-table/_vars.d.ts +1 -5
  185. package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +2 -1
  186. package/dist/types/components/xv-text-input/xv-text-input.d.ts +10 -11
  187. package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +19 -0
  188. package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +10 -8
  189. package/dist/types/components.d.ts +508 -105
  190. package/dist/types/stencil-public-runtime.d.ts +1 -1
  191. package/dist/types/types/enum.d.ts +5 -0
  192. package/dist/xv-webcomponents/index.esm.js +1 -13
  193. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  194. package/dist/xv-webcomponents/loader.esm.js.map +1 -1
  195. package/dist/xv-webcomponents/p-5b63a259.entry.js +2 -0
  196. package/dist/xv-webcomponents/p-5b63a259.entry.js.map +1 -0
  197. package/dist/xv-webcomponents/p-9c06f44c.entry.js +2 -0
  198. package/dist/xv-webcomponents/p-9c06f44c.entry.js.map +1 -0
  199. package/dist/xv-webcomponents/p-DLYJiP99.js +3 -0
  200. package/dist/xv-webcomponents/p-DLYJiP99.js.map +1 -0
  201. package/dist/xv-webcomponents/p-DQuL1Twl.js +2 -0
  202. package/dist/xv-webcomponents/p-DQuL1Twl.js.map +1 -0
  203. package/dist/xv-webcomponents/p-NvoCloOY.js +2 -0
  204. package/dist/xv-webcomponents/p-NvoCloOY.js.map +1 -0
  205. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
  206. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -49
  207. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  208. package/loader/cdn.js +1 -0
  209. package/loader/index.cjs.js +1 -0
  210. package/loader/index.d.ts +24 -0
  211. package/loader/index.es2017.js +1 -0
  212. package/loader/index.js +2 -0
  213. package/package.json +53 -53
  214. package/dist/types/components/xv-text-input/_vars.d.ts +0 -5
  215. package/dist/types/components/xv-user-menu/interfaces/MenuItem.d.ts +0 -0
  216. package/dist/types/components/xv-user-menu/xv-user-menu.d.ts +0 -41
  217. package/dist/xv-webcomponents/_vars-FbbDWn6g.js +0 -13
  218. package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +0 -1
  219. package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +0 -1
  220. package/dist/xv-webcomponents/enum-DTBL51oP.js +0 -13
  221. package/dist/xv-webcomponents/enum-DTBL51oP.js.map +0 -1
  222. package/dist/xv-webcomponents/index-rZAC0WRb.js +0 -4238
  223. package/dist/xv-webcomponents/index-rZAC0WRb.js.map +0 -1
  224. package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +0 -1
  225. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +0 -1
  226. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +0 -36
  227. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +0 -1
  228. package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +0 -1
  229. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +0 -41
  230. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +0 -1
  231. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +0 -18
  232. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +0 -1
  233. package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +0 -1
  234. package/dist/xv-webcomponents/xv-button-v2.entry.js +0 -35
  235. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +0 -1
  236. package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +0 -1
  237. package/dist/xv-webcomponents/xv-card-v2.entry.js +0 -19
  238. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +0 -1
  239. package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +0 -1
  240. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +0 -106
  241. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +0 -1
  242. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +0 -1
  243. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +0 -36
  244. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +0 -1
  245. package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +0 -1
  246. package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +0 -136
  247. package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +0 -1
  248. package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +0 -1
  249. package/dist/xv-webcomponents/xv-footer.entry.js +0 -30
  250. package/dist/xv-webcomponents/xv-footer.entry.js.map +0 -1
  251. package/dist/xv-webcomponents/xv-header.entry.esm.js.map +0 -1
  252. package/dist/xv-webcomponents/xv-header.entry.js +0 -81
  253. package/dist/xv-webcomponents/xv-header.entry.js.map +0 -1
  254. package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +0 -1
  255. package/dist/xv-webcomponents/xv-link-v2.entry.js +0 -27
  256. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +0 -1
  257. package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +0 -1
  258. package/dist/xv-webcomponents/xv-loader-v2.entry.js +0 -33
  259. package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +0 -1
  260. package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +0 -1
  261. package/dist/xv-webcomponents/xv-login-modal.entry.js +0 -89
  262. package/dist/xv-webcomponents/xv-login-modal.entry.js.map +0 -1
  263. package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +0 -1
  264. package/dist/xv-webcomponents/xv-modal-v2.entry.js +0 -78
  265. package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +0 -1
  266. package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +0 -1
  267. package/dist/xv-webcomponents/xv-notification-v2.entry.js +0 -50
  268. package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +0 -1
  269. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +0 -1
  270. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +0 -32
  271. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +0 -1
  272. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +0 -1
  273. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +0 -74
  274. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +0 -1
  275. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +0 -1
  276. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +0 -21
  277. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +0 -1
  278. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +0 -1
  279. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +0 -75
  280. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +0 -1
  281. package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +0 -1
  282. package/dist/xv-webcomponents/xv-tab-v2.entry.js +0 -21
  283. package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +0 -1
  284. package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +0 -1
  285. package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +0 -41
  286. package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +0 -1
  287. package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +0 -1
  288. package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +0 -29
  289. package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +0 -1
  290. package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +0 -1
  291. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +0 -66
  292. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +0 -1
  293. package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +0 -1
  294. package/dist/xv-webcomponents/xv-table-v2.entry.js +0 -53
  295. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +0 -1
  296. package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +0 -1
  297. package/dist/xv-webcomponents/xv-tabs-v2.entry.js +0 -109
  298. package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +0 -1
  299. package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +0 -1
  300. package/dist/xv-webcomponents/xv-tag-v2.entry.js +0 -29
  301. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +0 -1
  302. package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +0 -1
  303. package/dist/xv-webcomponents/xv-text-input-v2.entry.js +0 -65
  304. package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +0 -1
  305. package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +0 -1
  306. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +0 -24
  307. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +0 -1
  308. package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +0 -1
  309. package/dist/xv-webcomponents/xv-user-menu.entry.js +0 -43
  310. package/dist/xv-webcomponents/xv-user-menu.entry.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host([loading]) {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ min-height: 200px;
10
+ }
@@ -0,0 +1,106 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { SIZE_VAR } from "../../../types/enum";
3
+ export class XvTab {
4
+ constructor() {
5
+ this.disabled = false;
6
+ this.loading = false;
7
+ }
8
+ render() {
9
+ return (h(Host, { key: 'ab7f5dbb607ca9c91a2503b4f5a739685e2ec45f', disabled: this.disabled, name: this.name }, this.loading ? h("xv-loader-v2", { size: SIZE_VAR.LG }) : h("slot", null)));
10
+ }
11
+ static get is() { return "xv-tab-v2"; }
12
+ static get encapsulation() { return "shadow"; }
13
+ static get originalStyleUrls() {
14
+ return {
15
+ "$": ["xv-tab.scss"]
16
+ };
17
+ }
18
+ static get styleUrls() {
19
+ return {
20
+ "$": ["xv-tab.css"]
21
+ };
22
+ }
23
+ static get properties() {
24
+ return {
25
+ "label": {
26
+ "type": "string",
27
+ "attribute": "label",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "string",
31
+ "resolved": "string",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": ""
39
+ },
40
+ "getter": false,
41
+ "setter": false,
42
+ "reflect": true
43
+ },
44
+ "disabled": {
45
+ "type": "boolean",
46
+ "attribute": "disabled",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "boolean",
50
+ "resolved": "boolean",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "getter": false,
60
+ "setter": false,
61
+ "reflect": true,
62
+ "defaultValue": "false"
63
+ },
64
+ "loading": {
65
+ "type": "boolean",
66
+ "attribute": "loading",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "boolean",
70
+ "resolved": "boolean",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": ""
78
+ },
79
+ "getter": false,
80
+ "setter": false,
81
+ "reflect": true,
82
+ "defaultValue": "false"
83
+ },
84
+ "name": {
85
+ "type": "any",
86
+ "attribute": "name",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "number | string",
90
+ "resolved": "number | string",
91
+ "references": {}
92
+ },
93
+ "required": false,
94
+ "optional": true,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ },
99
+ "getter": false,
100
+ "setter": false,
101
+ "reflect": false
102
+ }
103
+ };
104
+ }
105
+ }
106
+ //# sourceMappingURL=xv-tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xv-tab.js","sourceRoot":"","sources":["../../../../src/components/xv-tabs/xv-tab/xv-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAO/C,MAAM,OAAO,KAAK;IALlB;QAO2B,aAAQ,GAAY,KAAK,CAAC;QAC1B,YAAO,GAAY,KAAK,CAAC;KAUnD;IAPC,MAAM;QACJ,OAAO,CACP,EAAC,IAAI,qDAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAC3C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAc,IAAI,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC,CAAC,CAAC,eAAQ,CACzD,CACN,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\nimport { SIZE_VAR } from '../../../types/enum';\n\n@Component({\n tag: 'xv-tab-v2',\n styleUrl: 'xv-tab.scss',\n shadow: true,\n})\nexport class XvTab {\n @Prop({ reflect: true }) label: string;\n @Prop({ reflect: true }) disabled: boolean = false;\n @Prop({ reflect: true }) loading: boolean = false;\n @Prop() name?: number | string;\n\n render() {\n return (\n <Host disabled={this.disabled} name={this.name}>\n {this.loading ? <xv-loader-v2 size={SIZE_VAR.LG} /> : <slot />}\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,139 @@
1
+ :host(.xv-tabs) {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
5
+ :host(.xv-tabs) .tab-headers {
6
+ position: relative;
7
+ display: flex;
8
+ flex-wrap: nowrap;
9
+ }
10
+ :host(.xv-tabs) .tab-headers_container {
11
+ display: flex;
12
+ flex: 1 1 auto;
13
+ white-space: nowrap;
14
+ overflow-x: auto;
15
+ scroll-behavior: smooth;
16
+ }
17
+ :host(.xv-tabs) .tab-headers_container::-webkit-scrollbar {
18
+ display: none;
19
+ }
20
+ :host(.xv-tabs) .tab-headers_tab {
21
+ background: none;
22
+ padding: 11px var(--gap-md, 16px);
23
+ cursor: pointer;
24
+ font: inherit;
25
+ transition: border-color 0.3s ease, font-weight 0.3s ease, color 0.3s ease;
26
+ position: relative;
27
+ border: 2px solid transparent;
28
+ border-bottom-color: var(--border-border-subtle-01, #D1D1D1);
29
+ background-blend-mode: multiply;
30
+ color: var(--text-secondary, #515151);
31
+ font-family: var(--ff-body, Tahoma);
32
+ font-size: var(--fz-md, 14px);
33
+ line-height: 18px;
34
+ letter-spacing: 0.16px;
35
+ height: 40px;
36
+ white-space: nowrap;
37
+ }
38
+ :host(.xv-tabs) .tab-headers_tab:after {
39
+ content: "";
40
+ position: absolute;
41
+ transition: background-color 0.3s ease, width 0.3s ease;
42
+ top: 100%;
43
+ left: 0;
44
+ right: 0;
45
+ width: 0;
46
+ height: 2px;
47
+ background-color: var(--interactive-01, #273435);
48
+ }
49
+ :host(.xv-tabs) .tab-headers_tab:focus {
50
+ outline: none;
51
+ border: 2px solid var(--border-border-subtle-01, #D1D1D1);
52
+ }
53
+ :host(.xv-tabs) .tab-headers_tab:hover {
54
+ border-bottom-color: var(--border-strong-01, #8B8B8B);
55
+ }
56
+ :host(.xv-tabs) .tab-headers_tab.active {
57
+ color: var(--text-primary, #333);
58
+ font-weight: 700;
59
+ }
60
+ :host(.xv-tabs) .tab-headers_tab.active:after {
61
+ width: 100%;
62
+ }
63
+ :host(.xv-tabs) .tab-headers_tab.active:focus {
64
+ border-color: var(--interactive-01, #273435);
65
+ }
66
+ :host(.xv-tabs) .tab-headers_tab:disabled {
67
+ color: var(--text-on-color-disabled, #8B8B8B);
68
+ border-bottom-color: var(--border-disabled, #D1D1D1);
69
+ cursor: not-allowed;
70
+ }
71
+ :host(.xv-tabs) .tab-headers_tab:disabled:after {
72
+ background-color: var(--border-disabled, #D1D1D1);
73
+ }
74
+ :host(.xv-tabs) .tab-headers_btn {
75
+ outline: none;
76
+ width: 40px;
77
+ height: 40px;
78
+ background: none;
79
+ border: none;
80
+ cursor: pointer;
81
+ position: relative;
82
+ transition: 0.25s ease-in-out opacity;
83
+ }
84
+ :host(.xv-tabs) .tab-headers_btn:before {
85
+ content: "";
86
+ position: absolute;
87
+ top: 50%;
88
+ left: 50%;
89
+ width: 0;
90
+ height: 0;
91
+ border: solid currentColor;
92
+ border-width: 0 2px 2px 0;
93
+ display: inline-block;
94
+ padding: 5px;
95
+ transform: translate(-50%, -50%) rotate(45deg);
96
+ }
97
+ :host(.xv-tabs) .tab-headers_btn:active {
98
+ opacity: 0.3;
99
+ }
100
+ :host(.xv-tabs) .tab-headers_btn.prev:before {
101
+ transform: translate(-50%, -50%) rotate(135deg);
102
+ }
103
+ :host(.xv-tabs) .tab-headers_btn.next:before {
104
+ transform: translate(-50%, -50%) rotate(-45deg);
105
+ }
106
+ :host(.xv-tabs) .tab-content-wrapper {
107
+ position: relative;
108
+ overflow: hidden;
109
+ padding: var(--gap-md, 16px) 0;
110
+ }
111
+ :host(.xv-tabs) ::slotted(xv-tab-v2) {
112
+ position: absolute;
113
+ opacity: 0;
114
+ max-height: 0;
115
+ transition: max-height 0.5s ease;
116
+ width: 100%;
117
+ pointer-events: none;
118
+ }
119
+ :host(.xv-tabs) ::slotted(xv-tab-v2.active) {
120
+ position: relative;
121
+ opacity: 1;
122
+ overflow-y: auto;
123
+ pointer-events: auto;
124
+ max-height: 1000px;
125
+ }
126
+ :host(.xv-tabs) .xv-tabs_empty {
127
+ display: block;
128
+ text-align: center;
129
+ margin: 20px auto;
130
+ font-size: var(--fz-xl);
131
+ color: var(--text-primary);
132
+ }
133
+
134
+ :host([loading]) {
135
+ display: flex;
136
+ align-items: center;
137
+ justify-content: center;
138
+ min-height: 300px;
139
+ }
@@ -0,0 +1,221 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { TAB_TAGS, TABS_VATIANT } from "./_vars";
3
+ import { SIZE_VAR } from "../../types/enum";
4
+ export class XvTabs {
5
+ constructor() {
6
+ /**
7
+ * Index of active tab
8
+ */
9
+ this.active = 0;
10
+ /**
11
+ * Variant of tabs from TABS_VATIANT enum
12
+ */
13
+ this.variant = TABS_VATIANT.DEFAULT;
14
+ /**
15
+ * local variable for tab labels collection
16
+ */
17
+ this.tabElements = [];
18
+ /**
19
+ * Is show arrows for scroll
20
+ */
21
+ this.showArrows = false;
22
+ this.collectTabs = () => {
23
+ if (!this.tabElements.length) {
24
+ this.tabElements = Array.from(this.el.querySelectorAll(TAB_TAGS.TAB));
25
+ this.tabElements.forEach((tab) => {
26
+ if (tab.hasAttribute('name') && !this.active) {
27
+ this.active = tab.getAttribute('name');
28
+ }
29
+ });
30
+ setTimeout(() => this.updateArrowVisibility(), 100);
31
+ }
32
+ };
33
+ }
34
+ updateArrowVisibility() {
35
+ var _a;
36
+ const container = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.tab-headers_container');
37
+ if (!container)
38
+ return;
39
+ this.showArrows = container.scrollWidth > container.clientWidth;
40
+ }
41
+ updateTabClasses() {
42
+ this.tabElements.forEach((tab, i) => {
43
+ tab.classList.toggle('active', (tab.getAttribute('name') || `${i}`) === `${this.active}`);
44
+ });
45
+ }
46
+ handleTabClick(active) {
47
+ if (active === this.active)
48
+ return;
49
+ this.active = active;
50
+ this.activeChange.emit(Number(this.active) || this.active);
51
+ this.scrollToActiveTab();
52
+ }
53
+ scrollToActiveTab() {
54
+ if (!this.showArrows)
55
+ return;
56
+ // wait next JS tik
57
+ setTimeout(() => {
58
+ this.el.shadowRoot
59
+ .querySelector('.tab-headers_tab.active')
60
+ .scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' });
61
+ });
62
+ }
63
+ setTab(count = 1) {
64
+ const currentIdx = this.tabElements.findIndex((tab, i) => (tab.getAttribute('name') || `${i}`) === `${this.active}`);
65
+ const nextIdx = currentIdx + count;
66
+ if (nextIdx < 0 || nextIdx >= this.tabElements.length)
67
+ return;
68
+ const nextTab = this.tabElements[nextIdx];
69
+ if (!nextTab || nextTab.hasAttribute('disabled'))
70
+ return;
71
+ this.handleTabClick(nextTab.getAttribute('name') || nextIdx);
72
+ }
73
+ render() {
74
+ var _a, _b, _c;
75
+ if (this.loading) {
76
+ return (h(Host, { class: "xv-tabs", variant: this.variant }, h("xv-loader-v2", { size: SIZE_VAR.XL })));
77
+ }
78
+ return (h(Host, { class: "xv-tabs", variant: this.variant }, h("div", { class: "tab-headers", role: "tablist" }, h("button", { hidden: !this.showArrows || !((_a = this.tabElements) === null || _a === void 0 ? void 0 : _a.length), "aria-label": "Previous", class: "tab-headers_btn prev", onClick: () => this.setTab(-1) }), h("div", { class: "tab-headers_container" }, ((_b = this.tabElements) === null || _b === void 0 ? void 0 : _b.length) ? this.tabElements.map((tab, index) => (h("button", { role: "tab", disabled: !!tab.getAttribute('disabled') || !!(tab === null || tab === void 0 ? void 0 : tab.disabled), class: {
79
+ 'tab-headers_tab': true,
80
+ active: (tab.getAttribute('name') || `${index}`) === `${this.active}`,
81
+ }, onClick: () => this.handleTabClick(tab.getAttribute('name') || `${index}`) }, tab.getAttribute('label') || `Tab ${index + 1}`))) : this.emptyMessage && h("p", { class: "xv-tabs_empty" }, this.emptyMessage)), h("button", { "aria-label": "Next", hidden: !this.showArrows || !((_c = this.tabElements) === null || _c === void 0 ? void 0 : _c.length), class: "tab-headers_btn next", onClick: () => this.setTab(1) })), h("div", { class: "tab-content-wrapper", role: "tabpanel", tabindex: -1 }, h("slot", { onSlotchange: this.collectTabs }))));
82
+ }
83
+ componentDidRender() {
84
+ this.updateTabClasses();
85
+ }
86
+ static get is() { return "xv-tabs-v2"; }
87
+ static get encapsulation() { return "shadow"; }
88
+ static get originalStyleUrls() {
89
+ return {
90
+ "$": ["xv-tabs.scss"]
91
+ };
92
+ }
93
+ static get styleUrls() {
94
+ return {
95
+ "$": ["xv-tabs.css"]
96
+ };
97
+ }
98
+ static get properties() {
99
+ return {
100
+ "active": {
101
+ "type": "any",
102
+ "attribute": "active",
103
+ "mutable": true,
104
+ "complexType": {
105
+ "original": "number | string",
106
+ "resolved": "number | string",
107
+ "references": {}
108
+ },
109
+ "required": false,
110
+ "optional": false,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": "Index of active tab"
114
+ },
115
+ "getter": false,
116
+ "setter": false,
117
+ "reflect": true,
118
+ "defaultValue": "0"
119
+ },
120
+ "loading": {
121
+ "type": "boolean",
122
+ "attribute": "loading",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "boolean",
126
+ "resolved": "boolean",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": true,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": "Show loader"
134
+ },
135
+ "getter": false,
136
+ "setter": false,
137
+ "reflect": true
138
+ },
139
+ "variant": {
140
+ "type": "string",
141
+ "attribute": "variant",
142
+ "mutable": false,
143
+ "complexType": {
144
+ "original": "TABS_VATIANT",
145
+ "resolved": "TABS_VATIANT",
146
+ "references": {
147
+ "TABS_VATIANT": {
148
+ "location": "import",
149
+ "path": "./_vars",
150
+ "id": "src/components/xv-tabs/_vars.ts::TABS_VATIANT"
151
+ }
152
+ }
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": "Variant of tabs from TABS_VATIANT enum"
159
+ },
160
+ "getter": false,
161
+ "setter": false,
162
+ "reflect": false,
163
+ "defaultValue": "TABS_VATIANT.DEFAULT"
164
+ },
165
+ "emptyMessage": {
166
+ "type": "string",
167
+ "attribute": "empty-message",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "string",
171
+ "resolved": "string",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": true,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": "Message when have no tabs"
179
+ },
180
+ "getter": false,
181
+ "setter": false,
182
+ "reflect": false
183
+ }
184
+ };
185
+ }
186
+ static get states() {
187
+ return {
188
+ "tabElements": {},
189
+ "showArrows": {}
190
+ };
191
+ }
192
+ static get events() {
193
+ return [{
194
+ "method": "activeChange",
195
+ "name": "activeChange",
196
+ "bubbles": true,
197
+ "cancelable": true,
198
+ "composed": true,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": "Emit event to outside"
202
+ },
203
+ "complexType": {
204
+ "original": "number | string",
205
+ "resolved": "number | string",
206
+ "references": {}
207
+ }
208
+ }];
209
+ }
210
+ static get elementRef() { return "el"; }
211
+ static get listeners() {
212
+ return [{
213
+ "name": "resize",
214
+ "method": "updateArrowVisibility",
215
+ "target": "window",
216
+ "capture": false,
217
+ "passive": true
218
+ }];
219
+ }
220
+ }
221
+ //# sourceMappingURL=xv-tabs.js.map
@@ -0,0 +1 @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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop, Event, EventEmitter, State, Listen } from '@stencil/core';\nimport { TAB_TAGS, TABS_VATIANT } from './_vars';\nimport { SIZE_VAR } from '../../types/enum';\n\n@Component({\n tag: 'xv-tabs-v2',\n styleUrl: 'xv-tabs.scss',\n shadow: true,\n})\nexport class XvTabs {\n @Element() el: HTMLElement;\n /**\n * Index of active tab\n */\n @Prop({ reflect: true, mutable: true }) active: number | string = 0;\n /**\n * Emit event to outside\n */\n @Event() activeChange: EventEmitter<number | string>;\n /**\n * Show loader\n */\n @Prop({ reflect: true }) loading?: boolean;\n /**\n * Variant of tabs from TABS_VATIANT enum\n */\n @Prop() variant: TABS_VATIANT = TABS_VATIANT.DEFAULT;\n /**\n * Message when have no tabs\n */\n @Prop() emptyMessage?: string;\n /**\n * local variable for tab labels collection\n */\n @State() tabElements: HTMLElement[] = [];\n /**\n * Is show arrows for scroll\n */\n @State() showArrows: boolean = false;\n\n @Listen('resize', { target: 'window' })\n updateArrowVisibility() {\n const container = this.el.shadowRoot?.querySelector('.tab-headers_container') as HTMLElement | null;\n if (!container) return;\n\n this.showArrows = container.scrollWidth > container.clientWidth;\n }\n\n private collectTabs = () => {\n if (!this.tabElements.length) {\n this.tabElements = Array.from(this.el.querySelectorAll(TAB_TAGS.TAB));\n this.tabElements.forEach((tab) => {\n if (tab.hasAttribute('name') && !this.active) {\n this.active = tab.getAttribute('name');\n }\n })\n\n setTimeout(() => this.updateArrowVisibility(), 100);\n }\n }\n\n private updateTabClasses() {\n this.tabElements.forEach((tab, i) => {\n tab.classList.toggle(\n 'active',\n (tab.getAttribute('name') || `${i}`) === `${this.active}`\n );\n });\n }\n\n private handleTabClick(active: string | number) {\n if (active === this.active) return;\n\n this.active = active;\n this.activeChange.emit(Number(this.active) || this.active);\n this.scrollToActiveTab();\n }\n\n private scrollToActiveTab() {\n if (!this.showArrows) return;\n\n // wait next JS tik\n setTimeout(() => {\n this.el.shadowRoot\n .querySelector('.tab-headers_tab.active')\n .scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' });\n });\n }\n\n private setTab(count: number = 1) {\n const currentIdx = this.tabElements.findIndex(\n (tab, i) =>\n (tab.getAttribute('name') || `${i}`) === `${this.active}`\n );\n const nextIdx = currentIdx + count;\n\n if (nextIdx < 0 || nextIdx >= this.tabElements.length) return;\n\n const nextTab = this.tabElements[nextIdx];\n\n if (!nextTab || nextTab.hasAttribute('disabled')) return;\n\n this.handleTabClick(nextTab.getAttribute('name') || nextIdx);\n }\n\n render() {\n if (this.loading) {\n return (\n <Host class=\"xv-tabs\" variant={this.variant}>\n <xv-loader-v2 size={SIZE_VAR.XL} />\n </Host>\n )\n }\n\n return (\n <Host class=\"xv-tabs\" variant={this.variant}>\n <div class=\"tab-headers\" role=\"tablist\">\n <button\n hidden={!this.showArrows || !this.tabElements?.length}\n aria-label=\"Previous\"\n class=\"tab-headers_btn prev\"\n onClick={() => this.setTab(-1)}\n />\n <div class=\"tab-headers_container\">\n {this.tabElements?.length ? this.tabElements.map((tab, index) => (\n <button\n role=\"tab\"\n disabled={!!tab.getAttribute('disabled') || !!(tab as any)?.disabled}\n class={{\n 'tab-headers_tab': true,\n active: (tab.getAttribute('name') || `${index}`) === `${this.active}`,\n }}\n onClick={() => this.handleTabClick(tab.getAttribute('name') || `${index}`)}\n >\n {tab.getAttribute('label') || `Tab ${index + 1}`}\n </button>\n )) : this.emptyMessage && <p class=\"xv-tabs_empty\">{this.emptyMessage}</p>}\n </div>\n <button\n aria-label=\"Next\"\n hidden={!this.showArrows || !this.tabElements?.length}\n class=\"tab-headers_btn next\"\n onClick={() => this.setTab(1)}\n />\n </div>\n\n <div\n class=\"tab-content-wrapper\"\n role=\"tabpanel\"\n tabindex={-1}\n >\n <slot onSlotchange={this.collectTabs} />\n </div>\n </Host>\n );\n }\n\n componentDidRender() {\n this.updateTabClasses();\n }\n}\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
+ }