@deepgram/styles 0.2.8 → 0.2.10

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/lib/deepgram.css CHANGED
@@ -1411,4 +1411,385 @@
1411
1411
  @apply w-auto;
1412
1412
  }
1413
1413
  }
1414
+
1415
+ /* Alerts */
1416
+
1417
+ .dg-alert {
1418
+ @apply rounded-md p-4;
1419
+ }
1420
+
1421
+ .dg-alert--warning {
1422
+ background-color: color-mix(in srgb, var(--color-dg-warning) 10%, transparent);
1423
+ outline: 1px solid color-mix(in srgb, var(--color-dg-warning) 15%, transparent);
1424
+ }
1425
+
1426
+ .dg-alert--success {
1427
+ background-color: color-mix(in srgb, var(--color-dg-success) 10%, transparent);
1428
+ outline: 1px solid color-mix(in srgb, var(--color-dg-success) 15%, transparent);
1429
+ }
1430
+
1431
+ .dg-alert--danger {
1432
+ background-color: color-mix(in srgb, var(--color-dg-danger) 10%, transparent);
1433
+ outline: 1px solid color-mix(in srgb, var(--color-dg-danger) 15%, transparent);
1434
+ }
1435
+
1436
+ .dg-alert--info {
1437
+ background-color: color-mix(in srgb, var(--color-dg-secondary) 10%, transparent);
1438
+ outline: 1px solid color-mix(in srgb, var(--color-dg-secondary) 15%, transparent);
1439
+ }
1440
+
1441
+ .dg-alert__content {
1442
+ @apply flex;
1443
+ }
1444
+
1445
+ .dg-alert__icon {
1446
+ @apply shrink-0;
1447
+ }
1448
+
1449
+ .dg-alert__icon svg {
1450
+ @apply size-5;
1451
+ }
1452
+
1453
+ .dg-alert--warning .dg-alert__icon {
1454
+ @apply text-dg-warning;
1455
+ }
1456
+
1457
+ .dg-alert--success .dg-alert__icon {
1458
+ @apply text-dg-success;
1459
+ }
1460
+
1461
+ .dg-alert--danger .dg-alert__icon {
1462
+ @apply text-dg-danger;
1463
+ }
1464
+
1465
+ .dg-alert--info .dg-alert__icon {
1466
+ @apply text-dg-secondary;
1467
+ }
1468
+
1469
+ .dg-alert__body {
1470
+ margin-left: 0.75rem;
1471
+ }
1472
+
1473
+ .dg-alert__title {
1474
+ @apply text-sm font-medium;
1475
+ }
1476
+
1477
+ .dg-alert--warning .dg-alert__title {
1478
+ @apply text-dg-warning;
1479
+ }
1480
+
1481
+ .dg-alert--success .dg-alert__title {
1482
+ @apply text-dg-success;
1483
+ }
1484
+
1485
+ .dg-alert--danger .dg-alert__title {
1486
+ @apply text-dg-danger;
1487
+ }
1488
+
1489
+ .dg-alert--info .dg-alert__title {
1490
+ @apply text-dg-secondary;
1491
+ }
1492
+
1493
+ .dg-alert__description {
1494
+ @apply mt-2 text-sm text-dg-muted;
1495
+ }
1496
+
1497
+ .dg-alert__actions {
1498
+ @apply mt-4;
1499
+ }
1500
+
1501
+ .dg-alert__actions .dg-btn {
1502
+ @apply text-sm;
1503
+ }
1504
+
1505
+ .dg-alert__list {
1506
+ @apply mt-2 text-sm text-dg-muted list-disc pl-5;
1507
+ }
1508
+
1509
+ .dg-alert__list li {
1510
+ padding-left: 0.25rem;
1511
+ }
1512
+
1513
+ .dg-alert__dismiss {
1514
+ @apply ml-auto pl-3 shrink-0;
1515
+ }
1516
+
1517
+ .dg-alert__dismiss button {
1518
+ @apply inline-flex rounded-md p-1.5 text-dg-muted cursor-pointer;
1519
+ }
1520
+
1521
+ .dg-alert__dismiss button:hover {
1522
+ @apply text-dg-text;
1523
+ }
1524
+
1525
+ .dg-alert__dismiss button svg {
1526
+ @apply size-5;
1527
+ }
1528
+
1529
+ /* Comboboxes */
1530
+
1531
+ .dg-combobox {
1532
+ @apply relative block;
1533
+ }
1534
+
1535
+ .dg-combobox__label {
1536
+ @apply block text-sm font-medium text-white;
1537
+ line-height: 1.5rem;
1538
+ }
1539
+
1540
+ .dg-combobox__wrapper {
1541
+ @apply relative mt-2 block;
1542
+ }
1543
+
1544
+ .dg-combobox__input {
1545
+ @apply block w-full rounded-md bg-white/5 py-1.5 pr-12;
1546
+ @apply pl-3 text-base text-white outline-1 -outline-offset-1 outline-white/10;
1547
+ @apply placeholder:text-dg-slate sm:text-sm;
1548
+ line-height: 1.5rem;
1549
+ }
1550
+
1551
+ .dg-combobox__input:focus {
1552
+ @apply outline-2 -outline-offset-2 outline-dg-primary;
1553
+ }
1554
+
1555
+ .dg-combobox__toggle {
1556
+ @apply absolute inset-y-0 right-0 flex items-center rounded-r-md;
1557
+ @apply px-2;
1558
+ }
1559
+
1560
+ .dg-combobox__toggle-icon {
1561
+ @apply size-5 text-dg-muted;
1562
+ }
1563
+
1564
+ .dg-combobox__options {
1565
+ @apply max-h-60 overflow-auto rounded-md bg-dg-charcoal py-1 text-base;
1566
+ @apply shadow-lg sm:text-sm;
1567
+ outline: 1px solid rgba(255, 255, 255, 0.1);
1568
+ outline-offset: -1px;
1569
+ }
1570
+
1571
+ .dg-combobox__option {
1572
+ @apply block truncate px-3 py-2 text-dg-platinum select-none;
1573
+ @apply cursor-pointer;
1574
+ }
1575
+
1576
+ .dg-combobox__option:hover {
1577
+ @apply bg-dg-primary text-white;
1578
+ }
1579
+
1580
+ .dg-combobox__option.selected {
1581
+ @apply bg-dg-primary text-white;
1582
+ }
1583
+
1584
+ .dg-combobox__option-text {
1585
+ @apply block truncate;
1586
+ }
1587
+
1588
+ .dg-combobox__check {
1589
+ @apply absolute inset-y-0 right-0 flex items-center pr-4;
1590
+ @apply text-white;
1591
+ }
1592
+
1593
+ .dg-combobox__check-icon {
1594
+ @apply size-5;
1595
+ }
1596
+
1597
+ .dg-combobox--with-check .dg-combobox__option {
1598
+ @apply relative pr-9;
1599
+ }
1600
+
1601
+ .dg-combobox--with-check .dg-combobox__option.selected .dg-combobox__check {
1602
+ @apply flex;
1603
+ }
1604
+
1605
+ .dg-combobox--with-avatar .dg-combobox__option {
1606
+ @apply flex items-center;
1607
+ gap: 0.5rem;
1608
+ }
1609
+
1610
+ .dg-combobox__avatar {
1611
+ @apply size-6 shrink-0 rounded-full;
1612
+ }
1613
+
1614
+ .dg-combobox--with-status .dg-combobox__option {
1615
+ @apply flex items-center;
1616
+ gap: 0.5rem;
1617
+ }
1618
+
1619
+ .dg-combobox__status {
1620
+ @apply inline-block size-2 shrink-0 rounded-full;
1621
+ }
1622
+
1623
+ .dg-combobox__status--online {
1624
+ @apply bg-dg-success;
1625
+ }
1626
+
1627
+ .dg-combobox__status--offline {
1628
+ @apply bg-dg-muted;
1629
+ }
1630
+
1631
+ /* Stacked */
1632
+
1633
+ .dg-stacked {
1634
+ @apply min-h-full;
1635
+ }
1636
+
1637
+ .dg-stacked__nav {
1638
+ @apply border-b border-dg-border;
1639
+ background-color: var(--dg-bg-default, #0b0b0c);
1640
+ }
1641
+
1642
+ .dg-stacked__nav-container {
1643
+ @apply mx-auto max-w-7xl px-4 sm:px-6 lg:px-8;
1644
+ }
1645
+
1646
+ .dg-stacked__nav-bar {
1647
+ @apply flex h-16 justify-between;
1648
+ }
1649
+
1650
+ .dg-stacked__nav-left {
1651
+ @apply flex;
1652
+ }
1653
+
1654
+ .dg-stacked__logo {
1655
+ @apply flex shrink-0 items-center;
1656
+ }
1657
+
1658
+ .dg-stacked__logo img {
1659
+ @apply h-8 w-auto;
1660
+ }
1661
+
1662
+ .dg-stacked__nav-links {
1663
+ @apply hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8;
1664
+ }
1665
+
1666
+ .dg-stacked__nav-link {
1667
+ @apply inline-flex items-center border-b-2 border-transparent px-1 pt-1;
1668
+ @apply text-sm font-medium text-dg-muted hover:border-dg-platinum hover:text-dg-fog;
1669
+ }
1670
+
1671
+ .dg-stacked__nav-link--active {
1672
+ @apply border-dg-primary text-white;
1673
+ }
1674
+
1675
+ .dg-stacked__nav-right {
1676
+ @apply hidden sm:ml-6 sm:flex sm:items-center;
1677
+ }
1678
+
1679
+ .dg-stacked__notification-btn {
1680
+ @apply relative rounded-full p-1 text-dg-muted hover:text-white focus:outline-2;
1681
+ @apply focus:outline-offset-2 focus:outline-dg-primary;
1682
+ }
1683
+
1684
+ .dg-stacked__notification-btn svg {
1685
+ @apply size-6;
1686
+ }
1687
+
1688
+ .dg-stacked__profile {
1689
+ @apply relative ml-3;
1690
+ }
1691
+
1692
+ .dg-stacked__profile-btn {
1693
+ @apply relative flex max-w-xs items-center rounded-full focus-visible:outline-2;
1694
+ @apply focus-visible:outline-offset-2 focus-visible:outline-dg-primary;
1695
+ }
1696
+
1697
+ .dg-stacked__profile-btn img {
1698
+ @apply size-8 rounded-full outline -outline-offset-1 outline-white/10;
1699
+ }
1700
+
1701
+ .dg-stacked__profile-menu {
1702
+ @apply w-48 origin-top-right rounded-md py-1 shadow-lg outline;
1703
+ @apply outline-white/10;
1704
+ background-color: var(--dg-bg-default, #0b0b0c);
1705
+ }
1706
+
1707
+ .dg-stacked__profile-menu a {
1708
+ @apply block px-4 py-2 text-sm text-dg-platinum focus:bg-white/5;
1709
+ @apply focus:outline-hidden;
1710
+ }
1711
+
1712
+ .dg-stacked__mobile-toggle {
1713
+ @apply -mr-2 flex items-center sm:hidden;
1714
+ }
1715
+
1716
+ .dg-stacked__mobile-btn {
1717
+ @apply relative inline-flex items-center justify-center rounded-md p-2;
1718
+ @apply text-dg-muted hover:bg-white/5 hover:text-white focus:outline-2 focus:outline-offset-2 focus:outline-dg-primary;
1719
+ background-color: var(--dg-bg-default, #0b0b0c);
1720
+ }
1721
+
1722
+ .dg-stacked__mobile-btn svg {
1723
+ @apply size-6;
1724
+ }
1725
+
1726
+ .dg-stacked__mobile-menu {
1727
+ @apply sm:hidden;
1728
+ }
1729
+
1730
+ .dg-stacked__mobile-links {
1731
+ @apply space-y-1 pt-2 pb-3;
1732
+ }
1733
+
1734
+ .dg-stacked__mobile-link {
1735
+ @apply block border-l-4 border-transparent py-2 pr-4 pl-3;
1736
+ @apply text-base font-medium text-dg-muted hover:border-dg-slate hover:bg-white/5 hover:text-dg-fog;
1737
+ }
1738
+
1739
+ .dg-stacked__mobile-link--active {
1740
+ @apply border-dg-primary bg-dg-primary/10 text-dg-primary;
1741
+ }
1742
+
1743
+ .dg-stacked__mobile-user {
1744
+ @apply border-t border-dg-border pt-4 pb-3;
1745
+ }
1746
+
1747
+ .dg-stacked__mobile-user-info {
1748
+ @apply flex items-center px-4;
1749
+ }
1750
+
1751
+ .dg-stacked__mobile-user-avatar {
1752
+ @apply shrink-0;
1753
+ }
1754
+
1755
+ .dg-stacked__mobile-user-avatar img {
1756
+ @apply size-10 rounded-full outline -outline-offset-1 outline-white/10;
1757
+ }
1758
+
1759
+ .dg-stacked__mobile-user-details {
1760
+ @apply ml-3;
1761
+ }
1762
+
1763
+ .dg-stacked__mobile-user-name {
1764
+ @apply text-base font-medium text-white;
1765
+ }
1766
+
1767
+ .dg-stacked__mobile-user-email {
1768
+ @apply text-sm font-medium text-dg-muted;
1769
+ }
1770
+
1771
+ .dg-stacked__mobile-user-actions {
1772
+ @apply mt-3 space-y-1;
1773
+ }
1774
+
1775
+ .dg-stacked__mobile-user-actions a {
1776
+ @apply block px-4 py-2 text-base font-medium text-dg-muted;
1777
+ @apply hover:bg-white/5 hover:text-dg-fog;
1778
+ }
1779
+
1780
+ .dg-stacked__content {
1781
+ @apply py-10;
1782
+ }
1783
+
1784
+ .dg-stacked__page-header {
1785
+ @apply mx-auto max-w-7xl px-4 sm:px-6 lg:px-8;
1786
+ }
1787
+
1788
+ .dg-stacked__page-title {
1789
+ @apply text-3xl font-bold tracking-tight text-white;
1790
+ }
1791
+
1792
+ .dg-stacked__main {
1793
+ @apply mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8;
1794
+ }
1414
1795
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  /* Source scanning for class detection */
11
11
  @source "./deepgram.css";
12
- @source inline("collapsed visible");
12
+ @source inline("collapsed selected visible");
13
13
 
14
14
  /* Dark mode support */
15
15
  @variant dark (&.dark);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepgram/styles",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Tailwind-based design system and styles library for Deepgram design system and demos",
5
5
  "author": "Deepgram",
6
6
  "license": "MIT",