@dropi/ui 0.1.17 → 0.1.19

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 (253) hide show
  1. package/dist/cjs/dropi-accordion.cjs.entry.js +1 -1
  2. package/dist/cjs/dropi-alert.cjs.entry.js +58 -0
  3. package/dist/cjs/dropi-avatars.cjs.entry.js +31 -0
  4. package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/dropi-button.cjs.entry.js +2 -2
  6. package/dist/cjs/dropi-card-section.cjs.entry.js +38 -0
  7. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +71 -0
  8. package/dist/cjs/dropi-checkbox.cjs.entry.js +2 -2
  9. package/dist/cjs/dropi-chips.cjs.entry.js +30 -0
  10. package/dist/cjs/dropi-dropdown.cjs.entry.js +58 -0
  11. package/dist/cjs/dropi-empty-state.cjs.entry.js +1 -1
  12. package/dist/cjs/dropi-favorite-button.cjs.entry.js +27 -0
  13. package/dist/cjs/dropi-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/dropi-image-miniature.cjs.entry.js +44 -0
  15. package/dist/cjs/dropi-image-overlay.cjs.entry.js +62 -0
  16. package/dist/cjs/dropi-input.cjs.entry.js +5 -5
  17. package/dist/cjs/dropi-logo.cjs.entry.js +27 -0
  18. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +27 -0
  19. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +92 -0
  20. package/dist/cjs/dropi-paginator.cjs.entry.js +5 -3
  21. package/dist/cjs/dropi-radio-button.cjs.entry.js +1 -1
  22. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +56 -0
  23. package/dist/cjs/dropi-read-more.cjs.entry.js +36 -0
  24. package/dist/cjs/dropi-search.cjs.entry.js +110 -0
  25. package/dist/cjs/dropi-select.cjs.entry.js +1 -1
  26. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +51 -0
  27. package/dist/cjs/dropi-steps.cjs.entry.js +50 -0
  28. package/dist/cjs/dropi-switch.cjs.entry.js +1 -1
  29. package/dist/cjs/dropi-tabs.cjs.entry.js +1 -1
  30. package/dist/cjs/dropi-tag.cjs.entry.js +1 -1
  31. package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
  32. package/dist/cjs/dropi-time-line.cjs.entry.js +34 -0
  33. package/dist/cjs/dropi-toast.cjs.entry.js +1 -1
  34. package/dist/cjs/dropi-tooltip.cjs.entry.js +1 -1
  35. package/dist/cjs/dropi-ui.cjs.js +1 -1
  36. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +55 -0
  37. package/dist/cjs/loader.cjs.js +1 -1
  38. package/dist/collection/collection-manifest.json +19 -0
  39. package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
  40. package/dist/collection/components/dropi-alert/dropi-alert.css +123 -0
  41. package/dist/collection/components/dropi-alert/dropi-alert.js +305 -0
  42. package/dist/collection/components/dropi-avatars/dropi-avatars.css +55 -0
  43. package/dist/collection/components/dropi-avatars/dropi-avatars.js +126 -0
  44. package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
  45. package/dist/collection/components/dropi-button/dropi-button.js +2 -2
  46. package/dist/collection/components/dropi-card-section/dropi-card-section.css +42 -0
  47. package/dist/collection/components/dropi-card-section/dropi-card-section.js +178 -0
  48. package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
  49. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +44 -0
  50. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +245 -0
  51. package/dist/collection/components/dropi-chips/dropi-chips.css +66 -0
  52. package/dist/collection/components/dropi-chips/dropi-chips.js +169 -0
  53. package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +51 -0
  54. package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +184 -0
  55. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
  56. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +24 -0
  57. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +78 -0
  58. package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
  59. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +45 -0
  60. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +150 -0
  61. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +82 -0
  62. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +155 -0
  63. package/dist/collection/components/dropi-input/dropi-input.css +11 -0
  64. package/dist/collection/components/dropi-input/dropi-input.js +4 -4
  65. package/dist/collection/components/dropi-logo/dropi-logo.css +26 -0
  66. package/dist/collection/components/dropi-logo/dropi-logo.js +96 -0
  67. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +50 -0
  68. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +116 -0
  69. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +60 -0
  70. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +221 -0
  71. package/dist/collection/components/dropi-paginator/dropi-paginator.css +15 -12
  72. package/dist/collection/components/dropi-paginator/dropi-paginator.js +24 -2
  73. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
  74. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +64 -0
  75. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +209 -0
  76. package/dist/collection/components/dropi-read-more/dropi-read-more.css +28 -0
  77. package/dist/collection/components/dropi-read-more/dropi-read-more.js +110 -0
  78. package/dist/collection/components/dropi-search/dropi-search.css +112 -0
  79. package/dist/collection/components/dropi-search/dropi-search.js +392 -0
  80. package/dist/collection/components/dropi-select/dropi-select.js +1 -1
  81. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +94 -0
  82. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +172 -0
  83. package/dist/collection/components/dropi-steps/dropi-steps.css +95 -0
  84. package/dist/collection/components/dropi-steps/dropi-steps.js +145 -0
  85. package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
  86. package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
  87. package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
  88. package/dist/collection/components/dropi-text-area/dropi-text-area.css +0 -1
  89. package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
  90. package/dist/collection/components/dropi-time-line/dropi-time-line.css +108 -0
  91. package/dist/collection/components/dropi-time-line/dropi-time-line.js +69 -0
  92. package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
  93. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
  94. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +95 -0
  95. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +167 -0
  96. package/dist/components/dropi-accordion.js +1 -1
  97. package/dist/components/dropi-alert.d.ts +11 -0
  98. package/dist/components/dropi-alert.js +1 -0
  99. package/dist/components/dropi-avatars.d.ts +11 -0
  100. package/dist/components/dropi-avatars.js +1 -0
  101. package/dist/components/dropi-badge.js +1 -1
  102. package/dist/components/dropi-button.js +1 -1
  103. package/dist/components/dropi-card-section.d.ts +11 -0
  104. package/dist/components/dropi-card-section.js +1 -0
  105. package/dist/components/dropi-checkbox-selection-list.d.ts +11 -0
  106. package/dist/components/dropi-checkbox-selection-list.js +1 -0
  107. package/dist/components/dropi-checkbox.js +1 -1
  108. package/dist/components/dropi-chips.d.ts +11 -0
  109. package/dist/components/dropi-chips.js +1 -0
  110. package/dist/components/dropi-dropdown.d.ts +11 -0
  111. package/dist/components/dropi-dropdown.js +1 -0
  112. package/dist/components/dropi-empty-state.js +1 -1
  113. package/dist/components/dropi-favorite-button.d.ts +11 -0
  114. package/dist/components/dropi-favorite-button.js +1 -0
  115. package/dist/components/dropi-icon.js +1 -1
  116. package/dist/components/dropi-image-miniature.d.ts +11 -0
  117. package/dist/components/dropi-image-miniature.js +1 -0
  118. package/dist/components/dropi-image-overlay.d.ts +11 -0
  119. package/dist/components/dropi-image-overlay.js +1 -0
  120. package/dist/components/dropi-input.js +1 -1
  121. package/dist/components/dropi-logo.d.ts +11 -0
  122. package/dist/components/dropi-logo.js +1 -0
  123. package/dist/components/dropi-lottie-loader.d.ts +11 -0
  124. package/dist/components/dropi-lottie-loader.js +1 -0
  125. package/dist/components/dropi-modal.js +1 -1
  126. package/dist/components/dropi-otp-send-code.d.ts +11 -0
  127. package/dist/components/dropi-otp-send-code.js +1 -0
  128. package/dist/components/dropi-paginator.js +1 -1
  129. package/dist/components/dropi-radio-button.js +1 -1
  130. package/dist/components/dropi-radio-selection-list.d.ts +11 -0
  131. package/dist/components/dropi-radio-selection-list.js +1 -0
  132. package/dist/components/dropi-read-more.d.ts +11 -0
  133. package/dist/components/dropi-read-more.js +1 -0
  134. package/dist/components/dropi-search.d.ts +11 -0
  135. package/dist/components/dropi-search.js +1 -0
  136. package/dist/components/dropi-select.js +1 -1
  137. package/dist/components/dropi-simple-stepper.d.ts +11 -0
  138. package/dist/components/dropi-simple-stepper.js +1 -0
  139. package/dist/components/dropi-steps.d.ts +11 -0
  140. package/dist/components/dropi-steps.js +1 -0
  141. package/dist/components/dropi-switch.js +1 -1
  142. package/dist/components/dropi-tabs.js +1 -1
  143. package/dist/components/dropi-tag.js +1 -1
  144. package/dist/components/dropi-text-area.js +1 -1
  145. package/dist/components/dropi-time-line.d.ts +11 -0
  146. package/dist/components/dropi-time-line.js +1 -0
  147. package/dist/components/dropi-toast.js +1 -1
  148. package/dist/components/dropi-tooltip.js +1 -1
  149. package/dist/components/dropi-vertical-steps.d.ts +11 -0
  150. package/dist/components/dropi-vertical-steps.js +1 -0
  151. package/dist/components/{p-ChOXWKmI.js → p-CPs3fHRc.js} +1 -1
  152. package/dist/components/p-DKXrREI4.js +1 -0
  153. package/dist/components/p-Ds74ZOlC.js +1 -0
  154. package/dist/components/{p-NCyvfOs2.js → p-WZTFyFH2.js} +1 -1
  155. package/dist/dropi-ui/dropi-ui.esm.js +1 -1
  156. package/dist/dropi-ui/p-061e1ad4.entry.js +1 -0
  157. package/dist/dropi-ui/{p-ecda6e19.entry.js → p-0c13dded.entry.js} +1 -1
  158. package/dist/dropi-ui/{p-79466fec.entry.js → p-121c8a09.entry.js} +1 -1
  159. package/dist/dropi-ui/p-291a1416.entry.js +1 -0
  160. package/dist/dropi-ui/p-2cee44f9.entry.js +1 -0
  161. package/dist/dropi-ui/{p-6031ac9d.entry.js → p-30fdd316.entry.js} +1 -1
  162. package/dist/dropi-ui/p-3537ee5a.entry.js +1 -0
  163. package/dist/dropi-ui/{p-26dbae0d.entry.js → p-3d859657.entry.js} +1 -1
  164. package/dist/dropi-ui/p-433d161d.entry.js +1 -0
  165. package/dist/dropi-ui/p-4bdfad16.entry.js +1 -0
  166. package/dist/dropi-ui/p-4ea7d3a7.entry.js +1 -0
  167. package/dist/dropi-ui/{p-09c38a49.entry.js → p-51c8ef68.entry.js} +1 -1
  168. package/dist/dropi-ui/{p-6d15d32f.entry.js → p-54780c90.entry.js} +1 -1
  169. package/dist/dropi-ui/{p-63e969da.entry.js → p-66deb85e.entry.js} +1 -1
  170. package/dist/dropi-ui/p-68f81080.entry.js +1 -0
  171. package/dist/dropi-ui/p-724a2aea.entry.js +1 -0
  172. package/dist/dropi-ui/p-74c37688.entry.js +1 -0
  173. package/dist/dropi-ui/p-7cec1cea.entry.js +1 -0
  174. package/dist/dropi-ui/{p-f0e1e0f6.entry.js → p-7daa2677.entry.js} +1 -1
  175. package/dist/dropi-ui/p-8906a68d.entry.js +1 -0
  176. package/dist/dropi-ui/{p-1739d20c.entry.js → p-a4204ece.entry.js} +1 -1
  177. package/dist/dropi-ui/p-a9116dbe.entry.js +1 -0
  178. package/dist/dropi-ui/p-b36b819f.entry.js +1 -0
  179. package/dist/dropi-ui/p-c10cbb8d.entry.js +1 -0
  180. package/dist/dropi-ui/{p-42179ae4.entry.js → p-c2316d4d.entry.js} +1 -1
  181. package/dist/dropi-ui/{p-e44242e2.entry.js → p-cb5fd7a9.entry.js} +1 -1
  182. package/dist/dropi-ui/p-d1e1b716.entry.js +1 -0
  183. package/dist/dropi-ui/p-d5ecc394.entry.js +1 -0
  184. package/dist/dropi-ui/p-db6c9828.entry.js +1 -0
  185. package/dist/dropi-ui/{p-4d582d58.entry.js → p-e721127d.entry.js} +1 -1
  186. package/dist/dropi-ui/p-e8557da0.entry.js +1 -0
  187. package/dist/dropi-ui/p-ebfd4665.entry.js +1 -0
  188. package/dist/dropi-ui/p-f3cef35a.entry.js +1 -0
  189. package/dist/dropi-ui/p-f6a69c4e.entry.js +1 -0
  190. package/dist/dropi-ui/{p-65fa8558.entry.js → p-ff45e7c8.entry.js} +1 -1
  191. package/dist/esm/dropi-accordion.entry.js +1 -1
  192. package/dist/esm/dropi-alert.entry.js +56 -0
  193. package/dist/esm/dropi-avatars.entry.js +29 -0
  194. package/dist/esm/dropi-badge.entry.js +1 -1
  195. package/dist/esm/dropi-button.entry.js +2 -2
  196. package/dist/esm/dropi-card-section.entry.js +36 -0
  197. package/dist/esm/dropi-checkbox-selection-list.entry.js +69 -0
  198. package/dist/esm/dropi-checkbox.entry.js +2 -2
  199. package/dist/esm/dropi-chips.entry.js +28 -0
  200. package/dist/esm/dropi-dropdown.entry.js +56 -0
  201. package/dist/esm/dropi-empty-state.entry.js +1 -1
  202. package/dist/esm/dropi-favorite-button.entry.js +25 -0
  203. package/dist/esm/dropi-icon.entry.js +1 -1
  204. package/dist/esm/dropi-image-miniature.entry.js +42 -0
  205. package/dist/esm/dropi-image-overlay.entry.js +60 -0
  206. package/dist/esm/dropi-input.entry.js +5 -5
  207. package/dist/esm/dropi-logo.entry.js +25 -0
  208. package/dist/esm/dropi-lottie-loader.entry.js +25 -0
  209. package/dist/esm/dropi-otp-send-code.entry.js +90 -0
  210. package/dist/esm/dropi-paginator.entry.js +5 -3
  211. package/dist/esm/dropi-radio-button.entry.js +1 -1
  212. package/dist/esm/dropi-radio-selection-list.entry.js +54 -0
  213. package/dist/esm/dropi-read-more.entry.js +34 -0
  214. package/dist/esm/dropi-search.entry.js +108 -0
  215. package/dist/esm/dropi-select.entry.js +1 -1
  216. package/dist/esm/dropi-simple-stepper.entry.js +49 -0
  217. package/dist/esm/dropi-steps.entry.js +48 -0
  218. package/dist/esm/dropi-switch.entry.js +1 -1
  219. package/dist/esm/dropi-tabs.entry.js +1 -1
  220. package/dist/esm/dropi-tag.entry.js +1 -1
  221. package/dist/esm/dropi-text-area.entry.js +3 -3
  222. package/dist/esm/dropi-time-line.entry.js +32 -0
  223. package/dist/esm/dropi-toast.entry.js +1 -1
  224. package/dist/esm/dropi-tooltip.entry.js +1 -1
  225. package/dist/esm/dropi-ui.js +1 -1
  226. package/dist/esm/dropi-vertical-steps.entry.js +53 -0
  227. package/dist/esm/loader.js +1 -1
  228. package/dist/types/components/dropi-alert/dropi-alert.d.ts +35 -0
  229. package/dist/types/components/dropi-avatars/dropi-avatars.d.ts +17 -0
  230. package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +22 -0
  231. package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +37 -0
  232. package/dist/types/components/dropi-chips/dropi-chips.d.ts +23 -0
  233. package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +28 -0
  234. package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +14 -0
  235. package/dist/types/components/dropi-image-miniature/dropi-image-miniature.d.ts +23 -0
  236. package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +26 -0
  237. package/dist/types/components/dropi-logo/dropi-logo.d.ts +14 -0
  238. package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +15 -0
  239. package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +33 -0
  240. package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +2 -0
  241. package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +34 -0
  242. package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +17 -0
  243. package/dist/types/components/dropi-search/dropi-search.d.ts +51 -0
  244. package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +20 -0
  245. package/dist/types/components/dropi-steps/dropi-steps.d.ts +21 -0
  246. package/dist/types/components/dropi-time-line/dropi-time-line.d.ts +18 -0
  247. package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +24 -0
  248. package/dist/types/components.d.ts +1830 -3
  249. package/package.json +1 -1
  250. package/readme.md +189 -2
  251. package/dist/dropi-ui/p-082b7039.entry.js +0 -1
  252. package/dist/dropi-ui/p-eb7f9a57.entry.js +0 -1
  253. package/dist/dropi-ui/p-f283f41d.entry.js +0 -1
@@ -0,0 +1,169 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-chips
4
+ * Chip/tag-like element with optional icon, avatar, and close button.
5
+ * Use <slot> for the chip label text.
6
+ */
7
+ export class DropiChips {
8
+ /** Visual style */
9
+ chipStyle = 'filters';
10
+ /** Content type */
11
+ type = 'text';
12
+ /** Avatar image URL (when type = 'avatar') */
13
+ urlImg = '';
14
+ /** Show the close/remove icon */
15
+ showIcon = true;
16
+ /** Icon name (when type = 'icon') */
17
+ icon = '';
18
+ /** Emitted when the close icon is clicked */
19
+ dropiClose;
20
+ render() {
21
+ return (h("div", { key: '06d0ac1f96349389f1513b59a1f84dbff9864169', class: { 'chip': true, [`chip--${this.chipStyle}`]: true } }, this.type === 'avatar' && this.urlImg && (h("img", { key: '38bc54471c0cf6dc7a25cccaba0764573d5d43e1', class: "chip__avatar", src: this.urlImg, alt: "" })), this.type === 'icon' && this.icon && (h("dropi-icon", { key: '908f3b217b425f6a3c9bf242a94110b742ca34b3', class: "chip__pre-icon", name: this.icon, width: "14px", height: "14px", color: "currentColor" })), h("span", { key: 'cb76f76056e6a28cfc497f2fabece2c95d6b9a60', class: "chip__text" }, h("slot", { key: '4d3aade9d8408d2b5b627c43754a9cfafd44b941' })), this.showIcon && (h("button", { key: 'fbb30fa90841e499d21c928c4a319724def58bb2', class: "chip__close", onClick: () => this.dropiClose.emit(), "aria-label": "Eliminar" }, h("dropi-icon", { key: 'f11c820069c550fa7ee3a143c3c6f29d338041c8', name: "Close-small", width: "14px", height: "14px", color: "currentColor" })))));
22
+ }
23
+ static get is() { return "dropi-chips"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["dropi-chips.css"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["dropi-chips.css"]
33
+ };
34
+ }
35
+ static get properties() {
36
+ return {
37
+ "chipStyle": {
38
+ "type": "string",
39
+ "mutable": false,
40
+ "complexType": {
41
+ "original": "ChipStyle",
42
+ "resolved": "\"fill\" | \"filters\"",
43
+ "references": {
44
+ "ChipStyle": {
45
+ "location": "local",
46
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-chips/dropi-chips.tsx",
47
+ "id": "src/components/dropi-chips/dropi-chips.tsx::ChipStyle"
48
+ }
49
+ }
50
+ },
51
+ "required": false,
52
+ "optional": false,
53
+ "docs": {
54
+ "tags": [],
55
+ "text": "Visual style"
56
+ },
57
+ "getter": false,
58
+ "setter": false,
59
+ "reflect": false,
60
+ "attribute": "chip-style",
61
+ "defaultValue": "'filters'"
62
+ },
63
+ "type": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "ChipType",
68
+ "resolved": "\"avatar\" | \"icon\" | \"text\"",
69
+ "references": {
70
+ "ChipType": {
71
+ "location": "local",
72
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-chips/dropi-chips.tsx",
73
+ "id": "src/components/dropi-chips/dropi-chips.tsx::ChipType"
74
+ }
75
+ }
76
+ },
77
+ "required": false,
78
+ "optional": false,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": "Content type"
82
+ },
83
+ "getter": false,
84
+ "setter": false,
85
+ "reflect": false,
86
+ "attribute": "type",
87
+ "defaultValue": "'text'"
88
+ },
89
+ "urlImg": {
90
+ "type": "string",
91
+ "mutable": false,
92
+ "complexType": {
93
+ "original": "string",
94
+ "resolved": "string",
95
+ "references": {}
96
+ },
97
+ "required": false,
98
+ "optional": false,
99
+ "docs": {
100
+ "tags": [],
101
+ "text": "Avatar image URL (when type = 'avatar')"
102
+ },
103
+ "getter": false,
104
+ "setter": false,
105
+ "reflect": false,
106
+ "attribute": "url-img",
107
+ "defaultValue": "''"
108
+ },
109
+ "showIcon": {
110
+ "type": "boolean",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "boolean",
114
+ "resolved": "boolean",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Show the close/remove icon"
122
+ },
123
+ "getter": false,
124
+ "setter": false,
125
+ "reflect": false,
126
+ "attribute": "show-icon",
127
+ "defaultValue": "true"
128
+ },
129
+ "icon": {
130
+ "type": "string",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "string",
134
+ "resolved": "string",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": false,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": "Icon name (when type = 'icon')"
142
+ },
143
+ "getter": false,
144
+ "setter": false,
145
+ "reflect": false,
146
+ "attribute": "icon",
147
+ "defaultValue": "''"
148
+ }
149
+ };
150
+ }
151
+ static get events() {
152
+ return [{
153
+ "method": "dropiClose",
154
+ "name": "dropiClose",
155
+ "bubbles": true,
156
+ "cancelable": true,
157
+ "composed": true,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "Emitted when the close icon is clicked"
161
+ },
162
+ "complexType": {
163
+ "original": "void",
164
+ "resolved": "void",
165
+ "references": {}
166
+ }
167
+ }];
168
+ }
169
+ }
@@ -0,0 +1,51 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ *, *::before, *::after { box-sizing: border-box; }
7
+
8
+ .dropdown {
9
+ display: flex;
10
+ flex-direction: column;
11
+ overflow-y: auto;
12
+ max-height: var(--dropdown-height, 300px);
13
+ border: 1px solid var(--Gray-Gray-200, #c3c9d9);
14
+ border-radius: var(--Border-2, 8px);
15
+ background: var(--Neutral-White, #fff);
16
+ }
17
+
18
+ .dropdown__item {
19
+ display: flex;
20
+ align-items: center;
21
+ gap: var(--Size-2, 8px);
22
+ padding: var(--Size-2, 8px) var(--Size-3, 12px);
23
+ cursor: pointer;
24
+ transition: background 0.15s;
25
+ user-select: none;
26
+ }
27
+
28
+ .dropdown__item:hover {
29
+ background: var(--Gray-Gray-50, #f7f8fa);
30
+ }
31
+
32
+ .dropdown__item--active {
33
+ background: var(--Primary-Primary-50, #fff5eb);
34
+ }
35
+
36
+ .dropdown__avatar {
37
+ width: 28px;
38
+ height: 28px;
39
+ border-radius: 50%;
40
+ object-fit: cover;
41
+ flex-shrink: 0;
42
+ }
43
+
44
+ .dropdown__label {
45
+ flex: 1;
46
+ font-size: var(--font-size-s, 12px);
47
+ color: var(--Gray-Gray-700, #32394d);
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ white-space: nowrap;
51
+ }
@@ -0,0 +1,184 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-dropdown
4
+ * Scrollable list with checkboxes for multi-selection.
5
+ * Pass options as an array (JS) or JSON string.
6
+ */
7
+ export class DropiDropdown {
8
+ /** Options array or JSON string */
9
+ options = [];
10
+ /** Property name to display as the option label */
11
+ valueModel = 'name';
12
+ /** Property name to use as the option image/avatar URL */
13
+ imageModel = '';
14
+ /** Max height of the list container (CSS value) */
15
+ height = '300px';
16
+ selected = [];
17
+ parsedOptions = [];
18
+ /** Emitted when selection changes. e.detail = selected items array */
19
+ dropiChange;
20
+ optionsChanged(val) {
21
+ this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
22
+ }
23
+ componentWillLoad() {
24
+ this.optionsChanged(this.options);
25
+ }
26
+ isSelected(opt) {
27
+ return this.selected.some(s => JSON.stringify(s) === JSON.stringify(opt));
28
+ }
29
+ toggleOption(opt) {
30
+ if (this.isSelected(opt)) {
31
+ this.selected = this.selected.filter(s => JSON.stringify(s) !== JSON.stringify(opt));
32
+ }
33
+ else {
34
+ this.selected = [...this.selected, opt];
35
+ }
36
+ this.dropiChange.emit(this.selected);
37
+ }
38
+ render() {
39
+ return (h("div", { key: 'e9b2fe1b667a4d83c0d142ff9ba8187d848f606d', class: "dropdown", style: { '--dropdown-height': this.height } }, this.parsedOptions.map((opt, i) => {
40
+ const label = opt[this.valueModel] ?? String(opt);
41
+ const imgUrl = this.imageModel ? opt[this.imageModel] : '';
42
+ const active = this.isSelected(opt);
43
+ return (h("div", { class: { 'dropdown__item': true, 'dropdown__item--active': active }, key: i, onClick: () => this.toggleOption(opt) }, h("dropi-checkbox", { checked: active }), imgUrl && (h("img", { class: "dropdown__avatar", src: imgUrl, alt: label })), h("span", { class: "dropdown__label" }, label)));
44
+ })));
45
+ }
46
+ static get is() { return "dropi-dropdown"; }
47
+ static get encapsulation() { return "shadow"; }
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["dropi-dropdown.css"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["dropi-dropdown.css"]
56
+ };
57
+ }
58
+ static get properties() {
59
+ return {
60
+ "options": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "DropdownOption[] | string",
65
+ "resolved": "DropdownOption[] | string",
66
+ "references": {
67
+ "DropdownOption": {
68
+ "location": "local",
69
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-dropdown/dropi-dropdown.tsx",
70
+ "id": "src/components/dropi-dropdown/dropi-dropdown.tsx::DropdownOption"
71
+ }
72
+ }
73
+ },
74
+ "required": false,
75
+ "optional": false,
76
+ "docs": {
77
+ "tags": [],
78
+ "text": "Options array or JSON string"
79
+ },
80
+ "getter": false,
81
+ "setter": false,
82
+ "reflect": false,
83
+ "attribute": "options",
84
+ "defaultValue": "[]"
85
+ },
86
+ "valueModel": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "Property name to display as the option label"
99
+ },
100
+ "getter": false,
101
+ "setter": false,
102
+ "reflect": false,
103
+ "attribute": "value-model",
104
+ "defaultValue": "'name'"
105
+ },
106
+ "imageModel": {
107
+ "type": "string",
108
+ "mutable": false,
109
+ "complexType": {
110
+ "original": "string",
111
+ "resolved": "string",
112
+ "references": {}
113
+ },
114
+ "required": false,
115
+ "optional": false,
116
+ "docs": {
117
+ "tags": [],
118
+ "text": "Property name to use as the option image/avatar URL"
119
+ },
120
+ "getter": false,
121
+ "setter": false,
122
+ "reflect": false,
123
+ "attribute": "image-model",
124
+ "defaultValue": "''"
125
+ },
126
+ "height": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "string",
131
+ "resolved": "string",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "Max height of the list container (CSS value)"
139
+ },
140
+ "getter": false,
141
+ "setter": false,
142
+ "reflect": false,
143
+ "attribute": "height",
144
+ "defaultValue": "'300px'"
145
+ }
146
+ };
147
+ }
148
+ static get states() {
149
+ return {
150
+ "selected": {},
151
+ "parsedOptions": {}
152
+ };
153
+ }
154
+ static get events() {
155
+ return [{
156
+ "method": "dropiChange",
157
+ "name": "dropiChange",
158
+ "bubbles": true,
159
+ "cancelable": true,
160
+ "composed": true,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": "Emitted when selection changes. e.detail = selected items array"
164
+ },
165
+ "complexType": {
166
+ "original": "DropdownOption[]",
167
+ "resolved": "DropdownOption[]",
168
+ "references": {
169
+ "DropdownOption": {
170
+ "location": "local",
171
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-dropdown/dropi-dropdown.tsx",
172
+ "id": "src/components/dropi-dropdown/dropi-dropdown.tsx::DropdownOption"
173
+ }
174
+ }
175
+ }
176
+ }];
177
+ }
178
+ static get watchers() {
179
+ return [{
180
+ "propName": "options",
181
+ "methodName": "optionsChanged"
182
+ }];
183
+ }
184
+ }
@@ -21,7 +21,7 @@ export class DropiEmptyState {
21
21
  /** Emitted when secondary action button is clicked */
22
22
  dropiSecondaryAction;
23
23
  render() {
24
- return (h("div", { key: '1aea01715d0e50b308904d496be7bc2f607bf5aa', 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: '41e5da8d482456f4b9006449a27a9f9d172d87b4', class: "empty-state-title" }, this.header), this.description && h("p", { key: 'ffa6399489ec56cd2cf84bb39d12c112bee64302', class: "empty-state-description" }, this.description), h("slot", { key: '6ccdfed94a22ad7ece2388fba3d4734aa6a2b509' }), (this.actionLabel || this.secondaryLabel) && (h("div", { key: '0da97fd516eccd1cabe846b2d002fdf75306674d', class: "empty-state-actions" }, this.secondaryLabel && (h("dropi-button", { key: 'de1b1ad4d6a50cfd251de243a3b5ea3beb10019b', text: this.secondaryLabel, severity: "secondary", onDropiClick: () => this.dropiSecondaryAction.emit() })), this.actionLabel && (h("dropi-button", { key: '59f3b47ee14f3ac89aa4acc5b42d856f26d02d19', text: this.actionLabel, severity: "primary", onDropiClick: () => this.dropiAction.emit() }))))));
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() }))))));
25
25
  }
26
26
  static get is() { return "dropi-empty-state"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,24 @@
1
+ :host { display: inline-flex; }
2
+
3
+ .fav-btn {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ width: 37px;
8
+ height: 37px;
9
+ border-radius: 8px;
10
+ border: 1px solid var(--Gray-Gray-200);
11
+ background: var(--Neutral-White);
12
+ cursor: pointer;
13
+ transition: all 0.2s ease-in-out;
14
+ }
15
+
16
+ .fav-btn:hover,
17
+ .fav-btn--active {
18
+ background: var(--Gray-Gray-50);
19
+ }
20
+
21
+ /* Optional: Subtle scale on click */
22
+ .fav-btn:active {
23
+ transform: scale(0.95);
24
+ }
@@ -0,0 +1,78 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-favorite-button
4
+ * Heart toggle button for marking items as favorite.
5
+ */
6
+ export class DropiFavoriteButton {
7
+ /** Whether the item is currently marked as favorite */
8
+ isFavorite = false;
9
+ /** Emitted when toggled. e.detail = new favorite state */
10
+ dropiToggleFavorite;
11
+ hovered = false;
12
+ toggle() {
13
+ this.isFavorite = !this.isFavorite;
14
+ this.dropiToggleFavorite.emit(this.isFavorite);
15
+ }
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' })));
18
+ }
19
+ static get is() { return "dropi-favorite-button"; }
20
+ static get encapsulation() { return "shadow"; }
21
+ static get originalStyleUrls() {
22
+ return {
23
+ "$": ["dropi-favorite-button.css"]
24
+ };
25
+ }
26
+ static get styleUrls() {
27
+ return {
28
+ "$": ["dropi-favorite-button.css"]
29
+ };
30
+ }
31
+ static get properties() {
32
+ return {
33
+ "isFavorite": {
34
+ "type": "boolean",
35
+ "mutable": true,
36
+ "complexType": {
37
+ "original": "boolean",
38
+ "resolved": "boolean",
39
+ "references": {}
40
+ },
41
+ "required": false,
42
+ "optional": false,
43
+ "docs": {
44
+ "tags": [],
45
+ "text": "Whether the item is currently marked as favorite"
46
+ },
47
+ "getter": false,
48
+ "setter": false,
49
+ "reflect": false,
50
+ "attribute": "is-favorite",
51
+ "defaultValue": "false"
52
+ }
53
+ };
54
+ }
55
+ static get states() {
56
+ return {
57
+ "hovered": {}
58
+ };
59
+ }
60
+ static get events() {
61
+ return [{
62
+ "method": "dropiToggleFavorite",
63
+ "name": "dropiToggleFavorite",
64
+ "bubbles": true,
65
+ "cancelable": true,
66
+ "composed": true,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "Emitted when toggled. e.detail = new favorite state"
70
+ },
71
+ "complexType": {
72
+ "original": "boolean",
73
+ "resolved": "boolean",
74
+ "references": {}
75
+ }
76
+ }];
77
+ }
78
+ }
@@ -34,7 +34,7 @@ export class DropiIcon {
34
34
  this.el.style.setProperty('--icon-fill', fill);
35
35
  }
36
36
  render() {
37
- return (h("svg", { key: '2bcb456155fc78c9602c5e34bc8f70d0d44bd050', width: this.width, height: this.height, class: { spin: this.name === 'Spinner' }, "aria-hidden": "true" }, h("use", { key: '92aa54406161cfdf5deda5f42a83e06480eb6208', href: `/assets/icons/symbol/svg/sprite.css.svg#${this.name}` })));
37
+ return (h("svg", { key: 'd92e0c9deb01962dfb172ae25af4f1236647e24c', width: this.width, height: this.height, class: { spin: this.name === 'Spinner' }, "aria-hidden": "true" }, h("use", { key: '76be21d4bcbb2a5409e0c784cd17c6ca3cd243f6', href: `/assets/icons/symbol/svg/sprite.css.svg#${this.name}` })));
38
38
  }
39
39
  static get is() { return "dropi-icon"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,45 @@
1
+ :host { display: block; }
2
+ *, *::before, *::after { box-sizing: border-box; }
3
+
4
+ .miniature__label {
5
+ display: block;
6
+ font-size: var(--font-size-xs, 10px);
7
+ color: var(--Gray-Gray-600, #475066);
8
+ margin-bottom: var(--Size-2, 8px);
9
+ }
10
+
11
+ .miniature__grid {
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ gap: var(--Size-2, 8px);
15
+ }
16
+
17
+ .miniature__item {
18
+ position: relative;
19
+ border-radius: var(--Border-2, 8px);
20
+ overflow: hidden;
21
+ cursor: pointer;
22
+ flex-shrink: 0;
23
+ }
24
+
25
+ .miniature__item img {
26
+ width: 100%;
27
+ height: 100%;
28
+ object-fit: cover;
29
+ display: block;
30
+ transition: transform 0.2s;
31
+ }
32
+
33
+ .miniature__zoom {
34
+ position: absolute;
35
+ inset: 0;
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ background: rgba(0,0,0,0.35);
40
+ opacity: 0;
41
+ transition: opacity 0.2s;
42
+ }
43
+
44
+ .miniature__item:hover img { transform: scale(1.05); }
45
+ .miniature__item:hover .miniature__zoom { opacity: 1; }