@unpunnyfuns/swatchbook-blocks 0.63.0 → 0.64.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/dist/style.css CHANGED
@@ -1491,16 +1491,56 @@
1491
1491
  overflow: hidden;
1492
1492
  }
1493
1493
 
1494
- .sb-token-navigator__indicators {
1494
+ .sb-token-navigator__leaf-row[data-deprecated="true"] .sb-token-navigator__tail {
1495
+ opacity: .75;
1496
+ text-decoration: line-through light-dark(#92400e, #fbbf24);
1497
+ }
1498
+ .sb-detail-overlay__backdrop {
1499
+ z-index: 10000;
1500
+ background: #0006;
1501
+ justify-content: flex-end;
1502
+ align-items: stretch;
1503
+ display: flex;
1504
+ position: fixed;
1505
+ inset: 0;
1506
+ }
1507
+
1508
+ .sb-detail-overlay__panel {
1509
+ background: var(--swatchbook-surface-default, Canvas);
1510
+ width: min(560px, 100%);
1511
+ height: 100%;
1512
+ color: var(--swatchbook-text-default, CanvasText);
1513
+ padding: 16px;
1514
+ position: relative;
1515
+ overflow-y: auto;
1516
+ box-shadow: -8px 0 24px #0003;
1517
+ }
1518
+
1519
+ .sb-detail-overlay__close {
1520
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
1521
+ width: 32px;
1522
+ height: 32px;
1523
+ color: inherit;
1524
+ cursor: pointer;
1525
+ background: none;
1526
+ border-radius: 4px;
1527
+ font-size: 16px;
1528
+ line-height: 1;
1529
+ position: absolute;
1530
+ top: 16px;
1531
+ right: 16px;
1532
+ }
1533
+ .sb-indicator__indicators {
1495
1534
  min-width: 0;
1496
1535
  color: var(--swatchbook-text-muted, #808080e6);
1497
1536
  align-items: center;
1498
1537
  gap: 8px;
1499
- font-size: 11px;
1538
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1539
+ font-size: 12px;
1500
1540
  display: inline-flex;
1501
1541
  }
1502
1542
 
1503
- .sb-token-navigator__alias-forward, .sb-token-navigator__alias-reverse {
1543
+ .sb-indicator__alias-forward, .sb-indicator__alias-reverse {
1504
1544
  white-space: nowrap;
1505
1545
  text-overflow: ellipsis;
1506
1546
  align-items: center;
@@ -1509,13 +1549,13 @@
1509
1549
  overflow: hidden;
1510
1550
  }
1511
1551
 
1512
- .sb-token-navigator__alias-arrow {
1552
+ .sb-indicator__alias-arrow {
1513
1553
  color: var(--swatchbook-text-muted, #80808099);
1514
1554
  }
1515
1555
 
1516
- .sb-token-navigator__alias-node {
1556
+ .sb-indicator__alias-node {
1517
1557
  font: inherit;
1518
- color: var(--swatchbook-accent-default, light-dark(#1d4ed8, #93c5fd));
1558
+ color: var(--swatchbook-accent-default, LinkText);
1519
1559
  cursor: pointer;
1520
1560
  background: none;
1521
1561
  border: none;
@@ -1523,17 +1563,17 @@
1523
1563
  padding: 0 2px;
1524
1564
  }
1525
1565
 
1526
- .sb-token-navigator__alias-node:hover {
1566
+ .sb-indicator__alias-node:hover {
1527
1567
  text-decoration: underline;
1528
1568
  }
1529
1569
 
1530
- .sb-token-navigator__alias-node--offview {
1570
+ .sb-indicator__alias-node--offview {
1531
1571
  color: var(--swatchbook-text-muted, #80808099);
1532
1572
  cursor: default;
1533
1573
  text-decoration: none;
1534
1574
  }
1535
1575
 
1536
- .sb-token-navigator__variance, .sb-token-navigator__deprecated {
1576
+ .sb-indicator__variance, .sb-indicator__deprecated {
1537
1577
  white-space: nowrap;
1538
1578
  border-radius: 3px;
1539
1579
  align-items: center;
@@ -1542,15 +1582,15 @@
1542
1582
  display: inline-flex;
1543
1583
  }
1544
1584
 
1545
- .sb-token-navigator__variance-glyph {
1585
+ .sb-indicator__variance-glyph {
1546
1586
  color: var(--swatchbook-text-muted, #808080b3);
1547
1587
  }
1548
1588
 
1549
- .sb-token-navigator__gamut {
1589
+ .sb-indicator__gamut {
1550
1590
  margin-left: 2px;
1551
1591
  }
1552
1592
 
1553
- .sb-token-navigator__deprecated {
1593
+ .sb-indicator__deprecated {
1554
1594
  letter-spacing: .04em;
1555
1595
  text-transform: uppercase;
1556
1596
  color: light-dark(#92400e, #fbbf24);
@@ -1558,17 +1598,12 @@
1558
1598
  font-size: 9px;
1559
1599
  }
1560
1600
 
1561
- .sb-token-navigator__leaf-row[data-deprecated="true"] .sb-token-navigator__tail {
1562
- opacity: .75;
1563
- text-decoration: line-through light-dark(#92400e, #fbbf24);
1564
- }
1565
-
1566
- .sb-token-navigator__reverse-wrap {
1601
+ .sb-indicator__reverse-wrap {
1567
1602
  display: inline-flex;
1568
1603
  position: relative;
1569
1604
  }
1570
1605
 
1571
- .sb-token-navigator__reverse-menu {
1606
+ .sb-indicator__reverse-menu {
1572
1607
  z-index: 10;
1573
1608
  background: var(--swatchbook-surface-raised, light-dark(#fff, #1a1a1a));
1574
1609
  border: 1px solid var(--swatchbook-border-default, #8080804d);
@@ -1582,12 +1617,12 @@
1582
1617
  box-shadow: 0 4px 12px #00000026;
1583
1618
  }
1584
1619
 
1585
- .sb-token-navigator__reverse-item {
1620
+ .sb-indicator__reverse-item {
1586
1621
  width: 100%;
1587
1622
  font: inherit;
1588
1623
  text-align: left;
1589
1624
  white-space: nowrap;
1590
- color: var(--swatchbook-accent-default, light-dark(#1d4ed8, #93c5fd));
1625
+ color: var(--swatchbook-accent-default, LinkText);
1591
1626
  cursor: pointer;
1592
1627
  background: none;
1593
1628
  border: none;
@@ -1596,49 +1631,14 @@
1596
1631
  display: block;
1597
1632
  }
1598
1633
 
1599
- .sb-token-navigator__reverse-item:hover:not(:disabled) {
1634
+ .sb-indicator__reverse-item:hover:not(:disabled) {
1600
1635
  background: var(--swatchbook-surface-muted, #8080801f);
1601
1636
  }
1602
1637
 
1603
- .sb-token-navigator__reverse-item:disabled {
1638
+ .sb-indicator__reverse-item:disabled {
1604
1639
  color: var(--swatchbook-text-muted, #80808099);
1605
1640
  cursor: default;
1606
1641
  }
1607
- .sb-detail-overlay__backdrop {
1608
- z-index: 10000;
1609
- background: #0006;
1610
- justify-content: flex-end;
1611
- align-items: stretch;
1612
- display: flex;
1613
- position: fixed;
1614
- inset: 0;
1615
- }
1616
-
1617
- .sb-detail-overlay__panel {
1618
- background: var(--swatchbook-surface-default, Canvas);
1619
- width: min(560px, 100%);
1620
- height: 100%;
1621
- color: var(--swatchbook-text-default, CanvasText);
1622
- padding: 16px;
1623
- position: relative;
1624
- overflow-y: auto;
1625
- box-shadow: -8px 0 24px #0003;
1626
- }
1627
-
1628
- .sb-detail-overlay__close {
1629
- border: 1px solid var(--swatchbook-border-default, #8080804d);
1630
- width: 32px;
1631
- height: 32px;
1632
- color: inherit;
1633
- cursor: pointer;
1634
- background: none;
1635
- border-radius: 4px;
1636
- font-size: 16px;
1637
- line-height: 1;
1638
- position: absolute;
1639
- top: 16px;
1640
- right: 16px;
1641
- }
1642
1642
  .sb-token-table__table {
1643
1643
  border-collapse: collapse;
1644
1644
  width: 100%;
@@ -1692,11 +1692,11 @@
1692
1692
  }
1693
1693
 
1694
1694
  .sb-token-table__th--path {
1695
- min-width: 180px;
1695
+ min-width: 220px;
1696
1696
  }
1697
1697
 
1698
1698
  .sb-token-table__th--value {
1699
- min-width: 160px;
1699
+ min-width: 200px;
1700
1700
  }
1701
1701
 
1702
1702
  .sb-token-table__row {
@@ -1715,6 +1715,7 @@
1715
1715
  }
1716
1716
 
1717
1717
  .sb-token-table__path {
1718
+ overflow-wrap: break-word;
1718
1719
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1719
1720
  font-size: 12px;
1720
1721
  }
@@ -1751,10 +1752,8 @@
1751
1752
  }
1752
1753
 
1753
1754
  .sb-token-table__value-text {
1754
- text-overflow: ellipsis;
1755
- white-space: nowrap;
1755
+ overflow-wrap: break-word;
1756
1756
  min-width: 0;
1757
- overflow: hidden;
1758
1757
  }
1759
1758
 
1760
1759
  .sb-token-table__gamut-warn {
@@ -1774,6 +1773,15 @@
1774
1773
  opacity: 1;
1775
1774
  }
1776
1775
 
1776
+ .sb-token-table__path[data-deprecated="true"] {
1777
+ opacity: .75;
1778
+ text-decoration: line-through light-dark(#92400e, #fbbf24);
1779
+ }
1780
+
1781
+ .sb-token-table__refs {
1782
+ white-space: nowrap;
1783
+ }
1784
+
1777
1785
  .sb-token-table__sr-status {
1778
1786
  clip: rect(0, 0, 0, 0);
1779
1787
  white-space: nowrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpunnyfuns/swatchbook-blocks",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
4
4
  "description": "Storybook MDX doc blocks for DTCG design tokens — TokenTable, ColorPalette, TypographyScale, TokenDetail.",
5
5
  "license": "MIT",
6
6
  "author": "unpunnyfuns <unpunnyfuns@gmail.com>",
@@ -70,7 +70,7 @@
70
70
  "dependencies": {
71
71
  "clsx": "^2.1.1",
72
72
  "colorjs.io": "^0.6.1",
73
- "@unpunnyfuns/swatchbook-core": "0.63.0"
73
+ "@unpunnyfuns/swatchbook-core": "0.64.0"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "tsdown",