@cscfi/csc-ui 2.2.4 → 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 (981) 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 +2438 -2390
  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.js +355 -355
  116. package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
  117. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +12 -12
  118. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -1
  119. package/dist/collection/components/c-csc-logo/c-csc-logo.js +41 -41
  120. package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -1
  121. package/dist/collection/components/c-data-table/c-data-table.js +1140 -1140
  122. package/dist/collection/components/c-data-table/c-data-table.js.map +1 -1
  123. package/dist/collection/components/c-data-table/test/c-data-table.visual.js +23 -23
  124. package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -1
  125. package/dist/collection/components/c-data-table/test/data/index.js +96 -96
  126. package/dist/collection/components/c-data-table/test/data/index.js.map +1 -1
  127. package/dist/collection/components/c-dropdown/c-dropdown.js +615 -612
  128. package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
  129. package/dist/collection/components/c-icon/c-icon.js +84 -84
  130. package/dist/collection/components/c-icon/c-icon.js.map +1 -1
  131. package/dist/collection/components/c-icon-button/c-icon-button.js +234 -234
  132. package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -1
  133. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +10 -10
  134. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -1
  135. package/dist/collection/components/c-input/c-input.js +805 -805
  136. package/dist/collection/components/c-input/c-input.js.map +1 -1
  137. package/dist/collection/components/c-link/c-link.js +103 -103
  138. package/dist/collection/components/c-link/c-link.js.map +1 -1
  139. package/dist/collection/components/c-link/test/c-link.visual.js +6 -6
  140. package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -1
  141. package/dist/collection/components/c-list/c-list.js +65 -65
  142. package/dist/collection/components/c-list/c-list.js.map +1 -1
  143. package/dist/collection/components/c-list-item/c-list-item.js +213 -213
  144. package/dist/collection/components/c-list-item/c-list-item.js.map +1 -1
  145. package/dist/collection/components/c-list-item-title/c-list-item-title.js +44 -44
  146. package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -1
  147. package/dist/collection/components/c-loader/c-loader.js +114 -114
  148. package/dist/collection/components/c-loader/c-loader.js.map +1 -1
  149. package/dist/collection/components/c-login-button/c-login-button.js +78 -78
  150. package/dist/collection/components/c-login-button/c-login-button.js.map +1 -1
  151. package/dist/collection/components/c-login-buttons/c-login-buttons.js +15 -15
  152. package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -1
  153. package/dist/collection/components/c-login-card/c-login-card.js +166 -166
  154. package/dist/collection/components/c-login-card/c-login-card.js.map +1 -1
  155. package/dist/collection/components/c-login-card/test/c-login-card.visual.js +8 -8
  156. package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -1
  157. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +49 -49
  158. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -1
  159. package/dist/collection/components/c-login-card-content/c-login-card-content.js +15 -15
  160. package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -1
  161. package/dist/collection/components/c-login-card-title/c-login-card-title.js +15 -15
  162. package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -1
  163. package/dist/collection/components/c-main/c-main.js +40 -40
  164. package/dist/collection/components/c-main/c-main.js.map +1 -1
  165. package/dist/collection/components/c-menu/c-menu.js +273 -273
  166. package/dist/collection/components/c-menu/c-menu.js.map +1 -1
  167. package/dist/collection/components/c-menu/test/c-menu.visual.js +29 -29
  168. package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -1
  169. package/dist/collection/components/c-menu-items/c-menu-items.js +407 -407
  170. package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -1
  171. package/dist/collection/components/c-message/c-message.js +149 -149
  172. package/dist/collection/components/c-message/c-message.js.map +1 -1
  173. package/dist/collection/components/c-modal/c-modal.js +236 -236
  174. package/dist/collection/components/c-modal/c-modal.js.map +1 -1
  175. package/dist/collection/components/c-navigation-button/c-navigation-button.js +15 -15
  176. package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -1
  177. package/dist/collection/components/c-option/c-option.js +95 -95
  178. package/dist/collection/components/c-option/c-option.js.map +1 -1
  179. package/dist/collection/components/c-option-value/c-option-value.js +15 -15
  180. package/dist/collection/components/c-option-value/c-option-value.js.map +1 -1
  181. package/dist/collection/components/c-otp-input/c-otp-input.js +339 -339
  182. package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
  183. package/dist/collection/components/c-page/c-page.js +52 -52
  184. package/dist/collection/components/c-page/c-page.js.map +1 -1
  185. package/dist/collection/components/c-pagination/c-pagination.js +342 -342
  186. package/dist/collection/components/c-pagination/c-pagination.js.map +1 -1
  187. package/dist/collection/components/c-pagination/test/c-pagination.visual.js +32 -32
  188. package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -1
  189. package/dist/collection/components/c-progress-bar/c-progress-bar.js +148 -148
  190. package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -1
  191. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +12 -12
  192. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -1
  193. package/dist/collection/components/c-radio/c-radio.js +77 -77
  194. package/dist/collection/components/c-radio/c-radio.js.map +1 -1
  195. package/dist/collection/components/c-radio-group/c-radio-group.js +370 -370
  196. package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
  197. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +12 -12
  198. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -1
  199. package/dist/collection/components/c-radio-group/test/items.js +3 -3
  200. package/dist/collection/components/c-radio-group/test/items.js.map +1 -1
  201. package/dist/collection/components/c-ripple/c-ripple.js +89 -86
  202. package/dist/collection/components/c-ripple/c-ripple.js.map +1 -1
  203. package/dist/collection/components/c-row/c-row.js +116 -116
  204. package/dist/collection/components/c-row/c-row.js.map +1 -1
  205. package/dist/collection/components/c-select/c-select.js +747 -740
  206. package/dist/collection/components/c-select/c-select.js.map +1 -1
  207. package/dist/collection/components/c-select/test/c-select.visual.js +26 -26
  208. package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -1
  209. package/dist/collection/components/c-select/test/items.js +7 -7
  210. package/dist/collection/components/c-select/test/items.js.map +1 -1
  211. package/dist/collection/components/c-side-navigation/c-side-navigation.js +141 -141
  212. package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
  213. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +10 -10
  214. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -1
  215. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +223 -223
  216. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -1
  217. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +15 -15
  218. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -1
  219. package/dist/collection/components/c-slider/c-slider.js +375 -375
  220. package/dist/collection/components/c-slider/c-slider.js.map +1 -1
  221. package/dist/collection/components/c-spacer/c-spacer.js +15 -15
  222. package/dist/collection/components/c-spacer/c-spacer.js.map +1 -1
  223. package/dist/collection/components/c-spinner/c-spinner.js +88 -88
  224. package/dist/collection/components/c-spinner/c-spinner.js.map +1 -1
  225. package/dist/collection/components/c-status/c-status.js +40 -40
  226. package/dist/collection/components/c-status/c-status.js.map +1 -1
  227. package/dist/collection/components/c-status/test/c-status.visual.js +4 -4
  228. package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -1
  229. package/dist/collection/components/c-step/c-step.js +69 -69
  230. package/dist/collection/components/c-step/c-step.js.map +1 -1
  231. package/dist/collection/components/c-steps/c-steps.js +117 -117
  232. package/dist/collection/components/c-steps/c-steps.js.map +1 -1
  233. package/dist/collection/components/c-steps/test/c-steps.visual.js +11 -11
  234. package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -1
  235. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +135 -135
  236. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -1
  237. package/dist/collection/components/c-swiper/c-swiper.js +205 -205
  238. package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
  239. package/dist/collection/components/c-swiper/test/c-swiper.visual.js +14 -14
  240. package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -1
  241. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +203 -203
  242. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
  243. package/dist/collection/components/c-switch/c-switch.js +214 -204
  244. package/dist/collection/components/c-switch/c-switch.js.map +1 -1
  245. package/dist/collection/components/c-switch/test/c-switch.visual.js +14 -14
  246. package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -1
  247. package/dist/collection/components/c-tab/c-tab.js +224 -224
  248. package/dist/collection/components/c-tab/c-tab.js.map +1 -1
  249. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +263 -263
  250. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
  251. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +31 -31
  252. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -1
  253. package/dist/collection/components/c-tab-item/c-tab-item.js +96 -96
  254. package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -1
  255. package/dist/collection/components/c-tab-items/c-tab-items.js +134 -134
  256. package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -1
  257. package/dist/collection/components/c-table/c-table.js +84 -84
  258. package/dist/collection/components/c-table/c-table.js.map +1 -1
  259. package/dist/collection/components/c-tabs/c-tabs.js +576 -576
  260. package/dist/collection/components/c-tabs/c-tabs.js.map +1 -1
  261. package/dist/collection/components/c-tabs/test/c-tabs.visual.js +8 -8
  262. package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -1
  263. package/dist/collection/components/c-tag/c-tag.js +189 -189
  264. package/dist/collection/components/c-tag/c-tag.js.map +1 -1
  265. package/dist/collection/components/c-tag/test/c-tag.visual.js +12 -12
  266. package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -1
  267. package/dist/collection/components/c-tags/c-tags.js +48 -48
  268. package/dist/collection/components/c-tags/c-tags.js.map +1 -1
  269. package/dist/collection/components/c-text-field/c-text-field.js +609 -609
  270. package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
  271. package/dist/collection/components/c-text-field/test/c-text-field.visual.js +27 -27
  272. package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -1
  273. package/dist/collection/components/c-toast/c-toast.js +138 -138
  274. package/dist/collection/components/c-toast/c-toast.js.map +1 -1
  275. package/dist/collection/components/c-toasts/c-toasts.js +185 -183
  276. package/dist/collection/components/c-toasts/c-toasts.js.map +1 -1
  277. package/dist/collection/components/c-toasts/test/c-toasts.visual.js +21 -21
  278. package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -1
  279. package/dist/collection/components/c-toolbar/c-toolbar.js +15 -15
  280. package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -1
  281. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +4 -4
  282. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -1
  283. package/dist/collection/types/index.js +10 -10
  284. package/dist/collection/types/index.js.map +1 -1
  285. package/dist/collection/utils/getScrollParent.js +19 -19
  286. package/dist/collection/utils/getScrollParent.js.map +1 -1
  287. package/dist/collection/utils/test/takeScreenshot.js +8 -8
  288. package/dist/collection/utils/test/takeScreenshot.js.map +1 -1
  289. package/dist/components/c-accordion-item.d.ts +2 -2
  290. package/dist/components/c-accordion-item.js +137 -136
  291. package/dist/components/c-accordion-item.js.map +1 -1
  292. package/dist/components/c-accordion.d.ts +2 -2
  293. package/dist/components/c-accordion.js +74 -73
  294. package/dist/components/c-accordion.js.map +1 -1
  295. package/dist/components/c-alert.d.ts +2 -2
  296. package/dist/components/c-alert.js +34 -33
  297. package/dist/components/c-alert.js.map +1 -1
  298. package/dist/components/c-autocomplete.d.ts +2 -2
  299. package/dist/components/c-autocomplete.js +343 -342
  300. package/dist/components/c-autocomplete.js.map +1 -1
  301. package/dist/components/c-badge.d.ts +2 -2
  302. package/dist/components/c-badge.js +1 -1
  303. package/dist/components/c-button.d.ts +2 -2
  304. package/dist/components/c-button.js +176 -175
  305. package/dist/components/c-button.js.map +1 -1
  306. package/dist/components/c-card-actions.d.ts +2 -2
  307. package/dist/components/c-card-actions.js +1 -1
  308. package/dist/components/c-card-content.d.ts +2 -2
  309. package/dist/components/c-card-content.js +23 -22
  310. package/dist/components/c-card-content.js.map +1 -1
  311. package/dist/components/c-card-title.d.ts +2 -2
  312. package/dist/components/c-card-title.js +51 -50
  313. package/dist/components/c-card-title.js.map +1 -1
  314. package/dist/components/c-card.d.ts +2 -2
  315. package/dist/components/c-card.js +103 -102
  316. package/dist/components/c-card.js.map +1 -1
  317. package/dist/components/c-checkbox.d.ts +2 -2
  318. package/dist/components/c-checkbox.js +1 -1
  319. package/dist/components/c-csc-logo.d.ts +2 -2
  320. package/dist/components/c-csc-logo.js +27 -26
  321. package/dist/components/c-csc-logo.js.map +1 -1
  322. package/dist/components/c-data-table.d.ts +2 -2
  323. package/dist/components/c-data-table.js +799 -798
  324. package/dist/components/c-data-table.js.map +1 -1
  325. package/dist/components/c-dropdown.d.ts +2 -2
  326. package/dist/components/c-dropdown.js +1 -1
  327. package/dist/components/c-icon-button.d.ts +2 -2
  328. package/dist/components/c-icon-button.js +1 -1
  329. package/dist/components/c-icon.d.ts +2 -2
  330. package/dist/components/c-icon.js +1 -1
  331. package/dist/components/c-input.d.ts +2 -2
  332. package/dist/components/c-input.js +1 -1
  333. package/dist/components/c-link.d.ts +2 -2
  334. package/dist/components/c-link.js +38 -37
  335. package/dist/components/c-link.js.map +1 -1
  336. package/dist/components/c-list-item-title.d.ts +2 -2
  337. package/dist/components/c-list-item-title.js +30 -29
  338. package/dist/components/c-list-item-title.js.map +1 -1
  339. package/dist/components/c-list-item.d.ts +2 -2
  340. package/dist/components/c-list-item.js +100 -99
  341. package/dist/components/c-list-item.js.map +1 -1
  342. package/dist/components/c-list.d.ts +2 -2
  343. package/dist/components/c-list.js +50 -49
  344. package/dist/components/c-list.js.map +1 -1
  345. package/dist/components/c-loader.d.ts +2 -2
  346. package/dist/components/c-loader.js +1 -1
  347. package/dist/components/c-login-button.d.ts +2 -2
  348. package/dist/components/c-login-button.js +31 -30
  349. package/dist/components/c-login-button.js.map +1 -1
  350. package/dist/components/c-login-buttons.d.ts +2 -2
  351. package/dist/components/c-login-buttons.js +23 -22
  352. package/dist/components/c-login-buttons.js.map +1 -1
  353. package/dist/components/c-login-card-actions.d.ts +2 -2
  354. package/dist/components/c-login-card-actions.js +32 -32
  355. package/dist/components/c-login-card-actions.js.map +1 -1
  356. package/dist/components/c-login-card-content.d.ts +2 -2
  357. package/dist/components/c-login-card-content.js +23 -22
  358. package/dist/components/c-login-card-content.js.map +1 -1
  359. package/dist/components/c-login-card-title.d.ts +2 -2
  360. package/dist/components/c-login-card-title.js +23 -22
  361. package/dist/components/c-login-card-title.js.map +1 -1
  362. package/dist/components/c-login-card.d.ts +2 -2
  363. package/dist/components/c-login-card.js +75 -74
  364. package/dist/components/c-login-card.js.map +1 -1
  365. package/dist/components/c-main.d.ts +2 -2
  366. package/dist/components/c-main.js +26 -25
  367. package/dist/components/c-main.js.map +1 -1
  368. package/dist/components/c-menu-items.d.ts +2 -2
  369. package/dist/components/c-menu-items.js +1 -1
  370. package/dist/components/c-menu.d.ts +2 -2
  371. package/dist/components/c-menu.js +1 -1
  372. package/dist/components/c-message.d.ts +2 -2
  373. package/dist/components/c-message.js +1 -1
  374. package/dist/components/c-modal.d.ts +2 -2
  375. package/dist/components/c-modal.js +133 -132
  376. package/dist/components/c-modal.js.map +1 -1
  377. package/dist/components/c-navigation-button.d.ts +2 -2
  378. package/dist/components/c-navigation-button.js +54 -53
  379. package/dist/components/c-navigation-button.js.map +1 -1
  380. package/dist/components/c-option-value.d.ts +2 -2
  381. package/dist/components/c-option-value.js +23 -22
  382. package/dist/components/c-option-value.js.map +1 -1
  383. package/dist/components/c-option.d.ts +2 -2
  384. package/dist/components/c-option.js +32 -31
  385. package/dist/components/c-option.js.map +1 -1
  386. package/dist/components/c-otp-input.d.ts +2 -2
  387. package/dist/components/c-otp-input.js +187 -186
  388. package/dist/components/c-otp-input.js.map +1 -1
  389. package/dist/components/c-page.d.ts +2 -2
  390. package/dist/components/c-page.js +38 -37
  391. package/dist/components/c-page.js.map +1 -1
  392. package/dist/components/c-pagination.d.ts +2 -2
  393. package/dist/components/c-pagination.js +1 -1
  394. package/dist/components/c-progress-bar.d.ts +2 -2
  395. package/dist/components/c-progress-bar.js +66 -65
  396. package/dist/components/c-progress-bar.js.map +1 -1
  397. package/dist/components/c-radio-group.d.ts +2 -2
  398. package/dist/components/c-radio-group.js +141 -140
  399. package/dist/components/c-radio-group.js.map +1 -1
  400. package/dist/components/c-radio.d.ts +2 -2
  401. package/dist/components/c-radio.js +30 -29
  402. package/dist/components/c-radio.js.map +1 -1
  403. package/dist/components/c-ripple.d.ts +2 -2
  404. package/dist/components/c-ripple.js +1 -1
  405. package/dist/components/c-row.d.ts +2 -2
  406. package/dist/components/c-row.js +42 -41
  407. package/dist/components/c-row.js.map +1 -1
  408. package/dist/components/c-select.d.ts +2 -2
  409. package/dist/components/c-select.js +392 -384
  410. package/dist/components/c-select.js.map +1 -1
  411. package/dist/components/c-side-navigation-item.d.ts +2 -2
  412. package/dist/components/c-side-navigation-item.js +145 -144
  413. package/dist/components/c-side-navigation-item.js.map +1 -1
  414. package/dist/components/c-side-navigation-title.d.ts +2 -2
  415. package/dist/components/c-side-navigation-title.js +23 -22
  416. package/dist/components/c-side-navigation-title.js.map +1 -1
  417. package/dist/components/c-side-navigation.d.ts +2 -2
  418. package/dist/components/c-side-navigation.js +120 -119
  419. package/dist/components/c-side-navigation.js.map +1 -1
  420. package/dist/components/c-slider.d.ts +2 -2
  421. package/dist/components/c-slider.js +121 -120
  422. package/dist/components/c-slider.js.map +1 -1
  423. package/dist/components/c-spacer.d.ts +2 -2
  424. package/dist/components/c-spacer.js +1 -1
  425. package/dist/components/c-spinner.d.ts +2 -2
  426. package/dist/components/c-spinner.js +1 -1
  427. package/dist/components/c-status.d.ts +2 -2
  428. package/dist/components/c-status.js +27 -26
  429. package/dist/components/c-status.js.map +1 -1
  430. package/dist/components/c-step.d.ts +2 -2
  431. package/dist/components/c-step.js +32 -31
  432. package/dist/components/c-step.js.map +1 -1
  433. package/dist/components/c-steps.d.ts +2 -2
  434. package/dist/components/c-steps.js +82 -81
  435. package/dist/components/c-steps.js.map +1 -1
  436. package/dist/components/c-sub-navigation-item.d.ts +2 -2
  437. package/dist/components/c-sub-navigation-item.js +68 -67
  438. package/dist/components/c-sub-navigation-item.js.map +1 -1
  439. package/dist/components/c-swiper-tab.d.ts +2 -2
  440. package/dist/components/c-swiper-tab.js +63 -62
  441. package/dist/components/c-swiper-tab.js.map +1 -1
  442. package/dist/components/c-swiper.d.ts +2 -2
  443. package/dist/components/c-swiper.js +164 -163
  444. package/dist/components/c-swiper.js.map +1 -1
  445. package/dist/components/c-switch.d.ts +2 -2
  446. package/dist/components/c-switch.js +77 -67
  447. package/dist/components/c-switch.js.map +1 -1
  448. package/dist/components/c-tab-buttons.d.ts +2 -2
  449. package/dist/components/c-tab-buttons.js +140 -139
  450. package/dist/components/c-tab-buttons.js.map +1 -1
  451. package/dist/components/c-tab-item.d.ts +2 -2
  452. package/dist/components/c-tab-item.js +46 -45
  453. package/dist/components/c-tab-item.js.map +1 -1
  454. package/dist/components/c-tab-items.d.ts +2 -2
  455. package/dist/components/c-tab-items.js +87 -86
  456. package/dist/components/c-tab-items.js.map +1 -1
  457. package/dist/components/c-tab.d.ts +2 -2
  458. package/dist/components/c-tab.js +73 -72
  459. package/dist/components/c-tab.js.map +1 -1
  460. package/dist/components/c-table.d.ts +2 -2
  461. package/dist/components/c-table.js +53 -52
  462. package/dist/components/c-table.js.map +1 -1
  463. package/dist/components/c-tabs.d.ts +2 -2
  464. package/dist/components/c-tabs.js +452 -451
  465. package/dist/components/c-tabs.js.map +1 -1
  466. package/dist/components/c-tag.d.ts +2 -2
  467. package/dist/components/c-tag.js +87 -86
  468. package/dist/components/c-tag.js.map +1 -1
  469. package/dist/components/c-tags.d.ts +2 -2
  470. package/dist/components/c-tags.js +34 -33
  471. package/dist/components/c-tags.js.map +1 -1
  472. package/dist/components/c-text-field.d.ts +2 -2
  473. package/dist/components/c-text-field.js +184 -183
  474. package/dist/components/c-text-field.js.map +1 -1
  475. package/dist/components/c-toast.d.ts +2 -2
  476. package/dist/components/c-toast.js +1 -1
  477. package/dist/components/c-toasts.d.ts +2 -2
  478. package/dist/components/c-toasts.js +117 -97
  479. package/dist/components/c-toasts.js.map +1 -1
  480. package/dist/components/c-toolbar.d.ts +2 -2
  481. package/dist/components/c-toolbar.js +23 -22
  482. package/dist/components/c-toolbar.js.map +1 -1
  483. package/dist/components/index.d.ts +143 -0
  484. package/dist/components/index.js +71 -2
  485. package/dist/components/index.js.map +1 -1
  486. package/dist/components/p-07477d1d.js +238 -0
  487. package/dist/components/{c-menu-items2.js.map → p-07477d1d.js.map} +1 -1
  488. package/dist/components/p-14a3bcd3.js +295 -0
  489. package/dist/components/p-14a3bcd3.js.map +1 -0
  490. package/dist/components/p-29be82c5.js +120 -0
  491. package/dist/components/p-29be82c5.js.map +1 -0
  492. package/dist/components/p-2fbcb4e1.js +1518 -0
  493. package/dist/components/p-2fbcb4e1.js.map +1 -0
  494. package/dist/components/{mdi.js → p-3ea8acb0.js} +2 -2
  495. package/dist/components/p-3ea8acb0.js.map +1 -0
  496. package/dist/components/{c-icon-button2.js → p-59f6f0d8.js} +87 -86
  497. package/dist/components/p-59f6f0d8.js.map +1 -0
  498. package/dist/components/p-6e1a2888.js +33 -0
  499. package/dist/components/p-6e1a2888.js.map +1 -0
  500. package/dist/components/p-7f5a7176.js +50 -0
  501. package/dist/components/p-7f5a7176.js.map +1 -0
  502. package/dist/components/p-8068bc3d.js +47 -0
  503. package/dist/components/p-8068bc3d.js.map +1 -0
  504. package/dist/components/p-aa75dd47.js +293 -0
  505. package/dist/components/p-aa75dd47.js.map +1 -0
  506. package/dist/components/p-c1d56d6b.js +43 -0
  507. package/dist/components/p-c1d56d6b.js.map +1 -0
  508. package/dist/components/p-c9e58781.js +89 -0
  509. package/dist/components/p-c9e58781.js.map +1 -0
  510. package/dist/components/p-cdf22a0b.js +69 -0
  511. package/dist/components/p-cdf22a0b.js.map +1 -0
  512. package/dist/components/p-d3b88201.js +354 -0
  513. package/dist/components/p-d3b88201.js.map +1 -0
  514. package/dist/components/p-e6f11335.js +186 -0
  515. package/dist/components/p-e6f11335.js.map +1 -0
  516. package/dist/components/p-f07ce1ae.js +64 -0
  517. package/dist/components/p-f07ce1ae.js.map +1 -0
  518. package/dist/components/p-f4b8b4e1.js +94 -0
  519. package/dist/components/p-f4b8b4e1.js.map +1 -0
  520. package/dist/components/{c-badge2.js → p-f932f64a.js} +24 -23
  521. package/dist/components/p-f932f64a.js.map +1 -0
  522. package/dist/csc-ui/csc-ui.esm.js +1 -1
  523. package/dist/csc-ui/csc-ui.esm.js.map +1 -1
  524. package/dist/csc-ui/index.esm.js +1 -1
  525. package/dist/csc-ui/index.esm.js.map +1 -1
  526. package/dist/csc-ui/p-020643f8.entry.js +2 -0
  527. package/dist/csc-ui/p-020643f8.entry.js.map +1 -0
  528. package/dist/csc-ui/p-06e13288.entry.js +2 -0
  529. package/dist/csc-ui/p-06e13288.entry.js.map +1 -0
  530. package/dist/csc-ui/p-10ef7ca7.entry.js +2 -0
  531. package/dist/csc-ui/p-10ef7ca7.entry.js.map +1 -0
  532. package/dist/csc-ui/{p-ce88995f.entry.js → p-1eae6514.entry.js} +2 -2
  533. package/dist/csc-ui/p-1eae6514.entry.js.map +1 -0
  534. package/dist/csc-ui/p-26526434.entry.js +2 -0
  535. package/dist/csc-ui/p-26526434.entry.js.map +1 -0
  536. package/dist/csc-ui/p-307f3fbc.entry.js +2 -0
  537. package/dist/csc-ui/p-307f3fbc.entry.js.map +1 -0
  538. package/dist/csc-ui/p-32fa684b.entry.js +2 -0
  539. package/dist/csc-ui/p-32fa684b.entry.js.map +1 -0
  540. package/dist/csc-ui/p-3cade358.entry.js +2 -0
  541. package/dist/csc-ui/p-3cade358.entry.js.map +1 -0
  542. package/dist/csc-ui/p-47f76af6.entry.js +2 -0
  543. package/dist/csc-ui/p-47f76af6.entry.js.map +1 -0
  544. package/dist/csc-ui/p-4a1cf8bf.entry.js +2 -0
  545. package/dist/csc-ui/p-4a1cf8bf.entry.js.map +1 -0
  546. package/dist/csc-ui/{p-231bc97b.entry.js → p-68b100e9.entry.js} +2 -2
  547. package/dist/csc-ui/p-68b100e9.entry.js.map +1 -0
  548. package/dist/csc-ui/{p-aa307b78.entry.js → p-6ec4e25e.entry.js} +2 -2
  549. package/dist/csc-ui/p-6ec4e25e.entry.js.map +1 -0
  550. package/dist/csc-ui/{p-9dc5b5ac.entry.js → p-752f983d.entry.js} +2 -2
  551. package/dist/csc-ui/p-752f983d.entry.js.map +1 -0
  552. package/dist/csc-ui/{p-2a104276.entry.js → p-75ef652d.entry.js} +2 -2
  553. package/dist/csc-ui/p-75ef652d.entry.js.map +1 -0
  554. package/dist/csc-ui/p-7e0e5d26.entry.js +2 -0
  555. package/dist/csc-ui/p-7e0e5d26.entry.js.map +1 -0
  556. package/dist/csc-ui/p-8315aa49.entry.js +2 -0
  557. package/dist/csc-ui/p-8315aa49.entry.js.map +1 -0
  558. package/dist/csc-ui/p-87b41fa4.entry.js +2 -0
  559. package/dist/csc-ui/p-87b41fa4.entry.js.map +1 -0
  560. package/dist/csc-ui/{p-fafac729.js → p-8f729e27.js} +1 -1
  561. package/dist/csc-ui/{p-fafac729.js.map → p-8f729e27.js.map} +1 -1
  562. package/dist/csc-ui/p-8fe7a288.entry.js +2 -0
  563. package/dist/csc-ui/p-8fe7a288.entry.js.map +1 -0
  564. package/dist/csc-ui/p-900e4f04.entry.js +2 -0
  565. package/dist/csc-ui/p-900e4f04.entry.js.map +1 -0
  566. package/dist/csc-ui/{p-18a7f4e9.entry.js → p-9ce6cc51.entry.js} +2 -2
  567. package/dist/csc-ui/p-9ce6cc51.entry.js.map +1 -0
  568. package/dist/csc-ui/p-a3e3248c.js +3 -0
  569. package/dist/csc-ui/p-a3e3248c.js.map +1 -0
  570. package/dist/csc-ui/p-a84641e0.entry.js +2 -0
  571. package/dist/csc-ui/p-a84641e0.entry.js.map +1 -0
  572. package/dist/csc-ui/{p-da7c0754.entry.js → p-ac5da8d1.entry.js} +2 -2
  573. package/dist/csc-ui/p-ac5da8d1.entry.js.map +1 -0
  574. package/dist/csc-ui/p-acce6632.entry.js +2 -0
  575. package/dist/csc-ui/p-acce6632.entry.js.map +1 -0
  576. package/dist/csc-ui/{p-52a3f4f8.entry.js → p-af181b9b.entry.js} +2 -2
  577. package/dist/csc-ui/p-af181b9b.entry.js.map +1 -0
  578. package/dist/csc-ui/{p-29b07261.entry.js → p-b09292de.entry.js} +2 -2
  579. package/dist/csc-ui/p-b09292de.entry.js.map +1 -0
  580. package/dist/csc-ui/p-b1ab606b.entry.js +2 -0
  581. package/dist/csc-ui/p-b1ab606b.entry.js.map +1 -0
  582. package/dist/csc-ui/{p-0b41f178.entry.js → p-b543f80e.entry.js} +2 -2
  583. package/dist/csc-ui/p-b543f80e.entry.js.map +1 -0
  584. package/dist/csc-ui/{p-61e0e61f.entry.js → p-bb62b147.entry.js} +2 -2
  585. package/dist/csc-ui/p-bb62b147.entry.js.map +1 -0
  586. package/dist/csc-ui/{p-0394ebc7.entry.js → p-bcb87140.entry.js} +2 -2
  587. package/dist/csc-ui/p-bcb87140.entry.js.map +1 -0
  588. package/dist/csc-ui/p-c222df06.entry.js +2 -0
  589. package/dist/csc-ui/p-c222df06.entry.js.map +1 -0
  590. package/dist/csc-ui/{p-886f0d1d.entry.js → p-c80fa43f.entry.js} +2 -2
  591. package/dist/csc-ui/p-c80fa43f.entry.js.map +1 -0
  592. package/dist/csc-ui/p-d32e42fe.js.map +1 -1
  593. package/dist/csc-ui/p-d67b56d8.entry.js +2 -0
  594. package/dist/csc-ui/p-d67b56d8.entry.js.map +1 -0
  595. package/dist/csc-ui/p-e0e78a0d.entry.js +2 -0
  596. package/dist/csc-ui/p-e0e78a0d.entry.js.map +1 -0
  597. package/dist/csc-ui/p-e1255160.js +2 -0
  598. package/dist/csc-ui/p-e1255160.js.map +1 -0
  599. package/dist/csc-ui/{p-1aeab024.entry.js → p-e2a40b86.entry.js} +2 -2
  600. package/dist/csc-ui/p-e2a40b86.entry.js.map +1 -0
  601. package/dist/csc-ui/p-eafe038d.entry.js +2 -0
  602. package/dist/csc-ui/p-eafe038d.entry.js.map +1 -0
  603. package/dist/csc-ui/{p-0e3cf775.entry.js → p-f164b124.entry.js} +2 -2
  604. package/dist/csc-ui/p-f164b124.entry.js.map +1 -0
  605. package/dist/esm/app-globals-0f993ce5.js +5 -0
  606. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  607. package/dist/esm/c-accordion-item.entry.js +108 -107
  608. package/dist/esm/c-accordion-item.entry.js.map +1 -1
  609. package/dist/esm/c-accordion.entry.js +53 -52
  610. package/dist/esm/c-accordion.entry.js.map +1 -1
  611. package/dist/esm/c-alert.entry.js +17 -16
  612. package/dist/esm/c-alert.entry.js.map +1 -1
  613. package/dist/esm/c-autocomplete_34.entry.js +2438 -2390
  614. package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
  615. package/dist/esm/c-data-table.entry.js +678 -677
  616. package/dist/esm/c-data-table.entry.js.map +1 -1
  617. package/dist/esm/c-link.entry.js +19 -18
  618. package/dist/esm/c-link.entry.js.map +1 -1
  619. package/dist/esm/c-list-item-title.entry.js +14 -13
  620. package/dist/esm/c-list-item-title.entry.js.map +1 -1
  621. package/dist/esm/c-list-item.entry.js +70 -69
  622. package/dist/esm/c-list-item.entry.js.map +1 -1
  623. package/dist/esm/c-list.entry.js +33 -32
  624. package/dist/esm/c-list.entry.js.map +1 -1
  625. package/dist/esm/c-login-button.entry.js +13 -12
  626. package/dist/esm/c-login-button.entry.js.map +1 -1
  627. package/dist/esm/c-login-buttons.entry.js +9 -8
  628. package/dist/esm/c-login-buttons.entry.js.map +1 -1
  629. package/dist/esm/c-login-card-actions.entry.js +9 -9
  630. package/dist/esm/c-login-card-actions.entry.js.map +1 -1
  631. package/dist/esm/c-login-card-content.entry.js +9 -8
  632. package/dist/esm/c-login-card-content.entry.js.map +1 -1
  633. package/dist/esm/c-login-card-title.entry.js +9 -8
  634. package/dist/esm/c-login-card-title.entry.js.map +1 -1
  635. package/dist/esm/c-login-card.entry.js +54 -53
  636. package/dist/esm/c-login-card.entry.js.map +1 -1
  637. package/dist/esm/c-menu_2.entry.js +317 -315
  638. package/dist/esm/c-menu_2.entry.js.map +1 -1
  639. package/dist/esm/c-modal.entry.js +109 -108
  640. package/dist/esm/c-modal.entry.js.map +1 -1
  641. package/dist/esm/c-option-value.entry.js +9 -8
  642. package/dist/esm/c-option-value.entry.js.map +1 -1
  643. package/dist/esm/c-pagination.entry.js +214 -213
  644. package/dist/esm/c-pagination.entry.js.map +1 -1
  645. package/dist/esm/c-progress-bar.entry.js +46 -45
  646. package/dist/esm/c-progress-bar.entry.js.map +1 -1
  647. package/dist/esm/c-row.entry.js +23 -22
  648. package/dist/esm/c-row.entry.js.map +1 -1
  649. package/dist/esm/c-slider.entry.js +87 -86
  650. package/dist/esm/c-slider.entry.js.map +1 -1
  651. package/dist/esm/c-status.entry.js +11 -10
  652. package/dist/esm/c-status.entry.js.map +1 -1
  653. package/dist/esm/c-step.entry.js +15 -14
  654. package/dist/esm/c-step.entry.js.map +1 -1
  655. package/dist/esm/c-steps.entry.js +62 -61
  656. package/dist/esm/c-steps.entry.js.map +1 -1
  657. package/dist/esm/c-swiper-tab.entry.js +35 -34
  658. package/dist/esm/c-swiper-tab.entry.js.map +1 -1
  659. package/dist/esm/c-swiper.entry.js +119 -118
  660. package/dist/esm/c-swiper.entry.js.map +1 -1
  661. package/dist/esm/c-tab-buttons.entry.js +118 -117
  662. package/dist/esm/c-tab-buttons.entry.js.map +1 -1
  663. package/dist/esm/c-tab-item.entry.js +29 -28
  664. package/dist/esm/c-tab-item.entry.js.map +1 -1
  665. package/dist/esm/c-tab-items.entry.js +67 -66
  666. package/dist/esm/c-tab-items.entry.js.map +1 -1
  667. package/dist/esm/c-tab.entry.js +46 -45
  668. package/dist/esm/c-tab.entry.js.map +1 -1
  669. package/dist/esm/c-tabs.entry.js +394 -393
  670. package/dist/esm/c-tabs.entry.js.map +1 -1
  671. package/dist/esm/c-tag.entry.js +34 -33
  672. package/dist/esm/c-tag.entry.js.map +1 -1
  673. package/dist/esm/c-tags.entry.js +18 -17
  674. package/dist/esm/c-tags.entry.js.map +1 -1
  675. package/dist/esm/c-toast.entry.js +60 -59
  676. package/dist/esm/c-toast.entry.js.map +1 -1
  677. package/dist/esm/c-toasts.entry.js +64 -63
  678. package/dist/esm/c-toasts.entry.js.map +1 -1
  679. package/dist/esm/csc-ui.js +14 -12
  680. package/dist/esm/csc-ui.js.map +1 -1
  681. package/dist/esm/index-28ad175b.js +23 -0
  682. package/dist/esm/{index-dfaed2a4.js.map → index-28ad175b.js.map} +1 -1
  683. package/dist/esm/index-5e4179ca.js +1848 -0
  684. package/dist/esm/index-5e4179ca.js.map +1 -0
  685. package/dist/esm/index.js +1 -1
  686. package/dist/esm/loader.js +6 -4
  687. package/dist/esm/loader.js.map +1 -1
  688. package/dist/playwright.config.js +40 -40
  689. package/dist/playwright.config.js.map +1 -1
  690. package/dist/stencil.config.js +48 -33
  691. package/dist/stencil.config.js.map +1 -1
  692. package/dist/types/components/c-accordion/c-accordion.d.ts +15 -15
  693. package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -27
  694. package/dist/types/components/c-alert/c-alert.d.ts +3 -3
  695. package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +60 -60
  696. package/dist/types/components/c-badge/c-badge.d.ts +1 -1
  697. package/dist/types/components/c-button/c-button.d.ts +33 -33
  698. package/dist/types/components/c-card/c-card.d.ts +10 -10
  699. package/dist/types/components/c-card-actions/c-card-actions.d.ts +3 -3
  700. package/dist/types/components/c-card-content/c-card-content.d.ts +1 -1
  701. package/dist/types/components/c-card-title/c-card-title.d.ts +12 -12
  702. package/dist/types/components/c-checkbox/c-checkbox.d.ts +26 -26
  703. package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +2 -2
  704. package/dist/types/components/c-data-table/c-data-table.d.ts +109 -109
  705. package/dist/types/components/c-dropdown/c-dropdown.d.ts +52 -52
  706. package/dist/types/components/c-icon/c-icon.d.ts +7 -7
  707. package/dist/types/components/c-icon-button/c-icon-button.d.ts +16 -16
  708. package/dist/types/components/c-input/c-input.d.ts +60 -60
  709. package/dist/types/components/c-link/c-link.d.ts +5 -5
  710. package/dist/types/components/c-list/c-list.d.ts +6 -6
  711. package/dist/types/components/c-list-item/c-list-item.d.ts +14 -14
  712. package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +2 -2
  713. package/dist/types/components/c-loader/c-loader.d.ts +8 -8
  714. package/dist/types/components/c-login-button/c-login-button.d.ts +4 -4
  715. package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +1 -1
  716. package/dist/types/components/c-login-card/c-login-card.d.ts +16 -16
  717. package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +3 -3
  718. package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +1 -1
  719. package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +1 -1
  720. package/dist/types/components/c-main/c-main.d.ts +2 -2
  721. package/dist/types/components/c-menu/c-menu.d.ts +23 -23
  722. package/dist/types/components/c-menu-items/c-menu-items.d.ts +39 -39
  723. package/dist/types/components/c-message/c-message.d.ts +16 -16
  724. package/dist/types/components/c-modal/c-modal.d.ts +22 -22
  725. package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +1 -1
  726. package/dist/types/components/c-option/c-option.d.ts +5 -5
  727. package/dist/types/components/c-option-value/c-option-value.d.ts +1 -1
  728. package/dist/types/components/c-otp-input/c-otp-input.d.ts +32 -32
  729. package/dist/types/components/c-page/c-page.d.ts +6 -6
  730. package/dist/types/components/c-pagination/c-pagination.d.ts +34 -34
  731. package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +7 -7
  732. package/dist/types/components/c-radio/c-radio.d.ts +4 -4
  733. package/dist/types/components/c-radio-group/c-radio-group.d.ts +27 -27
  734. package/dist/types/components/c-ripple/c-ripple.d.ts +5 -5
  735. package/dist/types/components/c-row/c-row.d.ts +7 -7
  736. package/dist/types/components/c-select/c-select.d.ts +65 -63
  737. package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +13 -13
  738. package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +18 -18
  739. package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +1 -1
  740. package/dist/types/components/c-slider/c-slider.d.ts +29 -29
  741. package/dist/types/components/c-spacer/c-spacer.d.ts +1 -1
  742. package/dist/types/components/c-spinner/c-spinner.d.ts +4 -4
  743. package/dist/types/components/c-status/c-status.d.ts +2 -2
  744. package/dist/types/components/c-step/c-step.d.ts +3 -3
  745. package/dist/types/components/c-steps/c-steps.d.ts +13 -13
  746. package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +8 -8
  747. package/dist/types/components/c-swiper/c-swiper.d.ts +22 -22
  748. package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +13 -13
  749. package/dist/types/components/c-switch/c-switch.d.ts +16 -15
  750. package/dist/types/components/c-tab/c-tab.d.ts +16 -16
  751. package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +20 -20
  752. package/dist/types/components/c-tab-item/c-tab-item.d.ts +9 -9
  753. package/dist/types/components/c-tab-items/c-tab-items.d.ts +16 -16
  754. package/dist/types/components/c-table/c-table.d.ts +11 -11
  755. package/dist/types/components/c-tabs/c-tabs.d.ts +62 -62
  756. package/dist/types/components/c-tag/c-tag.d.ts +10 -10
  757. package/dist/types/components/c-tags/c-tags.d.ts +4 -4
  758. package/dist/types/components/c-text-field/c-text-field.d.ts +47 -47
  759. package/dist/types/components/c-toast/c-toast.d.ts +15 -15
  760. package/dist/types/components/c-toasts/c-toasts.d.ts +14 -14
  761. package/dist/types/components/c-toolbar/c-toolbar.d.ts +1 -1
  762. package/dist/types/components.d.ts +8 -8
  763. package/dist/types/stencil-public-runtime.d.ts +15 -10
  764. package/dist/types/types/index.d.ts +99 -99
  765. package/loader/cdn.js +1 -3
  766. package/loader/index.cjs.js +1 -3
  767. package/loader/index.d.ts +3 -0
  768. package/loader/index.es2017.js +1 -3
  769. package/loader/index.js +1 -3
  770. package/package.json +16 -12
  771. package/vscode-data.json +9 -9
  772. package/dist/cjs/index-72dca436.js +0 -23
  773. package/dist/cjs/index-91ba22ab.js +0 -2603
  774. package/dist/cjs/index-91ba22ab.js.map +0 -1
  775. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +0 -140
  776. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +0 -1
  777. package/dist/collection/components/c-accordion/test/c-accordion.spec.js +0 -72
  778. package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +0 -1
  779. package/dist/collection/components/c-alert/test/c-alert.spec.js +0 -54
  780. package/dist/collection/components/c-alert/test/c-alert.spec.js.map +0 -1
  781. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +0 -35
  782. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +0 -1
  783. package/dist/collection/components/c-badge/test/c-badge.e2e.js +0 -10
  784. package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +0 -1
  785. package/dist/collection/components/c-badge/test/c-badge.spec.js +0 -18
  786. package/dist/collection/components/c-badge/test/c-badge.spec.js.map +0 -1
  787. package/dist/collection/components/c-button/test/c-button.spec.js +0 -207
  788. package/dist/collection/components/c-button/test/c-button.spec.js.map +0 -1
  789. package/dist/collection/components/c-card/test/c-card.e2e.js +0 -17
  790. package/dist/collection/components/c-card/test/c-card.e2e.js.map +0 -1
  791. package/dist/collection/components/c-card/test/c-card.spec.js +0 -142
  792. package/dist/collection/components/c-card/test/c-card.spec.js.map +0 -1
  793. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +0 -115
  794. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +0 -1
  795. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +0 -60
  796. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +0 -1
  797. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +0 -40
  798. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +0 -1
  799. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +0 -125
  800. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +0 -1
  801. package/dist/collection/components/c-data-table/test/c-data-table.spec.js +0 -107
  802. package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +0 -1
  803. package/dist/collection/components/c-icon/test/c-icon.spec.js +0 -12
  804. package/dist/collection/components/c-icon/test/c-icon.spec.js.map +0 -1
  805. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +0 -82
  806. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +0 -1
  807. package/dist/collection/components/c-link/test/c-link.spec.js +0 -75
  808. package/dist/collection/components/c-link/test/c-link.spec.js.map +0 -1
  809. package/dist/collection/components/c-loader/test/c-loader.e2e.js +0 -16
  810. package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +0 -1
  811. package/dist/collection/components/c-loader/test/c-loader.spec.js +0 -28
  812. package/dist/collection/components/c-loader/test/c-loader.spec.js.map +0 -1
  813. package/dist/collection/components/c-login-card/test/c-login-card.spec.js +0 -151
  814. package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +0 -1
  815. package/dist/collection/components/c-main/test/c-main.spec.js +0 -19
  816. package/dist/collection/components/c-main/test/c-main.spec.js.map +0 -1
  817. package/dist/collection/components/c-menu/test/c-menu.spec.js +0 -46
  818. package/dist/collection/components/c-menu/test/c-menu.spec.js.map +0 -1
  819. package/dist/collection/components/c-modal/test/c-modal.spec.js +0 -75
  820. package/dist/collection/components/c-modal/test/c-modal.spec.js.map +0 -1
  821. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +0 -10
  822. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +0 -1
  823. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +0 -18
  824. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +0 -1
  825. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +0 -47
  826. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +0 -1
  827. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +0 -54
  828. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +0 -1
  829. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +0 -39
  830. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +0 -1
  831. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +0 -28
  832. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +0 -1
  833. package/dist/collection/components/c-row/test/c-row.spec.js +0 -137
  834. package/dist/collection/components/c-row/test/c-row.spec.js.map +0 -1
  835. package/dist/collection/components/c-select/test/c-select.e2e.js +0 -66
  836. package/dist/collection/components/c-select/test/c-select.e2e.js.map +0 -1
  837. package/dist/collection/components/c-select/test/c-select.spec.js +0 -38
  838. package/dist/collection/components/c-select/test/c-select.spec.js.map +0 -1
  839. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +0 -21
  840. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +0 -1
  841. package/dist/collection/components/c-spacer/test/c-spacer.spec.js +0 -12
  842. package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +0 -1
  843. package/dist/collection/components/c-status/test/c-status.spec.js +0 -40
  844. package/dist/collection/components/c-status/test/c-status.spec.js.map +0 -1
  845. package/dist/collection/components/c-steps/test/c-steps.e2e.js +0 -35
  846. package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +0 -1
  847. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +0 -83
  848. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +0 -1
  849. package/dist/collection/components/c-switch/test/c-switch.e2e.js +0 -51
  850. package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +0 -1
  851. package/dist/collection/components/c-switch/test/c-switch.spec.js +0 -40
  852. package/dist/collection/components/c-switch/test/c-switch.spec.js.map +0 -1
  853. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +0 -91
  854. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +0 -1
  855. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +0 -42
  856. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +0 -1
  857. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +0 -74
  858. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +0 -1
  859. package/dist/collection/components/c-tabs/test/c-tabs.spec.js +0 -85
  860. package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +0 -1
  861. package/dist/collection/components/c-tag/test/c-tag.spec.js +0 -50
  862. package/dist/collection/components/c-tag/test/c-tag.spec.js.map +0 -1
  863. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +0 -12
  864. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +0 -1
  865. package/dist/collection/components/c-text-field/test/c-text-field.spec.js +0 -33
  866. package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +0 -1
  867. package/dist/collection/components/c-toasts/test/c-toasts.spec.js +0 -61
  868. package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +0 -1
  869. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +0 -12
  870. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +0 -1
  871. package/dist/collection/dist/styles/.gitkeep +0 -0
  872. package/dist/components/c-badge2.js.map +0 -1
  873. package/dist/components/c-card-actions2.js +0 -42
  874. package/dist/components/c-card-actions2.js.map +0 -1
  875. package/dist/components/c-checkbox2.js +0 -119
  876. package/dist/components/c-checkbox2.js.map +0 -1
  877. package/dist/components/c-dropdown2.js +0 -353
  878. package/dist/components/c-dropdown2.js.map +0 -1
  879. package/dist/components/c-icon-button2.js.map +0 -1
  880. package/dist/components/c-icon2.js +0 -46
  881. package/dist/components/c-icon2.js.map +0 -1
  882. package/dist/components/c-input2.js +0 -292
  883. package/dist/components/c-input2.js.map +0 -1
  884. package/dist/components/c-loader2.js +0 -63
  885. package/dist/components/c-loader2.js.map +0 -1
  886. package/dist/components/c-menu-items2.js +0 -237
  887. package/dist/components/c-menu2.js +0 -185
  888. package/dist/components/c-menu2.js.map +0 -1
  889. package/dist/components/c-message2.js +0 -88
  890. package/dist/components/c-message2.js.map +0 -1
  891. package/dist/components/c-pagination2.js +0 -294
  892. package/dist/components/c-pagination2.js.map +0 -1
  893. package/dist/components/c-ripple2.js +0 -68
  894. package/dist/components/c-ripple2.js.map +0 -1
  895. package/dist/components/c-spacer2.js +0 -32
  896. package/dist/components/c-spacer2.js.map +0 -1
  897. package/dist/components/c-spinner2.js +0 -49
  898. package/dist/components/c-spinner2.js.map +0 -1
  899. package/dist/components/c-toast2.js +0 -93
  900. package/dist/components/c-toast2.js.map +0 -1
  901. package/dist/components/index2.js +0 -23
  902. package/dist/components/index2.js.map +0 -1
  903. package/dist/components/mdi.js.map +0 -1
  904. package/dist/csc-ui/dist/styles/.gitkeep +0 -0
  905. package/dist/csc-ui/p-0394ebc7.entry.js.map +0 -1
  906. package/dist/csc-ui/p-0ad7a08a.entry.js +0 -2
  907. package/dist/csc-ui/p-0ad7a08a.entry.js.map +0 -1
  908. package/dist/csc-ui/p-0b41f178.entry.js.map +0 -1
  909. package/dist/csc-ui/p-0e3cf775.entry.js.map +0 -1
  910. package/dist/csc-ui/p-18a7f4e9.entry.js.map +0 -1
  911. package/dist/csc-ui/p-1aeab024.entry.js.map +0 -1
  912. package/dist/csc-ui/p-231bc97b.entry.js.map +0 -1
  913. package/dist/csc-ui/p-29b07261.entry.js.map +0 -1
  914. package/dist/csc-ui/p-2a104276.entry.js.map +0 -1
  915. package/dist/csc-ui/p-33c354c4.entry.js +0 -2
  916. package/dist/csc-ui/p-33c354c4.entry.js.map +0 -1
  917. package/dist/csc-ui/p-42587422.entry.js +0 -2
  918. package/dist/csc-ui/p-42587422.entry.js.map +0 -1
  919. package/dist/csc-ui/p-4dbc9e96.entry.js +0 -2
  920. package/dist/csc-ui/p-4dbc9e96.entry.js.map +0 -1
  921. package/dist/csc-ui/p-4f568e1f.entry.js +0 -2
  922. package/dist/csc-ui/p-4f568e1f.entry.js.map +0 -1
  923. package/dist/csc-ui/p-52a3f4f8.entry.js.map +0 -1
  924. package/dist/csc-ui/p-54d44ab9.entry.js +0 -2
  925. package/dist/csc-ui/p-54d44ab9.entry.js.map +0 -1
  926. package/dist/csc-ui/p-565ec8e4.js +0 -3
  927. package/dist/csc-ui/p-565ec8e4.js.map +0 -1
  928. package/dist/csc-ui/p-5dd84926.entry.js +0 -2
  929. package/dist/csc-ui/p-5dd84926.entry.js.map +0 -1
  930. package/dist/csc-ui/p-61e0e61f.entry.js.map +0 -1
  931. package/dist/csc-ui/p-7a7da729.entry.js +0 -2
  932. package/dist/csc-ui/p-7a7da729.entry.js.map +0 -1
  933. package/dist/csc-ui/p-80cdd280.entry.js +0 -2
  934. package/dist/csc-ui/p-80cdd280.entry.js.map +0 -1
  935. package/dist/csc-ui/p-886f0d1d.entry.js.map +0 -1
  936. package/dist/csc-ui/p-908b21bf.entry.js +0 -2
  937. package/dist/csc-ui/p-908b21bf.entry.js.map +0 -1
  938. package/dist/csc-ui/p-9dc5b5ac.entry.js.map +0 -1
  939. package/dist/csc-ui/p-a33ca657.entry.js +0 -2
  940. package/dist/csc-ui/p-a33ca657.entry.js.map +0 -1
  941. package/dist/csc-ui/p-aa307b78.entry.js.map +0 -1
  942. package/dist/csc-ui/p-b8fd106b.entry.js +0 -2
  943. package/dist/csc-ui/p-b8fd106b.entry.js.map +0 -1
  944. package/dist/csc-ui/p-bae44625.entry.js +0 -2
  945. package/dist/csc-ui/p-bae44625.entry.js.map +0 -1
  946. package/dist/csc-ui/p-c9e04eb5.entry.js +0 -2
  947. package/dist/csc-ui/p-c9e04eb5.entry.js.map +0 -1
  948. package/dist/csc-ui/p-cb4bce81.entry.js +0 -2
  949. package/dist/csc-ui/p-cb4bce81.entry.js.map +0 -1
  950. package/dist/csc-ui/p-ce88995f.entry.js.map +0 -1
  951. package/dist/csc-ui/p-da7c0754.entry.js.map +0 -1
  952. package/dist/csc-ui/p-da7d18c9.entry.js +0 -2
  953. package/dist/csc-ui/p-da7d18c9.entry.js.map +0 -1
  954. package/dist/csc-ui/p-e8bd7a76.entry.js +0 -2
  955. package/dist/csc-ui/p-e8bd7a76.entry.js.map +0 -1
  956. package/dist/csc-ui/p-e922c869.entry.js +0 -2
  957. package/dist/csc-ui/p-e922c869.entry.js.map +0 -1
  958. package/dist/csc-ui/p-e9ec927b.entry.js +0 -2
  959. package/dist/csc-ui/p-e9ec927b.entry.js.map +0 -1
  960. package/dist/csc-ui/p-fadae1ab.entry.js +0 -2
  961. package/dist/csc-ui/p-fadae1ab.entry.js.map +0 -1
  962. package/dist/csc-ui/p-fc580f2c.entry.js +0 -2
  963. package/dist/csc-ui/p-fc580f2c.entry.js.map +0 -1
  964. package/dist/esm/index-47956d53.js +0 -2573
  965. package/dist/esm/index-47956d53.js.map +0 -1
  966. package/dist/esm/index-dfaed2a4.js +0 -23
  967. package/dist/esm/polyfills/core-js.js +0 -11
  968. package/dist/esm/polyfills/dom.js +0 -79
  969. package/dist/esm/polyfills/es5-html-element.js +0 -1
  970. package/dist/esm/polyfills/index.js +0 -34
  971. package/dist/esm/polyfills/system.js +0 -6
  972. package/dist/loader/cdn.js +0 -3
  973. package/dist/loader/index.cjs.js +0 -3
  974. package/dist/loader/index.d.ts +0 -21
  975. package/dist/loader/index.es2017.js +0 -3
  976. package/dist/loader/index.js +0 -4
  977. package/dist/loader/package.json +0 -11
  978. package/dist/styles/.gitkeep +0 -0
  979. /package/dist/{styles → components/styles}/css/theme.css +0 -0
  980. /package/dist/{styles → components/styles}/scss/_theme.scss +0 -0
  981. /package/dist/{styles → components/styles}/tailwind/theme.js +0 -0
@@ -0,0 +1,293 @@
1
+ import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-2fbcb4e1.js';
2
+ import { d as defineCustomElement$1 } from './p-c9e58781.js';
3
+
4
+ const cInputCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-input){--_c-input-inactive-color:var(--c-tertiary-600);--_c-input-active-color:var(--c-primary-600);--_c-input-background-color:var(--c-transparent);--_c-input-text-color:var(--c-text-body);--_c-input-placeholder-color:var(--c-tertiary-500);--_c-input-shadow-active-color:var(--_c-input-active-color);--_c-input-shadow-background-color:var(--c-white);--_c-input-shadow-text-color:var(--_c-input-text-color);--_c-input-shadow-placeholder-color:var(--_c-input-placeholder-color);--_c-input-error-color:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-input{--_c-input-border-width:1px;align-items:flex-start;border-radius:4px;display:flex;flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;letter-spacing:normal;max-width:100%;text-align:left}.c-input input,.c-input select,.c-input textarea{background:none;border:0;display:inline-block;font-family:var(--c-font-family);font-size:16px;line-height:1;margin:0;padding:0;vertical-align:middle;white-space:normal}.c-input input,.c-input textarea{box-sizing:content-box;background-color:transparent;border:none;color:var(--_c-input-text-color);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%}.c-input input[type=checkbox],.c-input input[type=radio],.c-input select{box-sizing:border-box}.c-input input[type=search]{appearance:textfield;box-sizing:content-box}.c-input ::-webkit-search-decoration{display:none}.c-input textarea{margin-top:4px;min-height:44px;overflow:auto;padding:8px 12px 8px 0;resize:vertical;vertical-align:top;white-space:pre-wrap}.c-input input{max-height:32px;padding:8px 0}.c-input input:focus,.c-input input:active,.c-input input[aria-expanded=true],.c-input textarea:focus,.c-input textarea:active{outline:none}.c-input .c-input__content{align-items:center;display:flex;width:100%}.c-input .c-input__content slot{display:none}.c-input .c-input__content c-icon-button{aspect-ratio:1;margin-right:-6px}.c-input__control{border-radius:inherit;color:currentColor;display:flex;flex-flow:column wrap;flex-grow:1;gap:8px;height:auto;min-width:0;width:100%;position:relative}.c-input__slot{align-items:stretch;background:transparent;border-radius:inherit;color:inherit;cursor:text;display:flex;min-height:44px;padding:0 12px;position:relative;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:100%}.c-input__field{align-items:center;display:flex;flex:1 1 auto;gap:8px;position:relative}.c-input__field input,.c-input__field textarea{flex:1;outline:0}.c-input__field label{font-size:16px;height:20px;left:0;letter-spacing:normal;line-height:20px;max-width:90%;min-height:8px;overflow:hidden;pointer-events:none;position:absolute;right:auto;text-overflow:ellipsis;top:12px;transform-origin:top left;transform:translateX(var(--_c-input-label-position)) translateY(0) scale(1);transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1) 0.08s;white-space:nowrap}.c-input__field label.active{transform:translateY(-18px) scale(0.75)}.c-input__field label span{color:var(--c-error-600)}.c-input--select input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-input--select .c-input__slot{cursor:pointer}.c-input fieldset{background-color:var(--_c-input-background-color);border-collapse:collapse;border-color:var(--_c-input-inactive-color);border-radius:inherit;border-style:solid;border-width:var(--_c-input-border-width);inset:0;margin:0;padding:0 0 0 8px;pointer-events:none;position:absolute;transition-duration:0.15s;transition-property:color;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1)}.c-input fieldset legend{float:none;line-height:11px;margin-left:-1px;padding:0;text-align:left;transition:width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:0}.c-input fieldset legend.active{width:var(--_c-input-legend-width)}.c-input--shadow .c-input__slot{background-color:var(--_c-input-shadow-background-color);box-shadow:rgba(0, 0, 0, 0.15) 0 5px 15px 0}.c-input--shadow .c-input__slot input,.c-input--shadow .c-input__slot textarea{color:var(--_c-input-shadow-text-color)}.c-input--shadow .c-input__slot:focus-within{outline:2px var(--_c-input-active-color) solid}.c-input--shadow .c-input__slot:focus-within c-icon{--c-icon-color:var(--_c-input-shadow-active-color) !important}.c-input--shadow input::placeholder,.c-input--shadow textarea::placeholder{color:var(--_c-input-shadow-placeholder-color);opacity:1}.c-input--disabled input,.c-input--disabled textarea,.c-input--disabled fieldset,.c-input--disabled label{--_c-input-error-color:var(--c-tertiary-500);color:var(--c-tertiary-500)}.c-input--textarea .c-input__field{margin-right:-12px}.c-input ::placeholder{color:var(--_c-input-placeholder-color);opacity:1}.c-input:focus-within,.c-input--active,.c-input:not(.c-input--disabled):active{--_c-input-border-width:2px;color:var(--_c-input-active-color)}.c-input:focus-within fieldset,.c-input--active fieldset,.c-input:not(.c-input--disabled):active fieldset{border-color:var(--_c-input-active-color)}.c-input:focus-within label,.c-input--active label,.c-input:not(.c-input--disabled):active label{color:var(--_c-input-active-color);transform:translateX(0) translateY(-18px) scale(0.75)}.c-input:focus-within legend,.c-input--active legend,.c-input:not(.c-input--disabled):active legend{width:var(--_c-input-legend-width)}.c-input.active:not(.filled) .c-input-menu__input{position:relative}.c-input.active:not(.filled) .c-input-menu__input::after{display:flex;align-items:center;position:absolute;inset:0;content:attr(data-placeholder);pointer-events:none;color:var(--_c-input-placeholder-color)}.c-input--error{color:var(--c-error-600)}.c-input--error fieldset{border-color:var(--c-error-600) !important}.c-input--error label{color:var(--c-error-600) !important}.c-input--error:focus-within{color:var(--c-error-600)}";
5
+ const CInputStyle0 = cInputCss;
6
+
7
+ const CInput = proxyCustomElement(class CInput extends H {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.changeValue = createEvent(this, "changeValue", 3);
12
+ this.itemClick = createEvent(this, "itemClick", 3);
13
+ this.dropdownClose = createEvent(this, "dropdownClose", 3);
14
+ this._hasBlurred = false;
15
+ this._debounce = null;
16
+ this._observer = new IntersectionObserver((entries, observer) => {
17
+ entries.forEach((entry) => {
18
+ if (entry.isIntersecting) {
19
+ this._calculateElementWidths();
20
+ observer.unobserve(entry.target);
21
+ }
22
+ });
23
+ }, { threshold: 1 });
24
+ this._onBlur = () => {
25
+ setTimeout(() => {
26
+ this.isFocused = false;
27
+ this._hasBlurred = true;
28
+ this._onReset();
29
+ }, 100);
30
+ };
31
+ this._onFocus = (click = true) => {
32
+ var _a, _b;
33
+ if (this.disabled)
34
+ return;
35
+ this.isFocused = true;
36
+ (_a = this.inputField) === null || _a === void 0 ? void 0 : _a.focus();
37
+ if (click) {
38
+ (_b = this.inputField) === null || _b === void 0 ? void 0 : _b.click();
39
+ if (this.variant === 'select') {
40
+ this.itemClick.emit();
41
+ }
42
+ }
43
+ if (this.inputField) {
44
+ this.inputField.placeholder =
45
+ !!this.value || !this.placeholder ? '' : this.placeholder;
46
+ }
47
+ };
48
+ this.active = false;
49
+ this.autofocus = false;
50
+ this.disabled = false;
51
+ this.form = false;
52
+ this.hideDetails = false;
53
+ this.hint = '';
54
+ this.hostId = undefined;
55
+ this.inputId = undefined;
56
+ this.items = undefined;
57
+ this.itemsPerPage = 6;
58
+ this.label = undefined;
59
+ this.max = null;
60
+ this.min = null;
61
+ this.name = undefined;
62
+ this.placeholder = undefined;
63
+ this.readonly = false;
64
+ this.required = false;
65
+ this.rows = 1;
66
+ this.shadow = false;
67
+ this.step = null;
68
+ this.type = undefined;
69
+ this.valid = true;
70
+ this.validate = false;
71
+ this.validateOnBlur = false;
72
+ this.validation = 'Required field';
73
+ this.value = undefined;
74
+ this.variant = 'text';
75
+ this.isFocused = false;
76
+ this.labelWidth = 0;
77
+ this.preSlotWidth = 0;
78
+ this.statusText = '';
79
+ this.currentIndex = null;
80
+ }
81
+ onValidChange() {
82
+ if (this.validateOnBlur && !this._hasBlurred)
83
+ return;
84
+ this._setAriaDescriptionId();
85
+ }
86
+ onValidationMessageChange() {
87
+ this._updateStatusText();
88
+ }
89
+ onValueChange(value) {
90
+ if (!value) {
91
+ this._onReset();
92
+ }
93
+ }
94
+ onPlaceholderChange(placeholder) {
95
+ if (placeholder)
96
+ this._onReset();
97
+ }
98
+ async reset() {
99
+ this._onReset();
100
+ }
101
+ componentDidLoad() {
102
+ var _a, _b, _c, _d;
103
+ if (this.autofocus) {
104
+ setTimeout(() => {
105
+ this._onFocus(false);
106
+ }, 500);
107
+ }
108
+ this._calculateElementWidths();
109
+ this._setAriaDescriptionId();
110
+ if (this.label) {
111
+ this._observer.observe(this._labelRef);
112
+ }
113
+ (_a = this.inputField) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => this._onFocus(false));
114
+ (_b = this.inputField) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', () => this._onBlur());
115
+ (_c = this.inputField) === null || _c === void 0 ? void 0 : _c.addEventListener('keypress', this._preventNonNumericalInput);
116
+ if (this.inputField) {
117
+ this.inputField.placeholder =
118
+ !!this.label || !this.placeholder ? '' : this.placeholder;
119
+ this.inputField.title = (_d = this.label) !== null && _d !== void 0 ? _d : this.placeholder;
120
+ requestAnimationFrame(() => {
121
+ const container = this.inputField.closest('.c-input-menu__input');
122
+ if (!container)
123
+ return;
124
+ container.dataset.placeholder = this.placeholder;
125
+ });
126
+ }
127
+ }
128
+ disconnectedCallback() {
129
+ var _a, _b, _c, _d;
130
+ (_a = this.inputField) === null || _a === void 0 ? void 0 : _a.removeEventListener('focus', () => this._onFocus(false));
131
+ (_b = this.inputField) === null || _b === void 0 ? void 0 : _b.removeEventListener('blur', () => this._onBlur());
132
+ (_c = this.inputField) === null || _c === void 0 ? void 0 : _c.removeEventListener('keypress', this._preventNonNumericalInput);
133
+ this._observer.disconnect();
134
+ (_d = this._dropdownElement) === null || _d === void 0 ? void 0 : _d.remove();
135
+ }
136
+ get isActive() {
137
+ return !!this.value || typeof this.value === 'boolean' || this.isFocused;
138
+ }
139
+ _setAriaDescriptionId() {
140
+ this.inputField.removeAttribute('aria-describedby');
141
+ let type = null;
142
+ if (this.valid && !this.value && this.hint) {
143
+ type = 'hint';
144
+ }
145
+ if (!this.valid) {
146
+ type = 'error';
147
+ }
148
+ if (type) {
149
+ this.inputField.setAttribute('aria-describedby', `${type}-${this.inputId}`);
150
+ }
151
+ }
152
+ _calculateElementWidths() {
153
+ this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;
154
+ this.preSlotWidth = this.inputField.offsetLeft;
155
+ }
156
+ _onReset() {
157
+ if (this.inputField) {
158
+ if (!!this.placeholder &&
159
+ !this.value &&
160
+ (this.active || this.isFocused)) {
161
+ this.inputField.placeholder = this.placeholder;
162
+ return;
163
+ }
164
+ this.inputField.placeholder =
165
+ !this.label && !this.value && !!this.placeholder
166
+ ? this.placeholder
167
+ : '';
168
+ }
169
+ }
170
+ _preventNonNumericalInput(event) {
171
+ if (this.type !== 'number')
172
+ return;
173
+ if (!event.key.match(/^[0-9,\.-]+$/)) {
174
+ event.preventDefault();
175
+ }
176
+ }
177
+ _renderBorders() {
178
+ if (this.shadow)
179
+ return;
180
+ const classes = {
181
+ active: this.isActive || this.active,
182
+ };
183
+ return (h("fieldset", { "aria-hidden": "true" }, h("legend", { class: classes, style: {
184
+ '--_c-input-legend-width': this.labelWidth + 'px',
185
+ } }, h("span", { class: "notranslate" }))));
186
+ }
187
+ _renderLabel() {
188
+ if (!this.label)
189
+ return;
190
+ const classes = {
191
+ active: this.isActive,
192
+ };
193
+ return (h("label", { htmlFor: this.inputId, ref: (el) => (this._labelRef = el), class: classes }, this.label, this.required && h("span", null, "\u00A0*")));
194
+ }
195
+ get inputField() {
196
+ var _a;
197
+ return (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelector('.c-input__input');
198
+ }
199
+ _updateStatusText() {
200
+ if (this._debounce !== null) {
201
+ clearTimeout(this._debounce);
202
+ this._debounce = null;
203
+ }
204
+ this._debounce = window.setTimeout(() => {
205
+ this.statusText = this.valid ? '' : `Error: ${this.validation}`;
206
+ this._debounce = null;
207
+ }, 1400);
208
+ }
209
+ render() {
210
+ const containerClasses = {
211
+ 'c-input': true,
212
+ 'c-input--disabled': this.disabled,
213
+ 'c-input--shadow': this.shadow,
214
+ 'c-input--textarea': this.rows > 1,
215
+ 'c-input--error': !this.valid,
216
+ 'c-input--active': this.isFocused || this.active,
217
+ filled: !!this.value,
218
+ [`c-input--${this.variant}`]: true,
219
+ };
220
+ return (h(Host, { key: '8df4b85dd9057e4d954da4a657c6474aadb743a0', disabled: this.disabled }, h("div", { key: 'cb93dcf7f01f004481eb1a9bed4455cbca19dd4f', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '7bb1b2c4d71754e485f8c57e4be4a0d1e21588ee', class: containerClasses }, h("div", { key: 'f2e61ecc315027879116e7c87231c4b4f65db093', class: "c-input__control" }, h("div", { key: '129cb0aa738383b33996fccb32e62b4377ed8239', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), h("div", { key: '31549a2d3111589e030c594edbef9f5515bd5788', class: "c-input__field", style: {
221
+ '--_c-input-label-position': this.preSlotWidth + 'px',
222
+ } }, h("slot", { key: 'f9b76639f024469385ff536df00ba2641a15e50d', name: "pre" }), this._renderLabel(), h("slot", { key: '585e92fb496018f945fcc024638c05e81805d84f' }))), this.variant === 'select' && h("slot", { key: '3174455400819721c9b56be54dd50ba661725b0d', name: "dropdown" }), !this.hideDetails && (h("c-message", { key: '3584e85a898d7705dbf6658ccd9a598029d870b6', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
223
+ }
224
+ get el() { return this; }
225
+ static get watchers() { return {
226
+ "valid": ["onValidChange"],
227
+ "validation": ["onValidationMessageChange"],
228
+ "value": ["onValueChange"],
229
+ "placeholder": ["onPlaceholderChange"]
230
+ }; }
231
+ static get style() { return CInputStyle0; }
232
+ }, [4, "c-input", {
233
+ "active": [4],
234
+ "autofocus": [4],
235
+ "disabled": [4],
236
+ "form": [4],
237
+ "hideDetails": [4, "hide-details"],
238
+ "hint": [1],
239
+ "hostId": [1, "id"],
240
+ "inputId": [1, "input-id"],
241
+ "items": [16],
242
+ "itemsPerPage": [2, "items-per-page"],
243
+ "label": [1],
244
+ "max": [2],
245
+ "min": [2],
246
+ "name": [1],
247
+ "placeholder": [1],
248
+ "readonly": [4],
249
+ "required": [4],
250
+ "rows": [2],
251
+ "shadow": [4],
252
+ "step": [2],
253
+ "type": [1],
254
+ "valid": [4],
255
+ "validate": [4],
256
+ "validateOnBlur": [4, "validate-on-blur"],
257
+ "validation": [1],
258
+ "value": [8],
259
+ "variant": [1],
260
+ "isFocused": [32],
261
+ "labelWidth": [32],
262
+ "preSlotWidth": [32],
263
+ "statusText": [32],
264
+ "currentIndex": [32],
265
+ "reset": [64]
266
+ }, undefined, {
267
+ "valid": ["onValidChange"],
268
+ "validation": ["onValidationMessageChange"],
269
+ "value": ["onValueChange"],
270
+ "placeholder": ["onPlaceholderChange"]
271
+ }]);
272
+ function defineCustomElement() {
273
+ if (typeof customElements === "undefined") {
274
+ return;
275
+ }
276
+ const components = ["c-input", "c-message"];
277
+ components.forEach(tagName => { switch (tagName) {
278
+ case "c-input":
279
+ if (!customElements.get(tagName)) {
280
+ customElements.define(tagName, CInput);
281
+ }
282
+ break;
283
+ case "c-message":
284
+ if (!customElements.get(tagName)) {
285
+ defineCustomElement$1();
286
+ }
287
+ break;
288
+ } });
289
+ }
290
+
291
+ export { CInput as C, defineCustomElement as d };
292
+
293
+ //# sourceMappingURL=p-aa75dd47.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-aa75dd47.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,+7LAA+7L,CAAC;AACl9L,qBAAe,SAAS;;MCqBX,MAAM;;;;;;;QA+LT,gBAAW,GAAG,KAAK,CAAC;QAIpB,cAAS,GAAG,IAAI,CAAC;QA0FjB,cAAS,GAAG,IAAI,oBAAoB,CAC1C,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EAAE,IAAI,CAAC,UAAU,GAC3B,CACH,CACG,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-input/c-input.scss?tag=c-input","src/components/c-input/c-input.tsx"],"sourcesContent":[":host(c-input) {\n --_c-input-inactive-color: var(--c-tertiary-600);\n --_c-input-active-color: var(--c-primary-600);\n --_c-input-background-color: var(--c-transparent);\n --_c-input-text-color: var(--c-text-body);\n --_c-input-placeholder-color: var(--c-tertiary-500);\n --_c-input-shadow-active-color: var(--_c-input-active-color);\n --_c-input-shadow-background-color: var(--c-white);\n --_c-input-shadow-text-color: var(--_c-input-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-input-placeholder-color);\n\n // private\n --_c-input-error-color: var(--c-error-600);\n}\n\n.visuallyhidden {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.c-input {\n $this: &;\n\n --_c-input-border-width: 1px;\n\n align-items: flex-start;\n border-radius: 4px;\n display: flex;\n flex: 1 1 auto;\n font-family: var(--c-font-family);\n font-size: 16px;\n letter-spacing: normal;\n max-width: 100%;\n text-align: left;\n\n input,\n select,\n textarea {\n background: none;\n border: 0;\n display: inline-block;\n font-family: var(--c-font-family);\n font-size: 16px;\n line-height: 1;\n margin: 0;\n padding: 0;\n vertical-align: middle;\n white-space: normal;\n }\n\n input,\n textarea {\n box-sizing: content-box;\n background-color: transparent;\n border: none;\n color: var(--_c-input-text-color);\n flex: 1 1 auto;\n font-family: var(--c-font-family);\n font-size: 16px;\n line-height: 20px;\n max-width: 100%;\n min-width: 0;\n width: 100%;\n }\n\n input[type=\"checkbox\"],\n input[type=\"radio\"],\n select {\n box-sizing: border-box;\n }\n\n input[type=\"search\"] {\n appearance: textfield;\n box-sizing: content-box;\n }\n\n ::-webkit-search-decoration {\n display: none;\n }\n\n textarea {\n margin-top: 4px;\n min-height: 44px;\n overflow: auto;\n padding: 8px 12px 8px 0;\n resize: vertical;\n vertical-align: top;\n white-space: pre-wrap;\n }\n\n input {\n max-height: 32px;\n padding: 8px 0;\n }\n\n input:focus,\n input:active,\n input[aria-expanded=\"true\"],\n textarea:focus,\n textarea:active {\n outline: none;\n }\n\n .c-input__content {\n align-items: center;\n display: flex;\n width: 100%;\n\n slot {\n display: none;\n }\n\n c-icon-button {\n aspect-ratio: 1;\n margin-right: -6px;\n }\n }\n\n &__control {\n border-radius: inherit;\n color: currentColor;\n display: flex;\n flex-flow: column wrap;\n flex-grow: 1;\n gap: 8px;\n height: auto;\n min-width: 0;\n width: 100%;\n position: relative;\n }\n\n &__slot {\n align-items: stretch;\n background: transparent;\n border-radius: inherit;\n color: inherit;\n cursor: text;\n display: flex;\n min-height: 44px;\n padding: 0 12px;\n position: relative;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: 100%;\n }\n\n &__field {\n align-items: center;\n display: flex;\n flex: 1 1 auto;\n gap: 8px;\n position: relative;\n\n input,\n textarea {\n flex: 1;\n outline: 0;\n }\n\n label {\n font-size: 16px;\n height: 20px;\n left: 0;\n letter-spacing: normal;\n line-height: 20px;\n max-width: 90%;\n min-height: 8px;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n right: auto;\n text-overflow: ellipsis;\n top: 12px;\n transform-origin: top left;\n transform: translateX(var(--_c-input-label-position)) translateY(0)\n scale(1);\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1) 0.08s;\n white-space: nowrap;\n\n &.active {\n transform: translateY(-18px) scale(0.75);\n }\n\n span {\n color: var(--c-error-600);\n }\n }\n }\n\n &--select {\n input {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .c-input__slot {\n cursor: pointer;\n }\n }\n\n fieldset {\n background-color: var(--_c-input-background-color);\n border-collapse: collapse;\n border-color: var(--_c-input-inactive-color);\n border-radius: inherit;\n border-style: solid;\n border-width: var(--_c-input-border-width);\n inset: 0;\n margin: 0;\n padding: 0 0 0 8px;\n pointer-events: none;\n position: absolute;\n transition-duration: 0.15s;\n transition-property: color;\n transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);\n\n legend {\n float: none;\n line-height: 11px;\n margin-left: -1px;\n padding: 0;\n text-align: left;\n transition: width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n width: 0;\n\n &.active {\n width: var(--_c-input-legend-width);\n }\n }\n }\n\n &--shadow {\n #{$this} {\n &__slot {\n background-color: var(--_c-input-shadow-background-color);\n box-shadow: rgba(0, 0, 0, 0.15) 0 5px 15px 0;\n\n input,\n textarea {\n color: var(--_c-input-shadow-text-color);\n }\n\n &:focus-within {\n outline: 2px var(--_c-input-active-color) solid;\n\n c-icon {\n --c-icon-color: var(--_c-input-shadow-active-color) !important;\n }\n }\n }\n }\n\n input::placeholder,\n textarea::placeholder {\n color: var(--_c-input-shadow-placeholder-color);\n opacity: 1;\n }\n }\n\n &--disabled {\n input,\n textarea,\n fieldset,\n label {\n --_c-input-error-color: var(--c-tertiary-500);\n\n color: var(--c-tertiary-500);\n }\n }\n\n &--textarea {\n #{$this} {\n &__field {\n margin-right: -12px;\n }\n }\n }\n\n ::placeholder {\n color: var(--_c-input-placeholder-color);\n opacity: 1;\n }\n\n &:focus-within,\n &--active,\n &:not(.c-input--disabled):active {\n --_c-input-border-width: 2px;\n\n color: var(--_c-input-active-color);\n\n fieldset {\n border-color: var(--_c-input-active-color);\n }\n\n label {\n color: var(--_c-input-active-color);\n transform: translateX(0) translateY(-18px) scale(0.75);\n }\n\n legend {\n width: var(--_c-input-legend-width);\n }\n }\n\n &.active:not(.filled) {\n .c-input-menu__input {\n position: relative;\n\n &::after {\n display: flex;\n align-items: center;\n position: absolute;\n inset: 0;\n content: attr(data-placeholder);\n pointer-events: none;\n color: var(--_c-input-placeholder-color);\n }\n }\n }\n\n &--error {\n color: var(--c-error-600);\n\n fieldset {\n border-color: var(--c-error-600) !important;\n }\n\n label {\n color: var(--c-error-600) !important;\n }\n\n &:focus-within {\n color: var(--c-error-600);\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n Element,\n Watch,\n Method,\n} from '@stencil/core';\nimport { CAutocompleteItem, CSelectItem } from '../../types';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-input',\n styleUrl: 'c-input.scss',\n shadow: false,\n})\nexport class CInput {\n @Element() el!: HTMLCInputElement;\n\n /**\n * Active state\n */\n @Prop() active = false;\n\n /**\n * Auto focus the input\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() autofocus = false;\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Render a hidden input outside the shadow dom\n */\n @Prop() form = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the input element\n */\n @Prop() inputId: string;\n\n /**\n * Items for the dropdown\n */\n @Prop() items: CSelectItem[];\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type: string;\n\n /**\n * Set the validíty of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop() value: string | number | boolean | CSelectItem | CAutocompleteItem;\n\n /**\n * Variant\n */\n @Prop() variant: 'text' | 'select' = 'text';\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n /**\n * Emit click to the parent\n * @private\n */\n @Event({ bubbles: false }) itemClick: EventEmitter;\n\n /**\n * Emit close to the parent\n * @private\n */\n @Event({ bubbles: false }) dropdownClose: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @State() statusText = '';\n\n @State() currentIndex: number = null;\n\n @Watch('valid')\n onValidChange() {\n if (this.validateOnBlur && !this._hasBlurred) return;\n\n this._setAriaDescriptionId();\n }\n\n @Watch('validation')\n onValidationMessageChange() {\n this._updateStatusText();\n }\n\n @Watch('value')\n onValueChange(value) {\n if (!value) {\n this._onReset();\n }\n }\n\n @Watch('placeholder')\n onPlaceholderChange(placeholder) {\n if (placeholder) this._onReset();\n }\n\n private _hasBlurred = false;\n\n private _labelRef: HTMLLabelElement;\n\n private _debounce = null;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n /**\n * @private\n */\n @Method()\n async reset() {\n this._onReset();\n }\n\n componentDidLoad() {\n if (this.autofocus) {\n setTimeout(() => {\n this._onFocus(false);\n }, 500);\n }\n\n this._calculateElementWidths();\n this._setAriaDescriptionId();\n\n if (this.label) {\n this._observer.observe(this._labelRef);\n }\n\n this.inputField?.addEventListener('focus', () => this._onFocus(false));\n this.inputField?.addEventListener('blur', () => this._onBlur());\n this.inputField?.addEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n // hide the placeholder text initially if there is a label\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.label || !this.placeholder ? '' : this.placeholder;\n\n this.inputField.title = this.label ?? this.placeholder;\n\n requestAnimationFrame(() => {\n const container = this.inputField.closest(\n '.c-input-menu__input',\n ) as HTMLDivElement;\n\n if (!container) return;\n\n container.dataset.placeholder = this.placeholder;\n });\n }\n }\n\n disconnectedCallback() {\n this.inputField?.removeEventListener('focus', () => this._onFocus(false));\n this.inputField?.removeEventListener('blur', () => this._onBlur());\n this.inputField?.removeEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n this._observer.disconnect();\n\n this._dropdownElement?.remove();\n }\n\n get isActive() {\n return !!this.value || typeof this.value === 'boolean' || this.isFocused;\n }\n\n private _setAriaDescriptionId() {\n this.inputField.removeAttribute('aria-describedby');\n\n let type = null;\n\n if (this.valid && !this.value && this.hint) {\n type = 'hint';\n }\n\n if (!this.valid) {\n type = 'error';\n }\n\n if (type) {\n this.inputField.setAttribute(\n 'aria-describedby',\n `${type}-${this.inputId}`,\n );\n }\n }\n\n private _observer = new IntersectionObserver(\n (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n this._calculateElementWidths();\n observer.unobserve(entry.target);\n }\n });\n },\n { threshold: 1 },\n );\n\n private _calculateElementWidths() {\n this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;\n this.preSlotWidth = this.inputField.offsetLeft;\n }\n\n private _onBlur = () => {\n // delay the blur event to prevent the label from 'flashing' on c-select selection\n setTimeout(() => {\n this.isFocused = false;\n\n this._hasBlurred = true;\n\n // show the label if there's no label or value\n this._onReset();\n }, 100);\n };\n\n private _onFocus = (click = true) => {\n if (this.disabled) return;\n\n this.isFocused = true;\n\n this.inputField?.focus();\n\n if (click) {\n this.inputField?.click();\n\n if (this.variant === 'select') {\n this.itemClick.emit();\n }\n }\n\n // show the label if there's no value\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.value || !this.placeholder ? '' : this.placeholder;\n }\n };\n\n private _onReset() {\n if (this.inputField) {\n if (\n !!this.placeholder &&\n !this.value &&\n (this.active || this.isFocused)\n ) {\n this.inputField.placeholder = this.placeholder;\n\n return;\n }\n\n this.inputField.placeholder =\n !this.label && !this.value && !!this.placeholder\n ? this.placeholder\n : '';\n }\n }\n\n /**\n * Prevent non numeric values in the numeric fields\n */\n private _preventNonNumericalInput(event: KeyboardEvent) {\n if (this.type !== 'number') return;\n\n if (!event.key.match(/^[0-9,\\.-]+$/)) {\n event.preventDefault();\n }\n }\n\n private _renderBorders() {\n if (this.shadow) return;\n\n const classes = {\n active: this.isActive || this.active,\n };\n\n return (\n <fieldset aria-hidden=\"true\">\n <legend\n class={classes}\n style={{\n '--_c-input-legend-width': this.labelWidth + 'px',\n }}\n >\n <span class=\"notranslate\"></span>\n </legend>\n </fieldset>\n );\n }\n\n private _renderLabel() {\n if (!this.label) return;\n\n const classes = {\n active: this.isActive,\n };\n\n return (\n <label\n htmlFor={this.inputId}\n ref={(el) => (this._labelRef = el as HTMLLabelElement)}\n class={classes}\n >\n {this.label}\n {this.required && <span>&nbsp;*</span>}\n </label>\n );\n }\n\n get inputField() {\n return this.el?.querySelector('.c-input__input') as\n | HTMLInputElement\n | HTMLTextAreaElement;\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = this.valid ? '' : `Error: ${this.validation}`;\n\n this._debounce = null;\n }, 1400);\n }\n\n render() {\n const containerClasses = {\n 'c-input': true,\n 'c-input--disabled': this.disabled,\n 'c-input--shadow': this.shadow,\n 'c-input--textarea': this.rows > 1,\n 'c-input--error': !this.valid,\n 'c-input--active': this.isFocused || this.active,\n filled: !!this.value,\n [`c-input--${this.variant}`]: true,\n };\n\n return (\n <Host disabled={this.disabled}>\n <div\n id={'announce-' + this.inputId}\n class=\"visuallyhidden\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n {this.statusText}\n </div>\n\n <div class={containerClasses}>\n <div class=\"c-input__control\">\n <div class=\"c-input__slot\" onClick={() => this._onFocus()}>\n {this._renderBorders()}\n\n <div\n class=\"c-input__field\"\n style={{\n '--_c-input-label-position': this.preSlotWidth + 'px',\n }}\n >\n <slot name=\"pre\"></slot>\n\n {this._renderLabel()}\n\n <slot></slot>\n </div>\n </div>\n\n {this.variant === 'select' && <slot name=\"dropdown\"></slot>}\n\n {!this.hideDetails && (\n <c-message\n hint={this.hint}\n inputId={this.inputId}\n valid={this.valid}\n validation={this.validation}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,43 @@
1
+ import { p as proxyCustomElement, H, h } from './p-2fbcb4e1.js';
2
+
3
+ const cCardActionsCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{padding:0 var(--_c-card-gap, 24px);display:block}:host menu{margin:0;padding:0}.c-card-actions{align-items:center;display:flex;gap:8px}.c-card-actions ::slotted(c-button[fit]){flex:1}.c-card-actions--align-center{align-items:center}.c-card-actions--align-start{align-items:flex-start}.c-card-actions--align-end{align-items:flex-end}.c-card-actions--justify-center{justify-content:center}.c-card-actions--justify-end{justify-content:flex-end}.c-card-actions--justify-start{justify-content:flex-start}.c-card-actions--justify-stretch{justify-content:stretch}.c-card-actions--justify-stretch ::slotted(*){flex:1}.c-card-actions--justify-space-between{justify-content:space-between}.c-card-actions--justify-space-around{justify-content:space-around}";
4
+ const CCardActionsStyle0 = cCardActionsCss;
5
+
6
+ const CCardActions = proxyCustomElement(class CCardActions extends H {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.align = 'center';
12
+ this.justify = 'start';
13
+ }
14
+ render() {
15
+ const classes = {
16
+ 'c-card-actions': true,
17
+ [`c-card-actions--align-${this.align}`]: true,
18
+ [`c-card-actions--justify-${this.justify}`]: true,
19
+ };
20
+ return (h("footer", { key: '376b1a0e988847b2f61816b942f81111fb81273e' }, h("menu", { key: 'a9ae8ab10f378b13e2602fe42b7b610c9811bf45', class: classes }, h("slot", { key: 'ad4ab7c7e1157a876444510b18178bf1389308bb' }))));
21
+ }
22
+ static get style() { return CCardActionsStyle0; }
23
+ }, [1, "c-card-actions", {
24
+ "align": [1],
25
+ "justify": [1]
26
+ }]);
27
+ function defineCustomElement() {
28
+ if (typeof customElements === "undefined") {
29
+ return;
30
+ }
31
+ const components = ["c-card-actions"];
32
+ components.forEach(tagName => { switch (tagName) {
33
+ case "c-card-actions":
34
+ if (!customElements.get(tagName)) {
35
+ customElements.define(tagName, CCardActions);
36
+ }
37
+ break;
38
+ } });
39
+ }
40
+
41
+ export { CCardActions as C, defineCustomElement as d };
42
+
43
+ //# sourceMappingURL=p-c1d56d6b.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-c1d56d6b.js","mappings":";;AAAA,MAAM,eAAe,GAAG,y6BAAy6B,CAAC;AACl8B,2BAAe,eAAe;;MCSjB,YAAY;;;;;qBAIqB,QAAQ;uBAW/B,OAAO;;IAE5B,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,gBAAgB,EAAE,IAAI;YACtB,CAAC,yBAAyB,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI;YAC7C,CAAC,2BAA2B,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI;SAClD,CAAC;QAEF,QACE,iEACE,6DAAM,KAAK,EAAE,OAAO,IAClB,8DAAa,CACR,CACA,EACT;KACH;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-card-actions/c-card-actions.scss?tag=c-card-actions&encapsulation=shadow","src/components/c-card-actions/c-card-actions.tsx"],"sourcesContent":[":host {\n padding: 0 var(--_c-card-gap, 24px);\n display: block;\n\n menu {\n margin: 0;\n padding: 0;\n }\n}\n\n.c-card-actions {\n align-items: center;\n display: flex;\n gap: 8px;\n\n ::slotted(c-button[fit]) {\n flex: 1;\n }\n\n &--align {\n &-center {\n align-items: center;\n }\n\n &-start {\n align-items: flex-start;\n }\n\n &-end {\n align-items: flex-end;\n }\n }\n\n &--justify {\n &-center {\n justify-content: center;\n }\n\n &-end {\n justify-content: flex-end;\n }\n\n &-start {\n justify-content: flex-start;\n }\n\n &-stretch {\n justify-content: stretch;\n\n ::slotted(*) {\n flex: 1;\n }\n }\n\n &-space-between {\n justify-content: space-between;\n }\n\n &-space-around {\n justify-content: space-around;\n }\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n/**\n * @parent c-card\n * @slot Default slot - Card actions\n */\n@Component({\n tag: 'c-card-actions',\n styleUrl: 'c-card-actions.scss',\n shadow: true,\n})\nexport class CCardActions {\n /**\n * Align the actions\n */\n @Prop() align: 'start' | 'center' | 'end' = 'center';\n\n /**\n * Justify the actions\n */\n @Prop() justify:\n | 'start'\n | 'center'\n | 'end'\n | 'space-between'\n | 'stretch'\n | 'space-around' = 'start';\n\n render() {\n const classes = {\n 'c-card-actions': true,\n [`c-card-actions--align-${this.align}`]: true,\n [`c-card-actions--justify-${this.justify}`]: true,\n };\n\n return (\n <footer>\n <menu class={classes}>\n <slot></slot>\n </menu>\n </footer>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,89 @@
1
+ import { p as proxyCustomElement, H, h, c as Host } from './p-2fbcb4e1.js';
2
+ import { b as mdiCloseCircle } from './p-3ea8acb0.js';
3
+
4
+ const cMessageCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-message-error-color:var(--c-error-600);--_c-message-hint-color:var(--c-text-system);display:block;line-height:1;padding:0 12px}.c-message--active .c-message-item{opacity:1;transform:translateY(0)}.c-message-item{font-size:12px;min-height:16px;opacity:0;transform:translateY(-4px);transition:all 0.2s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-message-item--hint{color:var(--_c-message-hint-color)}.c-message-item--error{color:var(--_c-message-error-color)}.c-message-item span{align-items:flex-start;color:currentColor;display:flex;gap:4px;min-height:16px}.c-message-item svg{fill:currentColor;height:16px;width:16px;position:relative;top:-2px}.c-message .visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
5
+ const CMessageStyle0 = cMessageCss;
6
+
7
+ const CMessage = proxyCustomElement(class CMessage extends H {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this._validationIcon = (h("svg", { height: "16px", width: "16px", viewBox: "0 0 24 24" }, h("path", { d: mdiCloseCircle })));
13
+ this.hint = '';
14
+ this.inputId = undefined;
15
+ this.valid = true;
16
+ this.validation = 'Required field';
17
+ this.messageOptions = {
18
+ show: true,
19
+ type: 'hint',
20
+ content: '',
21
+ };
22
+ }
23
+ onValidChange(valid) {
24
+ this._handleValidation(valid);
25
+ }
26
+ onValidationMessageChange(message) {
27
+ if (this.valid || !message)
28
+ return;
29
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (h("span", null, h("span", { class: "visuallyhidden" }, "Error: "), this._validationIcon, " ", message)) });
30
+ }
31
+ onHintMessageChange(message) {
32
+ if (!this.valid || !message)
33
+ return;
34
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (h("span", null, h("span", { class: "visuallyhidden" }, "Hint: "), message)) });
35
+ }
36
+ _handleValidation(valid, timeout = 200) {
37
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { show: false });
38
+ setTimeout(() => {
39
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { type: valid ? 'hint' : 'error', show: true, content: valid ? (h("span", { id: `hint-${this.inputId}` }, h("span", { class: "visuallyhidden" }, "Hint: "), this.hint)) : (h("span", { id: `error-${this.inputId}` }, this._validationIcon, h("span", { class: "visuallyhidden" }, "Error: "), this.validation)) });
40
+ }, timeout);
41
+ }
42
+ componentDidLoad() {
43
+ this._handleValidation(this.valid, 0);
44
+ }
45
+ render() {
46
+ const classes = {
47
+ 'c-message': true,
48
+ 'c-message--active': this.messageOptions.show,
49
+ };
50
+ const messageClasses = {
51
+ 'c-message-item': true,
52
+ [`c-message-item--${this.messageOptions.type}`]: true,
53
+ };
54
+ return (h(Host, { key: 'f64b1166d28b5a4cc30d4c2cd27840c3ee5d6182' }, h("div", { key: '9525ea4199bea1582ec5c3cc9c96e6aaa57b71b4', class: classes }, h("div", { key: 'a7841027a5fdd9f0dfdb26cd785828e1df013e83', class: messageClasses }, this.messageOptions.content))));
55
+ }
56
+ static get watchers() { return {
57
+ "valid": ["onValidChange"],
58
+ "validation": ["onValidationMessageChange"],
59
+ "hint": ["onHintMessageChange"]
60
+ }; }
61
+ static get style() { return CMessageStyle0; }
62
+ }, [1, "c-message", {
63
+ "hint": [1],
64
+ "inputId": [1, "input-id"],
65
+ "valid": [4],
66
+ "validation": [1],
67
+ "messageOptions": [32]
68
+ }, undefined, {
69
+ "valid": ["onValidChange"],
70
+ "validation": ["onValidationMessageChange"],
71
+ "hint": ["onHintMessageChange"]
72
+ }]);
73
+ function defineCustomElement() {
74
+ if (typeof customElements === "undefined") {
75
+ return;
76
+ }
77
+ const components = ["c-message"];
78
+ components.forEach(tagName => { switch (tagName) {
79
+ case "c-message":
80
+ if (!customElements.get(tagName)) {
81
+ customElements.define(tagName, CMessage);
82
+ }
83
+ break;
84
+ } });
85
+ }
86
+
87
+ export { CMessage as C, defineCustomElement as d };
88
+
89
+ //# sourceMappingURL=p-c9e58781.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-c9e58781.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,w9BAAw9B,CAAC;AAC7+B,uBAAe,WAAW;;MCUb,QAAQ;;;;;QA2FX,oBAAe,IACrB,WAAK,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,IACjD,YAAM,CAAC,EAAE,cAAc,GAAI,CACvB,CACP,CAAC;oBA3Fa,EAAE;;qBAUD,IAAI;0BAKC,gBAAg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R,GACF,CAAC;SACH,EAAE,OAAO,CAAC,CAAC;KACb;IAQD,gBAAgB;QACd,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KACvC;IAED,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,WAAW,EAAE,IAAI;YACjB,mBAAmB,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI;SAC9C,CAAC;QAEF,MAAM,cAAc,GAAG;YACrB,gBAAgB,EAAE,IAAI;YACtB,CAAC,mBAAmB,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,IAAI;SACtD,CAAC;QAEF,QACE,EAAC,IAAI,uDACH,4DAAK,KAAK,EAAE,OAAO,IACjB,4DAAK,KAAK,EAAE,cAAc,IAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAO,CAC3D,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-message/c-message.scss?tag=c-message&encapsulation=shadow","src/components/c-message/c-message.tsx"],"sourcesContent":[":host {\n --_c-message-error-color: var(--c-error-600);\n --_c-message-hint-color: var(--c-text-system);\n\n display: block;\n line-height: 1;\n padding: 0 12px;\n}\n\n.c-message {\n $this: &;\n\n &--active {\n #{$this} {\n &-item {\n opacity: 1;\n transform: translateY(0);\n }\n }\n }\n\n &-item {\n font-size: 12px;\n min-height: 16px;\n opacity: 0;\n transform: translateY(-4px);\n transition: all 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);\n\n &--hint {\n color: var(--_c-message-hint-color);\n }\n\n &--error {\n color: var(--_c-message-error-color);\n }\n\n span {\n align-items: flex-start;\n color: currentColor;\n display: flex;\n gap: 4px;\n min-height: 16px;\n }\n\n svg {\n fill: currentColor;\n height: 16px;\n width: 16px;\n position: relative;\n top: -2px;\n }\n }\n\n .visuallyhidden {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n}\n","import { mdiCloseCircle } from '@mdi/js';\nimport { Component, Host, Prop, State, Watch, h } from '@stencil/core';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-message',\n styleUrl: 'c-message.scss',\n shadow: true,\n})\nexport class CMessage {\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the related input element\n */\n @Prop() inputId: string;\n\n /**\n * Parent validíty\n */\n @Prop() valid = true;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n @State() messageOptions = {\n show: true,\n type: 'hint',\n content: '',\n };\n\n @Watch('valid')\n onValidChange(valid: boolean) {\n // if (this.validateOnBlur && !this._hasBlurred) return;\n\n this._handleValidation(valid);\n }\n\n @Watch('validation')\n onValidationMessageChange(message: string) {\n if (this.valid || !message) return;\n\n this.messageOptions = {\n ...this.messageOptions,\n content: (\n <span>\n <span class=\"visuallyhidden\">Error: </span>\n {this._validationIcon} {message}\n </span>\n ),\n };\n }\n\n @Watch('hint')\n onHintMessageChange(message: string) {\n if (!this.valid || !message) return;\n\n this.messageOptions = {\n ...this.messageOptions,\n content: (\n <span>\n <span class=\"visuallyhidden\">Hint: </span>\n {message}\n </span>\n ),\n };\n }\n\n private _handleValidation(valid: boolean, timeout = 200) {\n this.messageOptions = {\n ...this.messageOptions,\n show: false,\n };\n\n setTimeout(() => {\n this.messageOptions = {\n ...this.messageOptions,\n type: valid ? 'hint' : 'error',\n show: true,\n content: valid ? (\n <span id={`hint-${this.inputId}`}>\n <span class=\"visuallyhidden\">Hint: </span>\n {this.hint}\n </span>\n ) : (\n <span id={`error-${this.inputId}`}>\n {this._validationIcon}\n <span class=\"visuallyhidden\">Error: </span>\n {this.validation}\n </span>\n ),\n };\n }, timeout);\n }\n\n private _validationIcon = (\n <svg height=\"16px\" width=\"16px\" viewBox=\"0 0 24 24\">\n <path d={mdiCloseCircle} />\n </svg>\n );\n\n componentDidLoad() {\n this._handleValidation(this.valid, 0);\n }\n\n render() {\n const classes = {\n 'c-message': true,\n 'c-message--active': this.messageOptions.show,\n };\n\n const messageClasses = {\n 'c-message-item': true,\n [`c-message-item--${this.messageOptions.type}`]: true,\n };\n\n return (\n <Host>\n <div class={classes}>\n <div class={messageClasses}>{this.messageOptions.content}</div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,69 @@
1
+ import { p as proxyCustomElement, H, h, c as Host } from './p-2fbcb4e1.js';
2
+
3
+ const cRippleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{pointer-events:none;user-select:none;display:block;overflow:hidden;position:absolute;top:0;left:0;border-radius:inherit;z-index:1}.c-ripple{position:absolute;pointer-events:none;border-radius:50%;transform:scale(0);background:currentColor;opacity:0}.c-ripple.animate{animation:ripple 0.5s backwards linear;opacity:0.3}@keyframes ripple{100%{opacity:0;transform:scale(5)}}";
4
+ const CRippleStyle0 = cRippleCss;
5
+
6
+ const CRipple = proxyCustomElement(class CRipple extends H {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ }
12
+ async createRipple(event, parent, center = false) {
13
+ this._rippleElement.classList.remove('animate');
14
+ const width = parent.offsetWidth;
15
+ const height = parent.offsetHeight;
16
+ const rect = event.target.getBoundingClientRect();
17
+ const maxDimension = this._calculateHeight(Math.max(parent.offsetWidth, parent.offsetHeight));
18
+ const x = event.clientX - rect.left;
19
+ const y = event.clientY - rect.top;
20
+ const top = y - maxDimension / 2 + 'px';
21
+ const left = x - maxDimension / 2 + 'px';
22
+ const centerPosition = {
23
+ top: maxDimension === height
24
+ ? '0px'
25
+ : ((maxDimension - height) / 2) * -1 + 'px',
26
+ left: maxDimension === width
27
+ ? '0px'
28
+ : ((maxDimension - width) / 2) * -1 + 'px',
29
+ };
30
+ this.el.style.width = width + 'px';
31
+ this.el.style.height = height + 'px';
32
+ this._rippleElement.style.width = maxDimension + 'px';
33
+ this._rippleElement.style.height = maxDimension + 'px';
34
+ this._rippleElement.style.top = center ? centerPosition.top : top;
35
+ this._rippleElement.style.left = center ? centerPosition.left : left;
36
+ this._rippleElement.classList.add('animate');
37
+ setTimeout(() => {
38
+ this._rippleElement.classList.remove('animate');
39
+ }, 500);
40
+ }
41
+ _calculateHeight(height) {
42
+ const radius = (height / 2) * Math.sqrt(2);
43
+ return radius * 2;
44
+ }
45
+ render() {
46
+ return (h(Host, { key: '854bf71aac5d7c2d78da2e7219c047cca6680ac3', "aria-hidden": "true" }, h("div", { key: '6db3badd6b73e05e39662cac0e0578e3ca823279', ref: (el) => (this._rippleElement = el), class: "c-ripple" })));
47
+ }
48
+ get el() { return this; }
49
+ static get style() { return CRippleStyle0; }
50
+ }, [1, "c-ripple", {
51
+ "createRipple": [64]
52
+ }]);
53
+ function defineCustomElement() {
54
+ if (typeof customElements === "undefined") {
55
+ return;
56
+ }
57
+ const components = ["c-ripple"];
58
+ components.forEach(tagName => { switch (tagName) {
59
+ case "c-ripple":
60
+ if (!customElements.get(tagName)) {
61
+ customElements.define(tagName, CRipple);
62
+ }
63
+ break;
64
+ } });
65
+ }
66
+
67
+ export { CRipple as C, defineCustomElement as d };
68
+
69
+ //# sourceMappingURL=p-cdf22a0b.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-cdf22a0b.js","mappings":";;AAAA,MAAM,UAAU,GAAG,mjBAAmjB,CAAC;AACvkB,sBAAe,UAAU;;MCSZ,OAAO;;;;;;IASlB,MAAM,YAAY,CAAC,KAAiB,EAAE,MAAmB,EAAE,MAAM,GAAG,KAAK;QAEvE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAEhD,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;QACnC,MAAM,IAAI,GAAI,KAAK,CAAC,MAAs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Ac,CAAC,IAAI,GAAG,IAAI,CAAC;QAErE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAE7C,UAAU,CAAC;YACT,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;SACjD,EAAE,GAAG,CAAC,CAAC;KACT;IAEO,gBAAgB,CAAC,MAAc;QACrC,MAAM,MAAM,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAE3C,OAAO,MAAM,GAAG,CAAC,CAAC;KACnB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,oEAAa,MAAM,IACtB,4DAAK,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU,GAAG,CAC5D,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-ripple/c-ripple.scss?tag=c-ripple&encapsulation=shadow","src/components/c-ripple/c-ripple.tsx"],"sourcesContent":[":host {\n pointer-events: none;\n user-select: none;\n display: block;\n overflow: hidden;\n position: absolute;\n top: 0;\n left: 0;\n border-radius: inherit;\n z-index: 1;\n}\n\n.c-ripple {\n position: absolute;\n pointer-events: none;\n border-radius: 50%;\n transform: scale(0);\n background: currentColor;\n opacity: 0;\n\n &.animate {\n animation: ripple 0.5s backwards linear;\n opacity: 0.3;\n }\n\n @keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(5);\n }\n }\n}\n","import { Component, Element, Host, Method, h } from '@stencil/core';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-ripple',\n styleUrl: 'c-ripple.scss',\n shadow: true,\n})\nexport class CRipple {\n @Element() el: HTMLCRippleElement;\n\n private _rippleElement: HTMLDivElement;\n\n /**\n * Creates a ripple\n */\n @Method()\n async createRipple(event: MouseEvent, parent: HTMLElement, center = false) {\n // clear animation on repeat clicks\n this._rippleElement.classList.remove('animate');\n\n const width = parent.offsetWidth;\n const height = parent.offsetHeight;\n const rect = (event.target as HTMLElement).getBoundingClientRect();\n\n const maxDimension = this._calculateHeight(\n Math.max(parent.offsetWidth, parent.offsetHeight),\n );\n\n const x = event.clientX - rect.left;\n const y = event.clientY - rect.top;\n\n const top = y - maxDimension / 2 + 'px';\n const left = x - maxDimension / 2 + 'px';\n\n const centerPosition = {\n top:\n maxDimension === height\n ? '0px'\n : ((maxDimension - height) / 2) * -1 + 'px',\n left:\n maxDimension === width\n ? '0px'\n : ((maxDimension - width) / 2) * -1 + 'px',\n };\n\n this.el.style.width = width + 'px';\n this.el.style.height = height + 'px';\n\n this._rippleElement.style.width = maxDimension + 'px';\n this._rippleElement.style.height = maxDimension + 'px';\n\n this._rippleElement.style.top = center ? centerPosition.top : top;\n this._rippleElement.style.left = center ? centerPosition.left : left;\n\n this._rippleElement.classList.add('animate');\n\n setTimeout(() => {\n this._rippleElement.classList.remove('animate');\n }, 500);\n }\n\n private _calculateHeight(height: number) {\n const radius = (height / 2) * Math.sqrt(2);\n\n return radius * 2;\n }\n\n render() {\n return (\n <Host aria-hidden=\"true\">\n <div ref={(el) => (this._rippleElement = el)} class=\"c-ripple\" />\n </Host>\n );\n }\n}\n"],"version":3}