@dropi/ui 0.1.18 → 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 (252) 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/dist/dropi-ui/p-082b7039.entry.js +0 -1
  251. package/dist/dropi-ui/p-eb7f9a57.entry.js +0 -1
  252. package/dist/dropi-ui/p-f283f41d.entry.js +0 -1
@@ -0,0 +1,178 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-card-section
4
+ * Section card with title, description and a switch or dropdown control.
5
+ */
6
+ export class DropiCardSection {
7
+ /** Section title */
8
+ sectionTitle = '';
9
+ /** Section description */
10
+ description = '';
11
+ /** Control type on the right */
12
+ typeElement = 'switch';
13
+ /** Title size variant */
14
+ type = 'medium';
15
+ /** Switch checked state */
16
+ isChecked = false;
17
+ /** Emitted when switch changes. e.detail = new boolean value */
18
+ dropiChange;
19
+ /** Emitted when dropdown icon is clicked */
20
+ dropiClick;
21
+ render() {
22
+ return (h("div", { key: '5820426132998a0fcc95ec9bc5626044809bc8f9', class: "card-section" }, h("div", { key: '56023483c0be283b4e8b71bdb8ab91c3bbe0e518', class: "card-section__text" }, this.type === 'important'
23
+ ? h("h5", { class: "card-section__title card-section__title--important" }, this.sectionTitle)
24
+ : h("h6", { class: "card-section__title" }, this.sectionTitle), this.description && h("p", { key: '123f616e6404040a052c8e3313ea74368ef1564e', class: "card-section__desc" }, this.description)), h("div", { key: '70d91f09bfe12b561a0457d6b1c531e04c697119', class: "card-section__control" }, this.typeElement === 'switch' ? (h("dropi-switch", { isChecked: this.isChecked, onDropiChange: (e) => {
25
+ this.isChecked = e.detail;
26
+ this.dropiChange.emit(e.detail);
27
+ } })) : (h("button", { class: "card-section__dropdown-btn", onClick: () => this.dropiClick.emit(), "aria-label": "Expandir" }, h("dropi-icon", { name: "Dropdown-down", width: "20px", height: "20px", color: "Gray-Gray-500" }))))));
28
+ }
29
+ static get is() { return "dropi-card-section"; }
30
+ static get encapsulation() { return "shadow"; }
31
+ static get originalStyleUrls() {
32
+ return {
33
+ "$": ["dropi-card-section.css"]
34
+ };
35
+ }
36
+ static get styleUrls() {
37
+ return {
38
+ "$": ["dropi-card-section.css"]
39
+ };
40
+ }
41
+ static get properties() {
42
+ return {
43
+ "sectionTitle": {
44
+ "type": "string",
45
+ "mutable": false,
46
+ "complexType": {
47
+ "original": "string",
48
+ "resolved": "string",
49
+ "references": {}
50
+ },
51
+ "required": false,
52
+ "optional": false,
53
+ "docs": {
54
+ "tags": [],
55
+ "text": "Section title"
56
+ },
57
+ "getter": false,
58
+ "setter": false,
59
+ "reflect": false,
60
+ "attribute": "section-title",
61
+ "defaultValue": "''"
62
+ },
63
+ "description": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "string",
68
+ "resolved": "string",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Section description"
76
+ },
77
+ "getter": false,
78
+ "setter": false,
79
+ "reflect": false,
80
+ "attribute": "description",
81
+ "defaultValue": "''"
82
+ },
83
+ "typeElement": {
84
+ "type": "string",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "'dropdown' | 'switch'",
88
+ "resolved": "\"dropdown\" | \"switch\"",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": "Control type on the right"
96
+ },
97
+ "getter": false,
98
+ "setter": false,
99
+ "reflect": false,
100
+ "attribute": "type-element",
101
+ "defaultValue": "'switch'"
102
+ },
103
+ "type": {
104
+ "type": "string",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "'medium' | 'important'",
108
+ "resolved": "\"important\" | \"medium\"",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": false,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": "Title size variant"
116
+ },
117
+ "getter": false,
118
+ "setter": false,
119
+ "reflect": false,
120
+ "attribute": "type",
121
+ "defaultValue": "'medium'"
122
+ },
123
+ "isChecked": {
124
+ "type": "boolean",
125
+ "mutable": true,
126
+ "complexType": {
127
+ "original": "boolean",
128
+ "resolved": "boolean",
129
+ "references": {}
130
+ },
131
+ "required": false,
132
+ "optional": false,
133
+ "docs": {
134
+ "tags": [],
135
+ "text": "Switch checked state"
136
+ },
137
+ "getter": false,
138
+ "setter": false,
139
+ "reflect": false,
140
+ "attribute": "is-checked",
141
+ "defaultValue": "false"
142
+ }
143
+ };
144
+ }
145
+ static get events() {
146
+ return [{
147
+ "method": "dropiChange",
148
+ "name": "dropiChange",
149
+ "bubbles": true,
150
+ "cancelable": true,
151
+ "composed": true,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Emitted when switch changes. e.detail = new boolean value"
155
+ },
156
+ "complexType": {
157
+ "original": "boolean",
158
+ "resolved": "boolean",
159
+ "references": {}
160
+ }
161
+ }, {
162
+ "method": "dropiClick",
163
+ "name": "dropiClick",
164
+ "bubbles": true,
165
+ "cancelable": true,
166
+ "composed": true,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": "Emitted when dropdown icon is clicked"
170
+ },
171
+ "complexType": {
172
+ "original": "void",
173
+ "resolved": "void",
174
+ "references": {}
175
+ }
176
+ }];
177
+ }
178
+ }
@@ -18,12 +18,12 @@ export class DropiCheckbox {
18
18
  this.dropiChange.emit(this.checked);
19
19
  }
20
20
  render() {
21
- return (h("div", { key: 'f37dba8ec47aec07302f0b6f52d402b4367aa8da', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: '21c72608204b4384de76720192542763c8190b27', class: {
21
+ return (h("div", { key: '4e56a55cec60e55f61205e370845f734b5baedcc', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: 'dd440f791d8fa5dd3fd7e8a00054c2d0fe337961', class: {
22
22
  check: true,
23
23
  isCheck: this.checked,
24
24
  noCheck: !this.checked,
25
25
  disabled: this.disabled,
26
- } }, h("svg", { key: '06881031251120f3942fc938e7c0ffad5dde7494', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, h("path", { key: 'dd52bac77eca77270cfd645f02fb06a39a7cf519', d: "M20.5991 5.69251L9.08325 17.2075C9.00583 17.2852 8.91382 17.3469 8.8125 17.389C8.71118 17.4311 8.60255 17.4527 8.49283 17.4527C8.38312 17.4527 8.27449 17.4311 8.17317 17.389C8.07185 17.3469 7.97984 17.2852 7.90242 17.2075L3.44908 12.75C3.37166 12.6723 3.27965 12.6106 3.17833 12.5685C3.07701 12.5264 2.96838 12.5048 2.85867 12.5048C2.74896 12.5048 2.64032 12.5264 2.53901 12.5685C2.43769 12.6106 2.34568 12.6723 2.26825 12.75C2.19052 12.8274 2.12884 12.9194 2.08676 13.0208C2.04467 13.1221 2.02301 13.2307 2.02301 13.3404C2.02301 13.4501 2.04467 13.5588 2.08676 13.6601C2.12884 13.7614 2.19052 13.8534 2.26825 13.9308L6.72325 18.385C7.19321 18.8541 7.83008 19.1175 8.49408 19.1175C9.15809 19.1175 9.79496 18.8541 10.2649 18.385L21.7799 6.87251C21.8575 6.7951 21.9191 6.70314 21.9611 6.6019C22.0031 6.50065 22.0247 6.39212 22.0247 6.28251C22.0247 6.17289 22.0031 6.06436 21.9611 5.96312C21.9191 5.86188 21.8575 5.76992 21.7799 5.69251C21.7025 5.61478 21.6105 5.5531 21.5092 5.51101C21.4078 5.46893 21.2992 5.44727 21.1895 5.44727C21.0798 5.44727 20.9712 5.46893 20.8698 5.51101C20.7685 5.5531 20.6765 5.61478 20.5991 5.69251Z", fill: "#FFFFFF" })))));
26
+ } }, h("svg", { key: 'f7470772cd3f47777c0ade490de8772a4e0a2d43', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, h("path", { key: 'ed529e987fe524339bb01ee0e95d838df962d0bc', d: "M20.5991 5.69251L9.08325 17.2075C9.00583 17.2852 8.91382 17.3469 8.8125 17.389C8.71118 17.4311 8.60255 17.4527 8.49283 17.4527C8.38312 17.4527 8.27449 17.4311 8.17317 17.389C8.07185 17.3469 7.97984 17.2852 7.90242 17.2075L3.44908 12.75C3.37166 12.6723 3.27965 12.6106 3.17833 12.5685C3.07701 12.5264 2.96838 12.5048 2.85867 12.5048C2.74896 12.5048 2.64032 12.5264 2.53901 12.5685C2.43769 12.6106 2.34568 12.6723 2.26825 12.75C2.19052 12.8274 2.12884 12.9194 2.08676 13.0208C2.04467 13.1221 2.02301 13.2307 2.02301 13.3404C2.02301 13.4501 2.04467 13.5588 2.08676 13.6601C2.12884 13.7614 2.19052 13.8534 2.26825 13.9308L6.72325 18.385C7.19321 18.8541 7.83008 19.1175 8.49408 19.1175C9.15809 19.1175 9.79496 18.8541 10.2649 18.385L21.7799 6.87251C21.8575 6.7951 21.9191 6.70314 21.9611 6.6019C22.0031 6.50065 22.0247 6.39212 22.0247 6.28251C22.0247 6.17289 22.0031 6.06436 21.9611 5.96312C21.9191 5.86188 21.8575 5.76992 21.7799 5.69251C21.7025 5.61478 21.6105 5.5531 21.5092 5.51101C21.4078 5.46893 21.2992 5.44727 21.1895 5.44727C21.0798 5.44727 20.9712 5.46893 20.8698 5.51101C20.7685 5.5531 20.6765 5.61478 20.5991 5.69251Z", fill: "#FFFFFF" })))));
27
27
  }
28
28
  static get is() { return "dropi-checkbox"; }
29
29
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,44 @@
1
+ :host { display: block; width: 100%; }
2
+ *, *::before, *::after { box-sizing: border-box; }
3
+
4
+ .csl__search {
5
+ display: flex;
6
+ align-items: center;
7
+ gap: var(--Size-2, 8px);
8
+ padding: var(--Size-2, 8px) var(--Size-3, 12px);
9
+ border: 1px solid var(--Gray-Gray-200, #c3c9d9);
10
+ border-radius: var(--Border-2, 8px);
11
+ margin-bottom: var(--Size-2, 8px);
12
+ }
13
+
14
+ .csl__search-input {
15
+ flex: 1; border: none; outline: none;
16
+ font-size: var(--font-size-s, 12px); font-family: inherit;
17
+ color: var(--Gray-Gray-700, #32394d); background: transparent;
18
+ }
19
+
20
+ .csl__clear { display: flex; background: none; border: none; padding: 0; cursor: pointer; }
21
+
22
+ .csl__list { display: flex; flex-direction: column; }
23
+
24
+ .csl__item {
25
+ display: flex;
26
+ align-items: center;
27
+ gap: var(--Size-2, 8px);
28
+ padding: var(--Size-2, 8px) var(--Size-3, 12px);
29
+ cursor: pointer;
30
+ border-radius: var(--Border-1, 4px);
31
+ transition: background 0.15s;
32
+ }
33
+ .csl__item:hover { background: var(--Gray-Gray-50, #f7f8fa); }
34
+
35
+ .csl__icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
36
+
37
+ .csl__label { font-size: var(--font-size-s, 12px); color: var(--Gray-Gray-700, #32394d); flex: 1; }
38
+
39
+ .csl__empty {
40
+ padding: var(--Size-4, 16px);
41
+ text-align: center;
42
+ font-size: var(--font-size-s, 12px);
43
+ color: var(--Gray-Gray-400, #858ea6);
44
+ }
@@ -0,0 +1,245 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-checkbox-selection-list
4
+ * Searchable list of checkbox options with multi-select support.
5
+ */
6
+ export class DropiCheckboxSelectionList {
7
+ /** Options array or JSON string */
8
+ options = [];
9
+ /** Show search filter */
10
+ showFilter = true;
11
+ /** Search placeholder */
12
+ filterPlaceholder = 'Buscar...';
13
+ /** Show "no results" message */
14
+ showNotFound = true;
15
+ /** Empty state message */
16
+ notFoundMessage = 'Sin resultados';
17
+ /** Allow multiple selection */
18
+ multiSelect = true;
19
+ filterText = '';
20
+ selected = [];
21
+ parsedOptions = [];
22
+ /** Emitted when selection changes. e.detail = selected option ids */
23
+ dropiCheckedValues;
24
+ /** Emitted on search input. e.detail = search text */
25
+ dropiSearch;
26
+ optionsChanged(val) {
27
+ this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
28
+ }
29
+ componentWillLoad() { this.optionsChanged(this.options); }
30
+ get filtered() {
31
+ if (!this.filterText)
32
+ return this.parsedOptions;
33
+ const q = this.filterText.toLowerCase();
34
+ return this.parsedOptions.filter(o => o.name?.toLowerCase().includes(q));
35
+ }
36
+ toggle(id) {
37
+ if (this.multiSelect) {
38
+ this.selected = this.selected.includes(id)
39
+ ? this.selected.filter(s => s !== id)
40
+ : [...this.selected, id];
41
+ }
42
+ else {
43
+ this.selected = this.selected.includes(id) ? [] : [id];
44
+ }
45
+ this.dropiCheckedValues.emit(this.selected);
46
+ }
47
+ render() {
48
+ const items = this.filtered;
49
+ return (h("div", { key: '4606e983827d32c18990c44589c2cfcac678b0ae', class: "csl" }, this.showFilter && (h("div", { key: '532d95a9e0530023094611ce55b37f56eb6f9d78', class: "csl__search" }, h("dropi-icon", { key: '79598d6cb8b36f90e15d2983f8c3e54cb713d193', name: "Search", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("input", { key: 'fa95ab8c1112e335560b8c49f7f4b502b3f7b3a0', class: "csl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
50
+ this.filterText = e.target.value;
51
+ this.dropiSearch.emit(this.filterText);
52
+ } }), this.filterText && (h("button", { key: '94574b93a5e1d938ebedd7f462e3aed6917390ef', class: "csl__clear", onClick: () => { this.filterText = ''; this.dropiSearch.emit(''); } }, h("dropi-icon", { key: 'c9765efda527f9321757a69028f9ceb7e12a7514', name: "Close-small", width: "14px", height: "14px", color: "Gray-Gray-400" }))))), h("div", { key: '2f40c32f10c84277924c240a12e89876ff60a4d2', class: "csl__list" }, items.length === 0 && this.showNotFound ? (h("div", { class: "csl__empty" }, this.notFoundMessage)) : (items.map(opt => {
53
+ const checked = this.selected.includes(opt.id);
54
+ return (h("div", { class: "csl__item", key: opt.id, onClick: () => this.toggle(opt.id) }, h("dropi-checkbox", { checked: checked }), opt.icon && h("img", { class: "csl__icon", src: opt.icon, alt: opt.name }), h("span", { class: "csl__label" }, opt.name)));
55
+ })))));
56
+ }
57
+ static get is() { return "dropi-checkbox-selection-list"; }
58
+ static get encapsulation() { return "shadow"; }
59
+ static get originalStyleUrls() {
60
+ return {
61
+ "$": ["dropi-checkbox-selection-list.css"]
62
+ };
63
+ }
64
+ static get styleUrls() {
65
+ return {
66
+ "$": ["dropi-checkbox-selection-list.css"]
67
+ };
68
+ }
69
+ static get properties() {
70
+ return {
71
+ "options": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "CheckboxOption[] | string",
76
+ "resolved": "CheckboxOption[] | string",
77
+ "references": {
78
+ "CheckboxOption": {
79
+ "location": "local",
80
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.tsx",
81
+ "id": "src/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.tsx::CheckboxOption"
82
+ }
83
+ }
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "Options array or JSON string"
90
+ },
91
+ "getter": false,
92
+ "setter": false,
93
+ "reflect": false,
94
+ "attribute": "options",
95
+ "defaultValue": "[]"
96
+ },
97
+ "showFilter": {
98
+ "type": "boolean",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "boolean",
102
+ "resolved": "boolean",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": "Show search filter"
110
+ },
111
+ "getter": false,
112
+ "setter": false,
113
+ "reflect": false,
114
+ "attribute": "show-filter",
115
+ "defaultValue": "true"
116
+ },
117
+ "filterPlaceholder": {
118
+ "type": "string",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string",
122
+ "resolved": "string",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": "Search placeholder"
130
+ },
131
+ "getter": false,
132
+ "setter": false,
133
+ "reflect": false,
134
+ "attribute": "filter-placeholder",
135
+ "defaultValue": "'Buscar...'"
136
+ },
137
+ "showNotFound": {
138
+ "type": "boolean",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "boolean",
142
+ "resolved": "boolean",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": false,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": "Show \"no results\" message"
150
+ },
151
+ "getter": false,
152
+ "setter": false,
153
+ "reflect": false,
154
+ "attribute": "show-not-found",
155
+ "defaultValue": "true"
156
+ },
157
+ "notFoundMessage": {
158
+ "type": "string",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "string",
162
+ "resolved": "string",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": "Empty state message"
170
+ },
171
+ "getter": false,
172
+ "setter": false,
173
+ "reflect": false,
174
+ "attribute": "not-found-message",
175
+ "defaultValue": "'Sin resultados'"
176
+ },
177
+ "multiSelect": {
178
+ "type": "boolean",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "boolean",
182
+ "resolved": "boolean",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": false,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": "Allow multiple selection"
190
+ },
191
+ "getter": false,
192
+ "setter": false,
193
+ "reflect": false,
194
+ "attribute": "multi-select",
195
+ "defaultValue": "true"
196
+ }
197
+ };
198
+ }
199
+ static get states() {
200
+ return {
201
+ "filterText": {},
202
+ "selected": {},
203
+ "parsedOptions": {}
204
+ };
205
+ }
206
+ static get events() {
207
+ return [{
208
+ "method": "dropiCheckedValues",
209
+ "name": "dropiCheckedValues",
210
+ "bubbles": true,
211
+ "cancelable": true,
212
+ "composed": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Emitted when selection changes. e.detail = selected option ids"
216
+ },
217
+ "complexType": {
218
+ "original": "(string | number)[]",
219
+ "resolved": "(string | number)[]",
220
+ "references": {}
221
+ }
222
+ }, {
223
+ "method": "dropiSearch",
224
+ "name": "dropiSearch",
225
+ "bubbles": true,
226
+ "cancelable": true,
227
+ "composed": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": "Emitted on search input. e.detail = search text"
231
+ },
232
+ "complexType": {
233
+ "original": "string",
234
+ "resolved": "string",
235
+ "references": {}
236
+ }
237
+ }];
238
+ }
239
+ static get watchers() {
240
+ return [{
241
+ "propName": "options",
242
+ "methodName": "optionsChanged"
243
+ }];
244
+ }
245
+ }
@@ -0,0 +1,66 @@
1
+ :host {
2
+ display: inline-flex;
3
+ }
4
+
5
+ *, *::before, *::after { box-sizing: border-box; }
6
+
7
+ .chip {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ gap: var(--Size-1, 4px);
11
+ height: 24px;
12
+ padding: 0 var(--Size-2, 8px);
13
+ border-radius: var(--Border-2, 8px);
14
+ font-size: var(--font-size-xs, 10px);
15
+ font-family: inherit;
16
+ max-width: 200px;
17
+ }
18
+
19
+ /* ── Style variants ─────────────────────────────────────── */
20
+ .chip--filters {
21
+ background: var(--Primary-Primary-50, #fff5eb);
22
+ border: 1px solid var(--Primary-Primary-200, #fbd4a3);
23
+ color: var(--Primary-Primary-600, #d4872e);
24
+ }
25
+
26
+ .chip--fill {
27
+ background: var(--Gray-Gray-100, #e6eaf2);
28
+ border: 1px solid transparent;
29
+ color: var(--Gray-Gray-700, #32394d);
30
+ }
31
+
32
+ /* ── Avatar ─────────────────────────────────────────────── */
33
+ .chip__avatar {
34
+ width: 16px;
35
+ height: 16px;
36
+ border-radius: 50%;
37
+ object-fit: cover;
38
+ flex-shrink: 0;
39
+ }
40
+
41
+ /* ── Label ──────────────────────────────────────────────── */
42
+ .chip__text {
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ flex: 1;
47
+ }
48
+
49
+ /* ── Close button ───────────────────────────────────────── */
50
+ .chip__close {
51
+ display: inline-flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ flex-shrink: 0;
55
+ background: none;
56
+ border: none;
57
+ padding: 0;
58
+ cursor: pointer;
59
+ color: inherit;
60
+ opacity: 0.7;
61
+ transition: opacity 0.15s;
62
+ }
63
+
64
+ .chip__close:hover {
65
+ opacity: 1;
66
+ }