@dropi/ui 0.1.16 → 0.1.17

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 (136) hide show
  1. package/assets/lottie-files/failure.json +1 -0
  2. package/assets/lottie-files/question.json +1 -0
  3. package/assets/lottie-files/success.json +1 -0
  4. package/assets/lottie-files/warning.json +1 -0
  5. package/dist/cjs/dropi-accordion.cjs.entry.js +53 -0
  6. package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/dropi-button.cjs.entry.js +2 -2
  8. package/dist/cjs/dropi-checkbox.cjs.entry.js +3 -3
  9. package/dist/cjs/dropi-empty-state.cjs.entry.js +35 -0
  10. package/dist/cjs/dropi-icon.cjs.entry.js +3 -3
  11. package/dist/cjs/dropi-input.cjs.entry.js +2 -2
  12. package/dist/cjs/dropi-modal.cjs.entry.js +113 -0
  13. package/dist/cjs/dropi-paginator.cjs.entry.js +89 -0
  14. package/dist/cjs/dropi-radio-button.cjs.entry.js +2 -2
  15. package/dist/cjs/dropi-select.cjs.entry.js +2 -2
  16. package/dist/cjs/dropi-skeleton.cjs.entry.js +47 -0
  17. package/dist/cjs/dropi-switch.cjs.entry.js +2 -2
  18. package/dist/cjs/dropi-tabs.cjs.entry.js +49 -0
  19. package/dist/cjs/dropi-tag.cjs.entry.js +2 -2
  20. package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
  21. package/dist/cjs/dropi-toast.cjs.entry.js +55 -0
  22. package/dist/cjs/dropi-tooltip.cjs.entry.js +42 -0
  23. package/dist/cjs/dropi-ui.cjs.js +2 -2
  24. package/dist/cjs/{index-CuGLZVqo.js → index-B6R6Ojma.js} +1 -1
  25. package/dist/cjs/loader.cjs.js +2 -2
  26. package/dist/collection/collection-manifest.json +8 -0
  27. package/dist/collection/components/dropi-accordion/dropi-accordion.css +21 -0
  28. package/dist/collection/components/dropi-accordion/dropi-accordion.js +170 -0
  29. package/dist/collection/components/dropi-button/dropi-button.css +7 -1
  30. package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
  31. package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +58 -0
  32. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +195 -0
  33. package/dist/collection/components/dropi-icon/dropi-icon.css +2 -0
  34. package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
  35. package/dist/collection/components/dropi-input/dropi-input.css +2 -0
  36. package/dist/collection/components/dropi-modal/dropi-modal.css +124 -0
  37. package/dist/collection/components/dropi-modal/dropi-modal.js +406 -0
  38. package/dist/collection/components/dropi-paginator/dropi-paginator.css +100 -0
  39. package/dist/collection/components/dropi-paginator/dropi-paginator.js +241 -0
  40. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
  41. package/dist/collection/components/dropi-select/dropi-select.js +1 -1
  42. package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +27 -0
  43. package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +162 -0
  44. package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
  45. package/dist/collection/components/dropi-tabs/dropi-tabs.css +42 -0
  46. package/dist/collection/components/dropi-tabs/dropi-tabs.js +159 -0
  47. package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
  48. package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
  49. package/dist/collection/components/dropi-toast/dropi-toast.css +63 -0
  50. package/dist/collection/components/dropi-toast/dropi-toast.js +164 -0
  51. package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +67 -0
  52. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +147 -0
  53. package/dist/components/dropi-accordion.d.ts +11 -0
  54. package/dist/components/dropi-accordion.js +1 -0
  55. package/dist/components/dropi-button.js +1 -1
  56. package/dist/components/dropi-checkbox.js +1 -1
  57. package/dist/components/dropi-empty-state.d.ts +11 -0
  58. package/dist/components/dropi-empty-state.js +1 -0
  59. package/dist/components/dropi-icon.js +1 -1
  60. package/dist/components/dropi-input.js +1 -1
  61. package/dist/components/dropi-modal.d.ts +11 -0
  62. package/dist/components/dropi-modal.js +1 -0
  63. package/dist/components/dropi-paginator.d.ts +11 -0
  64. package/dist/components/dropi-paginator.js +1 -0
  65. package/dist/components/dropi-radio-button.js +1 -1
  66. package/dist/components/dropi-select.js +1 -1
  67. package/dist/components/dropi-skeleton.d.ts +11 -0
  68. package/dist/components/dropi-skeleton.js +1 -0
  69. package/dist/components/dropi-switch.js +1 -1
  70. package/dist/components/dropi-tabs.d.ts +11 -0
  71. package/dist/components/dropi-tabs.js +1 -0
  72. package/dist/components/dropi-tag.js +1 -1
  73. package/dist/components/dropi-text-area.js +1 -1
  74. package/dist/components/dropi-toast.d.ts +11 -0
  75. package/dist/components/dropi-toast.js +1 -0
  76. package/dist/components/dropi-tooltip.d.ts +11 -0
  77. package/dist/components/dropi-tooltip.js +1 -0
  78. package/dist/components/index.js +1 -1
  79. package/dist/components/{p-MNma8N1x.js → p-ChOXWKmI.js} +1 -1
  80. package/dist/components/p-NCyvfOs2.js +1 -0
  81. package/dist/dropi-ui/dropi-ui.css +1 -1
  82. package/dist/dropi-ui/dropi-ui.esm.js +1 -1
  83. package/dist/dropi-ui/p-082b7039.entry.js +1 -0
  84. package/dist/dropi-ui/p-09c38a49.entry.js +1 -0
  85. package/dist/dropi-ui/p-1739d20c.entry.js +1 -0
  86. package/dist/dropi-ui/{p-dd089a60.entry.js → p-26dbae0d.entry.js} +1 -1
  87. package/dist/dropi-ui/p-42179ae4.entry.js +1 -0
  88. package/dist/dropi-ui/p-4d582d58.entry.js +1 -0
  89. package/dist/dropi-ui/p-6031ac9d.entry.js +1 -0
  90. package/dist/dropi-ui/{p-bda1427f.entry.js → p-63e969da.entry.js} +1 -1
  91. package/dist/dropi-ui/p-65fa8558.entry.js +1 -0
  92. package/dist/dropi-ui/{p-52291024.entry.js → p-6d15d32f.entry.js} +1 -1
  93. package/dist/dropi-ui/{p-0faaab2b.entry.js → p-79466fec.entry.js} +1 -1
  94. package/dist/dropi-ui/p-Twbb5MNM.js +2 -0
  95. package/dist/dropi-ui/p-a5650d8f.entry.js +1 -0
  96. package/dist/dropi-ui/p-b0d3442e.entry.js +1 -0
  97. package/dist/dropi-ui/{p-f785011f.entry.js → p-e44242e2.entry.js} +1 -1
  98. package/dist/dropi-ui/{p-a46a05a6.entry.js → p-eb7f9a57.entry.js} +1 -1
  99. package/dist/dropi-ui/{p-a1944f3d.entry.js → p-ecda6e19.entry.js} +1 -1
  100. package/dist/dropi-ui/{p-9c7076d3.entry.js → p-f0e1e0f6.entry.js} +1 -1
  101. package/dist/dropi-ui/p-f283f41d.entry.js +1 -0
  102. package/dist/esm/dropi-accordion.entry.js +51 -0
  103. package/dist/esm/dropi-badge.entry.js +1 -1
  104. package/dist/esm/dropi-button.entry.js +2 -2
  105. package/dist/esm/dropi-checkbox.entry.js +3 -3
  106. package/dist/esm/dropi-empty-state.entry.js +33 -0
  107. package/dist/esm/dropi-icon.entry.js +3 -3
  108. package/dist/esm/dropi-input.entry.js +2 -2
  109. package/dist/esm/dropi-modal.entry.js +111 -0
  110. package/dist/esm/dropi-paginator.entry.js +87 -0
  111. package/dist/esm/dropi-radio-button.entry.js +2 -2
  112. package/dist/esm/dropi-select.entry.js +2 -2
  113. package/dist/esm/dropi-skeleton.entry.js +45 -0
  114. package/dist/esm/dropi-switch.entry.js +2 -2
  115. package/dist/esm/dropi-tabs.entry.js +47 -0
  116. package/dist/esm/dropi-tag.entry.js +2 -2
  117. package/dist/esm/dropi-text-area.entry.js +3 -3
  118. package/dist/esm/dropi-toast.entry.js +53 -0
  119. package/dist/esm/dropi-tooltip.entry.js +40 -0
  120. package/dist/esm/dropi-ui.js +3 -3
  121. package/dist/esm/{index-DFz-gwFP.js → index-Twbb5MNM.js} +1 -1
  122. package/dist/esm/loader.js +3 -3
  123. package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +29 -0
  124. package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +24 -0
  125. package/dist/types/components/dropi-modal/dropi-modal.d.ts +37 -0
  126. package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +32 -0
  127. package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +19 -0
  128. package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +38 -0
  129. package/dist/types/components/dropi-toast/dropi-toast.d.ts +38 -0
  130. package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +25 -0
  131. package/dist/types/components.d.ts +832 -0
  132. package/package.json +1 -1
  133. package/scripts/setup.js +48 -19
  134. package/dist/dropi-ui/p-21abf91a.entry.js +0 -1
  135. package/dist/dropi-ui/p-6f0aa619.entry.js +0 -1
  136. package/dist/dropi-ui/p-DFz-gwFP.js +0 -2
@@ -18,12 +18,12 @@ export class DropiCheckbox {
18
18
  this.dropiChange.emit(this.checked);
19
19
  }
20
20
  render() {
21
- return (h("div", { key: 'e5c7ef2fd09e5e18b71cbbdd96cc13d4fd99b8a5', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: '2b6a006125e8e68fbba9285451d0d7a578c183d2', class: {
21
+ return (h("div", { key: 'f37dba8ec47aec07302f0b6f52d402b4367aa8da', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: '21c72608204b4384de76720192542763c8190b27', class: {
22
22
  check: true,
23
23
  isCheck: this.checked,
24
24
  noCheck: !this.checked,
25
25
  disabled: this.disabled,
26
- } }, h("svg", { key: 'ce19f7e7e1159ee2915a78827775bd969484aa4a', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, h("path", { key: 'f41304ce433c5ea47f8eb964278e1a4c2c8184b2', 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: '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" })))));
27
27
  }
28
28
  static get is() { return "dropi-checkbox"; }
29
29
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,58 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ *, *::before, *::after { box-sizing: border-box; }
6
+
7
+ .empty-state {
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ justify-content: center;
12
+ gap: var(--Size-3, 12px);
13
+ padding: var(--Size-6, 32px) var(--Size-5, 20px);
14
+ text-align: center;
15
+ }
16
+
17
+ .empty-state-img {
18
+ max-width: 200px;
19
+ width: 100%;
20
+ height: auto;
21
+ object-fit: contain;
22
+ }
23
+
24
+ .empty-state-svg {
25
+ width: 80px;
26
+ height: 80px;
27
+ }
28
+
29
+ .empty-state-placeholder {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ }
34
+
35
+ .empty-state-title {
36
+ margin: 0;
37
+ font-size: var(--font-size-l, 18px);
38
+ font-weight: var(--font-weight-bold, 700);
39
+ color: var(--Gray-Gray-700, #32394d);
40
+ line-height: 1.3;
41
+ }
42
+
43
+ .empty-state-description {
44
+ margin: 0;
45
+ font-size: var(--font-size-s, 12px);
46
+ color: var(--Gray-Gray-500, #69738c);
47
+ line-height: 1.6;
48
+ max-width: 400px;
49
+ }
50
+
51
+ .empty-state-actions {
52
+ display: flex;
53
+ align-items: center;
54
+ gap: var(--Size-3, 12px);
55
+ flex-wrap: wrap;
56
+ justify-content: center;
57
+ margin-top: var(--Size-2, 8px);
58
+ }
@@ -0,0 +1,195 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @component dropi-empty-state
4
+ * Empty state illustration with title, description and optional action button.
5
+ */
6
+ export class DropiEmptyState {
7
+ /** Title text */
8
+ header = '';
9
+ /** Description text */
10
+ description = '';
11
+ /** URL of the illustration image */
12
+ imageUrl = '';
13
+ /** Alt text for the image */
14
+ imageAlt = 'Sin resultados';
15
+ /** Primary action button label (empty = hidden) */
16
+ actionLabel = '';
17
+ /** Secondary action button label (empty = hidden) */
18
+ secondaryLabel = '';
19
+ /** Emitted when primary action button is clicked */
20
+ dropiAction;
21
+ /** Emitted when secondary action button is clicked */
22
+ dropiSecondaryAction;
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() }))))));
25
+ }
26
+ static get is() { return "dropi-empty-state"; }
27
+ static get encapsulation() { return "shadow"; }
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["dropi-empty-state.css"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["dropi-empty-state.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "header": {
41
+ "type": "string",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "string",
45
+ "resolved": "string",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": "Title text"
53
+ },
54
+ "getter": false,
55
+ "setter": false,
56
+ "reflect": false,
57
+ "attribute": "header",
58
+ "defaultValue": "''"
59
+ },
60
+ "description": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "string",
65
+ "resolved": "string",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": false,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": "Description text"
73
+ },
74
+ "getter": false,
75
+ "setter": false,
76
+ "reflect": false,
77
+ "attribute": "description",
78
+ "defaultValue": "''"
79
+ },
80
+ "imageUrl": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "URL of the illustration image"
93
+ },
94
+ "getter": false,
95
+ "setter": false,
96
+ "reflect": false,
97
+ "attribute": "image-url",
98
+ "defaultValue": "''"
99
+ },
100
+ "imageAlt": {
101
+ "type": "string",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "string",
105
+ "resolved": "string",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": "Alt text for the image"
113
+ },
114
+ "getter": false,
115
+ "setter": false,
116
+ "reflect": false,
117
+ "attribute": "image-alt",
118
+ "defaultValue": "'Sin resultados'"
119
+ },
120
+ "actionLabel": {
121
+ "type": "string",
122
+ "mutable": false,
123
+ "complexType": {
124
+ "original": "string",
125
+ "resolved": "string",
126
+ "references": {}
127
+ },
128
+ "required": false,
129
+ "optional": false,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": "Primary action button label (empty = hidden)"
133
+ },
134
+ "getter": false,
135
+ "setter": false,
136
+ "reflect": false,
137
+ "attribute": "action-label",
138
+ "defaultValue": "''"
139
+ },
140
+ "secondaryLabel": {
141
+ "type": "string",
142
+ "mutable": false,
143
+ "complexType": {
144
+ "original": "string",
145
+ "resolved": "string",
146
+ "references": {}
147
+ },
148
+ "required": false,
149
+ "optional": false,
150
+ "docs": {
151
+ "tags": [],
152
+ "text": "Secondary action button label (empty = hidden)"
153
+ },
154
+ "getter": false,
155
+ "setter": false,
156
+ "reflect": false,
157
+ "attribute": "secondary-label",
158
+ "defaultValue": "''"
159
+ }
160
+ };
161
+ }
162
+ static get events() {
163
+ return [{
164
+ "method": "dropiAction",
165
+ "name": "dropiAction",
166
+ "bubbles": true,
167
+ "cancelable": true,
168
+ "composed": true,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": "Emitted when primary action button is clicked"
172
+ },
173
+ "complexType": {
174
+ "original": "void",
175
+ "resolved": "void",
176
+ "references": {}
177
+ }
178
+ }, {
179
+ "method": "dropiSecondaryAction",
180
+ "name": "dropiSecondaryAction",
181
+ "bubbles": true,
182
+ "cancelable": true,
183
+ "composed": true,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": "Emitted when secondary action button is clicked"
187
+ },
188
+ "complexType": {
189
+ "original": "void",
190
+ "resolved": "void",
191
+ "references": {}
192
+ }
193
+ }];
194
+ }
195
+ }
@@ -7,6 +7,8 @@
7
7
 
8
8
  svg {
9
9
  fill: inherit;
10
+ display: block;
11
+ vertical-align: middle;
10
12
  }
11
13
 
12
14
  .spin {
@@ -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: 'e71bfb0be9f68882bbd7314d0f6f3fd877fccf07', width: this.width, height: this.height, class: { spin: this.name === 'Spinner' }, "aria-hidden": "true" }, h("use", { key: 'e6905c3ba9c68f463db62cde2cd64ce51093c2c0', href: `/assets/icons/symbol/svg/sprite.css.svg#${this.name}` })));
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}` })));
38
38
  }
39
39
  static get is() { return "dropi-icon"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -22,6 +22,7 @@
22
22
  color: var(--Gray-Gray-600, #475066);
23
23
  font-size: var(--font-size-xs, 10px);
24
24
  font-weight: var(--font-weight-regular, 400);
25
+ text-align: left;
25
26
  }
26
27
 
27
28
  .asterisk {
@@ -69,6 +70,7 @@
69
70
  height: 40px;
70
71
  outline: none;
71
72
  appearance: none;
73
+ text-align: left;
72
74
  }
73
75
 
74
76
  .form-control::placeholder {
@@ -0,0 +1,124 @@
1
+ :host { display: contents; }
2
+ *, *::before, *::after { box-sizing: border-box; }
3
+
4
+ .modal-root {
5
+ position: fixed; inset: 0;
6
+ display: flex; align-items: center; justify-content: center;
7
+ pointer-events: none; opacity: 0;
8
+ transition: opacity 0.18s ease; z-index: 1100;
9
+ }
10
+ .modal-root--open { opacity: 1; pointer-events: auto; }
11
+ .modal-root--closing { opacity: 1; pointer-events: none; }
12
+
13
+ .modal-mask {
14
+ position: absolute; inset: 0;
15
+ background: rgba(6,11,16,0.66); pointer-events: auto;
16
+ opacity: 0; transition: opacity 0.18s ease;
17
+ }
18
+ .modal-root--open .modal-mask { opacity: 1; }
19
+ .modal-root--closing .modal-mask { opacity: 0; }
20
+
21
+ .modal-panel {
22
+ position: relative; pointer-events: auto;
23
+ display: flex; flex-direction: column;
24
+ border-radius: var(--Border-2, 8px);
25
+ background: var(--Neutral-White, #fff);
26
+ box-shadow: 0 0 60px rgba(0,0,0,0.06);
27
+ overflow: hidden;
28
+ padding: var(--Size-6, 32px); gap: var(--Size-5, 24px);
29
+ max-height: calc(100vh - 60px);
30
+ opacity: 0; transform: translateY(16px) scale(0.92);
31
+ transition: opacity 0.18s ease, transform 0.18s ease;
32
+ }
33
+ .modal-root--open .modal-panel { opacity: 1; transform: none; }
34
+ .modal-root--closing .modal-panel { opacity: 0; transform: translateY(-12px) scale(1.06); }
35
+
36
+ .modal-header { display: flex; align-items: center; gap: 4px; }
37
+ .modal-title { color: var(--Gray-Gray-700,#32394d); font-size: var(--Size-5, 24px); font-weight: 700; flex: 1; text-align: left; }
38
+ .modal-close { margin-left: auto; border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
39
+ .modal-close:hover { opacity: 0.7; }
40
+
41
+ .modal-content {
42
+ padding-right: 8px; overflow: auto; flex: 1;
43
+ scrollbar-width: thin; scrollbar-color: var(--Gray-Gray-300,#a3abbf) var(--Gray-Gray-50,#f7f8fa);
44
+ }
45
+ .modal-content::-webkit-scrollbar { width: 4px; }
46
+ .modal-content::-webkit-scrollbar-track { background: var(--Gray-Gray-50,#f7f8fa); border-radius: 16px; }
47
+ .modal-content::-webkit-scrollbar-thumb { background: var(--Gray-Gray-300,#a3abbf); border-radius: 16px; }
48
+
49
+ .modal-footer {
50
+ display: flex;
51
+ justify-content: flex-end;
52
+ align-items: center;
53
+ gap: var(--Size-1, 4px);
54
+ width: 100%;
55
+ }
56
+ .modal-footer:empty { display: none; }
57
+
58
+ /* button-container: grid 2 columnas igual que en Angular host p-dialog-footer */
59
+ ::slotted(.button-container) {
60
+ display: grid;
61
+ grid-template-columns: 1fr 1fr;
62
+ gap: var(--Size-4, 16px);
63
+ min-width: 470px;
64
+ width: 100%;
65
+ }
66
+
67
+ .modal-panel.size-m .modal-footer,
68
+ .modal-panel.size-s .modal-footer {
69
+ justify-content: center;
70
+ }
71
+
72
+ .modal-panel.size-m .modal-footer ::slotted(.button-container),
73
+ .modal-panel.size-s .modal-footer ::slotted(.button-container) {
74
+ min-width: unset !important;
75
+ width: 100%;
76
+ }
77
+
78
+ .modal-panel.size-drawer-s .modal-footer ::slotted(.button-container) {
79
+ min-width: unset;
80
+ display: flex;
81
+ flex-direction: column-reverse;
82
+ gap: var(--Size-4, 16px);
83
+ }
84
+
85
+ .modal-panel.size-full { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
86
+ .modal-panel.size-xxl { width: calc(100% - 60px); max-width: 1520px; height: calc(100vh - 120px); max-height: 900px; }
87
+ .modal-panel.size-l { width: 1137px; max-width: 1137px; max-height: 754px; }
88
+ .modal-panel.size-m { max-width: 550px; width: 550px; }
89
+ .modal-panel.size-s { width: 454px; }
90
+
91
+ .modal-root--right { align-items: stretch; justify-content: flex-end; }
92
+ .modal-root--right .modal-panel { height: 100vh; max-height: 100vh; border-radius: 0; gap: 0; opacity: 1; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); }
93
+ .modal-root--open.modal-root--right .modal-panel { transform: translateX(0); }
94
+ .modal-root--closing.modal-root--right .modal-panel { transform: translateX(100%); }
95
+ .modal-root--right .modal-panel.size-drawer-s { width: 351px; padding: 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.16); }
96
+ .modal-root--right .modal-panel.size-drawer-m { width: 550px; box-shadow: 0 8px 40px rgba(0,0,0,0.16); }
97
+ .modal-root--right .modal-panel.size-drawer-l { width: 1137px; box-shadow: 0 8px 40px rgba(0,0,0,0.16); }
98
+ .modal-root--right .modal-panel.size-sidebar-half { width: 50vw; min-width: 600px; box-shadow: 0 8px 40px rgba(0,0,0,0.16); }
99
+
100
+ .modal-root--left { align-items: stretch; justify-content: flex-start; }
101
+ .modal-root--left .modal-panel { height: 100vh; max-height: 100vh; border-radius: 0; gap: 0; opacity: 1; transform: translateX(-100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); }
102
+ .modal-root--open.modal-root--left .modal-panel { transform: translateX(0); }
103
+ .modal-root--closing.modal-root--left .modal-panel { transform: translateX(-100%); }
104
+
105
+ .modal-root--top { align-items: flex-start; }
106
+ .modal-root--bottom { align-items: flex-end; }
107
+
108
+ @media (max-width: 599px) {
109
+ .modal-panel { padding: 20px; width: 100% !important; }
110
+ .modal-panel:not(.size-s) { border-radius: 0 !important; height: 100% !important; max-height: unset !important; }
111
+ .modal-root--right .modal-panel { width: 100vw !important; min-width: unset !important; }
112
+
113
+ .modal-footer { justify-content: center; }
114
+ .modal-footer ::slotted(.button-container) {
115
+ width: 100%;
116
+ min-width: unset !important;
117
+ display: flex;
118
+ flex-direction: column-reverse;
119
+ gap: var(--Size-4, 16px);
120
+ }
121
+ }
122
+ @media (prefers-reduced-motion: reduce) {
123
+ .modal-root, .modal-mask, .modal-panel { transition: none !important; }
124
+ }