@dropi/ui 0.1.52 → 0.1.54

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 (593) hide show
  1. package/dist/cjs/dropi-accordion-item.cjs.entry.js +2 -2
  2. package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
  3. package/dist/cjs/dropi-alert-legacy.cjs.entry.js +2 -2
  4. package/dist/cjs/dropi-alert-modal.cjs.entry.js +4 -14
  5. package/dist/cjs/dropi-alert.cjs.entry.js +2 -2
  6. package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
  7. package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
  8. package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
  9. package/dist/cjs/dropi-banner-external.cjs.entry.js +2 -2
  10. package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
  11. package/dist/cjs/dropi-button.cjs.entry.js +2 -2
  12. package/dist/cjs/dropi-card-checkbox.cjs.entry.js +2 -2
  13. package/dist/cjs/dropi-card-product.cjs.entry.js +2 -2
  14. package/dist/cjs/dropi-card-section.cjs.entry.js +2 -2
  15. package/dist/cjs/dropi-carousel.cjs.entry.js +2 -2
  16. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +2 -2
  17. package/dist/cjs/dropi-checkbox.cjs.entry.js +2 -2
  18. package/dist/cjs/dropi-chips.cjs.entry.js +2 -2
  19. package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
  20. package/dist/cjs/dropi-color-picker.cjs.entry.js +2 -2
  21. package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
  22. package/dist/cjs/dropi-country-selector.cjs.entry.js +2 -2
  23. package/dist/cjs/dropi-date-picker-range.cjs.entry.js +2 -2
  24. package/dist/cjs/dropi-date-picker.cjs.entry.js +2 -2
  25. package/dist/cjs/dropi-drawer.cjs.entry.js +2 -2
  26. package/dist/cjs/dropi-dropdown.cjs.entry.js +2 -2
  27. package/dist/cjs/dropi-empty-state.cjs.entry.js +2 -2
  28. package/dist/cjs/dropi-favorite-button.cjs.entry.js +2 -2
  29. package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +2 -2
  30. package/dist/cjs/dropi-file-upload.cjs.entry.js +2 -2
  31. package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
  32. package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +2 -2
  33. package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
  34. package/dist/cjs/dropi-image-overlay.cjs.entry.js +2 -2
  35. package/dist/cjs/dropi-input_3.cjs.entry.js +4 -4
  36. package/dist/cjs/dropi-languages-selector.cjs.entry.js +2 -2
  37. package/dist/cjs/dropi-logo.cjs.entry.js +2 -2
  38. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +2 -2
  39. package/dist/cjs/dropi-media-player.cjs.entry.js +2 -2
  40. package/dist/cjs/dropi-modal.cjs.entry.js +2 -2
  41. package/dist/cjs/dropi-navbar.cjs.entry.js +2 -2
  42. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +2 -2
  43. package/dist/cjs/dropi-phone-input.cjs.entry.js +2 -2
  44. package/dist/cjs/dropi-progress-bar.cjs.entry.js +2 -2
  45. package/dist/cjs/dropi-radio-button.cjs.entry.js +2 -2
  46. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +2 -2
  47. package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
  48. package/dist/cjs/dropi-search.cjs.entry.js +2 -2
  49. package/dist/cjs/dropi-select.cjs.entry.js +2 -2
  50. package/dist/cjs/dropi-sidebar.cjs.entry.js +2 -2
  51. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
  52. package/dist/cjs/dropi-skeleton.cjs.entry.js +2 -2
  53. package/dist/cjs/dropi-steps.cjs.entry.js +13 -3
  54. package/dist/cjs/dropi-switch.cjs.entry.js +2 -2
  55. package/dist/cjs/dropi-table.cjs.entry.js +2 -2
  56. package/dist/cjs/dropi-tabs.cjs.entry.js +2 -2
  57. package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
  58. package/dist/cjs/dropi-text-area.cjs.entry.js +2 -2
  59. package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
  60. package/dist/cjs/dropi-toast.cjs.entry.js +9 -11
  61. package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +2 -2
  62. package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
  63. package/dist/cjs/dropi-ui.cjs.js +2 -2
  64. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +2 -2
  65. package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +2 -2
  66. package/dist/cjs/index-eMp8lMK1.js +2809 -0
  67. package/dist/cjs/loader.cjs.js +2 -2
  68. package/dist/cjs/lottie-map.generated-BVDAlLPd.js +14 -0
  69. package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +22 -7
  70. package/dist/collection/components/dropi-accordion/dropi-accordion.css +2 -1
  71. package/dist/collection/components/dropi-alert/dropi-alert.css +2 -1
  72. package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +1 -0
  73. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +1 -0
  74. package/dist/collection/components/dropi-avatars/dropi-avatars.css +1 -0
  75. package/dist/collection/components/dropi-badge/dropi-badge.css +1 -0
  76. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +1 -0
  77. package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +1 -0
  78. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +1 -0
  79. package/dist/collection/components/dropi-button/dropi-button.css +2 -0
  80. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +1 -0
  81. package/dist/collection/components/dropi-card-product/dropi-card-product.css +9 -8
  82. package/dist/collection/components/dropi-card-section/dropi-card-section.css +2 -1
  83. package/dist/collection/components/dropi-carousel/dropi-carousel.css +1 -0
  84. package/dist/collection/components/dropi-checkbox/dropi-checkbox.css +1 -0
  85. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +2 -1
  86. package/dist/collection/components/dropi-chips/dropi-chips.css +2 -1
  87. package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +4 -3
  88. package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +1 -0
  89. package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +1 -0
  90. package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +5 -4
  91. package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +7 -6
  92. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +7 -6
  93. package/dist/collection/components/dropi-drawer/dropi-drawer.css +2 -1
  94. package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +1 -0
  95. package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
  96. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +1 -0
  97. package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +1 -0
  98. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +1 -0
  99. package/dist/collection/components/dropi-icon/dropi-icon.css +1 -0
  100. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +1 -0
  101. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +2 -1
  102. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +2 -1
  103. package/dist/collection/components/dropi-input/dropi-input.css +2 -1
  104. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +2 -1
  105. package/dist/collection/components/dropi-logo/dropi-logo.css +1 -0
  106. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +1 -0
  107. package/dist/collection/components/dropi-media-player/dropi-media-player.css +4 -3
  108. package/dist/collection/components/dropi-modal/dropi-modal.css +2 -1
  109. package/dist/collection/components/dropi-navbar/dropi-navbar.css +3 -2
  110. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +2 -1
  111. package/dist/collection/components/dropi-paginator/dropi-paginator.css +3 -2
  112. package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +5 -4
  113. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.css +1 -0
  114. package/dist/collection/components/dropi-radio-button/dropi-radio-button.css +1 -0
  115. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +2 -1
  116. package/dist/collection/components/dropi-read-more/dropi-read-more.css +3 -2
  117. package/dist/collection/components/dropi-search/dropi-search.css +2 -1
  118. package/dist/collection/components/dropi-select/dropi-select.css +4 -3
  119. package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +1 -0
  120. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +1 -0
  121. package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +1 -0
  122. package/dist/collection/components/dropi-steps/dropi-steps.css +52 -35
  123. package/dist/collection/components/dropi-steps/dropi-steps.js +11 -1
  124. package/dist/collection/components/dropi-switch/dropi-switch.css +1 -0
  125. package/dist/collection/components/dropi-table/dropi-table.css +2 -1
  126. package/dist/collection/components/dropi-tabs/dropi-tabs.css +2 -1
  127. package/dist/collection/components/dropi-tag/dropi-tag.css +1 -0
  128. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +1 -0
  129. package/dist/collection/components/dropi-text-area/dropi-text-area.css +2 -1
  130. package/dist/collection/components/dropi-time-line/dropi-time-line.css +1 -0
  131. package/dist/collection/components/dropi-toast/dropi-toast.css +40 -49
  132. package/dist/collection/components/dropi-toast/dropi-toast.js +7 -10
  133. package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +1 -0
  134. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +1 -0
  135. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +1 -0
  136. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +1 -0
  137. package/dist/components/dropi-accordion-item.js +1 -1
  138. package/dist/components/dropi-accordion.js +1 -1
  139. package/dist/components/dropi-alert-legacy.js +1 -1
  140. package/dist/components/dropi-alert-modal.js +1 -1
  141. package/dist/components/dropi-alert.js +1 -1
  142. package/dist/components/dropi-avatars.js +1 -1
  143. package/dist/components/dropi-badge-legacy.js +1 -1
  144. package/dist/components/dropi-badge.js +1 -1
  145. package/dist/components/dropi-banner-external.js +1 -1
  146. package/dist/components/dropi-breadcrumb.js +1 -1
  147. package/dist/components/dropi-button.js +1 -1
  148. package/dist/components/dropi-card-checkbox.js +1 -1
  149. package/dist/components/dropi-card-product.js +1 -1
  150. package/dist/components/dropi-card-section.js +1 -1
  151. package/dist/components/dropi-carousel.js +1 -1
  152. package/dist/components/dropi-checkbox-selection-list.js +1 -1
  153. package/dist/components/dropi-checkbox.js +1 -1
  154. package/dist/components/dropi-chips.js +1 -1
  155. package/dist/components/dropi-city-selector.js +1 -1
  156. package/dist/components/dropi-color-picker.js +1 -1
  157. package/dist/components/dropi-country-flags.js +1 -1
  158. package/dist/components/dropi-country-selector.js +1 -1
  159. package/dist/components/dropi-date-picker-range.js +1 -1
  160. package/dist/components/dropi-date-picker.js +1 -1
  161. package/dist/components/dropi-drawer.js +1 -1
  162. package/dist/components/dropi-dropdown.js +1 -1
  163. package/dist/components/dropi-empty-state.js +1 -1
  164. package/dist/components/dropi-favorite-button.js +1 -1
  165. package/dist/components/dropi-file-upload-progress-bar.js +1 -1
  166. package/dist/components/dropi-file-upload.js +1 -1
  167. package/dist/components/dropi-icon.js +1 -1
  168. package/dist/components/dropi-ilustration-icon.js +1 -1
  169. package/dist/components/dropi-image-miniature.js +1 -1
  170. package/dist/components/dropi-image-overlay.js +1 -1
  171. package/dist/components/dropi-input.js +1 -1
  172. package/dist/components/dropi-languages-selector.js +1 -1
  173. package/dist/components/dropi-logo.js +1 -1
  174. package/dist/components/dropi-lottie-loader.js +1 -1
  175. package/dist/components/dropi-media-player.js +1 -1
  176. package/dist/components/dropi-modal.js +1 -1
  177. package/dist/components/dropi-navbar.js +1 -1
  178. package/dist/components/dropi-otp-send-code.js +1 -1
  179. package/dist/components/dropi-paginator.js +1 -1
  180. package/dist/components/dropi-phone-input.js +1 -1
  181. package/dist/components/dropi-progress-bar.js +1 -1
  182. package/dist/components/dropi-radio-button.js +1 -1
  183. package/dist/components/dropi-radio-selection-list.js +1 -1
  184. package/dist/components/dropi-read-more.js +1 -1
  185. package/dist/components/dropi-search.js +1 -1
  186. package/dist/components/dropi-select.js +1 -1
  187. package/dist/components/dropi-sidebar.js +1 -1
  188. package/dist/components/dropi-simple-stepper.js +1 -1
  189. package/dist/components/dropi-skeleton.js +1 -1
  190. package/dist/components/dropi-steps.js +1 -1
  191. package/dist/components/dropi-switch.js +1 -1
  192. package/dist/components/dropi-table.js +1 -1
  193. package/dist/components/dropi-tabs.js +1 -1
  194. package/dist/components/dropi-tag-type-product.js +1 -1
  195. package/dist/components/dropi-tag.js +1 -1
  196. package/dist/components/dropi-text-area.js +1 -1
  197. package/dist/components/dropi-time-line.js +1 -1
  198. package/dist/components/dropi-toast.js +1 -1
  199. package/dist/components/dropi-tooltip-v2.js +1 -1
  200. package/dist/components/dropi-tooltip.js +1 -1
  201. package/dist/components/dropi-vertical-steps.js +1 -1
  202. package/dist/components/dropi-youtube-lazy-video.js +1 -1
  203. package/dist/components/index.js +1 -1
  204. package/dist/components/p-3AT7ASH9.js +1 -0
  205. package/dist/components/p-B-1G8T4u.js +1 -0
  206. package/dist/components/p-BEs9gbju.js +1 -0
  207. package/dist/components/p-BGS_Fnts.js +1 -0
  208. package/dist/components/p-BKTe33ng.js +1 -0
  209. package/dist/components/p-BhQK2SnE.js +1 -0
  210. package/dist/components/p-BjWB6xTy.js +1 -0
  211. package/dist/components/p-BtbO4Qj2.js +1 -0
  212. package/dist/components/p-ByEQybUd.js +1 -0
  213. package/dist/components/p-BzFB0tnJ.js +1 -0
  214. package/dist/components/p-Bzgg_L80.js +1 -0
  215. package/dist/components/p-CY_Pmg81.js +1 -0
  216. package/dist/components/p-Ccl4kD95.js +1 -0
  217. package/dist/components/p-ChU-v5Jl.js +1 -0
  218. package/dist/components/p-CmLj_aqH.js +1 -0
  219. package/dist/components/p-Cq3-SLWU.js +1 -0
  220. package/dist/components/p-CrSepiFP.js +1 -0
  221. package/dist/components/p-D-KVcD87.js +1 -0
  222. package/dist/components/p-DgOazwmC.js +1 -0
  223. package/dist/components/p-EW_Hn93v.js +1 -0
  224. package/dist/components/p-StcKvTC_.js +1 -0
  225. package/dist/components/p-WAEYEj9V.js +1 -0
  226. package/dist/components/p-_ScZTnhj.js +1 -0
  227. package/dist/components/p-egLr0oVg.js +1 -0
  228. package/dist/components/p-fPJmM1qh.js +1 -0
  229. package/dist/components/p-u5UtrV7_.js +1 -0
  230. package/dist/docs.json +2 -2
  231. package/dist/dropi-ui/dropi-accordion-item.entry.js +3 -3
  232. package/dist/dropi-ui/dropi-accordion-item.entry.js.map +1 -1
  233. package/dist/dropi-ui/dropi-accordion.entry.js +3 -3
  234. package/dist/dropi-ui/dropi-accordion.entry.js.map +1 -1
  235. package/dist/dropi-ui/dropi-alert-legacy.entry.js +2 -2
  236. package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +1 -1
  237. package/dist/dropi-ui/dropi-alert-modal.entry.js +4 -14
  238. package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -1
  239. package/dist/dropi-ui/dropi-alert.entry.js +2 -2
  240. package/dist/dropi-ui/dropi-alert.entry.js.map +1 -1
  241. package/dist/dropi-ui/dropi-avatars.entry.js +3 -3
  242. package/dist/dropi-ui/dropi-avatars.entry.js.map +1 -1
  243. package/dist/dropi-ui/dropi-badge-legacy.entry.js +3 -3
  244. package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +1 -1
  245. package/dist/dropi-ui/dropi-badge.entry.js +3 -3
  246. package/dist/dropi-ui/dropi-badge.entry.js.map +1 -1
  247. package/dist/dropi-ui/dropi-banner-external.entry.js +2 -2
  248. package/dist/dropi-ui/dropi-banner-external.entry.js.map +1 -1
  249. package/dist/dropi-ui/dropi-breadcrumb.entry.js +3 -3
  250. package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +1 -1
  251. package/dist/dropi-ui/dropi-button.entry.js +4 -4
  252. package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
  253. package/dist/dropi-ui/dropi-card-checkbox.entry.js +4 -4
  254. package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -1
  255. package/dist/dropi-ui/dropi-card-product.entry.js +6 -6
  256. package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -1
  257. package/dist/dropi-ui/dropi-card-section.entry.js +4 -4
  258. package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -1
  259. package/dist/dropi-ui/dropi-carousel.entry.js +2 -2
  260. package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -1
  261. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +4 -4
  262. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -1
  263. package/dist/dropi-ui/dropi-checkbox.entry.js +4 -4
  264. package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
  265. package/dist/dropi-ui/dropi-chips.entry.js +3 -3
  266. package/dist/dropi-ui/dropi-chips.entry.js.map +1 -1
  267. package/dist/dropi-ui/dropi-city-selector.entry.js +3 -3
  268. package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -1
  269. package/dist/dropi-ui/dropi-color-picker.entry.js +4 -4
  270. package/dist/dropi-ui/dropi-color-picker.entry.js.map +1 -1
  271. package/dist/dropi-ui/dropi-country-flags.entry.js +3 -3
  272. package/dist/dropi-ui/dropi-country-flags.entry.js.map +1 -1
  273. package/dist/dropi-ui/dropi-country-selector.entry.js +4 -4
  274. package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
  275. package/dist/dropi-ui/dropi-date-picker-range.entry.js +2 -2
  276. package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +1 -1
  277. package/dist/dropi-ui/dropi-date-picker.entry.js +43 -5
  278. package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
  279. package/dist/dropi-ui/dropi-drawer.entry.js +4 -4
  280. package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -1
  281. package/dist/dropi-ui/dropi-dropdown.entry.js +3 -3
  282. package/dist/dropi-ui/dropi-dropdown.entry.js.map +1 -1
  283. package/dist/dropi-ui/dropi-empty-state.entry.js +3 -3
  284. package/dist/dropi-ui/dropi-empty-state.entry.js.map +1 -1
  285. package/dist/dropi-ui/dropi-favorite-button.entry.js +3 -3
  286. package/dist/dropi-ui/dropi-favorite-button.entry.js.map +1 -1
  287. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +3 -3
  288. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +1 -1
  289. package/dist/dropi-ui/dropi-file-upload.entry.js +3 -3
  290. package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -1
  291. package/dist/dropi-ui/dropi-icon.entry.js +2 -2
  292. package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
  293. package/dist/dropi-ui/dropi-ilustration-icon.entry.js +8 -10
  294. package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
  295. package/dist/dropi-ui/dropi-image-miniature.entry.js +3 -3
  296. package/dist/dropi-ui/dropi-image-miniature.entry.js.map +1 -1
  297. package/dist/dropi-ui/dropi-image-overlay.entry.js +2 -2
  298. package/dist/dropi-ui/dropi-image-overlay.entry.js.map +1 -1
  299. package/dist/dropi-ui/dropi-input.entry.js +4 -4
  300. package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
  301. package/dist/dropi-ui/dropi-languages-selector.entry.js +2 -2
  302. package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -1
  303. package/dist/dropi-ui/dropi-logo.entry.js +3 -3
  304. package/dist/dropi-ui/dropi-logo.entry.js.map +1 -1
  305. package/dist/dropi-ui/dropi-lottie-loader.entry.js +2 -2
  306. package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -1
  307. package/dist/dropi-ui/dropi-media-player.entry.js +2 -2
  308. package/dist/dropi-ui/dropi-media-player.entry.js.map +1 -1
  309. package/dist/dropi-ui/dropi-modal.entry.js +3 -3
  310. package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
  311. package/dist/dropi-ui/dropi-navbar.entry.js +4 -4
  312. package/dist/dropi-ui/dropi-navbar.entry.js.map +1 -1
  313. package/dist/dropi-ui/dropi-otp-send-code.entry.js +14 -4
  314. package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
  315. package/dist/dropi-ui/dropi-paginator.entry.js +4 -4
  316. package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -1
  317. package/dist/dropi-ui/dropi-phone-input.entry.js +4 -4
  318. package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
  319. package/dist/dropi-ui/dropi-progress-bar.entry.js +3 -3
  320. package/dist/dropi-ui/dropi-progress-bar.entry.js.map +1 -1
  321. package/dist/dropi-ui/dropi-radio-button.entry.js +3 -3
  322. package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
  323. package/dist/dropi-ui/dropi-radio-selection-list.entry.js +4 -4
  324. package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -1
  325. package/dist/dropi-ui/dropi-read-more.entry.js +3 -3
  326. package/dist/dropi-ui/dropi-read-more.entry.js.map +1 -1
  327. package/dist/dropi-ui/dropi-search.entry.js +4 -4
  328. package/dist/dropi-ui/dropi-search.entry.js.map +1 -1
  329. package/dist/dropi-ui/dropi-select.entry.js +3 -3
  330. package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
  331. package/dist/dropi-ui/dropi-sidebar.entry.js +3 -3
  332. package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -1
  333. package/dist/dropi-ui/dropi-simple-stepper.entry.js +3 -3
  334. package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +1 -1
  335. package/dist/dropi-ui/dropi-skeleton.entry.js +2 -2
  336. package/dist/dropi-ui/dropi-skeleton.entry.js.map +1 -1
  337. package/dist/dropi-ui/dropi-steps.entry.js +14 -4
  338. package/dist/dropi-ui/dropi-steps.entry.js.map +1 -1
  339. package/dist/dropi-ui/dropi-switch.entry.js +3 -3
  340. package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
  341. package/dist/dropi-ui/dropi-table.entry.js +2 -2
  342. package/dist/dropi-ui/dropi-table.entry.js.map +1 -1
  343. package/dist/dropi-ui/dropi-tabs.entry.js +3 -3
  344. package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -1
  345. package/dist/dropi-ui/dropi-tag-type-product.entry.js +3 -3
  346. package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +1 -1
  347. package/dist/dropi-ui/dropi-tag.entry.js +4 -4
  348. package/dist/dropi-ui/dropi-tag.entry.js.map +1 -1
  349. package/dist/dropi-ui/dropi-text-area.entry.js +4 -4
  350. package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -1
  351. package/dist/dropi-ui/dropi-time-line.entry.js +3 -3
  352. package/dist/dropi-ui/dropi-time-line.entry.js.map +1 -1
  353. package/dist/dropi-ui/dropi-toast.entry.js +9 -11
  354. package/dist/dropi-ui/dropi-toast.entry.js.map +1 -1
  355. package/dist/dropi-ui/dropi-tooltip-v2.entry.js +4 -4
  356. package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -1
  357. package/dist/dropi-ui/dropi-tooltip.entry.js +3 -3
  358. package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -1
  359. package/dist/dropi-ui/dropi-ui.css +1 -1
  360. package/dist/dropi-ui/dropi-ui.esm.js +50 -1
  361. package/dist/dropi-ui/dropi-vertical-steps.entry.js +3 -3
  362. package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +1 -1
  363. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +3 -3
  364. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +1 -1
  365. package/dist/dropi-ui/index-BKkSRXlb.js +4625 -0
  366. package/dist/dropi-ui/index-BKkSRXlb.js.map +1 -0
  367. package/dist/dropi-ui/index-DrzVsORR.js +4625 -0
  368. package/dist/dropi-ui/index-DrzVsORR.js.map +1 -0
  369. package/dist/dropi-ui/lottie-map.generated-BEs9gbju.js +15 -0
  370. package/dist/dropi-ui/lottie-map.generated-BEs9gbju.js.map +1 -0
  371. package/dist/dropi-ui/p-01027049.entry.js +1 -0
  372. package/dist/dropi-ui/p-02172dc2.entry.js +1 -0
  373. package/dist/dropi-ui/p-021f55e5.entry.js +1 -0
  374. package/dist/dropi-ui/p-0393dfc9.entry.js +1 -0
  375. package/dist/dropi-ui/p-090817e4.entry.js +1 -0
  376. package/dist/dropi-ui/p-0ee1edcd.entry.js +1 -0
  377. package/dist/dropi-ui/p-0f20c87c.entry.js +1 -0
  378. package/dist/dropi-ui/p-0fefc0c8.entry.js +1 -0
  379. package/dist/dropi-ui/p-113516f7.entry.js +1 -0
  380. package/dist/dropi-ui/p-13e1c3a4.entry.js +1 -0
  381. package/dist/dropi-ui/p-14124aee.entry.js +1 -0
  382. package/dist/dropi-ui/p-1633c2df.entry.js +1 -0
  383. package/dist/dropi-ui/p-16d0400d.entry.js +1 -0
  384. package/dist/dropi-ui/p-184442f6.entry.js +1 -0
  385. package/dist/dropi-ui/p-1901806b.entry.js +1 -0
  386. package/dist/dropi-ui/p-1a222047.entry.js +1 -0
  387. package/dist/dropi-ui/p-2076bc28.entry.js +1 -0
  388. package/dist/dropi-ui/p-24e17d9c.entry.js +1 -0
  389. package/dist/dropi-ui/p-27d5b554.entry.js +1 -0
  390. package/dist/dropi-ui/p-29a3389a.entry.js +1 -0
  391. package/dist/dropi-ui/p-2ad5dbd2.entry.js +1 -0
  392. package/dist/dropi-ui/p-2ed8b556.entry.js +1 -0
  393. package/dist/dropi-ui/p-3277ea55.entry.js +1 -0
  394. package/dist/dropi-ui/p-32f144b2.entry.js +1 -0
  395. package/dist/dropi-ui/p-356ab2c5.entry.js +1 -0
  396. package/dist/dropi-ui/p-3843cba5.entry.js +1 -0
  397. package/dist/dropi-ui/p-3b47c86f.entry.js +1 -0
  398. package/dist/dropi-ui/p-3b7060e1.entry.js +1 -0
  399. package/dist/dropi-ui/p-3f75523b.entry.js +1 -0
  400. package/dist/dropi-ui/p-40376329.entry.js +1 -0
  401. package/dist/dropi-ui/p-4158d4b7.entry.js +1 -0
  402. package/dist/dropi-ui/p-42854929.entry.js +1 -0
  403. package/dist/dropi-ui/p-436f196f.entry.js +1 -0
  404. package/dist/dropi-ui/p-440e6f67.entry.js +1 -0
  405. package/dist/dropi-ui/p-4432c17d.entry.js +1 -0
  406. package/dist/dropi-ui/p-46a1d393.entry.js +1 -0
  407. package/dist/dropi-ui/p-492b8a1f.entry.js +1 -0
  408. package/dist/dropi-ui/p-496893e8.entry.js +1 -0
  409. package/dist/dropi-ui/p-49fb5900.entry.js +1 -0
  410. package/dist/dropi-ui/p-4a39e574.entry.js +1 -0
  411. package/dist/dropi-ui/p-4f0f060c.entry.js +1 -0
  412. package/dist/dropi-ui/p-52e6a495.entry.js +1 -0
  413. package/dist/dropi-ui/p-5415ed33.entry.js +1 -0
  414. package/dist/dropi-ui/p-542d0b9c.entry.js +1 -0
  415. package/dist/dropi-ui/p-54d243db.entry.js +1 -0
  416. package/dist/dropi-ui/p-58093c18.entry.js +1 -0
  417. package/dist/dropi-ui/p-5bd0bb86.entry.js +1 -0
  418. package/dist/dropi-ui/p-5db953ba.entry.js +1 -0
  419. package/dist/dropi-ui/p-6018f6a1.entry.js +1 -0
  420. package/dist/dropi-ui/p-66595a21.entry.js +1 -0
  421. package/dist/dropi-ui/p-6def424b.entry.js +1 -0
  422. package/dist/dropi-ui/p-6ea74d84.entry.js +1 -0
  423. package/dist/dropi-ui/p-6efa35f2.entry.js +1 -0
  424. package/dist/dropi-ui/p-70295204.entry.js +1 -0
  425. package/dist/dropi-ui/p-76651c16.entry.js +1 -0
  426. package/dist/dropi-ui/p-769929eb.entry.js +1 -0
  427. package/dist/dropi-ui/p-7ac0c653.entry.js +1 -0
  428. package/dist/dropi-ui/p-7cb27020.entry.js +1 -0
  429. package/dist/dropi-ui/p-7d61faf2.entry.js +1 -0
  430. package/dist/dropi-ui/p-7f538bbf.entry.js +1 -0
  431. package/dist/dropi-ui/p-7fd2db00.entry.js +1 -0
  432. package/dist/dropi-ui/p-8089116b.entry.js +1 -0
  433. package/dist/dropi-ui/p-80ebe1e0.entry.js +1 -0
  434. package/dist/dropi-ui/p-8465f52d.entry.js +1 -0
  435. package/dist/dropi-ui/p-8782862b.entry.js +1 -0
  436. package/dist/dropi-ui/p-879f79cf.entry.js +1 -0
  437. package/dist/dropi-ui/p-8ac5a31d.entry.js +1 -0
  438. package/dist/dropi-ui/p-8eb0ebff.entry.js +1 -0
  439. package/dist/dropi-ui/p-8feee3fd.entry.js +1 -0
  440. package/dist/dropi-ui/p-910af7cf.entry.js +1 -0
  441. package/dist/dropi-ui/p-93cd9afe.entry.js +1 -0
  442. package/dist/dropi-ui/p-94ec77fc.entry.js +1 -0
  443. package/dist/dropi-ui/p-97aa4446.entry.js +1 -0
  444. package/dist/dropi-ui/p-97b9fed2.entry.js +1 -0
  445. package/dist/dropi-ui/p-98156424.entry.js +1 -0
  446. package/dist/dropi-ui/p-992134d3.entry.js +1 -0
  447. package/dist/dropi-ui/p-998b016a.entry.js +1 -0
  448. package/dist/dropi-ui/p-99f48203.entry.js +1 -0
  449. package/dist/dropi-ui/p-9b6fe588.entry.js +1 -0
  450. package/dist/dropi-ui/p-BEs9gbju.js +1 -0
  451. package/dist/dropi-ui/p-CWoV_bQo.js +2 -0
  452. package/dist/dropi-ui/p-a0135272.entry.js +1 -0
  453. package/dist/dropi-ui/p-a2b4ba6d.entry.js +1 -0
  454. package/dist/dropi-ui/p-a50e6592.entry.js +1 -0
  455. package/dist/dropi-ui/p-a5b3548c.entry.js +1 -0
  456. package/dist/dropi-ui/p-a5e4bd7a.entry.js +1 -0
  457. package/dist/dropi-ui/p-a6a73485.entry.js +1 -0
  458. package/dist/dropi-ui/p-a82ecdd5.entry.js +1 -0
  459. package/dist/dropi-ui/p-a91d8b2c.entry.js +1 -0
  460. package/dist/dropi-ui/p-a9682999.entry.js +1 -0
  461. package/dist/dropi-ui/p-aa63edd4.entry.js +1 -0
  462. package/dist/dropi-ui/p-aaeccf21.entry.js +1 -0
  463. package/dist/dropi-ui/p-ab9ec519.entry.js +1 -0
  464. package/dist/dropi-ui/p-ad1e0e62.entry.js +1 -0
  465. package/dist/dropi-ui/p-ae423d39.entry.js +1 -0
  466. package/dist/dropi-ui/p-aeaa39f6.entry.js +1 -0
  467. package/dist/dropi-ui/p-b0930601.entry.js +1 -0
  468. package/dist/dropi-ui/p-b2000dcb.entry.js +1 -0
  469. package/dist/dropi-ui/p-b2739793.entry.js +1 -0
  470. package/dist/dropi-ui/p-b4227dd5.entry.js +1 -0
  471. package/dist/dropi-ui/p-b4bcfc25.entry.js +1 -0
  472. package/dist/dropi-ui/p-b7f9592b.entry.js +1 -0
  473. package/dist/dropi-ui/p-b941ee31.entry.js +1 -0
  474. package/dist/dropi-ui/p-b94b7199.entry.js +1 -0
  475. package/dist/dropi-ui/p-ba87a663.entry.js +1 -0
  476. package/dist/dropi-ui/p-baaf86d8.entry.js +1 -0
  477. package/dist/dropi-ui/p-bc5447d7.entry.js +1 -0
  478. package/dist/dropi-ui/p-bd2c7bbc.entry.js +1 -0
  479. package/dist/dropi-ui/p-beb4b2d7.entry.js +1 -0
  480. package/dist/dropi-ui/p-bf7f2bf6.entry.js +1 -0
  481. package/dist/dropi-ui/p-bfaac1cc.entry.js +1 -0
  482. package/dist/dropi-ui/p-c31dbf7d.entry.js +1 -0
  483. package/dist/dropi-ui/p-c424a77c.entry.js +1 -0
  484. package/dist/dropi-ui/p-c5c3b146.entry.js +1 -0
  485. package/dist/dropi-ui/p-c6fd796c.entry.js +1 -0
  486. package/dist/dropi-ui/p-c7260931.entry.js +1 -0
  487. package/dist/dropi-ui/p-ca5dbffd.entry.js +1 -0
  488. package/dist/dropi-ui/p-cb48cb42.entry.js +1 -0
  489. package/dist/dropi-ui/p-cc53f78b.entry.js +1 -0
  490. package/dist/dropi-ui/p-cd30d613.entry.js +1 -0
  491. package/dist/dropi-ui/p-d0e3de92.entry.js +1 -0
  492. package/dist/dropi-ui/p-d136695a.entry.js +1 -0
  493. package/dist/dropi-ui/p-d286adf0.entry.js +1 -0
  494. package/dist/dropi-ui/p-d46058e1.entry.js +1 -0
  495. package/dist/dropi-ui/p-d65aeab2.entry.js +1 -0
  496. package/dist/dropi-ui/p-d8c02ec8.entry.js +1 -0
  497. package/dist/dropi-ui/p-d93f31c2.entry.js +1 -0
  498. package/dist/dropi-ui/p-debe6fa2.entry.js +1 -0
  499. package/dist/dropi-ui/p-df89c528.entry.js +1 -0
  500. package/dist/dropi-ui/p-e07c21c8.entry.js +1 -0
  501. package/dist/dropi-ui/p-e3224f3e.entry.js +1 -0
  502. package/dist/dropi-ui/p-e67161f6.entry.js +1 -0
  503. package/dist/dropi-ui/p-e6f708e9.entry.js +1 -0
  504. package/dist/dropi-ui/p-e824d439.entry.js +1 -0
  505. package/dist/dropi-ui/p-e842be74.entry.js +1 -0
  506. package/dist/dropi-ui/p-ea15ac20.entry.js +1 -0
  507. package/dist/dropi-ui/p-eb98ac81.entry.js +1 -0
  508. package/dist/dropi-ui/p-f0362230.entry.js +1 -0
  509. package/dist/dropi-ui/p-f18f8a8e.entry.js +1 -0
  510. package/dist/dropi-ui/p-f46d7df1.entry.js +1 -0
  511. package/dist/dropi-ui/p-f61e0ed7.entry.js +1 -0
  512. package/dist/dropi-ui/p-f699688a.entry.js +1 -0
  513. package/dist/dropi-ui/p-f73d5969.entry.js +1 -0
  514. package/dist/dropi-ui/p-fd0448a7.entry.js +1 -0
  515. package/dist/dropi-ui/p-fff4eb31.entry.js +1 -0
  516. package/dist/esm/dropi-accordion-item.entry.js +2 -2
  517. package/dist/esm/dropi-accordion.entry.js +2 -2
  518. package/dist/esm/dropi-alert-legacy.entry.js +2 -2
  519. package/dist/esm/dropi-alert-modal.entry.js +3 -13
  520. package/dist/esm/dropi-alert.entry.js +2 -2
  521. package/dist/esm/dropi-avatars.entry.js +2 -2
  522. package/dist/esm/dropi-badge-legacy.entry.js +2 -2
  523. package/dist/esm/dropi-badge.entry.js +2 -2
  524. package/dist/esm/dropi-banner-external.entry.js +2 -2
  525. package/dist/esm/dropi-breadcrumb.entry.js +2 -2
  526. package/dist/esm/dropi-button.entry.js +2 -2
  527. package/dist/esm/dropi-card-checkbox.entry.js +2 -2
  528. package/dist/esm/dropi-card-product.entry.js +2 -2
  529. package/dist/esm/dropi-card-section.entry.js +2 -2
  530. package/dist/esm/dropi-carousel.entry.js +2 -2
  531. package/dist/esm/dropi-checkbox-selection-list.entry.js +2 -2
  532. package/dist/esm/dropi-checkbox.entry.js +2 -2
  533. package/dist/esm/dropi-chips.entry.js +2 -2
  534. package/dist/esm/dropi-city-selector.entry.js +2 -2
  535. package/dist/esm/dropi-color-picker.entry.js +2 -2
  536. package/dist/esm/dropi-country-flags.entry.js +2 -2
  537. package/dist/esm/dropi-country-selector.entry.js +2 -2
  538. package/dist/esm/dropi-date-picker-range.entry.js +2 -2
  539. package/dist/esm/dropi-date-picker.entry.js +2 -2
  540. package/dist/esm/dropi-drawer.entry.js +2 -2
  541. package/dist/esm/dropi-dropdown.entry.js +2 -2
  542. package/dist/esm/dropi-empty-state.entry.js +2 -2
  543. package/dist/esm/dropi-favorite-button.entry.js +2 -2
  544. package/dist/esm/dropi-file-upload-progress-bar.entry.js +2 -2
  545. package/dist/esm/dropi-file-upload.entry.js +2 -2
  546. package/dist/esm/dropi-icon.entry.js +2 -2
  547. package/dist/esm/dropi-ilustration-icon.entry.js +2 -2
  548. package/dist/esm/dropi-image-miniature.entry.js +2 -2
  549. package/dist/esm/dropi-image-overlay.entry.js +2 -2
  550. package/dist/esm/dropi-input_3.entry.js +4 -4
  551. package/dist/esm/dropi-languages-selector.entry.js +2 -2
  552. package/dist/esm/dropi-logo.entry.js +2 -2
  553. package/dist/esm/dropi-lottie-loader.entry.js +2 -2
  554. package/dist/esm/dropi-media-player.entry.js +2 -2
  555. package/dist/esm/dropi-modal.entry.js +2 -2
  556. package/dist/esm/dropi-navbar.entry.js +2 -2
  557. package/dist/esm/dropi-otp-send-code.entry.js +2 -2
  558. package/dist/esm/dropi-phone-input.entry.js +2 -2
  559. package/dist/esm/dropi-progress-bar.entry.js +2 -2
  560. package/dist/esm/dropi-radio-button.entry.js +2 -2
  561. package/dist/esm/dropi-radio-selection-list.entry.js +2 -2
  562. package/dist/esm/dropi-read-more.entry.js +2 -2
  563. package/dist/esm/dropi-search.entry.js +2 -2
  564. package/dist/esm/dropi-select.entry.js +2 -2
  565. package/dist/esm/dropi-sidebar.entry.js +2 -2
  566. package/dist/esm/dropi-simple-stepper.entry.js +2 -2
  567. package/dist/esm/dropi-skeleton.entry.js +2 -2
  568. package/dist/esm/dropi-steps.entry.js +13 -3
  569. package/dist/esm/dropi-switch.entry.js +2 -2
  570. package/dist/esm/dropi-table.entry.js +2 -2
  571. package/dist/esm/dropi-tabs.entry.js +2 -2
  572. package/dist/esm/dropi-tag-type-product.entry.js +2 -2
  573. package/dist/esm/dropi-text-area.entry.js +2 -2
  574. package/dist/esm/dropi-time-line.entry.js +2 -2
  575. package/dist/esm/dropi-toast.entry.js +9 -11
  576. package/dist/esm/dropi-tooltip-v2.entry.js +2 -2
  577. package/dist/esm/dropi-tooltip.entry.js +2 -2
  578. package/dist/esm/dropi-ui.js +3 -3
  579. package/dist/esm/dropi-vertical-steps.entry.js +2 -2
  580. package/dist/esm/dropi-youtube-lazy-video.entry.js +2 -2
  581. package/dist/esm/index-CWoV_bQo.js +2798 -0
  582. package/dist/esm/loader.js +3 -3
  583. package/dist/esm/lottie-map.generated-BEs9gbju.js +12 -0
  584. package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +1 -1
  585. package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +4 -0
  586. package/dist/types/components/dropi-toast/dropi-toast.d.ts +1 -2
  587. package/dist/types/components.d.ts +10 -0
  588. package/hydrate/index.js +84 -77
  589. package/hydrate/index.mjs +84 -77
  590. package/package.json +2 -2
  591. package/readme.md +85 -11
  592. package/scripts/setup.js +2 -17
  593. package/scripts/strip-use-client.mjs +20 -0
@@ -1 +1 @@
1
- {"file":"dropi-search.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,uzDAAuzD,CAAC;;MCgBz0D,WAAW,GAAA,MAAA;;;;;;;;;;;IAEd,IAAI,GAAiE,SAAS;;IAE9E,WAAW,GAAW,WAAW;;IAEhB,SAAS,GAAW,EAAE;;IAEvC,SAAS,GAAsB,MAAM;;AAErC,IAAA,SAAS;;IAET,QAAQ,GAAY,IAAI;;IAExB,SAAS,GAAY,IAAI;;IAEzB,YAAY,GAA4B,EAAE;;IAE1C,QAAQ,GAAW,MAAM;;IAEzB,QAAQ,GAAmB,MAAM;;IAEjC,mBAAmB,GAAY,IAAI;;IAEnC,aAAa,GAAW,GAAG;;IAE3B,KAAK,GAAW,EAAE;;IAED,KAAK,GAA4B,EAAE;IAE3C,IAAI,GAAY,KAAK;IACrB,QAAQ,GAAmB,EAAE;IAC7B,aAAa,GAAmB,EAAE;;AAG1C,IAAA,UAAU;;AAEV,IAAA,SAAS;;AAET,IAAA,aAAa;;AAEb,IAAA,WAAW;;AAEX,IAAA,UAAU;;AAEV,IAAA,gBAAgB;AAGzB,IAAA,cAAc,CAAC,GAA4B,EAAA;QACzC,IAAI,CAAC,aAAa,GAAG,OAAO,GAAG,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,EAAE,CAAC;;IAG9E,iBAAiB,GAAA;AACf,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC;;AAGxC,IAAA,IAAY,QAAQ,GAAA;QAClB,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC,aAAa;QAC9C,MAAM,CAAC,GAAG,I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,IAAI,CAAC,QAAQ,CAAA,CAAE,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC,aAAa,CAAA,EAAA,CAAI,EAAS,EAAA,EAC9H,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,IACzB,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,mBAAmB,EAAA,EAAA,gBAAA,CAAqB,KAEnD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,MACvB,CAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,yBAAyB,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,EACjF,GAAG,EAAE,CAAC,EACN,WAAW,EAAE,CAAC,CAAC,KAAI,EAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAA,EAElE,IAAI,CAAC,mBAAmB,IAAI,CAAA,CAAA,gBAAA,EAAA,EAAgB,IAAI,EAAC,gBAAgB,EAAC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAA,CAAI,EACpG,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,sBAAsB,IAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAQ,CAC1D,CACP,CAAC,CACH,CACG,CACP,CACG;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-search/dropi-search.css?tag=dropi-search&encapsulation=shadow","src/components/dropi-search/dropi-search.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n position: relative;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.search-label {\n display: block;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-600, #475066);\n margin-bottom: 4px;\n}\n\n/* ── Input row ──────────────────────────────────────────── */\n.search-input-row {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.search-icon {\n position: absolute;\n left: 10px;\n pointer-events: none;\n z-index: 1;\n}\n\n.search-input {\n width: 100%;\n height: 40px;\n padding: 0 36px 0 34px;\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n color: var(--Gray-Gray-700, #32394d);\n outline: none;\n transition: border-color 0.2s;\n}\n\n.search-input:focus {\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\n.search-input::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n.search-clear {\n position: absolute;\n right: 10px;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n z-index: 1;\n}\n\n/* ── Dropdown ───────────────────────────────────────────── */\n.search-dropdown {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n max-height: var(--dropdown-height, 240px);\n overflow-y: auto;\n background: var(--Neutral-White, #ffffff);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n z-index: 100;\n}\n\n.search-option {\n display: flex;\n align-items: center;\n gap: var(--Size-2, 8px);\n padding: var(--Size-2, 8px) var(--Size-3, 12px);\n cursor: pointer;\n transition: background 0.15s;\n user-select: none;\n}\n\n.search-option:hover {\n background: var(--Gray-Gray-50, #f7f8fa);\n}\n\n.search-option--selected {\n background: var(--Primary-Primary-50, #fff5eb);\n}\n\n.search-option__label {\n flex: 1;\n font-size: var(--font-size-s, 12px);\n color: var(--Gray-Gray-700, #32394d);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.search-no-results {\n padding: var(--Size-3, 12px);\n font-size: var(--font-size-s, 12px);\n color: var(--Gray-Gray-400, #858ea6);\n text-align: center;\n}\n","import { Component, Prop, State, Event, EventEmitter, Watch, h } from '@stencil/core';\n\nexport interface SearchOption {\n [key: string]: any;\n}\n\n/**\n * @component dropi-search\n * Text search input with optional dropdown results list.\n * Supports single and multi-select, keyboard navigation, and clear button.\n */\n@Component({\n tag: 'dropi-search',\n styleUrl: 'dropi-search.css',\n shadow: true,\n})\nexport class DropiSearch {\n /** Visual variant (matches Angular `type`) */\n @Prop() type: 'default' | 'dropdown' | 'dropdown-button' | 'default-light' = 'default';\n /** Placeholder text */\n @Prop() placeholder: string = 'Search...';\n /** Controlled input value */\n @Prop({ mutable: true }) textInput: string = '';\n /** HTML input type: text | number (matches Angular `typeInput`) */\n @Prop() typeInput: 'text' | 'number' = 'text';\n /** Max character length */\n @Prop() maxLength: number;\n /** Show the search icon (matches Angular `showIcon`) */\n @Prop() showIcon: boolean = true;\n /** Show clear (×) button when input has text */\n @Prop() showClear: boolean = true;\n /** Data source to filter. Pass as array or JSON string */\n @Prop() dataToSearch: SearchOption[] | string = [];\n /** Property name to display and search */\n @Prop() dataName: string = 'name';\n /** Dropdown open direction: down | top (matches Angular `position`) */\n @Prop() position: 'down' | 'top' = 'down';\n /** Allow multiple selection */\n @Prop() multipleSelectModel: boolean = true;\n /** Max height of dropdown (numeric value) */\n @Prop() heightOverlay: number = 230;\n /** Label shown above the input */\n @Prop() label: string = '';\n /** Controlled selected items array (matches Angular `model`) */\n @Prop({ mutable: true }) model: SearchOption[] | string = [];\n\n @State() private open: boolean = false;\n @State() private selected: SearchOption[] = [];\n @State() private parsedOptions: SearchOption[] = [];\n\n /** Emitted on input change. e.detail = current text */\n @Event() dropiInput: EventEmitter<string>;\n /** Emitted on blur */\n @Event() dropiBlur: EventEmitter<void>;\n /** Emitted when Enter is pressed. e.detail = current text */\n @Event() dropiKeyEnter: EventEmitter<string>;\n /** Emitted on change event of the native input (matches Angular `onChange`) */\n @Event() dropiChange: EventEmitter<string>;\n /** Emitted when clear button clicked */\n @Event() dropiClear: EventEmitter<void>;\n /** Emitted when selection changes. e.detail = selected items */\n @Event() dropiModelChange: EventEmitter<SearchOption[]>;\n\n @Watch('dataToSearch')\n optionsChanged(val: SearchOption[] | string) {\n this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);\n }\n\n componentWillLoad() {\n this.optionsChanged(this.dataToSearch);\n }\n\n private get filtered(): SearchOption[] {\n if (!this.textInput) return this.parsedOptions;\n const q = this.textInput.toLowerCase();\n return this.parsedOptions.filter(o => String(o[this.dataName] ?? '').toLowerCase().includes(q));\n }\n\n private handleInput(e: InputEvent) {\n this.textInput = (e.target as HTMLInputElement).value;\n this.open = this.parsedOptions.length > 0;\n this.dropiInput.emit(this.textInput);\n this.dropiChange.emit(this.textInput);\n }\n\n private handleKeyDown(e: KeyboardEvent) {\n if (e.key === 'Enter') this.dropiKeyEnter.emit(this.textInput);\n if (e.key === 'Escape') this.open = false;\n }\n\n private handleClear() {\n this.textInput = '';\n this.open = false;\n this.dropiClear.emit();\n this.dropiInput.emit('');\n }\n\n private isSelected(opt: SearchOption): boolean {\n return this.selected.some(s => s[this.dataName] === opt[this.dataName]);\n }\n\n private selectOption(opt: SearchOption) {\n if (this.multipleSelectModel) {\n if (this.isSelected(opt)) {\n this.selected = this.selected.filter(s => s[this.dataName] !== opt[this.dataName]);\n } else {\n this.selected = [...this.selected, opt];\n }\n } else {\n this.textInput = opt[this.dataName] ?? '';\n this.selected = [opt];\n this.open = false;\n }\n this.dropiModelChange.emit(this.selected);\n }\n\n render() {\n const showDropdown = this.open && this.parsedOptions.length > 0;\n\n return (\n <div class=\"search-wrap\">\n {this.label && <label class=\"search-label\">{this.label}</label>}\n\n <div class={`search-input-row search-input-row--${this.type}`}>\n {this.showIcon && <dropi-icon class=\"search-icon\" name=\"Search\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />}\n\n <input\n class=\"search-input\"\n type={this.typeInput}\n placeholder={this.placeholder}\n value={this.textInput}\n maxLength={this.maxLength}\n onInput={(e) => this.handleInput(e as InputEvent)}\n onKeyDown={(e) => this.handleKeyDown(e as KeyboardEvent)}\n onFocus={() => { if (this.parsedOptions.length) this.open = true; }}\n onBlur={() => { setTimeout(() => this.open = false, 150); this.dropiBlur.emit(); }}\n />\n\n {this.showClear && this.textInput && (\n <button class=\"search-clear\" onClick={() => this.handleClear()} aria-label=\"Limpiar\">\n <dropi-icon name=\"Close-small\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />\n </button>\n )}\n </div>\n\n {showDropdown && (\n <div class={`search-dropdown search-dropdown--${this.position}`} style={{ '--dropdown-height': `${this.heightOverlay}px` } as any}>\n {this.filtered.length === 0 ? (\n <div class=\"search-no-results\">Sin resultados</div>\n ) : (\n this.filtered.map((opt, i) => (\n <div\n class={{ 'search-option': true, 'search-option--selected': this.isSelected(opt) }}\n key={i}\n onMouseDown={(e) => { e.preventDefault(); this.selectOption(opt); }}\n >\n {this.multipleSelectModel && <dropi-checkbox name=\"_search-option\" checked={this.isSelected(opt)} />}\n <span class=\"search-option__label\">{opt[this.dataName]}</span>\n </div>\n ))\n )}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"dropi-search.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,+6DAA+6D,CAAC;;MCgBj8D,WAAW,GAAA,MAAA;;;;;;;;;;;IAEd,IAAI,GAAiE,SAAS;;IAE9E,WAAW,GAAW,WAAW;;IAEhB,SAAS,GAAW,EAAE;;IAEvC,SAAS,GAAsB,MAAM;;AAErC,IAAA,SAAS;;IAET,QAAQ,GAAY,IAAI;;IAExB,SAAS,GAAY,IAAI;;IAEzB,YAAY,GAA4B,EAAE;;IAE1C,QAAQ,GAAW,MAAM;;IAEzB,QAAQ,GAAmB,MAAM;;IAEjC,mBAAmB,GAAY,IAAI;;IAEnC,aAAa,GAAW,GAAG;;IAE3B,KAAK,GAAW,EAAE;;IAED,KAAK,GAA4B,EAAE;IAE3C,IAAI,GAAY,KAAK;IACrB,QAAQ,GAAmB,EAAE;IAC7B,aAAa,G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AC,UAAU,CAAC,GAAG,CAAC,EAAA,CAAI,EACpG,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,sBAAsB,IAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAQ,CAC1D,CACP,CAAC,CACH,CACG,CACP,CACG;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-search/dropi-search.css?tag=dropi-search&encapsulation=shadow","src/components/dropi-search/dropi-search.tsx"],"sourcesContent":[":host {\nbutton, input, select, textarea { font-family: var(--font-family-01, 'Inter', sans-serif); }\n display: block;\n width: 100%;\n position: relative;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.search-label {\n display: block;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-600, #475066);\n margin-bottom: 4px;\n}\n\n/* ── Input row ──────────────────────────────────────────── */\n.search-input-row {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.search-icon {\n position: absolute;\n left: 10px;\n pointer-events: none;\n z-index: 1;\n}\n\n.search-input {\n width: 100%;\n height: 40px;\n padding: 0 36px 0 34px;\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n font-size: var(--font-size-s, 12px);\n font-family: var(--font-family-01, 'Inter', sans-serif);\n color: var(--Gray-Gray-700, #32394d);\n outline: none;\n transition: border-color 0.2s;\n}\n\n.search-input:focus {\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\n.search-input::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n.search-clear {\n position: absolute;\n right: 10px;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n z-index: 1;\n}\n\n/* ── Dropdown ───────────────────────────────────────────── */\n.search-dropdown {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n right: 0;\n max-height: var(--dropdown-height, 240px);\n overflow-y: auto;\n background: var(--Neutral-White, #ffffff);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n z-index: 100;\n}\n\n.search-option {\n display: flex;\n align-items: center;\n gap: var(--Size-2, 8px);\n padding: var(--Size-2, 8px) var(--Size-3, 12px);\n cursor: pointer;\n transition: background 0.15s;\n user-select: none;\n}\n\n.search-option:hover {\n background: var(--Gray-Gray-50, #f7f8fa);\n}\n\n.search-option--selected {\n background: var(--Primary-Primary-50, #fff5eb);\n}\n\n.search-option__label {\n flex: 1;\n font-size: var(--font-size-s, 12px);\n color: var(--Gray-Gray-700, #32394d);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.search-no-results {\n padding: var(--Size-3, 12px);\n font-size: var(--font-size-s, 12px);\n color: var(--Gray-Gray-400, #858ea6);\n text-align: center;\n}\n","import { Component, Prop, State, Event, EventEmitter, Watch, h } from '@stencil/core';\n\nexport interface SearchOption {\n [key: string]: any;\n}\n\n/**\n * @component dropi-search\n * Text search input with optional dropdown results list.\n * Supports single and multi-select, keyboard navigation, and clear button.\n */\n@Component({\n tag: 'dropi-search',\n styleUrl: 'dropi-search.css',\n shadow: true,\n})\nexport class DropiSearch {\n /** Visual variant (matches Angular `type`) */\n @Prop() type: 'default' | 'dropdown' | 'dropdown-button' | 'default-light' = 'default';\n /** Placeholder text */\n @Prop() placeholder: string = 'Search...';\n /** Controlled input value */\n @Prop({ mutable: true }) textInput: string = '';\n /** HTML input type: text | number (matches Angular `typeInput`) */\n @Prop() typeInput: 'text' | 'number' = 'text';\n /** Max character length */\n @Prop() maxLength: number;\n /** Show the search icon (matches Angular `showIcon`) */\n @Prop() showIcon: boolean = true;\n /** Show clear (×) button when input has text */\n @Prop() showClear: boolean = true;\n /** Data source to filter. Pass as array or JSON string */\n @Prop() dataToSearch: SearchOption[] | string = [];\n /** Property name to display and search */\n @Prop() dataName: string = 'name';\n /** Dropdown open direction: down | top (matches Angular `position`) */\n @Prop() position: 'down' | 'top' = 'down';\n /** Allow multiple selection */\n @Prop() multipleSelectModel: boolean = true;\n /** Max height of dropdown (numeric value) */\n @Prop() heightOverlay: number = 230;\n /** Label shown above the input */\n @Prop() label: string = '';\n /** Controlled selected items array (matches Angular `model`) */\n @Prop({ mutable: true }) model: SearchOption[] | string = [];\n\n @State() private open: boolean = false;\n @State() private selected: SearchOption[] = [];\n @State() private parsedOptions: SearchOption[] = [];\n\n /** Emitted on input change. e.detail = current text */\n @Event() dropiInput: EventEmitter<string>;\n /** Emitted on blur */\n @Event() dropiBlur: EventEmitter<void>;\n /** Emitted when Enter is pressed. e.detail = current text */\n @Event() dropiKeyEnter: EventEmitter<string>;\n /** Emitted on change event of the native input (matches Angular `onChange`) */\n @Event() dropiChange: EventEmitter<string>;\n /** Emitted when clear button clicked */\n @Event() dropiClear: EventEmitter<void>;\n /** Emitted when selection changes. e.detail = selected items */\n @Event() dropiModelChange: EventEmitter<SearchOption[]>;\n\n @Watch('dataToSearch')\n optionsChanged(val: SearchOption[] | string) {\n this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);\n }\n\n componentWillLoad() {\n this.optionsChanged(this.dataToSearch);\n }\n\n private get filtered(): SearchOption[] {\n if (!this.textInput) return this.parsedOptions;\n const q = this.textInput.toLowerCase();\n return this.parsedOptions.filter(o => String(o[this.dataName] ?? '').toLowerCase().includes(q));\n }\n\n private handleInput(e: InputEvent) {\n this.textInput = (e.target as HTMLInputElement).value;\n this.open = this.parsedOptions.length > 0;\n this.dropiInput.emit(this.textInput);\n this.dropiChange.emit(this.textInput);\n }\n\n private handleKeyDown(e: KeyboardEvent) {\n if (e.key === 'Enter') this.dropiKeyEnter.emit(this.textInput);\n if (e.key === 'Escape') this.open = false;\n }\n\n private handleClear() {\n this.textInput = '';\n this.open = false;\n this.dropiClear.emit();\n this.dropiInput.emit('');\n }\n\n private isSelected(opt: SearchOption): boolean {\n return this.selected.some(s => s[this.dataName] === opt[this.dataName]);\n }\n\n private selectOption(opt: SearchOption) {\n if (this.multipleSelectModel) {\n if (this.isSelected(opt)) {\n this.selected = this.selected.filter(s => s[this.dataName] !== opt[this.dataName]);\n } else {\n this.selected = [...this.selected, opt];\n }\n } else {\n this.textInput = opt[this.dataName] ?? '';\n this.selected = [opt];\n this.open = false;\n }\n this.dropiModelChange.emit(this.selected);\n }\n\n render() {\n const showDropdown = this.open && this.parsedOptions.length > 0;\n\n return (\n <div class=\"search-wrap\">\n {this.label && <label class=\"search-label\">{this.label}</label>}\n\n <div class={`search-input-row search-input-row--${this.type}`}>\n {this.showIcon && <dropi-icon class=\"search-icon\" name=\"Search\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />}\n\n <input\n class=\"search-input\"\n type={this.typeInput}\n placeholder={this.placeholder}\n value={this.textInput}\n maxLength={this.maxLength}\n onInput={(e) => this.handleInput(e as InputEvent)}\n onKeyDown={(e) => this.handleKeyDown(e as KeyboardEvent)}\n onFocus={() => { if (this.parsedOptions.length) this.open = true; }}\n onBlur={() => { setTimeout(() => this.open = false, 150); this.dropiBlur.emit(); }}\n />\n\n {this.showClear && this.textInput && (\n <button class=\"search-clear\" onClick={() => this.handleClear()} aria-label=\"Limpiar\">\n <dropi-icon name=\"Close-small\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />\n </button>\n )}\n </div>\n\n {showDropdown && (\n <div class={`search-dropdown search-dropdown--${this.position}`} style={{ '--dropdown-height': `${this.heightOverlay}px` } as any}>\n {this.filtered.length === 0 ? (\n <div class=\"search-no-results\">Sin resultados</div>\n ) : (\n this.filtered.map((opt, i) => (\n <div\n class={{ 'search-option': true, 'search-option--selected': this.isSelected(opt) }}\n key={i}\n onMouseDown={(e) => { e.preventDefault(); this.selectOption(opt); }}\n >\n {this.multipleSelectModel && <dropi-checkbox name=\"_search-option\" checked={this.isSelected(opt)} />}\n <span class=\"search-option__label\">{opt[this.dataName]}</span>\n </div>\n ))\n )}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, d as createEvent, a as getElement, h } from './index-CPacpXAJ.js';
1
+ import { r as registerInstance, d as createEvent, a as getElement, h } from './index-BKkSRXlb.js';
2
2
 
3
- const dropiSelectCss = () => `:host{display:block;width:100%;text-align:left}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}.custom-select label{display:block;font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066)}.disabled-label{color:var(--Gray-Gray-400, #858ea6) !important}.asterisk{color:var(--Error-Error-500, #f46a6b)}.dropdown-container{display:flex;align-items:center;gap:4px}.left-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-m, 14px);white-space:nowrap}.select-button{box-sizing:border-box;width:100%;height:40px;padding:0 0.75rem;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer;transition:border-color 0.2s ease;gap:8px}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066)}.select-button-error{border-color:var(--Error-Error-500, #f46a6b) !important}.no-border{border:none !important;color:var(--Gray-Gray-600, #475066);padding:var(--Size-4, 16px);background-color:transparent !important;gap:var(--Size-2, 8px)}.no-border:disabled{background-color:transparent !important}.button-content{display:flex;align-items:center;gap:8px;overflow:hidden;flex:1;min-width:0}.elipsis{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-dropdown-overlay{position:fixed;max-height:250px;overflow-y:auto;list-style:none;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);margin:0;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0px 8px 24px rgba(0, 0, 0, 0.12);z-index:var(--dropi-z-index-overlay, 11000);animation:dropdown-open 120ms ease-out}.select-dropdown-overlay.within-modal{position:absolute}@keyframes dropdown-open{from{opacity:0;transform:scaleY(0.95);transform-origin:top}to{opacity:1;transform:scaleY(1);transform-origin:top}}.option{box-sizing:border-box;width:100%;min-height:40px;border-radius:var(--Border-2, 8px);padding:var(--Size-3, 12px) var(--Size-4, 16px);border:none;background:transparent;text-align:left;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;display:flex;align-items:center;gap:var(--Size-2, 8px);transition:background 0.15s ease}.option:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.option:disabled,.disabled-option{opacity:0.5;cursor:not-allowed}.option.selected-option:not(.option-radio){background:var(--Primary-Primary-50, #fef8f2);color:var(--Primary-Primary-500, #f49a3d)}.option-group-title{padding:var(--Size-3, 12px) var(--Size-4, 16px);font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-medium, 500);color:var(--Gray-Gray-500, #69738c);list-style:none}.option-group{padding-left:var(--Size-6, 32px)}.sticky-search{position:sticky;top:calc(-1 * var(--Size-4, 16px));background:var(--Neutral-White, #ffffff);z-index:10;margin:calc(-1 * var(--Size-4, 16px)) calc(-1 * var(--Size-4, 16px)) 0;padding:var(--Size-2, 8px) var(--Size-4, 16px);border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2);list-style:none}.search-wrapper{display:flex;align-items:center;gap:8px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);padding:6px 10px;background:var(--Neutral-White, #ffffff)}.search-input{flex:1;border:none;outline:none;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:transparent}.search-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-clear{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}.multi-checkbox{width:18px;height:18px;min-width:18px;border-radius:var(--Border-1, 4px);border:2px solid var(--Gray-Gray-200, #c3c9d9);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.15s, border-color 0.15s}.multi-checkbox.checked{background:var(--Primary-Primary-500, #f49a3d);border-color:var(--Primary-Primary-500, #f49a3d)}.option-radio{display:flex;align-items:center;gap:12px}.option-radio.selected-option{border-radius:var(--Border-2, 8px);background:var(--Primary-Primary-50, #fef8f2);color:var(--Primary-Primary-500, #f49a3d)}.option-radio.selected-option .option-second-label{color:var(--Primary-Primary-500, #f49a3d)}.radio{width:20px;height:20px;min-width:20px;border-radius:50%;border:2px solid var(--Gray-Gray-200, #c3c9d9);display:flex;align-items:center;justify-content:center;flex-shrink:0}.radio.selected{border-color:var(--Primary-Primary-500, #f49a3d)}.circle{width:12px;height:12px;border-radius:50%;background:var(--Primary-Primary-500, #f49a3d)}.labels-container{display:flex;justify-content:space-between;width:100%;min-width:0}.option-image{width:24px;height:24px;border-radius:60px;object-fit:cover;flex-shrink:0}.small-image{width:20px;height:20px}.option-image-fallback{width:24px;height:24px;border-radius:60px;background:var(--Primary-Primary-500, #f49a3d);color:white;font-size:13px;font-weight:var(--font-weight-bold);display:flex;justify-content:center;align-items:center;flex-shrink:0}.small-image.option-image-fallback{width:20px;height:20px}.option-second-label{color:var(--Gray-Gray-700, #32394d);font-weight:var(--font-weight-bold);white-space:nowrap}.flag-placeholder{font-size:11px;font-weight:var(--font-weight-semibold);color:var(--Gray-Gray-500, #69738c);flex-shrink:0}.select-helper,.select-helper-error{display:flex;gap:var(--Size-1, 4px);align-items:center;margin-top:var(--Size-1, 4px)}.select-helper span{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.select-helper-error span{color:var(--Error-Error-500, #f46a6b);font-size:var(--font-size-xs, 10px)}.no-results{padding:var(--Size-3, 12px) var(--Size-4, 16px);color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 12px);list-style:none;text-align:center}`;
3
+ const dropiSelectCss = () => `:host{display:block;width:100%;text-align:left;button,input,select,textarea{font-family:var(--font-family-01, 'Inter', sans-serif)}}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}.custom-select label{display:block;font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066)}.disabled-label{color:var(--Gray-Gray-400, #858ea6) !important}.asterisk{color:var(--Error-Error-500, #f46a6b)}.dropdown-container{display:flex;align-items:center;gap:4px}.left-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-m, 14px);white-space:nowrap}.select-button{box-sizing:border-box;width:100%;height:40px;padding:0 0.75rem;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);font-family:var(--font-family-01, 'Inter', sans-serif);display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer;transition:border-color 0.2s ease;gap:8px}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066)}.select-button-error{border-color:var(--Error-Error-500, #f46a6b) !important}.no-border{border:none !important;color:var(--Gray-Gray-600, #475066);padding:var(--Size-4, 16px);background-color:transparent !important;gap:var(--Size-2, 8px)}.no-border:disabled{background-color:transparent !important}.button-content{display:flex;align-items:center;gap:8px;overflow:hidden;flex:1;min-width:0}.elipsis{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-dropdown-overlay{position:fixed;max-height:250px;overflow-y:auto;list-style:none;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);margin:0;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0px 8px 24px rgba(0, 0, 0, 0.12);z-index:var(--dropi-z-index-overlay, 11000);animation:dropdown-open 120ms ease-out}.select-dropdown-overlay.within-modal{position:absolute}@keyframes dropdown-open{from{opacity:0;transform:scaleY(0.95);transform-origin:top}to{opacity:1;transform:scaleY(1);transform-origin:top}}.option{box-sizing:border-box;width:100%;min-height:40px;border-radius:var(--Border-2, 8px);padding:var(--Size-3, 12px) var(--Size-4, 16px);border:none;background:transparent;text-align:left;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:var(--font-family-01, 'Inter', sans-serif);cursor:pointer;display:flex;align-items:center;gap:var(--Size-2, 8px);transition:background 0.15s ease}.option:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.option:disabled,.disabled-option{opacity:0.5;cursor:not-allowed}.option.selected-option:not(.option-radio){background:var(--Primary-Primary-50, #fef8f2);color:var(--Primary-Primary-500, #f49a3d)}.option-group-title{padding:var(--Size-3, 12px) var(--Size-4, 16px);font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-medium, 500);color:var(--Gray-Gray-500, #69738c);list-style:none}.option-group{padding-left:var(--Size-6, 32px)}.sticky-search{position:sticky;top:calc(-1 * var(--Size-4, 16px));background:var(--Neutral-White, #ffffff);z-index:10;margin:calc(-1 * var(--Size-4, 16px)) calc(-1 * var(--Size-4, 16px)) 0;padding:var(--Size-2, 8px) var(--Size-4, 16px);border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2);list-style:none}.search-wrapper{display:flex;align-items:center;gap:8px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);padding:6px 10px;background:var(--Neutral-White, #ffffff)}.search-input{flex:1;border:none;outline:none;font-size:var(--font-size-s, 12px);font-family:var(--font-family-01, 'Inter', sans-serif);color:var(--Gray-Gray-700, #32394d);background:transparent}.search-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-clear{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}.multi-checkbox{width:18px;height:18px;min-width:18px;border-radius:var(--Border-1, 4px);border:2px solid var(--Gray-Gray-200, #c3c9d9);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.15s, border-color 0.15s}.multi-checkbox.checked{background:var(--Primary-Primary-500, #f49a3d);border-color:var(--Primary-Primary-500, #f49a3d)}.option-radio{display:flex;align-items:center;gap:12px}.option-radio.selected-option{border-radius:var(--Border-2, 8px);background:var(--Primary-Primary-50, #fef8f2);color:var(--Primary-Primary-500, #f49a3d)}.option-radio.selected-option .option-second-label{color:var(--Primary-Primary-500, #f49a3d)}.radio{width:20px;height:20px;min-width:20px;border-radius:50%;border:2px solid var(--Gray-Gray-200, #c3c9d9);display:flex;align-items:center;justify-content:center;flex-shrink:0}.radio.selected{border-color:var(--Primary-Primary-500, #f49a3d)}.circle{width:12px;height:12px;border-radius:50%;background:var(--Primary-Primary-500, #f49a3d)}.labels-container{display:flex;justify-content:space-between;width:100%;min-width:0}.option-image{width:24px;height:24px;border-radius:60px;object-fit:cover;flex-shrink:0}.small-image{width:20px;height:20px}.option-image-fallback{width:24px;height:24px;border-radius:60px;background:var(--Primary-Primary-500, #f49a3d);color:white;font-size:13px;font-weight:var(--font-weight-bold);display:flex;justify-content:center;align-items:center;flex-shrink:0}.small-image.option-image-fallback{width:20px;height:20px}.option-second-label{color:var(--Gray-Gray-700, #32394d);font-weight:var(--font-weight-bold);white-space:nowrap}.flag-placeholder{font-size:11px;font-weight:var(--font-weight-semibold);color:var(--Gray-Gray-500, #69738c);flex-shrink:0}.select-helper,.select-helper-error{display:flex;gap:var(--Size-1, 4px);align-items:center;margin-top:var(--Size-1, 4px)}.select-helper span{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.select-helper-error span{color:var(--Error-Error-500, #f46a6b);font-size:var(--font-size-xs, 10px)}.no-results{padding:var(--Size-3, 12px) var(--Size-4, 16px);color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 12px);list-style:none;text-align:center}`;
4
4
 
5
5
  const DropiSelect = class {
6
6
  constructor(hostRef) {
@@ -385,7 +385,7 @@ const DropiSelect = class {
385
385
  ]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (h("li", { class: "no-results" }, "Sin resultados"))));
386
386
  }
387
387
  render() {
388
- return (h("div", { key: '2ffb707c9b1ec87911291c4827e3cda0ccefcf03', class: "custom-select" }, !this.dropdownType && this.label && (h("label", { key: '0b6e64d4de57fef6ff81e81f41451da3dea7df6d', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && h("span", { key: '3edd33a38c8cc3a25935d4396b8d4a77e130be53', class: "asterisk" }, " *"))), h("div", { key: 'be30c67aa645ae4bdbdb13647308f3304fa7613e', class: "dropdown-container" }, this.dropdownType && this.label && (h("div", { key: 'a00fdc844f629744e621098a809578786c62d67a', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (h("div", { key: '831cf57d7ed507fe7ad8383ac3887a8455bf5552', class: "select-helper" }, h("span", { key: '1c631aaef6eda3249e21d0f743c7788b9af84b0c' }, this.textHelper))), this.hasError && this.errorText && (h("div", { key: '9fc5ece3a826027469a8f4ee6b3d530f45a2a81e', class: "select-helper-error" }, h("dropi-icon", { key: '5eb6a6da84bb42170c5cf002204dead37bcf756c', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), h("span", { key: '1e1dcdccdfe941c6a4e1926fcf976c177cb71617' }, this.errorText))), this.renderDropdown()));
388
+ return (h("div", { key: 'aadc390ca4cb204cd529b13fcd3f4dcad40693a7', class: "custom-select" }, !this.dropdownType && this.label && (h("label", { key: '26ab0fcf78f7f9c4c85e97bce2214225ba8667cb', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && h("span", { key: '5389aeb4e55045779439e5e79ed93c6df761bc53', class: "asterisk" }, " *"))), h("div", { key: 'e442f571c93f4895ff1610fa36434dba0f864328', class: "dropdown-container" }, this.dropdownType && this.label && (h("div", { key: '7bc098b873db053b9c8860ac77568e7308404583', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (h("div", { key: 'd1f99c6de156774be5da4d66e134548273194d5d', class: "select-helper" }, h("span", { key: '059c0fffa95109e7a91c72eb74f22d9b8b47200c' }, this.textHelper))), this.hasError && this.errorText && (h("div", { key: 'f4eaff9cf130eb4db28e1f8eb28c4514cf03a908', class: "select-helper-error" }, h("dropi-icon", { key: 'ad4d25c3d6aece7941d57608e1632b5888823433', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), h("span", { key: 'fe3ec25f82fde1545bfc06a63f98f9693bc16045' }, this.errorText))), this.renderDropdown()));
389
389
  }
390
390
  static get formAssociated() { return true; }
391
391
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"dropi-select.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,wrMAAwrM,CAAC;;MCyC1sM,WAAW,GAAA,MAAA;;;;;;;;;;;;;;;;;AAEH,IAAA,SAAS;AAEpB,IAAA,SAAS;AACT,IAAA,cAAc;IACd,mBAAmB,GAAG,KAAK;IAC3B,aAAa,GAAG,CAAC;;IAGA,KAAK,GAAW,EAAE;IAClB,WAAW,GAAW,QAAQ;;IAE9B,OAAO,GAAyC,EAAE;AAClD,IAAA,IAAI;IACJ,QAAQ,GAAY,KAAK;IACzB,QAAQ,GAAY,KAAK;IACzB,SAAS,GAAW,EAAE;IACtB,UAAU,GAAW,EAAE;IACvB,cAAc,GAAY,KAAK;;IAE/B,aAAa,GAAY,KAAK;;IAE9B,WAAW,GAAY,KAAK;;IAE5B,YAAY,GAAY,KAAK;;IAE9C,gBAAgB,GAAY,KAAK;;IAEhB,YAAY,GAAY,KAAK;;IAE9C,iBAAiB,GAAW,QAAQ;;IAEnB,OAAO,GAAW,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E,CACjB,EAGL,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,QAAQ,KAChC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,eAAe,EAAA,EACxB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAO,IAAI,CAAC,UAAU,CAAQ,CAC1B,CACP,EAGA,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,KAC9B,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,qBAAqB,EAAA,EAC9B,CAAA,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAY,IAAI,EAAC,gBAAgB,EAAC,SAAS,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,KAAK,EAAC,iBAAiB,EAAA,CAAG,EAC/F,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAO,IAAI,CAAC,SAAS,CAAQ,CACzB,CACP,EAGA,IAAI,CAAC,cAAc,EAAE,CAClB;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-select/dropi-select.css?tag=dropi-select&encapsulation=shadow","src/components/dropi-select/dropi-select.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n text-align: left;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n/* ── Wrapper ────────────────────────────────────────────────── */\n.custom-select {\n position: relative;\n width: 100%;\n}\n\n.custom-select label {\n display: block;\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-regular, 400);\n color: var(--Gray-Gray-600, #475066);\n}\n\n.disabled-label {\n color: var(--Gray-Gray-400, #858ea6) !important;\n}\n\n.asterisk {\n color: var(--Error-Error-500, #f46a6b);\n}\n\n/* ── Trigger row ────────────────────────────────────────────── */\n.dropdown-container {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.left-label {\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-m, 14px);\n white-space: nowrap;\n}\n\n/* ── Trigger button ─────────────────────────────────────────── */\n.select-button {\n box-sizing: border-box;\n width: 100%;\n height: 40px;\n padding: 0 0.75rem;\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n color: var(--Gray-Gray-500, #69738c);\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n display: flex;\n justify-content: space-between;\n align-items: center;\n text-align: left;\n cursor: pointer;\n transition: border-color 0.2s ease;\n gap: 8px;\n}\n\n.select-button:focus {\n outline: none;\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\n.select-button:disabled {\n border-color: var(--Gray-Gray-200, #c3c9d9);\n color: var(--Gray-Gray-400, #858ea6);\n background-color: var(--Gray-Gray-50, #f7f8fa);\n cursor: not-allowed;\n}\n\n.select-completed {\n border-color: var(--Gray-Gray-400, #858ea6);\n color: var(--Gray-Gray-600, #475066);\n}\n\n.select-button-error {\n border-color: var(--Error-Error-500, #f46a6b) !important;\n}\n\n.no-border {\n border: none !important;\n color: var(--Gray-Gray-600, #475066);\n padding: var(--Size-4, 16px);\n background-color: transparent !important;\n gap: var(--Size-2, 8px);\n}\n\n.no-border:disabled {\n background-color: transparent !important;\n}\n\n/* ── Button content ─────────────────────────────────────────── */\n.button-content {\n display: flex;\n align-items: center;\n gap: 8px;\n overflow: hidden;\n flex: 1;\n min-width: 0;\n}\n\n.elipsis {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* ── Dropdown overlay (fixed position) ──────────────────────── */\n.select-dropdown-overlay {\n position: fixed;\n max-height: 250px;\n overflow-y: auto;\n list-style: none;\n padding: var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);\n margin: 0;\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);\n z-index: var(--dropi-z-index-overlay, 11000);\n animation: dropdown-open 120ms ease-out;\n}\n\n.select-dropdown-overlay.within-modal {\n position: absolute;\n}\n\n@keyframes dropdown-open {\n from { opacity: 0; transform: scaleY(0.95); transform-origin: top; }\n to { opacity: 1; transform: scaleY(1); transform-origin: top; }\n}\n\n/* ── Options ────────────────────────────────────────────────── */\n.option {\n box-sizing: border-box;\n width: 100%;\n min-height: 40px;\n border-radius: var(--Border-2, 8px);\n padding: var(--Size-3, 12px) var(--Size-4, 16px);\n border: none;\n background: transparent;\n text-align: left;\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: var(--Size-2, 8px);\n transition: background 0.15s ease;\n}\n\n.option:hover:not(:disabled) {\n background: var(--Gray-Gray-50, #f7f8fa);\n}\n\n.option:disabled,\n.disabled-option {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.option.selected-option:not(.option-radio) {\n background: var(--Primary-Primary-50, #fef8f2);\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Grouped options ─────────────────────────────────────────── */\n.option-group-title {\n padding: var(--Size-3, 12px) var(--Size-4, 16px);\n font-size: var(--font-size-s, 12px);\n font-weight: var(--font-weight-medium, 500);\n color: var(--Gray-Gray-500, #69738c);\n list-style: none;\n}\n\n.option-group {\n padding-left: var(--Size-6, 32px);\n}\n\n/* ── Sticky search ───────────────────────────────────────────── */\n.sticky-search {\n position: sticky;\n top: calc(-1 * var(--Size-4, 16px));\n background: var(--Neutral-White, #ffffff);\n z-index: 10;\n margin: calc(-1 * var(--Size-4, 16px)) calc(-1 * var(--Size-4, 16px)) 0;\n padding: var(--Size-2, 8px) var(--Size-4, 16px);\n border-bottom: 1px solid var(--Gray-Gray-100, #e6eaf2);\n list-style: none;\n}\n\n.search-wrapper {\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n padding: 6px 10px;\n background: var(--Neutral-White, #ffffff);\n}\n\n.search-input {\n flex: 1;\n border: none;\n outline: none;\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n color: var(--Gray-Gray-700, #32394d);\n background: transparent;\n}\n\n.search-input::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n.search-clear {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n}\n\n/* ── Multi-select checkbox ───────────────────────────────────── */\n.multi-checkbox {\n width: 18px;\n height: 18px;\n min-width: 18px;\n border-radius: var(--Border-1, 4px);\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: background 0.15s, border-color 0.15s;\n}\n\n.multi-checkbox.checked {\n background: var(--Primary-Primary-500, #f49a3d);\n border-color: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Radio options ───────────────────────────────────────────── */\n.option-radio {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.option-radio.selected-option {\n border-radius: var(--Border-2, 8px);\n background: var(--Primary-Primary-50, #fef8f2);\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.option-radio.selected-option .option-second-label {\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.radio {\n width: 20px;\n height: 20px;\n min-width: 20px;\n border-radius: 50%;\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.radio.selected {\n border-color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.circle {\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--Primary-Primary-500, #f49a3d);\n}\n\n.labels-container {\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-width: 0;\n}\n\n.option-image {\n width: 24px;\n height: 24px;\n border-radius: 60px;\n object-fit: cover;\n flex-shrink: 0;\n}\n\n.small-image {\n width: 20px;\n height: 20px;\n}\n\n.option-image-fallback {\n width: 24px;\n height: 24px;\n border-radius: 60px;\n background: var(--Primary-Primary-500, #f49a3d);\n color: white;\n font-size: 13px;\n font-weight: var(--font-weight-bold);\n display: flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n}\n\n.small-image.option-image-fallback {\n width: 20px;\n height: 20px;\n}\n\n.option-second-label {\n color: var(--Gray-Gray-700, #32394d);\n font-weight: var(--font-weight-bold);\n white-space: nowrap;\n}\n\n/* ── Country flag placeholder ────────────────────────────────── */\n.flag-placeholder {\n font-size: 11px;\n font-weight: var(--font-weight-semibold);\n color: var(--Gray-Gray-500, #69738c);\n flex-shrink: 0;\n}\n\n/* ── Helper / error text ────────────────────────────────────── */\n.select-helper,\n.select-helper-error {\n display: flex;\n gap: var(--Size-1, 4px);\n align-items: center;\n margin-top: var(--Size-1, 4px);\n}\n\n.select-helper span {\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-xs, 10px);\n}\n\n.select-helper-error span {\n color: var(--Error-Error-500, #f46a6b);\n font-size: var(--font-size-xs, 10px);\n}\n\n/* ── No results ─────────────────────────────────────────────── */\n.no-results {\n padding: var(--Size-3, 12px) var(--Size-4, 16px);\n color: var(--Gray-Gray-400, #858ea6);\n font-size: var(--font-size-s, 12px);\n list-style: none;\n text-align: center;\n}\n","import {\n Component,\n Prop,\n State,\n Event,\n EventEmitter,\n Method,\n Watch,\n Listen,\n Element,\n AttachInternals,\n h,\n} from '@stencil/core';\nimport { SelectOption, SelectOptionGroup } from './select.types';\n\n/**\n * @component dropi-select\n * Feature-rich select with support for:\n * - Single / multi select\n * - Grouped options\n * - Search / filter\n * - Country flags\n * - Radio-style options with images\n * - Inline (dropdownType) or bordered trigger\n * - Native form association\n *\n * ## Usage\n * Options must be set via JS property (not HTML attribute) for object arrays:\n * ```js\n * document.querySelector('dropi-select').options = [\n * { id: 1, label: 'Option A' },\n * { id: 2, label: 'Option B' },\n * ];\n * ```\n */\n@Component({\n tag: 'dropi-select',\n styleUrl: 'dropi-select.css',\n shadow: true,\n formAssociated: true,\n})\nexport class DropiSelect {\n @Element() el: HTMLElement;\n @AttachInternals() internals: ElementInternals;\n\n private buttonRef!: HTMLButtonElement;\n private scrollDebounce: any;\n private hasEmittedScrollEnd = false;\n private lastScrollTop = 0;\n\n // ── Props ────────────────────────────────────────────────────\n @Prop({ mutable: true }) label: string = '';\n @Prop({ mutable: true }) placeholder: string = 'Select';\n /** Array of SelectOption or SelectOptionGroup */\n @Prop({ mutable: true }) options: SelectOption[] | SelectOptionGroup[] = [];\n @Prop({ reflect: true }) name!: string;\n @Prop({ reflect: true }) disabled: boolean = false;\n @Prop({ mutable: true }) hasError: boolean = false;\n @Prop({ mutable: true }) errorText: string = '';\n @Prop({ mutable: true }) textHelper: string = '';\n @Prop({ mutable: true }) showObligatory: boolean = false;\n /** Enables text search inside the dropdown */\n @Prop({ mutable: true }) searchEnabled: boolean = false;\n /** Allows selecting multiple options */\n @Prop({ mutable: true }) multiSelect: boolean = false;\n /** Renders trigger without border (inline/dropdown style) */\n @Prop({ mutable: true }) dropdownType: boolean = false;\n /** Show country flags next to option labels */\n @Prop() showCountryFlags: boolean = false;\n /** Renders options as radio buttons with optional image */\n @Prop({ mutable: true }) radioOptions: boolean = false;\n /** Placeholder inside the search field */\n @Prop() placeHolderSearch: string = 'Buscar';\n /** Icon name shown before the trigger label */\n @Prop({ mutable: true }) preIcon: string = '';\n /** Pre-select an option by id */\n @Prop({ mutable: true }) defaultSelectedId: string | number;\n /** Controlled selected option (single select) - matches Angular 'selectedOption' */\n @Prop({ mutable: true }) selectedOption: SelectOption | null = null;\n /** Custom CSS class for the dropdown overlay */\n @Prop() overlayClass: string = '';\n /** If true, uses absolute positioning instead of fixed (better for modals with transforms) */\n @Prop() withinModal: boolean = false;\n /**\n * Convenience object prop — matches Angular `selectProperties: SelectProperties`.\n * Fields: label, placeholder, options, showObligatory, textHelper,\n * searchEnabled, multiSelect, dropdownType, hasError, errorText,\n * radioOptions, preIcon.\n * When provided, its non-null fields override individual props.\n */\n @Prop() selectProperties: any = null;\n\n // ── State ────────────────────────────────────────────────────\n @State() private isOpen: boolean = false;\n @State() private _selectedOption: SelectOption | null = null;\n @State() private multiSelected: SelectOption[] = [];\n @State() private filteredOptions: SelectOption[] | SelectOptionGroup[] = [];\n @State() private searchTerm: string = '';\n @State() private dropdownStyle: { top: string; left: string; width: string } = {\n top: '0px', left: '0px', width: '0px',\n };\n\n // ── Events ───────────────────────────────────────────────────\n /** Emitted when an option is selected — matches Angular 'onChangeSelect' */\n @Event() dropiChangeSelect: EventEmitter<SelectOption | SelectOption[]>;\n /** Emitted when the selection is cleared — matches Angular 'onClear' */\n @Event() dropiClear: EventEmitter<void>;\n /** Emitted on search input — matches Angular 'onSearch' */\n @Event() dropiSearch: EventEmitter<string>;\n /** Emitted when the list is scrolled to the end — matches Angular 'scrolledToEnd' */\n @Event() dropiScrollEnd: EventEmitter<void>;\n /** Emitted on Enter key inside search — matches Angular 'onKeyEnter' */\n @Event() dropiKeyEnter: EventEmitter<KeyboardEvent>;\n\n // ── Lifecycle ────────────────────────────────────────────────\n componentWillLoad() {\n if (this.selectProperties) this.selectPropertiesChanged(this.selectProperties);\n this.normalizeOptions();\n this.filteredOptions = [...(this.options as any[])];\n this.applyDefaultSelection();\n }\n\n @Watch('selectProperties')\n selectPropertiesChanged(val: any) {\n if (!val) return;\n if (val.label !== undefined) this.label = val.label;\n if (val.placeholder !== undefined) this.placeholder = val.placeholder;\n if (val.options !== undefined) this.options = val.options;\n if (val.showObligatory !== undefined) this.showObligatory = val.showObligatory;\n if (val.textHelper !== undefined) this.textHelper = val.textHelper;\n if (val.searchEnabled !== undefined) this.searchEnabled = val.searchEnabled;\n if (val.multiSelect !== undefined) this.multiSelect = val.multiSelect;\n if (val.dropdownType !== undefined) this.dropdownType = val.dropdownType;\n if (val.hasError !== undefined) this.hasError = val.hasError;\n if (val.errorText !== undefined) this.errorText = val.errorText;\n if (val.radioOptions !== undefined) this.radioOptions = val.radioOptions;\n if (val.preIcon !== undefined) this.preIcon = val.preIcon;\n }\n\n @Watch('options')\n optionsChanged() {\n this.normalizeOptions();\n this.filteredOptions = [...(this.options as any[])];\n this.applyDefaultSelection();\n }\n\n private normalizeOptions() {\n if (!this.options) { this.options = []; return; }\n if (typeof this.options === 'string') {\n try { this.options = JSON.parse(this.options as any); } catch (_) { this.options = []; }\n }\n }\n\n @Watch('defaultSelectedId')\n defaultChanged(newId: string | number) {\n this.applyDefaultSelection(newId);\n }\n\n @Watch('selectedOption')\n valueChanged(v: SelectOption | null) {\n this._selectedOption = v;\n this.internals.setFormValue(v ? String(v.id) : '');\n }\n\n // ── Public Methods ───────────────────────────────────────────\n /** Select an option by its id */\n @Method()\n async setById(id: string | number) {\n const opt = (this.options as SelectOption[]).find(\n o => o.id === id || String(o.id) === String(id),\n );\n if (opt) this.selectOption(opt);\n }\n\n /** Select an option by its label */\n @Method()\n async setByLabel(label: string) {\n const opt = (this.options as SelectOption[]).find(o => o.label === label);\n if (opt) this.selectOption(opt);\n }\n\n /** Clear the current selection */\n @Method()\n async clearSelection() {\n this._selectedOption = null;\n this.multiSelected = [];\n this.internals.setFormValue('');\n this.dropiClear.emit();\n }\n\n /** Reset multi-select state and show a placeholder label */\n @Method()\n async resetMultiSelect(_placeholder?: string) {\n this.multiSelected = [];\n this.internals.setFormValue('');\n }\n\n // ── Scroll & Resize listeners ──────────────────────────────\n @Listen('scroll', { target: 'window', capture: true, passive: true })\n handleWindowScroll(e: Event) {\n if (!this.isOpen || this.withinModal) return;\n // When scroll originates inside shadow DOM, e.target is retargeted to the host element\n if (e.target === this.el) return;\n this.closeDropdown();\n }\n\n @Listen('resize', { target: 'window', passive: true })\n handleWindowResize() {\n if (this.isOpen && !this.withinModal) {\n this.closeDropdown();\n }\n }\n\n // ── Click outside ────────────────────────────────────────────\n @Listen('click', { target: 'document' })\n handleOutsideClick(e: MouseEvent) {\n if (this.isOpen && !e.composedPath().includes(this.el)) {\n this.closeDropdown();\n }\n }\n\n // ── Helpers ──────────────────────────────────────────────────\n private applyDefaultSelection(id?: string | number) {\n const targetId = id ?? this.defaultSelectedId;\n if (targetId === '' || targetId === undefined || targetId === null) return;\n const flat = this.flatOptions();\n const found = flat.find(o => o.id === targetId || String(o.id) === String(targetId));\n if (found) {\n this._selectedOption = found;\n this.internals.setFormValue(String(found.id));\n }\n }\n\n private flatOptions(): SelectOption[] {\n if (!this.options?.length) return [];\n if ('category' in this.options[0]) {\n return (this.options as SelectOptionGroup[]).flatMap(g => g.options);\n }\n return this.options as SelectOption[];\n }\n\n private get isGrouped(): boolean {\n return this.options?.length > 0 && 'category' in this.options[0];\n }\n\n private get triggerLabel(): string {\n if (this.multiSelect) {\n return this.multiSelected.length\n ? this.multiSelected.map(o => o.label).join(', ')\n : this.placeholder;\n }\n if (this._selectedOption) {\n return this.showCountryFlags && this._selectedOption.shortLabel\n ? this._selectedOption.shortLabel\n : this._selectedOption.label;\n }\n return this.placeholder;\n }\n\n // ── Dropdown positioning ─────────────────────────────────────\n private updateDropdownPosition() {\n if (!this.buttonRef) return;\n const rect = this.buttonRef.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const dropdownHeight = 250;\n const spaceBelow = viewportHeight - rect.bottom;\n const top = spaceBelow >= dropdownHeight\n ? rect.bottom + 4\n : rect.top - dropdownHeight - 4;\n\n this.dropdownStyle = {\n top: `${top}px`,\n left: `${rect.left}px`,\n width: `${rect.width}px`,\n };\n }\n\n private openDropdown() {\n if (this.withinModal) {\n this.dropdownStyle = {\n top: `${this.el.offsetHeight}px`,\n left: '0px',\n width: '100%',\n };\n } else {\n this.updateDropdownPosition();\n }\n this.isOpen = true;\n\n if (this.searchEnabled) {\n setTimeout(() => {\n const searchInput = this.el.shadowRoot?.querySelector('.search-input') as HTMLInputElement;\n searchInput?.focus();\n }, 50);\n }\n }\n\n private closeDropdown() {\n this.isOpen = false;\n this.searchTerm = '';\n this.filteredOptions = [...(this.options as any[])];\n }\n\n private toggleDropdown() {\n this.isOpen ? this.closeDropdown() : this.openDropdown();\n }\n\n // ── Option selection ─────────────────────────────────────────\n private selectOption(option: SelectOption) {\n if (option.disabled) return;\n\n if (this.multiSelect) {\n const idx = this.multiSelected.findIndex(o => o.id === option.id);\n if (idx >= 0) {\n this.multiSelected = this.multiSelected.filter(o => o.id !== option.id);\n } else {\n this.multiSelected = [...this.multiSelected, option];\n }\n this.internals.setFormValue(this.multiSelected.map(o => o.id).join(','));\n this.dropiChangeSelect.emit([...this.multiSelected]);\n } else {\n this._selectedOption = option;\n this.internals.setFormValue(String(option.id));\n this.dropiChangeSelect.emit(option);\n this.closeDropdown();\n }\n }\n\n private isOptionChecked(option: SelectOption): boolean {\n return this.multiSelected.some(o => o.id === option.id);\n }\n\n // ── Search ───────────────────────────────────────────────────\n private handleSearch(term: string) {\n this.searchTerm = term;\n this.dropiSearch.emit(term);\n const lower = term.toLowerCase().trim();\n\n if (!lower) {\n this.filteredOptions = [...(this.options as any[])];\n return;\n }\n\n if (this.isGrouped) {\n this.filteredOptions = (this.options as SelectOptionGroup[])\n .map(g => ({ ...g, options: g.options.filter(o => o.label.toLowerCase().includes(lower)) }))\n .filter(g => g.options.length > 0);\n } else {\n this.filteredOptions = (this.options as SelectOption[]).filter(\n o => o.label.toLowerCase().includes(lower),\n );\n }\n }\n\n // ── Scroll to end ─────────────────────────────────────────────\n private handleScroll(e: Event) {\n const el = e.target as HTMLElement;\n clearTimeout(this.scrollDebounce);\n this.scrollDebounce = setTimeout(() => {\n if (!el) return;\n const distFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;\n const threshold = Math.min(50, el.clientHeight / 2);\n\n if (el.scrollTop < this.lastScrollTop) this.hasEmittedScrollEnd = false;\n this.lastScrollTop = el.scrollTop;\n\n if (distFromBottom <= threshold && !this.hasEmittedScrollEnd) {\n this.dropiScrollEnd.emit();\n this.hasEmittedScrollEnd = true;\n setTimeout(() => { this.hasEmittedScrollEnd = false; }, 1000);\n }\n }, 100);\n }\n\n // ── Render helpers ───────────────────────────────────────────\n private renderTrigger() {\n const isCompleted = this.multiSelect ? this.multiSelected.length > 0 : !!this._selectedOption;\n const iconColor = this.disabled ? 'Gray-Gray-300' : this.dropdownType ? 'Gray-Gray-600' : 'Gray-Gray-400';\n const iconSize = this.dropdownType ? '24px' : '20px';\n\n return (\n <button\n type=\"button\"\n class={{\n 'select-button': true,\n 'select-completed': isCompleted,\n 'select-button-error': this.hasError,\n 'no-border': this.dropdownType,\n }}\n disabled={this.disabled}\n ref={el => (this.buttonRef = el as HTMLButtonElement)}\n onClick={() => this.toggleDropdown()}\n >\n <div class={{\n 'button-content': true,\n 'option-radio': this.radioOptions && !!this._selectedOption && !this.multiSelect,\n }}>\n {this.preIcon && (\n <dropi-icon name={this.preIcon} iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-500\" />\n )}\n\n {/* Radio option selected preview */}\n {this.radioOptions && this._selectedOption && !this.multiSelect && [\n this._selectedOption.imageUrl && !this._selectedOption.isFallback\n ? <img class=\"option-image small-image\" src={this._selectedOption.imageUrl} alt=\"\" onError={() => { if (this._selectedOption) this._selectedOption = { ...this._selectedOption, isFallback: true }; }} />\n : this._selectedOption.isFallback\n ? <span class=\"option-image-fallback small-image\">{this._selectedOption.label.charAt(0).toUpperCase()}</span>\n : null,\n <div class=\"labels-container elipsis\">\n <span>{this._selectedOption.label}</span>\n {this._selectedOption.secondLabel && <span class=\"option-second-label\">{this._selectedOption.secondLabel}</span>}\n </div>,\n ]}\n\n {/* Standard label */}\n {!(this.radioOptions && this._selectedOption && !this.multiSelect) && (\n <div class=\"elipsis\">{this.triggerLabel}</div>\n )}\n </div>\n\n <dropi-icon\n name={this.isOpen ? 'Dropdown-up' : 'Dropdown-down'}\n iconWidth={iconSize}\n iconHeight={iconSize}\n color={iconColor}\n />\n </button>\n );\n }\n\n private renderOption(option: SelectOption) {\n const isSelected = this.multiSelect\n ? this.isOptionChecked(option)\n : this._selectedOption?.id === option.id;\n\n return (\n <li key={option.id}>\n <button\n type=\"button\"\n class={{\n option: true,\n 'option-radio': this.radioOptions,\n 'option-with-flag': this.showCountryFlags && !!option.countryCode,\n 'disabled-option': !!option.disabled,\n 'selected-option': isSelected,\n }}\n disabled={option.disabled}\n onClick={() => this.selectOption(option)}\n >\n {this.multiSelect && (\n <span class={{ 'multi-checkbox': true, checked: isSelected }}>\n {isSelected && (\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M20.6 5.7L9.1 17.2c-.2.2-.5.3-.8.3s-.6-.1-.8-.3L3 12.8c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l3.9 3.9L19.2 4.3c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4z\" fill=\"white\"/>\n </svg>\n )}\n </span>\n )}\n\n {this.radioOptions && (\n <div class={{ radio: true, selected: isSelected }}>\n {isSelected && <div class=\"circle\" />}\n </div>\n )}\n\n {!this.radioOptions && option.preIcon && (\n <dropi-icon name={option.preIcon} iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-500\" />\n )}\n\n {this.radioOptions && option.imageUrl && !option.isFallback && (\n <img class=\"option-image\" src={option.imageUrl} alt=\"\" onError={() => { option.isFallback = true; this.options = [...this.options as any[]]; }} />\n )}\n {this.radioOptions && option.isFallback && (\n <span class=\"option-image-fallback\">{option.label.charAt(0).toUpperCase()}</span>\n )}\n\n {this.showCountryFlags && option.countryCode && (\n <span class=\"flag-placeholder\">{option.countryCode}</span>\n )}\n\n {this.radioOptions\n ? (\n <div class=\"labels-container\">\n <span class=\"elipsis\">{option.label}</span>\n {option.secondLabel && <span class=\"option-second-label\">{option.secondLabel}</span>}\n </div>\n )\n : (\n <span class=\"elipsis\">\n {this.showCountryFlags && option.shortLabel ? option.shortLabel : option.label}\n </span>\n )\n }\n </button>\n </li>\n );\n }\n\n private renderDropdown() {\n if (!this.isOpen) return null;\n\n return (\n <ul\n class={`select-dropdown-overlay ${this.overlayClass} ${this.withinModal ? 'within-modal' : ''}`}\n style={this.dropdownStyle}\n onScroll={(e) => this.handleScroll(e)}\n >\n {/* Search */}\n {this.searchEnabled && (\n <li class=\"sticky-search\">\n <div class=\"search-wrapper\">\n <dropi-icon name=\"Search\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />\n <input\n class=\"search-input\"\n type=\"text\"\n placeholder={this.placeHolderSearch}\n value={this.searchTerm}\n onInput={(e) => this.handleSearch((e.target as HTMLInputElement).value)}\n onKeyDown={(e) => { if (e.key === 'Enter') this.dropiKeyEnter.emit(e as KeyboardEvent); }}\n />\n {this.searchTerm && (\n <button type=\"button\" class=\"search-clear\" onClick={() => this.handleSearch('')}>\n <dropi-icon name=\"Close\" iconWidth=\"14px\" iconHeight=\"14px\" color=\"Gray-Gray-400\" />\n </button>\n )}\n </div>\n </li>\n )}\n\n {/* Grouped options */}\n {this.isGrouped && (this.filteredOptions as SelectOptionGroup[]).map(group => [\n <li class=\"option-group-title\">{group.category}</li>,\n ...group.options.map(opt => (\n <li key={opt.id}>\n <button\n type=\"button\"\n class={{ option: true, 'option-group': true, 'disabled-option': !!opt.disabled }}\n disabled={opt.disabled}\n onClick={() => this.selectOption(opt)}\n >\n {opt.preIcon && <dropi-icon name={opt.preIcon} iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-500\" />}\n <span class=\"elipsis\">{opt.label}</span>\n </button>\n </li>\n )),\n ])}\n\n {/* Flat options (single or multi) */}\n {!this.isGrouped && (this.filteredOptions as SelectOption[]).map(opt => this.renderOption(opt))}\n\n {/* Empty state */}\n {(this.filteredOptions as any[]).length === 0 && (\n <li class=\"no-results\">Sin resultados</li>\n )}\n </ul>\n );\n }\n\n render() {\n return (\n <div class=\"custom-select\">\n {/* Top label */}\n {!this.dropdownType && this.label && (\n <label class={{ 'disabled-label': this.disabled }}>\n {this.label}\n {this.showObligatory && !this.disabled && <span class=\"asterisk\"> *</span>}\n </label>\n )}\n\n {/* Trigger row */}\n <div class=\"dropdown-container\">\n {this.dropdownType && this.label && (\n <div class=\"left-label\">{this.label}</div>\n )}\n {this.renderTrigger()}\n </div>\n\n {/* Helper text */}\n {this.textHelper && !this.hasError && (\n <div class=\"select-helper\">\n <span>{this.textHelper}</span>\n </div>\n )}\n\n {/* Error text */}\n {this.hasError && this.errorText && (\n <div class=\"select-helper-error\">\n <dropi-icon name=\"Warning-circle\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Error-Error-500\" />\n <span>{this.errorText}</span>\n </div>\n )}\n\n {/* Dropdown portal — fixed position */}\n {this.renderDropdown()}\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"dropi-select.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,s3MAAs3M,CAAC;;MCyCx4M,WAAW,GAAA,MAAA;;;;;;;;;;;;;;;;;AAEH,IAAA,SAAS;AAEpB,IAAA,SAAS;AACT,IAAA,cAAc;IACd,mBAAmB,GAAG,KAAK;IAC3B,aAAa,GAAG,CAAC;;IAGA,KAAK,GAAW,EAAE;IAClB,WAAW,GAAW,QAAQ;;IAE9B,OAAO,GAAyC,EAAE;AAClD,IAAA,IAAI;IACJ,QAAQ,GAAY,KAAK;IACzB,QAAQ,GAAY,KAAK;IACzB,SAAS,GAAW,EAAE;IACtB,UAAU,GAAW,EAAE;IACvB,cAAc,GAAY,KAAK;;IAE/B,aAAa,GAAY,KAAK;;IAE9B,WAAW,GAAY,KAAK;;IAE5B,YAAY,GAAY,KAAK;;IAE9C,gBAAgB,GAAY,KAAK;;IAEhB,YAAY,GAAY,KAAK;;IAE9C,iBAAiB,GAAW,QAAQ;;IAEnB,OAAO,GAAW,EAAE;;AAEpB,IAAA,iBAAiB;;IAEjB,cAAc,GAAwB,IAAI;;IAE3D,YAAY,GAAW,EAAE;;IAEzB,WAAW,GAAY,KAAK;AACpC;;;;;;AAMG;IACK,gBAAgB,GAAQ,IAAI;;IAGnB,MAAM,GAAY,K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AA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAO,IAAI,CAAC,UAAU,CAAQ,CAC1B,CACP,EAGA,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,KAC9B,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,qBAAqB,EAAA,EAC9B,CAAA,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAY,IAAI,EAAC,gBAAgB,EAAC,SAAS,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,KAAK,EAAC,iBAAiB,EAAA,CAAG,EAC/F,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAO,IAAI,CAAC,SAAS,CAAQ,CACzB,CACP,EAGA,IAAI,CAAC,cAAc,EAAE,CAClB;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-select/dropi-select.css?tag=dropi-select&encapsulation=shadow","src/components/dropi-select/dropi-select.tsx"],"sourcesContent":[":host {\nbutton, input, select, textarea { font-family: var(--font-family-01, 'Inter', sans-serif); }\n display: block;\n width: 100%;\n text-align: left;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n/* ── Wrapper ────────────────────────────────────────────────── */\n.custom-select {\n position: relative;\n width: 100%;\n}\n\n.custom-select label {\n display: block;\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-regular, 400);\n color: var(--Gray-Gray-600, #475066);\n}\n\n.disabled-label {\n color: var(--Gray-Gray-400, #858ea6) !important;\n}\n\n.asterisk {\n color: var(--Error-Error-500, #f46a6b);\n}\n\n/* ── Trigger row ────────────────────────────────────────────── */\n.dropdown-container {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.left-label {\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-m, 14px);\n white-space: nowrap;\n}\n\n/* ── Trigger button ─────────────────────────────────────────── */\n.select-button {\n box-sizing: border-box;\n width: 100%;\n height: 40px;\n padding: 0 0.75rem;\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n color: var(--Gray-Gray-500, #69738c);\n font-size: var(--font-size-s, 12px);\n font-family: var(--font-family-01, 'Inter', sans-serif);\n display: flex;\n justify-content: space-between;\n align-items: center;\n text-align: left;\n cursor: pointer;\n transition: border-color 0.2s ease;\n gap: 8px;\n}\n\n.select-button:focus {\n outline: none;\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\n.select-button:disabled {\n border-color: var(--Gray-Gray-200, #c3c9d9);\n color: var(--Gray-Gray-400, #858ea6);\n background-color: var(--Gray-Gray-50, #f7f8fa);\n cursor: not-allowed;\n}\n\n.select-completed {\n border-color: var(--Gray-Gray-400, #858ea6);\n color: var(--Gray-Gray-600, #475066);\n}\n\n.select-button-error {\n border-color: var(--Error-Error-500, #f46a6b) !important;\n}\n\n.no-border {\n border: none !important;\n color: var(--Gray-Gray-600, #475066);\n padding: var(--Size-4, 16px);\n background-color: transparent !important;\n gap: var(--Size-2, 8px);\n}\n\n.no-border:disabled {\n background-color: transparent !important;\n}\n\n/* ── Button content ─────────────────────────────────────────── */\n.button-content {\n display: flex;\n align-items: center;\n gap: 8px;\n overflow: hidden;\n flex: 1;\n min-width: 0;\n}\n\n.elipsis {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* ── Dropdown overlay (fixed position) ──────────────────────── */\n.select-dropdown-overlay {\n position: fixed;\n max-height: 250px;\n overflow-y: auto;\n list-style: none;\n padding: var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);\n margin: 0;\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);\n z-index: var(--dropi-z-index-overlay, 11000);\n animation: dropdown-open 120ms ease-out;\n}\n\n.select-dropdown-overlay.within-modal {\n position: absolute;\n}\n\n@keyframes dropdown-open {\n from { opacity: 0; transform: scaleY(0.95); transform-origin: top; }\n to { opacity: 1; transform: scaleY(1); transform-origin: top; }\n}\n\n/* ── Options ────────────────────────────────────────────────── */\n.option {\n box-sizing: border-box;\n width: 100%;\n min-height: 40px;\n border-radius: var(--Border-2, 8px);\n padding: var(--Size-3, 12px) var(--Size-4, 16px);\n border: none;\n background: transparent;\n text-align: left;\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-s, 12px);\n font-family: var(--font-family-01, 'Inter', sans-serif);\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: var(--Size-2, 8px);\n transition: background 0.15s ease;\n}\n\n.option:hover:not(:disabled) {\n background: var(--Gray-Gray-50, #f7f8fa);\n}\n\n.option:disabled,\n.disabled-option {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.option.selected-option:not(.option-radio) {\n background: var(--Primary-Primary-50, #fef8f2);\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Grouped options ─────────────────────────────────────────── */\n.option-group-title {\n padding: var(--Size-3, 12px) var(--Size-4, 16px);\n font-size: var(--font-size-s, 12px);\n font-weight: var(--font-weight-medium, 500);\n color: var(--Gray-Gray-500, #69738c);\n list-style: none;\n}\n\n.option-group {\n padding-left: var(--Size-6, 32px);\n}\n\n/* ── Sticky search ───────────────────────────────────────────── */\n.sticky-search {\n position: sticky;\n top: calc(-1 * var(--Size-4, 16px));\n background: var(--Neutral-White, #ffffff);\n z-index: 10;\n margin: calc(-1 * var(--Size-4, 16px)) calc(-1 * var(--Size-4, 16px)) 0;\n padding: var(--Size-2, 8px) var(--Size-4, 16px);\n border-bottom: 1px solid var(--Gray-Gray-100, #e6eaf2);\n list-style: none;\n}\n\n.search-wrapper {\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n padding: 6px 10px;\n background: var(--Neutral-White, #ffffff);\n}\n\n.search-input {\n flex: 1;\n border: none;\n outline: none;\n font-size: var(--font-size-s, 12px);\n font-family: var(--font-family-01, 'Inter', sans-serif);\n color: var(--Gray-Gray-700, #32394d);\n background: transparent;\n}\n\n.search-input::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n.search-clear {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n}\n\n/* ── Multi-select checkbox ───────────────────────────────────── */\n.multi-checkbox {\n width: 18px;\n height: 18px;\n min-width: 18px;\n border-radius: var(--Border-1, 4px);\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: background 0.15s, border-color 0.15s;\n}\n\n.multi-checkbox.checked {\n background: var(--Primary-Primary-500, #f49a3d);\n border-color: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Radio options ───────────────────────────────────────────── */\n.option-radio {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.option-radio.selected-option {\n border-radius: var(--Border-2, 8px);\n background: var(--Primary-Primary-50, #fef8f2);\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.option-radio.selected-option .option-second-label {\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.radio {\n width: 20px;\n height: 20px;\n min-width: 20px;\n border-radius: 50%;\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.radio.selected {\n border-color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.circle {\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--Primary-Primary-500, #f49a3d);\n}\n\n.labels-container {\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-width: 0;\n}\n\n.option-image {\n width: 24px;\n height: 24px;\n border-radius: 60px;\n object-fit: cover;\n flex-shrink: 0;\n}\n\n.small-image {\n width: 20px;\n height: 20px;\n}\n\n.option-image-fallback {\n width: 24px;\n height: 24px;\n border-radius: 60px;\n background: var(--Primary-Primary-500, #f49a3d);\n color: white;\n font-size: 13px;\n font-weight: var(--font-weight-bold);\n display: flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n}\n\n.small-image.option-image-fallback {\n width: 20px;\n height: 20px;\n}\n\n.option-second-label {\n color: var(--Gray-Gray-700, #32394d);\n font-weight: var(--font-weight-bold);\n white-space: nowrap;\n}\n\n/* ── Country flag placeholder ────────────────────────────────── */\n.flag-placeholder {\n font-size: 11px;\n font-weight: var(--font-weight-semibold);\n color: var(--Gray-Gray-500, #69738c);\n flex-shrink: 0;\n}\n\n/* ── Helper / error text ────────────────────────────────────── */\n.select-helper,\n.select-helper-error {\n display: flex;\n gap: var(--Size-1, 4px);\n align-items: center;\n margin-top: var(--Size-1, 4px);\n}\n\n.select-helper span {\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-xs, 10px);\n}\n\n.select-helper-error span {\n color: var(--Error-Error-500, #f46a6b);\n font-size: var(--font-size-xs, 10px);\n}\n\n/* ── No results ─────────────────────────────────────────────── */\n.no-results {\n padding: var(--Size-3, 12px) var(--Size-4, 16px);\n color: var(--Gray-Gray-400, #858ea6);\n font-size: var(--font-size-s, 12px);\n list-style: none;\n text-align: center;\n}\n","import {\n Component,\n Prop,\n State,\n Event,\n EventEmitter,\n Method,\n Watch,\n Listen,\n Element,\n AttachInternals,\n h,\n} from '@stencil/core';\nimport { SelectOption, SelectOptionGroup } from './select.types';\n\n/**\n * @component dropi-select\n * Feature-rich select with support for:\n * - Single / multi select\n * - Grouped options\n * - Search / filter\n * - Country flags\n * - Radio-style options with images\n * - Inline (dropdownType) or bordered trigger\n * - Native form association\n *\n * ## Usage\n * Options must be set via JS property (not HTML attribute) for object arrays:\n * ```js\n * document.querySelector('dropi-select').options = [\n * { id: 1, label: 'Option A' },\n * { id: 2, label: 'Option B' },\n * ];\n * ```\n */\n@Component({\n tag: 'dropi-select',\n styleUrl: 'dropi-select.css',\n shadow: true,\n formAssociated: true,\n})\nexport class DropiSelect {\n @Element() el: HTMLElement;\n @AttachInternals() internals: ElementInternals;\n\n private buttonRef!: HTMLButtonElement;\n private scrollDebounce: any;\n private hasEmittedScrollEnd = false;\n private lastScrollTop = 0;\n\n // ── Props ────────────────────────────────────────────────────\n @Prop({ mutable: true }) label: string = '';\n @Prop({ mutable: true }) placeholder: string = 'Select';\n /** Array of SelectOption or SelectOptionGroup */\n @Prop({ mutable: true }) options: SelectOption[] | SelectOptionGroup[] = [];\n @Prop({ reflect: true }) name!: string;\n @Prop({ reflect: true }) disabled: boolean = false;\n @Prop({ mutable: true }) hasError: boolean = false;\n @Prop({ mutable: true }) errorText: string = '';\n @Prop({ mutable: true }) textHelper: string = '';\n @Prop({ mutable: true }) showObligatory: boolean = false;\n /** Enables text search inside the dropdown */\n @Prop({ mutable: true }) searchEnabled: boolean = false;\n /** Allows selecting multiple options */\n @Prop({ mutable: true }) multiSelect: boolean = false;\n /** Renders trigger without border (inline/dropdown style) */\n @Prop({ mutable: true }) dropdownType: boolean = false;\n /** Show country flags next to option labels */\n @Prop() showCountryFlags: boolean = false;\n /** Renders options as radio buttons with optional image */\n @Prop({ mutable: true }) radioOptions: boolean = false;\n /** Placeholder inside the search field */\n @Prop() placeHolderSearch: string = 'Buscar';\n /** Icon name shown before the trigger label */\n @Prop({ mutable: true }) preIcon: string = '';\n /** Pre-select an option by id */\n @Prop({ mutable: true }) defaultSelectedId: string | number;\n /** Controlled selected option (single select) - matches Angular 'selectedOption' */\n @Prop({ mutable: true }) selectedOption: SelectOption | null = null;\n /** Custom CSS class for the dropdown overlay */\n @Prop() overlayClass: string = '';\n /** If true, uses absolute positioning instead of fixed (better for modals with transforms) */\n @Prop() withinModal: boolean = false;\n /**\n * Convenience object prop — matches Angular `selectProperties: SelectProperties`.\n * Fields: label, placeholder, options, showObligatory, textHelper,\n * searchEnabled, multiSelect, dropdownType, hasError, errorText,\n * radioOptions, preIcon.\n * When provided, its non-null fields override individual props.\n */\n @Prop() selectProperties: any = null;\n\n // ── State ────────────────────────────────────────────────────\n @State() private isOpen: boolean = false;\n @State() private _selectedOption: SelectOption | null = null;\n @State() private multiSelected: SelectOption[] = [];\n @State() private filteredOptions: SelectOption[] | SelectOptionGroup[] = [];\n @State() private searchTerm: string = '';\n @State() private dropdownStyle: { top: string; left: string; width: string } = {\n top: '0px', left: '0px', width: '0px',\n };\n\n // ── Events ───────────────────────────────────────────────────\n /** Emitted when an option is selected — matches Angular 'onChangeSelect' */\n @Event() dropiChangeSelect: EventEmitter<SelectOption | SelectOption[]>;\n /** Emitted when the selection is cleared — matches Angular 'onClear' */\n @Event() dropiClear: EventEmitter<void>;\n /** Emitted on search input — matches Angular 'onSearch' */\n @Event() dropiSearch: EventEmitter<string>;\n /** Emitted when the list is scrolled to the end — matches Angular 'scrolledToEnd' */\n @Event() dropiScrollEnd: EventEmitter<void>;\n /** Emitted on Enter key inside search — matches Angular 'onKeyEnter' */\n @Event() dropiKeyEnter: EventEmitter<KeyboardEvent>;\n\n // ── Lifecycle ────────────────────────────────────────────────\n componentWillLoad() {\n if (this.selectProperties) this.selectPropertiesChanged(this.selectProperties);\n this.normalizeOptions();\n this.filteredOptions = [...(this.options as any[])];\n this.applyDefaultSelection();\n }\n\n @Watch('selectProperties')\n selectPropertiesChanged(val: any) {\n if (!val) return;\n if (val.label !== undefined) this.label = val.label;\n if (val.placeholder !== undefined) this.placeholder = val.placeholder;\n if (val.options !== undefined) this.options = val.options;\n if (val.showObligatory !== undefined) this.showObligatory = val.showObligatory;\n if (val.textHelper !== undefined) this.textHelper = val.textHelper;\n if (val.searchEnabled !== undefined) this.searchEnabled = val.searchEnabled;\n if (val.multiSelect !== undefined) this.multiSelect = val.multiSelect;\n if (val.dropdownType !== undefined) this.dropdownType = val.dropdownType;\n if (val.hasError !== undefined) this.hasError = val.hasError;\n if (val.errorText !== undefined) this.errorText = val.errorText;\n if (val.radioOptions !== undefined) this.radioOptions = val.radioOptions;\n if (val.preIcon !== undefined) this.preIcon = val.preIcon;\n }\n\n @Watch('options')\n optionsChanged() {\n this.normalizeOptions();\n this.filteredOptions = [...(this.options as any[])];\n this.applyDefaultSelection();\n }\n\n private normalizeOptions() {\n if (!this.options) { this.options = []; return; }\n if (typeof this.options === 'string') {\n try { this.options = JSON.parse(this.options as any); } catch (_) { this.options = []; }\n }\n }\n\n @Watch('defaultSelectedId')\n defaultChanged(newId: string | number) {\n this.applyDefaultSelection(newId);\n }\n\n @Watch('selectedOption')\n valueChanged(v: SelectOption | null) {\n this._selectedOption = v;\n this.internals.setFormValue(v ? String(v.id) : '');\n }\n\n // ── Public Methods ───────────────────────────────────────────\n /** Select an option by its id */\n @Method()\n async setById(id: string | number) {\n const opt = (this.options as SelectOption[]).find(\n o => o.id === id || String(o.id) === String(id),\n );\n if (opt) this.selectOption(opt);\n }\n\n /** Select an option by its label */\n @Method()\n async setByLabel(label: string) {\n const opt = (this.options as SelectOption[]).find(o => o.label === label);\n if (opt) this.selectOption(opt);\n }\n\n /** Clear the current selection */\n @Method()\n async clearSelection() {\n this._selectedOption = null;\n this.multiSelected = [];\n this.internals.setFormValue('');\n this.dropiClear.emit();\n }\n\n /** Reset multi-select state and show a placeholder label */\n @Method()\n async resetMultiSelect(_placeholder?: string) {\n this.multiSelected = [];\n this.internals.setFormValue('');\n }\n\n // ── Scroll & Resize listeners ──────────────────────────────\n @Listen('scroll', { target: 'window', capture: true, passive: true })\n handleWindowScroll(e: Event) {\n if (!this.isOpen || this.withinModal) return;\n // When scroll originates inside shadow DOM, e.target is retargeted to the host element\n if (e.target === this.el) return;\n this.closeDropdown();\n }\n\n @Listen('resize', { target: 'window', passive: true })\n handleWindowResize() {\n if (this.isOpen && !this.withinModal) {\n this.closeDropdown();\n }\n }\n\n // ── Click outside ────────────────────────────────────────────\n @Listen('click', { target: 'document' })\n handleOutsideClick(e: MouseEvent) {\n if (this.isOpen && !e.composedPath().includes(this.el)) {\n this.closeDropdown();\n }\n }\n\n // ── Helpers ──────────────────────────────────────────────────\n private applyDefaultSelection(id?: string | number) {\n const targetId = id ?? this.defaultSelectedId;\n if (targetId === '' || targetId === undefined || targetId === null) return;\n const flat = this.flatOptions();\n const found = flat.find(o => o.id === targetId || String(o.id) === String(targetId));\n if (found) {\n this._selectedOption = found;\n this.internals.setFormValue(String(found.id));\n }\n }\n\n private flatOptions(): SelectOption[] {\n if (!this.options?.length) return [];\n if ('category' in this.options[0]) {\n return (this.options as SelectOptionGroup[]).flatMap(g => g.options);\n }\n return this.options as SelectOption[];\n }\n\n private get isGrouped(): boolean {\n return this.options?.length > 0 && 'category' in this.options[0];\n }\n\n private get triggerLabel(): string {\n if (this.multiSelect) {\n return this.multiSelected.length\n ? this.multiSelected.map(o => o.label).join(', ')\n : this.placeholder;\n }\n if (this._selectedOption) {\n return this.showCountryFlags && this._selectedOption.shortLabel\n ? this._selectedOption.shortLabel\n : this._selectedOption.label;\n }\n return this.placeholder;\n }\n\n // ── Dropdown positioning ─────────────────────────────────────\n private updateDropdownPosition() {\n if (!this.buttonRef) return;\n const rect = this.buttonRef.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const dropdownHeight = 250;\n const spaceBelow = viewportHeight - rect.bottom;\n const top = spaceBelow >= dropdownHeight\n ? rect.bottom + 4\n : rect.top - dropdownHeight - 4;\n\n this.dropdownStyle = {\n top: `${top}px`,\n left: `${rect.left}px`,\n width: `${rect.width}px`,\n };\n }\n\n private openDropdown() {\n if (this.withinModal) {\n this.dropdownStyle = {\n top: `${this.el.offsetHeight}px`,\n left: '0px',\n width: '100%',\n };\n } else {\n this.updateDropdownPosition();\n }\n this.isOpen = true;\n\n if (this.searchEnabled) {\n setTimeout(() => {\n const searchInput = this.el.shadowRoot?.querySelector('.search-input') as HTMLInputElement;\n searchInput?.focus();\n }, 50);\n }\n }\n\n private closeDropdown() {\n this.isOpen = false;\n this.searchTerm = '';\n this.filteredOptions = [...(this.options as any[])];\n }\n\n private toggleDropdown() {\n this.isOpen ? this.closeDropdown() : this.openDropdown();\n }\n\n // ── Option selection ─────────────────────────────────────────\n private selectOption(option: SelectOption) {\n if (option.disabled) return;\n\n if (this.multiSelect) {\n const idx = this.multiSelected.findIndex(o => o.id === option.id);\n if (idx >= 0) {\n this.multiSelected = this.multiSelected.filter(o => o.id !== option.id);\n } else {\n this.multiSelected = [...this.multiSelected, option];\n }\n this.internals.setFormValue(this.multiSelected.map(o => o.id).join(','));\n this.dropiChangeSelect.emit([...this.multiSelected]);\n } else {\n this._selectedOption = option;\n this.internals.setFormValue(String(option.id));\n this.dropiChangeSelect.emit(option);\n this.closeDropdown();\n }\n }\n\n private isOptionChecked(option: SelectOption): boolean {\n return this.multiSelected.some(o => o.id === option.id);\n }\n\n // ── Search ───────────────────────────────────────────────────\n private handleSearch(term: string) {\n this.searchTerm = term;\n this.dropiSearch.emit(term);\n const lower = term.toLowerCase().trim();\n\n if (!lower) {\n this.filteredOptions = [...(this.options as any[])];\n return;\n }\n\n if (this.isGrouped) {\n this.filteredOptions = (this.options as SelectOptionGroup[])\n .map(g => ({ ...g, options: g.options.filter(o => o.label.toLowerCase().includes(lower)) }))\n .filter(g => g.options.length > 0);\n } else {\n this.filteredOptions = (this.options as SelectOption[]).filter(\n o => o.label.toLowerCase().includes(lower),\n );\n }\n }\n\n // ── Scroll to end ─────────────────────────────────────────────\n private handleScroll(e: Event) {\n const el = e.target as HTMLElement;\n clearTimeout(this.scrollDebounce);\n this.scrollDebounce = setTimeout(() => {\n if (!el) return;\n const distFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;\n const threshold = Math.min(50, el.clientHeight / 2);\n\n if (el.scrollTop < this.lastScrollTop) this.hasEmittedScrollEnd = false;\n this.lastScrollTop = el.scrollTop;\n\n if (distFromBottom <= threshold && !this.hasEmittedScrollEnd) {\n this.dropiScrollEnd.emit();\n this.hasEmittedScrollEnd = true;\n setTimeout(() => { this.hasEmittedScrollEnd = false; }, 1000);\n }\n }, 100);\n }\n\n // ── Render helpers ───────────────────────────────────────────\n private renderTrigger() {\n const isCompleted = this.multiSelect ? this.multiSelected.length > 0 : !!this._selectedOption;\n const iconColor = this.disabled ? 'Gray-Gray-300' : this.dropdownType ? 'Gray-Gray-600' : 'Gray-Gray-400';\n const iconSize = this.dropdownType ? '24px' : '20px';\n\n return (\n <button\n type=\"button\"\n class={{\n 'select-button': true,\n 'select-completed': isCompleted,\n 'select-button-error': this.hasError,\n 'no-border': this.dropdownType,\n }}\n disabled={this.disabled}\n ref={el => (this.buttonRef = el as HTMLButtonElement)}\n onClick={() => this.toggleDropdown()}\n >\n <div class={{\n 'button-content': true,\n 'option-radio': this.radioOptions && !!this._selectedOption && !this.multiSelect,\n }}>\n {this.preIcon && (\n <dropi-icon name={this.preIcon} iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-500\" />\n )}\n\n {/* Radio option selected preview */}\n {this.radioOptions && this._selectedOption && !this.multiSelect && [\n this._selectedOption.imageUrl && !this._selectedOption.isFallback\n ? <img class=\"option-image small-image\" src={this._selectedOption.imageUrl} alt=\"\" onError={() => { if (this._selectedOption) this._selectedOption = { ...this._selectedOption, isFallback: true }; }} />\n : this._selectedOption.isFallback\n ? <span class=\"option-image-fallback small-image\">{this._selectedOption.label.charAt(0).toUpperCase()}</span>\n : null,\n <div class=\"labels-container elipsis\">\n <span>{this._selectedOption.label}</span>\n {this._selectedOption.secondLabel && <span class=\"option-second-label\">{this._selectedOption.secondLabel}</span>}\n </div>,\n ]}\n\n {/* Standard label */}\n {!(this.radioOptions && this._selectedOption && !this.multiSelect) && (\n <div class=\"elipsis\">{this.triggerLabel}</div>\n )}\n </div>\n\n <dropi-icon\n name={this.isOpen ? 'Dropdown-up' : 'Dropdown-down'}\n iconWidth={iconSize}\n iconHeight={iconSize}\n color={iconColor}\n />\n </button>\n );\n }\n\n private renderOption(option: SelectOption) {\n const isSelected = this.multiSelect\n ? this.isOptionChecked(option)\n : this._selectedOption?.id === option.id;\n\n return (\n <li key={option.id}>\n <button\n type=\"button\"\n class={{\n option: true,\n 'option-radio': this.radioOptions,\n 'option-with-flag': this.showCountryFlags && !!option.countryCode,\n 'disabled-option': !!option.disabled,\n 'selected-option': isSelected,\n }}\n disabled={option.disabled}\n onClick={() => this.selectOption(option)}\n >\n {this.multiSelect && (\n <span class={{ 'multi-checkbox': true, checked: isSelected }}>\n {isSelected && (\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M20.6 5.7L9.1 17.2c-.2.2-.5.3-.8.3s-.6-.1-.8-.3L3 12.8c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l3.9 3.9L19.2 4.3c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4z\" fill=\"white\"/>\n </svg>\n )}\n </span>\n )}\n\n {this.radioOptions && (\n <div class={{ radio: true, selected: isSelected }}>\n {isSelected && <div class=\"circle\" />}\n </div>\n )}\n\n {!this.radioOptions && option.preIcon && (\n <dropi-icon name={option.preIcon} iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-500\" />\n )}\n\n {this.radioOptions && option.imageUrl && !option.isFallback && (\n <img class=\"option-image\" src={option.imageUrl} alt=\"\" onError={() => { option.isFallback = true; this.options = [...this.options as any[]]; }} />\n )}\n {this.radioOptions && option.isFallback && (\n <span class=\"option-image-fallback\">{option.label.charAt(0).toUpperCase()}</span>\n )}\n\n {this.showCountryFlags && option.countryCode && (\n <span class=\"flag-placeholder\">{option.countryCode}</span>\n )}\n\n {this.radioOptions\n ? (\n <div class=\"labels-container\">\n <span class=\"elipsis\">{option.label}</span>\n {option.secondLabel && <span class=\"option-second-label\">{option.secondLabel}</span>}\n </div>\n )\n : (\n <span class=\"elipsis\">\n {this.showCountryFlags && option.shortLabel ? option.shortLabel : option.label}\n </span>\n )\n }\n </button>\n </li>\n );\n }\n\n private renderDropdown() {\n if (!this.isOpen) return null;\n\n return (\n <ul\n class={`select-dropdown-overlay ${this.overlayClass} ${this.withinModal ? 'within-modal' : ''}`}\n style={this.dropdownStyle}\n onScroll={(e) => this.handleScroll(e)}\n >\n {/* Search */}\n {this.searchEnabled && (\n <li class=\"sticky-search\">\n <div class=\"search-wrapper\">\n <dropi-icon name=\"Search\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />\n <input\n class=\"search-input\"\n type=\"text\"\n placeholder={this.placeHolderSearch}\n value={this.searchTerm}\n onInput={(e) => this.handleSearch((e.target as HTMLInputElement).value)}\n onKeyDown={(e) => { if (e.key === 'Enter') this.dropiKeyEnter.emit(e as KeyboardEvent); }}\n />\n {this.searchTerm && (\n <button type=\"button\" class=\"search-clear\" onClick={() => this.handleSearch('')}>\n <dropi-icon name=\"Close\" iconWidth=\"14px\" iconHeight=\"14px\" color=\"Gray-Gray-400\" />\n </button>\n )}\n </div>\n </li>\n )}\n\n {/* Grouped options */}\n {this.isGrouped && (this.filteredOptions as SelectOptionGroup[]).map(group => [\n <li class=\"option-group-title\">{group.category}</li>,\n ...group.options.map(opt => (\n <li key={opt.id}>\n <button\n type=\"button\"\n class={{ option: true, 'option-group': true, 'disabled-option': !!opt.disabled }}\n disabled={opt.disabled}\n onClick={() => this.selectOption(opt)}\n >\n {opt.preIcon && <dropi-icon name={opt.preIcon} iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-500\" />}\n <span class=\"elipsis\">{opt.label}</span>\n </button>\n </li>\n )),\n ])}\n\n {/* Flat options (single or multi) */}\n {!this.isGrouped && (this.filteredOptions as SelectOption[]).map(opt => this.renderOption(opt))}\n\n {/* Empty state */}\n {(this.filteredOptions as any[]).length === 0 && (\n <li class=\"no-results\">Sin resultados</li>\n )}\n </ul>\n );\n }\n\n render() {\n return (\n <div class=\"custom-select\">\n {/* Top label */}\n {!this.dropdownType && this.label && (\n <label class={{ 'disabled-label': this.disabled }}>\n {this.label}\n {this.showObligatory && !this.disabled && <span class=\"asterisk\"> *</span>}\n </label>\n )}\n\n {/* Trigger row */}\n <div class=\"dropdown-container\">\n {this.dropdownType && this.label && (\n <div class=\"left-label\">{this.label}</div>\n )}\n {this.renderTrigger()}\n </div>\n\n {/* Helper text */}\n {this.textHelper && !this.hasError && (\n <div class=\"select-helper\">\n <span>{this.textHelper}</span>\n </div>\n )}\n\n {/* Error text */}\n {this.hasError && this.errorText && (\n <div class=\"select-helper-error\">\n <dropi-icon name=\"Warning-circle\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Error-Error-500\" />\n <span>{this.errorText}</span>\n </div>\n )}\n\n {/* Dropdown portal — fixed position */}\n {this.renderDropdown()}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, d as createEvent, h } from './index-CPacpXAJ.js';
1
+ import { r as registerInstance, d as createEvent, h } from './index-BKkSRXlb.js';
2
2
 
3
- const dropiSidebarCss = () => `:host{display:block}.main-sidebar-container{margin-top:20px}.sidebar-option{height:45px;display:flex;align-items:center;position:relative;font-weight:var(--font-weight-medium, 500);gap:var(--Size-3, 12px);padding:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);border-radius:var(--Border-1, 4px);min-width:147px;cursor:pointer;user-select:none}.sidebar-option .arrow{position:absolute;right:17px;transition:transform 0.3s ease}.sidebar-option .arrow-expanded{transform:rotate(180deg)}.sidebar-default-option{color:var(--Gray-Gray-500, #68738f)}.sidebar-active-option{color:var(--Primary-Primary-500, #f49a3d);background-color:#fef8f1}.sidebar-sub-item{overflow:hidden;max-height:0;height:auto;font-weight:var(--font-weight-medium, 500);gap:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);cursor:pointer;opacity:0;padding:0 var(--Size-3, 12px) 0 var(--Size-8, 32px);transition:max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;user-select:none}.sidebar-sub-item.sidebar-expanded{max-height:200px;opacity:1;padding:var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-8, 32px)}.sidebar-sub-item-default{color:var(--Gray-Gray-500, #68738f)}.sidebar-sub-item-active{color:var(--Primary-Primary-500, #f49a3d)}.space-between{justify-content:space-between}`;
3
+ const dropiSidebarCss = () => `:host{display:block;button,input,select,textarea{font-family:var(--font-family-01, 'Inter', sans-serif)}}.main-sidebar-container{margin-top:20px}.sidebar-option{height:45px;display:flex;align-items:center;position:relative;font-weight:var(--font-weight-medium, 500);gap:var(--Size-3, 12px);padding:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);border-radius:var(--Border-1, 4px);min-width:147px;cursor:pointer;user-select:none}.sidebar-option .arrow{position:absolute;right:17px;transition:transform 0.3s ease}.sidebar-option .arrow-expanded{transform:rotate(180deg)}.sidebar-default-option{color:var(--Gray-Gray-500, #68738f)}.sidebar-active-option{color:var(--Primary-Primary-500, #f49a3d);background-color:#fef8f1}.sidebar-sub-item{overflow:hidden;max-height:0;height:auto;font-weight:var(--font-weight-medium, 500);gap:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);cursor:pointer;opacity:0;padding:0 var(--Size-3, 12px) 0 var(--Size-8, 32px);transition:max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;user-select:none}.sidebar-sub-item.sidebar-expanded{max-height:200px;opacity:1;padding:var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-8, 32px)}.sidebar-sub-item-default{color:var(--Gray-Gray-500, #68738f)}.sidebar-sub-item-active{color:var(--Primary-Primary-500, #f49a3d)}.space-between{justify-content:space-between}`;
4
4
 
5
5
  const DropiSidebar = class {
6
6
  constructor(hostRef) {
@@ -44,7 +44,7 @@ const DropiSidebar = class {
44
44
  this.dropiIndexChange.emit(itemClicked);
45
45
  }
46
46
  render() {
47
- return (h("div", { key: '3e45416a116488871747c54c14cbb73ecf1d9a4d', class: "main-sidebar-container" }, this.parsedProperties.map(item => {
47
+ return (h("div", { key: 'db912a2643a3c32909d0c6a057d191ce6af80c5e', class: "main-sidebar-container" }, this.parsedProperties.map(item => {
48
48
  return [
49
49
  /* Item Principal */
50
50
  h("div", { class: {
@@ -1 +1 @@
1
- {"file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C,MAAM,GAAG,CAAC,KACvC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,KACzB,CAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAE;AACL,wBAAA,kBAAkB,EAAE,IAAI;AACxB,wBAAA,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY;AACvC,wBAAA,0BAA0B,EAAE,CAAC,SAAS,CAAC,MAAM;AAC7C,wBAAA,yBAAyB,EAAE,CAAC,CAAC,SAAS,CAAC;AACxC,qBAAA,EACD,OAAO,EAAE,CAAC,CAAC,KAAI,EAAG,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,EAAA,EAEvE,SAAS,CAAC,IAAI,CACX,CACP,CAAC;aAEL;SACF,CAAC,CACE;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-sidebar/dropi-sidebar.css?tag=dropi-sidebar&encapsulation=shadow","src/components/dropi-sidebar/dropi-sidebar.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.main-sidebar-container {\n margin-top: 20px;\n}\n\n.sidebar-option {\n height: 45px;\n display: flex;\n align-items: center;\n position: relative;\n font-weight: var(--font-weight-medium, 500);\n gap: var(--Size-3, 12px);\n padding: var(--Size-3, 12px);\n font-size: var(--font-size-s, 12px);\n border-radius: var(--Border-1, 4px);\n min-width: 147px;\n cursor: pointer;\n user-select: none;\n}\n\n.sidebar-option .arrow {\n position: absolute;\n right: 17px;\n transition: transform 0.3s ease;\n}\n\n.sidebar-option .arrow-expanded {\n transform: rotate(180deg);\n}\n\n.sidebar-default-option {\n color: var(--Gray-Gray-500, #68738f);\n}\n\n.sidebar-active-option {\n color: var(--Primary-Primary-500, #f49a3d);\n background-color: #fef8f1;\n}\n\n.sidebar-sub-item {\n overflow: hidden;\n max-height: 0;\n height: auto;\n font-weight: var(--font-weight-medium, 500);\n gap: var(--Size-3, 12px);\n font-size: var(--font-size-s, 12px);\n cursor: pointer;\n opacity: 0;\n padding: 0 var(--Size-3, 12px) 0 var(--Size-8, 32px);\n transition:\n max-height 0.3s ease-out,\n opacity 0.3s ease-out,\n padding 0.3s ease-out;\n user-select: none;\n}\n\n.sidebar-sub-item.sidebar-expanded {\n max-height: 200px;\n opacity: 1;\n padding: var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-8, 32px);\n}\n\n.sidebar-sub-item-default {\n color: var(--Gray-Gray-500, #68738f);\n}\n\n.sidebar-sub-item-active {\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.space-between {\n justify-content: space-between;\n}\n","import { Component, Prop, Event, EventEmitter, h, State, Watch } from '@stencil/core';\n\nexport interface SidebarItem {\n id: number;\n icon: string;\n text: string;\n route: string;\n expandedMenu?: boolean;\n active?: boolean;\n}\n\nexport interface SidebarProperties {\n id: number;\n icon: string;\n text: string;\n route: string;\n expandedMenu?: boolean;\n active?: boolean;\n subItems?: SidebarItem[];\n}\n\n/**\n * @component dropi-sidebar\n * Sidebar list container (Strictly ported from Angular core). \n * This component handles rendering the sidebar items array natively.\n */\n@Component({\n tag: 'dropi-sidebar',\n styleUrl: 'dropi-sidebar.css',\n shadow: true,\n})\nexport class DropiSidebar {\n /**\n * Define las propiedades y la cantidad de elementos a renderizar.\n * Pasarlo como JSON string o directamente como array de SidebarProperties.\n */\n @Prop({ mutable: true }) sideBarProperties: SidebarProperties[] | string = [];\n \n /**\n * Evento emitido cuando se selecciona una opción en el menú o un sub-hijo.\n */\n @Event() dropiIndexChange: EventEmitter<SidebarProperties>;\n\n @State() parsedProperties: SidebarProperties[] = [];\n\n @Watch('sideBarProperties')\n watchPropHandler(newValue: SidebarProperties[] | string) {\n this.parsedProperties = typeof newValue === 'string' ? JSON.parse(newValue) : (newValue || []);\n }\n\n componentWillLoad() {\n this.watchPropHandler(this.sideBarProperties);\n }\n\n private setExpandedPropertie(id: number) {\n const propertieIndex = this.parsedProperties.findIndex((item) => item.id === id);\n if (propertieIndex !== -1) {\n const newProps = [...this.parsedProperties];\n newProps[propertieIndex] = {\n ...newProps[propertieIndex],\n expandedMenu: !newProps[propertieIndex].expandedMenu\n };\n this.parsedProperties = newProps;\n }\n }\n\n private onItemClick(itemClicked: SidebarProperties) {\n this.dropiIndexChange.emit(itemClicked);\n \n if (itemClicked.subItems && itemClicked.subItems.length > 0) {\n this.setExpandedPropertie(itemClicked.id);\n }\n }\n\n private onSubItemClick(itemClicked: SidebarProperties) {\n this.dropiIndexChange.emit(itemClicked);\n }\n\n render() {\n return (\n <div class=\"main-sidebar-container\">\n {this.parsedProperties.map(item => {\n return [\n /* Item Principal */\n <div\n class={{\n 'sidebar-option': true,\n 'sidebar-active-option': !!item.active,\n 'sidebar-default-option': !item.active\n }}\n onClick={() => this.onItemClick(item)}\n >\n <dropi-icon\n name={item.icon || 'Cube'}\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n color={item.active ? 'Primary-Primary-500' : 'Gray-Gray-500'}\n ></dropi-icon>\n \n <span>{item.text}</span>\n \n {item.subItems && item.subItems.length > 0 && (\n <dropi-icon\n class={{\n 'arrow': true,\n 'arrow-expanded': !!item.expandedMenu\n }}\n name=\"Dropdown-down\"\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n color={item.active ? 'Primary-Primary-500' : 'Gray-Gray-500'}\n ></dropi-icon>\n )}\n </div>,\n\n /* SubItems Renderizados al mismo nivel DOM que instruye Angular ng-container */\n item.subItems && item.subItems.length > 0 && (\n item.subItems.map(subOption => (\n <div\n class={{\n 'sidebar-sub-item': true,\n 'sidebar-expanded': !!item.expandedMenu,\n 'sidebar-sub-item-default': !subOption.active,\n 'sidebar-sub-item-active': !!subOption.active\n }}\n onClick={(e) => { e.stopPropagation(); this.onSubItemClick(subOption); }}\n >\n {subOption.text}\n </div>\n ))\n )\n ];\n })}\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"dropi-sidebar.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,MAAM,CAAC,m3CA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AS,KACzB,CAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAE;AACL,wBAAA,kBAAkB,EAAE,IAAI;AACxB,wBAAA,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY;AACvC,wBAAA,0BAA0B,EAAE,CAAC,SAAS,CAAC,MAAM;AAC7C,wBAAA,yBAAyB,EAAE,CAAC,CAAC,SAAS,CAAC;AACxC,qBAAA,EACD,OAAO,EAAE,CAAC,CAAC,KAAI,EAAG,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,EAAA,EAEvE,SAAS,CAAC,IAAI,CACX,CACP,CAAC;aAEL;SACF,CAAC,CACE;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-sidebar/dropi-sidebar.css?tag=dropi-sidebar&encapsulation=shadow","src/components/dropi-sidebar/dropi-sidebar.tsx"],"sourcesContent":[":host {\nbutton, input, select, textarea { font-family: var(--font-family-01, 'Inter', sans-serif); }\n display: block;\n}\n\n.main-sidebar-container {\n margin-top: 20px;\n}\n\n.sidebar-option {\n height: 45px;\n display: flex;\n align-items: center;\n position: relative;\n font-weight: var(--font-weight-medium, 500);\n gap: var(--Size-3, 12px);\n padding: var(--Size-3, 12px);\n font-size: var(--font-size-s, 12px);\n border-radius: var(--Border-1, 4px);\n min-width: 147px;\n cursor: pointer;\n user-select: none;\n}\n\n.sidebar-option .arrow {\n position: absolute;\n right: 17px;\n transition: transform 0.3s ease;\n}\n\n.sidebar-option .arrow-expanded {\n transform: rotate(180deg);\n}\n\n.sidebar-default-option {\n color: var(--Gray-Gray-500, #68738f);\n}\n\n.sidebar-active-option {\n color: var(--Primary-Primary-500, #f49a3d);\n background-color: #fef8f1;\n}\n\n.sidebar-sub-item {\n overflow: hidden;\n max-height: 0;\n height: auto;\n font-weight: var(--font-weight-medium, 500);\n gap: var(--Size-3, 12px);\n font-size: var(--font-size-s, 12px);\n cursor: pointer;\n opacity: 0;\n padding: 0 var(--Size-3, 12px) 0 var(--Size-8, 32px);\n transition:\n max-height 0.3s ease-out,\n opacity 0.3s ease-out,\n padding 0.3s ease-out;\n user-select: none;\n}\n\n.sidebar-sub-item.sidebar-expanded {\n max-height: 200px;\n opacity: 1;\n padding: var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-3, 12px) var(--Size-8, 32px);\n}\n\n.sidebar-sub-item-default {\n color: var(--Gray-Gray-500, #68738f);\n}\n\n.sidebar-sub-item-active {\n color: var(--Primary-Primary-500, #f49a3d);\n}\n\n.space-between {\n justify-content: space-between;\n}\n","import { Component, Prop, Event, EventEmitter, h, State, Watch } from '@stencil/core';\n\nexport interface SidebarItem {\n id: number;\n icon: string;\n text: string;\n route: string;\n expandedMenu?: boolean;\n active?: boolean;\n}\n\nexport interface SidebarProperties {\n id: number;\n icon: string;\n text: string;\n route: string;\n expandedMenu?: boolean;\n active?: boolean;\n subItems?: SidebarItem[];\n}\n\n/**\n * @component dropi-sidebar\n * Sidebar list container (Strictly ported from Angular core). \n * This component handles rendering the sidebar items array natively.\n */\n@Component({\n tag: 'dropi-sidebar',\n styleUrl: 'dropi-sidebar.css',\n shadow: true,\n})\nexport class DropiSidebar {\n /**\n * Define las propiedades y la cantidad de elementos a renderizar.\n * Pasarlo como JSON string o directamente como array de SidebarProperties.\n */\n @Prop({ mutable: true }) sideBarProperties: SidebarProperties[] | string = [];\n \n /**\n * Evento emitido cuando se selecciona una opción en el menú o un sub-hijo.\n */\n @Event() dropiIndexChange: EventEmitter<SidebarProperties>;\n\n @State() parsedProperties: SidebarProperties[] = [];\n\n @Watch('sideBarProperties')\n watchPropHandler(newValue: SidebarProperties[] | string) {\n this.parsedProperties = typeof newValue === 'string' ? JSON.parse(newValue) : (newValue || []);\n }\n\n componentWillLoad() {\n this.watchPropHandler(this.sideBarProperties);\n }\n\n private setExpandedPropertie(id: number) {\n const propertieIndex = this.parsedProperties.findIndex((item) => item.id === id);\n if (propertieIndex !== -1) {\n const newProps = [...this.parsedProperties];\n newProps[propertieIndex] = {\n ...newProps[propertieIndex],\n expandedMenu: !newProps[propertieIndex].expandedMenu\n };\n this.parsedProperties = newProps;\n }\n }\n\n private onItemClick(itemClicked: SidebarProperties) {\n this.dropiIndexChange.emit(itemClicked);\n \n if (itemClicked.subItems && itemClicked.subItems.length > 0) {\n this.setExpandedPropertie(itemClicked.id);\n }\n }\n\n private onSubItemClick(itemClicked: SidebarProperties) {\n this.dropiIndexChange.emit(itemClicked);\n }\n\n render() {\n return (\n <div class=\"main-sidebar-container\">\n {this.parsedProperties.map(item => {\n return [\n /* Item Principal */\n <div\n class={{\n 'sidebar-option': true,\n 'sidebar-active-option': !!item.active,\n 'sidebar-default-option': !item.active\n }}\n onClick={() => this.onItemClick(item)}\n >\n <dropi-icon\n name={item.icon || 'Cube'}\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n color={item.active ? 'Primary-Primary-500' : 'Gray-Gray-500'}\n ></dropi-icon>\n \n <span>{item.text}</span>\n \n {item.subItems && item.subItems.length > 0 && (\n <dropi-icon\n class={{\n 'arrow': true,\n 'arrow-expanded': !!item.expandedMenu\n }}\n name=\"Dropdown-down\"\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n color={item.active ? 'Primary-Primary-500' : 'Gray-Gray-500'}\n ></dropi-icon>\n )}\n </div>,\n\n /* SubItems Renderizados al mismo nivel DOM que instruye Angular ng-container */\n item.subItems && item.subItems.length > 0 && (\n item.subItems.map(subOption => (\n <div\n class={{\n 'sidebar-sub-item': true,\n 'sidebar-expanded': !!item.expandedMenu,\n 'sidebar-sub-item-default': !subOption.active,\n 'sidebar-sub-item-active': !!subOption.active\n }}\n onClick={(e) => { e.stopPropagation(); this.onSubItemClick(subOption); }}\n >\n {subOption.text}\n </div>\n ))\n )\n ];\n })}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-CPacpXAJ.js';
1
+ import { r as registerInstance, h } from './index-BKkSRXlb.js';
2
2
 
3
- const dropiSimpleStepperCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__item{display:flex;flex-direction:column;align-items:center;flex:1}.stepper__circle-row{display:flex;align-items:center;width:100%}.stepper__circle{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Gray-Gray-100, #e6eaf2);border:2px solid var(--Gray-Gray-200, #c3c9d9)}.stepper__circle--active{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__circle--completed{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__dot{width:8px;height:8px;border-radius:50%;background:var(--Neutral-White, #ffffff);display:block}.stepper__circle--pending .stepper__dot{background:var(--Gray-Gray-400, #858ea6)}.stepper__number{font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-bold, 700);color:var(--Neutral-White, #ffffff)}.stepper__circle--pending .stepper__number{color:var(--Gray-Gray-500, #69738c)}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200, #c3c9d9);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500, #f49a3d)}.stepper__label{margin-top:6px;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);text-align:center}`;
3
+ const dropiSimpleStepperCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}button,input,select,textarea{font-family:var(--font-family-01, 'Inter', sans-serif)}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__item{display:flex;flex-direction:column;align-items:center;flex:1}.stepper__circle-row{display:flex;align-items:center;width:100%}.stepper__circle{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Gray-Gray-100, #e6eaf2);border:2px solid var(--Gray-Gray-200, #c3c9d9)}.stepper__circle--active{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__circle--completed{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__dot{width:8px;height:8px;border-radius:50%;background:var(--Neutral-White, #ffffff);display:block}.stepper__circle--pending .stepper__dot{background:var(--Gray-Gray-400, #858ea6)}.stepper__number{font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-bold, 700);color:var(--Neutral-White, #ffffff)}.stepper__circle--pending .stepper__number{color:var(--Gray-Gray-500, #69738c)}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200, #c3c9d9);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500, #f49a3d)}.stepper__label{margin-top:6px;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);text-align:center}`;
4
4
 
5
5
  const DropiSimpleStepper = class {
6
6
  constructor(hostRef) {
@@ -32,7 +32,7 @@ const DropiSimpleStepper = class {
32
32
  render() {
33
33
  const labels = this.parsedLabels;
34
34
  const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
35
- return (h("div", { key: 'f67f6e9404bf67700c46b987923836d5251ae1c4', class: "stepper" }, steps.map((step, i) => {
35
+ return (h("div", { key: '79775ae72739bea9fdd09557f22bd33dba8ed865', class: "stepper" }, steps.map((step, i) => {
36
36
  const isCompleted = step < this.currentStep;
37
37
  const isActive = step === this.currentStep;
38
38
  const isLast = i === steps.length - 1;
@@ -1 +1 @@
1
- {"file":"dropi-simple-stepper.entry.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,MAAM,CAAC,09CAA09C,CAAC;;MCcn/C,kBAAkB,GAAA,MAAA;;;;;IAErB,UAAU,GAAW,CAAC;;IAEtB,QAAQ,GAAgB,OAAO;;IAE/B,WAAW,GAAW,CAAC;;IAEvB,YAAY,GAAsB,EAAE;;IAEpC,QAAQ,GAAa,cAAc;;IAEnC,WAAW,GAAW,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AACtD,iBAAA,EAAA,EACE,IAAI,CAAC,QAAQ,KAAK,OAAO,IACxB,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,cAAc,EAAA,CAAG,KAE7B,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,iBAAiB,EAAA,EAAE,IAAI,CAAQ,CAC5C,CACG,EACL,CAAC,MAAM,IAAI,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,qBAAqB,EAAE,WAAW,EAAE,GAAI,CACrF,EACL,KAAK,IAAI,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,gBAAgB,IAAE,KAAK,CAAQ,CACjD;SAET,CAAC,CACE;;;;;;;","names":[],"sources":["src/components/dropi-simple-stepper/dropi-simple-stepper.css?tag=dropi-simple-stepper&encapsulation=shadow","src/components/dropi-simple-stepper/dropi-simple-stepper.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.stepper {\n display: flex;\n align-items: flex-start;\n width: 100%;\n}\n\n.stepper__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex: 1;\n}\n\n.stepper__circle-row {\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n/* ── Circle ─────────────────────────────────────────────── */\n.stepper__circle {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: background 0.2s, border-color 0.2s;\n}\n\n.stepper__circle--pending {\n background: var(--Gray-Gray-100, #e6eaf2);\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n}\n\n.stepper__circle--active {\n background: var(--Primary-Primary-500, #f49a3d);\n border: 2px solid var(--Primary-Primary-500, #f49a3d);\n}\n\n.stepper__circle--completed {\n background: var(--Primary-Primary-500, #f49a3d);\n border: 2px solid var(--Primary-Primary-500, #f49a3d);\n}\n\n.stepper__dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: var(--Neutral-White, #ffffff);\n display: block;\n}\n\n.stepper__circle--pending .stepper__dot {\n background: var(--Gray-Gray-400, #858ea6);\n}\n\n.stepper__number {\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-bold, 700);\n color: var(--Neutral-White, #ffffff);\n}\n\n.stepper__circle--pending .stepper__number {\n color: var(--Gray-Gray-500, #69738c);\n}\n\n/* ── Connecting line ────────────────────────────────────── */\n.stepper__line {\n flex: 1;\n height: 2px;\n background: var(--Gray-Gray-200, #c3c9d9);\n transition: background 0.2s;\n}\n\n.stepper__line--done {\n background: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Label ──────────────────────────────────────────────── */\n.stepper__label {\n margin-top: 6px;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-600, #475066);\n text-align: center;\n}\n","import { Component, Prop, h } from '@stencil/core';\n\nexport type StepperType = 'point' | 'number';\nexport type FlowMode = 'Simultaneous' | 'Sequential';\n\n/**\n * @component dropi-simple-stepper\n * Compact horizontal stepper using dots or numbers.\n */\n@Component({\n tag: 'dropi-simple-stepper',\n styleUrl: 'dropi-simple-stepper.css',\n shadow: true,\n})\nexport class DropiSimpleStepper {\n /** Total steps */\n @Prop() stepsCount: number = 3;\n /** Circle content: 'point' (dot) | 'number' */\n @Prop() typeStep: StepperType = 'point';\n /** Current active step (1-based) */\n @Prop() currentStep: number = 0;\n /** Labels shown below each step. Pass as JSON string or array */\n @Prop() labelStepper: string[] | string = [];\n /** Flow mode (visual only) */\n @Prop() flowMode: FlowMode = 'Simultaneous';\n /** White-label brand identifier (matches Angular `white_brand`) */\n @Prop() white_brand: string = 'dropi';\n\n private get parsedLabels(): string[] {\n if (typeof this.labelStepper === 'string') {\n try { return JSON.parse(this.labelStepper); } catch { return []; }\n }\n return this.labelStepper || [];\n }\n\n render() {\n const labels = this.parsedLabels;\n const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);\n\n return (\n <div class=\"stepper\">\n {steps.map((step, i) => {\n const isCompleted = step < this.currentStep;\n const isActive = step === this.currentStep;\n const isLast = i === steps.length - 1;\n const label = labels[i];\n\n return (\n <div class=\"stepper__item\" key={step}>\n <div class=\"stepper__circle-row\">\n <div class={{\n 'stepper__circle': true,\n 'stepper__circle--active': isActive,\n 'stepper__circle--completed': isCompleted,\n 'stepper__circle--pending': !isActive && !isCompleted,\n }}>\n {this.typeStep === 'point' ? (\n <span class=\"stepper__dot\" />\n ) : (\n <span class=\"stepper__number\">{step}</span>\n )}\n </div>\n {!isLast && <div class={{ 'stepper__line': true, 'stepper__line--done': isCompleted }} />}\n </div>\n {label && <span class=\"stepper__label\">{label}</span>}\n </div>\n );\n })}\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"dropi-simple-stepper.entry.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,MAAM,CAAC,8iDAA8iD,CAAC;;MCcvkD,kBAAkB,GAAA,MAAA;;;;;IAErB,UAAU,GAAW,CAAC;;IAEtB,QAAQ,GAAgB,OAAO;;IAE/B,WAAW,GAAW,CAAC;;IAEvB,YAAY,GAAsB,EAAE;;IAEpC,QAAQ,GAAa,cAAc;;IAEnC,WAAW,GAAW,OAAO;AAErC,IAAA,IAAY,YAAY,GAAA;AACtB,QAAA,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,EAAE;AACzC,YAAA,IAAI;gBAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;;AAAI,YAAA,MAAM;AAAE,gBAAA,OAAO,EAAE;;;AAEjE,QAAA,OAAO,IAAI,CAAC,YAAY,IAAI,EAAE;;IAGhC,MAAM,GAAA;AACJ,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY;QAChC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,C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simple-stepper/dropi-simple-stepper.css?tag=dropi-simple-stepper&encapsulation=shadow","src/components/dropi-simple-stepper/dropi-simple-stepper.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\nbutton, input, select, textarea { font-family: var(--font-family-01, 'Inter', sans-serif); }\n\n.stepper {\n display: flex;\n align-items: flex-start;\n width: 100%;\n}\n\n.stepper__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex: 1;\n}\n\n.stepper__circle-row {\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n/* ── Circle ─────────────────────────────────────────────── */\n.stepper__circle {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: background 0.2s, border-color 0.2s;\n}\n\n.stepper__circle--pending {\n background: var(--Gray-Gray-100, #e6eaf2);\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n}\n\n.stepper__circle--active {\n background: var(--Primary-Primary-500, #f49a3d);\n border: 2px solid var(--Primary-Primary-500, #f49a3d);\n}\n\n.stepper__circle--completed {\n background: var(--Primary-Primary-500, #f49a3d);\n border: 2px solid var(--Primary-Primary-500, #f49a3d);\n}\n\n.stepper__dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: var(--Neutral-White, #ffffff);\n display: block;\n}\n\n.stepper__circle--pending .stepper__dot {\n background: var(--Gray-Gray-400, #858ea6);\n}\n\n.stepper__number {\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-bold, 700);\n color: var(--Neutral-White, #ffffff);\n}\n\n.stepper__circle--pending .stepper__number {\n color: var(--Gray-Gray-500, #69738c);\n}\n\n/* ── Connecting line ────────────────────────────────────── */\n.stepper__line {\n flex: 1;\n height: 2px;\n background: var(--Gray-Gray-200, #c3c9d9);\n transition: background 0.2s;\n}\n\n.stepper__line--done {\n background: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Label ──────────────────────────────────────────────── */\n.stepper__label {\n margin-top: 6px;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-600, #475066);\n text-align: center;\n}\n","import { Component, Prop, h } from '@stencil/core';\n\nexport type StepperType = 'point' | 'number';\nexport type FlowMode = 'Simultaneous' | 'Sequential';\n\n/**\n * @component dropi-simple-stepper\n * Compact horizontal stepper using dots or numbers.\n */\n@Component({\n tag: 'dropi-simple-stepper',\n styleUrl: 'dropi-simple-stepper.css',\n shadow: true,\n})\nexport class DropiSimpleStepper {\n /** Total steps */\n @Prop() stepsCount: number = 3;\n /** Circle content: 'point' (dot) | 'number' */\n @Prop() typeStep: StepperType = 'point';\n /** Current active step (1-based) */\n @Prop() currentStep: number = 0;\n /** Labels shown below each step. Pass as JSON string or array */\n @Prop() labelStepper: string[] | string = [];\n /** Flow mode (visual only) */\n @Prop() flowMode: FlowMode = 'Simultaneous';\n /** White-label brand identifier (matches Angular `white_brand`) */\n @Prop() white_brand: string = 'dropi';\n\n private get parsedLabels(): string[] {\n if (typeof this.labelStepper === 'string') {\n try { return JSON.parse(this.labelStepper); } catch { return []; }\n }\n return this.labelStepper || [];\n }\n\n render() {\n const labels = this.parsedLabels;\n const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);\n\n return (\n <div class=\"stepper\">\n {steps.map((step, i) => {\n const isCompleted = step < this.currentStep;\n const isActive = step === this.currentStep;\n const isLast = i === steps.length - 1;\n const label = labels[i];\n\n return (\n <div class=\"stepper__item\" key={step}>\n <div class=\"stepper__circle-row\">\n <div class={{\n 'stepper__circle': true,\n 'stepper__circle--active': isActive,\n 'stepper__circle--completed': isCompleted,\n 'stepper__circle--pending': !isActive && !isCompleted,\n }}>\n {this.typeStep === 'point' ? (\n <span class=\"stepper__dot\" />\n ) : (\n <span class=\"stepper__number\">{step}</span>\n )}\n </div>\n {!isLast && <div class={{ 'stepper__line': true, 'stepper__line--done': isCompleted }} />}\n </div>\n {label && <span class=\"stepper__label\">{label}</span>}\n </div>\n );\n })}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-CPacpXAJ.js';
1
+ import { r as registerInstance, h } from './index-BKkSRXlb.js';
2
2
 
3
- const dropiSkeletonCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.skeleton-lines{display:flex;flex-direction:column;gap:8px}.skeleton{background:linear-gradient( 90deg, var(--Gray-Gray-100, #e6eaf2) 25%, var(--Gray-Gray-50, #f7f8fa) 50%, var(--Gray-Gray-100, #e6eaf2) 75% );background-size:200% 100%;animation:shimmer 1.6s ease-in-out infinite}@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}`;
3
+ const dropiSkeletonCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}button,input,select,textarea{font-family:var(--font-family-01, 'Inter', sans-serif)}.skeleton-lines{display:flex;flex-direction:column;gap:8px}.skeleton{background:linear-gradient( 90deg, var(--Gray-Gray-100, #e6eaf2) 25%, var(--Gray-Gray-50, #f7f8fa) 50%, var(--Gray-Gray-100, #e6eaf2) 75% );background-size:200% 100%;animation:shimmer 1.6s ease-in-out infinite}@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}`;
4
4
 
5
5
  const DropiSkeleton = class {
6
6
  constructor(hostRef) {
@@ -1 +1 @@
1
- {"file":"dropi-skeleton.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,2bAA2b,CAAC;;MCa/c,aAAa,GAAA,MAAA;;;;;IAEhB,OAAO,GAAoB,MAAM;;IAEjC,KAAK,GAAW,EAAE;;IAElB,MAAM,GAAW,EAAE;;IAEnB,MAAM,GAAW,KAAK;;IAEtB,KAAK,GAAW,CAAC;;IAEjB,SAAS,GAAW,SAAS;IAE7B,aAAa,GAAA;AACnB,QAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,SAA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,EAAE;AAC9B,gBAAA,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE;AAChC,gBAAA,cAAc,EAAE,cAAc;aAC/B,EAAA,CACD;;;;;;;","names":[],"sources":["src/components/dropi-skeleton/dropi-skeleton.css?tag=dropi-skeleton&encapsulation=shadow","src/components/dropi-skeleton/dropi-skeleton.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.skeleton-lines {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.skeleton {\n background: linear-gradient(\n 90deg,\n var(--Gray-Gray-100, #e6eaf2) 25%,\n var(--Gray-Gray-50, #f7f8fa) 50%,\n var(--Gray-Gray-100, #e6eaf2) 75%\n );\n background-size: 200% 100%;\n animation: shimmer 1.6s ease-in-out infinite;\n}\n\n@keyframes shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\nexport type SkeletonVariant = 'text' | 'circle' | 'rect';\n\n/**\n * @component dropi-skeleton\n * Loading placeholder with shimmer animation.\n */\n@Component({\n tag: 'dropi-skeleton',\n styleUrl: 'dropi-skeleton.css',\n shadow: true,\n})\nexport class DropiSkeleton {\n /** Shape variant: 'text' | 'circle' | 'rect' */\n @Prop() variant: SkeletonVariant = 'text';\n /** Width (CSS value, e.g. \"100%\", \"200px\") */\n @Prop() width: string = '';\n /** Height (CSS value, e.g. \"16px\", \"48px\") */\n @Prop() height: string = '';\n /** Border radius override */\n @Prop() radius: string = '8px';\n /** Number of lines to repeat (text variant only) */\n @Prop() lines: number = 1;\n /** Base color of the shimmer gradient. Accepts hex (#f6f7f8) or token name (Gray-Gray-100) */\n @Prop() baseColor: string = '#f6f7f8';\n\n private getBackground(): string {\n const color = (this.baseColor ?? '#f6f7f8').startsWith('#') ? (this.baseColor ?? '#f6f7f8') : `var(--${this.baseColor})`;\n return `linear-gradient(to right, ${color} 8%, #e3e7efe7 28%, ${color} 77%)`;\n }\n\n private getRadius(): string {\n if (this.radius) return this.radius;\n if (this.variant === 'circle') return '50%';\n if (this.variant === 'text') return '4px';\n return 'var(--Border-1, 4px)';\n }\n\n render() {\n if (this.variant === 'text' && this.lines > 1) {\n return (\n <div class=\"skeleton-lines\">\n {Array.from({ length: this.lines }).map((_, i) => (\n <div\n class=\"skeleton\"\n style={{\n width: i === this.lines - 1 ? '70%' : this.width,\n height: this.height,\n borderRadius: this.getRadius(),\n background: this.getBackground(),\n backgroundSize: '1000px 104px',\n }}\n />\n ))}\n </div>\n );\n }\n\n return (\n <div\n class=\"skeleton\"\n style={{\n width: this.width,\n height: this.height,\n borderRadius: this.getRadius(),\n background: this.getBackground(),\n backgroundSize: '1000px 104px',\n }}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"dropi-skeleton.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,+gBAA+gB,CAAC;;MCaniB,aAAa,GAAA,MAAA;;;;;IAEhB,OAAO,GAAoB,MAAM;;IAEjC,KAAK,GAAW,EAAE;;IAElB,MAAM,GAAW,EAAE;;IAEnB,MAAM,GAAW,KAAK;;IAEtB,KAAK,GAAW,CAAC;;IAEjB,SAAS,GAAW,SAAS;IAE7B,aAAa,GAAA;AACnB,QAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,SAAS,IAAI,CAAA,MAAA,EAAS,IAAI,CAAC,SAAS,GAAG;AACxH,QAAA,OAAO,CAAA,0BAAA,EAA6B,KAAK,CAAA,oBAAA,EAAuB,KAAK,OAAO;;IAGtE,SAAS,GAAA;QACf,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC,MAAM;AACnC,QAAA,IAAI,IAAI,CAAC,OAAO,KAAK,QAAQ;AAAE,YAAA,OAAO,KAAK;AAC3C,QAAA,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM;AAAE,YAAA,OAAO,KAAK;AACzC,QAAA,OAAO,sBAAsB;;IAG/B,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC7C,QACE,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,gBAAgB,EAAA,EACxB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MAC3C,WACE,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE;AACL,oBAAA,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK;oBAChD,MAAM,EAAE,IAAI,CAAC,MAAM;AACnB,oBAAA,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE;AAC9B,oBAAA,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE;AAChC,oBAAA,cAAc,EAAE,cAAc;AAC/B,iBAAA,EAAA,CACD,CACH,CAAC,CACE;;QAIV,QACE,CAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;AACnB,gBAAA,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE;AAC9B,gBAAA,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE;AAChC,gBAAA,cAAc,EAAE,cAAc;aAC/B,EAAA,CACD;;;;;;;","names":[],"sources":["src/components/dropi-skeleton/dropi-skeleton.css?tag=dropi-skeleton&encapsulation=shadow","src/components/dropi-skeleton/dropi-skeleton.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\nbutton, input, select, textarea { font-family: var(--font-family-01, 'Inter', sans-serif); }\n\n.skeleton-lines {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.skeleton {\n background: linear-gradient(\n 90deg,\n var(--Gray-Gray-100, #e6eaf2) 25%,\n var(--Gray-Gray-50, #f7f8fa) 50%,\n var(--Gray-Gray-100, #e6eaf2) 75%\n );\n background-size: 200% 100%;\n animation: shimmer 1.6s ease-in-out infinite;\n}\n\n@keyframes shimmer {\n 0% { background-position: 200% 0; }\n 100% { background-position: -200% 0; }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\nexport type SkeletonVariant = 'text' | 'circle' | 'rect';\n\n/**\n * @component dropi-skeleton\n * Loading placeholder with shimmer animation.\n */\n@Component({\n tag: 'dropi-skeleton',\n styleUrl: 'dropi-skeleton.css',\n shadow: true,\n})\nexport class DropiSkeleton {\n /** Shape variant: 'text' | 'circle' | 'rect' */\n @Prop() variant: SkeletonVariant = 'text';\n /** Width (CSS value, e.g. \"100%\", \"200px\") */\n @Prop() width: string = '';\n /** Height (CSS value, e.g. \"16px\", \"48px\") */\n @Prop() height: string = '';\n /** Border radius override */\n @Prop() radius: string = '8px';\n /** Number of lines to repeat (text variant only) */\n @Prop() lines: number = 1;\n /** Base color of the shimmer gradient. Accepts hex (#f6f7f8) or token name (Gray-Gray-100) */\n @Prop() baseColor: string = '#f6f7f8';\n\n private getBackground(): string {\n const color = (this.baseColor ?? '#f6f7f8').startsWith('#') ? (this.baseColor ?? '#f6f7f8') : `var(--${this.baseColor})`;\n return `linear-gradient(to right, ${color} 8%, #e3e7efe7 28%, ${color} 77%)`;\n }\n\n private getRadius(): string {\n if (this.radius) return this.radius;\n if (this.variant === 'circle') return '50%';\n if (this.variant === 'text') return '4px';\n return 'var(--Border-1, 4px)';\n }\n\n render() {\n if (this.variant === 'text' && this.lines > 1) {\n return (\n <div class=\"skeleton-lines\">\n {Array.from({ length: this.lines }).map((_, i) => (\n <div\n class=\"skeleton\"\n style={{\n width: i === this.lines - 1 ? '70%' : this.width,\n height: this.height,\n borderRadius: this.getRadius(),\n background: this.getBackground(),\n backgroundSize: '1000px 104px',\n }}\n />\n ))}\n </div>\n );\n }\n\n return (\n <div\n class=\"skeleton\"\n style={{\n width: this.width,\n height: this.height,\n borderRadius: this.getRadius(),\n background: this.getBackground(),\n backgroundSize: '1000px 104px',\n }}\n />\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-CPacpXAJ.js';
1
+ import { r as registerInstance, h } from './index-BKkSRXlb.js';
2
2
 
3
- const dropiStepsCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__step{display:flex;flex-direction:column;align-items:center;flex:1;position:relative}.stepper__circle-wrap{display:flex;align-items:center;width:100%;position:relative}.stepper__circle{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-bold, 700);flex-shrink:0;z-index:1;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Neutral-White, #ffffff);border:2px solid var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6)}.stepper__circle--focus{background:var(--Neutral-White, #ffffff);border:2px solid var(--Primary-Primary-500, #f49a3d);color:var(--Primary-Primary-500, #f49a3d)}.stepper__circle--completed{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #ffffff)}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200, #c3c9d9);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500, #f49a3d)}.stepper__label{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:var(--Size-2, 8px);text-align:center;padding:0 4px}.stepper__title{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.stepper__desc{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-500, #69738c)}`;
3
+ const dropiStepsCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}button,input,select,textarea{font-family:var(--font-family-01)}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__step{display:flex;flex-direction:column;align-items:center;flex:1}.stepper__circle-wrap{display:flex;align-items:center;width:100%}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500)}.stepper__line--invisible{background:transparent}.stepper__circle{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);flex-shrink:0;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Neutral-White);border:2px solid var(--Gray-Gray-200);color:var(--Gray-Gray-400)}.stepper__circle--focus{background:var(--Neutral-White);border:2px solid var(--Primary-Primary-500);color:var(--Primary-Primary-500)}.stepper__circle--completed{background:var(--Primary-Primary-500);border:2px solid var(--Primary-Primary-500);color:var(--Neutral-White)}.stepper__label{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:var(--Size-2);text-align:center;padding:0 4px}.stepper__title{font-size:var(--font-size-s);font-weight:var(--font-weight-semibold);color:var(--Gray-Gray-400)}.stepper__desc{font-size:var(--font-size-xs);color:var(--Gray-Gray-400)}.stepper__step--focus .stepper__title{color:var(--Gray-Gray-700);font-weight:var(--font-weight-bold)}.stepper__step--focus .stepper__desc{color:var(--Gray-Gray-500)}.stepper__step--completed .stepper__title{color:var(--Gray-Gray-600);font-weight:var(--font-weight-semibold)}.stepper__step--completed .stepper__desc{color:var(--Gray-Gray-500)}`;
4
4
 
5
5
  const DropiSteps = class {
6
6
  constructor(hostRef) {
@@ -37,11 +37,21 @@ const DropiSteps = class {
37
37
  render() {
38
38
  const labels = this.parsedLabels;
39
39
  const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
40
- return (h("div", { key: '35c28210675370e76f16e2525fdf785b6205ec78', class: "stepper" }, steps.map((step) => {
40
+ return (h("div", { key: '14c7581b46733cafda1dfbc3ffc6204ea1058aba', class: "stepper" }, steps.map((step) => {
41
41
  const state = this.stepState(step);
42
42
  const label = labels[step - 1];
43
+ const isFirst = step === 1;
43
44
  const isLast = step === this.stepsCount;
44
- return (h("div", { class: "stepper__step", key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check", iconWidth: "12px", iconHeight: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? h("span", null, step) : null)), !isLast && h("div", { class: { 'stepper__line': true, 'stepper__line--done': state === 'completed' } })), label && (h("div", { class: "stepper__label" }, label.title && h("span", { class: "stepper__title" }, label.title), label.description && h("span", { class: "stepper__desc" }, label.description)))));
45
+ const prevState = step > 1 ? this.stepState(step - 1) : null;
46
+ return (h("div", { class: { 'stepper__step': true, [`stepper__step--${state}`]: true }, key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: {
47
+ 'stepper__line': true,
48
+ 'stepper__line--done': prevState === 'completed',
49
+ 'stepper__line--invisible': isFirst,
50
+ } }), h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check", iconWidth: "12px", iconHeight: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? h("span", null, step) : null)), h("div", { class: {
51
+ 'stepper__line': true,
52
+ 'stepper__line--done': state === 'completed' || state === 'focus',
53
+ 'stepper__line--invisible': isLast,
54
+ } })), label && (h("div", { class: "stepper__label" }, label.title && h("span", { class: "stepper__title" }, label.title), label.description && h("span", { class: "stepper__desc" }, label.description)))));
45
55
  })));
46
56
  }
47
57
  };