@harnessio/ui 0.5.34 → 0.5.35
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/components.d.ts +76 -3
- package/dist/components.js +75 -74
- package/dist/{index-D64LabAE.js → index-wrG2eXUf.js} +16497 -16071
- package/dist/{index-D64LabAE.js.map → index-wrG2eXUf.js.map} +1 -1
- package/dist/index.d.ts +84 -3
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.config.js +322 -63
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +3 -3
package/dist/tailwind.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as
|
|
1
|
+
import { p as R, t as I } from "./tailwind-design-system-D9j_K4lL.js";
|
|
2
2
|
import { F as S, C as l } from "./form-constants-CdD106iI.js";
|
|
3
3
|
const T = {
|
|
4
4
|
".cn-accordion": {
|
|
@@ -121,7 +121,7 @@ const T = {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, W = ["info", "danger", "warning", "success"], B = {
|
|
125
125
|
info: {
|
|
126
126
|
backgroundColor: "gray-secondary",
|
|
127
127
|
color: "text-cn-2",
|
|
@@ -145,8 +145,8 @@ const T = {
|
|
|
145
145
|
};
|
|
146
146
|
function H() {
|
|
147
147
|
const r = {};
|
|
148
|
-
return
|
|
149
|
-
const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } =
|
|
148
|
+
return W.forEach((e) => {
|
|
149
|
+
const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } = B[e];
|
|
150
150
|
n.backgroundColor = `var(--cn-set-${o}-bg)`, n["> .cn-alert-icon"] = {
|
|
151
151
|
color: `var(--cn-${a})`
|
|
152
152
|
}, n[" .cn-alert-fade-overlay"] = {
|
|
@@ -1285,6 +1285,13 @@ const K = {
|
|
|
1285
1285
|
boxShadow: "var(--cn-shadow-5)",
|
|
1286
1286
|
overflow: "hidden",
|
|
1287
1287
|
outline: "none",
|
|
1288
|
+
// Cap content at the viewport so a drawer never overflows the screen, regardless
|
|
1289
|
+
// of `size` or layout. Originally added to keep dual-pane drawers usable on small
|
|
1290
|
+
// viewports (the dual pane behaves like `size="full"` once the chosen size exceeds
|
|
1291
|
+
// 100vw / 100vh), but applies to all drawers because a drawer larger than the
|
|
1292
|
+
// viewport is broken UX in any context.
|
|
1293
|
+
maxWidth: "100vw",
|
|
1294
|
+
maxHeight: "100vh",
|
|
1288
1295
|
"@apply fixed flex flex-col z-50 border": "",
|
|
1289
1296
|
"&:where(.cn-drawer-content-right), &:where(.cn-drawer-content-left)": {
|
|
1290
1297
|
"@apply inset-y-0 !h-auto": "",
|
|
@@ -1401,7 +1408,7 @@ const K = {
|
|
|
1401
1408
|
"@apply size-full": "",
|
|
1402
1409
|
"&-content": {
|
|
1403
1410
|
padding: "var(--cn-drawer-container)",
|
|
1404
|
-
overflowX: "
|
|
1411
|
+
overflowX: "clip"
|
|
1405
1412
|
}
|
|
1406
1413
|
},
|
|
1407
1414
|
"&-body-wrap": {
|
|
@@ -1429,6 +1436,227 @@ const K = {
|
|
|
1429
1436
|
gap: "var(--cn-drawer-gap)",
|
|
1430
1437
|
padding: "var(--cn-drawer-container)",
|
|
1431
1438
|
"@apply flex flex-col border-t": ""
|
|
1439
|
+
},
|
|
1440
|
+
"&-dual-pane": {
|
|
1441
|
+
"--cn-drawer-dual-pane-rail-width": "19.125rem",
|
|
1442
|
+
"--cn-drawer-dual-pane-main-min-width": "var(--cn-drawer-xs)",
|
|
1443
|
+
width: "100%",
|
|
1444
|
+
minWidth: "0",
|
|
1445
|
+
"@apply flex min-h-0 w-full min-w-0 flex-1 flex-row overflow-x-auto overflow-y-hidden": ""
|
|
1446
|
+
},
|
|
1447
|
+
"&-dual-pane-rail": {
|
|
1448
|
+
width: "var(--cn-drawer-dual-pane-rail-width)",
|
|
1449
|
+
minWidth: "var(--cn-drawer-dual-pane-rail-width)",
|
|
1450
|
+
maxWidth: "var(--cn-drawer-dual-pane-rail-width)",
|
|
1451
|
+
flexShrink: "0",
|
|
1452
|
+
backgroundColor: "var(--cn-bg-2)",
|
|
1453
|
+
borderRightWidth: "var(--cn-border-width-1)",
|
|
1454
|
+
borderRightColor: "var(--cn-border-3)",
|
|
1455
|
+
"@apply flex min-h-0 flex-col overflow-hidden border-r": ""
|
|
1456
|
+
},
|
|
1457
|
+
"&-dual-pane-rail-header": {
|
|
1458
|
+
borderBottomWidth: "var(--cn-border-width-1)",
|
|
1459
|
+
borderBottomColor: "var(--cn-border-3)",
|
|
1460
|
+
padding: "var(--cn-drawer-container) var(--cn-drawer-container) var(--cn-drawer-container) var(--cn-spacing-8)",
|
|
1461
|
+
flexShrink: "0",
|
|
1462
|
+
"@apply flex flex-col border-b": "",
|
|
1463
|
+
"&:where(.cn-drawer-dual-pane-rail-header-at-top)": {
|
|
1464
|
+
borderBottomColor: "transparent"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
"&-dual-pane-rail-header-title": {
|
|
1468
|
+
font: "var(--cn-heading-section)",
|
|
1469
|
+
letterSpacing: "var(--cn-tracking-tight)",
|
|
1470
|
+
color: "var(--cn-text-1)",
|
|
1471
|
+
margin: "0",
|
|
1472
|
+
wordBreak: "break-word"
|
|
1473
|
+
},
|
|
1474
|
+
"&-dual-pane-rail-body": {
|
|
1475
|
+
"@apply flex-1 min-h-0": ""
|
|
1476
|
+
},
|
|
1477
|
+
"&-dual-pane-rail-content": {
|
|
1478
|
+
padding: "0 var(--cn-drawer-container) var(--cn-drawer-container)"
|
|
1479
|
+
},
|
|
1480
|
+
"&-dual-pane-steps-list": {
|
|
1481
|
+
gap: "var(--cn-spacing-1)",
|
|
1482
|
+
listStyle: "none",
|
|
1483
|
+
margin: "0",
|
|
1484
|
+
padding: "0",
|
|
1485
|
+
"@apply flex flex-col": ""
|
|
1486
|
+
},
|
|
1487
|
+
"&-dual-pane-step-item": {
|
|
1488
|
+
margin: "0",
|
|
1489
|
+
padding: "0"
|
|
1490
|
+
},
|
|
1491
|
+
"&-dual-pane-step": {
|
|
1492
|
+
gap: "var(--cn-spacing-3)",
|
|
1493
|
+
padding: "var(--cn-spacing-2) var(--cn-spacing-3)",
|
|
1494
|
+
borderRadius: "var(--cn-rounded-3)",
|
|
1495
|
+
textAlign: "left",
|
|
1496
|
+
width: "100%",
|
|
1497
|
+
backgroundColor: "transparent",
|
|
1498
|
+
border: "none",
|
|
1499
|
+
"@apply flex flex-row items-start": "",
|
|
1500
|
+
"&:where(button)": {
|
|
1501
|
+
"@apply cursor-pointer": ""
|
|
1502
|
+
},
|
|
1503
|
+
"&:hover": {
|
|
1504
|
+
backgroundColor: "var(--cn-state-hover)"
|
|
1505
|
+
},
|
|
1506
|
+
"&:where(button):focus-visible": {
|
|
1507
|
+
outline: "2px solid var(--cn-focus)",
|
|
1508
|
+
outlineOffset: "2px"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
"&-dual-pane-step-content": {
|
|
1512
|
+
gap: "var(--cn-spacing-half)",
|
|
1513
|
+
minWidth: "0",
|
|
1514
|
+
"@apply flex flex-col flex-1": ""
|
|
1515
|
+
},
|
|
1516
|
+
"&-dual-pane-step-indicator": {
|
|
1517
|
+
width: "1.25rem",
|
|
1518
|
+
height: "1.25rem",
|
|
1519
|
+
borderRadius: "9999px",
|
|
1520
|
+
flexShrink: "0",
|
|
1521
|
+
borderWidth: "var(--cn-border-width-1)",
|
|
1522
|
+
borderStyle: "solid",
|
|
1523
|
+
borderColor: "var(--cn-border-2)",
|
|
1524
|
+
backgroundColor: "transparent",
|
|
1525
|
+
color: "var(--cn-text-3)",
|
|
1526
|
+
fontSize: "0.75rem",
|
|
1527
|
+
fontWeight: "500",
|
|
1528
|
+
lineHeight: "1",
|
|
1529
|
+
marginTop: "0.0625rem",
|
|
1530
|
+
"@apply inline-flex items-center justify-center": ""
|
|
1531
|
+
},
|
|
1532
|
+
"&-dual-pane-step-indicator-number": {
|
|
1533
|
+
"@apply leading-none": ""
|
|
1534
|
+
},
|
|
1535
|
+
"&-dual-pane-step-indicator-icon": {
|
|
1536
|
+
width: "0.875rem",
|
|
1537
|
+
height: "0.875rem"
|
|
1538
|
+
},
|
|
1539
|
+
"&-dual-pane-step-title": {
|
|
1540
|
+
font: "var(--cn-body-strong)",
|
|
1541
|
+
fontWeight: "var(--cn-font-weight-default-normal-600)",
|
|
1542
|
+
color: "var(--cn-text-1)"
|
|
1543
|
+
},
|
|
1544
|
+
"&-dual-pane-step-description": {
|
|
1545
|
+
font: "var(--cn-body-normal)",
|
|
1546
|
+
color: "var(--cn-text-4)"
|
|
1547
|
+
},
|
|
1548
|
+
"&-dual-pane-step-active": {
|
|
1549
|
+
backgroundColor: "var(--cn-bg-2)",
|
|
1550
|
+
"& .cn-drawer-dual-pane-step-title": {
|
|
1551
|
+
color: "var(--cn-text-1)"
|
|
1552
|
+
},
|
|
1553
|
+
"& .cn-drawer-dual-pane-step-indicator": {
|
|
1554
|
+
backgroundColor: "var(--cn-text-1)",
|
|
1555
|
+
borderColor: "var(--cn-text-1)",
|
|
1556
|
+
color: "var(--cn-bg-1)"
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
"&-dual-pane-step-completed": {
|
|
1560
|
+
"& .cn-drawer-dual-pane-step-title": {
|
|
1561
|
+
color: "var(--cn-text-1)"
|
|
1562
|
+
},
|
|
1563
|
+
"& .cn-drawer-dual-pane-step-indicator": {
|
|
1564
|
+
backgroundColor: "var(--cn-text-1)",
|
|
1565
|
+
borderColor: "var(--cn-text-1)",
|
|
1566
|
+
color: "var(--cn-bg-1)"
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
"&-dual-pane-step-upcoming": {
|
|
1570
|
+
"& .cn-drawer-dual-pane-step-title": {
|
|
1571
|
+
color: "var(--cn-text-2)"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
"&-dual-pane-substeps-list": {
|
|
1575
|
+
gap: "var(--cn-spacing-1)",
|
|
1576
|
+
listStyle: "none",
|
|
1577
|
+
// Indent substeps so their indicator column sits roughly under the parent title.
|
|
1578
|
+
// Parent indicator (1.25rem) + parent gap (var(--cn-spacing-3)) + parent step left padding (var(--cn-spacing-3)).
|
|
1579
|
+
paddingInlineStart: "calc(1.25rem + var(--cn-spacing-3) + var(--cn-spacing-3))",
|
|
1580
|
+
paddingInlineEnd: "0",
|
|
1581
|
+
paddingBlock: "var(--cn-spacing-1) 0",
|
|
1582
|
+
margin: "0",
|
|
1583
|
+
"@apply flex flex-col": "",
|
|
1584
|
+
'&[data-state="collapsed"]': {
|
|
1585
|
+
display: "none"
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
"&-dual-pane-substep-item": {
|
|
1589
|
+
margin: "0",
|
|
1590
|
+
padding: "0"
|
|
1591
|
+
},
|
|
1592
|
+
"&-dual-pane-substep": {
|
|
1593
|
+
gap: "var(--cn-spacing-3)",
|
|
1594
|
+
padding: "var(--cn-spacing-2) var(--cn-spacing-3)",
|
|
1595
|
+
borderRadius: "var(--cn-rounded-3)",
|
|
1596
|
+
textAlign: "left",
|
|
1597
|
+
width: "100%",
|
|
1598
|
+
backgroundColor: "transparent",
|
|
1599
|
+
border: "none",
|
|
1600
|
+
"@apply flex flex-row items-center": "",
|
|
1601
|
+
"&:where(button)": {
|
|
1602
|
+
"@apply cursor-pointer": ""
|
|
1603
|
+
},
|
|
1604
|
+
"&:hover": {
|
|
1605
|
+
backgroundColor: "var(--cn-state-hover)"
|
|
1606
|
+
},
|
|
1607
|
+
"&:where(button):focus-visible": {
|
|
1608
|
+
outline: "2px solid var(--cn-focus)",
|
|
1609
|
+
outlineOffset: "2px"
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
"&-dual-pane-substep-indicator": {
|
|
1613
|
+
width: "1.25rem",
|
|
1614
|
+
height: "1.25rem",
|
|
1615
|
+
flexShrink: "0",
|
|
1616
|
+
color: "var(--cn-text-2)",
|
|
1617
|
+
"@apply inline-flex items-center justify-center": ""
|
|
1618
|
+
},
|
|
1619
|
+
"&-dual-pane-substep-indicator-icon": {
|
|
1620
|
+
width: "0.875rem",
|
|
1621
|
+
height: "0.875rem"
|
|
1622
|
+
},
|
|
1623
|
+
"&-dual-pane-substep-indicator-dot": {
|
|
1624
|
+
width: "0.375rem",
|
|
1625
|
+
height: "0.375rem",
|
|
1626
|
+
borderRadius: "9999px",
|
|
1627
|
+
backgroundColor: "currentColor"
|
|
1628
|
+
},
|
|
1629
|
+
"&-dual-pane-substep-title": {
|
|
1630
|
+
font: "var(--cn-body-normal)",
|
|
1631
|
+
color: "var(--cn-text-2)",
|
|
1632
|
+
minWidth: "0",
|
|
1633
|
+
"@apply flex-1": ""
|
|
1634
|
+
},
|
|
1635
|
+
"&-dual-pane-substep-active": {
|
|
1636
|
+
backgroundColor: "var(--cn-bg-2)",
|
|
1637
|
+
"& .cn-drawer-dual-pane-substep-indicator": {
|
|
1638
|
+
color: "var(--cn-text-1)"
|
|
1639
|
+
},
|
|
1640
|
+
"& .cn-drawer-dual-pane-substep-title": {
|
|
1641
|
+
color: "var(--cn-text-1)"
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
"&-dual-pane-substep-completed": {
|
|
1645
|
+
"& .cn-drawer-dual-pane-substep-indicator": {
|
|
1646
|
+
color: "var(--cn-text-1)"
|
|
1647
|
+
},
|
|
1648
|
+
"& .cn-drawer-dual-pane-substep-title": {
|
|
1649
|
+
color: "var(--cn-text-1)"
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
"&-dual-pane-substep-upcoming": {
|
|
1653
|
+
"& .cn-drawer-dual-pane-substep-indicator": {
|
|
1654
|
+
color: "var(--cn-text-3)"
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1657
|
+
"&-dual-pane-main": {
|
|
1658
|
+
minWidth: "var(--cn-drawer-dual-pane-main-min-width)",
|
|
1659
|
+
"@apply flex min-h-0 flex-1 flex-col overflow-hidden": ""
|
|
1432
1660
|
}
|
|
1433
1661
|
}
|
|
1434
1662
|
}, oe = [
|
|
@@ -1746,7 +1974,7 @@ const ge = {
|
|
|
1746
1974
|
color: "var(--cn-set-danger-secondary-text)"
|
|
1747
1975
|
}
|
|
1748
1976
|
}
|
|
1749
|
-
},
|
|
1977
|
+
}, ue = {
|
|
1750
1978
|
".cn-link": {
|
|
1751
1979
|
display: "inline-flex",
|
|
1752
1980
|
alignItems: "center",
|
|
@@ -1807,7 +2035,7 @@ const ge = {
|
|
|
1807
2035
|
textDecorationLine: "none !important"
|
|
1808
2036
|
}
|
|
1809
2037
|
}
|
|
1810
|
-
},
|
|
2038
|
+
}, he = {
|
|
1811
2039
|
".cn-message-bubble": {
|
|
1812
2040
|
display: "flex",
|
|
1813
2041
|
flexDirection: "column",
|
|
@@ -2061,7 +2289,7 @@ const fe = {
|
|
|
2061
2289
|
${g} 68.75%,
|
|
2062
2290
|
transparent 68.75%,
|
|
2063
2291
|
transparent)`, $e = (r) => r === "sm" ? "8px 8px" : r === "lg" ? "32px 32px" : "16px 16px";
|
|
2064
|
-
function
|
|
2292
|
+
function Re() {
|
|
2065
2293
|
const r = {};
|
|
2066
2294
|
return Ce.forEach((e) => {
|
|
2067
2295
|
const n = {};
|
|
@@ -2086,7 +2314,7 @@ function Ie() {
|
|
|
2086
2314
|
}, r[`&:where(.cn-progress-${e})`] = n;
|
|
2087
2315
|
}), r;
|
|
2088
2316
|
}
|
|
2089
|
-
const
|
|
2317
|
+
const Ie = {
|
|
2090
2318
|
".cn-progress": {
|
|
2091
2319
|
"&-container": {
|
|
2092
2320
|
position: "relative"
|
|
@@ -2177,7 +2405,7 @@ const Re = {
|
|
|
2177
2405
|
width: "100%",
|
|
2178
2406
|
animation: "cnProgressBar-md 0.8s linear infinite"
|
|
2179
2407
|
},
|
|
2180
|
-
...
|
|
2408
|
+
...Re(),
|
|
2181
2409
|
"@keyframes cnProgressIndeterminateAnimation": {
|
|
2182
2410
|
"0%": {
|
|
2183
2411
|
transform: "translateX(-100%)"
|
|
@@ -2277,7 +2505,7 @@ const Re = {
|
|
|
2277
2505
|
boxShadow: "0 0 3px 0 color-mix(in srgb, var(--cn-gradient-ai-stop-3) 30%, transparent), 0 0 12px 2px color-mix(in srgb, var(--cn-gradient-ai-stop-3) 15%, transparent), 0 0 28px 6px color-mix(in srgb, var(--cn-gradient-ai-stop-3) 8%, transparent)"
|
|
2278
2506
|
}
|
|
2279
2507
|
}
|
|
2280
|
-
},
|
|
2508
|
+
}, We = {
|
|
2281
2509
|
":where(.cn-radio-control)": {
|
|
2282
2510
|
[`@apply ${l}`]: ""
|
|
2283
2511
|
},
|
|
@@ -2362,7 +2590,7 @@ const Re = {
|
|
|
2362
2590
|
"@apply opacity-cn-disabled": ""
|
|
2363
2591
|
}
|
|
2364
2592
|
}
|
|
2365
|
-
},
|
|
2593
|
+
}, Be = {
|
|
2366
2594
|
".cn-reasoning": {
|
|
2367
2595
|
marginBottom: "var(--cn-spacing-4)"
|
|
2368
2596
|
},
|
|
@@ -2572,10 +2800,10 @@ const Pe = {
|
|
|
2572
2800
|
}), Xe = {
|
|
2573
2801
|
".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-hover)" },
|
|
2574
2802
|
".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-hover)" }
|
|
2575
|
-
},
|
|
2803
|
+
}, u = {
|
|
2576
2804
|
".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-selected)" },
|
|
2577
2805
|
".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-selected)" }
|
|
2578
|
-
},
|
|
2806
|
+
}, h = {
|
|
2579
2807
|
"& .cn-sidebar-item-content-icon": { color: "var(--cn-text-1)" }
|
|
2580
2808
|
}, m = {
|
|
2581
2809
|
".cn-sidebar-item-content.cn-sidebar-item-content-w-description": {
|
|
@@ -2752,7 +2980,7 @@ const Pe = {
|
|
|
2752
2980
|
overflow: "hidden",
|
|
2753
2981
|
"@apply duration-150 transition-[max-width,margin-left,padding] ease-linear": "",
|
|
2754
2982
|
// Router-active (e.g. NavLink); label colors — hover is handled on .cn-sidebar-item-wrapper
|
|
2755
|
-
"&-active":
|
|
2983
|
+
"&-active": u,
|
|
2756
2984
|
"&:hover": {
|
|
2757
2985
|
textDecoration: "none !important"
|
|
2758
2986
|
},
|
|
@@ -2803,7 +3031,7 @@ const Pe = {
|
|
|
2803
3031
|
".cn-sidebar-item-content": {
|
|
2804
3032
|
background: "var(--cn-comp-sidebar-item-selected)"
|
|
2805
3033
|
},
|
|
2806
|
-
...
|
|
3034
|
+
...u,
|
|
2807
3035
|
".cn-sidebar-item-action-menu": { opacity: "1" },
|
|
2808
3036
|
".cn-sidebar-item-active-indicator": {
|
|
2809
3037
|
backgroundColor: "var(--cn-set-brand-primary-bg)",
|
|
@@ -2857,7 +3085,7 @@ const Pe = {
|
|
|
2857
3085
|
`,
|
|
2858
3086
|
gridTemplateColumns: "auto 1fr auto"
|
|
2859
3087
|
},
|
|
2860
|
-
...
|
|
3088
|
+
...h
|
|
2861
3089
|
},
|
|
2862
3090
|
"&-w-r-element": {
|
|
2863
3091
|
gridTemplateAreas: '"icon title elem"',
|
|
@@ -2881,7 +3109,7 @@ const Pe = {
|
|
|
2881
3109
|
`,
|
|
2882
3110
|
gridTemplateColumns: "auto 1fr auto auto"
|
|
2883
3111
|
},
|
|
2884
|
-
...
|
|
3112
|
+
...h
|
|
2885
3113
|
},
|
|
2886
3114
|
/** Reserves space for active bar + grip handle so icon/title stay stable when active or dragging */
|
|
2887
3115
|
"&-icon": { gridArea: "icon", marginLeft: "var(--cn-layout-sm)" },
|
|
@@ -3501,6 +3729,33 @@ const qe = {
|
|
|
3501
3729
|
}
|
|
3502
3730
|
}
|
|
3503
3731
|
}
|
|
3732
|
+
}, Ze = {
|
|
3733
|
+
".cn-sticky-list-section": {
|
|
3734
|
+
"@apply relative": "",
|
|
3735
|
+
"&-sentinel": {
|
|
3736
|
+
"@apply absolute top-0 left-0 w-full pointer-events-none": "",
|
|
3737
|
+
height: "1px"
|
|
3738
|
+
},
|
|
3739
|
+
"&-header": {
|
|
3740
|
+
"@apply sticky z-20": "",
|
|
3741
|
+
top: "calc(-1 * var(--cn-drawer-container))",
|
|
3742
|
+
backgroundColor: "var(--cn-bg-1)",
|
|
3743
|
+
marginLeft: "calc(-1 * var(--cn-drawer-container))",
|
|
3744
|
+
marginRight: "calc(-1 * var(--cn-drawer-container))",
|
|
3745
|
+
paddingLeft: "var(--cn-drawer-container)",
|
|
3746
|
+
paddingRight: "var(--cn-drawer-container)",
|
|
3747
|
+
paddingTop: "var(--cn-drawer-container)",
|
|
3748
|
+
transitionProperty: "box-shadow",
|
|
3749
|
+
transitionDuration: "150ms",
|
|
3750
|
+
transitionTimingFunction: "linear",
|
|
3751
|
+
"&-stuck": {
|
|
3752
|
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.08)"
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
"&-content": {
|
|
3756
|
+
"@apply relative": ""
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3504
3759
|
}, z = ".cn-studio-card-header, .cn-studio-card-message, .cn-studio-card-footer, .cn-studio-card-content > .cn-studio-card-expand-button, .cn-studio-card-content > .cn-studio-card-button, .cn-studio-card-tag, .cn-studio-card-status", y = {
|
|
3505
3760
|
[z]: {
|
|
3506
3761
|
opacity: "0.45 !important",
|
|
@@ -3508,7 +3763,7 @@ const qe = {
|
|
|
3508
3763
|
}
|
|
3509
3764
|
}, f = {
|
|
3510
3765
|
boxShadow: "0 4px 6px -1px lch(from var(--cn-shadow-color-3) l c h / 0.05), 0 2px 8px -2px lch(from var(--cn-shadow-color-3) l c h / 0.05)"
|
|
3511
|
-
},
|
|
3766
|
+
}, er = {
|
|
3512
3767
|
".cn-studio-card": {
|
|
3513
3768
|
borderRadius: "var(--cn-rounded-4)",
|
|
3514
3769
|
border: "1px solid var(--cn-border-2)",
|
|
@@ -3873,7 +4128,7 @@ const qe = {
|
|
|
3873
4128
|
}
|
|
3874
4129
|
}
|
|
3875
4130
|
}
|
|
3876
|
-
},
|
|
4131
|
+
}, rr = {
|
|
3877
4132
|
".cn-switch-wrapper": {
|
|
3878
4133
|
display: "flex",
|
|
3879
4134
|
gap: "var(--cn-spacing-2-half)",
|
|
@@ -3962,7 +4217,7 @@ const qe = {
|
|
|
3962
4217
|
},
|
|
3963
4218
|
"@apply truncate": ""
|
|
3964
4219
|
}
|
|
3965
|
-
},
|
|
4220
|
+
}, nr = {
|
|
3966
4221
|
".cn-table-v2": {
|
|
3967
4222
|
"@apply w-full": "",
|
|
3968
4223
|
// Table container
|
|
@@ -4030,6 +4285,9 @@ const qe = {
|
|
|
4030
4285
|
"&>td": {
|
|
4031
4286
|
backgroundColor: "var(--cn-state-hover)"
|
|
4032
4287
|
},
|
|
4288
|
+
"&>td.cn-table-v2-cell-pinned": {
|
|
4289
|
+
background: "linear-gradient(var(--cn-state-hover), var(--cn-state-hover)), var(--cn-bg-1)"
|
|
4290
|
+
},
|
|
4033
4291
|
"& .cn-row-pin:not(.cn-row-pin-on)": {
|
|
4034
4292
|
opacity: "1"
|
|
4035
4293
|
}
|
|
@@ -4136,7 +4394,7 @@ const qe = {
|
|
|
4136
4394
|
".cn-row-pin-on": {
|
|
4137
4395
|
opacity: "1"
|
|
4138
4396
|
}
|
|
4139
|
-
},
|
|
4397
|
+
}, ar = {
|
|
4140
4398
|
".cn-tabs-scroll-container": {
|
|
4141
4399
|
position: "relative",
|
|
4142
4400
|
width: "100%",
|
|
@@ -4361,7 +4619,7 @@ const qe = {
|
|
|
4361
4619
|
"@apply opacity-cn-disabled": ""
|
|
4362
4620
|
}
|
|
4363
4621
|
}
|
|
4364
|
-
},
|
|
4622
|
+
}, or = [
|
|
4365
4623
|
"gray",
|
|
4366
4624
|
"blue",
|
|
4367
4625
|
"brown",
|
|
@@ -4377,7 +4635,7 @@ const qe = {
|
|
|
4377
4635
|
"red",
|
|
4378
4636
|
"violet",
|
|
4379
4637
|
"yellow"
|
|
4380
|
-
],
|
|
4638
|
+
], tr = {
|
|
4381
4639
|
green: "success",
|
|
4382
4640
|
red: "danger",
|
|
4383
4641
|
yellow: "warning"
|
|
@@ -4387,8 +4645,8 @@ const qe = {
|
|
|
4387
4645
|
});
|
|
4388
4646
|
function k(r) {
|
|
4389
4647
|
const e = {};
|
|
4390
|
-
return
|
|
4391
|
-
const o =
|
|
4648
|
+
return or.forEach((n) => {
|
|
4649
|
+
const o = tr[n] ?? n, a = r === "outline", t = {
|
|
4392
4650
|
color: `var(--cn-set-${o}-${a ? "outline-text" : "secondary-text"})`,
|
|
4393
4651
|
backgroundColor: `var(--cn-set-${o}-${a ? "outline-bg" : "secondary-bg"})`,
|
|
4394
4652
|
borderColor: `var(--cn-set-${o}-${a ? "outline-border" : "secondary-bg"})`,
|
|
@@ -4415,7 +4673,7 @@ function k(r) {
|
|
|
4415
4673
|
e[`&:where(.cn-tag-${o})`] = t;
|
|
4416
4674
|
}), e;
|
|
4417
4675
|
}
|
|
4418
|
-
const
|
|
4676
|
+
const cr = {
|
|
4419
4677
|
".cn-tag": {
|
|
4420
4678
|
display: "inline-flex",
|
|
4421
4679
|
alignItems: "center",
|
|
@@ -4470,10 +4728,10 @@ const tr = {
|
|
|
4470
4728
|
"@apply truncate leading-normal align-middle inline-block": ""
|
|
4471
4729
|
}
|
|
4472
4730
|
}
|
|
4473
|
-
},
|
|
4474
|
-
function
|
|
4731
|
+
}, ir = ["danger", "warning"], dr = ["sm"];
|
|
4732
|
+
function lr() {
|
|
4475
4733
|
const r = {};
|
|
4476
|
-
return
|
|
4734
|
+
return ir.forEach((e) => {
|
|
4477
4735
|
r[`&:where(.cn-textarea-${e}):not(:disabled)`] = {
|
|
4478
4736
|
borderColor: `var(--cn-border-${e})`,
|
|
4479
4737
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -4486,13 +4744,13 @@ function dr() {
|
|
|
4486
4744
|
boxShadow: `var(--cn-ring-${e})`
|
|
4487
4745
|
}
|
|
4488
4746
|
};
|
|
4489
|
-
}),
|
|
4747
|
+
}), dr.forEach((e) => {
|
|
4490
4748
|
r[`&.cn-textarea-${e}`] = {
|
|
4491
4749
|
padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`
|
|
4492
4750
|
};
|
|
4493
4751
|
}), r;
|
|
4494
4752
|
}
|
|
4495
|
-
const
|
|
4753
|
+
const sr = {
|
|
4496
4754
|
".cn-textarea": {
|
|
4497
4755
|
borderRadius: "var(--cn-input-radius)",
|
|
4498
4756
|
padding: "var(--cn-input-md-py) var(--cn-input-md-pr) var(--cn-input-md-py) var(--cn-input-md-pl)",
|
|
@@ -4531,7 +4789,7 @@ const lr = {
|
|
|
4531
4789
|
"&-resizable": {
|
|
4532
4790
|
resize: "vertical"
|
|
4533
4791
|
},
|
|
4534
|
-
...
|
|
4792
|
+
...lr(),
|
|
4535
4793
|
"&-label-wrapper": {
|
|
4536
4794
|
display: "flex",
|
|
4537
4795
|
alignItems: "center",
|
|
@@ -4552,7 +4810,7 @@ const lr = {
|
|
|
4552
4810
|
}
|
|
4553
4811
|
}
|
|
4554
4812
|
}
|
|
4555
|
-
},
|
|
4813
|
+
}, pr = {
|
|
4556
4814
|
".cn-time-ago-card": {
|
|
4557
4815
|
"&-trigger": {
|
|
4558
4816
|
"@apply leading-snug whitespace-nowrap truncate max-w-full": "",
|
|
@@ -4574,7 +4832,7 @@ const lr = {
|
|
|
4574
4832
|
"@apply grid grid-cols-[auto_1fr_auto] items-center whitespace-nowrap": ""
|
|
4575
4833
|
}
|
|
4576
4834
|
}
|
|
4577
|
-
},
|
|
4835
|
+
}, br = {
|
|
4578
4836
|
".cn-toast-wrapper": {
|
|
4579
4837
|
right: "var(--cn-toast-offset-right)",
|
|
4580
4838
|
bottom: "var(--cn-toast-offset-bottom)"
|
|
@@ -4650,9 +4908,9 @@ const lr = {
|
|
|
4650
4908
|
}
|
|
4651
4909
|
}
|
|
4652
4910
|
}
|
|
4653
|
-
},
|
|
4911
|
+
}, gr = ["xs", "sm", "md"], vr = () => {
|
|
4654
4912
|
const r = {};
|
|
4655
|
-
return
|
|
4913
|
+
return gr.forEach((e) => {
|
|
4656
4914
|
r[`&.cn-toggle-${e}.cn-toggle-transparent.cn-toggle-text`] = {
|
|
4657
4915
|
paddingLeft: `var(--cn-btn-px-${e})`,
|
|
4658
4916
|
paddingRight: `var(--cn-btn-px-${e})`,
|
|
@@ -4661,10 +4919,10 @@ const lr = {
|
|
|
4661
4919
|
border: "var(--cn-btn-border) solid transparent"
|
|
4662
4920
|
};
|
|
4663
4921
|
}), r;
|
|
4664
|
-
},
|
|
4922
|
+
}, ur = {
|
|
4665
4923
|
".cn-toggle": {
|
|
4666
4924
|
transitionDuration: "100ms",
|
|
4667
|
-
...
|
|
4925
|
+
...vr(),
|
|
4668
4926
|
'&[data-state="on"]': {
|
|
4669
4927
|
color: "var(--cn-text-1)"
|
|
4670
4928
|
}
|
|
@@ -4677,7 +4935,7 @@ const lr = {
|
|
|
4677
4935
|
"@apply flex-col": ""
|
|
4678
4936
|
}
|
|
4679
4937
|
}
|
|
4680
|
-
},
|
|
4938
|
+
}, mr = {
|
|
4681
4939
|
".cn-tooltip": {
|
|
4682
4940
|
minWidth: "var(--cn-tooltip-min)",
|
|
4683
4941
|
maxWidth: "var(--cn-tooltip-max)",
|
|
@@ -4733,7 +4991,7 @@ const lr = {
|
|
|
4733
4991
|
"@apply text-cn-2 font-body-normal": "",
|
|
4734
4992
|
minHeight: "var(--cn-tree-item-height)",
|
|
4735
4993
|
padding: "var(--cn-tree-item-py) var(--cn-tree-item-pr) var(--cn-tree-item-py)"
|
|
4736
|
-
},
|
|
4994
|
+
}, xr = {
|
|
4737
4995
|
".cn-file-tree": {
|
|
4738
4996
|
"&-base-item": {
|
|
4739
4997
|
...C
|
|
@@ -4779,71 +5037,72 @@ const lr = {
|
|
|
4779
5037
|
}
|
|
4780
5038
|
}
|
|
4781
5039
|
}
|
|
4782
|
-
},
|
|
5040
|
+
}, yr = [
|
|
4783
5041
|
T,
|
|
4784
5042
|
L,
|
|
4785
5043
|
X,
|
|
4786
5044
|
K,
|
|
4787
5045
|
ce,
|
|
4788
|
-
|
|
5046
|
+
rr,
|
|
4789
5047
|
ve,
|
|
4790
|
-
|
|
4791
|
-
|
|
5048
|
+
cr,
|
|
5049
|
+
ue,
|
|
4792
5050
|
E,
|
|
4793
5051
|
Z,
|
|
4794
5052
|
ee,
|
|
4795
5053
|
we,
|
|
4796
|
-
|
|
5054
|
+
Ie,
|
|
4797
5055
|
ae,
|
|
4798
5056
|
J,
|
|
4799
|
-
|
|
5057
|
+
ar,
|
|
4800
5058
|
ne,
|
|
4801
5059
|
He,
|
|
4802
5060
|
Le,
|
|
4803
5061
|
Ae,
|
|
4804
5062
|
ke,
|
|
4805
|
-
|
|
4806
|
-
|
|
5063
|
+
mr,
|
|
5064
|
+
br,
|
|
4807
5065
|
Ve,
|
|
4808
5066
|
F,
|
|
4809
5067
|
se,
|
|
4810
|
-
|
|
5068
|
+
pr,
|
|
4811
5069
|
_e,
|
|
4812
|
-
|
|
5070
|
+
ur,
|
|
4813
5071
|
hr,
|
|
4814
5072
|
q,
|
|
4815
5073
|
Te,
|
|
4816
5074
|
qe,
|
|
4817
5075
|
Qe,
|
|
4818
5076
|
Ze,
|
|
4819
|
-
|
|
5077
|
+
er,
|
|
5078
|
+
xr,
|
|
4820
5079
|
me,
|
|
4821
|
-
|
|
4822
|
-
|
|
5080
|
+
he,
|
|
5081
|
+
Be,
|
|
4823
5082
|
Oe,
|
|
4824
5083
|
Je,
|
|
4825
5084
|
// Form styles
|
|
4826
5085
|
Pe,
|
|
4827
5086
|
ie,
|
|
4828
5087
|
re,
|
|
4829
|
-
|
|
4830
|
-
|
|
5088
|
+
We,
|
|
5089
|
+
sr,
|
|
4831
5090
|
ge,
|
|
4832
5091
|
Q,
|
|
4833
5092
|
fe,
|
|
4834
|
-
|
|
4835
|
-
],
|
|
5093
|
+
nr
|
|
5094
|
+
], fr = {
|
|
4836
5095
|
content: [],
|
|
4837
5096
|
plugins: [
|
|
4838
|
-
|
|
4839
|
-
r(
|
|
5097
|
+
R(({ addComponents: r }) => {
|
|
5098
|
+
r(yr);
|
|
4840
5099
|
})
|
|
4841
5100
|
]
|
|
4842
|
-
},
|
|
4843
|
-
presets: [
|
|
5101
|
+
}, Cr = {
|
|
5102
|
+
presets: [fr, I],
|
|
4844
5103
|
content: ["./src/**/*.{ts,tsx}"]
|
|
4845
5104
|
};
|
|
4846
5105
|
export {
|
|
4847
|
-
|
|
5106
|
+
Cr as default
|
|
4848
5107
|
};
|
|
4849
5108
|
//# sourceMappingURL=tailwind.config.js.map
|