@aginies/webuikit 0.2.0 → 0.3.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.
- package/README.md +6 -0
- package/dist/index.cjs +589 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +130 -5
- package/dist/index.d.ts +130 -5
- package/dist/index.js +586 -84
- package/dist/index.js.map +1 -1
- package/dist/styles.css +118 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1514,6 +1514,124 @@
|
|
|
1514
1514
|
gap: 8px;
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
|
+
/* ─── voice ─── */
|
|
1518
|
+
.agi-chat__mic--on {
|
|
1519
|
+
color: var(--signal);
|
|
1520
|
+
border-color: var(--signal);
|
|
1521
|
+
background: var(--signal-soft);
|
|
1522
|
+
}
|
|
1523
|
+
.agi-voice {
|
|
1524
|
+
position: relative;
|
|
1525
|
+
flex: 1;
|
|
1526
|
+
min-height: 0;
|
|
1527
|
+
display: grid;
|
|
1528
|
+
grid-template-rows: auto auto 1fr auto auto;
|
|
1529
|
+
justify-items: center;
|
|
1530
|
+
align-content: center;
|
|
1531
|
+
gap: 14px;
|
|
1532
|
+
padding: 28px 20px 24px;
|
|
1533
|
+
text-align: center;
|
|
1534
|
+
overflow: hidden;
|
|
1535
|
+
background: radial-gradient(circle at 50% 30%, var(--signal-soft), transparent 60%);
|
|
1536
|
+
}
|
|
1537
|
+
.agi-voice__exit {
|
|
1538
|
+
position: absolute;
|
|
1539
|
+
top: 10px;
|
|
1540
|
+
right: 12px;
|
|
1541
|
+
width: 28px;
|
|
1542
|
+
height: 28px;
|
|
1543
|
+
border-radius: 999px;
|
|
1544
|
+
border: 1px solid var(--line);
|
|
1545
|
+
background: var(--panel);
|
|
1546
|
+
color: var(--text-2);
|
|
1547
|
+
font-size: 16px;
|
|
1548
|
+
line-height: 1;
|
|
1549
|
+
cursor: pointer;
|
|
1550
|
+
}
|
|
1551
|
+
.agi-voice__exit:hover {
|
|
1552
|
+
color: var(--text);
|
|
1553
|
+
border-color: var(--text-2);
|
|
1554
|
+
}
|
|
1555
|
+
.agi-voice__status {
|
|
1556
|
+
font-family: var(--font-mono);
|
|
1557
|
+
font-size: 10.5px;
|
|
1558
|
+
letter-spacing: 0.1em;
|
|
1559
|
+
text-transform: uppercase;
|
|
1560
|
+
color: var(--mute);
|
|
1561
|
+
}
|
|
1562
|
+
.agi-voice__you {
|
|
1563
|
+
margin: 0;
|
|
1564
|
+
max-width: 34ch;
|
|
1565
|
+
color: var(--text-2);
|
|
1566
|
+
font-size: 13.5px;
|
|
1567
|
+
}
|
|
1568
|
+
.agi-voice__reply {
|
|
1569
|
+
min-height: 0;
|
|
1570
|
+
max-width: 46ch;
|
|
1571
|
+
overflow-y: auto;
|
|
1572
|
+
color: var(--text);
|
|
1573
|
+
text-align: left;
|
|
1574
|
+
}
|
|
1575
|
+
.agi-voice__reply .agi-md {
|
|
1576
|
+
font-size: 15px;
|
|
1577
|
+
}
|
|
1578
|
+
.agi-voice__orb {
|
|
1579
|
+
width: 92px;
|
|
1580
|
+
height: 92px;
|
|
1581
|
+
border-radius: 999px;
|
|
1582
|
+
border: 1px solid var(--line-2);
|
|
1583
|
+
background: var(--panel-2);
|
|
1584
|
+
color: var(--text);
|
|
1585
|
+
display: grid;
|
|
1586
|
+
place-items: center;
|
|
1587
|
+
cursor: pointer;
|
|
1588
|
+
transition:
|
|
1589
|
+
box-shadow 120ms linear,
|
|
1590
|
+
border-color 160ms ease,
|
|
1591
|
+
background 160ms ease;
|
|
1592
|
+
}
|
|
1593
|
+
.agi-voice__orb:hover {
|
|
1594
|
+
border-color: var(--text-2);
|
|
1595
|
+
}
|
|
1596
|
+
.agi-voice__orb:disabled {
|
|
1597
|
+
cursor: default;
|
|
1598
|
+
opacity: 0.6;
|
|
1599
|
+
}
|
|
1600
|
+
.agi-voice__orb--listening {
|
|
1601
|
+
border-color: var(--signal);
|
|
1602
|
+
color: var(--signal);
|
|
1603
|
+
background: var(--signal-soft);
|
|
1604
|
+
box-shadow: 0 0 0 calc(4px + var(--agi-level, 0) * 28px)
|
|
1605
|
+
color-mix(in srgb, var(--signal) 22%, transparent);
|
|
1606
|
+
}
|
|
1607
|
+
.agi-voice__orb--speaking {
|
|
1608
|
+
border-color: var(--signal);
|
|
1609
|
+
animation: agi-voice-speak 1.4s ease-in-out infinite;
|
|
1610
|
+
}
|
|
1611
|
+
.agi-voice__orb--busy,
|
|
1612
|
+
.agi-voice__orb--transcribing {
|
|
1613
|
+
border-style: dashed;
|
|
1614
|
+
}
|
|
1615
|
+
@keyframes agi-voice-speak {
|
|
1616
|
+
0%,
|
|
1617
|
+
100% {
|
|
1618
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 18%, transparent);
|
|
1619
|
+
}
|
|
1620
|
+
50% {
|
|
1621
|
+
box-shadow: 0 0 0 16px color-mix(in srgb, var(--signal) 8%, transparent);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
.agi-voice__hint {
|
|
1625
|
+
min-height: 1.4em;
|
|
1626
|
+
font-size: 13px;
|
|
1627
|
+
color: var(--text-2);
|
|
1628
|
+
}
|
|
1629
|
+
.agi-voice__error {
|
|
1630
|
+
font-size: 12.5px;
|
|
1631
|
+
color: var(--bad);
|
|
1632
|
+
max-width: 40ch;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1517
1635
|
/* ─── markdown in replies ─── */
|
|
1518
1636
|
.agi-md {
|
|
1519
1637
|
display: grid;
|