@dotrino/support 0.4.2 → 0.5.0

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +19 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotrino/support",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Web Component (custom element) de modal de soporte/donaciones reutilizable por cualquier app del ecosistema Dotrino. Autohosteado, sin JS de terceros ni cookies.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -135,11 +135,11 @@ const STYLE = `
135
135
  border: 1px solid transparent;
136
136
  }
137
137
  .trigger.solid {
138
- background: #3498db;
138
+ background: var(--ds-accent, #3498db);
139
139
  color: #fff;
140
140
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.35);
141
141
  }
142
- .trigger.solid:hover { background: #2980b9; transform: translateY(-1px); }
142
+ .trigger.solid:hover { background: var(--ds-accent-press, #2980b9); transform: translateY(-1px); }
143
143
  .trigger.ghost {
144
144
  background: transparent;
145
145
  color: currentColor;
@@ -216,7 +216,7 @@ const STYLE = `
216
216
  /* Caras con icono (compartir / bug). El transform de rotación va inline
217
217
  porque depende de si hay 2 o 3 caras. */
218
218
  .face.icon {
219
- background: #3498db;
219
+ background: var(--ds-accent, #3498db);
220
220
  display: flex;
221
221
  align-items: center;
222
222
  justify-content: center;
@@ -237,7 +237,7 @@ const STYLE = `
237
237
  top: calc(100% + 8px);
238
238
  right: 0;
239
239
  z-index: 2147483000;
240
- background: #3498db;
240
+ background: var(--ds-accent, #3498db);
241
241
  color: #fff;
242
242
  padding: 0.5rem 0.85rem;
243
243
  border-radius: 10px;
@@ -261,7 +261,7 @@ const STYLE = `
261
261
  right: 13px;
262
262
  border: 6px solid transparent;
263
263
  border-top: 0;
264
- border-bottom-color: #3498db;
264
+ border-bottom-color: var(--ds-accent, #3498db);
265
265
  }
266
266
  @media (max-width: 480px) {
267
267
  .bubble { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
@@ -278,14 +278,14 @@ const STYLE = `
278
278
  max-width: 100vw;
279
279
  max-height: 100vh;
280
280
  overflow: visible;
281
- color: #fff;
281
+ color: var(--ds-modal-text, #fff);
282
282
  }
283
283
  .overlay::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); }
284
284
 
285
285
  .modal {
286
- background: #1f2c3a;
287
- color: #fff;
288
- border: 1px solid rgba(255, 255, 255, 0.12);
286
+ background: var(--ds-modal-bg, #1f2c3a);
287
+ color: var(--ds-modal-text, #fff);
288
+ border: 1px solid var(--ds-modal-border, rgba(255, 255, 255, 0.12));
289
289
  border-radius: 16px;
290
290
  max-width: 420px;
291
291
  width: 100%;
@@ -305,16 +305,16 @@ const STYLE = `
305
305
  height: 2rem;
306
306
  border: none;
307
307
  background: transparent;
308
- color: rgba(255, 255, 255, 0.7);
308
+ color: var(--ds-modal-muted, rgba(255, 255, 255, 0.7));
309
309
  font-size: 1.4rem;
310
310
  line-height: 1;
311
311
  cursor: pointer;
312
312
  border-radius: 50%;
313
313
  transition: all 0.2s ease;
314
314
  }
315
- .close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
315
+ .close:hover { background: var(--ds-modal-hover, rgba(255, 255, 255, 0.1)); color: var(--ds-modal-text, #fff); }
316
316
 
317
- .heading { font-size: 1.4rem; font-weight: 700; margin: 0 0 1.1rem; color: #3498db; }
317
+ .heading { font-size: 1.4rem; font-weight: 700; margin: 0 0 1.1rem; color: var(--ds-accent, #3498db); }
318
318
  .message { font-size: 0.98rem; line-height: 1.6; margin: 0 0 1.5rem; opacity: 0.92; }
319
319
 
320
320
  .links { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
@@ -329,12 +329,12 @@ const STYLE = `
329
329
  font-size: 0.95rem;
330
330
  padding: 0.7rem 1.4rem;
331
331
  border-radius: 50px;
332
- background: #3498db;
332
+ background: var(--ds-accent, #3498db);
333
333
  color: #fff;
334
334
  transition: all 0.25s ease;
335
335
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
336
336
  }
337
- .link:hover { background: #2980b9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); }
337
+ .link:hover { background: var(--ds-accent-press, #2980b9); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); }
338
338
  .link-ico { display: inline-flex; width: 1.4rem; height: 1.4rem; }
339
339
  .link-ico img { width: 100%; height: 100%; display: block; object-fit: contain; }
340
340
 
@@ -342,7 +342,7 @@ const STYLE = `
342
342
  .share {
343
343
  margin-top: 1.5rem;
344
344
  padding-top: 1.25rem;
345
- border-top: 1px solid rgba(255, 255, 255, 0.12);
345
+ border-top: 1px solid var(--ds-modal-border, rgba(255, 255, 255, 0.12));
346
346
  }
347
347
  .share-heading {
348
348
  font-size: 0.95rem;
@@ -388,19 +388,19 @@ const STYLE = `
388
388
  .bug {
389
389
  margin-top: 1.25rem;
390
390
  padding-top: 1.1rem;
391
- border-top: 1px solid rgba(255, 255, 255, 0.12);
391
+ border-top: 1px solid var(--ds-modal-border, rgba(255, 255, 255, 0.12));
392
392
  }
393
393
  .bug-link {
394
394
  display: inline-flex;
395
395
  align-items: center;
396
396
  gap: 0.5rem;
397
- color: rgba(255, 255, 255, 0.7);
397
+ color: var(--ds-modal-muted, rgba(255, 255, 255, 0.7));
398
398
  text-decoration: none;
399
399
  font-size: 0.9rem;
400
400
  font-weight: 600;
401
401
  transition: color 0.2s ease;
402
402
  }
403
- .bug-link:hover { color: #fff; }
403
+ .bug-link:hover { color: var(--ds-modal-text, #fff); }
404
404
  .bug-ico {
405
405
  display: inline-flex;
406
406
  width: 1.15rem;
@@ -412,7 +412,7 @@ const STYLE = `
412
412
  .discord {
413
413
  margin-top: 1.25rem;
414
414
  padding-top: 1.1rem;
415
- border-top: 1px solid rgba(255, 255, 255, 0.12);
415
+ border-top: 1px solid var(--ds-modal-border, rgba(255, 255, 255, 0.12));
416
416
  }
417
417
  .discord-link {
418
418
  display: inline-flex;