xv-webcomponents 0.1.42 → 0.1.43

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/types/components/xv-button/xv-button.d.ts +12 -21
  4. package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +0 -1
  5. package/dist/types/components/xv-header/xv-header.d.ts +2 -0
  6. package/dist/types/components/xv-table/_vars.d.ts +5 -1
  7. package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +1 -2
  8. package/dist/types/components/xv-text-input/_vars.d.ts +5 -0
  9. package/dist/types/components/xv-text-input/xv-text-input.d.ts +11 -10
  10. package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +8 -10
  11. package/dist/types/components/xv-user-menu/interfaces/MenuItem.d.ts +0 -0
  12. package/dist/types/components/xv-user-menu/xv-user-menu.d.ts +41 -0
  13. package/dist/types/components.d.ts +105 -508
  14. package/dist/types/stencil-public-runtime.d.ts +1 -1
  15. package/dist/types/types/enum.d.ts +0 -5
  16. package/dist/xv-webcomponents/_vars-FbbDWn6g.js +13 -0
  17. package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +1 -0
  18. package/dist/{collection/components/xv-progress-indicator/_vars.js → xv-webcomponents/_vars-IZ3lIQzL.js} +7 -3
  19. package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +1 -0
  20. package/dist/xv-webcomponents/enum-DTBL51oP.js +13 -0
  21. package/dist/xv-webcomponents/enum-DTBL51oP.js.map +1 -0
  22. package/dist/xv-webcomponents/index-rZAC0WRb.js +4238 -0
  23. package/dist/xv-webcomponents/index-rZAC0WRb.js.map +1 -0
  24. package/dist/xv-webcomponents/index.esm.js +13 -1
  25. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  26. package/dist/xv-webcomponents/loader.esm.js.map +1 -1
  27. package/dist/{collection/utils/utils.js → xv-webcomponents/utils-1tk8kwKx.js} +11 -7
  28. package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +1 -0
  29. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +1 -0
  30. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +36 -0
  31. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
  32. package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +1 -0
  33. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +41 -0
  34. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
  35. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
  36. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +18 -0
  37. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
  38. package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +1 -0
  39. package/dist/xv-webcomponents/xv-button-v2.entry.js +35 -0
  40. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
  41. package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +1 -0
  42. package/dist/xv-webcomponents/xv-card-v2.entry.js +19 -0
  43. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
  44. package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +1 -0
  45. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +106 -0
  46. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
  47. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +1 -0
  48. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +36 -0
  49. package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +1 -0
  50. package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +1 -0
  51. package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +136 -0
  52. package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +1 -0
  53. package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +1 -0
  54. package/dist/xv-webcomponents/xv-footer.entry.js +30 -0
  55. package/dist/xv-webcomponents/xv-footer.entry.js.map +1 -0
  56. package/dist/xv-webcomponents/xv-header.entry.esm.js.map +1 -0
  57. package/dist/xv-webcomponents/xv-header.entry.js +81 -0
  58. package/dist/xv-webcomponents/xv-header.entry.js.map +1 -0
  59. package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +1 -0
  60. package/dist/xv-webcomponents/xv-link-v2.entry.js +27 -0
  61. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
  62. package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +1 -0
  63. package/dist/xv-webcomponents/xv-loader-v2.entry.js +33 -0
  64. package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +1 -0
  65. package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +1 -0
  66. package/dist/xv-webcomponents/xv-login-modal.entry.js +89 -0
  67. package/dist/xv-webcomponents/xv-login-modal.entry.js.map +1 -0
  68. package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +1 -0
  69. package/dist/xv-webcomponents/xv-modal-v2.entry.js +78 -0
  70. package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +1 -0
  71. package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +1 -0
  72. package/dist/xv-webcomponents/xv-notification-v2.entry.js +50 -0
  73. package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +1 -0
  74. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +1 -0
  75. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +32 -0
  76. package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +1 -0
  77. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +1 -0
  78. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +74 -0
  79. package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +1 -0
  80. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +1 -0
  81. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +21 -0
  82. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
  83. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +1 -0
  84. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +75 -0
  85. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
  86. package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +1 -0
  87. package/dist/xv-webcomponents/xv-tab-v2.entry.js +21 -0
  88. package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +1 -0
  89. package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +1 -0
  90. package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +41 -0
  91. package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +1 -0
  92. package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +1 -0
  93. package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +29 -0
  94. package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +1 -0
  95. package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +1 -0
  96. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +66 -0
  97. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
  98. package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +1 -0
  99. package/dist/xv-webcomponents/xv-table-v2.entry.js +53 -0
  100. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
  101. package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +1 -0
  102. package/dist/xv-webcomponents/xv-tabs-v2.entry.js +109 -0
  103. package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +1 -0
  104. package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +1 -0
  105. package/dist/xv-webcomponents/xv-tag-v2.entry.js +29 -0
  106. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
  107. package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +1 -0
  108. package/dist/xv-webcomponents/xv-text-input-v2.entry.js +65 -0
  109. package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +1 -0
  110. package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +1 -0
  111. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +24 -0
  112. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
  113. package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +1 -0
  114. package/dist/xv-webcomponents/xv-user-menu.entry.js +43 -0
  115. package/dist/xv-webcomponents/xv-user-menu.entry.js.map +1 -0
  116. package/dist/xv-webcomponents/xv-webcomponents.esm.js +49 -1
  117. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  118. package/package.json +53 -53
  119. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  120. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  121. package/dist/cjs/index-BE3kw7I4.js +0 -36
  122. package/dist/cjs/index-BE3kw7I4.js.map +0 -1
  123. package/dist/cjs/index-MLh9SbX2.js +0 -1917
  124. package/dist/cjs/index-MLh9SbX2.js.map +0 -1
  125. package/dist/cjs/index.cjs.js +0 -10
  126. package/dist/cjs/index.cjs.js.map +0 -1
  127. package/dist/cjs/loader.cjs.js +0 -16
  128. package/dist/cjs/loader.cjs.js.map +0 -1
  129. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3510
  130. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
  131. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -20
  132. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
  133. package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +0 -1
  134. package/dist/cjs/xv-webcomponents.cjs.js +0 -28
  135. package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
  136. package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +0 -3717
  137. package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +0 -15326
  138. package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +0 -12420
  139. package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +0 -11323
  140. package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +0 -9653
  141. package/dist/collection/collection-manifest.json +0 -46
  142. package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
  143. package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
  144. package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
  145. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
  146. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
  147. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
  148. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
  149. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
  150. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
  151. package/dist/collection/components/xv-button/xv-button-v2.css +0 -173
  152. package/dist/collection/components/xv-button/xv-button.js +0 -229
  153. package/dist/collection/components/xv-button/xv-button.js.map +0 -1
  154. package/dist/collection/components/xv-card/xv-card.css +0 -63
  155. package/dist/collection/components/xv-card/xv-card.js +0 -122
  156. package/dist/collection/components/xv-card/xv-card.js.map +0 -1
  157. package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -138
  158. package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -402
  159. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
  160. package/dist/collection/components/xv-data-table/_vars.js +0 -3
  161. package/dist/collection/components/xv-data-table/_vars.js.map +0 -1
  162. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +0 -90
  163. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +0 -182
  164. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +0 -1
  165. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +0 -7
  166. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +0 -101
  167. package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +0 -1
  168. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +0 -71
  169. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +0 -354
  170. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +0 -1
  171. package/dist/collection/components/xv-data-table/xv-data-table.css +0 -104
  172. package/dist/collection/components/xv-data-table/xv-data-table.js +0 -114
  173. package/dist/collection/components/xv-data-table/xv-data-table.js.map +0 -1
  174. package/dist/collection/components/xv-dropdown/_vars.js +0 -2
  175. package/dist/collection/components/xv-dropdown/_vars.js.map +0 -1
  176. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +0 -14
  177. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +0 -153
  178. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +0 -1
  179. package/dist/collection/components/xv-dropdown/xv-dropdown.css +0 -232
  180. package/dist/collection/components/xv-dropdown/xv-dropdown.js +0 -443
  181. package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +0 -1
  182. package/dist/collection/components/xv-file-uploader/_vars.js +0 -6
  183. package/dist/collection/components/xv-file-uploader/_vars.js.map +0 -1
  184. package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +0 -136
  185. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +0 -448
  186. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +0 -1
  187. package/dist/collection/components/xv-footer/xv-footer.css +0 -230
  188. package/dist/collection/components/xv-footer/xv-footer.js +0 -37
  189. package/dist/collection/components/xv-footer/xv-footer.js.map +0 -1
  190. package/dist/collection/components/xv-header/xv-header.css +0 -22587
  191. package/dist/collection/components/xv-header/xv-header.js +0 -54
  192. package/dist/collection/components/xv-header/xv-header.js.map +0 -1
  193. package/dist/collection/components/xv-link/xv-link.css +0 -67
  194. package/dist/collection/components/xv-link/xv-link.js +0 -132
  195. package/dist/collection/components/xv-link/xv-link.js.map +0 -1
  196. package/dist/collection/components/xv-loader/xv-loader.css +0 -65
  197. package/dist/collection/components/xv-loader/xv-loader.js +0 -106
  198. package/dist/collection/components/xv-loader/xv-loader.js.map +0 -1
  199. package/dist/collection/components/xv-login-modal/xv-login-modal.css +0 -22575
  200. package/dist/collection/components/xv-login-modal/xv-login-modal.js +0 -146
  201. package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +0 -1
  202. package/dist/collection/components/xv-modal/xv-modal.css +0 -102
  203. package/dist/collection/components/xv-modal/xv-modal.js +0 -226
  204. package/dist/collection/components/xv-modal/xv-modal.js.map +0 -1
  205. package/dist/collection/components/xv-notification/_vars.js +0 -8
  206. package/dist/collection/components/xv-notification/_vars.js.map +0 -1
  207. package/dist/collection/components/xv-notification/xv-notification.css +0 -113
  208. package/dist/collection/components/xv-notification/xv-notification.js +0 -118
  209. package/dist/collection/components/xv-notification/xv-notification.js.map +0 -1
  210. package/dist/collection/components/xv-number-input/xv-number-input.css +0 -128
  211. package/dist/collection/components/xv-number-input/xv-number-input.js +0 -373
  212. package/dist/collection/components/xv-number-input/xv-number-input.js.map +0 -1
  213. package/dist/collection/components/xv-overflow-menu/_vars.js +0 -6
  214. package/dist/collection/components/xv-overflow-menu/_vars.js.map +0 -1
  215. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +0 -45
  216. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +0 -137
  217. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +0 -1
  218. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +0 -105
  219. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +0 -202
  220. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +0 -1
  221. package/dist/collection/components/xv-progress-indicator/_vars.js.map +0 -1
  222. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -96
  223. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -54
  224. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
  225. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -45
  226. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -157
  227. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
  228. package/dist/collection/components/xv-table/_vars.js +0 -3
  229. package/dist/collection/components/xv-table/_vars.js.map +0 -1
  230. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +0 -93
  231. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +0 -160
  232. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +0 -1
  233. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +0 -58
  234. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +0 -76
  235. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +0 -1
  236. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -39
  237. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -333
  238. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
  239. package/dist/collection/components/xv-table/xv-table.css +0 -137
  240. package/dist/collection/components/xv-table/xv-table.js +0 -159
  241. package/dist/collection/components/xv-table/xv-table.js.map +0 -1
  242. package/dist/collection/components/xv-tabs/_vars.js +0 -11
  243. package/dist/collection/components/xv-tabs/_vars.js.map +0 -1
  244. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +0 -10
  245. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +0 -106
  246. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +0 -1
  247. package/dist/collection/components/xv-tabs/xv-tabs.css +0 -139
  248. package/dist/collection/components/xv-tabs/xv-tabs.js +0 -221
  249. package/dist/collection/components/xv-tabs/xv-tabs.js.map +0 -1
  250. package/dist/collection/components/xv-tag/xv-tag.css +0 -97
  251. package/dist/collection/components/xv-tag/xv-tag.js +0 -158
  252. package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
  253. package/dist/collection/components/xv-text-input/xv-text-input.css +0 -144
  254. package/dist/collection/components/xv-text-input/xv-text-input.js +0 -324
  255. package/dist/collection/components/xv-text-input/xv-text-input.js.map +0 -1
  256. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +0 -95
  257. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +0 -201
  258. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +0 -1
  259. package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -43
  260. package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -114
  261. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
  262. package/dist/collection/index.js +0 -11
  263. package/dist/collection/index.js.map +0 -1
  264. package/dist/collection/scss/xv/images/xv-sprite.svg +0 -1
  265. package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +0 -1
  266. package/dist/collection/types/enum.js +0 -15
  267. package/dist/collection/types/enum.js.map +0 -1
  268. package/dist/collection/utils/utils.js.map +0 -1
  269. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  270. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  271. package/dist/esm/index-DLYJiP99.js +0 -1907
  272. package/dist/esm/index-DLYJiP99.js.map +0 -1
  273. package/dist/esm/index-NvoCloOY.js +0 -31
  274. package/dist/esm/index-NvoCloOY.js.map +0 -1
  275. package/dist/esm/index.js +0 -4
  276. package/dist/esm/index.js.map +0 -1
  277. package/dist/esm/loader.js +0 -14
  278. package/dist/esm/loader.js.map +0 -1
  279. package/dist/esm/xv-accordion-v2_34.entry.js +0 -3475
  280. package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
  281. package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
  282. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
  283. package/dist/esm/xv-webcomponents.js +0 -24
  284. package/dist/esm/xv-webcomponents.js.map +0 -1
  285. package/dist/index.cjs.js +0 -1
  286. package/dist/index.js +0 -1
  287. package/dist/types/components/xv-data-table/_vars.d.ts +0 -11
  288. package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +0 -13
  289. package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +0 -9
  290. package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +0 -25
  291. package/dist/types/components/xv-data-table/xv-data-table.d.ts +0 -9
  292. package/dist/types/components/xv-file-uploader/_vars.d.ts +0 -4
  293. package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +0 -36
  294. package/dist/types/components/xv-number-input/xv-number-input.d.ts +0 -26
  295. package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +0 -19
  296. package/dist/xv-webcomponents/p-5b63a259.entry.js +0 -2
  297. package/dist/xv-webcomponents/p-5b63a259.entry.js.map +0 -1
  298. package/dist/xv-webcomponents/p-9c06f44c.entry.js +0 -2
  299. package/dist/xv-webcomponents/p-9c06f44c.entry.js.map +0 -1
  300. package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
  301. package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
  302. package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
  303. package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
  304. package/dist/xv-webcomponents/p-NvoCloOY.js +0 -2
  305. package/dist/xv-webcomponents/p-NvoCloOY.js.map +0 -1
  306. package/loader/cdn.js +0 -1
  307. package/loader/index.cjs.js +0 -1
  308. package/loader/index.d.ts +0 -24
  309. package/loader/index.es2017.js +0 -1
  310. package/loader/index.js +0 -2
@@ -1,10 +0,0 @@
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
- }
@@ -1,106 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,139 +0,0 @@
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
- }
@@ -1,221 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-tabs.js","sourceRoot":"","sources":["../../../src/components/xv-tabs/xv-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAO5C,MAAM,OAAO,MAAM;IALnB;QAOE;;WAEG;QACqC,WAAM,GAAoB,CAAC,CAAC;QASpE;;WAEG;QACK,YAAO,GAAiB,YAAY,CAAC,OAAO,CAAC;QAKrD;;WAEG;QACM,gBAAW,GAAkB,EAAE,CAAC;QACzC;;WAEG;QACM,eAAU,GAAY,KAAK,CAAC;QAU7B,gBAAW,GA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,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,GAAG,CAAC,EAAE,CACzC,CACV,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,SAAG,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,YAAY,CAAK,CACtE;gBACN,4BACa,MAAM,EACjB,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,MAAM,CAAA,EACrD,KAAK,EAAC,sBAAsB,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAC7B,CACE;YAEN,WACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,CAAC,CAAC;gBAEZ,YAAM,YAAY,EAAE,IAAI,CAAC,WAAW,GAAI,CACpC,CACD,CACR,CAAC;IACJ,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"]}
@@ -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
- }