morfeo 0.1.0 → 0.1.2

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.
@@ -19,18 +19,18 @@ const animado = (c: C, ctx: CtxEscena, campo = 'valor', dur = 0.8) => {
19
19
 
20
20
  export const Barra: React.FC<{c: C; ctx: CtxEscena}> = ({c, ctx}) => {
21
21
  const T = ctx.tema;
22
- const ancho = c.ancho ?? 560;
22
+ const ancho = c.ancho ?? 760;
23
23
  const v = clamp(animado(c, ctx) / (c.max ?? 100));
24
24
  const color = c.color ?? T.colores.acento;
25
25
  return (
26
26
  <div style={{width: ancho, background: c.fondo ?? T.colores.tarjeta, borderRadius: 16, padding: '14px 20px', boxShadow: '0 10px 26px rgba(0,0,0,0.25)', border: `3px solid ${c.borde ?? 'rgba(0,0,0,0.08)'}`, fontFamily: T.fuentes.texto}}>
27
27
  {c.titulo || c.mostrar !== false ? (
28
28
  <div style={{display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', marginBottom: 10, color: T.colores.tarjetaTexto}}>
29
- <span style={{fontSize: c.tamTitulo ?? 28, fontWeight: 800, letterSpacing: 1, textTransform: 'uppercase'}}>{c.titulo ?? ''}</span>
30
- {c.mostrar !== false ? <span style={{fontSize: 30, fontWeight: 800, color}}>{formatoNumero(v * (c.max ?? 100), c.decimales ?? 0)}{c.unidad ?? '%'}</span> : null}
29
+ <span style={{fontSize: c.tamTitulo ?? 34, fontWeight: 800, letterSpacing: 1, textTransform: 'uppercase'}}>{c.titulo ?? ''}</span>
30
+ {c.mostrar !== false ? <span style={{fontSize: 40, fontWeight: 800, color}}>{formatoNumero(v * (c.max ?? 100), c.decimales ?? 0)}{c.unidad ?? '%'}</span> : null}
31
31
  </div>
32
32
  ) : null}
33
- <div style={{height: c.alto ?? 24, background: c.pista ?? 'rgba(127,127,127,0.25)', borderRadius: 99, overflow: 'hidden'}}>
33
+ <div style={{height: c.alto ?? 30, background: c.pista ?? 'rgba(127,127,127,0.25)', borderRadius: 99, overflow: 'hidden'}}>
34
34
  <div style={{width: `${v * 100}%`, height: '100%', background: color, borderRadius: 99, boxShadow: `0 0 14px ${color}`}} />
35
35
  </div>
36
36
  </div>
@@ -157,7 +157,7 @@ export const Chat: React.FC<{c: C; ctx: CtxEscena}> = ({c, ctx}) => {
157
157
  const visibles = msgs.slice(Math.max(0, n - (c.maximo ?? 6)), n);
158
158
  const colores = ['#FF7AB6', '#7AD7FF', '#B6FF7A', '#FFD27A', '#C9A2FF'];
159
159
  return (
160
- <div style={{width: c.ancho ?? 420, display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', gap: 8, fontFamily: T.fuentes.texto, fontSize: c.tam ?? 28}}>
160
+ <div style={{width: c.ancho ?? 480, display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', gap: 10, fontFamily: T.fuentes.texto, fontSize: c.tam ?? 36}}>
161
161
  {visibles.map((m, i) => (
162
162
  <div key={n - visibles.length + i} style={{background: 'rgba(0,0,0,0.45)', color: '#fff', borderRadius: 12, padding: '6px 14px', opacity: i === visibles.length - 1 ? clamp((ctx.t - t0 - (n - 1) * cada) / 0.2) : 1}}>
163
163
  <b style={{color: colores[(m.usuario ?? '').length % colores.length]}}>{m.usuario}</b> {m.texto}