@unpunnyfuns/swatchbook-blocks 0.62.4 → 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/index.d.mts +6 -0
- package/dist/index.mjs +384 -70
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +136 -5
- package/package.json +8 -8
package/dist/style.css
CHANGED
|
@@ -1326,6 +1326,15 @@
|
|
|
1326
1326
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1327
1327
|
font-size: 11px;
|
|
1328
1328
|
}
|
|
1329
|
+
|
|
1330
|
+
.sb-token-detail__deprecated {
|
|
1331
|
+
color: light-dark(#92400e, #fbbf24);
|
|
1332
|
+
background: light-dark(#f59e0b26, #f59e0b2e);
|
|
1333
|
+
border-radius: 6px;
|
|
1334
|
+
margin: 6px 0;
|
|
1335
|
+
padding: 6px 10px;
|
|
1336
|
+
font-size: 12px;
|
|
1337
|
+
}
|
|
1329
1338
|
.sb-token-navigator__search {
|
|
1330
1339
|
padding: 0 0 8px;
|
|
1331
1340
|
}
|
|
@@ -1481,6 +1490,11 @@
|
|
|
1481
1490
|
position: absolute;
|
|
1482
1491
|
overflow: hidden;
|
|
1483
1492
|
}
|
|
1493
|
+
|
|
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
|
+
}
|
|
1484
1498
|
.sb-detail-overlay__backdrop {
|
|
1485
1499
|
z-index: 10000;
|
|
1486
1500
|
background: #0006;
|
|
@@ -1516,6 +1530,115 @@
|
|
|
1516
1530
|
top: 16px;
|
|
1517
1531
|
right: 16px;
|
|
1518
1532
|
}
|
|
1533
|
+
.sb-indicator__indicators {
|
|
1534
|
+
min-width: 0;
|
|
1535
|
+
color: var(--swatchbook-text-muted, #808080e6);
|
|
1536
|
+
align-items: center;
|
|
1537
|
+
gap: 8px;
|
|
1538
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1539
|
+
font-size: 12px;
|
|
1540
|
+
display: inline-flex;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.sb-indicator__alias-forward, .sb-indicator__alias-reverse {
|
|
1544
|
+
white-space: nowrap;
|
|
1545
|
+
text-overflow: ellipsis;
|
|
1546
|
+
align-items: center;
|
|
1547
|
+
gap: 2px;
|
|
1548
|
+
display: inline-flex;
|
|
1549
|
+
overflow: hidden;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
.sb-indicator__alias-arrow {
|
|
1553
|
+
color: var(--swatchbook-text-muted, #80808099);
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.sb-indicator__alias-node {
|
|
1557
|
+
font: inherit;
|
|
1558
|
+
color: var(--swatchbook-accent-default, LinkText);
|
|
1559
|
+
cursor: pointer;
|
|
1560
|
+
background: none;
|
|
1561
|
+
border: none;
|
|
1562
|
+
border-radius: 3px;
|
|
1563
|
+
padding: 0 2px;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.sb-indicator__alias-node:hover {
|
|
1567
|
+
text-decoration: underline;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.sb-indicator__alias-node--offview {
|
|
1571
|
+
color: var(--swatchbook-text-muted, #80808099);
|
|
1572
|
+
cursor: default;
|
|
1573
|
+
text-decoration: none;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.sb-indicator__variance, .sb-indicator__deprecated {
|
|
1577
|
+
white-space: nowrap;
|
|
1578
|
+
border-radius: 3px;
|
|
1579
|
+
align-items: center;
|
|
1580
|
+
gap: 2px;
|
|
1581
|
+
padding: 0 4px;
|
|
1582
|
+
display: inline-flex;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
.sb-indicator__variance-glyph {
|
|
1586
|
+
color: var(--swatchbook-text-muted, #808080b3);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.sb-indicator__gamut {
|
|
1590
|
+
margin-left: 2px;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
.sb-indicator__deprecated {
|
|
1594
|
+
letter-spacing: .04em;
|
|
1595
|
+
text-transform: uppercase;
|
|
1596
|
+
color: light-dark(#92400e, #fbbf24);
|
|
1597
|
+
background: light-dark(#f59e0b26, #f59e0b2e);
|
|
1598
|
+
font-size: 9px;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
.sb-indicator__reverse-wrap {
|
|
1602
|
+
display: inline-flex;
|
|
1603
|
+
position: relative;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
.sb-indicator__reverse-menu {
|
|
1607
|
+
z-index: 10;
|
|
1608
|
+
background: var(--swatchbook-surface-raised, light-dark(#fff, #1a1a1a));
|
|
1609
|
+
border: 1px solid var(--swatchbook-border-default, #8080804d);
|
|
1610
|
+
border-radius: 6px;
|
|
1611
|
+
margin: 2px 0 0;
|
|
1612
|
+
padding: 4px;
|
|
1613
|
+
list-style: none;
|
|
1614
|
+
position: absolute;
|
|
1615
|
+
top: 100%;
|
|
1616
|
+
right: 0;
|
|
1617
|
+
box-shadow: 0 4px 12px #00000026;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.sb-indicator__reverse-item {
|
|
1621
|
+
width: 100%;
|
|
1622
|
+
font: inherit;
|
|
1623
|
+
text-align: left;
|
|
1624
|
+
white-space: nowrap;
|
|
1625
|
+
color: var(--swatchbook-accent-default, LinkText);
|
|
1626
|
+
cursor: pointer;
|
|
1627
|
+
background: none;
|
|
1628
|
+
border: none;
|
|
1629
|
+
border-radius: 4px;
|
|
1630
|
+
padding: 4px 8px;
|
|
1631
|
+
display: block;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
.sb-indicator__reverse-item:hover:not(:disabled) {
|
|
1635
|
+
background: var(--swatchbook-surface-muted, #8080801f);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
.sb-indicator__reverse-item:disabled {
|
|
1639
|
+
color: var(--swatchbook-text-muted, #80808099);
|
|
1640
|
+
cursor: default;
|
|
1641
|
+
}
|
|
1519
1642
|
.sb-token-table__table {
|
|
1520
1643
|
border-collapse: collapse;
|
|
1521
1644
|
width: 100%;
|
|
@@ -1569,11 +1692,11 @@
|
|
|
1569
1692
|
}
|
|
1570
1693
|
|
|
1571
1694
|
.sb-token-table__th--path {
|
|
1572
|
-
min-width:
|
|
1695
|
+
min-width: 220px;
|
|
1573
1696
|
}
|
|
1574
1697
|
|
|
1575
1698
|
.sb-token-table__th--value {
|
|
1576
|
-
min-width:
|
|
1699
|
+
min-width: 200px;
|
|
1577
1700
|
}
|
|
1578
1701
|
|
|
1579
1702
|
.sb-token-table__row {
|
|
@@ -1592,6 +1715,7 @@
|
|
|
1592
1715
|
}
|
|
1593
1716
|
|
|
1594
1717
|
.sb-token-table__path {
|
|
1718
|
+
overflow-wrap: break-word;
|
|
1595
1719
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1596
1720
|
font-size: 12px;
|
|
1597
1721
|
}
|
|
@@ -1628,10 +1752,8 @@
|
|
|
1628
1752
|
}
|
|
1629
1753
|
|
|
1630
1754
|
.sb-token-table__value-text {
|
|
1631
|
-
|
|
1632
|
-
white-space: nowrap;
|
|
1755
|
+
overflow-wrap: break-word;
|
|
1633
1756
|
min-width: 0;
|
|
1634
|
-
overflow: hidden;
|
|
1635
1757
|
}
|
|
1636
1758
|
|
|
1637
1759
|
.sb-token-table__gamut-warn {
|
|
@@ -1651,6 +1773,15 @@
|
|
|
1651
1773
|
opacity: 1;
|
|
1652
1774
|
}
|
|
1653
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
|
+
|
|
1654
1785
|
.sb-token-table__sr-status {
|
|
1655
1786
|
clip: rect(0, 0, 0, 0);
|
|
1656
1787
|
white-space: nowrap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpunnyfuns/swatchbook-blocks",
|
|
3
|
-
"version": "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>",
|
|
@@ -57,20 +57,20 @@
|
|
|
57
57
|
"@tsdown/css": "^0.21.9",
|
|
58
58
|
"@types/react": "^19.2.14",
|
|
59
59
|
"@vitejs/plugin-react": "^6.0.1",
|
|
60
|
-
"@vitest/browser": "^4.1.
|
|
61
|
-
"@vitest/browser-playwright": "^4.1.
|
|
60
|
+
"@vitest/browser": "^4.1.8",
|
|
61
|
+
"@vitest/browser-playwright": "^4.1.8",
|
|
62
62
|
"playwright": "^1.59.1",
|
|
63
63
|
"react": "^19.2.4",
|
|
64
64
|
"react-dom": "^19.2.4",
|
|
65
|
-
"storybook": "^10.4.
|
|
65
|
+
"storybook": "^10.4.4",
|
|
66
66
|
"tsdown": "^0.21.9",
|
|
67
|
-
"typescript": "^6.0.
|
|
68
|
-
"vitest": "^4.1.
|
|
67
|
+
"typescript": "^6.0.3",
|
|
68
|
+
"vitest": "^4.1.8"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
|
-
"colorjs.io": "0.6.1",
|
|
73
|
-
"@unpunnyfuns/swatchbook-core": "0.
|
|
72
|
+
"colorjs.io": "^0.6.1",
|
|
73
|
+
"@unpunnyfuns/swatchbook-core": "0.64.0"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "tsdown",
|