@cscfi/csc-ui 2.2.5 → 2.2.6

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 (982) 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/c-accordion-item.cjs.entry.js +108 -107
  4. package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -1
  5. package/dist/cjs/c-accordion.cjs.entry.js +53 -52
  6. package/dist/cjs/c-accordion.cjs.entry.js.map +1 -1
  7. package/dist/cjs/c-alert.cjs.entry.js +17 -16
  8. package/dist/cjs/c-alert.cjs.entry.js.map +1 -1
  9. package/dist/cjs/c-autocomplete_34.cjs.entry.js +2439 -2398
  10. package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
  11. package/dist/cjs/c-data-table.cjs.entry.js +678 -677
  12. package/dist/cjs/c-data-table.cjs.entry.js.map +1 -1
  13. package/dist/cjs/c-link.cjs.entry.js +19 -18
  14. package/dist/cjs/c-link.cjs.entry.js.map +1 -1
  15. package/dist/cjs/c-list-item-title.cjs.entry.js +14 -13
  16. package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -1
  17. package/dist/cjs/c-list-item.cjs.entry.js +70 -69
  18. package/dist/cjs/c-list-item.cjs.entry.js.map +1 -1
  19. package/dist/cjs/c-list.cjs.entry.js +33 -32
  20. package/dist/cjs/c-list.cjs.entry.js.map +1 -1
  21. package/dist/cjs/c-login-button.cjs.entry.js +13 -12
  22. package/dist/cjs/c-login-button.cjs.entry.js.map +1 -1
  23. package/dist/cjs/c-login-buttons.cjs.entry.js +9 -8
  24. package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -1
  25. package/dist/cjs/c-login-card-actions.cjs.entry.js +9 -9
  26. package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -1
  27. package/dist/cjs/c-login-card-content.cjs.entry.js +9 -8
  28. package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -1
  29. package/dist/cjs/c-login-card-title.cjs.entry.js +9 -8
  30. package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -1
  31. package/dist/cjs/c-login-card.cjs.entry.js +54 -53
  32. package/dist/cjs/c-login-card.cjs.entry.js.map +1 -1
  33. package/dist/cjs/c-menu_2.cjs.entry.js +317 -315
  34. package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -1
  35. package/dist/cjs/c-modal.cjs.entry.js +109 -108
  36. package/dist/cjs/c-modal.cjs.entry.js.map +1 -1
  37. package/dist/cjs/c-option-value.cjs.entry.js +9 -8
  38. package/dist/cjs/c-option-value.cjs.entry.js.map +1 -1
  39. package/dist/cjs/c-pagination.cjs.entry.js +214 -213
  40. package/dist/cjs/c-pagination.cjs.entry.js.map +1 -1
  41. package/dist/cjs/c-progress-bar.cjs.entry.js +46 -45
  42. package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -1
  43. package/dist/cjs/c-row.cjs.entry.js +23 -22
  44. package/dist/cjs/c-row.cjs.entry.js.map +1 -1
  45. package/dist/cjs/c-slider.cjs.entry.js +87 -86
  46. package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
  47. package/dist/cjs/c-status.cjs.entry.js +11 -10
  48. package/dist/cjs/c-status.cjs.entry.js.map +1 -1
  49. package/dist/cjs/c-step.cjs.entry.js +15 -14
  50. package/dist/cjs/c-step.cjs.entry.js.map +1 -1
  51. package/dist/cjs/c-steps.cjs.entry.js +62 -61
  52. package/dist/cjs/c-steps.cjs.entry.js.map +1 -1
  53. package/dist/cjs/c-swiper-tab.cjs.entry.js +35 -34
  54. package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
  55. package/dist/cjs/c-swiper.cjs.entry.js +119 -118
  56. package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
  57. package/dist/cjs/c-tab-buttons.cjs.entry.js +118 -117
  58. package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
  59. package/dist/cjs/c-tab-item.cjs.entry.js +29 -28
  60. package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -1
  61. package/dist/cjs/c-tab-items.cjs.entry.js +67 -66
  62. package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -1
  63. package/dist/cjs/c-tab.cjs.entry.js +46 -45
  64. package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
  65. package/dist/cjs/c-tabs.cjs.entry.js +394 -393
  66. package/dist/cjs/c-tabs.cjs.entry.js.map +1 -1
  67. package/dist/cjs/c-tag.cjs.entry.js +34 -33
  68. package/dist/cjs/c-tag.cjs.entry.js.map +1 -1
  69. package/dist/cjs/c-tags.cjs.entry.js +18 -17
  70. package/dist/cjs/c-tags.cjs.entry.js.map +1 -1
  71. package/dist/cjs/c-toast.cjs.entry.js +60 -59
  72. package/dist/cjs/c-toast.cjs.entry.js.map +1 -1
  73. package/dist/cjs/c-toasts.cjs.entry.js +64 -63
  74. package/dist/cjs/c-toasts.cjs.entry.js.map +1 -1
  75. package/dist/cjs/csc-ui.cjs.js +13 -11
  76. package/dist/cjs/csc-ui.cjs.js.map +1 -1
  77. package/dist/cjs/index-4fc978c6.js +1878 -0
  78. package/dist/cjs/index-4fc978c6.js.map +1 -0
  79. package/dist/cjs/index-f799b2ea.js +23 -0
  80. package/dist/cjs/{index-72dca436.js.map → index-f799b2ea.js.map} +1 -1
  81. package/dist/cjs/index.cjs.js +1 -1
  82. package/dist/cjs/loader.cjs.js +5 -3
  83. package/dist/cjs/loader.cjs.js.map +1 -1
  84. package/dist/collection/collection-manifest.json +2 -2
  85. package/dist/collection/components/c-accordion/c-accordion.js +164 -164
  86. package/dist/collection/components/c-accordion/c-accordion.js.map +1 -1
  87. package/dist/collection/components/c-accordion/test/c-accordion.visual.js +40 -40
  88. package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -1
  89. package/dist/collection/components/c-accordion-item/c-accordion-item.js +254 -254
  90. package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -1
  91. package/dist/collection/components/c-alert/c-alert.js +51 -51
  92. package/dist/collection/components/c-alert/c-alert.js.map +1 -1
  93. package/dist/collection/components/c-alert/test/c-alert.visual.js +18 -18
  94. package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -1
  95. package/dist/collection/components/c-autocomplete/c-autocomplete.js +740 -740
  96. package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
  97. package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +23 -23
  98. package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -1
  99. package/dist/collection/components/c-badge/c-badge.js +15 -15
  100. package/dist/collection/components/c-badge/c-badge.js.map +1 -1
  101. package/dist/collection/components/c-button/c-button.js +502 -502
  102. package/dist/collection/components/c-button/c-button.js.map +1 -1
  103. package/dist/collection/components/c-button/test/c-button.visual.js +72 -72
  104. package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -1
  105. package/dist/collection/components/c-card/c-card.js +128 -128
  106. package/dist/collection/components/c-card/c-card.js.map +1 -1
  107. package/dist/collection/components/c-card/test/c-card.visual.js +8 -8
  108. package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -1
  109. package/dist/collection/components/c-card-actions/c-card-actions.js +64 -64
  110. package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -1
  111. package/dist/collection/components/c-card-content/c-card-content.js +15 -15
  112. package/dist/collection/components/c-card-content/c-card-content.js.map +1 -1
  113. package/dist/collection/components/c-card-title/c-card-title.js +45 -45
  114. package/dist/collection/components/c-card-title/c-card-title.js.map +1 -1
  115. package/dist/collection/components/c-checkbox/c-checkbox.css +1 -1
  116. package/dist/collection/components/c-checkbox/c-checkbox.js +355 -355
  117. package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
  118. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +12 -12
  119. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -1
  120. package/dist/collection/components/c-csc-logo/c-csc-logo.js +41 -41
  121. package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -1
  122. package/dist/collection/components/c-data-table/c-data-table.js +1140 -1140
  123. package/dist/collection/components/c-data-table/c-data-table.js.map +1 -1
  124. package/dist/collection/components/c-data-table/test/c-data-table.visual.js +23 -23
  125. package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -1
  126. package/dist/collection/components/c-data-table/test/data/index.js +96 -96
  127. package/dist/collection/components/c-data-table/test/data/index.js.map +1 -1
  128. package/dist/collection/components/c-dropdown/c-dropdown.js +615 -612
  129. package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
  130. package/dist/collection/components/c-icon/c-icon.js +84 -84
  131. package/dist/collection/components/c-icon/c-icon.js.map +1 -1
  132. package/dist/collection/components/c-icon-button/c-icon-button.js +234 -234
  133. package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -1
  134. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +10 -10
  135. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -1
  136. package/dist/collection/components/c-input/c-input.js +805 -805
  137. package/dist/collection/components/c-input/c-input.js.map +1 -1
  138. package/dist/collection/components/c-link/c-link.js +103 -103
  139. package/dist/collection/components/c-link/c-link.js.map +1 -1
  140. package/dist/collection/components/c-link/test/c-link.visual.js +6 -6
  141. package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -1
  142. package/dist/collection/components/c-list/c-list.js +65 -65
  143. package/dist/collection/components/c-list/c-list.js.map +1 -1
  144. package/dist/collection/components/c-list-item/c-list-item.js +213 -213
  145. package/dist/collection/components/c-list-item/c-list-item.js.map +1 -1
  146. package/dist/collection/components/c-list-item-title/c-list-item-title.js +44 -44
  147. package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -1
  148. package/dist/collection/components/c-loader/c-loader.js +114 -114
  149. package/dist/collection/components/c-loader/c-loader.js.map +1 -1
  150. package/dist/collection/components/c-login-button/c-login-button.js +78 -78
  151. package/dist/collection/components/c-login-button/c-login-button.js.map +1 -1
  152. package/dist/collection/components/c-login-buttons/c-login-buttons.js +15 -15
  153. package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -1
  154. package/dist/collection/components/c-login-card/c-login-card.js +166 -166
  155. package/dist/collection/components/c-login-card/c-login-card.js.map +1 -1
  156. package/dist/collection/components/c-login-card/test/c-login-card.visual.js +8 -8
  157. package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -1
  158. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +49 -49
  159. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -1
  160. package/dist/collection/components/c-login-card-content/c-login-card-content.js +15 -15
  161. package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -1
  162. package/dist/collection/components/c-login-card-title/c-login-card-title.js +15 -15
  163. package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -1
  164. package/dist/collection/components/c-main/c-main.js +40 -40
  165. package/dist/collection/components/c-main/c-main.js.map +1 -1
  166. package/dist/collection/components/c-menu/c-menu.js +273 -273
  167. package/dist/collection/components/c-menu/c-menu.js.map +1 -1
  168. package/dist/collection/components/c-menu/test/c-menu.visual.js +29 -29
  169. package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -1
  170. package/dist/collection/components/c-menu-items/c-menu-items.js +407 -407
  171. package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -1
  172. package/dist/collection/components/c-message/c-message.js +149 -149
  173. package/dist/collection/components/c-message/c-message.js.map +1 -1
  174. package/dist/collection/components/c-modal/c-modal.js +236 -236
  175. package/dist/collection/components/c-modal/c-modal.js.map +1 -1
  176. package/dist/collection/components/c-navigation-button/c-navigation-button.js +15 -15
  177. package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -1
  178. package/dist/collection/components/c-option/c-option.js +95 -95
  179. package/dist/collection/components/c-option/c-option.js.map +1 -1
  180. package/dist/collection/components/c-option-value/c-option-value.js +15 -15
  181. package/dist/collection/components/c-option-value/c-option-value.js.map +1 -1
  182. package/dist/collection/components/c-otp-input/c-otp-input.js +339 -339
  183. package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
  184. package/dist/collection/components/c-page/c-page.js +52 -52
  185. package/dist/collection/components/c-page/c-page.js.map +1 -1
  186. package/dist/collection/components/c-pagination/c-pagination.js +342 -342
  187. package/dist/collection/components/c-pagination/c-pagination.js.map +1 -1
  188. package/dist/collection/components/c-pagination/test/c-pagination.visual.js +32 -32
  189. package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -1
  190. package/dist/collection/components/c-progress-bar/c-progress-bar.js +148 -148
  191. package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -1
  192. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +12 -12
  193. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -1
  194. package/dist/collection/components/c-radio/c-radio.js +77 -77
  195. package/dist/collection/components/c-radio/c-radio.js.map +1 -1
  196. package/dist/collection/components/c-radio-group/c-radio-group.js +370 -370
  197. package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
  198. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +12 -12
  199. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -1
  200. package/dist/collection/components/c-radio-group/test/items.js +3 -3
  201. package/dist/collection/components/c-radio-group/test/items.js.map +1 -1
  202. package/dist/collection/components/c-ripple/c-ripple.js +89 -86
  203. package/dist/collection/components/c-ripple/c-ripple.js.map +1 -1
  204. package/dist/collection/components/c-row/c-row.js +116 -116
  205. package/dist/collection/components/c-row/c-row.js.map +1 -1
  206. package/dist/collection/components/c-select/c-select.js +747 -740
  207. package/dist/collection/components/c-select/c-select.js.map +1 -1
  208. package/dist/collection/components/c-select/test/c-select.visual.js +26 -26
  209. package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -1
  210. package/dist/collection/components/c-select/test/items.js +7 -7
  211. package/dist/collection/components/c-select/test/items.js.map +1 -1
  212. package/dist/collection/components/c-side-navigation/c-side-navigation.js +141 -141
  213. package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
  214. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +10 -10
  215. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -1
  216. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +223 -223
  217. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -1
  218. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +15 -15
  219. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -1
  220. package/dist/collection/components/c-slider/c-slider.js +375 -375
  221. package/dist/collection/components/c-slider/c-slider.js.map +1 -1
  222. package/dist/collection/components/c-spacer/c-spacer.js +15 -15
  223. package/dist/collection/components/c-spacer/c-spacer.js.map +1 -1
  224. package/dist/collection/components/c-spinner/c-spinner.js +88 -88
  225. package/dist/collection/components/c-spinner/c-spinner.js.map +1 -1
  226. package/dist/collection/components/c-status/c-status.js +40 -40
  227. package/dist/collection/components/c-status/c-status.js.map +1 -1
  228. package/dist/collection/components/c-status/test/c-status.visual.js +4 -4
  229. package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -1
  230. package/dist/collection/components/c-step/c-step.js +69 -69
  231. package/dist/collection/components/c-step/c-step.js.map +1 -1
  232. package/dist/collection/components/c-steps/c-steps.js +117 -117
  233. package/dist/collection/components/c-steps/c-steps.js.map +1 -1
  234. package/dist/collection/components/c-steps/test/c-steps.visual.js +11 -11
  235. package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -1
  236. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +135 -135
  237. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -1
  238. package/dist/collection/components/c-swiper/c-swiper.js +205 -205
  239. package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
  240. package/dist/collection/components/c-swiper/test/c-swiper.visual.js +14 -14
  241. package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -1
  242. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +203 -203
  243. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
  244. package/dist/collection/components/c-switch/c-switch.js +214 -214
  245. package/dist/collection/components/c-switch/c-switch.js.map +1 -1
  246. package/dist/collection/components/c-switch/test/c-switch.visual.js +14 -14
  247. package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -1
  248. package/dist/collection/components/c-tab/c-tab.js +224 -224
  249. package/dist/collection/components/c-tab/c-tab.js.map +1 -1
  250. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +263 -263
  251. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
  252. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +31 -31
  253. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -1
  254. package/dist/collection/components/c-tab-item/c-tab-item.js +96 -96
  255. package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -1
  256. package/dist/collection/components/c-tab-items/c-tab-items.js +134 -134
  257. package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -1
  258. package/dist/collection/components/c-table/c-table.js +84 -84
  259. package/dist/collection/components/c-table/c-table.js.map +1 -1
  260. package/dist/collection/components/c-tabs/c-tabs.js +576 -576
  261. package/dist/collection/components/c-tabs/c-tabs.js.map +1 -1
  262. package/dist/collection/components/c-tabs/test/c-tabs.visual.js +8 -8
  263. package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -1
  264. package/dist/collection/components/c-tag/c-tag.js +189 -189
  265. package/dist/collection/components/c-tag/c-tag.js.map +1 -1
  266. package/dist/collection/components/c-tag/test/c-tag.visual.js +12 -12
  267. package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -1
  268. package/dist/collection/components/c-tags/c-tags.js +48 -48
  269. package/dist/collection/components/c-tags/c-tags.js.map +1 -1
  270. package/dist/collection/components/c-text-field/c-text-field.js +609 -609
  271. package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
  272. package/dist/collection/components/c-text-field/test/c-text-field.visual.js +27 -27
  273. package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -1
  274. package/dist/collection/components/c-toast/c-toast.js +138 -138
  275. package/dist/collection/components/c-toast/c-toast.js.map +1 -1
  276. package/dist/collection/components/c-toasts/c-toasts.js +185 -183
  277. package/dist/collection/components/c-toasts/c-toasts.js.map +1 -1
  278. package/dist/collection/components/c-toasts/test/c-toasts.visual.js +21 -21
  279. package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -1
  280. package/dist/collection/components/c-toolbar/c-toolbar.js +15 -15
  281. package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -1
  282. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +4 -4
  283. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -1
  284. package/dist/collection/types/index.js +10 -10
  285. package/dist/collection/types/index.js.map +1 -1
  286. package/dist/collection/utils/getScrollParent.js +19 -19
  287. package/dist/collection/utils/getScrollParent.js.map +1 -1
  288. package/dist/collection/utils/test/takeScreenshot.js +8 -8
  289. package/dist/collection/utils/test/takeScreenshot.js.map +1 -1
  290. package/dist/components/c-accordion-item.d.ts +2 -2
  291. package/dist/components/c-accordion-item.js +137 -136
  292. package/dist/components/c-accordion-item.js.map +1 -1
  293. package/dist/components/c-accordion.d.ts +2 -2
  294. package/dist/components/c-accordion.js +74 -73
  295. package/dist/components/c-accordion.js.map +1 -1
  296. package/dist/components/c-alert.d.ts +2 -2
  297. package/dist/components/c-alert.js +34 -33
  298. package/dist/components/c-alert.js.map +1 -1
  299. package/dist/components/c-autocomplete.d.ts +2 -2
  300. package/dist/components/c-autocomplete.js +343 -342
  301. package/dist/components/c-autocomplete.js.map +1 -1
  302. package/dist/components/c-badge.d.ts +2 -2
  303. package/dist/components/c-badge.js +1 -1
  304. package/dist/components/c-button.d.ts +2 -2
  305. package/dist/components/c-button.js +176 -175
  306. package/dist/components/c-button.js.map +1 -1
  307. package/dist/components/c-card-actions.d.ts +2 -2
  308. package/dist/components/c-card-actions.js +1 -1
  309. package/dist/components/c-card-content.d.ts +2 -2
  310. package/dist/components/c-card-content.js +23 -22
  311. package/dist/components/c-card-content.js.map +1 -1
  312. package/dist/components/c-card-title.d.ts +2 -2
  313. package/dist/components/c-card-title.js +51 -50
  314. package/dist/components/c-card-title.js.map +1 -1
  315. package/dist/components/c-card.d.ts +2 -2
  316. package/dist/components/c-card.js +103 -102
  317. package/dist/components/c-card.js.map +1 -1
  318. package/dist/components/c-checkbox.d.ts +2 -2
  319. package/dist/components/c-checkbox.js +1 -1
  320. package/dist/components/c-csc-logo.d.ts +2 -2
  321. package/dist/components/c-csc-logo.js +27 -26
  322. package/dist/components/c-csc-logo.js.map +1 -1
  323. package/dist/components/c-data-table.d.ts +2 -2
  324. package/dist/components/c-data-table.js +799 -798
  325. package/dist/components/c-data-table.js.map +1 -1
  326. package/dist/components/c-dropdown.d.ts +2 -2
  327. package/dist/components/c-dropdown.js +1 -1
  328. package/dist/components/c-icon-button.d.ts +2 -2
  329. package/dist/components/c-icon-button.js +1 -1
  330. package/dist/components/c-icon.d.ts +2 -2
  331. package/dist/components/c-icon.js +1 -1
  332. package/dist/components/c-input.d.ts +2 -2
  333. package/dist/components/c-input.js +1 -1
  334. package/dist/components/c-link.d.ts +2 -2
  335. package/dist/components/c-link.js +38 -37
  336. package/dist/components/c-link.js.map +1 -1
  337. package/dist/components/c-list-item-title.d.ts +2 -2
  338. package/dist/components/c-list-item-title.js +30 -29
  339. package/dist/components/c-list-item-title.js.map +1 -1
  340. package/dist/components/c-list-item.d.ts +2 -2
  341. package/dist/components/c-list-item.js +100 -99
  342. package/dist/components/c-list-item.js.map +1 -1
  343. package/dist/components/c-list.d.ts +2 -2
  344. package/dist/components/c-list.js +50 -49
  345. package/dist/components/c-list.js.map +1 -1
  346. package/dist/components/c-loader.d.ts +2 -2
  347. package/dist/components/c-loader.js +1 -1
  348. package/dist/components/c-login-button.d.ts +2 -2
  349. package/dist/components/c-login-button.js +31 -30
  350. package/dist/components/c-login-button.js.map +1 -1
  351. package/dist/components/c-login-buttons.d.ts +2 -2
  352. package/dist/components/c-login-buttons.js +23 -22
  353. package/dist/components/c-login-buttons.js.map +1 -1
  354. package/dist/components/c-login-card-actions.d.ts +2 -2
  355. package/dist/components/c-login-card-actions.js +32 -32
  356. package/dist/components/c-login-card-actions.js.map +1 -1
  357. package/dist/components/c-login-card-content.d.ts +2 -2
  358. package/dist/components/c-login-card-content.js +23 -22
  359. package/dist/components/c-login-card-content.js.map +1 -1
  360. package/dist/components/c-login-card-title.d.ts +2 -2
  361. package/dist/components/c-login-card-title.js +23 -22
  362. package/dist/components/c-login-card-title.js.map +1 -1
  363. package/dist/components/c-login-card.d.ts +2 -2
  364. package/dist/components/c-login-card.js +75 -74
  365. package/dist/components/c-login-card.js.map +1 -1
  366. package/dist/components/c-main.d.ts +2 -2
  367. package/dist/components/c-main.js +26 -25
  368. package/dist/components/c-main.js.map +1 -1
  369. package/dist/components/c-menu-items.d.ts +2 -2
  370. package/dist/components/c-menu-items.js +1 -1
  371. package/dist/components/c-menu.d.ts +2 -2
  372. package/dist/components/c-menu.js +1 -1
  373. package/dist/components/c-message.d.ts +2 -2
  374. package/dist/components/c-message.js +1 -1
  375. package/dist/components/c-modal.d.ts +2 -2
  376. package/dist/components/c-modal.js +133 -132
  377. package/dist/components/c-modal.js.map +1 -1
  378. package/dist/components/c-navigation-button.d.ts +2 -2
  379. package/dist/components/c-navigation-button.js +54 -53
  380. package/dist/components/c-navigation-button.js.map +1 -1
  381. package/dist/components/c-option-value.d.ts +2 -2
  382. package/dist/components/c-option-value.js +23 -22
  383. package/dist/components/c-option-value.js.map +1 -1
  384. package/dist/components/c-option.d.ts +2 -2
  385. package/dist/components/c-option.js +32 -31
  386. package/dist/components/c-option.js.map +1 -1
  387. package/dist/components/c-otp-input.d.ts +2 -2
  388. package/dist/components/c-otp-input.js +187 -186
  389. package/dist/components/c-otp-input.js.map +1 -1
  390. package/dist/components/c-page.d.ts +2 -2
  391. package/dist/components/c-page.js +38 -37
  392. package/dist/components/c-page.js.map +1 -1
  393. package/dist/components/c-pagination.d.ts +2 -2
  394. package/dist/components/c-pagination.js +1 -1
  395. package/dist/components/c-progress-bar.d.ts +2 -2
  396. package/dist/components/c-progress-bar.js +66 -65
  397. package/dist/components/c-progress-bar.js.map +1 -1
  398. package/dist/components/c-radio-group.d.ts +2 -2
  399. package/dist/components/c-radio-group.js +141 -140
  400. package/dist/components/c-radio-group.js.map +1 -1
  401. package/dist/components/c-radio.d.ts +2 -2
  402. package/dist/components/c-radio.js +30 -29
  403. package/dist/components/c-radio.js.map +1 -1
  404. package/dist/components/c-ripple.d.ts +2 -2
  405. package/dist/components/c-ripple.js +1 -1
  406. package/dist/components/c-row.d.ts +2 -2
  407. package/dist/components/c-row.js +42 -41
  408. package/dist/components/c-row.js.map +1 -1
  409. package/dist/components/c-select.d.ts +2 -2
  410. package/dist/components/c-select.js +392 -384
  411. package/dist/components/c-select.js.map +1 -1
  412. package/dist/components/c-side-navigation-item.d.ts +2 -2
  413. package/dist/components/c-side-navigation-item.js +145 -144
  414. package/dist/components/c-side-navigation-item.js.map +1 -1
  415. package/dist/components/c-side-navigation-title.d.ts +2 -2
  416. package/dist/components/c-side-navigation-title.js +23 -22
  417. package/dist/components/c-side-navigation-title.js.map +1 -1
  418. package/dist/components/c-side-navigation.d.ts +2 -2
  419. package/dist/components/c-side-navigation.js +120 -119
  420. package/dist/components/c-side-navigation.js.map +1 -1
  421. package/dist/components/c-slider.d.ts +2 -2
  422. package/dist/components/c-slider.js +121 -120
  423. package/dist/components/c-slider.js.map +1 -1
  424. package/dist/components/c-spacer.d.ts +2 -2
  425. package/dist/components/c-spacer.js +1 -1
  426. package/dist/components/c-spinner.d.ts +2 -2
  427. package/dist/components/c-spinner.js +1 -1
  428. package/dist/components/c-status.d.ts +2 -2
  429. package/dist/components/c-status.js +27 -26
  430. package/dist/components/c-status.js.map +1 -1
  431. package/dist/components/c-step.d.ts +2 -2
  432. package/dist/components/c-step.js +32 -31
  433. package/dist/components/c-step.js.map +1 -1
  434. package/dist/components/c-steps.d.ts +2 -2
  435. package/dist/components/c-steps.js +82 -81
  436. package/dist/components/c-steps.js.map +1 -1
  437. package/dist/components/c-sub-navigation-item.d.ts +2 -2
  438. package/dist/components/c-sub-navigation-item.js +68 -67
  439. package/dist/components/c-sub-navigation-item.js.map +1 -1
  440. package/dist/components/c-swiper-tab.d.ts +2 -2
  441. package/dist/components/c-swiper-tab.js +63 -62
  442. package/dist/components/c-swiper-tab.js.map +1 -1
  443. package/dist/components/c-swiper.d.ts +2 -2
  444. package/dist/components/c-swiper.js +164 -163
  445. package/dist/components/c-swiper.js.map +1 -1
  446. package/dist/components/c-switch.d.ts +2 -2
  447. package/dist/components/c-switch.js +77 -76
  448. package/dist/components/c-switch.js.map +1 -1
  449. package/dist/components/c-tab-buttons.d.ts +2 -2
  450. package/dist/components/c-tab-buttons.js +140 -139
  451. package/dist/components/c-tab-buttons.js.map +1 -1
  452. package/dist/components/c-tab-item.d.ts +2 -2
  453. package/dist/components/c-tab-item.js +46 -45
  454. package/dist/components/c-tab-item.js.map +1 -1
  455. package/dist/components/c-tab-items.d.ts +2 -2
  456. package/dist/components/c-tab-items.js +87 -86
  457. package/dist/components/c-tab-items.js.map +1 -1
  458. package/dist/components/c-tab.d.ts +2 -2
  459. package/dist/components/c-tab.js +73 -72
  460. package/dist/components/c-tab.js.map +1 -1
  461. package/dist/components/c-table.d.ts +2 -2
  462. package/dist/components/c-table.js +53 -52
  463. package/dist/components/c-table.js.map +1 -1
  464. package/dist/components/c-tabs.d.ts +2 -2
  465. package/dist/components/c-tabs.js +452 -451
  466. package/dist/components/c-tabs.js.map +1 -1
  467. package/dist/components/c-tag.d.ts +2 -2
  468. package/dist/components/c-tag.js +87 -86
  469. package/dist/components/c-tag.js.map +1 -1
  470. package/dist/components/c-tags.d.ts +2 -2
  471. package/dist/components/c-tags.js +34 -33
  472. package/dist/components/c-tags.js.map +1 -1
  473. package/dist/components/c-text-field.d.ts +2 -2
  474. package/dist/components/c-text-field.js +184 -183
  475. package/dist/components/c-text-field.js.map +1 -1
  476. package/dist/components/c-toast.d.ts +2 -2
  477. package/dist/components/c-toast.js +1 -1
  478. package/dist/components/c-toasts.d.ts +2 -2
  479. package/dist/components/c-toasts.js +117 -97
  480. package/dist/components/c-toasts.js.map +1 -1
  481. package/dist/components/c-toolbar.d.ts +2 -2
  482. package/dist/components/c-toolbar.js +23 -22
  483. package/dist/components/c-toolbar.js.map +1 -1
  484. package/dist/components/index.d.ts +143 -0
  485. package/dist/components/index.js +71 -2
  486. package/dist/components/index.js.map +1 -1
  487. package/dist/components/p-07477d1d.js +238 -0
  488. package/dist/components/{c-menu-items2.js.map → p-07477d1d.js.map} +1 -1
  489. package/dist/components/p-14a3bcd3.js +295 -0
  490. package/dist/components/p-14a3bcd3.js.map +1 -0
  491. package/dist/components/p-29be82c5.js +120 -0
  492. package/dist/components/p-29be82c5.js.map +1 -0
  493. package/dist/components/p-2fbcb4e1.js +1518 -0
  494. package/dist/components/p-2fbcb4e1.js.map +1 -0
  495. package/dist/components/{mdi.js → p-3ea8acb0.js} +2 -2
  496. package/dist/components/p-3ea8acb0.js.map +1 -0
  497. package/dist/components/{c-icon-button2.js → p-59f6f0d8.js} +87 -86
  498. package/dist/components/p-59f6f0d8.js.map +1 -0
  499. package/dist/components/p-6e1a2888.js +33 -0
  500. package/dist/components/p-6e1a2888.js.map +1 -0
  501. package/dist/components/p-7f5a7176.js +50 -0
  502. package/dist/components/p-7f5a7176.js.map +1 -0
  503. package/dist/components/p-8068bc3d.js +47 -0
  504. package/dist/components/p-8068bc3d.js.map +1 -0
  505. package/dist/components/p-aa75dd47.js +293 -0
  506. package/dist/components/p-aa75dd47.js.map +1 -0
  507. package/dist/components/p-c1d56d6b.js +43 -0
  508. package/dist/components/p-c1d56d6b.js.map +1 -0
  509. package/dist/components/p-c9e58781.js +89 -0
  510. package/dist/components/p-c9e58781.js.map +1 -0
  511. package/dist/components/p-cdf22a0b.js +69 -0
  512. package/dist/components/p-cdf22a0b.js.map +1 -0
  513. package/dist/components/p-d3b88201.js +354 -0
  514. package/dist/components/p-d3b88201.js.map +1 -0
  515. package/dist/components/p-e6f11335.js +186 -0
  516. package/dist/components/p-e6f11335.js.map +1 -0
  517. package/dist/components/p-f07ce1ae.js +64 -0
  518. package/dist/components/p-f07ce1ae.js.map +1 -0
  519. package/dist/components/p-f4b8b4e1.js +94 -0
  520. package/dist/components/p-f4b8b4e1.js.map +1 -0
  521. package/dist/components/{c-badge2.js → p-f932f64a.js} +24 -23
  522. package/dist/components/p-f932f64a.js.map +1 -0
  523. package/dist/csc-ui/csc-ui.esm.js +1 -1
  524. package/dist/csc-ui/csc-ui.esm.js.map +1 -1
  525. package/dist/csc-ui/index.esm.js +1 -1
  526. package/dist/csc-ui/index.esm.js.map +1 -1
  527. package/dist/csc-ui/p-020643f8.entry.js +2 -0
  528. package/dist/csc-ui/p-020643f8.entry.js.map +1 -0
  529. package/dist/csc-ui/p-06e13288.entry.js +2 -0
  530. package/dist/csc-ui/p-06e13288.entry.js.map +1 -0
  531. package/dist/csc-ui/p-10ef7ca7.entry.js +2 -0
  532. package/dist/csc-ui/p-10ef7ca7.entry.js.map +1 -0
  533. package/dist/csc-ui/{p-ce88995f.entry.js → p-1eae6514.entry.js} +2 -2
  534. package/dist/csc-ui/p-1eae6514.entry.js.map +1 -0
  535. package/dist/csc-ui/p-26526434.entry.js +2 -0
  536. package/dist/csc-ui/p-26526434.entry.js.map +1 -0
  537. package/dist/csc-ui/p-307f3fbc.entry.js +2 -0
  538. package/dist/csc-ui/p-307f3fbc.entry.js.map +1 -0
  539. package/dist/csc-ui/p-32fa684b.entry.js +2 -0
  540. package/dist/csc-ui/p-32fa684b.entry.js.map +1 -0
  541. package/dist/csc-ui/p-3cade358.entry.js +2 -0
  542. package/dist/csc-ui/p-3cade358.entry.js.map +1 -0
  543. package/dist/csc-ui/p-47f76af6.entry.js +2 -0
  544. package/dist/csc-ui/p-47f76af6.entry.js.map +1 -0
  545. package/dist/csc-ui/p-4a1cf8bf.entry.js +2 -0
  546. package/dist/csc-ui/p-4a1cf8bf.entry.js.map +1 -0
  547. package/dist/csc-ui/{p-231bc97b.entry.js → p-68b100e9.entry.js} +2 -2
  548. package/dist/csc-ui/p-68b100e9.entry.js.map +1 -0
  549. package/dist/csc-ui/{p-aa307b78.entry.js → p-6ec4e25e.entry.js} +2 -2
  550. package/dist/csc-ui/p-6ec4e25e.entry.js.map +1 -0
  551. package/dist/csc-ui/{p-9dc5b5ac.entry.js → p-752f983d.entry.js} +2 -2
  552. package/dist/csc-ui/p-752f983d.entry.js.map +1 -0
  553. package/dist/csc-ui/{p-2a104276.entry.js → p-75ef652d.entry.js} +2 -2
  554. package/dist/csc-ui/p-75ef652d.entry.js.map +1 -0
  555. package/dist/csc-ui/p-7e0e5d26.entry.js +2 -0
  556. package/dist/csc-ui/p-7e0e5d26.entry.js.map +1 -0
  557. package/dist/csc-ui/p-8315aa49.entry.js +2 -0
  558. package/dist/csc-ui/p-8315aa49.entry.js.map +1 -0
  559. package/dist/csc-ui/p-87b41fa4.entry.js +2 -0
  560. package/dist/csc-ui/p-87b41fa4.entry.js.map +1 -0
  561. package/dist/csc-ui/{p-fafac729.js → p-8f729e27.js} +1 -1
  562. package/dist/csc-ui/{p-fafac729.js.map → p-8f729e27.js.map} +1 -1
  563. package/dist/csc-ui/p-8fe7a288.entry.js +2 -0
  564. package/dist/csc-ui/p-8fe7a288.entry.js.map +1 -0
  565. package/dist/csc-ui/p-900e4f04.entry.js +2 -0
  566. package/dist/csc-ui/p-900e4f04.entry.js.map +1 -0
  567. package/dist/csc-ui/{p-18a7f4e9.entry.js → p-9ce6cc51.entry.js} +2 -2
  568. package/dist/csc-ui/p-9ce6cc51.entry.js.map +1 -0
  569. package/dist/csc-ui/p-a3e3248c.js +3 -0
  570. package/dist/csc-ui/p-a3e3248c.js.map +1 -0
  571. package/dist/csc-ui/p-a84641e0.entry.js +2 -0
  572. package/dist/csc-ui/p-a84641e0.entry.js.map +1 -0
  573. package/dist/csc-ui/{p-da7c0754.entry.js → p-ac5da8d1.entry.js} +2 -2
  574. package/dist/csc-ui/p-ac5da8d1.entry.js.map +1 -0
  575. package/dist/csc-ui/p-acce6632.entry.js +2 -0
  576. package/dist/csc-ui/p-acce6632.entry.js.map +1 -0
  577. package/dist/csc-ui/{p-52a3f4f8.entry.js → p-af181b9b.entry.js} +2 -2
  578. package/dist/csc-ui/p-af181b9b.entry.js.map +1 -0
  579. package/dist/csc-ui/{p-29b07261.entry.js → p-b09292de.entry.js} +2 -2
  580. package/dist/csc-ui/p-b09292de.entry.js.map +1 -0
  581. package/dist/csc-ui/p-b1ab606b.entry.js +2 -0
  582. package/dist/csc-ui/p-b1ab606b.entry.js.map +1 -0
  583. package/dist/csc-ui/{p-0b41f178.entry.js → p-b543f80e.entry.js} +2 -2
  584. package/dist/csc-ui/p-b543f80e.entry.js.map +1 -0
  585. package/dist/csc-ui/{p-61e0e61f.entry.js → p-bb62b147.entry.js} +2 -2
  586. package/dist/csc-ui/p-bb62b147.entry.js.map +1 -0
  587. package/dist/csc-ui/{p-0394ebc7.entry.js → p-bcb87140.entry.js} +2 -2
  588. package/dist/csc-ui/p-bcb87140.entry.js.map +1 -0
  589. package/dist/csc-ui/p-c222df06.entry.js +2 -0
  590. package/dist/csc-ui/p-c222df06.entry.js.map +1 -0
  591. package/dist/csc-ui/{p-886f0d1d.entry.js → p-c80fa43f.entry.js} +2 -2
  592. package/dist/csc-ui/p-c80fa43f.entry.js.map +1 -0
  593. package/dist/csc-ui/p-d32e42fe.js.map +1 -1
  594. package/dist/csc-ui/p-d67b56d8.entry.js +2 -0
  595. package/dist/csc-ui/p-d67b56d8.entry.js.map +1 -0
  596. package/dist/csc-ui/p-e0e78a0d.entry.js +2 -0
  597. package/dist/csc-ui/p-e0e78a0d.entry.js.map +1 -0
  598. package/dist/csc-ui/p-e1255160.js +2 -0
  599. package/dist/csc-ui/p-e1255160.js.map +1 -0
  600. package/dist/csc-ui/{p-1aeab024.entry.js → p-e2a40b86.entry.js} +2 -2
  601. package/dist/csc-ui/p-e2a40b86.entry.js.map +1 -0
  602. package/dist/csc-ui/p-eafe038d.entry.js +2 -0
  603. package/dist/csc-ui/p-eafe038d.entry.js.map +1 -0
  604. package/dist/csc-ui/{p-0e3cf775.entry.js → p-f164b124.entry.js} +2 -2
  605. package/dist/csc-ui/p-f164b124.entry.js.map +1 -0
  606. package/dist/esm/app-globals-0f993ce5.js +5 -0
  607. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  608. package/dist/esm/c-accordion-item.entry.js +108 -107
  609. package/dist/esm/c-accordion-item.entry.js.map +1 -1
  610. package/dist/esm/c-accordion.entry.js +53 -52
  611. package/dist/esm/c-accordion.entry.js.map +1 -1
  612. package/dist/esm/c-alert.entry.js +17 -16
  613. package/dist/esm/c-alert.entry.js.map +1 -1
  614. package/dist/esm/c-autocomplete_34.entry.js +2439 -2398
  615. package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
  616. package/dist/esm/c-data-table.entry.js +678 -677
  617. package/dist/esm/c-data-table.entry.js.map +1 -1
  618. package/dist/esm/c-link.entry.js +19 -18
  619. package/dist/esm/c-link.entry.js.map +1 -1
  620. package/dist/esm/c-list-item-title.entry.js +14 -13
  621. package/dist/esm/c-list-item-title.entry.js.map +1 -1
  622. package/dist/esm/c-list-item.entry.js +70 -69
  623. package/dist/esm/c-list-item.entry.js.map +1 -1
  624. package/dist/esm/c-list.entry.js +33 -32
  625. package/dist/esm/c-list.entry.js.map +1 -1
  626. package/dist/esm/c-login-button.entry.js +13 -12
  627. package/dist/esm/c-login-button.entry.js.map +1 -1
  628. package/dist/esm/c-login-buttons.entry.js +9 -8
  629. package/dist/esm/c-login-buttons.entry.js.map +1 -1
  630. package/dist/esm/c-login-card-actions.entry.js +9 -9
  631. package/dist/esm/c-login-card-actions.entry.js.map +1 -1
  632. package/dist/esm/c-login-card-content.entry.js +9 -8
  633. package/dist/esm/c-login-card-content.entry.js.map +1 -1
  634. package/dist/esm/c-login-card-title.entry.js +9 -8
  635. package/dist/esm/c-login-card-title.entry.js.map +1 -1
  636. package/dist/esm/c-login-card.entry.js +54 -53
  637. package/dist/esm/c-login-card.entry.js.map +1 -1
  638. package/dist/esm/c-menu_2.entry.js +317 -315
  639. package/dist/esm/c-menu_2.entry.js.map +1 -1
  640. package/dist/esm/c-modal.entry.js +109 -108
  641. package/dist/esm/c-modal.entry.js.map +1 -1
  642. package/dist/esm/c-option-value.entry.js +9 -8
  643. package/dist/esm/c-option-value.entry.js.map +1 -1
  644. package/dist/esm/c-pagination.entry.js +214 -213
  645. package/dist/esm/c-pagination.entry.js.map +1 -1
  646. package/dist/esm/c-progress-bar.entry.js +46 -45
  647. package/dist/esm/c-progress-bar.entry.js.map +1 -1
  648. package/dist/esm/c-row.entry.js +23 -22
  649. package/dist/esm/c-row.entry.js.map +1 -1
  650. package/dist/esm/c-slider.entry.js +87 -86
  651. package/dist/esm/c-slider.entry.js.map +1 -1
  652. package/dist/esm/c-status.entry.js +11 -10
  653. package/dist/esm/c-status.entry.js.map +1 -1
  654. package/dist/esm/c-step.entry.js +15 -14
  655. package/dist/esm/c-step.entry.js.map +1 -1
  656. package/dist/esm/c-steps.entry.js +62 -61
  657. package/dist/esm/c-steps.entry.js.map +1 -1
  658. package/dist/esm/c-swiper-tab.entry.js +35 -34
  659. package/dist/esm/c-swiper-tab.entry.js.map +1 -1
  660. package/dist/esm/c-swiper.entry.js +119 -118
  661. package/dist/esm/c-swiper.entry.js.map +1 -1
  662. package/dist/esm/c-tab-buttons.entry.js +118 -117
  663. package/dist/esm/c-tab-buttons.entry.js.map +1 -1
  664. package/dist/esm/c-tab-item.entry.js +29 -28
  665. package/dist/esm/c-tab-item.entry.js.map +1 -1
  666. package/dist/esm/c-tab-items.entry.js +67 -66
  667. package/dist/esm/c-tab-items.entry.js.map +1 -1
  668. package/dist/esm/c-tab.entry.js +46 -45
  669. package/dist/esm/c-tab.entry.js.map +1 -1
  670. package/dist/esm/c-tabs.entry.js +394 -393
  671. package/dist/esm/c-tabs.entry.js.map +1 -1
  672. package/dist/esm/c-tag.entry.js +34 -33
  673. package/dist/esm/c-tag.entry.js.map +1 -1
  674. package/dist/esm/c-tags.entry.js +18 -17
  675. package/dist/esm/c-tags.entry.js.map +1 -1
  676. package/dist/esm/c-toast.entry.js +60 -59
  677. package/dist/esm/c-toast.entry.js.map +1 -1
  678. package/dist/esm/c-toasts.entry.js +64 -63
  679. package/dist/esm/c-toasts.entry.js.map +1 -1
  680. package/dist/esm/csc-ui.js +14 -12
  681. package/dist/esm/csc-ui.js.map +1 -1
  682. package/dist/esm/index-28ad175b.js +23 -0
  683. package/dist/esm/{index-dfaed2a4.js.map → index-28ad175b.js.map} +1 -1
  684. package/dist/esm/index-5e4179ca.js +1848 -0
  685. package/dist/esm/index-5e4179ca.js.map +1 -0
  686. package/dist/esm/index.js +1 -1
  687. package/dist/esm/loader.js +6 -4
  688. package/dist/esm/loader.js.map +1 -1
  689. package/dist/playwright.config.js +40 -40
  690. package/dist/playwright.config.js.map +1 -1
  691. package/dist/stencil.config.js +48 -33
  692. package/dist/stencil.config.js.map +1 -1
  693. package/dist/types/components/c-accordion/c-accordion.d.ts +15 -15
  694. package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -27
  695. package/dist/types/components/c-alert/c-alert.d.ts +3 -3
  696. package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +60 -60
  697. package/dist/types/components/c-badge/c-badge.d.ts +1 -1
  698. package/dist/types/components/c-button/c-button.d.ts +33 -33
  699. package/dist/types/components/c-card/c-card.d.ts +10 -10
  700. package/dist/types/components/c-card-actions/c-card-actions.d.ts +3 -3
  701. package/dist/types/components/c-card-content/c-card-content.d.ts +1 -1
  702. package/dist/types/components/c-card-title/c-card-title.d.ts +12 -12
  703. package/dist/types/components/c-checkbox/c-checkbox.d.ts +26 -26
  704. package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +2 -2
  705. package/dist/types/components/c-data-table/c-data-table.d.ts +109 -109
  706. package/dist/types/components/c-dropdown/c-dropdown.d.ts +52 -52
  707. package/dist/types/components/c-icon/c-icon.d.ts +7 -7
  708. package/dist/types/components/c-icon-button/c-icon-button.d.ts +16 -16
  709. package/dist/types/components/c-input/c-input.d.ts +60 -60
  710. package/dist/types/components/c-link/c-link.d.ts +5 -5
  711. package/dist/types/components/c-list/c-list.d.ts +6 -6
  712. package/dist/types/components/c-list-item/c-list-item.d.ts +14 -14
  713. package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +2 -2
  714. package/dist/types/components/c-loader/c-loader.d.ts +8 -8
  715. package/dist/types/components/c-login-button/c-login-button.d.ts +4 -4
  716. package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +1 -1
  717. package/dist/types/components/c-login-card/c-login-card.d.ts +16 -16
  718. package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +3 -3
  719. package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +1 -1
  720. package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +1 -1
  721. package/dist/types/components/c-main/c-main.d.ts +2 -2
  722. package/dist/types/components/c-menu/c-menu.d.ts +23 -23
  723. package/dist/types/components/c-menu-items/c-menu-items.d.ts +39 -39
  724. package/dist/types/components/c-message/c-message.d.ts +16 -16
  725. package/dist/types/components/c-modal/c-modal.d.ts +22 -22
  726. package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +1 -1
  727. package/dist/types/components/c-option/c-option.d.ts +5 -5
  728. package/dist/types/components/c-option-value/c-option-value.d.ts +1 -1
  729. package/dist/types/components/c-otp-input/c-otp-input.d.ts +32 -32
  730. package/dist/types/components/c-page/c-page.d.ts +6 -6
  731. package/dist/types/components/c-pagination/c-pagination.d.ts +34 -34
  732. package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +7 -7
  733. package/dist/types/components/c-radio/c-radio.d.ts +4 -4
  734. package/dist/types/components/c-radio-group/c-radio-group.d.ts +27 -27
  735. package/dist/types/components/c-ripple/c-ripple.d.ts +5 -5
  736. package/dist/types/components/c-row/c-row.d.ts +7 -7
  737. package/dist/types/components/c-select/c-select.d.ts +65 -63
  738. package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +13 -13
  739. package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +18 -18
  740. package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +1 -1
  741. package/dist/types/components/c-slider/c-slider.d.ts +29 -29
  742. package/dist/types/components/c-spacer/c-spacer.d.ts +1 -1
  743. package/dist/types/components/c-spinner/c-spinner.d.ts +4 -4
  744. package/dist/types/components/c-status/c-status.d.ts +2 -2
  745. package/dist/types/components/c-step/c-step.d.ts +3 -3
  746. package/dist/types/components/c-steps/c-steps.d.ts +13 -13
  747. package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +8 -8
  748. package/dist/types/components/c-swiper/c-swiper.d.ts +22 -22
  749. package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +13 -13
  750. package/dist/types/components/c-switch/c-switch.d.ts +16 -16
  751. package/dist/types/components/c-tab/c-tab.d.ts +16 -16
  752. package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +20 -20
  753. package/dist/types/components/c-tab-item/c-tab-item.d.ts +9 -9
  754. package/dist/types/components/c-tab-items/c-tab-items.d.ts +16 -16
  755. package/dist/types/components/c-table/c-table.d.ts +11 -11
  756. package/dist/types/components/c-tabs/c-tabs.d.ts +62 -62
  757. package/dist/types/components/c-tag/c-tag.d.ts +10 -10
  758. package/dist/types/components/c-tags/c-tags.d.ts +4 -4
  759. package/dist/types/components/c-text-field/c-text-field.d.ts +47 -47
  760. package/dist/types/components/c-toast/c-toast.d.ts +15 -15
  761. package/dist/types/components/c-toasts/c-toasts.d.ts +14 -14
  762. package/dist/types/components/c-toolbar/c-toolbar.d.ts +1 -1
  763. package/dist/types/components.d.ts +8 -8
  764. package/dist/types/stencil-public-runtime.d.ts +15 -10
  765. package/dist/types/types/index.d.ts +99 -99
  766. package/loader/cdn.js +1 -3
  767. package/loader/index.cjs.js +1 -3
  768. package/loader/index.d.ts +3 -0
  769. package/loader/index.es2017.js +1 -3
  770. package/loader/index.js +1 -3
  771. package/package.json +16 -12
  772. package/vscode-data.json +9 -9
  773. package/dist/cjs/index-72dca436.js +0 -23
  774. package/dist/cjs/index-91ba22ab.js +0 -2603
  775. package/dist/cjs/index-91ba22ab.js.map +0 -1
  776. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +0 -140
  777. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +0 -1
  778. package/dist/collection/components/c-accordion/test/c-accordion.spec.js +0 -72
  779. package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +0 -1
  780. package/dist/collection/components/c-alert/test/c-alert.spec.js +0 -54
  781. package/dist/collection/components/c-alert/test/c-alert.spec.js.map +0 -1
  782. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +0 -35
  783. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +0 -1
  784. package/dist/collection/components/c-badge/test/c-badge.e2e.js +0 -10
  785. package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +0 -1
  786. package/dist/collection/components/c-badge/test/c-badge.spec.js +0 -18
  787. package/dist/collection/components/c-badge/test/c-badge.spec.js.map +0 -1
  788. package/dist/collection/components/c-button/test/c-button.spec.js +0 -207
  789. package/dist/collection/components/c-button/test/c-button.spec.js.map +0 -1
  790. package/dist/collection/components/c-card/test/c-card.e2e.js +0 -17
  791. package/dist/collection/components/c-card/test/c-card.e2e.js.map +0 -1
  792. package/dist/collection/components/c-card/test/c-card.spec.js +0 -142
  793. package/dist/collection/components/c-card/test/c-card.spec.js.map +0 -1
  794. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +0 -115
  795. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +0 -1
  796. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +0 -60
  797. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +0 -1
  798. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +0 -40
  799. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +0 -1
  800. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +0 -125
  801. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +0 -1
  802. package/dist/collection/components/c-data-table/test/c-data-table.spec.js +0 -107
  803. package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +0 -1
  804. package/dist/collection/components/c-icon/test/c-icon.spec.js +0 -12
  805. package/dist/collection/components/c-icon/test/c-icon.spec.js.map +0 -1
  806. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +0 -82
  807. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +0 -1
  808. package/dist/collection/components/c-link/test/c-link.spec.js +0 -75
  809. package/dist/collection/components/c-link/test/c-link.spec.js.map +0 -1
  810. package/dist/collection/components/c-loader/test/c-loader.e2e.js +0 -16
  811. package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +0 -1
  812. package/dist/collection/components/c-loader/test/c-loader.spec.js +0 -28
  813. package/dist/collection/components/c-loader/test/c-loader.spec.js.map +0 -1
  814. package/dist/collection/components/c-login-card/test/c-login-card.spec.js +0 -151
  815. package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +0 -1
  816. package/dist/collection/components/c-main/test/c-main.spec.js +0 -19
  817. package/dist/collection/components/c-main/test/c-main.spec.js.map +0 -1
  818. package/dist/collection/components/c-menu/test/c-menu.spec.js +0 -46
  819. package/dist/collection/components/c-menu/test/c-menu.spec.js.map +0 -1
  820. package/dist/collection/components/c-modal/test/c-modal.spec.js +0 -75
  821. package/dist/collection/components/c-modal/test/c-modal.spec.js.map +0 -1
  822. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +0 -10
  823. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +0 -1
  824. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +0 -18
  825. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +0 -1
  826. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +0 -47
  827. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +0 -1
  828. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +0 -54
  829. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +0 -1
  830. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +0 -39
  831. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +0 -1
  832. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +0 -28
  833. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +0 -1
  834. package/dist/collection/components/c-row/test/c-row.spec.js +0 -137
  835. package/dist/collection/components/c-row/test/c-row.spec.js.map +0 -1
  836. package/dist/collection/components/c-select/test/c-select.e2e.js +0 -66
  837. package/dist/collection/components/c-select/test/c-select.e2e.js.map +0 -1
  838. package/dist/collection/components/c-select/test/c-select.spec.js +0 -38
  839. package/dist/collection/components/c-select/test/c-select.spec.js.map +0 -1
  840. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +0 -21
  841. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +0 -1
  842. package/dist/collection/components/c-spacer/test/c-spacer.spec.js +0 -12
  843. package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +0 -1
  844. package/dist/collection/components/c-status/test/c-status.spec.js +0 -40
  845. package/dist/collection/components/c-status/test/c-status.spec.js.map +0 -1
  846. package/dist/collection/components/c-steps/test/c-steps.e2e.js +0 -35
  847. package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +0 -1
  848. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +0 -83
  849. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +0 -1
  850. package/dist/collection/components/c-switch/test/c-switch.e2e.js +0 -51
  851. package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +0 -1
  852. package/dist/collection/components/c-switch/test/c-switch.spec.js +0 -40
  853. package/dist/collection/components/c-switch/test/c-switch.spec.js.map +0 -1
  854. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +0 -91
  855. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +0 -1
  856. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +0 -42
  857. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +0 -1
  858. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +0 -74
  859. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +0 -1
  860. package/dist/collection/components/c-tabs/test/c-tabs.spec.js +0 -85
  861. package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +0 -1
  862. package/dist/collection/components/c-tag/test/c-tag.spec.js +0 -50
  863. package/dist/collection/components/c-tag/test/c-tag.spec.js.map +0 -1
  864. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +0 -12
  865. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +0 -1
  866. package/dist/collection/components/c-text-field/test/c-text-field.spec.js +0 -33
  867. package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +0 -1
  868. package/dist/collection/components/c-toasts/test/c-toasts.spec.js +0 -61
  869. package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +0 -1
  870. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +0 -12
  871. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +0 -1
  872. package/dist/collection/dist/styles/.gitkeep +0 -0
  873. package/dist/components/c-badge2.js.map +0 -1
  874. package/dist/components/c-card-actions2.js +0 -42
  875. package/dist/components/c-card-actions2.js.map +0 -1
  876. package/dist/components/c-checkbox2.js +0 -119
  877. package/dist/components/c-checkbox2.js.map +0 -1
  878. package/dist/components/c-dropdown2.js +0 -353
  879. package/dist/components/c-dropdown2.js.map +0 -1
  880. package/dist/components/c-icon-button2.js.map +0 -1
  881. package/dist/components/c-icon2.js +0 -46
  882. package/dist/components/c-icon2.js.map +0 -1
  883. package/dist/components/c-input2.js +0 -292
  884. package/dist/components/c-input2.js.map +0 -1
  885. package/dist/components/c-loader2.js +0 -63
  886. package/dist/components/c-loader2.js.map +0 -1
  887. package/dist/components/c-menu-items2.js +0 -237
  888. package/dist/components/c-menu2.js +0 -185
  889. package/dist/components/c-menu2.js.map +0 -1
  890. package/dist/components/c-message2.js +0 -88
  891. package/dist/components/c-message2.js.map +0 -1
  892. package/dist/components/c-pagination2.js +0 -294
  893. package/dist/components/c-pagination2.js.map +0 -1
  894. package/dist/components/c-ripple2.js +0 -68
  895. package/dist/components/c-ripple2.js.map +0 -1
  896. package/dist/components/c-spacer2.js +0 -32
  897. package/dist/components/c-spacer2.js.map +0 -1
  898. package/dist/components/c-spinner2.js +0 -49
  899. package/dist/components/c-spinner2.js.map +0 -1
  900. package/dist/components/c-toast2.js +0 -93
  901. package/dist/components/c-toast2.js.map +0 -1
  902. package/dist/components/index2.js +0 -23
  903. package/dist/components/index2.js.map +0 -1
  904. package/dist/components/mdi.js.map +0 -1
  905. package/dist/csc-ui/dist/styles/.gitkeep +0 -0
  906. package/dist/csc-ui/p-0394ebc7.entry.js.map +0 -1
  907. package/dist/csc-ui/p-0ad7a08a.entry.js +0 -2
  908. package/dist/csc-ui/p-0ad7a08a.entry.js.map +0 -1
  909. package/dist/csc-ui/p-0b41f178.entry.js.map +0 -1
  910. package/dist/csc-ui/p-0e3cf775.entry.js.map +0 -1
  911. package/dist/csc-ui/p-18a7f4e9.entry.js.map +0 -1
  912. package/dist/csc-ui/p-1aeab024.entry.js.map +0 -1
  913. package/dist/csc-ui/p-231bc97b.entry.js.map +0 -1
  914. package/dist/csc-ui/p-29b07261.entry.js.map +0 -1
  915. package/dist/csc-ui/p-2a104276.entry.js.map +0 -1
  916. package/dist/csc-ui/p-33c354c4.entry.js +0 -2
  917. package/dist/csc-ui/p-33c354c4.entry.js.map +0 -1
  918. package/dist/csc-ui/p-4dbc9e96.entry.js +0 -2
  919. package/dist/csc-ui/p-4dbc9e96.entry.js.map +0 -1
  920. package/dist/csc-ui/p-4f568e1f.entry.js +0 -2
  921. package/dist/csc-ui/p-4f568e1f.entry.js.map +0 -1
  922. package/dist/csc-ui/p-52a3f4f8.entry.js.map +0 -1
  923. package/dist/csc-ui/p-54d44ab9.entry.js +0 -2
  924. package/dist/csc-ui/p-54d44ab9.entry.js.map +0 -1
  925. package/dist/csc-ui/p-565ec8e4.js +0 -3
  926. package/dist/csc-ui/p-565ec8e4.js.map +0 -1
  927. package/dist/csc-ui/p-5dd84926.entry.js +0 -2
  928. package/dist/csc-ui/p-5dd84926.entry.js.map +0 -1
  929. package/dist/csc-ui/p-61e0e61f.entry.js.map +0 -1
  930. package/dist/csc-ui/p-7a7da729.entry.js +0 -2
  931. package/dist/csc-ui/p-7a7da729.entry.js.map +0 -1
  932. package/dist/csc-ui/p-80cdd280.entry.js +0 -2
  933. package/dist/csc-ui/p-80cdd280.entry.js.map +0 -1
  934. package/dist/csc-ui/p-886f0d1d.entry.js.map +0 -1
  935. package/dist/csc-ui/p-908b21bf.entry.js +0 -2
  936. package/dist/csc-ui/p-908b21bf.entry.js.map +0 -1
  937. package/dist/csc-ui/p-9dc5b5ac.entry.js.map +0 -1
  938. package/dist/csc-ui/p-a33ca657.entry.js +0 -2
  939. package/dist/csc-ui/p-a33ca657.entry.js.map +0 -1
  940. package/dist/csc-ui/p-aa307b78.entry.js.map +0 -1
  941. package/dist/csc-ui/p-b8fd106b.entry.js +0 -2
  942. package/dist/csc-ui/p-b8fd106b.entry.js.map +0 -1
  943. package/dist/csc-ui/p-bae44625.entry.js +0 -2
  944. package/dist/csc-ui/p-bae44625.entry.js.map +0 -1
  945. package/dist/csc-ui/p-c9e04eb5.entry.js +0 -2
  946. package/dist/csc-ui/p-c9e04eb5.entry.js.map +0 -1
  947. package/dist/csc-ui/p-cb4bce81.entry.js +0 -2
  948. package/dist/csc-ui/p-cb4bce81.entry.js.map +0 -1
  949. package/dist/csc-ui/p-ce88995f.entry.js.map +0 -1
  950. package/dist/csc-ui/p-da7c0754.entry.js.map +0 -1
  951. package/dist/csc-ui/p-da7d18c9.entry.js +0 -2
  952. package/dist/csc-ui/p-da7d18c9.entry.js.map +0 -1
  953. package/dist/csc-ui/p-e8bd7a76.entry.js +0 -2
  954. package/dist/csc-ui/p-e8bd7a76.entry.js.map +0 -1
  955. package/dist/csc-ui/p-e922c869.entry.js +0 -2
  956. package/dist/csc-ui/p-e922c869.entry.js.map +0 -1
  957. package/dist/csc-ui/p-e9ec927b.entry.js +0 -2
  958. package/dist/csc-ui/p-e9ec927b.entry.js.map +0 -1
  959. package/dist/csc-ui/p-f6ca71df.entry.js +0 -2
  960. package/dist/csc-ui/p-f6ca71df.entry.js.map +0 -1
  961. package/dist/csc-ui/p-fadae1ab.entry.js +0 -2
  962. package/dist/csc-ui/p-fadae1ab.entry.js.map +0 -1
  963. package/dist/csc-ui/p-fc580f2c.entry.js +0 -2
  964. package/dist/csc-ui/p-fc580f2c.entry.js.map +0 -1
  965. package/dist/esm/index-47956d53.js +0 -2573
  966. package/dist/esm/index-47956d53.js.map +0 -1
  967. package/dist/esm/index-dfaed2a4.js +0 -23
  968. package/dist/esm/polyfills/core-js.js +0 -11
  969. package/dist/esm/polyfills/dom.js +0 -79
  970. package/dist/esm/polyfills/es5-html-element.js +0 -1
  971. package/dist/esm/polyfills/index.js +0 -34
  972. package/dist/esm/polyfills/system.js +0 -6
  973. package/dist/loader/cdn.js +0 -3
  974. package/dist/loader/index.cjs.js +0 -3
  975. package/dist/loader/index.d.ts +0 -21
  976. package/dist/loader/index.es2017.js +0 -3
  977. package/dist/loader/index.js +0 -4
  978. package/dist/loader/package.json +0 -11
  979. package/dist/styles/.gitkeep +0 -0
  980. /package/dist/{styles → components/styles}/css/theme.css +0 -0
  981. /package/dist/{styles → components/styles}/scss/_theme.scss +0 -0
  982. /package/dist/{styles → components/styles}/tailwind/theme.js +0 -0
@@ -2,599 +2,599 @@ import { mdiArrowLeft, mdiArrowRight } from "@mdi/js";
2
2
  import { h, Host, } from "@stencil/core";
3
3
  var ScrollDirection;
4
4
  (function (ScrollDirection) {
5
- ScrollDirection[ScrollDirection["Left"] = 2] = "Left";
6
- ScrollDirection[ScrollDirection["Right"] = 4] = "Right";
5
+ ScrollDirection[ScrollDirection["Left"] = 2] = "Left";
6
+ ScrollDirection[ScrollDirection["Right"] = 4] = "Right";
7
7
  })(ScrollDirection || (ScrollDirection = {}));
8
8
  export class CTabs {
9
- constructor() {
10
- this._initialized = false;
11
- this._debounce = null;
12
- this._moveDebounce = null;
13
- this._isDirty = false;
14
- this._focusedTabValue = this.value;
15
- this._intersectionObserver = new IntersectionObserver(([entry]) => {
16
- if (entry.isIntersecting) {
17
- setTimeout(() => {
18
- this._handleOverflow();
19
- }, 1000);
20
- }
21
- }, { threshold: 1 });
22
- this._previousWidth = 0;
23
- this._maxScrollOffset = 0;
24
- this._startX = 0;
25
- this._touchOffset = 0;
26
- this.value = undefined;
27
- this.borderless = false;
28
- this.disableAnimation = false;
29
- this.justify = 'stretch';
30
- this.mobileBreakpoint = 640;
31
- this.vertical = false;
32
- this.isOverflowing = false;
33
- this.isMobile = false;
34
- this.scrollOffset = 0;
35
- }
36
- onJustificationChange() {
37
- this._handleActiveTab();
38
- }
39
- onExternalValueChange() {
40
- this._handleActiveTab();
41
- this.changeValue.emit(this.value);
42
- this._updateItemsValue();
43
- }
44
- tabFocusHandler(event) {
45
- event.stopPropagation();
46
- this._focusedTabValue = event.detail;
47
- }
48
- tabChangeHandler(event) {
49
- event.stopPropagation();
50
- this.value = event.detail.value;
51
- }
52
- handleKeyDown(event) {
53
- if (!this.tabs.includes(event.target) || event.target.disabled)
54
- return;
55
- if (event.key === 'Enter' || event.code === 'Space') {
56
- this.value = event.target.value;
57
- }
58
- }
59
- handleKeyUp(event) {
60
- this._isDirty = true;
61
- if (!this.tabs.includes(event.target))
62
- return;
63
- const isArrowLeft = event.key === 'ArrowLeft';
64
- const isArrowRight = event.key === 'ArrowRight';
65
- if (!isArrowRight && !isArrowLeft)
66
- return;
67
- const tabIndex = this._getTabIndex(this._focusedTabValue);
68
- const firstAvailableValue = this.availableValues.at(0);
69
- const lastAvailableValue = this.availableValues.at(-1);
70
- const isBeginning = this._focusedTabValue === firstAvailableValue;
71
- const isEnd = this._focusedTabValue === lastAvailableValue;
72
- const nextValue = isEnd
73
- ? firstAvailableValue
74
- : this.availableValues[tabIndex + 1];
75
- const previousValue = isBeginning
76
- ? lastAvailableValue
77
- : this.availableValues[tabIndex - 1];
78
- if (isArrowLeft) {
79
- if (isBeginning)
80
- return;
81
- this._focusTab(previousValue);
82
- }
83
- if (isArrowRight) {
84
- if (isEnd)
85
- return;
86
- this._focusTab(nextValue);
87
- }
88
- }
89
- get _prefersReducedMotion() {
90
- return (window.matchMedia('(prefers-reduced-motion: reduce)').matches ||
91
- this.disableAnimation);
92
- }
93
- get _tabItems() {
94
- return this.el.querySelector(':scope > c-tab-items');
95
- }
96
- get _tabButtons() {
97
- return this.el.querySelector(':scope > c-tab-buttons');
98
- }
99
- _updateItemsValue() {
100
- requestAnimationFrame(() => {
101
- this.tabItems.value = this.value;
102
- if (this._tabButtons) {
103
- this._tabButtons.value = this.value;
104
- }
105
- });
106
- }
107
- componentWillLoad() {
108
- CTabs._uniqueId += 1;
109
- this._tabItems.disableAnimation = this._prefersReducedMotion;
110
- if (this._tabButtons) {
111
- this.el.classList.add('c-tabs--buttons');
112
- this._tabButtons.setAttribute('tabs', 'true');
113
- }
114
- this._updateItemsValue();
115
- }
116
- componentDidLoad() {
117
- this._resizeObserver = new ResizeObserver((entries) => {
118
- this._handleResize(entries[0].contentRect.width);
119
- });
120
- this._resizeObserver.observe(this.el);
121
- this._intersectionObserver.observe(this.el);
122
- this.el.style.setProperty('--_c-tabs-count', this.setsize.toString());
123
- requestAnimationFrame(() => {
124
- this._handleOverflow();
125
- });
126
- }
127
- disconnectedCallback() {
128
- this._intersectionObserver.disconnect();
129
- }
130
- get tabs() {
131
- if (!!this._tabButtons) {
132
- return Array.from(this._tabButtons.querySelectorAll(':scope > c-button'));
133
- }
134
- return Array.from(this.el.querySelectorAll(':scope > c-tab'));
135
- }
136
- get tabItems() {
137
- return this.el.querySelector('c-tab-items');
138
- }
139
- get setsize() {
140
- return this.tabs.length;
141
- }
142
- get availableValues() {
143
- return this.tabs.map((tab) => tab.value);
144
- }
145
- _getTabIndex(value) {
146
- return this.availableValues.findIndex((tab) => tab === value);
147
- }
148
- _setIndicatorTop(value) {
149
- const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
150
- container.style.setProperty('--_c-tabs-indicator-top', `${value}px`);
151
- }
152
- _setIndicatorLeft(value) {
153
- const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
154
- container.style.setProperty('--_c-tabs-indicator-left', `${value}px`);
155
- }
156
- _setIndicatorWidth(value) {
157
- const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
158
- container.style.setProperty('--_c-tabs-indicator-width', value.toString());
159
- }
160
- _handleActiveTab() {
161
- requestAnimationFrame(() => {
162
- var _a;
163
- let position = 0;
164
- const oldTab = (_a = this.el.querySelector('[aria-selected="true"]')) !== null && _a !== void 0 ? _a : this.tabs[0];
165
- this.tabs.forEach((tab, index) => {
166
- if (!tab.disabled) {
167
- position += 1;
9
+ constructor() {
10
+ this._initialized = false;
11
+ this._debounce = null;
12
+ this._moveDebounce = null;
13
+ this._isDirty = false;
14
+ this._focusedTabValue = this.value;
15
+ this._intersectionObserver = new IntersectionObserver(([entry]) => {
16
+ if (entry.isIntersecting) {
17
+ setTimeout(() => {
18
+ this._handleOverflow();
19
+ }, 1000);
20
+ }
21
+ }, { threshold: 1 });
22
+ this._previousWidth = 0;
23
+ this._maxScrollOffset = 0;
24
+ this._startX = 0;
25
+ this._touchOffset = 0;
26
+ this.value = undefined;
27
+ this.borderless = false;
28
+ this.disableAnimation = false;
29
+ this.justify = 'stretch';
30
+ this.mobileBreakpoint = 640;
31
+ this.vertical = false;
32
+ this.isOverflowing = false;
33
+ this.isMobile = false;
34
+ this.scrollOffset = 0;
35
+ }
36
+ onJustificationChange() {
37
+ this._handleActiveTab();
38
+ }
39
+ onExternalValueChange() {
40
+ this._handleActiveTab();
41
+ this.changeValue.emit(this.value);
42
+ this._updateItemsValue();
43
+ }
44
+ tabFocusHandler(event) {
45
+ event.stopPropagation();
46
+ this._focusedTabValue = event.detail;
47
+ }
48
+ tabChangeHandler(event) {
49
+ event.stopPropagation();
50
+ this.value = event.detail.value;
51
+ }
52
+ handleKeyDown(event) {
53
+ if (!this.tabs.includes(event.target) || event.target.disabled)
54
+ return;
55
+ if (event.key === 'Enter' || event.code === 'Space') {
56
+ this.value = event.target.value;
168
57
  }
169
- const isActive = tab.value === this.value;
170
- const tabId = `c-tab-${CTabs._uniqueId}-${index + 1}`;
171
- const tabItemId = `c-tab-item-${CTabs._uniqueId}-${index + 1}`;
172
- tab.setAttribute('id', tabId);
173
- tab.setAttribute('aria-controls', tabItemId);
174
- if (!this._tabButtons) {
175
- tab.active = isActive;
58
+ }
59
+ handleKeyUp(event) {
60
+ this._isDirty = true;
61
+ if (!this.tabs.includes(event.target))
62
+ return;
63
+ const isArrowLeft = event.key === 'ArrowLeft';
64
+ const isArrowRight = event.key === 'ArrowRight';
65
+ if (!isArrowRight && !isArrowLeft)
66
+ return;
67
+ const tabIndex = this._getTabIndex(this._focusedTabValue);
68
+ const firstAvailableValue = this.availableValues.at(0);
69
+ const lastAvailableValue = this.availableValues.at(-1);
70
+ const isBeginning = this._focusedTabValue === firstAvailableValue;
71
+ const isEnd = this._focusedTabValue === lastAvailableValue;
72
+ const nextValue = isEnd
73
+ ? firstAvailableValue
74
+ : this.availableValues[tabIndex + 1];
75
+ const previousValue = isBeginning
76
+ ? lastAvailableValue
77
+ : this.availableValues[tabIndex - 1];
78
+ if (isArrowLeft) {
79
+ if (isBeginning)
80
+ return;
81
+ this._focusTab(previousValue);
176
82
  }
177
- else if (isActive) {
178
- this._tabButtons.value = tab.value;
83
+ if (isArrowRight) {
84
+ if (isEnd)
85
+ return;
86
+ this._focusTab(nextValue);
179
87
  }
180
- const item = Array.from(this.tabItems.querySelectorAll(':scope > c-tab-item')).find((child) => child.value === tab.value);
181
- item.setAttribute('disabled', (!!tab.disabled).toString());
182
- item.setAttribute('id', tabItemId);
183
- item.setAttribute('aria-labelledby', tabId);
184
- item.active = isActive;
185
- item.setAttribute('active', isActive.toString());
186
- if (!tab.disabled) {
187
- tab.setAttribute('aria-posinset', position.toString());
188
- tab.setAttribute('setsize', this.availableValues.length.toString());
88
+ }
89
+ get _prefersReducedMotion() {
90
+ return (window.matchMedia('(prefers-reduced-motion: reduce)').matches ||
91
+ this.disableAnimation);
92
+ }
93
+ get _tabItems() {
94
+ return this.el.querySelector(':scope > c-tab-items');
95
+ }
96
+ get _tabButtons() {
97
+ return this.el.querySelector(':scope > c-tab-buttons');
98
+ }
99
+ _updateItemsValue() {
100
+ requestAnimationFrame(() => {
101
+ this.tabItems.value = this.value;
102
+ if (this._tabButtons) {
103
+ this._tabButtons.value = this.value;
104
+ }
105
+ });
106
+ }
107
+ componentWillLoad() {
108
+ CTabs._uniqueId += 1;
109
+ this._tabItems.disableAnimation = this._prefersReducedMotion;
110
+ if (this._tabButtons) {
111
+ this.el.classList.add('c-tabs--buttons');
112
+ this._tabButtons.setAttribute('tabs', 'true');
189
113
  }
190
- if (isActive && !this._tabButtons) {
191
- this._moveIndicator(oldTab, tab);
192
- requestAnimationFrame(() => {
193
- if (!this.isOverflowing)
194
- return;
195
- const selectedTab = this.el.querySelector('c-tab[aria-selected="true"]');
196
- this._moveToTab(selectedTab);
197
- this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
198
- });
114
+ this._updateItemsValue();
115
+ }
116
+ componentDidLoad() {
117
+ this._resizeObserver = new ResizeObserver((entries) => {
118
+ this._handleResize(entries[0].contentRect.width);
119
+ });
120
+ this._resizeObserver.observe(this.el);
121
+ this._intersectionObserver.observe(this.el);
122
+ this.el.style.setProperty('--_c-tabs-count', this.setsize.toString());
123
+ requestAnimationFrame(() => {
124
+ this._handleOverflow();
125
+ });
126
+ }
127
+ disconnectedCallback() {
128
+ this._intersectionObserver.disconnect();
129
+ }
130
+ get tabs() {
131
+ if (!!this._tabButtons) {
132
+ return Array.from(this._tabButtons.querySelectorAll(':scope > c-button'));
199
133
  }
200
- if (isActive && this._isDirty) {
201
- tab.focus();
134
+ return Array.from(this.el.querySelectorAll(':scope > c-tab'));
135
+ }
136
+ get tabItems() {
137
+ return this.el.querySelector('c-tab-items');
138
+ }
139
+ get setsize() {
140
+ return this.tabs.length;
141
+ }
142
+ get availableValues() {
143
+ return this.tabs.map((tab) => tab.value);
144
+ }
145
+ _getTabIndex(value) {
146
+ return this.availableValues.findIndex((tab) => tab === value);
147
+ }
148
+ _setIndicatorTop(value) {
149
+ const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
150
+ container.style.setProperty('--_c-tabs-indicator-top', `${value}px`);
151
+ }
152
+ _setIndicatorLeft(value) {
153
+ const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
154
+ container.style.setProperty('--_c-tabs-indicator-left', `${value}px`);
155
+ }
156
+ _setIndicatorWidth(value) {
157
+ const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
158
+ container.style.setProperty('--_c-tabs-indicator-width', value.toString());
159
+ }
160
+ _handleActiveTab() {
161
+ requestAnimationFrame(() => {
162
+ var _a;
163
+ let position = 0;
164
+ const oldTab = (_a = this.el.querySelector('[aria-selected="true"]')) !== null && _a !== void 0 ? _a : this.tabs[0];
165
+ this.tabs.forEach((tab, index) => {
166
+ if (!tab.disabled) {
167
+ position += 1;
168
+ }
169
+ const isActive = tab.value === this.value;
170
+ const tabId = `c-tab-${CTabs._uniqueId}-${index + 1}`;
171
+ const tabItemId = `c-tab-item-${CTabs._uniqueId}-${index + 1}`;
172
+ tab.setAttribute('id', tabId);
173
+ tab.setAttribute('aria-controls', tabItemId);
174
+ if (!this._tabButtons) {
175
+ tab.active = isActive;
176
+ }
177
+ else if (isActive) {
178
+ this._tabButtons.value = tab.value;
179
+ }
180
+ const item = Array.from(this.tabItems.querySelectorAll(':scope > c-tab-item')).find((child) => child.value === tab.value);
181
+ item.setAttribute('disabled', (!!tab.disabled).toString());
182
+ item.setAttribute('id', tabItemId);
183
+ item.setAttribute('aria-labelledby', tabId);
184
+ item.active = isActive;
185
+ item.setAttribute('active', isActive.toString());
186
+ if (!tab.disabled) {
187
+ tab.setAttribute('aria-posinset', position.toString());
188
+ tab.setAttribute('setsize', this.availableValues.length.toString());
189
+ }
190
+ if (isActive && !this._tabButtons) {
191
+ this._moveIndicator(oldTab, tab);
192
+ requestAnimationFrame(() => {
193
+ if (!this.isOverflowing)
194
+ return;
195
+ const selectedTab = this.el.querySelector('c-tab[aria-selected="true"]');
196
+ this._moveToTab(selectedTab);
197
+ this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
198
+ });
199
+ }
200
+ if (isActive && this._isDirty) {
201
+ tab.focus();
202
+ }
203
+ });
204
+ });
205
+ }
206
+ _getDimensions(item) {
207
+ const { x, width } = item.getBoundingClientRect();
208
+ const { x: containerX, width: containerWidth } = this._tabsTabsElement.getBoundingClientRect();
209
+ const { x: scrollerX, width: scrollerWidth } = this._tabsScrollElement.getBoundingClientRect();
210
+ return {
211
+ x,
212
+ width,
213
+ containerWidth,
214
+ containerX,
215
+ scrollerX,
216
+ scrollerWidth,
217
+ };
218
+ }
219
+ _focusTab(value) {
220
+ if (this._tabButtons) {
221
+ return;
222
+ }
223
+ requestAnimationFrame(() => {
224
+ const item = this.tabs.find((tab) => tab.value === value);
225
+ const { x, width, containerX, containerWidth } = this._getDimensions(item);
226
+ const isInView = x >= containerX && x + width <= containerX + containerWidth;
227
+ if (isInView) {
228
+ item === null || item === void 0 ? void 0 : item.focus();
229
+ return;
230
+ }
231
+ this._moveToTab(item);
232
+ });
233
+ }
234
+ _handleResize(width) {
235
+ if (this._moveDebounce !== null)
236
+ return;
237
+ if (this._debounce !== null) {
238
+ clearTimeout(this._debounce);
239
+ this._debounce = null;
240
+ }
241
+ this._debounce = setTimeout(() => {
242
+ const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
243
+ const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
244
+ requestAnimationFrame(() => {
245
+ if (width === this._previousWidth)
246
+ return;
247
+ this._handleOverflow();
248
+ this.isMobile = width < this.mobileBreakpoint;
249
+ this._maxScrollOffset =
250
+ -1 * (content.scrollWidth - container.clientWidth);
251
+ this._handleActiveTab();
252
+ this._previousWidth = width;
253
+ });
254
+ }, 200);
255
+ }
256
+ _moveIndicator(oldTab, newTab) {
257
+ if (this._moveDebounce !== null)
258
+ return;
259
+ this._moveDebounce = setTimeout(() => {
260
+ requestAnimationFrame(() => {
261
+ const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
262
+ const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
263
+ if (this._initialized && !this._prefersReducedMotion) {
264
+ container.style.setProperty('--_c-tabs-transition-speed', '200ms');
265
+ }
266
+ const buttonOffset = this.isOverflowing ? 32 : 0;
267
+ const newTabWidth = newTab.offsetWidth / content.offsetWidth;
268
+ const newTabHeight = this.vertical
269
+ ? newTab.offsetHeight / content.offsetHeight
270
+ : newTab.offsetHeight / content.offsetHeight;
271
+ const newTabPosition = oldTab.compareDocumentPosition(newTab);
272
+ let transitionWidth = 0;
273
+ if (newTabPosition === ScrollDirection.Right) {
274
+ transitionWidth = this.vertical
275
+ ? newTab.offsetTop + newTab.offsetHeight - oldTab.offsetTop
276
+ : newTab.offsetLeft + newTab.offsetWidth - oldTab.offsetLeft;
277
+ }
278
+ else {
279
+ transitionWidth = this.vertical
280
+ ? oldTab.offsetTop + oldTab.offsetHeight - newTab.offsetTop
281
+ : oldTab.offsetLeft + oldTab.offsetWidth - newTab.offsetLeft;
282
+ this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
283
+ this._setIndicatorTop(newTab.offsetTop - buttonOffset);
284
+ }
285
+ this._setIndicatorWidth(this.vertical
286
+ ? transitionWidth / content.offsetHeight
287
+ : transitionWidth / content.offsetWidth);
288
+ const onTransitionEnd = (event) => {
289
+ if (event.propertyName !== 'scale')
290
+ return;
291
+ this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
292
+ this._setIndicatorTop(newTab.offsetTop - buttonOffset);
293
+ this._setIndicatorWidth(this.vertical ? newTabHeight : newTabWidth);
294
+ content.removeEventListener('transitionend', onTransitionEnd);
295
+ if (!this._initialized) {
296
+ this.el.classList.add('c-tabs--initialized');
297
+ }
298
+ this._initialized = true;
299
+ };
300
+ content.addEventListener('transitionend', onTransitionEnd);
301
+ });
302
+ clearTimeout(this._moveDebounce);
303
+ this._moveDebounce = null;
304
+ }, 200);
305
+ }
306
+ onScrollOffsetChange(offset) {
307
+ this._tabsTabsElement.style.setProperty('--_c-tabs-scroll-position-x', `${offset}px`);
308
+ }
309
+ _handleOverflow() {
310
+ if (this._tabButtons) {
311
+ this.isOverflowing = false;
312
+ return;
202
313
  }
203
- });
204
- });
205
- }
206
- _getDimensions(item) {
207
- const { x, width } = item.getBoundingClientRect();
208
- const { x: containerX, width: containerWidth } = this._tabsTabsElement.getBoundingClientRect();
209
- const { x: scrollerX, width: scrollerWidth } = this._tabsScrollElement.getBoundingClientRect();
210
- return {
211
- x,
212
- width,
213
- containerWidth,
214
- containerX,
215
- scrollerX,
216
- scrollerWidth,
217
- };
218
- }
219
- _focusTab(value) {
220
- if (this._tabButtons) {
221
- return;
222
- }
223
- requestAnimationFrame(() => {
224
- const item = this.tabs.find((tab) => tab.value === value);
225
- const { x, width, containerX, containerWidth } = this._getDimensions(item);
226
- const isInView = x >= containerX && x + width <= containerX + containerWidth;
227
- if (isInView) {
228
- item === null || item === void 0 ? void 0 : item.focus();
229
- return;
230
- }
231
- this._moveToTab(item);
232
- });
233
- }
234
- _handleResize(width) {
235
- if (this._moveDebounce !== null)
236
- return;
237
- if (this._debounce !== null) {
238
- clearTimeout(this._debounce);
239
- this._debounce = null;
240
- }
241
- this._debounce = setTimeout(() => {
242
- const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
243
- const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
244
- requestAnimationFrame(() => {
245
- if (width === this._previousWidth)
246
- return;
247
- this._handleOverflow();
248
- this.isMobile = width < this.mobileBreakpoint;
249
- this._maxScrollOffset =
250
- -1 * (content.scrollWidth - container.clientWidth);
251
- this._handleActiveTab();
252
- this._previousWidth = width;
253
- });
254
- }, 200);
255
- }
256
- _moveIndicator(oldTab, newTab) {
257
- if (this._moveDebounce !== null)
258
- return;
259
- this._moveDebounce = setTimeout(() => {
260
- requestAnimationFrame(() => {
261
314
  const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
262
315
  const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
263
- if (this._initialized && !this._prefersReducedMotion) {
264
- container.style.setProperty('--_c-tabs-transition-speed', '200ms');
316
+ const contentSize = content.scrollWidth;
317
+ const containerSize = container.clientWidth;
318
+ this.isOverflowing = containerSize + 1 < contentSize;
319
+ }
320
+ _onTouchEnd() {
321
+ this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
322
+ }
323
+ _onTouchMove(event) {
324
+ if (this.vertical)
325
+ return;
326
+ event.preventDefault();
327
+ this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '0ms');
328
+ const offset = -1 * (this._touchOffset + this._startX - event.touches[0].clientX);
329
+ const isInRange = offset <= 0 && offset >= this._maxScrollOffset;
330
+ if (isInRange) {
331
+ this.scrollOffset = offset;
265
332
  }
266
- const buttonOffset = this.isOverflowing ? 32 : 0;
267
- const newTabWidth = newTab.offsetWidth / content.offsetWidth;
268
- const newTabHeight = this.vertical
269
- ? newTab.offsetHeight / content.offsetHeight
270
- : newTab.offsetHeight / content.offsetHeight;
271
- const newTabPosition = oldTab.compareDocumentPosition(newTab);
272
- let transitionWidth = 0;
273
- if (newTabPosition === ScrollDirection.Right) {
274
- transitionWidth = this.vertical
275
- ? newTab.offsetTop + newTab.offsetHeight - oldTab.offsetTop
276
- : newTab.offsetLeft + newTab.offsetWidth - oldTab.offsetLeft;
333
+ else if (offset > 0 || !this.isOverflowing) {
334
+ this.scrollOffset = 0;
277
335
  }
278
- else {
279
- transitionWidth = this.vertical
280
- ? oldTab.offsetTop + oldTab.offsetHeight - newTab.offsetTop
281
- : oldTab.offsetLeft + oldTab.offsetWidth - newTab.offsetLeft;
282
- this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
283
- this._setIndicatorTop(newTab.offsetTop - buttonOffset);
336
+ else if (offset < this._maxScrollOffset) {
337
+ this.scrollOffset = this._maxScrollOffset;
284
338
  }
285
- this._setIndicatorWidth(this.vertical
286
- ? transitionWidth / content.offsetHeight
287
- : transitionWidth / content.offsetWidth);
288
- const onTransitionEnd = (event) => {
289
- if (event.propertyName !== 'scale')
339
+ }
340
+ _onTouchStart(event) {
341
+ this._handleOverflow();
342
+ if (!this.isOverflowing)
290
343
  return;
291
- this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
292
- this._setIndicatorTop(newTab.offsetTop - buttonOffset);
293
- this._setIndicatorWidth(this.vertical ? newTabHeight : newTabWidth);
294
- content.removeEventListener('transitionend', onTransitionEnd);
295
- if (!this._initialized) {
296
- this.el.classList.add('c-tabs--initialized');
297
- }
298
- this._initialized = true;
344
+ this._touchOffset = this.scrollOffset * -1;
345
+ this._startX = event.touches[0].clientX;
346
+ }
347
+ _onBackClick() {
348
+ const min = 0;
349
+ const step = this._tabsTabsElement.clientWidth / 2;
350
+ this.scrollOffset = Math.min(this.scrollOffset + step, min);
351
+ }
352
+ _onForwardClick() {
353
+ const max = (this._tabsScrollElement.scrollWidth -
354
+ this._tabsTabsElement.clientWidth) *
355
+ -1;
356
+ const step = this._tabsTabsElement.clientWidth / 2;
357
+ this.scrollOffset = Math.max(-1 * step + this.scrollOffset, max);
358
+ }
359
+ _moveToTab(tab) {
360
+ const onTransitionEnd = () => {
361
+ tab === null || tab === void 0 ? void 0 : tab.focus();
362
+ this._tabsScrollElement.removeEventListener('transitionend', onTransitionEnd);
299
363
  };
364
+ requestAnimationFrame(() => {
365
+ const tabIndex = this._getTabIndex(tab.dataset.value);
366
+ const isFirstTab = tabIndex === 0;
367
+ const isLastTab = tabIndex === this.availableValues.length - 1;
368
+ if (isFirstTab) {
369
+ this.scrollOffset = 0;
370
+ return;
371
+ }
372
+ if (isLastTab) {
373
+ this.scrollOffset = this._maxScrollOffset - 8;
374
+ return;
375
+ }
376
+ const { x, width, containerWidth, containerX } = this._getDimensions(tab);
377
+ const tabEnd = x + width;
378
+ const containerEnd = containerX + containerWidth;
379
+ const isOverflowingStart = x < containerX;
380
+ const isOverflowingEnd = tabEnd > containerEnd;
381
+ if (isOverflowingStart) {
382
+ const tabInside = tabEnd - containerX;
383
+ const tabOutside = tabInside - width;
384
+ this.scrollOffset = this.scrollOffset - tabOutside + 4;
385
+ }
386
+ if (isOverflowingEnd) {
387
+ this.scrollOffset -= tabEnd - containerEnd + 4;
388
+ }
389
+ });
390
+ const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
300
391
  content.addEventListener('transitionend', onTransitionEnd);
301
- });
302
- clearTimeout(this._moveDebounce);
303
- this._moveDebounce = null;
304
- }, 200);
305
- }
306
- onScrollOffsetChange(offset) {
307
- this._tabsTabsElement.style.setProperty('--_c-tabs-scroll-position-x', `${offset}px`);
308
- }
309
- _handleOverflow() {
310
- if (this._tabButtons) {
311
- this.isOverflowing = false;
312
- return;
313
- }
314
- const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
315
- const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
316
- const contentSize = content.scrollWidth;
317
- const containerSize = container.clientWidth;
318
- this.isOverflowing = containerSize + 1 < contentSize;
319
- }
320
- _onTouchEnd() {
321
- this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
322
- }
323
- _onTouchMove(event) {
324
- if (this.vertical)
325
- return;
326
- event.preventDefault();
327
- this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '0ms');
328
- const offset = -1 * (this._touchOffset + this._startX - event.touches[0].clientX);
329
- const isInRange = offset <= 0 && offset >= this._maxScrollOffset;
330
- if (isInRange) {
331
- this.scrollOffset = offset;
332
- }
333
- else if (offset > 0 || !this.isOverflowing) {
334
- this.scrollOffset = 0;
335
- }
336
- else if (offset < this._maxScrollOffset) {
337
- this.scrollOffset = this._maxScrollOffset;
338
- }
339
- }
340
- _onTouchStart(event) {
341
- this._handleOverflow();
342
- if (!this.isOverflowing)
343
- return;
344
- this._touchOffset = this.scrollOffset * -1;
345
- this._startX = event.touches[0].clientX;
346
- }
347
- _onBackClick() {
348
- const min = 0;
349
- const step = this._tabsTabsElement.clientWidth / 2;
350
- this.scrollOffset = Math.min(this.scrollOffset + step, min);
351
- }
352
- _onForwardClick() {
353
- const max = (this._tabsScrollElement.scrollWidth -
354
- this._tabsTabsElement.clientWidth) *
355
- -1;
356
- const step = this._tabsTabsElement.clientWidth / 2;
357
- this.scrollOffset = Math.max(-1 * step + this.scrollOffset, max);
358
- }
359
- _moveToTab(tab) {
360
- const onTransitionEnd = () => {
361
- tab === null || tab === void 0 ? void 0 : tab.focus();
362
- this._tabsScrollElement.removeEventListener('transitionend', onTransitionEnd);
363
- };
364
- requestAnimationFrame(() => {
365
- const tabIndex = this._getTabIndex(tab.dataset.value);
366
- const isFirstTab = tabIndex === 0;
367
- const isLastTab = tabIndex === this.availableValues.length - 1;
368
- if (isFirstTab) {
369
- this.scrollOffset = 0;
370
- return;
371
- }
372
- if (isLastTab) {
373
- this.scrollOffset = this._maxScrollOffset - 8;
374
- return;
375
- }
376
- const { x, width, containerWidth, containerX } = this._getDimensions(tab);
377
- const tabEnd = x + width;
378
- const containerEnd = containerX + containerWidth;
379
- const isOverflowingStart = x < containerX;
380
- const isOverflowingEnd = tabEnd > containerEnd;
381
- if (isOverflowingStart) {
382
- const tabInside = tabEnd - containerX;
383
- const tabOutside = tabInside - width;
384
- this.scrollOffset = this.scrollOffset - tabOutside + 4;
385
- }
386
- if (isOverflowingEnd) {
387
- this.scrollOffset -= tabEnd - containerEnd + 4;
388
- }
389
- });
390
- const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
391
- content.addEventListener('transitionend', onTransitionEnd);
392
- }
393
- render() {
394
- const classes = {
395
- 'c-tabs': true,
396
- 'c-tabs--borderless': this.borderless,
397
- 'c-tabs--vertical': this.vertical,
398
- 'c-tabs--overflow': this.isOverflowing,
399
- 'c-tabs--mobile': this.isMobile,
400
- [`c-tabs--justify-${this.justify}`]: true,
401
- };
402
- return (h(Host, { role: "tablist", class: classes }, h("div", { class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (h("c-icon-button", { size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, h("c-icon", { path: mdiArrowLeft }))), h("div", { ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, h("div", { ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, h("slot", null))), this.isOverflowing && !this.vertical && (h("c-icon-button", { size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, h("c-icon", { path: mdiArrowRight })))), h("div", { class: "c-tabs__content" }, h("slot", { name: "items" }))));
403
- }
404
- static get is() { return "c-tabs"; }
405
- static get encapsulation() { return "shadow"; }
406
- static get originalStyleUrls() {
407
- return {
408
- "$": ["c-tabs.scss"]
409
- };
410
- }
411
- static get styleUrls() {
412
- return {
413
- "$": ["c-tabs.css"]
414
- };
415
- }
416
- static get properties() {
417
- return {
418
- "value": {
419
- "type": "any",
420
- "mutable": true,
421
- "complexType": {
422
- "original": "number | string",
423
- "resolved": "number | string",
424
- "references": {}
425
- },
426
- "required": true,
427
- "optional": false,
428
- "docs": {
429
- "tags": [],
430
- "text": "Currently active tab"
431
- },
432
- "attribute": "value",
433
- "reflect": false
434
- },
435
- "borderless": {
436
- "type": "boolean",
437
- "mutable": false,
438
- "complexType": {
439
- "original": "boolean",
440
- "resolved": "boolean",
441
- "references": {}
442
- },
443
- "required": false,
444
- "optional": false,
445
- "docs": {
446
- "tags": [],
447
- "text": "Disable the bottom border"
448
- },
449
- "attribute": "borderless",
450
- "reflect": false,
451
- "defaultValue": "false"
452
- },
453
- "disableAnimation": {
454
- "type": "boolean",
455
- "mutable": false,
456
- "complexType": {
457
- "original": "boolean",
458
- "resolved": "boolean",
459
- "references": {}
460
- },
461
- "required": false,
462
- "optional": false,
463
- "docs": {
464
- "tags": [],
465
- "text": "Disable animation"
466
- },
467
- "attribute": "disable-animation",
468
- "reflect": false,
469
- "defaultValue": "false"
470
- },
471
- "justify": {
472
- "type": "string",
473
- "mutable": false,
474
- "complexType": {
475
- "original": "CTabsJustify",
476
- "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
477
- "references": {
478
- "CTabsJustify": {
479
- "location": "import",
480
- "path": "../../types",
481
- "id": "src/types/index.ts::CTabsJustify"
392
+ }
393
+ render() {
394
+ const classes = {
395
+ 'c-tabs': true,
396
+ 'c-tabs--borderless': this.borderless,
397
+ 'c-tabs--vertical': this.vertical,
398
+ 'c-tabs--overflow': this.isOverflowing,
399
+ 'c-tabs--mobile': this.isMobile,
400
+ [`c-tabs--justify-${this.justify}`]: true,
401
+ };
402
+ return (h(Host, { key: '55cccb996d3ed8694fd0d9c1694c2934ab3d572b', role: "tablist", class: classes }, h("div", { key: '40f41b7bbada33806c418bd06569b7c0393f4890', class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (h("c-icon-button", { key: 'eefc5cb2a7c4f0273616c30c54b22fd3846611d5', size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, h("c-icon", { key: '0686eb5f32b87e1f0b5902c482b92098e52d34e9', path: mdiArrowLeft }))), h("div", { key: '74a38a52c05d3c3ff1cf09569006cefadcac4008', ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, h("div", { key: '6194a25f96ef1d6c2f4c46c56e88fb0e9f61b425', ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, h("slot", { key: '526ac235df9fff4284c835bee0d9c4fc70146537' }))), this.isOverflowing && !this.vertical && (h("c-icon-button", { key: '535e1480ee9521d93b5e0e05f69218854d63657e', size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, h("c-icon", { key: '40139ee099cd32ff6efbe7139283fdc7ee4876d5', path: mdiArrowRight })))), h("div", { key: 'af47c0e4ab3ef2a417905a4a67f9c7430279de8c', class: "c-tabs__content" }, h("slot", { key: 'ff8ae9187ce75652099932d9383c2c239eab8698', name: "items" }))));
403
+ }
404
+ static get is() { return "c-tabs"; }
405
+ static get encapsulation() { return "shadow"; }
406
+ static get originalStyleUrls() {
407
+ return {
408
+ "$": ["c-tabs.scss"]
409
+ };
410
+ }
411
+ static get styleUrls() {
412
+ return {
413
+ "$": ["c-tabs.css"]
414
+ };
415
+ }
416
+ static get properties() {
417
+ return {
418
+ "value": {
419
+ "type": "any",
420
+ "mutable": true,
421
+ "complexType": {
422
+ "original": "number | string",
423
+ "resolved": "number | string",
424
+ "references": {}
425
+ },
426
+ "required": true,
427
+ "optional": false,
428
+ "docs": {
429
+ "tags": [],
430
+ "text": "Currently active tab"
431
+ },
432
+ "attribute": "value",
433
+ "reflect": false
434
+ },
435
+ "borderless": {
436
+ "type": "boolean",
437
+ "mutable": false,
438
+ "complexType": {
439
+ "original": "boolean",
440
+ "resolved": "boolean",
441
+ "references": {}
442
+ },
443
+ "required": false,
444
+ "optional": false,
445
+ "docs": {
446
+ "tags": [],
447
+ "text": "Disable the bottom border"
448
+ },
449
+ "attribute": "borderless",
450
+ "reflect": false,
451
+ "defaultValue": "false"
452
+ },
453
+ "disableAnimation": {
454
+ "type": "boolean",
455
+ "mutable": false,
456
+ "complexType": {
457
+ "original": "boolean",
458
+ "resolved": "boolean",
459
+ "references": {}
460
+ },
461
+ "required": false,
462
+ "optional": false,
463
+ "docs": {
464
+ "tags": [],
465
+ "text": "Disable animation"
466
+ },
467
+ "attribute": "disable-animation",
468
+ "reflect": false,
469
+ "defaultValue": "false"
470
+ },
471
+ "justify": {
472
+ "type": "string",
473
+ "mutable": false,
474
+ "complexType": {
475
+ "original": "CTabsJustify",
476
+ "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
477
+ "references": {
478
+ "CTabsJustify": {
479
+ "location": "import",
480
+ "path": "../../types",
481
+ "id": "src/types/index.ts::CTabsJustify"
482
+ }
483
+ }
484
+ },
485
+ "required": false,
486
+ "optional": false,
487
+ "docs": {
488
+ "tags": [],
489
+ "text": "Justification of the children"
490
+ },
491
+ "attribute": "justify",
492
+ "reflect": false,
493
+ "defaultValue": "'stretch'"
494
+ },
495
+ "mobileBreakpoint": {
496
+ "type": "number",
497
+ "mutable": false,
498
+ "complexType": {
499
+ "original": "number",
500
+ "resolved": "number",
501
+ "references": {}
502
+ },
503
+ "required": false,
504
+ "optional": false,
505
+ "docs": {
506
+ "tags": [],
507
+ "text": "Mobile breakpoint in pixels\n- affects the content stacking with the vertical tabs"
508
+ },
509
+ "attribute": "mobile-breakpoint",
510
+ "reflect": false,
511
+ "defaultValue": "640"
512
+ },
513
+ "vertical": {
514
+ "type": "boolean",
515
+ "mutable": false,
516
+ "complexType": {
517
+ "original": "boolean",
518
+ "resolved": "boolean",
519
+ "references": {}
520
+ },
521
+ "required": false,
522
+ "optional": false,
523
+ "docs": {
524
+ "tags": [],
525
+ "text": "Vertical tabs"
526
+ },
527
+ "attribute": "vertical",
528
+ "reflect": false,
529
+ "defaultValue": "false"
482
530
  }
483
- }
484
- },
485
- "required": false,
486
- "optional": false,
487
- "docs": {
488
- "tags": [],
489
- "text": "Justification of the children"
490
- },
491
- "attribute": "justify",
492
- "reflect": false,
493
- "defaultValue": "'stretch'"
494
- },
495
- "mobileBreakpoint": {
496
- "type": "number",
497
- "mutable": false,
498
- "complexType": {
499
- "original": "number",
500
- "resolved": "number",
501
- "references": {}
502
- },
503
- "required": false,
504
- "optional": false,
505
- "docs": {
506
- "tags": [],
507
- "text": "Mobile breakpoint in pixels\n- affects the content stacking with the vertical tabs"
508
- },
509
- "attribute": "mobile-breakpoint",
510
- "reflect": false,
511
- "defaultValue": "640"
512
- },
513
- "vertical": {
514
- "type": "boolean",
515
- "mutable": false,
516
- "complexType": {
517
- "original": "boolean",
518
- "resolved": "boolean",
519
- "references": {}
520
- },
521
- "required": false,
522
- "optional": false,
523
- "docs": {
524
- "tags": [],
525
- "text": "Vertical tabs"
526
- },
527
- "attribute": "vertical",
528
- "reflect": false,
529
- "defaultValue": "false"
530
- }
531
- };
532
- }
533
- static get states() {
534
- return {
535
- "isOverflowing": {},
536
- "isMobile": {},
537
- "scrollOffset": {}
538
- };
539
- }
540
- static get events() {
541
- return [{
542
- "method": "changeValue",
543
- "name": "changeValue",
544
- "bubbles": false,
545
- "cancelable": true,
546
- "composed": true,
547
- "docs": {
548
- "tags": [],
549
- "text": "Emit changes to the parent"
550
- },
551
- "complexType": {
552
- "original": "any",
553
- "resolved": "any",
554
- "references": {}
555
- }
556
- }];
557
- }
558
- static get elementRef() { return "el"; }
559
- static get watchers() {
560
- return [{
561
- "propName": "justify",
562
- "methodName": "onJustificationChange"
563
- }, {
564
- "propName": "value",
565
- "methodName": "onExternalValueChange"
566
- }, {
567
- "propName": "scrollOffset",
568
- "methodName": "onScrollOffsetChange"
569
- }];
570
- }
571
- static get listeners() {
572
- return [{
573
- "name": "tabFocus",
574
- "method": "tabFocusHandler",
575
- "target": undefined,
576
- "capture": false,
577
- "passive": true
578
- }, {
579
- "name": "tabChange",
580
- "method": "tabChangeHandler",
581
- "target": undefined,
582
- "capture": false,
583
- "passive": true
584
- }, {
585
- "name": "keydown",
586
- "method": "handleKeyDown",
587
- "target": undefined,
588
- "capture": true,
589
- "passive": false
590
- }, {
591
- "name": "keyup",
592
- "method": "handleKeyUp",
593
- "target": undefined,
594
- "capture": true,
595
- "passive": false
596
- }];
597
- }
531
+ };
532
+ }
533
+ static get states() {
534
+ return {
535
+ "isOverflowing": {},
536
+ "isMobile": {},
537
+ "scrollOffset": {}
538
+ };
539
+ }
540
+ static get events() {
541
+ return [{
542
+ "method": "changeValue",
543
+ "name": "changeValue",
544
+ "bubbles": false,
545
+ "cancelable": true,
546
+ "composed": true,
547
+ "docs": {
548
+ "tags": [],
549
+ "text": "Emit changes to the parent"
550
+ },
551
+ "complexType": {
552
+ "original": "any",
553
+ "resolved": "any",
554
+ "references": {}
555
+ }
556
+ }];
557
+ }
558
+ static get elementRef() { return "el"; }
559
+ static get watchers() {
560
+ return [{
561
+ "propName": "justify",
562
+ "methodName": "onJustificationChange"
563
+ }, {
564
+ "propName": "value",
565
+ "methodName": "onExternalValueChange"
566
+ }, {
567
+ "propName": "scrollOffset",
568
+ "methodName": "onScrollOffsetChange"
569
+ }];
570
+ }
571
+ static get listeners() {
572
+ return [{
573
+ "name": "tabFocus",
574
+ "method": "tabFocusHandler",
575
+ "target": undefined,
576
+ "capture": false,
577
+ "passive": true
578
+ }, {
579
+ "name": "tabChange",
580
+ "method": "tabChangeHandler",
581
+ "target": undefined,
582
+ "capture": false,
583
+ "passive": true
584
+ }, {
585
+ "name": "keydown",
586
+ "method": "handleKeyDown",
587
+ "target": undefined,
588
+ "capture": true,
589
+ "passive": false
590
+ }, {
591
+ "name": "keyup",
592
+ "method": "handleKeyUp",
593
+ "target": undefined,
594
+ "capture": true,
595
+ "passive": false
596
+ }];
597
+ }
598
598
  }
599
599
  CTabs._uniqueId = 0;
600
600
  //# sourceMappingURL=c-tabs.js.map