@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,198 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-drawer
4
+ * Slide-in panel from any side of the screen with backdrop.
5
+ * Supports header title, close button, and slotted content/footer.
6
+ */
7
+ export class DropiDrawer {
8
+ /** Controls visibility */
9
+ open = false;
10
+ /** Side from which the drawer slides in */
11
+ position = 'right';
12
+ /** Drawer title */
13
+ drawerTitle = '';
14
+ /** Width (for left/right drawers) */
15
+ width = '400px';
16
+ /** Height (for top/bottom drawers) */
17
+ height = '50vh';
18
+ /** Close on backdrop click */
19
+ closeOnBackdrop = true;
20
+ /** Emitted when drawer closes */
21
+ dropiClose;
22
+ openChanged(val) {
23
+ if (typeof document !== 'undefined') {
24
+ document.body.style.overflow = val ? 'hidden' : '';
25
+ }
26
+ }
27
+ close() {
28
+ this.open = false;
29
+ this.dropiClose.emit();
30
+ }
31
+ render() {
32
+ const isHorizontal = this.position === 'left' || this.position === 'right';
33
+ return (h("div", { key: '49b9f893c2c05018301b67234142d4ad2e38a511', class: { 'drawer-host': true, 'drawer-host--open': this.open } }, h("div", { key: '4a2263c0ffe74bdb53e1ff4992d3b04f39a55856', class: "drawer-backdrop", onClick: () => {
34
+ if (this.closeOnBackdrop)
35
+ this.close();
36
+ } }), 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" })))));
37
+ }
38
+ static get is() { return "dropi-drawer"; }
39
+ static get encapsulation() { return "shadow"; }
40
+ static get originalStyleUrls() {
41
+ return {
42
+ "$": ["dropi-drawer.css"]
43
+ };
44
+ }
45
+ static get styleUrls() {
46
+ return {
47
+ "$": ["dropi-drawer.css"]
48
+ };
49
+ }
50
+ static get properties() {
51
+ return {
52
+ "open": {
53
+ "type": "boolean",
54
+ "mutable": true,
55
+ "complexType": {
56
+ "original": "boolean",
57
+ "resolved": "boolean",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "Controls visibility"
65
+ },
66
+ "getter": false,
67
+ "setter": false,
68
+ "reflect": false,
69
+ "attribute": "open",
70
+ "defaultValue": "false"
71
+ },
72
+ "position": {
73
+ "type": "string",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "'left' | 'right' | 'top' | 'bottom'",
77
+ "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "Side from which the drawer slides in"
85
+ },
86
+ "getter": false,
87
+ "setter": false,
88
+ "reflect": false,
89
+ "attribute": "position",
90
+ "defaultValue": "'right'"
91
+ },
92
+ "drawerTitle": {
93
+ "type": "string",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "string",
97
+ "resolved": "string",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "Drawer title"
105
+ },
106
+ "getter": false,
107
+ "setter": false,
108
+ "reflect": false,
109
+ "attribute": "drawer-title",
110
+ "defaultValue": "''"
111
+ },
112
+ "width": {
113
+ "type": "string",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "string",
117
+ "resolved": "string",
118
+ "references": {}
119
+ },
120
+ "required": false,
121
+ "optional": false,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": "Width (for left/right drawers)"
125
+ },
126
+ "getter": false,
127
+ "setter": false,
128
+ "reflect": false,
129
+ "attribute": "width",
130
+ "defaultValue": "'400px'"
131
+ },
132
+ "height": {
133
+ "type": "string",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "string",
137
+ "resolved": "string",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": "Height (for top/bottom drawers)"
145
+ },
146
+ "getter": false,
147
+ "setter": false,
148
+ "reflect": false,
149
+ "attribute": "height",
150
+ "defaultValue": "'50vh'"
151
+ },
152
+ "closeOnBackdrop": {
153
+ "type": "boolean",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "boolean",
157
+ "resolved": "boolean",
158
+ "references": {}
159
+ },
160
+ "required": false,
161
+ "optional": false,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": "Close on backdrop click"
165
+ },
166
+ "getter": false,
167
+ "setter": false,
168
+ "reflect": false,
169
+ "attribute": "close-on-backdrop",
170
+ "defaultValue": "true"
171
+ }
172
+ };
173
+ }
174
+ static get events() {
175
+ return [{
176
+ "method": "dropiClose",
177
+ "name": "dropiClose",
178
+ "bubbles": true,
179
+ "cancelable": true,
180
+ "composed": true,
181
+ "docs": {
182
+ "tags": [],
183
+ "text": "Emitted when drawer closes"
184
+ },
185
+ "complexType": {
186
+ "original": "void",
187
+ "resolved": "void",
188
+ "references": {}
189
+ }
190
+ }];
191
+ }
192
+ static get watchers() {
193
+ return [{
194
+ "propName": "open",
195
+ "methodName": "openChanged"
196
+ }];
197
+ }
198
+ }
@@ -36,7 +36,7 @@ export class DropiDropdown {
36
36
  this.dropiChange.emit(this.selected);
37
37
  }
38
38
  render() {
39
- return (h("div", { key: 'e9b2fe1b667a4d83c0d142ff9ba8187d848f606d', class: "dropdown", style: { '--dropdown-height': this.height } }, this.parsedOptions.map((opt, i) => {
39
+ return (h("div", { key: '7c8505a82b836b58ea73603249ed2143b0692fc2', class: "dropdown", style: { '--dropdown-height': this.height } }, this.parsedOptions.map((opt, i) => {
40
40
  const label = opt[this.valueModel] ?? String(opt);
41
41
  const imgUrl = this.imageModel ? opt[this.imageModel] : '';
42
42
  const active = this.isSelected(opt);
@@ -19,6 +19,7 @@
19
19
  width: 100%;
20
20
  height: auto;
21
21
  object-fit: contain;
22
+ filter: brightness(0) saturate(100%) invert(73%) sepia(9%) saturate(503%) hue-rotate(187deg) brightness(91%) contrast(88%);
22
23
  }
23
24
 
24
25
  .empty-state-svg {
@@ -14,14 +14,18 @@ export class DropiEmptyState {
14
14
  imageAlt = 'Sin resultados';
15
15
  /** Primary action button label (empty = hidden) */
16
16
  actionLabel = '';
17
+ /** State of the illustration (default, loading, sorry, love, success, error) */
18
+ iconState = 'default';
17
19
  /** Secondary action button label (empty = hidden) */
18
20
  secondaryLabel = '';
21
+ /** Severity for the action buttons */
22
+ actionSeverity = 'tertiary';
19
23
  /** Emitted when primary action button is clicked */
20
24
  dropiAction;
21
25
  /** Emitted when secondary action button is clicked */
22
26
  dropiSecondaryAction;
23
27
  render() {
24
- 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() }))))));
28
+ 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() }))))));
25
29
  }
26
30
  static get is() { return "dropi-empty-state"; }
27
31
  static get encapsulation() { return "shadow"; }
@@ -137,6 +141,26 @@ export class DropiEmptyState {
137
141
  "attribute": "action-label",
138
142
  "defaultValue": "''"
139
143
  },
144
+ "iconState": {
145
+ "type": "string",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "'default' | 'loading' | 'sorry' | 'love' | 'success' | 'error' | 'warning' | 'info'",
149
+ "resolved": "\"default\" | \"error\" | \"info\" | \"loading\" | \"love\" | \"sorry\" | \"success\" | \"warning\"",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "State of the illustration (default, loading, sorry, love, success, error)"
157
+ },
158
+ "getter": false,
159
+ "setter": false,
160
+ "reflect": false,
161
+ "attribute": "icon-state",
162
+ "defaultValue": "'default'"
163
+ },
140
164
  "secondaryLabel": {
141
165
  "type": "string",
142
166
  "mutable": false,
@@ -156,6 +180,26 @@ export class DropiEmptyState {
156
180
  "reflect": false,
157
181
  "attribute": "secondary-label",
158
182
  "defaultValue": "''"
183
+ },
184
+ "actionSeverity": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "'primary' | 'secondary' | 'tertiary'",
189
+ "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": "Severity for the action buttons"
197
+ },
198
+ "getter": false,
199
+ "setter": false,
200
+ "reflect": false,
201
+ "attribute": "action-severity",
202
+ "defaultValue": "'tertiary'"
159
203
  }
160
204
  };
161
205
  }
@@ -14,7 +14,7 @@ export class DropiFavoriteButton {
14
14
  this.dropiToggleFavorite.emit(this.isFavorite);
15
15
  }
16
16
  render() {
17
- 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' })));
17
+ 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' })));
18
18
  }
19
19
  static get is() { return "dropi-favorite-button"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,66 @@
1
+ :host { display: block; width: 100%; }
2
+ *, *::before, *::after { box-sizing: border-box; }
3
+
4
+ .upload-wrap {
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: var(--Size-1, 4px);
8
+ }
9
+
10
+ .upload-label {
11
+ font-size: var(--font-size-xs, 10px);
12
+ color: var(--Gray-Gray-600, #475066);
13
+ }
14
+
15
+ .upload-zone {
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ justify-content: center;
20
+ gap: var(--Size-2, 8px);
21
+ padding: var(--Size-6, 32px) var(--Size-4, 16px);
22
+ border: 2px dashed var(--Gray-Gray-200, #c3c9d9);
23
+ border-radius: var(--Border-2, 8px);
24
+ background: var(--Neutral-White, #fff);
25
+ cursor: pointer;
26
+ transition: border-color 0.2s, background 0.2s;
27
+ text-align: center;
28
+ }
29
+
30
+ .upload-zone:hover:not(.upload-zone--disabled) {
31
+ border-color: var(--Primary-Primary-500, #f49a3d);
32
+ background: var(--Primary-Primary-50, #fff5eb);
33
+ }
34
+
35
+ .upload-zone--dragging {
36
+ border-color: var(--Primary-Primary-500, #f49a3d);
37
+ background: var(--Primary-Primary-50, #fff5eb);
38
+ }
39
+
40
+ .upload-zone--disabled {
41
+ background: var(--Gray-Gray-50, #f7f8fa);
42
+ cursor: not-allowed;
43
+ opacity: 0.6;
44
+ }
45
+
46
+ .upload-zone__text {
47
+ margin: 0;
48
+ font-size: var(--font-size-s, 12px);
49
+ color: var(--Gray-Gray-700, #32394d);
50
+ }
51
+
52
+ .upload-zone__hint {
53
+ margin: 0;
54
+ font-size: var(--font-size-xs, 10px);
55
+ color: var(--Gray-Gray-400, #858ea6);
56
+ }
57
+
58
+ .upload-hidden {
59
+ display: none;
60
+ }
61
+
62
+ .upload-error {
63
+ margin: 0;
64
+ font-size: var(--font-size-xs, 10px);
65
+ color: var(--Error-Error-500, #f46a6b);
66
+ }
@@ -0,0 +1,257 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-file-upload
4
+ * Drag-and-drop file upload zone with file type/size validation.
5
+ * Emits selected files as UploadedFile objects.
6
+ */
7
+ export class DropiFileUpload {
8
+ /** Accepted MIME types (comma-separated, e.g. "image/*,application/pdf") */
9
+ accept = '';
10
+ /** Allow multiple file selection */
11
+ multiple = false;
12
+ /** Max file size in MB */
13
+ maxSizeMb = 10;
14
+ /** Disabled state */
15
+ disabled = false;
16
+ /** Label text above zone */
17
+ label = '';
18
+ /** Helper text inside drop zone */
19
+ helperText = 'Arrastra o haz clic para subir un archivo';
20
+ dragging = false;
21
+ errors = [];
22
+ inputRef;
23
+ /** Emitted with array of UploadedFile when files are selected/dropped */
24
+ dropiFilesSelected;
25
+ /** Emitted when a file fails validation. e.detail = error message */
26
+ dropiFileError;
27
+ async readFiles(fileList) {
28
+ const errs = [];
29
+ const valid = [];
30
+ for (let i = 0; i < fileList.length; i++) {
31
+ const file = fileList[i];
32
+ if (this.maxSizeMb && file.size > this.maxSizeMb * 1024 * 1024) {
33
+ const msg = `"${file.name}" supera el tamaño máximo de ${this.maxSizeMb} MB`;
34
+ errs.push(msg);
35
+ this.dropiFileError.emit(msg);
36
+ continue;
37
+ }
38
+ const dataUrl = await new Promise((resolve) => {
39
+ const reader = new FileReader();
40
+ reader.onload = () => resolve(reader.result);
41
+ reader.readAsDataURL(file);
42
+ });
43
+ valid.push({ name: file.name, size: file.size, type: file.type, dataUrl });
44
+ }
45
+ this.errors = errs;
46
+ if (valid.length)
47
+ this.dropiFilesSelected.emit(valid);
48
+ }
49
+ handleDrop(e) {
50
+ e.preventDefault();
51
+ this.dragging = false;
52
+ if (this.disabled || !e.dataTransfer?.files.length)
53
+ return;
54
+ this.readFiles(e.dataTransfer.files);
55
+ }
56
+ handleInputChange(e) {
57
+ const input = e.target;
58
+ if (input.files?.length)
59
+ this.readFiles(input.files);
60
+ input.value = '';
61
+ }
62
+ render() {
63
+ return (h("div", { key: '5498c6aa5d81a5265bf4e954e7674f4db8c5c538', class: "upload-wrap" }, this.label && h("label", { key: '94cd8bcaf7dba51e9d7861412d6a509841518367', class: "upload-label" }, this.label), h("div", { key: 'c3b5417103abab569b8a883967d567a4ec6ab483', class: {
64
+ 'upload-zone': true,
65
+ 'upload-zone--dragging': this.dragging,
66
+ 'upload-zone--disabled': this.disabled,
67
+ }, onClick: () => {
68
+ if (!this.disabled)
69
+ this.inputRef.click();
70
+ }, onDragOver: (e) => {
71
+ e.preventDefault();
72
+ if (!this.disabled)
73
+ this.dragging = true;
74
+ }, onDragLeave: () => this.dragging = false, onDrop: (e) => this.handleDrop(e) }, h("dropi-icon", { key: '436802ec23dc677807ecac36947cd58f9d253e4d', name: "Upload", width: "32px", height: "32px", color: "Primary-Primary-500" }), h("p", { key: 'c80ed3536466ae22dcd96fabf353a736515e5bab', class: "upload-zone__text" }, this.helperText), this.maxSizeMb && (h("p", { key: '26defe6cece9a9ba6e9d7e2a1913a65607a20036', class: "upload-zone__hint" }, "Tama\u00F1o m\u00E1ximo: ", this.maxSizeMb, " MB")), h("input", { key: '00f7657bfc1646f01dfbc0339df6ed9f04a71ab0', ref: (el) => this.inputRef = el, type: "file", accept: this.accept, multiple: this.multiple, class: "upload-hidden", onChange: (e) => this.handleInputChange(e) })), this.errors.map(err => (h("p", { class: "upload-error" }, err)))));
75
+ }
76
+ static get is() { return "dropi-file-upload"; }
77
+ static get encapsulation() { return "shadow"; }
78
+ static get originalStyleUrls() {
79
+ return {
80
+ "$": ["dropi-file-upload.css"]
81
+ };
82
+ }
83
+ static get styleUrls() {
84
+ return {
85
+ "$": ["dropi-file-upload.css"]
86
+ };
87
+ }
88
+ static get properties() {
89
+ return {
90
+ "accept": {
91
+ "type": "string",
92
+ "mutable": false,
93
+ "complexType": {
94
+ "original": "string",
95
+ "resolved": "string",
96
+ "references": {}
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": "Accepted MIME types (comma-separated, e.g. \"image/*,application/pdf\")"
103
+ },
104
+ "getter": false,
105
+ "setter": false,
106
+ "reflect": false,
107
+ "attribute": "accept",
108
+ "defaultValue": "''"
109
+ },
110
+ "multiple": {
111
+ "type": "boolean",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "boolean",
115
+ "resolved": "boolean",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": false,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": "Allow multiple file selection"
123
+ },
124
+ "getter": false,
125
+ "setter": false,
126
+ "reflect": false,
127
+ "attribute": "multiple",
128
+ "defaultValue": "false"
129
+ },
130
+ "maxSizeMb": {
131
+ "type": "number",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "number",
135
+ "resolved": "number",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": false,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": "Max file size in MB"
143
+ },
144
+ "getter": false,
145
+ "setter": false,
146
+ "reflect": false,
147
+ "attribute": "max-size-mb",
148
+ "defaultValue": "10"
149
+ },
150
+ "disabled": {
151
+ "type": "boolean",
152
+ "mutable": false,
153
+ "complexType": {
154
+ "original": "boolean",
155
+ "resolved": "boolean",
156
+ "references": {}
157
+ },
158
+ "required": false,
159
+ "optional": false,
160
+ "docs": {
161
+ "tags": [],
162
+ "text": "Disabled state"
163
+ },
164
+ "getter": false,
165
+ "setter": false,
166
+ "reflect": false,
167
+ "attribute": "disabled",
168
+ "defaultValue": "false"
169
+ },
170
+ "label": {
171
+ "type": "string",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "string",
175
+ "resolved": "string",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "Label text above zone"
183
+ },
184
+ "getter": false,
185
+ "setter": false,
186
+ "reflect": false,
187
+ "attribute": "label",
188
+ "defaultValue": "''"
189
+ },
190
+ "helperText": {
191
+ "type": "string",
192
+ "mutable": false,
193
+ "complexType": {
194
+ "original": "string",
195
+ "resolved": "string",
196
+ "references": {}
197
+ },
198
+ "required": false,
199
+ "optional": false,
200
+ "docs": {
201
+ "tags": [],
202
+ "text": "Helper text inside drop zone"
203
+ },
204
+ "getter": false,
205
+ "setter": false,
206
+ "reflect": false,
207
+ "attribute": "helper-text",
208
+ "defaultValue": "'Arrastra o haz clic para subir un archivo'"
209
+ }
210
+ };
211
+ }
212
+ static get states() {
213
+ return {
214
+ "dragging": {},
215
+ "errors": {}
216
+ };
217
+ }
218
+ static get events() {
219
+ return [{
220
+ "method": "dropiFilesSelected",
221
+ "name": "dropiFilesSelected",
222
+ "bubbles": true,
223
+ "cancelable": true,
224
+ "composed": true,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": "Emitted with array of UploadedFile when files are selected/dropped"
228
+ },
229
+ "complexType": {
230
+ "original": "UploadedFile[]",
231
+ "resolved": "UploadedFile[]",
232
+ "references": {
233
+ "UploadedFile": {
234
+ "location": "local",
235
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-file-upload/dropi-file-upload.tsx",
236
+ "id": "src/components/dropi-file-upload/dropi-file-upload.tsx::UploadedFile"
237
+ }
238
+ }
239
+ }
240
+ }, {
241
+ "method": "dropiFileError",
242
+ "name": "dropiFileError",
243
+ "bubbles": true,
244
+ "cancelable": true,
245
+ "composed": true,
246
+ "docs": {
247
+ "tags": [],
248
+ "text": "Emitted when a file fails validation. e.detail = error message"
249
+ },
250
+ "complexType": {
251
+ "original": "string",
252
+ "resolved": "string",
253
+ "references": {}
254
+ }
255
+ }];
256
+ }
257
+ }