@dropi/ui 0.1.19 → 0.1.20

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 (450) hide show
  1. package/assets/icons/ilustration/bg-warning.svg +3 -0
  2. package/assets/icons/ilustration/default.svg +4 -0
  3. package/assets/icons/ilustration/error.svg +10 -0
  4. package/assets/icons/ilustration/exclusive.svg +9 -0
  5. package/assets/icons/ilustration/info.svg +10 -0
  6. package/assets/icons/ilustration/loading.svg +4 -0
  7. package/assets/icons/ilustration/love.svg +9 -0
  8. package/assets/icons/ilustration/premium-new.svg +14 -0
  9. package/assets/icons/ilustration/premium.svg +5 -0
  10. package/assets/icons/ilustration/sorry.svg +4 -0
  11. package/assets/icons/ilustration/success.svg +11 -0
  12. package/assets/icons/ilustration/verified-new.svg +9 -0
  13. package/assets/icons/ilustration/verified.svg +4 -0
  14. package/assets/icons/ilustration/warning.svg +9 -0
  15. package/assets/lottie-files/loading.json +1 -0
  16. package/dist/cjs/dropi-accordion.cjs.entry.js +3 -3
  17. package/dist/cjs/dropi-alert-modal.cjs.entry.js +72 -0
  18. package/dist/cjs/dropi-alert.cjs.entry.js +7 -7
  19. package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
  20. package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
  21. package/dist/cjs/dropi-banner-external.cjs.entry.js +47 -0
  22. package/dist/cjs/dropi-breadcrumb.cjs.entry.js +48 -0
  23. package/dist/cjs/dropi-button.cjs.entry.js +7 -5
  24. package/dist/cjs/dropi-card-checkbox.cjs.entry.js +45 -0
  25. package/dist/cjs/dropi-card-product.cjs.entry.js +59 -0
  26. package/dist/cjs/dropi-card-section.cjs.entry.js +5 -5
  27. package/dist/cjs/dropi-carousel.cjs.entry.js +83 -0
  28. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +5 -5
  29. package/dist/cjs/dropi-checkbox.cjs.entry.js +4 -4
  30. package/dist/cjs/dropi-chips.cjs.entry.js +4 -4
  31. package/dist/cjs/dropi-city-selector.cjs.entry.js +85 -0
  32. package/dist/cjs/dropi-color-picker.cjs.entry.js +69 -0
  33. package/dist/cjs/dropi-country-flags.cjs.entry.js +37 -0
  34. package/dist/cjs/dropi-country-selector.cjs.entry.js +164 -0
  35. package/dist/cjs/dropi-date-picker-range.cjs.entry.js +115 -0
  36. package/dist/cjs/dropi-date-picker.cjs.entry.js +205 -0
  37. package/dist/cjs/dropi-drawer.cjs.entry.js +50 -0
  38. package/dist/cjs/dropi-dropdown.cjs.entry.js +3 -3
  39. package/dist/cjs/dropi-empty-state.cjs.entry.js +9 -5
  40. package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
  41. package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +52 -0
  42. package/dist/cjs/dropi-file-upload.cjs.entry.js +84 -0
  43. package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
  44. package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +39 -0
  45. package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
  46. package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -4
  47. package/dist/cjs/dropi-input.cjs.entry.js +7 -7
  48. package/dist/cjs/dropi-languages-selector.cjs.entry.js +57 -0
  49. package/dist/cjs/dropi-logo.cjs.entry.js +3 -3
  50. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +5 -5
  51. package/dist/cjs/dropi-media-player.cjs.entry.js +102 -0
  52. package/dist/cjs/dropi-modal.cjs.entry.js +12 -9
  53. package/dist/cjs/dropi-navbar.cjs.entry.js +52 -0
  54. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +6 -6
  55. package/dist/cjs/dropi-paginator.cjs.entry.js +4 -4
  56. package/dist/cjs/dropi-phone-input.cjs.entry.js +84 -0
  57. package/dist/cjs/dropi-radio-button.cjs.entry.js +3 -3
  58. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +5 -5
  59. package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
  60. package/dist/cjs/dropi-search.cjs.entry.js +8 -8
  61. package/dist/cjs/dropi-select.cjs.entry.js +7 -7
  62. package/dist/cjs/dropi-sidebar.cjs.entry.js +67 -0
  63. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
  64. package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
  65. package/dist/cjs/dropi-steps.cjs.entry.js +2 -2
  66. package/dist/cjs/dropi-switch.cjs.entry.js +3 -3
  67. package/dist/cjs/dropi-table.cjs.entry.js +124 -0
  68. package/dist/cjs/dropi-tabs.cjs.entry.js +3 -3
  69. package/dist/cjs/dropi-tag-type-product.cjs.entry.js +19 -0
  70. package/dist/cjs/dropi-tag.cjs.entry.js +3 -3
  71. package/dist/cjs/dropi-text-area.cjs.entry.js +8 -8
  72. package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
  73. package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
  74. package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
  75. package/dist/cjs/dropi-ui.cjs.js +2 -2
  76. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +3 -3
  77. package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +33 -0
  78. package/dist/cjs/{index-B6R6Ojma.js → index-DcOH2ZjX.js} +3 -3
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/collection/collection-manifest.json +25 -1
  81. package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
  82. package/dist/collection/components/dropi-alert/dropi-alert.css +25 -14
  83. package/dist/collection/components/dropi-alert/dropi-alert.js +2 -2
  84. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +73 -0
  85. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +395 -0
  86. package/dist/collection/components/dropi-avatars/dropi-avatars.js +1 -1
  87. package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
  88. package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +56 -0
  89. package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +179 -0
  90. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +69 -0
  91. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +171 -0
  92. package/dist/collection/components/dropi-button/dropi-button.css +4 -2
  93. package/dist/collection/components/dropi-button/dropi-button.js +24 -2
  94. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +90 -0
  95. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +219 -0
  96. package/dist/collection/components/dropi-card-product/dropi-card-product.css +158 -0
  97. package/dist/collection/components/dropi-card-product/dropi-card-product.js +353 -0
  98. package/dist/collection/components/dropi-card-section/dropi-card-section.js +2 -2
  99. package/dist/collection/components/dropi-carousel/dropi-carousel.css +103 -0
  100. package/dist/collection/components/dropi-carousel/dropi-carousel.js +277 -0
  101. package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
  102. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +2 -2
  103. package/dist/collection/components/dropi-chips/dropi-chips.css +2 -0
  104. package/dist/collection/components/dropi-chips/dropi-chips.js +1 -1
  105. package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +156 -0
  106. package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +213 -0
  107. package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +183 -0
  108. package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +235 -0
  109. package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +30 -0
  110. package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +129 -0
  111. package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +164 -0
  112. package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +327 -0
  113. package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +150 -0
  114. package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +434 -0
  115. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +143 -0
  116. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +327 -0
  117. package/dist/collection/components/dropi-drawer/dropi-drawer.css +107 -0
  118. package/dist/collection/components/dropi-drawer/dropi-drawer.js +198 -0
  119. package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +1 -1
  120. package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
  121. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +45 -1
  122. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
  123. package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +66 -0
  124. package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +257 -0
  125. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +111 -0
  126. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +198 -0
  127. package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
  128. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +91 -0
  129. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +150 -0
  130. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
  131. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +83 -42
  132. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +1 -1
  133. package/dist/collection/components/dropi-input/dropi-input.js +2 -2
  134. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +79 -0
  135. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +154 -0
  136. package/dist/collection/components/dropi-logo/dropi-logo.js +2 -2
  137. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +7 -7
  138. package/dist/collection/components/dropi-media-player/dropi-media-player.css +127 -0
  139. package/dist/collection/components/dropi-media-player/dropi-media-player.js +294 -0
  140. package/dist/collection/components/dropi-modal/dropi-modal.css +9 -3
  141. package/dist/collection/components/dropi-modal/dropi-modal.js +10 -7
  142. package/dist/collection/components/dropi-navbar/dropi-navbar.css +166 -0
  143. package/dist/collection/components/dropi-navbar/dropi-navbar.js +286 -0
  144. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +16 -9
  145. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +2 -2
  146. package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
  147. package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +152 -0
  148. package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +272 -0
  149. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
  150. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +2 -2
  151. package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
  152. package/dist/collection/components/dropi-search/dropi-search.js +2 -2
  153. package/dist/collection/components/dropi-select/dropi-select.js +1 -1
  154. package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +117 -0
  155. package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +233 -0
  156. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +1 -1
  157. package/dist/collection/components/dropi-steps/dropi-steps.js +1 -1
  158. package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
  159. package/dist/collection/components/dropi-table/dropi-table.css +80 -0
  160. package/dist/collection/components/dropi-table/dropi-table.js +333 -0
  161. package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
  162. package/dist/collection/components/dropi-tag/dropi-tag.css +1 -2
  163. package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
  164. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +14 -0
  165. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +48 -0
  166. package/dist/collection/components/dropi-text-area/dropi-text-area.css +2 -1
  167. package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
  168. package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
  169. package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
  170. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
  171. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
  172. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +73 -0
  173. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +110 -0
  174. package/dist/components/dropi-accordion.js +1 -1
  175. package/dist/components/dropi-alert-modal.d.ts +11 -0
  176. package/dist/components/dropi-alert-modal.js +1 -0
  177. package/dist/components/dropi-alert.js +1 -1
  178. package/dist/components/dropi-avatars.js +1 -1
  179. package/dist/components/dropi-badge.js +1 -1
  180. package/dist/components/dropi-banner-external.d.ts +11 -0
  181. package/dist/components/dropi-banner-external.js +1 -0
  182. package/dist/components/dropi-breadcrumb.d.ts +11 -0
  183. package/dist/components/dropi-breadcrumb.js +1 -0
  184. package/dist/components/dropi-button.js +1 -1
  185. package/dist/components/dropi-card-checkbox.d.ts +11 -0
  186. package/dist/components/dropi-card-checkbox.js +1 -0
  187. package/dist/components/dropi-card-product.d.ts +11 -0
  188. package/dist/components/dropi-card-product.js +1 -0
  189. package/dist/components/dropi-card-section.js +1 -1
  190. package/dist/components/dropi-carousel.d.ts +11 -0
  191. package/dist/components/dropi-carousel.js +1 -0
  192. package/dist/components/dropi-checkbox-selection-list.js +1 -1
  193. package/dist/components/dropi-checkbox.js +1 -1
  194. package/dist/components/dropi-chips.js +1 -1
  195. package/dist/components/dropi-city-selector.d.ts +11 -0
  196. package/dist/components/dropi-city-selector.js +1 -0
  197. package/dist/components/dropi-color-picker.d.ts +11 -0
  198. package/dist/components/dropi-color-picker.js +1 -0
  199. package/dist/components/dropi-country-flags.d.ts +11 -0
  200. package/dist/components/dropi-country-flags.js +1 -0
  201. package/dist/components/dropi-country-selector.d.ts +11 -0
  202. package/dist/components/dropi-country-selector.js +1 -0
  203. package/dist/components/dropi-date-picker-range.d.ts +11 -0
  204. package/dist/components/dropi-date-picker-range.js +1 -0
  205. package/dist/components/dropi-date-picker.d.ts +11 -0
  206. package/dist/components/dropi-date-picker.js +1 -0
  207. package/dist/components/dropi-drawer.d.ts +11 -0
  208. package/dist/components/dropi-drawer.js +1 -0
  209. package/dist/components/dropi-dropdown.js +1 -1
  210. package/dist/components/dropi-empty-state.js +1 -1
  211. package/dist/components/dropi-favorite-button.js +1 -1
  212. package/dist/components/dropi-file-upload-progress-bar.d.ts +11 -0
  213. package/dist/components/dropi-file-upload-progress-bar.js +1 -0
  214. package/dist/components/dropi-file-upload.d.ts +11 -0
  215. package/dist/components/dropi-file-upload.js +1 -0
  216. package/dist/components/dropi-icon.js +1 -1
  217. package/dist/components/dropi-ilustration-icon.d.ts +11 -0
  218. package/dist/components/dropi-ilustration-icon.js +1 -0
  219. package/dist/components/dropi-image-miniature.js +1 -1
  220. package/dist/components/dropi-image-overlay.js +1 -1
  221. package/dist/components/dropi-input.js +1 -1
  222. package/dist/components/dropi-languages-selector.d.ts +11 -0
  223. package/dist/components/dropi-languages-selector.js +1 -0
  224. package/dist/components/dropi-logo.js +1 -1
  225. package/dist/components/dropi-lottie-loader.js +1 -1
  226. package/dist/components/dropi-media-player.d.ts +11 -0
  227. package/dist/components/dropi-media-player.js +1 -0
  228. package/dist/components/dropi-modal.js +1 -1
  229. package/dist/components/dropi-navbar.d.ts +11 -0
  230. package/dist/components/dropi-navbar.js +1 -0
  231. package/dist/components/dropi-otp-send-code.js +1 -1
  232. package/dist/components/dropi-paginator.js +1 -1
  233. package/dist/components/dropi-phone-input.d.ts +11 -0
  234. package/dist/components/dropi-phone-input.js +1 -0
  235. package/dist/components/dropi-radio-button.js +1 -1
  236. package/dist/components/dropi-radio-selection-list.js +1 -1
  237. package/dist/components/dropi-read-more.js +1 -1
  238. package/dist/components/dropi-search.js +1 -1
  239. package/dist/components/dropi-select.js +1 -1
  240. package/dist/components/dropi-sidebar.d.ts +11 -0
  241. package/dist/components/dropi-sidebar.js +1 -0
  242. package/dist/components/dropi-simple-stepper.js +1 -1
  243. package/dist/components/dropi-steps.js +1 -1
  244. package/dist/components/dropi-switch.js +1 -1
  245. package/dist/components/dropi-table.d.ts +11 -0
  246. package/dist/components/dropi-table.js +1 -0
  247. package/dist/components/dropi-tabs.js +1 -1
  248. package/dist/components/dropi-tag-type-product.d.ts +11 -0
  249. package/dist/components/dropi-tag-type-product.js +1 -0
  250. package/dist/components/dropi-tag.js +1 -1
  251. package/dist/components/dropi-text-area.js +1 -1
  252. package/dist/components/dropi-time-line.js +1 -1
  253. package/dist/components/dropi-toast.js +1 -1
  254. package/dist/components/dropi-tooltip.js +1 -1
  255. package/dist/components/dropi-vertical-steps.js +1 -1
  256. package/dist/components/dropi-youtube-lazy-video.d.ts +11 -0
  257. package/dist/components/dropi-youtube-lazy-video.js +1 -0
  258. package/dist/components/index.js +1 -1
  259. package/dist/components/p-BY_J-4Sm.js +1 -0
  260. package/dist/components/p-CYCV-5qV.js +1 -0
  261. package/dist/components/p-D0ZJcRZn.js +1 -0
  262. package/dist/components/p-DUPOnSiL.js +1 -0
  263. package/dist/components/p-DUX_WvqW.js +1 -0
  264. package/dist/components/{p-CPs3fHRc.js → p-wO1yy0Zr.js} +1 -1
  265. package/dist/dropi-ui/dropi-ui.esm.js +1 -1
  266. package/dist/dropi-ui/p-053ebb91.entry.js +1 -0
  267. package/dist/dropi-ui/p-0acd32e6.entry.js +1 -0
  268. package/dist/dropi-ui/{p-ebfd4665.entry.js → p-0e88a543.entry.js} +1 -1
  269. package/dist/dropi-ui/p-0f2f5f75.entry.js +1 -0
  270. package/dist/dropi-ui/{p-2cee44f9.entry.js → p-131d87ac.entry.js} +1 -1
  271. package/dist/dropi-ui/p-1af4719d.entry.js +1 -0
  272. package/dist/dropi-ui/p-1e8f6d4a.entry.js +1 -0
  273. package/dist/dropi-ui/p-22132b1a.entry.js +1 -0
  274. package/dist/dropi-ui/p-2c1aaf6f.entry.js +1 -0
  275. package/dist/dropi-ui/p-2e9b87a9.entry.js +1 -0
  276. package/dist/dropi-ui/p-3414a414.entry.js +1 -0
  277. package/dist/dropi-ui/p-34ad54a1.entry.js +1 -0
  278. package/dist/dropi-ui/p-3531378b.entry.js +1 -0
  279. package/dist/dropi-ui/p-3983a7aa.entry.js +1 -0
  280. package/dist/dropi-ui/p-40e91337.entry.js +1 -0
  281. package/dist/dropi-ui/{p-c2316d4d.entry.js → p-4a8646e5.entry.js} +1 -1
  282. package/dist/dropi-ui/p-4be64bf0.entry.js +1 -0
  283. package/dist/dropi-ui/p-4ec17510.entry.js +1 -0
  284. package/dist/dropi-ui/p-5023eef0.entry.js +1 -0
  285. package/dist/dropi-ui/p-51a97b1a.entry.js +1 -0
  286. package/dist/dropi-ui/p-52796d84.entry.js +1 -0
  287. package/dist/dropi-ui/p-53a5bd7b.entry.js +1 -0
  288. package/dist/dropi-ui/p-5425f941.entry.js +1 -0
  289. package/dist/dropi-ui/p-58d0bf7a.entry.js +1 -0
  290. package/dist/dropi-ui/p-59d3bd9b.entry.js +1 -0
  291. package/dist/dropi-ui/p-5e957631.entry.js +1 -0
  292. package/dist/dropi-ui/p-64cbf4ea.entry.js +1 -0
  293. package/dist/dropi-ui/{p-c10cbb8d.entry.js → p-68080534.entry.js} +1 -1
  294. package/dist/dropi-ui/{p-cb5fd7a9.entry.js → p-6da6b97e.entry.js} +1 -1
  295. package/dist/dropi-ui/p-6df57f25.entry.js +1 -0
  296. package/dist/dropi-ui/p-7c916570.entry.js +1 -0
  297. package/dist/dropi-ui/p-7e95462a.entry.js +1 -0
  298. package/dist/dropi-ui/{p-30fdd316.entry.js → p-80089042.entry.js} +1 -1
  299. package/dist/dropi-ui/p-8768bb11.entry.js +1 -0
  300. package/dist/dropi-ui/p-896f2900.entry.js +1 -0
  301. package/dist/dropi-ui/p-89ac1ff2.entry.js +1 -0
  302. package/dist/dropi-ui/p-8ce79c69.entry.js +1 -0
  303. package/dist/dropi-ui/p-8e809670.entry.js +1 -0
  304. package/dist/dropi-ui/p-93b207b7.entry.js +1 -0
  305. package/dist/dropi-ui/p-983f72ad.entry.js +1 -0
  306. package/dist/dropi-ui/p-98babb78.entry.js +1 -0
  307. package/dist/dropi-ui/p-9fc53d50.entry.js +1 -0
  308. package/dist/dropi-ui/p-Tbza12Gt.js +2 -0
  309. package/dist/dropi-ui/p-a20705fe.entry.js +1 -0
  310. package/dist/dropi-ui/p-a72da98f.entry.js +1 -0
  311. package/dist/dropi-ui/p-a876d57c.entry.js +1 -0
  312. package/dist/dropi-ui/p-b1b0f938.entry.js +1 -0
  313. package/dist/dropi-ui/p-b2e176b1.entry.js +1 -0
  314. package/dist/dropi-ui/p-b41c8a6c.entry.js +1 -0
  315. package/dist/dropi-ui/p-b890fd5b.entry.js +1 -0
  316. package/dist/dropi-ui/p-bf5a53ef.entry.js +1 -0
  317. package/dist/dropi-ui/{p-e721127d.entry.js → p-c0677661.entry.js} +1 -1
  318. package/dist/dropi-ui/{p-a9116dbe.entry.js → p-c2562a1c.entry.js} +1 -1
  319. package/dist/dropi-ui/p-c2b5d0fb.entry.js +1 -0
  320. package/dist/dropi-ui/{p-061e1ad4.entry.js → p-c4d4396b.entry.js} +1 -1
  321. package/dist/dropi-ui/{p-724a2aea.entry.js → p-c9ebd31b.entry.js} +1 -1
  322. package/dist/dropi-ui/p-cecfb68e.entry.js +1 -0
  323. package/dist/dropi-ui/p-d0b47e2e.entry.js +1 -0
  324. package/dist/dropi-ui/p-dcefef51.entry.js +1 -0
  325. package/dist/dropi-ui/p-e4b7e15f.entry.js +1 -0
  326. package/dist/dropi-ui/{p-b0d3442e.entry.js → p-e7f4ed25.entry.js} +1 -1
  327. package/dist/dropi-ui/p-f1d69b15.entry.js +1 -0
  328. package/dist/esm/dropi-accordion.entry.js +3 -3
  329. package/dist/esm/dropi-alert-modal.entry.js +70 -0
  330. package/dist/esm/dropi-alert.entry.js +7 -7
  331. package/dist/esm/dropi-avatars.entry.js +2 -2
  332. package/dist/esm/dropi-badge.entry.js +2 -2
  333. package/dist/esm/dropi-banner-external.entry.js +45 -0
  334. package/dist/esm/dropi-breadcrumb.entry.js +46 -0
  335. package/dist/esm/dropi-button.entry.js +7 -5
  336. package/dist/esm/dropi-card-checkbox.entry.js +43 -0
  337. package/dist/esm/dropi-card-product.entry.js +57 -0
  338. package/dist/esm/dropi-card-section.entry.js +5 -5
  339. package/dist/esm/dropi-carousel.entry.js +81 -0
  340. package/dist/esm/dropi-checkbox-selection-list.entry.js +5 -5
  341. package/dist/esm/dropi-checkbox.entry.js +4 -4
  342. package/dist/esm/dropi-chips.entry.js +4 -4
  343. package/dist/esm/dropi-city-selector.entry.js +83 -0
  344. package/dist/esm/dropi-color-picker.entry.js +67 -0
  345. package/dist/esm/dropi-country-flags.entry.js +35 -0
  346. package/dist/esm/dropi-country-selector.entry.js +162 -0
  347. package/dist/esm/dropi-date-picker-range.entry.js +113 -0
  348. package/dist/esm/dropi-date-picker.entry.js +203 -0
  349. package/dist/esm/dropi-drawer.entry.js +48 -0
  350. package/dist/esm/dropi-dropdown.entry.js +3 -3
  351. package/dist/esm/dropi-empty-state.entry.js +9 -5
  352. package/dist/esm/dropi-favorite-button.entry.js +3 -3
  353. package/dist/esm/dropi-file-upload-progress-bar.entry.js +50 -0
  354. package/dist/esm/dropi-file-upload.entry.js +82 -0
  355. package/dist/esm/dropi-icon.entry.js +2 -2
  356. package/dist/esm/dropi-ilustration-icon.entry.js +37 -0
  357. package/dist/esm/dropi-image-miniature.entry.js +3 -3
  358. package/dist/esm/dropi-image-overlay.entry.js +4 -4
  359. package/dist/esm/dropi-input.entry.js +7 -7
  360. package/dist/esm/dropi-languages-selector.entry.js +55 -0
  361. package/dist/esm/dropi-logo.entry.js +3 -3
  362. package/dist/esm/dropi-lottie-loader.entry.js +5 -5
  363. package/dist/esm/dropi-media-player.entry.js +100 -0
  364. package/dist/esm/dropi-modal.entry.js +12 -9
  365. package/dist/esm/dropi-navbar.entry.js +50 -0
  366. package/dist/esm/dropi-otp-send-code.entry.js +6 -6
  367. package/dist/esm/dropi-paginator.entry.js +4 -4
  368. package/dist/esm/dropi-phone-input.entry.js +82 -0
  369. package/dist/esm/dropi-radio-button.entry.js +3 -3
  370. package/dist/esm/dropi-radio-selection-list.entry.js +5 -5
  371. package/dist/esm/dropi-read-more.entry.js +2 -2
  372. package/dist/esm/dropi-search.entry.js +8 -8
  373. package/dist/esm/dropi-select.entry.js +7 -7
  374. package/dist/esm/dropi-sidebar.entry.js +65 -0
  375. package/dist/esm/dropi-simple-stepper.entry.js +2 -2
  376. package/dist/esm/dropi-skeleton.entry.js +1 -1
  377. package/dist/esm/dropi-steps.entry.js +2 -2
  378. package/dist/esm/dropi-switch.entry.js +3 -3
  379. package/dist/esm/dropi-table.entry.js +122 -0
  380. package/dist/esm/dropi-tabs.entry.js +3 -3
  381. package/dist/esm/dropi-tag-type-product.entry.js +17 -0
  382. package/dist/esm/dropi-tag.entry.js +3 -3
  383. package/dist/esm/dropi-text-area.entry.js +8 -8
  384. package/dist/esm/dropi-time-line.entry.js +2 -2
  385. package/dist/esm/dropi-toast.entry.js +2 -2
  386. package/dist/esm/dropi-tooltip.entry.js +2 -2
  387. package/dist/esm/dropi-ui.js +3 -3
  388. package/dist/esm/dropi-vertical-steps.entry.js +3 -3
  389. package/dist/esm/dropi-youtube-lazy-video.entry.js +31 -0
  390. package/dist/esm/{index-Twbb5MNM.js → index-Tbza12Gt.js} +3 -3
  391. package/dist/esm/loader.js +3 -3
  392. package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +48 -0
  393. package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +30 -0
  394. package/dist/types/components/dropi-breadcrumb/dropi-breadcrumb.d.ts +31 -0
  395. package/dist/types/components/dropi-button/dropi-button.d.ts +2 -0
  396. package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +33 -0
  397. package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +39 -0
  398. package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +40 -0
  399. package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +46 -0
  400. package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +31 -0
  401. package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +19 -0
  402. package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +39 -0
  403. package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +47 -0
  404. package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +50 -0
  405. package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +25 -0
  406. package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +4 -0
  407. package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +37 -0
  408. package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +25 -0
  409. package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +24 -0
  410. package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +31 -0
  411. package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +44 -0
  412. package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +40 -0
  413. package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +34 -0
  414. package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +35 -0
  415. package/dist/types/components/dropi-table/dropi-table.d.ts +57 -0
  416. package/dist/types/components/dropi-tag-type-product/dropi-tag-type-product.d.ts +9 -0
  417. package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +19 -0
  418. package/dist/types/components.d.ts +4047 -1043
  419. package/package.json +1 -1
  420. package/scripts/setup.js +2 -0
  421. package/dist/components/p-DKXrREI4.js +0 -1
  422. package/dist/components/p-Ds74ZOlC.js +0 -1
  423. package/dist/components/p-WZTFyFH2.js +0 -1
  424. package/dist/dropi-ui/p-0c13dded.entry.js +0 -1
  425. package/dist/dropi-ui/p-121c8a09.entry.js +0 -1
  426. package/dist/dropi-ui/p-291a1416.entry.js +0 -1
  427. package/dist/dropi-ui/p-3537ee5a.entry.js +0 -1
  428. package/dist/dropi-ui/p-3d859657.entry.js +0 -1
  429. package/dist/dropi-ui/p-433d161d.entry.js +0 -1
  430. package/dist/dropi-ui/p-4bdfad16.entry.js +0 -1
  431. package/dist/dropi-ui/p-4ea7d3a7.entry.js +0 -1
  432. package/dist/dropi-ui/p-51c8ef68.entry.js +0 -1
  433. package/dist/dropi-ui/p-54780c90.entry.js +0 -1
  434. package/dist/dropi-ui/p-66deb85e.entry.js +0 -1
  435. package/dist/dropi-ui/p-68f81080.entry.js +0 -1
  436. package/dist/dropi-ui/p-74c37688.entry.js +0 -1
  437. package/dist/dropi-ui/p-7cec1cea.entry.js +0 -1
  438. package/dist/dropi-ui/p-7daa2677.entry.js +0 -1
  439. package/dist/dropi-ui/p-8906a68d.entry.js +0 -1
  440. package/dist/dropi-ui/p-Twbb5MNM.js +0 -2
  441. package/dist/dropi-ui/p-a4204ece.entry.js +0 -1
  442. package/dist/dropi-ui/p-a5650d8f.entry.js +0 -1
  443. package/dist/dropi-ui/p-b36b819f.entry.js +0 -1
  444. package/dist/dropi-ui/p-d1e1b716.entry.js +0 -1
  445. package/dist/dropi-ui/p-d5ecc394.entry.js +0 -1
  446. package/dist/dropi-ui/p-db6c9828.entry.js +0 -1
  447. package/dist/dropi-ui/p-e8557da0.entry.js +0 -1
  448. package/dist/dropi-ui/p-f3cef35a.entry.js +0 -1
  449. package/dist/dropi-ui/p-f6a69c4e.entry.js +0 -1
  450. package/dist/dropi-ui/p-ff45e7c8.entry.js +0 -1
@@ -0,0 +1,162 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
+
3
+ const dropiCountrySelectorCss = () => `:host{display:block;width:100%;text-align:left}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}label{display:block;font-size:var(--font-size-xs, 11px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066);margin-bottom:6px}.required{color:var(--Error-Error-500, #ef4444);margin-left:2px}.select-button{width:100%;height:40px;padding:0 10px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff);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.15s ease}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #3b82f6)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-button.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066)}.select-button.select-invalid{border-color:var(--Error-Error-500, #ef4444)}.selected-content{display:flex;align-items:center;gap:8px;overflow:hidden}.selected-option{display:flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.placeholder-text{color:var(--Gray-Gray-400, #858ea6)}.flag-img{border-radius:16px;width:24px;height:24px;object-fit:cover;flex-shrink:0}.select-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--Neutral-White, #fff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);overflow-y:auto;z-index:200;list-style:none;padding:0;margin:0;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);transition:max-height 0.2s ease, opacity 0.2s ease}.select-dropdown.expanded{max-height:260px;opacity:1}.select-dropdown.collapsed{max-height:0;opacity:0;pointer-events:none;border-color:transparent;box-shadow:none}.search-li{padding:0;position:sticky;top:0;background:var(--Neutral-White, #fff);z-index:1}.country-search{width:100%;padding:8px 12px;border:none;border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2);outline:none;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-600, #475066);background:transparent}.option{width:100%;min-height:40px;border-radius:0;padding:8px 12px;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:8px;transition:background 0.1s ease}.option:hover{background:var(--Gray-Gray-50, #f7f8fa)}`;
4
+
5
+ const COUNTRIES = [
6
+ { name: 'Afghanistan', code: 'AF', codePhone: '93' },
7
+ { name: 'Albania', code: 'AL', codePhone: '355' },
8
+ { name: 'Algeria', code: 'DZ', codePhone: '213' },
9
+ { name: 'Argentina', code: 'AR', codePhone: '54' },
10
+ { name: 'Australia', code: 'AU', codePhone: '61' },
11
+ { name: 'Austria', code: 'AT', codePhone: '43' },
12
+ { name: 'Azerbaijan', code: 'AZ', codePhone: '994' },
13
+ { name: 'Bahamas', code: 'BS', codePhone: '1242' },
14
+ { name: 'Bahrain', code: 'BH', codePhone: '973' },
15
+ { name: 'Bangladesh', code: 'BD', codePhone: '880' },
16
+ { name: 'Belgium', code: 'BE', codePhone: '32' },
17
+ { name: 'Bolivia', code: 'BO', codePhone: '591' },
18
+ { name: 'Brazil', code: 'BR', codePhone: '55' },
19
+ { name: 'Cambodia', code: 'KH', codePhone: '855' },
20
+ { name: 'Canada', code: 'CA', codePhone: '1' },
21
+ { name: 'Chile', code: 'CL', codePhone: '56' },
22
+ { name: 'China', code: 'CN', codePhone: '86' },
23
+ { name: 'Colombia', code: 'CO', codePhone: '57' },
24
+ { name: 'Costa Rica', code: 'CR', codePhone: '506' },
25
+ { name: 'Cuba', code: 'CU', codePhone: '53' },
26
+ { name: 'Czech Republic', code: 'CZ', codePhone: '420' },
27
+ { name: 'Denmark', code: 'DK', codePhone: '45' },
28
+ { name: 'Dominican Republic', code: 'DO', codePhone: '1' },
29
+ { name: 'Ecuador', code: 'EC', codePhone: '593' },
30
+ { name: 'Egypt', code: 'EG', codePhone: '20' },
31
+ { name: 'El Salvador', code: 'SV', codePhone: '503' },
32
+ { name: 'Estonia', code: 'EE', codePhone: '372' },
33
+ { name: 'Ethiopia', code: 'ET', codePhone: '251' },
34
+ { name: 'Finland', code: 'FI', codePhone: '358' },
35
+ { name: 'France', code: 'FR', codePhone: '33' },
36
+ { name: 'Germany', code: 'DE', codePhone: '49' },
37
+ { name: 'Ghana', code: 'GH', codePhone: '233' },
38
+ { name: 'Greece', code: 'GR', codePhone: '30' },
39
+ { name: 'Guatemala', code: 'GT', codePhone: '502' },
40
+ { name: 'Honduras', code: 'HN', codePhone: '504' },
41
+ { name: 'Hong Kong', code: 'HK', codePhone: '852' },
42
+ { name: 'Hungary', code: 'HU', codePhone: '36' },
43
+ { name: 'India', code: 'IN', codePhone: '91' },
44
+ { name: 'Indonesia', code: 'ID', codePhone: '62' },
45
+ { name: 'Iran, Islamic Republic Of', code: 'IR', codePhone: '98' },
46
+ { name: 'Iraq', code: 'IQ', codePhone: '964' },
47
+ { name: 'Ireland', code: 'IE', codePhone: '353' },
48
+ { name: 'Israel', code: 'IL', codePhone: '972' },
49
+ { name: 'Italy', code: 'IT', codePhone: '39' },
50
+ { name: 'Jamaica', code: 'JM', codePhone: '1876' },
51
+ { name: 'Japan', code: 'JP', codePhone: '81' },
52
+ { name: 'Jordan', code: 'JO', codePhone: '962' },
53
+ { name: 'Kazakhstan', code: 'KZ', codePhone: '7' },
54
+ { name: 'Kenya', code: 'KE', codePhone: '254' },
55
+ { name: 'Kuwait', code: 'KW', codePhone: '965' },
56
+ { name: 'Lebanon', code: 'LB', codePhone: '961' },
57
+ { name: 'Malaysia', code: 'MY', codePhone: '60' },
58
+ { name: 'Mexico', code: 'MX', codePhone: '52' },
59
+ { name: 'Morocco', code: 'MA', codePhone: '212' },
60
+ { name: 'Netherlands', code: 'NL', codePhone: '31' },
61
+ { name: 'New Zealand', code: 'NZ', codePhone: '64' },
62
+ { name: 'Nicaragua', code: 'NI', codePhone: '505' },
63
+ { name: 'Nigeria', code: 'NG', codePhone: '234' },
64
+ { name: 'Norway', code: 'NO', codePhone: '47' },
65
+ { name: 'Pakistan', code: 'PK', codePhone: '92' },
66
+ { name: 'Panama', code: 'PA', codePhone: '507' },
67
+ { name: 'Paraguay', code: 'PY', codePhone: '595' },
68
+ { name: 'Peru', code: 'PE', codePhone: '51' },
69
+ { name: 'Philippines', code: 'PH', codePhone: '63' },
70
+ { name: 'Poland', code: 'PL', codePhone: '48' },
71
+ { name: 'Portugal', code: 'PT', codePhone: '351' },
72
+ { name: 'Qatar', code: 'QA', codePhone: '974' },
73
+ { name: 'Romania', code: 'RO', codePhone: '40' },
74
+ { name: 'Russian Federation', code: 'RU', codePhone: '7' },
75
+ { name: 'Saudi Arabia', code: 'SA', codePhone: '966' },
76
+ { name: 'Singapore', code: 'SG', codePhone: '65' },
77
+ { name: 'South Africa', code: 'ZA', codePhone: '27' },
78
+ { name: 'Spain', code: 'ES', codePhone: '34' },
79
+ { name: 'Sri Lanka', code: 'LK', codePhone: '94' },
80
+ { name: 'Sweden', code: 'SE', codePhone: '46' },
81
+ { name: 'Switzerland', code: 'CH', codePhone: '41' },
82
+ { name: 'Taiwan, Province of China', code: 'TW', codePhone: '886' },
83
+ { name: 'Thailand', code: 'TH', codePhone: '66' },
84
+ { name: 'Tunisia', code: 'TN', codePhone: '216' },
85
+ { name: 'Turkey', code: 'TR', codePhone: '90' },
86
+ { name: 'Uganda', code: 'UG', codePhone: '256' },
87
+ { name: 'Ukraine', code: 'UA', codePhone: '380' },
88
+ { name: 'United Arab Emirates', code: 'AE', codePhone: '971' },
89
+ { name: 'United Kingdom', code: 'GB', codePhone: '44' },
90
+ { name: 'United States', code: 'US', codePhone: '1' },
91
+ { name: 'Uruguay', code: 'UY', codePhone: '598' },
92
+ { name: 'Venezuela', code: 'VE', codePhone: '58' },
93
+ { name: 'Viet Nam', code: 'VN', codePhone: '84' },
94
+ { name: 'Zimbabwe', code: 'ZW', codePhone: '263' },
95
+ ];
96
+ const DropiCountrySelector = class {
97
+ constructor(hostRef) {
98
+ registerInstance(this, hostRef);
99
+ this.dropiCountryChange = createEvent(this, "dropiCountryChange", 7);
100
+ }
101
+ /** Label above the select */
102
+ label = '';
103
+ /** Placeholder when nothing is selected */
104
+ placeholder = 'Selecciona un país';
105
+ /** Pre-selected country code (ISO 3166-1 alpha-2) */
106
+ value = '';
107
+ /** Whether the selector is disabled */
108
+ disabled = false;
109
+ /** Show asterisk for required field */
110
+ showObligatory = false;
111
+ /** Show error border */
112
+ invalid = false;
113
+ /** Emitted when a country is selected. Detail is the CountryItem. */
114
+ dropiCountryChange;
115
+ isOpen = false;
116
+ selected = null;
117
+ searchTerm = '';
118
+ searchInputRef;
119
+ valueChanged(val) {
120
+ this.selected = COUNTRIES.find(c => c.code === val) || null;
121
+ }
122
+ componentWillLoad() {
123
+ if (this.value)
124
+ this.valueChanged(this.value);
125
+ }
126
+ get filtered() {
127
+ if (!this.searchTerm)
128
+ return COUNTRIES;
129
+ const t = this.searchTerm.toLowerCase();
130
+ return COUNTRIES.filter(c => c.name.toLowerCase().includes(t));
131
+ }
132
+ open() {
133
+ if (this.disabled)
134
+ return;
135
+ this.isOpen = !this.isOpen;
136
+ if (this.isOpen) {
137
+ setTimeout(() => this.searchInputRef?.focus(), 50);
138
+ }
139
+ }
140
+ select(country) {
141
+ this.selected = country;
142
+ this.isOpen = false;
143
+ this.searchTerm = '';
144
+ this.value = country.code;
145
+ this.dropiCountryChange.emit(country);
146
+ }
147
+ render() {
148
+ return (h("div", { key: '95320129f76f5d802d62cb282172af97607ed15b', class: "custom-select" }, this.label && (h("label", { key: '7310600a9ac9a4482240ae6452db11ea2f083ea5' }, this.label, this.showObligatory && h("span", { key: '8ff5f89823f308366fa9f9ab680d7716e136eec5', class: "required" }, "*"))), h("button", { key: 'cf73602134c204051e196a2fdce9192377e6c1dc', type: "button", class: {
149
+ 'select-button': true,
150
+ 'select-completed': !!this.selected,
151
+ 'select-invalid': this.invalid,
152
+ }, disabled: this.disabled, onClick: () => this.open() }, h("div", { key: '29afa9af6fd5b314e38f75c496e3f6f529a795b2', class: "selected-content" }, this.selected ? (h("span", { class: "selected-option" }, h("img", { class: "flag-img", src: `https://flagsapi.com/${this.selected.code}/shiny/24.png`, alt: this.selected.name }), this.selected.name)) : (h("span", { class: "placeholder-text" }, this.placeholder))), h("dropi-icon", { key: '722dcee79149526a9879e339279128aa23f513cc', name: this.isOpen ? 'Dropdown-up' : 'Dropdown-down', width: "20px", height: "20px", color: "Gray-Gray-500" })), h("ul", { key: '64a93caa1189e212c83aa711d8fec2df97baba1b', class: `select-dropdown${this.isOpen ? ' expanded' : ' collapsed'}` }, h("li", { key: '28f0924f7edac815645c0ee51963b8ac688312a6', class: "search-li" }, h("input", { key: 'b69a4b4a9238fe4dbc0932f8f4078989d867a224', ref: (el) => { this.searchInputRef = el; }, type: "text", class: "country-search", placeholder: "Buscar pa\u00EDs...", value: this.searchTerm, onInput: (e) => { this.searchTerm = e.target.value; } })), this.filtered.map(country => (h("li", { key: country.code }, h("button", { class: "option", type: "button", onClick: () => this.select(country) }, h("img", { class: "flag-img", src: `https://flagsapi.com/${country.code}/shiny/24.png`, alt: country.name }), country.name)))))));
153
+ }
154
+ static get watchers() { return {
155
+ "value": [{
156
+ "valueChanged": 0
157
+ }]
158
+ }; }
159
+ };
160
+ DropiCountrySelector.style = dropiCountrySelectorCss();
161
+
162
+ export { DropiCountrySelector as dropi_country_selector };
@@ -0,0 +1,113 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
+
3
+ const dropiDatePickerRangeCss = () => `:host{display:block;width:100%;max-width:380px}*,*::before,*::after{box-sizing:border-box}.date-picker-range{width:100%;font-family:inherit}.label{font-size:11px;font-weight:500;color:#7b8190;margin-bottom:8px}.inputs-row{display:flex;align-items:flex-end;gap:8px}.input-group{flex:1;display:flex;flex-direction:column;gap:4px}.input-label{font-size:var(--font-size-xs, 11px);color:var(--Gray-Gray-500, #69738c);font-weight:var(--font-weight-medium, 500)}.date-input{width:100%;height:40px;padding:0 10px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff);color:var(--Gray-Gray-600, #475066);font-size:13px;font-family:inherit;outline:none;cursor:pointer;transition:border-color 0.15s ease}.date-input:focus{border-color:var(--Primary-Primary-500, #f49a3d)}.separator{padding-bottom:8px;color:var(--Gray-Gray-400, #858ea6);font-size:16px}.shortcuts{display:flex;flex-direction:column;gap:2px;margin-top:10px;border-left:1px solid var(--Gray-Gray-100, #e6eaf2);padding-left:10px}.shortcut-btn{background:transparent;border:none;padding:4px 6px;font-size:13px;font-family:inherit;color:var(--Gray-Gray-700, #32394d);cursor:pointer;text-align:left;border-radius:5px;transition:background 0.1s ease;font-weight:400}.shortcut-btn:hover{background:var(--Gray-Gray-50, #f5f6f8)}.shortcut-btn.active{background:var(--Gray-Gray-50, #f5f6f8);font-weight:600}.warning-box{margin-top:8px;padding:4px 8px;border:1px solid #f4c370;border-radius:4px;background:#fef8ed}.warning-message{color:#495057;font-size:10px;line-height:16px}@keyframes shimmer{0%{background-position:-468px 0}100%{background-position:468px 0}}.skeleton{height:40px;width:100%;min-width:180px;border-radius:6px;animation:shimmer 1s linear infinite;background:linear-gradient(to right, #f5f6f8 8%, #e3e7ef 28%, #f5f6f8 77%);background-size:800px 104px}@media screen and (max-width: 480px){.inputs-row{flex-direction:column}.separator{display:none}.shortcuts{flex-direction:row;flex-wrap:wrap;border-left:none;padding-left:0;border-top:1px solid var(--Gray-Gray-100, #e6eaf2);padding-top:8px}}`;
4
+
5
+ const DropiDatePickerRange = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.dropiStartDateChange = createEvent(this, "dropiStartDateChange", 7);
9
+ this.dropiEndDateChange = createEvent(this, "dropiEndDateChange", 7);
10
+ this.dropiRangeChange = createEvent(this, "dropiRangeChange", 7);
11
+ }
12
+ /** Start date (YYYY-MM-DD) */
13
+ startDate = '';
14
+ /** End date (YYYY-MM-DD) */
15
+ endDate = '';
16
+ /** Show "Rango de fechas" label */
17
+ showLabel = true;
18
+ /** Input placeholder */
19
+ placeholder = '';
20
+ /** Show loading skeleton */
21
+ loading = false;
22
+ /** Max allowed range in days (0 = unlimited) */
23
+ maxDaysRange = 0;
24
+ /** Hide "Hoy" shortcut */
25
+ hideTodayRangeShortcut = false;
26
+ /** Emitted when start date changes */
27
+ dropiStartDateChange;
28
+ /** Emitted when end date changes */
29
+ dropiEndDateChange;
30
+ /** Emitted with full range when both dates are set */
31
+ dropiRangeChange;
32
+ start = '';
33
+ end = '';
34
+ activeRange = -1;
35
+ showWarning = false;
36
+ onStartPropChange(val) { this.start = val; }
37
+ onEndPropChange(val) { this.end = val; }
38
+ componentWillLoad() {
39
+ this.start = this.startDate;
40
+ this.end = this.endDate;
41
+ }
42
+ get today() {
43
+ return new Date().toISOString().split('T')[0];
44
+ }
45
+ daysAgo(n) {
46
+ const d = new Date();
47
+ d.setDate(d.getDate() - n);
48
+ return d.toISOString().split('T')[0];
49
+ }
50
+ get shortcuts() {
51
+ const all = [
52
+ { label: 'Hoy', start: this.today, end: this.today },
53
+ { label: 'Últimos 7 días', start: this.daysAgo(6), end: this.today },
54
+ { label: 'Últimos 15 días', start: this.daysAgo(14), end: this.today },
55
+ { label: 'Últimos 30 días', start: this.daysAgo(29), end: this.today },
56
+ { label: 'Últimos 90 días', start: this.daysAgo(89), end: this.today },
57
+ ];
58
+ return this.hideTodayRangeShortcut ? all.slice(1) : all;
59
+ }
60
+ selectShortcut(idx) {
61
+ const s = this.shortcuts[idx];
62
+ this.start = s.start;
63
+ this.end = s.end;
64
+ this.activeRange = idx;
65
+ this.showWarning = false;
66
+ this.emit();
67
+ }
68
+ onStartChange(e) {
69
+ this.start = e.target.value;
70
+ this.activeRange = -1;
71
+ this.checkRange();
72
+ if (this.start && this.end)
73
+ this.emit();
74
+ }
75
+ onEndChange(e) {
76
+ this.end = e.target.value;
77
+ this.activeRange = -1;
78
+ this.checkRange();
79
+ if (this.start && this.end)
80
+ this.emit();
81
+ }
82
+ checkRange() {
83
+ if (this.start && this.end && this.maxDaysRange > 0) {
84
+ const diff = (new Date(this.end).getTime() - new Date(this.start).getTime()) / 86400000;
85
+ this.showWarning = diff > this.maxDaysRange;
86
+ }
87
+ else {
88
+ this.showWarning = false;
89
+ }
90
+ }
91
+ emit() {
92
+ this.dropiStartDateChange.emit(this.start);
93
+ this.dropiEndDateChange.emit(this.end);
94
+ this.dropiRangeChange.emit({ start: this.start, end: this.end });
95
+ }
96
+ render() {
97
+ if (this.loading) {
98
+ return h("div", { class: "skeleton" });
99
+ }
100
+ return (h("div", { class: "date-picker-range" }, this.showLabel && h("div", { class: "label" }, "Rango de fechas"), h("div", { class: "inputs-row" }, h("div", { class: "input-group" }, h("label", { class: "input-label" }, "Desde"), h("input", { type: "date", class: "date-input", value: this.start, max: this.end || this.today, onChange: (e) => this.onStartChange(e) })), h("span", { class: "separator" }, "\u2014"), h("div", { class: "input-group" }, h("label", { class: "input-label" }, "Hasta"), h("input", { type: "date", class: "date-input", value: this.end, min: this.start, max: this.today, onChange: (e) => this.onEndChange(e) }))), h("div", { class: "shortcuts" }, this.shortcuts.map((s, i) => (h("button", { key: i, class: `shortcut-btn${this.activeRange === i ? ' active' : ''}`, onClick: () => this.selectShortcut(i) }, s.label)))), this.showWarning && (h("div", { class: "warning-box" }, h("span", { class: "warning-message" }, "Solo puedes filtrar en un rango m\u00E1ximo de ", this.maxDaysRange, " d\u00EDas.")))));
101
+ }
102
+ static get watchers() { return {
103
+ "startDate": [{
104
+ "onStartPropChange": 0
105
+ }],
106
+ "endDate": [{
107
+ "onEndPropChange": 0
108
+ }]
109
+ }; }
110
+ };
111
+ DropiDatePickerRange.style = dropiDatePickerRangeCss();
112
+
113
+ export { DropiDatePickerRange as dropi_date_picker_range };
@@ -0,0 +1,203 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
+
3
+ const dropiDatePickerCss = () => `:host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.dp-label{display:block;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:4px}.dp-trigger{width:100%;height:40px;display:flex;align-items:center;gap:var(--Size-2, 8px);padding:0 var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff);cursor:pointer;font-family:inherit;transition:border-color 0.2s}.dp-trigger:hover:not(:disabled){border-color:var(--Info-Info-500, #50a5f1)}.dp-trigger--disabled{background:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed;opacity:0.6}.dp-trigger__value{flex:1;text-align:left;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-trigger__placeholder{color:var(--Gray-Gray-400, #858ea6)}.dp-popup{position:absolute;top:calc(100% + 4px);left:0;width:280px;background:var(--Neutral-White, #fff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);box-shadow:0 4px 24px rgba(0,0,0,0.1);z-index:300;padding:var(--Size-3, 12px)}.dp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--Size-3, 12px)}.dp-nav__btn{background:none;border:none;padding:4px;cursor:pointer;border-radius:var(--Border-1, 4px);display:flex;align-items:center;transition:background 0.15s}.dp-nav__btn:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dp-nav__title{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-800, #1a2033)}.dp-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:2px}.dp-day-header{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-400, #858ea6);text-align:center;padding:4px 0;font-weight:var(--font-weight-bold, 700)}.dp-cell{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xs, 10px);font-family:inherit;border:none;border-radius:var(--Border-1, 4px);cursor:pointer;background:none;color:var(--Gray-Gray-700, #32394d);transition:background 0.15s, color 0.15s}.dp-cell:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.dp-cell--other-month{color:var(--Gray-Gray-300, #a0a9c0)}.dp-cell--today{font-weight:var(--font-weight-bold, 700);color:var(--Primary-Primary-500, #f49a3d)}.dp-cell--selected,.dp-cell--range-start,.dp-cell--range-end{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #fff);border-radius:var(--Border-1, 4px)}.dp-cell--in-range{background:var(--Primary-Primary-50, #fff5eb);border-radius:0}.dp-cell--range-start{border-radius:var(--Border-1, 4px) 0 0 var(--Border-1, 4px)}.dp-cell--range-end{border-radius:0 var(--Border-1, 4px) var(--Border-1, 4px) 0}.dp-cell--disabled{opacity:0.35;cursor:not-allowed}.dp-footer{display:flex;justify-content:space-between;margin-top:var(--Size-3, 12px);border-top:1px solid var(--Gray-Gray-100, #eceef4);padding-top:var(--Size-2, 8px)}.dp-footer__clear,.dp-footer__today{background:none;border:none;padding:4px 8px;font-size:var(--font-size-xs, 10px);font-family:inherit;cursor:pointer;border-radius:var(--Border-1, 4px);transition:background 0.15s}.dp-footer__clear{color:var(--Gray-Gray-500, #68738f)}.dp-footer__today{color:var(--Primary-Primary-500, #f49a3d);font-weight:var(--font-weight-bold, 700)}.dp-footer__clear:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dp-footer__today:hover{background:var(--Primary-Primary-50, #fff5eb)}`;
4
+
5
+ const MONTHS_ES = [
6
+ 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
7
+ 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'
8
+ ];
9
+ const DAYS_ES = ['Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa', 'Do'];
10
+ const DropiDatePicker = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.dropiDateChange = createEvent(this, "dropiDateChange", 7);
14
+ this.dropiRangeChange = createEvent(this, "dropiRangeChange", 7);
15
+ }
16
+ /** Selected date (ISO string, single mode) */
17
+ value = '';
18
+ /** Range start date (ISO string, range mode) */
19
+ startDate = '';
20
+ /** Range end date (ISO string, range mode) */
21
+ endDate = '';
22
+ /** Enable range selection */
23
+ range = false;
24
+ /** Min selectable date (ISO string) */
25
+ minDate = '';
26
+ /** Max selectable date (ISO string) */
27
+ maxDate = '';
28
+ /** Label */
29
+ label = '';
30
+ /** Placeholder */
31
+ placeholder = 'Seleccionar fecha';
32
+ /** Disabled */
33
+ disabled = false;
34
+ open = false;
35
+ viewYear = new Date().getFullYear();
36
+ viewMonth = new Date().getMonth();
37
+ hoverDate = '';
38
+ /** Emitted when single date selected. e.detail = ISO date */
39
+ dropiDateChange;
40
+ /** Emitted when range selected. e.detail = { start, end } */
41
+ dropiRangeChange;
42
+ get displayValue() {
43
+ if (this.range) {
44
+ if (this.startDate && this.endDate)
45
+ return `${this.startDate} – ${this.endDate}`;
46
+ if (this.startDate)
47
+ return this.startDate;
48
+ return '';
49
+ }
50
+ return this.value;
51
+ }
52
+ open_() {
53
+ if (this.disabled)
54
+ return;
55
+ if (this.value) {
56
+ const d = new Date(this.value);
57
+ this.viewYear = d.getFullYear();
58
+ this.viewMonth = d.getMonth();
59
+ }
60
+ else if (this.startDate) {
61
+ const d = new Date(this.startDate);
62
+ this.viewYear = d.getFullYear();
63
+ this.viewMonth = d.getMonth();
64
+ }
65
+ this.open = true;
66
+ }
67
+ prevMonth() {
68
+ if (this.viewMonth === 0) {
69
+ this.viewMonth = 11;
70
+ this.viewYear--;
71
+ }
72
+ else
73
+ this.viewMonth--;
74
+ }
75
+ nextMonth() {
76
+ if (this.viewMonth === 11) {
77
+ this.viewMonth = 0;
78
+ this.viewYear++;
79
+ }
80
+ else
81
+ this.viewMonth++;
82
+ }
83
+ toISO(year, month, day) {
84
+ return `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
85
+ }
86
+ isDisabled(iso) {
87
+ if (this.minDate && iso < this.minDate)
88
+ return true;
89
+ if (this.maxDate && iso > this.maxDate)
90
+ return true;
91
+ return false;
92
+ }
93
+ isInRange(iso) {
94
+ if (!this.range)
95
+ return false;
96
+ const start = this.startDate;
97
+ const end = this.endDate || this.hoverDate;
98
+ if (!start || !end)
99
+ return false;
100
+ const [s, e] = start <= end ? [start, end] : [end, start];
101
+ return iso > s && iso < e;
102
+ }
103
+ selectDate(iso) {
104
+ if (this.isDisabled(iso))
105
+ return;
106
+ if (!this.range) {
107
+ this.value = iso;
108
+ this.open = false;
109
+ this.dropiDateChange.emit(iso);
110
+ return;
111
+ }
112
+ // Range mode
113
+ if (!this.startDate || (this.startDate && this.endDate)) {
114
+ this.startDate = iso;
115
+ this.endDate = '';
116
+ }
117
+ else {
118
+ if (iso < this.startDate) {
119
+ this.endDate = this.startDate;
120
+ this.startDate = iso;
121
+ }
122
+ else {
123
+ this.endDate = iso;
124
+ }
125
+ this.open = false;
126
+ this.dropiRangeChange.emit({ start: this.startDate, end: this.endDate });
127
+ }
128
+ }
129
+ buildDays() {
130
+ const year = this.viewYear;
131
+ const month = this.viewMonth;
132
+ const firstDay = new Date(year, month, 1).getDay();
133
+ // Adjust to Monday-first
134
+ const startOffset = (firstDay + 6) % 7;
135
+ const daysInMonth = new Date(year, month + 1, 0).getDate();
136
+ const daysInPrevMonth = new Date(year, month, 0).getDate();
137
+ const cells = [];
138
+ // Previous month filler
139
+ for (let i = startOffset - 1; i >= 0; i--) {
140
+ const d = daysInPrevMonth - i;
141
+ const m = month === 0 ? 11 : month - 1;
142
+ const y = month === 0 ? year - 1 : year;
143
+ cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
144
+ }
145
+ // Current month
146
+ for (let d = 1; d <= daysInMonth; d++) {
147
+ cells.push({ iso: this.toISO(year, month, d), day: d, currentMonth: true });
148
+ }
149
+ // Next month filler
150
+ const remaining = 42 - cells.length;
151
+ for (let d = 1; d <= remaining; d++) {
152
+ const m = month === 11 ? 0 : month + 1;
153
+ const y = month === 11 ? year + 1 : year;
154
+ cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
155
+ }
156
+ return cells;
157
+ }
158
+ render() {
159
+ const days = this.buildDays();
160
+ const today = new Date().toISOString().slice(0, 10);
161
+ return (h("div", { key: 'ee619ad7d2528fa29f74cd9e149a9a4f8250c1b5', class: "dp-wrap" }, this.label && h("label", { key: 'faffc20912e7e27cf27f6b8895050df117f2fcd9', class: "dp-label" }, this.label), h("button", { key: '6249c8e76c7b19bd54bedb3f2e98342b45eb9444', class: { 'dp-trigger': true, 'dp-trigger--disabled': this.disabled }, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled, type: "button" }, h("dropi-icon", { key: '3033520703a6c58fb30d8231196a206e1f2a153c', name: "Calendar", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("span", { key: 'c426b0a12c17108d4f32d2d01732bfc13ec15b26', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), h("dropi-icon", { key: '218703644316e36b4a2bece89975db723eaa0bfa', name: "Arrow-Down-2", width: "12px", height: "12px", color: "Gray-Gray-400" })), this.open && (h("div", { key: '4ca8fa76344e960a42e4aec332e6ecdabab3bc6c', class: "dp-popup" }, h("div", { key: '04b2b43eb0b209127a31adb2d0721b70449e84ab', class: "dp-nav" }, h("button", { key: '4f7e1208d4a6b2e03f30730fb38306f4aaf365af', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, h("dropi-icon", { key: '307a5dcbd86c26f13a22e0d69a8f61b7a646378b', name: "Arrow-Left-2", width: "16px", height: "16px", color: "Gray-Gray-600" })), h("span", { key: '1c094b7fb9385cc7673a2dd3038eebdc11a247c7', class: "dp-nav__title" }, MONTHS_ES[this.viewMonth], " ", this.viewYear), h("button", { key: '70c629dc1f1229fffcceec2f01ed8acc72bf1794', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, h("dropi-icon", { key: 'ab1847f3771ccc80c9257a82f31ed7cd2cb0dd0a', name: "Arrow-Right-2", width: "16px", height: "16px", color: "Gray-Gray-600" }))), h("div", { key: '92ff7685583877bed3a63ea74c92fd4581b9a777', class: "dp-grid" }, DAYS_ES.map(d => (h("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
162
+ const isSelected = !this.range
163
+ ? iso === this.value
164
+ : iso === this.startDate || iso === this.endDate;
165
+ const isRangeStart = this.range && iso === this.startDate;
166
+ const isRangeEnd = this.range && iso === this.endDate;
167
+ const inRange = this.isInRange(iso);
168
+ const disabled = this.isDisabled(iso);
169
+ const isToday = iso === today;
170
+ return (h("button", { class: {
171
+ 'dp-cell': true,
172
+ 'dp-cell--other-month': !currentMonth,
173
+ 'dp-cell--today': isToday,
174
+ 'dp-cell--selected': isSelected,
175
+ 'dp-cell--range-start': isRangeStart,
176
+ 'dp-cell--range-end': isRangeEnd,
177
+ 'dp-cell--in-range': inRange,
178
+ 'dp-cell--disabled': disabled,
179
+ }, type: "button", disabled: disabled, onClick: () => this.selectDate(iso), onMouseEnter: () => {
180
+ if (this.range && this.startDate && !this.endDate)
181
+ this.hoverDate = iso;
182
+ }, onMouseLeave: () => this.hoverDate = '' }, day));
183
+ })), h("div", { key: '2e1a6e5e3f016b68b9486e6acadb94738671fe7f', class: "dp-footer" }, h("button", { key: 'cef6300ccd52c617426522d3977ac72829cb40cc', class: "dp-footer__clear", type: "button", onClick: () => {
184
+ this.value = '';
185
+ this.startDate = '';
186
+ this.endDate = '';
187
+ this.open = false;
188
+ } }, "Limpiar"), h("button", { key: 'a5627d87cdc24d70368618fb8c67eff30b0800c7', class: "dp-footer__today", type: "button", onClick: () => {
189
+ if (!this.range) {
190
+ this.value = today;
191
+ this.open = false;
192
+ this.dropiDateChange.emit(today);
193
+ }
194
+ else {
195
+ this.startDate = today;
196
+ this.endDate = '';
197
+ }
198
+ } }, "Hoy"))))));
199
+ }
200
+ };
201
+ DropiDatePicker.style = dropiDatePickerCss();
202
+
203
+ export { DropiDatePicker as dropi_date_picker };
@@ -0,0 +1,48 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
+
3
+ const dropiDrawerCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.drawer-host{position:fixed;inset:0;z-index:1000;pointer-events:none;visibility:hidden}.drawer-host--open{pointer-events:all;visibility:visible}.drawer-backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.5);opacity:0;transition:opacity 0.25s}.drawer-host--open .drawer-backdrop{opacity:1}.drawer-panel{position:absolute;background:var(--Neutral-White, #fff);display:flex;flex-direction:column;transition:transform 0.25s ease;overflow:hidden}.drawer-panel--right{top:0;right:0;bottom:0;transform:translateX(100%);box-shadow:-4px 0 24px rgba(0,0,0,0.12)}.drawer-host--open .drawer-panel--right{transform:translateX(0)}.drawer-panel--left{top:0;left:0;bottom:0;transform:translateX(-100%);box-shadow:4px 0 24px rgba(0,0,0,0.12)}.drawer-host--open .drawer-panel--left{transform:translateX(0)}.drawer-panel--bottom{bottom:0;left:0;right:0;transform:translateY(100%);border-radius:var(--Border-2, 8px) var(--Border-2, 8px) 0 0;box-shadow:0 -4px 24px rgba(0,0,0,0.12)}.drawer-host--open .drawer-panel--bottom{transform:translateY(0)}.drawer-panel--top{top:0;left:0;right:0;transform:translateY(-100%);border-radius:0 0 var(--Border-2, 8px) var(--Border-2, 8px);box-shadow:0 4px 24px rgba(0,0,0,0.12)}.drawer-host--open .drawer-panel--top{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);border-bottom:1px solid var(--Gray-Gray-100, #eceef4);flex-shrink:0}.drawer-header__title{font-size:var(--font-size-m, 14px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-800, #1a2033)}.drawer-header__close{background:none;border:none;padding:4px;cursor:pointer;display:flex;align-items:center;border-radius:var(--Border-1, 4px);transition:background 0.15s}.drawer-header__close:hover{background:var(--Gray-Gray-50, #f7f8fa)}.drawer-body{flex:1;overflow-y:auto;padding:var(--Size-4, 16px)}.drawer-footer{flex-shrink:0;padding:var(--Size-3, 12px) var(--Size-4, 16px);border-top:1px solid var(--Gray-Gray-100, #eceef4)}.drawer-footer:empty{display:none}`;
4
+
5
+ const DropiDrawer = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.dropiClose = createEvent(this, "dropiClose", 7);
9
+ }
10
+ /** Controls visibility */
11
+ open = false;
12
+ /** Side from which the drawer slides in */
13
+ position = 'right';
14
+ /** Drawer title */
15
+ drawerTitle = '';
16
+ /** Width (for left/right drawers) */
17
+ width = '400px';
18
+ /** Height (for top/bottom drawers) */
19
+ height = '50vh';
20
+ /** Close on backdrop click */
21
+ closeOnBackdrop = true;
22
+ /** Emitted when drawer closes */
23
+ dropiClose;
24
+ openChanged(val) {
25
+ if (typeof document !== 'undefined') {
26
+ document.body.style.overflow = val ? 'hidden' : '';
27
+ }
28
+ }
29
+ close() {
30
+ this.open = false;
31
+ this.dropiClose.emit();
32
+ }
33
+ render() {
34
+ const isHorizontal = this.position === 'left' || this.position === 'right';
35
+ return (h("div", { key: '49b9f893c2c05018301b67234142d4ad2e38a511', class: { 'drawer-host': true, 'drawer-host--open': this.open } }, h("div", { key: '4a2263c0ffe74bdb53e1ff4992d3b04f39a55856', class: "drawer-backdrop", onClick: () => {
36
+ if (this.closeOnBackdrop)
37
+ this.close();
38
+ } }), h("div", { key: 'd2cf49005f3b8a970361fdd725d9903b212abd37', class: `drawer-panel drawer-panel--${this.position}`, style: isHorizontal ? { width: this.width } : { height: this.height }, role: "dialog", "aria-modal": "true" }, h("div", { key: '4f04806b747df0e079e01a27ba307f1625679a08', class: "drawer-header" }, h("span", { key: '211b77262547ac3b45e97966e6cc6b18dbf92b39', class: "drawer-header__title" }, this.drawerTitle), h("button", { key: '1a18631b15de75687cab1e21869c8948461716d7', class: "drawer-header__close", onClick: () => this.close(), "aria-label": "Cerrar" }, h("dropi-icon", { key: '94c49ce2bc26e65be60d0bb7fb0d05c3e4d260e6', name: "Close-small", width: "20px", height: "20px", color: "Gray-Gray-600" }))), h("div", { key: '900cafee62e4dd5b4e6dd89aec680bd19bb44bd8', class: "drawer-body" }, h("slot", { key: 'ef7d81f315b0aaea94bd68048d133a8026685a66' })), h("div", { key: 'd4e6058b84c1fe015b66c540bb1951666bafb35e', class: "drawer-footer" }, h("slot", { key: 'e66380715a41bc41310ff4b3241e868c5e2609b1', name: "footer" })))));
39
+ }
40
+ static get watchers() { return {
41
+ "open": [{
42
+ "openChanged": 0
43
+ }]
44
+ }; }
45
+ };
46
+ DropiDrawer.style = dropiDrawerCss();
47
+
48
+ export { DropiDrawer as dropi_drawer };
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
2
 
3
3
  const dropiDropdownCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.dropdown{display:flex;flex-direction:column;overflow-y:auto;max-height:var(--dropdown-height, 300px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff)}.dropdown__item{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);cursor:pointer;transition:background 0.15s;user-select:none}.dropdown__item:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dropdown__item--active{background:var(--Primary-Primary-50, #fff5eb)}.dropdown__avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0}.dropdown__label{flex:1;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`;
4
4
 
5
5
  const DropiDropdown = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
- this.dropiChange = createEvent(this, "dropiChange");
8
+ this.dropiChange = createEvent(this, "dropiChange", 7);
9
9
  }
10
10
  /** Options array or JSON string */
11
11
  options = [];
@@ -38,7 +38,7 @@ const DropiDropdown = class {
38
38
  this.dropiChange.emit(this.selected);
39
39
  }
40
40
  render() {
41
- return (h("div", { key: 'e9b2fe1b667a4d83c0d142ff9ba8187d848f606d', class: "dropdown", style: { '--dropdown-height': this.height } }, this.parsedOptions.map((opt, i) => {
41
+ return (h("div", { key: '7c8505a82b836b58ea73603249ed2143b0692fc2', class: "dropdown", style: { '--dropdown-height': this.height } }, this.parsedOptions.map((opt, i) => {
42
42
  const label = opt[this.valueModel] ?? String(opt);
43
43
  const imgUrl = this.imageModel ? opt[this.imageModel] : '';
44
44
  const active = this.isSelected(opt);
@@ -1,12 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
2
 
3
- const dropiEmptyStateCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--Size-3, 12px);padding:var(--Size-6, 32px) var(--Size-5, 20px);text-align:center}.empty-state-img{max-width:200px;width:100%;height:auto;object-fit:contain}.empty-state-svg{width:80px;height:80px}.empty-state-placeholder{display:flex;align-items:center;justify-content:center}.empty-state-title{margin:0;font-size:var(--font-size-l, 18px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d);line-height:1.3}.empty-state-description{margin:0;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);line-height:1.6;max-width:400px}.empty-state-actions{display:flex;align-items:center;gap:var(--Size-3, 12px);flex-wrap:wrap;justify-content:center;margin-top:var(--Size-2, 8px)}`;
3
+ const dropiEmptyStateCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--Size-3, 12px);padding:var(--Size-6, 32px) var(--Size-5, 20px);text-align:center}.empty-state-img{max-width:200px;width:100%;height:auto;object-fit:contain;filter:brightness(0) saturate(100%) invert(73%) sepia(9%) saturate(503%) hue-rotate(187deg) brightness(91%) contrast(88%)}.empty-state-svg{width:80px;height:80px}.empty-state-placeholder{display:flex;align-items:center;justify-content:center}.empty-state-title{margin:0;font-size:var(--font-size-l, 18px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d);line-height:1.3}.empty-state-description{margin:0;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);line-height:1.6;max-width:400px}.empty-state-actions{display:flex;align-items:center;gap:var(--Size-3, 12px);flex-wrap:wrap;justify-content:center;margin-top:var(--Size-2, 8px)}`;
4
4
 
5
5
  const DropiEmptyState = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
- this.dropiAction = createEvent(this, "dropiAction");
9
- this.dropiSecondaryAction = createEvent(this, "dropiSecondaryAction");
8
+ this.dropiAction = createEvent(this, "dropiAction", 7);
9
+ this.dropiSecondaryAction = createEvent(this, "dropiSecondaryAction", 7);
10
10
  }
11
11
  /** Title text */
12
12
  header = '';
@@ -18,14 +18,18 @@ const DropiEmptyState = class {
18
18
  imageAlt = 'Sin resultados';
19
19
  /** Primary action button label (empty = hidden) */
20
20
  actionLabel = '';
21
+ /** State of the illustration (default, loading, sorry, love, success, error) */
22
+ iconState = 'default';
21
23
  /** Secondary action button label (empty = hidden) */
22
24
  secondaryLabel = '';
25
+ /** Severity for the action buttons */
26
+ actionSeverity = 'tertiary';
23
27
  /** Emitted when primary action button is clicked */
24
28
  dropiAction;
25
29
  /** Emitted when secondary action button is clicked */
26
30
  dropiSecondaryAction;
27
31
  render() {
28
- return (h("div", { key: '7c393f2a56387d573162068576809a6f6a975a34', class: "empty-state" }, this.imageUrl ? (h("img", { class: "empty-state-img", src: this.imageUrl, alt: this.imageAlt })) : (h("div", { class: "empty-state-placeholder" }, h("svg", { viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "empty-state-svg" }, h("rect", { width: "80", height: "80", rx: "40", fill: "var(--Gray-Gray-100, #e6eaf2)" }), h("path", { d: "M40 20C29 20 20 29 20 40s9 20 20 20 20-9 20-20S51 20 40 20zm0 36c-8.8 0-16-7.2-16-16S31.2 24 40 24s16 7.2 16 16-7.2 16-16 16zm-1-28h2v12h-2zm0 14h2v2h-2z", fill: "var(--Gray-Gray-400, #858ea6)" })))), this.header && h("h3", { key: 'd1fbe8d995e295cb4a72064745e7b521b35bbad6', class: "empty-state-title" }, this.header), this.description && h("p", { key: '948e6bcb6e07fab09261e6f68d658bf1faf17c8e', class: "empty-state-description" }, this.description), h("slot", { key: '8663d0a1e2df4ee914a25a0bda27e5f2ee41a941' }), (this.actionLabel || this.secondaryLabel) && (h("div", { key: 'af582b6316e8ebf2700589b55deef1fe8fbf08f2', class: "empty-state-actions" }, this.secondaryLabel && (h("dropi-button", { key: '1e69d9a9143708157a20dba1179498bd01203af2', text: this.secondaryLabel, severity: "secondary", onDropiClick: () => this.dropiSecondaryAction.emit() })), this.actionLabel && (h("dropi-button", { key: '3850ddf4716b2732bb21ee9fa731e90022b2ecd2', text: this.actionLabel, severity: "primary", onDropiClick: () => this.dropiAction.emit() }))))));
32
+ return (h("div", { key: 'a4aec0618cd8a0900c4d5e82528a86d30c027669', class: "empty-state" }, h("div", { key: '80565c251e85146d824c640cbce4602d509311bb', class: "empty-state-visual" }, this.imageUrl ? (h("img", { class: "empty-state-img", src: this.imageUrl, alt: this.imageAlt })) : (h("img", { class: "empty-state-img", src: `assets/icons/ilustration/${this.iconState}.svg`, alt: this.imageAlt, onError: (e) => e.target.src = 'assets/icons/ilustration/default.svg' }))), this.header && h("h3", { key: '9cd0fc5aac1aeb089f1ef4c46291c9ad5d630d9c', class: "empty-state-title" }, this.header), this.description && h("p", { key: '4f2fd55693d6376a7d782a8df5d71c33fa8ea523', class: "empty-state-description" }, this.description), h("slot", { key: 'a48aa738f9f9a3a2c1f62d86e36010f2eb6c9b06' }), (this.actionLabel || this.secondaryLabel) && (h("div", { key: 'dd2978b2422d1382461eaba5c92eba37817ddb61', class: "empty-state-actions" }, this.secondaryLabel && (h("dropi-button", { key: 'b2d76dd6da170d8af85384ffbe800a4789ea96d9', text: this.secondaryLabel, severity: "secondary", onDropiClick: () => this.dropiSecondaryAction.emit() })), this.actionLabel && (h("dropi-button", { key: '68efcbb4c4069302839501c74affc6d43f7d4c6b', text: this.actionLabel, severity: this.actionSeverity, onDropiClick: () => this.dropiAction.emit() }))))));
29
33
  }
30
34
  };
31
35
  DropiEmptyState.style = dropiEmptyStateCss();
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Tbza12Gt.js';
2
2
 
3
3
  const dropiFavoriteButtonCss = () => `:host{display:inline-flex}.fav-btn{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:8px;border:1px solid var(--Gray-Gray-200);background:var(--Neutral-White);cursor:pointer;transition:all 0.2s ease-in-out}.fav-btn:hover,.fav-btn--active{background:var(--Gray-Gray-50)}.fav-btn:active{transform:scale(0.95)}`;
4
4
 
5
5
  const DropiFavoriteButton = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
- this.dropiToggleFavorite = createEvent(this, "dropiToggleFavorite");
8
+ this.dropiToggleFavorite = createEvent(this, "dropiToggleFavorite", 7);
9
9
  }
10
10
  /** Whether the item is currently marked as favorite */
11
11
  isFavorite = false;
@@ -17,7 +17,7 @@ const DropiFavoriteButton = class {
17
17
  this.dropiToggleFavorite.emit(this.isFavorite);
18
18
  }
19
19
  render() {
20
- return (h("button", { key: '3920b723683dc337ebe5aedc473414c9ed27a593', class: { 'fav-btn': true, 'fav-btn--active': this.isFavorite }, onClick: () => this.toggle(), onMouseEnter: () => this.hovered = true, onMouseLeave: () => this.hovered = false, "aria-label": this.isFavorite ? 'Quitar de favoritos' : 'Agregar a favoritos', "aria-pressed": String(this.isFavorite) }, h("dropi-icon", { key: '60748aaafd0a183e175fd84c5d44313a0254ed5e', name: this.isFavorite || this.hovered ? 'Heart-solid' : 'Heart', width: "19px", height: "19px", color: this.isFavorite || this.hovered ? 'Primary-Primary-500' : 'Gray-Gray-800' })));
20
+ return (h("button", { key: '1911efe67d8e0ab2f7531e01a844880054fdf693', class: { 'fav-btn': true, 'fav-btn--active': this.isFavorite }, onClick: () => this.toggle(), onMouseEnter: () => this.hovered = true, onMouseLeave: () => this.hovered = false, "aria-label": this.isFavorite ? 'Quitar de favoritos' : 'Agregar a favoritos', "aria-pressed": String(this.isFavorite) }, h("dropi-icon", { key: 'be817f295f9e3e36ca86027f487781f07ae1561d', name: this.isFavorite || this.hovered ? 'Heart-solid' : 'Heart', width: "19px", height: "19px", color: this.isFavorite || this.hovered ? 'Primary-Primary-500' : 'Gray-Gray-800' })));
21
21
  }
22
22
  };
23
23
  DropiFavoriteButton.style = dropiFavoriteButtonCss();