@harnessio/ui 0.5.38 → 0.5.39
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.js +1 -1
- package/dist/{index-uDAAzb4G.js → index-DLQPv1ZO.js} +3 -1
- package/dist/{index-uDAAzb4G.js.map → index-DLQPv1ZO.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.config.js +230 -217
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +3 -3
package/dist/tailwind.config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { F as
|
|
3
|
-
const
|
|
1
|
+
import { p as I, t as T } from "./tailwind-design-system-D9j_K4lL.js";
|
|
2
|
+
import { F as z, C as l } from "./form-constants-CdD106iI.js";
|
|
3
|
+
const W = {
|
|
4
4
|
".cn-accordion": {
|
|
5
5
|
display: "flex",
|
|
6
6
|
flexDirection: "column",
|
|
@@ -27,7 +27,7 @@ const T = {
|
|
|
27
27
|
"@apply font-heading-base": ""
|
|
28
28
|
},
|
|
29
29
|
"&.cn-accordion-card": {
|
|
30
|
-
[`@apply ${
|
|
30
|
+
[`@apply ${z}`]: ""
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"&-item": {
|
|
@@ -121,7 +121,7 @@ const T = {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, B = ["info", "danger", "warning", "success"], H = {
|
|
125
125
|
info: {
|
|
126
126
|
backgroundColor: "gray-secondary",
|
|
127
127
|
color: "text-cn-2",
|
|
@@ -143,10 +143,10 @@ const T = {
|
|
|
143
143
|
fadeBgColor: "success"
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
function
|
|
146
|
+
function L() {
|
|
147
147
|
const r = {};
|
|
148
|
-
return
|
|
149
|
-
const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } =
|
|
148
|
+
return B.forEach((e) => {
|
|
149
|
+
const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } = H[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"] = {
|
|
@@ -154,7 +154,7 @@ function H() {
|
|
|
154
154
|
}, r[`&:where(.cn-alert-${e})`] = n;
|
|
155
155
|
}), r;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const A = {
|
|
158
158
|
".cn-alert": {
|
|
159
159
|
gap: "var(--cn-alert-gap)",
|
|
160
160
|
paddingTop: "var(--cn-alert-py)",
|
|
@@ -243,12 +243,12 @@ const L = {
|
|
|
243
243
|
"&-link-wrapper": {
|
|
244
244
|
paddingTop: "var(--cn-spacing-1)"
|
|
245
245
|
},
|
|
246
|
-
...
|
|
246
|
+
...L()
|
|
247
247
|
}
|
|
248
|
-
},
|
|
249
|
-
function
|
|
248
|
+
}, D = ["md", "sm", "lg", "xs"];
|
|
249
|
+
function E() {
|
|
250
250
|
const r = {};
|
|
251
|
-
return
|
|
251
|
+
return D.forEach((e) => {
|
|
252
252
|
e === "xs" ? r[`&:where(.cn-avatar-${e})`] = {
|
|
253
253
|
height: `var(--cn-avatar-size-${e})`,
|
|
254
254
|
width: `var(--cn-avatar-size-${e})`,
|
|
@@ -263,7 +263,7 @@ function D() {
|
|
|
263
263
|
};
|
|
264
264
|
}), r;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const j = {
|
|
267
267
|
".cn-avatar": {
|
|
268
268
|
display: "inline-flex",
|
|
269
269
|
alignItems: "center",
|
|
@@ -274,7 +274,7 @@ const E = {
|
|
|
274
274
|
boxShadow: "var(--cn-comp-shadow-avatar-inner)",
|
|
275
275
|
letterSpacing: "var(--cn-tracking-tight)",
|
|
276
276
|
"@apply shrink-0": "",
|
|
277
|
-
...
|
|
277
|
+
...E(),
|
|
278
278
|
"&:where(.cn-avatar-rounded)": {
|
|
279
279
|
borderRadius: "var(--cn-avatar-radius-rounded)"
|
|
280
280
|
},
|
|
@@ -298,7 +298,7 @@ const E = {
|
|
|
298
298
|
// Avatar xs → Icon xs, Avatar sm → Icon sm, Avatar md → Icon sm, Avatar lg → Icon md
|
|
299
299
|
".cn-avatar-icon": {}
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, P = ["primary", "secondary", "outline", "status", "ghost"], O = ["success", "info", "warning", "danger", "muted", "merged", "risk"], _ = {
|
|
302
302
|
success: "success",
|
|
303
303
|
info: "blue",
|
|
304
304
|
warning: "warning",
|
|
@@ -307,18 +307,18 @@ const E = {
|
|
|
307
307
|
merged: "purple",
|
|
308
308
|
risk: "orange"
|
|
309
309
|
};
|
|
310
|
-
function
|
|
310
|
+
function X() {
|
|
311
311
|
const r = {}, e = {};
|
|
312
|
-
return
|
|
313
|
-
|
|
314
|
-
const a = {}, t =
|
|
312
|
+
return P.forEach((n) => {
|
|
313
|
+
O.forEach((o) => {
|
|
314
|
+
const a = {}, t = _[o];
|
|
315
315
|
n === "ghost" ? (a.color = `var(--cn-set-${t}-outline-text)`, r[`&:where(.cn-badge-${n}.cn-badge-${o})`] = a) : n !== "status" ? (a.backgroundColor = `var(--cn-set-${t}-${n}-bg)`, a.color = `var(--cn-set-${t}-${n}-text)`, a.borderColor = `var(--cn-set-${t}-${n}-border, var(--cn-set-${t}-${n}-bg))`, r[`&:where(.cn-badge-${n}.cn-badge-${o})`] = a) : e[`&.cn-badge-status.cn-badge-${o} > .cn-badge-indicator`] = {
|
|
316
316
|
backgroundColor: `var(--cn-set-${t}-primary-bg)`
|
|
317
317
|
};
|
|
318
318
|
});
|
|
319
319
|
}), { ...r, ...e };
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const F = {
|
|
322
322
|
".cn-badge": {
|
|
323
323
|
paddingBlock: "var(--cn-badge-md-py)",
|
|
324
324
|
paddingInline: "var(--cn-badge-md-px)",
|
|
@@ -371,9 +371,9 @@ const X = {
|
|
|
371
371
|
}
|
|
372
372
|
},
|
|
373
373
|
/** Variants */
|
|
374
|
-
...
|
|
374
|
+
...X()
|
|
375
375
|
}
|
|
376
|
-
},
|
|
376
|
+
}, V = {
|
|
377
377
|
".cn-breadcrumb": {
|
|
378
378
|
"@apply flex flex-wrap items-center break-words select-none": "",
|
|
379
379
|
gap: "var(--cn-spacing-1)"
|
|
@@ -476,23 +476,23 @@ const X = {
|
|
|
476
476
|
color: "var(--cn-text-1)"
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
},
|
|
479
|
+
}, Y = ["primary", "secondary", "outline", "ghost"], G = ["success", "danger", "default"], N = ["3xs", "2xs", "xs", "sm", "md"], u = "0.99", s = "150ms", p = "ease-in-out", M = {
|
|
480
480
|
success: "success",
|
|
481
481
|
danger: "danger",
|
|
482
482
|
default: "gray"
|
|
483
483
|
};
|
|
484
|
-
function
|
|
484
|
+
function U() {
|
|
485
485
|
const r = {}, e = {};
|
|
486
|
-
return
|
|
487
|
-
|
|
488
|
-
const a = {}, t =
|
|
486
|
+
return Y.forEach((n) => {
|
|
487
|
+
G.forEach((o) => {
|
|
488
|
+
const a = {}, t = M[o];
|
|
489
489
|
if (n === "ghost") {
|
|
490
490
|
a.color = `var(--cn-set-${t}-outline-text)`;
|
|
491
|
-
const c = o === "default" ? "var(--cn-state-hover)" : `var(--cn-set-${t}-outline-bg-hover)`,
|
|
491
|
+
const c = o === "default" ? "var(--cn-state-hover)" : `var(--cn-set-${t}-outline-bg-hover)`, R = o === "default" ? "var(--cn-state-hover)" : `var(--cn-set-${t}-outline-bg-selected)`;
|
|
492
492
|
a["&:hover:not(:disabled, .cn-button-disabled)"] = {
|
|
493
493
|
backgroundColor: c
|
|
494
494
|
}, a["&:active:not(:disabled, .cn-button-disabled), &:where(.cn-button-active), &:where([data-state=open])"] = {
|
|
495
|
-
backgroundColor:
|
|
495
|
+
backgroundColor: R
|
|
496
496
|
};
|
|
497
497
|
} else {
|
|
498
498
|
const c = n === "primary" && o === "default" ? "brand" : t;
|
|
@@ -521,9 +521,9 @@ function M() {
|
|
|
521
521
|
});
|
|
522
522
|
}), { ...r, ...e };
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function K() {
|
|
525
525
|
const r = {};
|
|
526
|
-
return
|
|
526
|
+
return N.forEach((e) => {
|
|
527
527
|
r[`&:where(.cn-button-${e})`] = {
|
|
528
528
|
height: `var(--cn-btn-size-${e})`,
|
|
529
529
|
paddingBlock: `var(--cn-btn-py-${e})`,
|
|
@@ -532,7 +532,7 @@ function U() {
|
|
|
532
532
|
};
|
|
533
533
|
}), r;
|
|
534
534
|
}
|
|
535
|
-
const
|
|
535
|
+
const q = {
|
|
536
536
|
".cn-button": {
|
|
537
537
|
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke, transform, box-shadow, opacity",
|
|
538
538
|
transitionDuration: s,
|
|
@@ -548,7 +548,7 @@ const K = {
|
|
|
548
548
|
border: "var(--cn-btn-border) solid var(--cn-set-gray-outline-border)",
|
|
549
549
|
"@apply font-body-single-line-normal select-none overflow-hidden inline-flex items-center justify-center whitespace-nowrap": "",
|
|
550
550
|
"&:active:not(:disabled, .cn-button-disabled, .cn-button-split-dropdown)": {
|
|
551
|
-
transform: `scale(${
|
|
551
|
+
transform: `scale(${u})`
|
|
552
552
|
},
|
|
553
553
|
"&:where(.cn-button-split-dropdown)": {
|
|
554
554
|
height: "var(--cn-btn-size-md)",
|
|
@@ -564,7 +564,7 @@ const K = {
|
|
|
564
564
|
}
|
|
565
565
|
},
|
|
566
566
|
// sizes
|
|
567
|
-
...
|
|
567
|
+
...K(),
|
|
568
568
|
"&:where(.cn-button-xs, .cn-button-3xs, .cn-button-2xs)": {
|
|
569
569
|
"@apply font-caption-single-line-normal": ""
|
|
570
570
|
},
|
|
@@ -610,7 +610,7 @@ const K = {
|
|
|
610
610
|
}
|
|
611
611
|
},
|
|
612
612
|
// variant styles
|
|
613
|
-
...
|
|
613
|
+
...U(),
|
|
614
614
|
// Rounded
|
|
615
615
|
"&:where(.cn-button-rounded)": {
|
|
616
616
|
borderRadius: "var(--cn-btn-rounded-radius)"
|
|
@@ -724,10 +724,10 @@ const K = {
|
|
|
724
724
|
transform: "none !important"
|
|
725
725
|
},
|
|
726
726
|
"&:has(> .cn-button:active)": {
|
|
727
|
-
transform: `scale(${
|
|
727
|
+
transform: `scale(${u})`
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, J = {
|
|
731
731
|
".cn-button-group": {
|
|
732
732
|
"@apply flex": "",
|
|
733
733
|
"&-horizontal": {
|
|
@@ -768,7 +768,7 @@ const K = {
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
},
|
|
771
|
+
}, Q = {
|
|
772
772
|
".cn-button-layout": {
|
|
773
773
|
gap: "var(--cn-layout-sm)",
|
|
774
774
|
"@apply flex": "",
|
|
@@ -808,7 +808,7 @@ const K = {
|
|
|
808
808
|
"@apply flex": ""
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
},
|
|
811
|
+
}, Z = {
|
|
812
812
|
".cn-caption": {
|
|
813
813
|
gap: "var(--cn-spacing-1)",
|
|
814
814
|
"@apply w-full inline-flex items-start": ""
|
|
@@ -816,7 +816,7 @@ const K = {
|
|
|
816
816
|
":where([disabled]) + .cn-caption": {
|
|
817
817
|
"@apply opacity-cn-disabled": ""
|
|
818
818
|
}
|
|
819
|
-
},
|
|
819
|
+
}, ee = {
|
|
820
820
|
".cn-card": {
|
|
821
821
|
border: "var(--cn-card-border) solid var(--cn-border-2)",
|
|
822
822
|
borderRadius: "var(--cn-card-md-radius)",
|
|
@@ -901,7 +901,7 @@ const K = {
|
|
|
901
901
|
"@apply outline-offset-cn-tight": ""
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
},
|
|
904
|
+
}, re = {
|
|
905
905
|
".cn-card-select-root": {
|
|
906
906
|
display: "grid",
|
|
907
907
|
"&:where(.cn-card-select-horizontal)": {
|
|
@@ -977,7 +977,7 @@ const K = {
|
|
|
977
977
|
".cn-card-select-hidden-input": {
|
|
978
978
|
"@apply sr-only": ""
|
|
979
979
|
}
|
|
980
|
-
},
|
|
980
|
+
}, ne = {
|
|
981
981
|
".cn-checkbox-wrapper": {
|
|
982
982
|
display: "flex",
|
|
983
983
|
gap: "var(--cn-spacing-2-half)",
|
|
@@ -1106,7 +1106,7 @@ const K = {
|
|
|
1106
1106
|
},
|
|
1107
1107
|
"@apply truncate": ""
|
|
1108
1108
|
}
|
|
1109
|
-
},
|
|
1109
|
+
}, ae = {
|
|
1110
1110
|
".cn-modal-dialog-overlay": {
|
|
1111
1111
|
backgroundColor: "var(--cn-comp-dialog-backdrop)",
|
|
1112
1112
|
padding: "var(--cn-dialog-safezone)",
|
|
@@ -1275,7 +1275,7 @@ const K = {
|
|
|
1275
1275
|
opacity: "0"
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
},
|
|
1278
|
+
}, oe = {
|
|
1279
1279
|
".cn-drawer": {
|
|
1280
1280
|
"&-content": {
|
|
1281
1281
|
userSelect: "auto !important",
|
|
@@ -1680,7 +1680,7 @@ const K = {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
},
|
|
1683
|
+
}, te = [
|
|
1684
1684
|
"gray",
|
|
1685
1685
|
"green",
|
|
1686
1686
|
"red",
|
|
@@ -1695,14 +1695,14 @@ const K = {
|
|
|
1695
1695
|
"orange",
|
|
1696
1696
|
"pink",
|
|
1697
1697
|
"violet"
|
|
1698
|
-
],
|
|
1698
|
+
], ce = () => {
|
|
1699
1699
|
const r = {};
|
|
1700
|
-
return
|
|
1700
|
+
return te.forEach((e) => {
|
|
1701
1701
|
r[`&.cn-dropdown-menu-item-indicator-${e}`] = {
|
|
1702
1702
|
backgroundColor: `var(--cn-set-${e}-solid-bg)`
|
|
1703
1703
|
};
|
|
1704
1704
|
}), r;
|
|
1705
|
-
},
|
|
1705
|
+
}, ie = {
|
|
1706
1706
|
".cn-dropdown-menu": {
|
|
1707
1707
|
zIndex: "50",
|
|
1708
1708
|
minWidth: "var(--cn-dropdown-min-width)",
|
|
@@ -1780,7 +1780,7 @@ const K = {
|
|
|
1780
1780
|
height: "var(--cn-badge-indicator-size-sm)",
|
|
1781
1781
|
borderRadius: "var(--cn-rounded-full)",
|
|
1782
1782
|
flexShrink: "0",
|
|
1783
|
-
...
|
|
1783
|
+
...ce()
|
|
1784
1784
|
}
|
|
1785
1785
|
},
|
|
1786
1786
|
"&-group-label": {
|
|
@@ -1808,9 +1808,9 @@ const K = {
|
|
|
1808
1808
|
padding: "calc(var(--cn-dropdown-item-py) + var(--cn-spacing-4)) var(--cn-dropdown-item-px)"
|
|
1809
1809
|
}
|
|
1810
1810
|
}
|
|
1811
|
-
},
|
|
1811
|
+
}, de = {
|
|
1812
1812
|
".cn-form": {
|
|
1813
|
-
[`@apply flex flex-col ${
|
|
1813
|
+
[`@apply flex flex-col ${z}`]: ""
|
|
1814
1814
|
},
|
|
1815
1815
|
":where(.cn-control-group)": {
|
|
1816
1816
|
[`@apply relative flex flex-col ${l}`]: "",
|
|
@@ -1832,15 +1832,15 @@ const K = {
|
|
|
1832
1832
|
":where(.cn-control-group-input)": {
|
|
1833
1833
|
[`@apply relative flex flex-col ${l}`]: ""
|
|
1834
1834
|
}
|
|
1835
|
-
},
|
|
1835
|
+
}, le = ["2xs", "xs", "sm", "md", "lg", "xl"], se = ["xs", "sm", "md", "lg"];
|
|
1836
1836
|
function b(r) {
|
|
1837
|
-
const e = r === "icon" ?
|
|
1837
|
+
const e = r === "icon" ? le : se, n = r === "symbol" ? "logo" : r, o = {};
|
|
1838
1838
|
return e.forEach((a) => {
|
|
1839
1839
|
const t = {};
|
|
1840
1840
|
t.width = `var(--cn-${n}-size-${a})`, t["min-width"] = `var(--cn-${n}-size-${a})`, t.height = `var(--cn-${n}-size-${a})`, t["min-height"] = `var(--cn-${n}-size-${a})`, r === "icon" && (t["stroke-width"] = `var(--cn-icon-stroke-width-${a})`), o[`&:where(.cn-${r}-${a})`] = t;
|
|
1841
1841
|
}), o;
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const pe = {
|
|
1844
1844
|
".cn-icon": {
|
|
1845
1845
|
...b("icon")
|
|
1846
1846
|
},
|
|
@@ -1850,10 +1850,10 @@ const se = {
|
|
|
1850
1850
|
".cn-symbol": {
|
|
1851
1851
|
...b("symbol")
|
|
1852
1852
|
}
|
|
1853
|
-
},
|
|
1854
|
-
function
|
|
1853
|
+
}, be = ["danger", "warning", "success"];
|
|
1854
|
+
function ge() {
|
|
1855
1855
|
const r = {};
|
|
1856
|
-
return
|
|
1856
|
+
return be.forEach((e) => {
|
|
1857
1857
|
r[`&:where(.cn-input-${e}):not(:has(input[disabled]))`] = {
|
|
1858
1858
|
borderColor: `var(--cn-border-${e})`,
|
|
1859
1859
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -1868,7 +1868,7 @@ function be() {
|
|
|
1868
1868
|
};
|
|
1869
1869
|
}), r;
|
|
1870
1870
|
}
|
|
1871
|
-
const
|
|
1871
|
+
const ve = {
|
|
1872
1872
|
".cn-input": {
|
|
1873
1873
|
"&-input": {
|
|
1874
1874
|
height: "100%",
|
|
@@ -1956,7 +1956,7 @@ const ge = {
|
|
|
1956
1956
|
"@apply h-full border-0 border-l rounded-l-cn-none": "",
|
|
1957
1957
|
borderColor: "inherit"
|
|
1958
1958
|
},
|
|
1959
|
-
...
|
|
1959
|
+
...ge()
|
|
1960
1960
|
},
|
|
1961
1961
|
"&-search": {
|
|
1962
1962
|
"&:where(.cn-input-input)": {
|
|
@@ -1967,7 +1967,7 @@ const ge = {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
},
|
|
1970
|
+
}, ue = {
|
|
1971
1971
|
".cn-label": {
|
|
1972
1972
|
"@apply font-body-normal": "",
|
|
1973
1973
|
display: "grid",
|
|
@@ -1995,7 +1995,7 @@ const ge = {
|
|
|
1995
1995
|
color: "var(--cn-set-danger-secondary-text)"
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
|
-
},
|
|
1998
|
+
}, he = {
|
|
1999
1999
|
".cn-link": {
|
|
2000
2000
|
display: "inline-flex",
|
|
2001
2001
|
alignItems: "center",
|
|
@@ -2056,7 +2056,7 @@ const ge = {
|
|
|
2056
2056
|
textDecorationLine: "none !important"
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
|
-
},
|
|
2059
|
+
}, me = {
|
|
2060
2060
|
".cn-message-bubble": {
|
|
2061
2061
|
display: "flex",
|
|
2062
2062
|
flexDirection: "column",
|
|
@@ -2082,7 +2082,7 @@ const ge = {
|
|
|
2082
2082
|
gap: "var(--cn-spacing-1)"
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
|
-
},
|
|
2085
|
+
}, xe = {
|
|
2086
2086
|
".cn-meter": {
|
|
2087
2087
|
"@apply flex h-[19px] items-stretch gap-cn-3xs": "",
|
|
2088
2088
|
"&:has(.cn-meter-tooltip-bar:hover) .cn-meter-bar:not(:hover)": {
|
|
@@ -2096,10 +2096,10 @@ const ge = {
|
|
|
2096
2096
|
transition: "all 0.15s"
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
},
|
|
2100
|
-
function
|
|
2099
|
+
}, ye = ["danger", "warning"];
|
|
2100
|
+
function fe() {
|
|
2101
2101
|
const r = {};
|
|
2102
|
-
return
|
|
2102
|
+
return ye.forEach((e) => {
|
|
2103
2103
|
r[`&:where(.cn-multi-select-${e}):not(:has(input[disabled]))`] = {
|
|
2104
2104
|
borderColor: `var(--cn-border-${e})`,
|
|
2105
2105
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -2114,7 +2114,7 @@ function ye() {
|
|
|
2114
2114
|
};
|
|
2115
2115
|
}), r;
|
|
2116
2116
|
}
|
|
2117
|
-
const
|
|
2117
|
+
const we = {
|
|
2118
2118
|
".cn-multi-select": {
|
|
2119
2119
|
"&-outer-container": {
|
|
2120
2120
|
"@apply flex flex-col gap-cn-xs": ""
|
|
@@ -2134,7 +2134,7 @@ const fe = {
|
|
|
2134
2134
|
"&:where(:hover):not(:has(input[disabled]))": {
|
|
2135
2135
|
borderColor: "var(--cn-border-brand)"
|
|
2136
2136
|
},
|
|
2137
|
-
...
|
|
2137
|
+
...fe()
|
|
2138
2138
|
},
|
|
2139
2139
|
"&-tag-wrapper": {
|
|
2140
2140
|
"@apply relative flex flex-wrap items-center gap-cn-xs": ""
|
|
@@ -2161,7 +2161,7 @@ const fe = {
|
|
|
2161
2161
|
"@apply border rounded-cn-3 shadow-cn-3 mt-cn-3xs overflow-hidden animate-in absolute top-cn-3xs z-[55] w-full outline-none": ""
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
|
-
},
|
|
2164
|
+
}, ke = {
|
|
2165
2165
|
".cn-pagination": {
|
|
2166
2166
|
"&-root": {
|
|
2167
2167
|
containerType: "inline-size",
|
|
@@ -2201,7 +2201,7 @@ const fe = {
|
|
|
2201
2201
|
paddingInline: "var(--cn-pagination-btn-px)"
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
|
-
},
|
|
2204
|
+
}, Ce = {
|
|
2205
2205
|
".cn-popover": {
|
|
2206
2206
|
"&-content": {
|
|
2207
2207
|
display: "grid",
|
|
@@ -2285,7 +2285,7 @@ const fe = {
|
|
|
2285
2285
|
}
|
|
2286
2286
|
}
|
|
2287
2287
|
}
|
|
2288
|
-
},
|
|
2288
|
+
}, Se = ["sm", "md", "lg"], ze = ["processing", "completed", "paused", "failed"], i = {
|
|
2289
2289
|
processing: {
|
|
2290
2290
|
progressBg: "progress",
|
|
2291
2291
|
color: "text-cn-3"
|
|
@@ -2302,25 +2302,25 @@ const fe = {
|
|
|
2302
2302
|
progressBg: "danger",
|
|
2303
2303
|
color: "text-danger"
|
|
2304
2304
|
}
|
|
2305
|
-
}, g = "var(--cn-comp-slider-track-progress-stripes)",
|
|
2305
|
+
}, g = "var(--cn-comp-slider-track-progress-stripes)", $e = `linear-gradient(45deg,
|
|
2306
2306
|
${g} 18.75%,
|
|
2307
2307
|
transparent 18.75%,
|
|
2308
2308
|
transparent 50%,
|
|
2309
2309
|
${g} 50%,
|
|
2310
2310
|
${g} 68.75%,
|
|
2311
2311
|
transparent 68.75%,
|
|
2312
|
-
transparent)`,
|
|
2313
|
-
function
|
|
2312
|
+
transparent)`, Re = (r) => r === "sm" ? "8px 8px" : r === "lg" ? "32px 32px" : "16px 16px";
|
|
2313
|
+
function Ie() {
|
|
2314
2314
|
const r = {};
|
|
2315
|
-
return
|
|
2315
|
+
return Se.forEach((e) => {
|
|
2316
2316
|
const n = {};
|
|
2317
2317
|
n[" .cn-progress-root"] = {
|
|
2318
2318
|
height: `var(--cn-progress-size-${e})`
|
|
2319
2319
|
}, n[" .cn-progress-processing-fake"] = {
|
|
2320
|
-
"background-size":
|
|
2320
|
+
"background-size": Re(e),
|
|
2321
2321
|
"animation-name": `cnProgressBar-${e}`
|
|
2322
2322
|
}, r[`&:where(.cn-progress-${e})`] = n;
|
|
2323
|
-
}),
|
|
2323
|
+
}), ze.forEach((e) => {
|
|
2324
2324
|
const n = {};
|
|
2325
2325
|
n[" .cn-progress-root::-webkit-progress-value"] = {
|
|
2326
2326
|
"background-color": `var(--cn-comp-slider-track-${i[e].progressBg})`
|
|
@@ -2335,7 +2335,7 @@ function Re() {
|
|
|
2335
2335
|
}, r[`&:where(.cn-progress-${e})`] = n;
|
|
2336
2336
|
}), r;
|
|
2337
2337
|
}
|
|
2338
|
-
const
|
|
2338
|
+
const Te = {
|
|
2339
2339
|
".cn-progress": {
|
|
2340
2340
|
"&-container": {
|
|
2341
2341
|
position: "relative"
|
|
@@ -2420,13 +2420,13 @@ const Ie = {
|
|
|
2420
2420
|
},
|
|
2421
2421
|
"&-processing-fake": {
|
|
2422
2422
|
"background-color": "var(--cn-comp-slider-track-progress)",
|
|
2423
|
-
"background-image":
|
|
2423
|
+
"background-image": $e,
|
|
2424
2424
|
"background-size": "16px 16px",
|
|
2425
2425
|
height: "100%",
|
|
2426
2426
|
width: "100%",
|
|
2427
2427
|
animation: "cnProgressBar-md 0.8s linear infinite"
|
|
2428
2428
|
},
|
|
2429
|
-
...
|
|
2429
|
+
...Ie(),
|
|
2430
2430
|
"@keyframes cnProgressIndeterminateAnimation": {
|
|
2431
2431
|
"0%": {
|
|
2432
2432
|
transform: "translateX(-100%)"
|
|
@@ -2460,7 +2460,7 @@ const Ie = {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
|
-
},
|
|
2463
|
+
}, We = {
|
|
2464
2464
|
"@property --cn-angle": {
|
|
2465
2465
|
syntax: '"<angle>"',
|
|
2466
2466
|
inherits: "true",
|
|
@@ -2526,7 +2526,7 @@ const Ie = {
|
|
|
2526
2526
|
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)"
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
},
|
|
2529
|
+
}, Be = {
|
|
2530
2530
|
":where(.cn-radio-control)": {
|
|
2531
2531
|
[`@apply ${l}`]: ""
|
|
2532
2532
|
},
|
|
@@ -2611,7 +2611,7 @@ const Ie = {
|
|
|
2611
2611
|
"@apply opacity-cn-disabled": ""
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
|
-
},
|
|
2614
|
+
}, He = {
|
|
2615
2615
|
".cn-reasoning": {
|
|
2616
2616
|
marginBottom: "var(--cn-spacing-4)"
|
|
2617
2617
|
},
|
|
@@ -2664,7 +2664,7 @@ const Ie = {
|
|
|
2664
2664
|
opacity: "0"
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
},
|
|
2667
|
+
}, Le = {
|
|
2668
2668
|
".cn-repo": {
|
|
2669
2669
|
"&-header": {
|
|
2670
2670
|
paddingTop: "var(--cn-page-container-spacing-py)",
|
|
@@ -2679,7 +2679,7 @@ const Ie = {
|
|
|
2679
2679
|
}
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
2682
|
-
},
|
|
2682
|
+
}, Ae = {
|
|
2683
2683
|
".cn-sandbox-layout": {
|
|
2684
2684
|
"&-content": {
|
|
2685
2685
|
paddingTop: "var(--cn-page-container-spacing-py)",
|
|
@@ -2695,7 +2695,7 @@ const Ie = {
|
|
|
2695
2695
|
paddingRight: "var(--cn-page-container-spacing-px)"
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
2698
|
-
},
|
|
2698
|
+
}, De = {
|
|
2699
2699
|
".cn-scroll-area": {
|
|
2700
2700
|
"@apply overflow-auto grid min-w-full": "",
|
|
2701
2701
|
"&-content": {
|
|
@@ -2717,10 +2717,10 @@ const Ie = {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
|
-
},
|
|
2721
|
-
function
|
|
2720
|
+
}, Ee = ["danger", "warning"], je = ["sm"];
|
|
2721
|
+
function Pe() {
|
|
2722
2722
|
const r = {};
|
|
2723
|
-
return
|
|
2723
|
+
return Ee.forEach((e) => {
|
|
2724
2724
|
r[`&:where(.cn-select-${e}):not(:disabled)`] = {
|
|
2725
2725
|
borderColor: `var(--cn-border-${e})`,
|
|
2726
2726
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -2729,7 +2729,7 @@ function je() {
|
|
|
2729
2729
|
boxShadow: `var(--cn-ring-${e}-hover)`
|
|
2730
2730
|
}
|
|
2731
2731
|
};
|
|
2732
|
-
}),
|
|
2732
|
+
}), je.forEach((e) => {
|
|
2733
2733
|
r[`&.cn-select-${e}`] = {
|
|
2734
2734
|
height: `var(--cn-input-size-${e})`
|
|
2735
2735
|
}, r[`&.cn-select-${e} .cn-select-trigger`] = {
|
|
@@ -2737,7 +2737,7 @@ function je() {
|
|
|
2737
2737
|
};
|
|
2738
2738
|
}), r;
|
|
2739
2739
|
}
|
|
2740
|
-
const
|
|
2740
|
+
const Oe = {
|
|
2741
2741
|
".cn-select": {
|
|
2742
2742
|
display: "flex",
|
|
2743
2743
|
alignItems: "center",
|
|
@@ -2788,9 +2788,9 @@ const Pe = {
|
|
|
2788
2788
|
aspectRatio: "1",
|
|
2789
2789
|
height: "100%"
|
|
2790
2790
|
},
|
|
2791
|
-
...
|
|
2791
|
+
...Pe()
|
|
2792
2792
|
}
|
|
2793
|
-
},
|
|
2793
|
+
}, _e = {
|
|
2794
2794
|
".cn-shimmer": {
|
|
2795
2795
|
position: "relative",
|
|
2796
2796
|
display: "inline-block",
|
|
@@ -2801,7 +2801,7 @@ const Pe = {
|
|
|
2801
2801
|
backgroundImage: "var(--shimmer-highlight), linear-gradient(var(--shimmer-color), var(--shimmer-color))",
|
|
2802
2802
|
backgroundRepeat: "no-repeat, padding-box"
|
|
2803
2803
|
}
|
|
2804
|
-
},
|
|
2804
|
+
}, Xe = {
|
|
2805
2805
|
".cn-shortcut": {
|
|
2806
2806
|
"&, &.cn-input-suffix": {
|
|
2807
2807
|
display: "inline-flex",
|
|
@@ -2818,15 +2818,15 @@ const Pe = {
|
|
|
2818
2818
|
}, d = (r) => ({
|
|
2819
2819
|
color: r,
|
|
2820
2820
|
"& svg, & path": { color: r, stroke: r, fill: "none" }
|
|
2821
|
-
}),
|
|
2821
|
+
}), Fe = {
|
|
2822
2822
|
".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-hover)" },
|
|
2823
2823
|
".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-hover)" }
|
|
2824
|
-
},
|
|
2824
|
+
}, h = {
|
|
2825
2825
|
".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-selected)" },
|
|
2826
2826
|
".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-selected)" }
|
|
2827
|
-
}, h = {
|
|
2828
|
-
"& .cn-sidebar-item-content-icon": { color: "var(--cn-text-1)" }
|
|
2829
2827
|
}, m = {
|
|
2828
|
+
"& .cn-sidebar-item-content-icon": { color: "var(--cn-text-1)" }
|
|
2829
|
+
}, x = {
|
|
2830
2830
|
".cn-sidebar-item-content.cn-sidebar-item-content-w-description": {
|
|
2831
2831
|
".cn-sidebar-item-content-icon": {
|
|
2832
2832
|
alignSelf: "stretch",
|
|
@@ -2834,7 +2834,7 @@ const Pe = {
|
|
|
2834
2834
|
alignItems: "center"
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
|
-
},
|
|
2837
|
+
}, Ve = {
|
|
2838
2838
|
"& .cn-input-prefix": {
|
|
2839
2839
|
"@apply ml-0": ""
|
|
2840
2840
|
},
|
|
@@ -2870,7 +2870,7 @@ const Pe = {
|
|
|
2870
2870
|
opacity: "0"
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
|
-
},
|
|
2873
|
+
}, Ye = {
|
|
2874
2874
|
".cn-sidebar": {
|
|
2875
2875
|
"&.cn-sidebar": {
|
|
2876
2876
|
display: "flex",
|
|
@@ -3001,7 +3001,7 @@ const Pe = {
|
|
|
3001
3001
|
overflow: "hidden",
|
|
3002
3002
|
"@apply duration-150 transition-[max-width,margin-left,padding] ease-linear": "",
|
|
3003
3003
|
// Router-active (e.g. NavLink); label colors — hover is handled on .cn-sidebar-item-wrapper
|
|
3004
|
-
"&-active":
|
|
3004
|
+
"&-active": h,
|
|
3005
3005
|
"&:hover": {
|
|
3006
3006
|
textDecoration: "none !important"
|
|
3007
3007
|
},
|
|
@@ -3042,7 +3042,7 @@ const Pe = {
|
|
|
3042
3042
|
"&[data-active=false] .cn-sidebar-item-content": {
|
|
3043
3043
|
backgroundColor: "var(--cn-state-hover)"
|
|
3044
3044
|
},
|
|
3045
|
-
...
|
|
3045
|
+
...Fe,
|
|
3046
3046
|
".cn-sidebar-item-action-menu": { opacity: "1" },
|
|
3047
3047
|
".cn-sidebar-item-content-action-buttons": { display: "flex !important" },
|
|
3048
3048
|
".cn-sidebar-item-grip-handle": { opacity: "1" },
|
|
@@ -3052,7 +3052,7 @@ const Pe = {
|
|
|
3052
3052
|
".cn-sidebar-item-content": {
|
|
3053
3053
|
background: "var(--cn-comp-sidebar-item-selected)"
|
|
3054
3054
|
},
|
|
3055
|
-
...
|
|
3055
|
+
...h,
|
|
3056
3056
|
".cn-sidebar-item-action-menu": { opacity: "1" },
|
|
3057
3057
|
".cn-sidebar-item-active-indicator": {
|
|
3058
3058
|
backgroundColor: "var(--cn-set-brand-primary-bg)",
|
|
@@ -3106,7 +3106,7 @@ const Pe = {
|
|
|
3106
3106
|
`,
|
|
3107
3107
|
gridTemplateColumns: "auto 1fr auto"
|
|
3108
3108
|
},
|
|
3109
|
-
...
|
|
3109
|
+
...m
|
|
3110
3110
|
},
|
|
3111
3111
|
"&-w-r-element": {
|
|
3112
3112
|
gridTemplateAreas: '"icon title elem"',
|
|
@@ -3130,7 +3130,7 @@ const Pe = {
|
|
|
3130
3130
|
`,
|
|
3131
3131
|
gridTemplateColumns: "auto 1fr auto auto"
|
|
3132
3132
|
},
|
|
3133
|
-
...
|
|
3133
|
+
...m
|
|
3134
3134
|
},
|
|
3135
3135
|
/** Reserves space for active bar + grip handle so icon/title stay stable when active or dragging */
|
|
3136
3136
|
"&-icon": { gridArea: "icon", marginLeft: "var(--cn-layout-sm)" },
|
|
@@ -3262,7 +3262,7 @@ const Pe = {
|
|
|
3262
3262
|
}
|
|
3263
3263
|
}
|
|
3264
3264
|
},
|
|
3265
|
-
"&[data-state=collapsed]":
|
|
3265
|
+
"&[data-state=collapsed]": Ve
|
|
3266
3266
|
},
|
|
3267
3267
|
".cn-sidebar-popover-measurement": {
|
|
3268
3268
|
position: "fixed",
|
|
@@ -3284,11 +3284,11 @@ const Pe = {
|
|
|
3284
3284
|
width: "var(--cn-size-64)",
|
|
3285
3285
|
height: "100vh",
|
|
3286
3286
|
borderRadius: "0 var(--cn-popover-radius) var(--cn-popover-radius) 0",
|
|
3287
|
-
...
|
|
3287
|
+
...x
|
|
3288
3288
|
},
|
|
3289
3289
|
".cn-popover-content.cn-sidebar-popover": {
|
|
3290
3290
|
backgroundColor: "var(--cn-bg-2)",
|
|
3291
|
-
...
|
|
3291
|
+
...x,
|
|
3292
3292
|
".cn-sidebar-group-header": {
|
|
3293
3293
|
padding: "var(--cn-layout-2xs)"
|
|
3294
3294
|
},
|
|
@@ -3308,33 +3308,33 @@ const Pe = {
|
|
|
3308
3308
|
backgroundColor: "var(--cn-comp-sidebar-separator)"
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
},
|
|
3312
|
-
function
|
|
3311
|
+
}, Ge = ["sm", "md", "lg", "xs"], Ne = ["2xs", "xs", "sm", "md", "lg", "xl"], Me = ["xs", "sm", "md", "lg"], Ue = ["sm"];
|
|
3312
|
+
function Ke() {
|
|
3313
3313
|
const r = {};
|
|
3314
|
-
return
|
|
3314
|
+
return Ge.forEach((e) => {
|
|
3315
3315
|
r[`&:where(.cn-skeleton-avatar-${e})`] = {
|
|
3316
3316
|
width: `var(--cn-avatar-size-${e})`,
|
|
3317
3317
|
height: `var(--cn-avatar-size-${e})`
|
|
3318
3318
|
};
|
|
3319
3319
|
}), r;
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
3322
|
-
const e = r === "icon" ?
|
|
3321
|
+
function y(r) {
|
|
3322
|
+
const e = r === "icon" ? Ne : Me, n = {};
|
|
3323
3323
|
return e.forEach((o) => {
|
|
3324
3324
|
const a = {};
|
|
3325
3325
|
a.width = `var(--cn-${r}-size-${o})`, a["min-width"] = `var(--cn-${r}-size-${o})`, a.height = `var(--cn-${r}-size-${o})`, a["min-height"] = `var(--cn-${r}-size-${o})`, n[`&:where(.cn-skeleton-${r}-${o})`] = a;
|
|
3326
3326
|
}), n;
|
|
3327
3327
|
}
|
|
3328
|
-
function
|
|
3328
|
+
function qe() {
|
|
3329
3329
|
const r = {};
|
|
3330
|
-
return
|
|
3330
|
+
return Ue.forEach((e) => {
|
|
3331
3331
|
r[`&.cn-skeleton-form-item-${e}`] = {
|
|
3332
3332
|
padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`,
|
|
3333
3333
|
height: `var(--cn-input-size-${e})`
|
|
3334
3334
|
};
|
|
3335
3335
|
}), r;
|
|
3336
3336
|
}
|
|
3337
|
-
const
|
|
3337
|
+
const Je = {
|
|
3338
3338
|
".cn-skeleton": {
|
|
3339
3339
|
"&-base": {
|
|
3340
3340
|
backgroundImage: "var(--cn-comp-skeleton-bg)",
|
|
@@ -3349,13 +3349,13 @@ const qe = {
|
|
|
3349
3349
|
"&:where(.cn-skeleton-avatar-rounded)": {
|
|
3350
3350
|
borderRadius: "var(--cn-avatar-radius-rounded)"
|
|
3351
3351
|
},
|
|
3352
|
-
...
|
|
3352
|
+
...Ke()
|
|
3353
3353
|
},
|
|
3354
3354
|
"&-icon": {
|
|
3355
|
-
...
|
|
3355
|
+
...y("icon")
|
|
3356
3356
|
},
|
|
3357
3357
|
"&-logo": {
|
|
3358
|
-
...
|
|
3358
|
+
...y("logo")
|
|
3359
3359
|
},
|
|
3360
3360
|
"&-typography": {
|
|
3361
3361
|
"&-wrapper": {
|
|
@@ -3385,7 +3385,7 @@ const qe = {
|
|
|
3385
3385
|
border: "var(--cn-input-border) solid var(--cn-border-2)",
|
|
3386
3386
|
borderRadius: "var(--cn-input-radius)",
|
|
3387
3387
|
backgroundColor: "var(--cn-comp-input-bg)",
|
|
3388
|
-
...
|
|
3388
|
+
...qe()
|
|
3389
3389
|
}
|
|
3390
3390
|
},
|
|
3391
3391
|
"&-list": {
|
|
@@ -3406,7 +3406,7 @@ const qe = {
|
|
|
3406
3406
|
backgroundPosition: "-200% 0"
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
|
-
},
|
|
3409
|
+
}, Qe = {
|
|
3410
3410
|
".cn-slider": {
|
|
3411
3411
|
display: "flex",
|
|
3412
3412
|
flexDirection: "column",
|
|
@@ -3682,7 +3682,7 @@ const qe = {
|
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
3684
|
}
|
|
3685
|
-
},
|
|
3685
|
+
}, Ze = {
|
|
3686
3686
|
".cn-stacked-list": {
|
|
3687
3687
|
"@apply w-full bg-cn-1 border rounded-cn-3": "",
|
|
3688
3688
|
"& > *:first-child > .cn-stacked-list-item": {
|
|
@@ -3750,7 +3750,7 @@ const qe = {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
3752
3752
|
}
|
|
3753
|
-
},
|
|
3753
|
+
}, er = {
|
|
3754
3754
|
".cn-sticky-list-section": {
|
|
3755
3755
|
"@apply relative": "",
|
|
3756
3756
|
"&-sentinel": {
|
|
@@ -3777,14 +3777,14 @@ const qe = {
|
|
|
3777
3777
|
"@apply relative": ""
|
|
3778
3778
|
}
|
|
3779
3779
|
}
|
|
3780
|
-
},
|
|
3781
|
-
[
|
|
3780
|
+
}, $ = ".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", f = {
|
|
3781
|
+
[$]: {
|
|
3782
3782
|
opacity: "0.45 !important",
|
|
3783
3783
|
transition: "opacity 200ms ease-in-out"
|
|
3784
3784
|
}
|
|
3785
|
-
},
|
|
3785
|
+
}, w = {
|
|
3786
3786
|
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)"
|
|
3787
|
-
},
|
|
3787
|
+
}, rr = {
|
|
3788
3788
|
".cn-studio-card": {
|
|
3789
3789
|
borderRadius: "var(--cn-rounded-4)",
|
|
3790
3790
|
border: "1px solid var(--cn-border-2)",
|
|
@@ -3829,9 +3829,9 @@ const qe = {
|
|
|
3829
3829
|
"&:has(.cn-studio-card-group:hover)": {
|
|
3830
3830
|
backgroundColor: "lch(from var(--cn-bg-3) l c h / 0.45) !important",
|
|
3831
3831
|
borderColor: "lch(from var(--cn-border-2) l c h / 0.65) !important",
|
|
3832
|
-
...
|
|
3832
|
+
...w,
|
|
3833
3833
|
">": {
|
|
3834
|
-
...
|
|
3834
|
+
...f
|
|
3835
3835
|
}
|
|
3836
3836
|
},
|
|
3837
3837
|
// Group card variant
|
|
@@ -3958,8 +3958,8 @@ const qe = {
|
|
|
3958
3958
|
'&:not(:has(> [data-status="executing"]))': {
|
|
3959
3959
|
borderColor: "lch(from var(--cn-border-2) l c h / 0.65) !important"
|
|
3960
3960
|
},
|
|
3961
|
-
...
|
|
3962
|
-
...
|
|
3961
|
+
...w,
|
|
3962
|
+
...f
|
|
3963
3963
|
},
|
|
3964
3964
|
// Preserve opacity for the hovered group itself
|
|
3965
3965
|
"& .cn-studio-card-group:hover": {
|
|
@@ -3973,7 +3973,7 @@ const qe = {
|
|
|
3973
3973
|
// borderColor: 'lch(from var(--cn-border-2) l c h / 0.65) !important',
|
|
3974
3974
|
},
|
|
3975
3975
|
"@apply shadow-cn-3": "",
|
|
3976
|
-
[
|
|
3976
|
+
[$]: {
|
|
3977
3977
|
opacity: "1 !important"
|
|
3978
3978
|
}
|
|
3979
3979
|
}
|
|
@@ -4156,7 +4156,7 @@ const qe = {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
},
|
|
4159
|
+
}, nr = {
|
|
4160
4160
|
".cn-switch-wrapper": {
|
|
4161
4161
|
display: "flex",
|
|
4162
4162
|
gap: "var(--cn-spacing-2-half)",
|
|
@@ -4245,7 +4245,7 @@ const qe = {
|
|
|
4245
4245
|
},
|
|
4246
4246
|
"@apply truncate": ""
|
|
4247
4247
|
}
|
|
4248
|
-
},
|
|
4248
|
+
}, v = "linear-gradient(var(--cn-table-pinned-overlay), var(--cn-table-pinned-overlay)), var(--cn-table-pinned-base)", ar = {
|
|
4249
4249
|
".cn-table-v2": {
|
|
4250
4250
|
"@apply w-full": "",
|
|
4251
4251
|
// Table container
|
|
@@ -4319,7 +4319,8 @@ const qe = {
|
|
|
4319
4319
|
backgroundColor: "var(--cn-state-hover)"
|
|
4320
4320
|
},
|
|
4321
4321
|
"&>td.cn-table-v2-cell-pinned": {
|
|
4322
|
-
|
|
4322
|
+
"--cn-table-pinned-overlay": "var(--cn-state-hover)",
|
|
4323
|
+
background: v
|
|
4323
4324
|
},
|
|
4324
4325
|
"& .cn-row-pin:not(.cn-row-pin-on)": {
|
|
4325
4326
|
opacity: "1"
|
|
@@ -4346,6 +4347,10 @@ const qe = {
|
|
|
4346
4347
|
"&:where([data-checked=true]) td": {
|
|
4347
4348
|
backgroundColor: "var(--cn-state-selected)"
|
|
4348
4349
|
},
|
|
4350
|
+
"&:where([data-checked=true]) td.cn-table-v2-cell-pinned": {
|
|
4351
|
+
"--cn-table-pinned-overlay": "var(--cn-state-selected)",
|
|
4352
|
+
background: v
|
|
4353
|
+
},
|
|
4349
4354
|
"&-expanded": {
|
|
4350
4355
|
backgroundColor: "var(--cn-state-selected)"
|
|
4351
4356
|
},
|
|
@@ -4368,7 +4373,9 @@ const qe = {
|
|
|
4368
4373
|
},
|
|
4369
4374
|
// Head cell
|
|
4370
4375
|
"&-head": {
|
|
4371
|
-
"
|
|
4376
|
+
"--cn-table-pinned-base": "var(--cn-bg-2)",
|
|
4377
|
+
backgroundColor: "var(--cn-table-pinned-base)",
|
|
4378
|
+
"@apply text-cn-3 text-left align-middle font-medium overflow-hidden transition-colors": "",
|
|
4372
4379
|
"@apply [&:has([role=checkbox])]:py-0 [&:has([role=checkbox])]:!pr-0 [&>[role=checkbox]]:translate-y-[2px]": "",
|
|
4373
4380
|
"@apply [&:has([role=button])]:py-0 [&:has([role=button])]:!pr-0": "",
|
|
4374
4381
|
paddingLeft: "var(--cn-table-header-px)",
|
|
@@ -4389,6 +4396,10 @@ const qe = {
|
|
|
4389
4396
|
"&-head-sortable:hover": {
|
|
4390
4397
|
backgroundColor: "var(--cn-state-hover)"
|
|
4391
4398
|
},
|
|
4399
|
+
"&-head-sortable.cn-table-v2-cell-pinned:hover": {
|
|
4400
|
+
"--cn-table-pinned-overlay": "var(--cn-state-hover)",
|
|
4401
|
+
background: v
|
|
4402
|
+
},
|
|
4392
4403
|
"&-head-divider": {
|
|
4393
4404
|
position: "absolute",
|
|
4394
4405
|
top: "0",
|
|
@@ -4397,8 +4408,10 @@ const qe = {
|
|
|
4397
4408
|
},
|
|
4398
4409
|
// Data cell
|
|
4399
4410
|
"&-cell": {
|
|
4411
|
+
"--cn-table-pinned-base": "var(--cn-bg-1)",
|
|
4412
|
+
backgroundColor: "var(--cn-table-pinned-base)",
|
|
4400
4413
|
position: "relative",
|
|
4401
|
-
"@apply align-middle
|
|
4414
|
+
"@apply align-middle transition-colors": "",
|
|
4402
4415
|
"@apply [&:has([role=checkbox])]:py-0 [&:has([role=checkbox])]:!pr-0 [&>[role=checkbox]]:translate-y-[2px]": "",
|
|
4403
4416
|
"@apply [&:has([role=button])]:py-0 [&:has([role=button])]:!pr-0": "",
|
|
4404
4417
|
paddingLeft: "var(--cn-table-cell-px)",
|
|
@@ -4431,7 +4444,7 @@ const qe = {
|
|
|
4431
4444
|
".cn-row-pin-on": {
|
|
4432
4445
|
opacity: "1"
|
|
4433
4446
|
}
|
|
4434
|
-
},
|
|
4447
|
+
}, or = {
|
|
4435
4448
|
".cn-tabs-scroll-container": {
|
|
4436
4449
|
position: "relative",
|
|
4437
4450
|
width: "100%",
|
|
@@ -4656,7 +4669,7 @@ const qe = {
|
|
|
4656
4669
|
"@apply opacity-cn-disabled": ""
|
|
4657
4670
|
}
|
|
4658
4671
|
}
|
|
4659
|
-
},
|
|
4672
|
+
}, tr = [
|
|
4660
4673
|
"gray",
|
|
4661
4674
|
"blue",
|
|
4662
4675
|
"brown",
|
|
@@ -4672,24 +4685,24 @@ const qe = {
|
|
|
4672
4685
|
"red",
|
|
4673
4686
|
"violet",
|
|
4674
4687
|
"yellow"
|
|
4675
|
-
],
|
|
4688
|
+
], cr = {
|
|
4676
4689
|
green: "success",
|
|
4677
4690
|
red: "danger",
|
|
4678
4691
|
yellow: "warning"
|
|
4679
|
-
},
|
|
4692
|
+
}, k = (r, e) => ({
|
|
4680
4693
|
backgroundColor: `var(--cn-set-${r}-${e ? "outline-bg-hover" : "secondary-bg-hover"})`,
|
|
4681
4694
|
borderColor: `var(--cn-set-${r}-${e ? "outline-border" : "secondary-bg-hover"})`
|
|
4682
4695
|
});
|
|
4683
|
-
function
|
|
4696
|
+
function C(r) {
|
|
4684
4697
|
const e = {};
|
|
4685
|
-
return
|
|
4686
|
-
const o =
|
|
4698
|
+
return tr.forEach((n) => {
|
|
4699
|
+
const o = cr[n] ?? n, a = r === "outline", t = {
|
|
4687
4700
|
color: `var(--cn-set-${o}-${a ? "outline-text" : "secondary-text"})`,
|
|
4688
4701
|
backgroundColor: `var(--cn-set-${o}-${a ? "outline-bg" : "secondary-bg"})`,
|
|
4689
4702
|
borderColor: `var(--cn-set-${o}-${a ? "outline-border" : "secondary-bg"})`,
|
|
4690
|
-
"&.cn-tag-hoverable:hover:not(.cn-tag-split *)":
|
|
4703
|
+
"&.cn-tag-hoverable:hover:not(.cn-tag-split *)": k(o, a),
|
|
4691
4704
|
"&:where(.cn-tag-split-left)": {
|
|
4692
|
-
".cn-tag-split.cn-tag-split-hoverable:hover &":
|
|
4705
|
+
".cn-tag-split.cn-tag-split-hoverable:hover &": k(o, a)
|
|
4693
4706
|
},
|
|
4694
4707
|
"&:where(.cn-tag-split-right)": a ? {
|
|
4695
4708
|
borderColor: `var(--cn-set-${o}-secondary-bg)`,
|
|
@@ -4710,7 +4723,7 @@ function k(r) {
|
|
|
4710
4723
|
e[`&:where(.cn-tag-${o})`] = t;
|
|
4711
4724
|
}), e;
|
|
4712
4725
|
}
|
|
4713
|
-
const
|
|
4726
|
+
const ir = {
|
|
4714
4727
|
".cn-tag": {
|
|
4715
4728
|
display: "inline-flex",
|
|
4716
4729
|
alignItems: "center",
|
|
@@ -4756,19 +4769,19 @@ const cr = {
|
|
|
4756
4769
|
}
|
|
4757
4770
|
},
|
|
4758
4771
|
"&:where(.cn-tag-outline)": {
|
|
4759
|
-
...
|
|
4772
|
+
...C("outline")
|
|
4760
4773
|
},
|
|
4761
4774
|
"&:where(.cn-tag-secondary)": {
|
|
4762
|
-
...
|
|
4775
|
+
...C("secondary")
|
|
4763
4776
|
},
|
|
4764
4777
|
".cn-tag-text": {
|
|
4765
4778
|
"@apply truncate leading-normal align-middle inline-block": ""
|
|
4766
4779
|
}
|
|
4767
4780
|
}
|
|
4768
|
-
},
|
|
4769
|
-
function
|
|
4781
|
+
}, dr = ["danger", "warning"], lr = ["sm"];
|
|
4782
|
+
function sr() {
|
|
4770
4783
|
const r = {};
|
|
4771
|
-
return
|
|
4784
|
+
return dr.forEach((e) => {
|
|
4772
4785
|
r[`&:where(.cn-textarea-${e}):not(:disabled)`] = {
|
|
4773
4786
|
borderColor: `var(--cn-border-${e})`,
|
|
4774
4787
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -4781,13 +4794,13 @@ function lr() {
|
|
|
4781
4794
|
boxShadow: `var(--cn-ring-${e})`
|
|
4782
4795
|
}
|
|
4783
4796
|
};
|
|
4784
|
-
}),
|
|
4797
|
+
}), lr.forEach((e) => {
|
|
4785
4798
|
r[`&.cn-textarea-${e}`] = {
|
|
4786
4799
|
padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`
|
|
4787
4800
|
};
|
|
4788
4801
|
}), r;
|
|
4789
4802
|
}
|
|
4790
|
-
const
|
|
4803
|
+
const pr = {
|
|
4791
4804
|
".cn-textarea": {
|
|
4792
4805
|
borderRadius: "var(--cn-input-radius)",
|
|
4793
4806
|
padding: "var(--cn-input-md-py) var(--cn-input-md-pr) var(--cn-input-md-py) var(--cn-input-md-pl)",
|
|
@@ -4826,7 +4839,7 @@ const sr = {
|
|
|
4826
4839
|
"&-resizable": {
|
|
4827
4840
|
resize: "vertical"
|
|
4828
4841
|
},
|
|
4829
|
-
...
|
|
4842
|
+
...sr(),
|
|
4830
4843
|
"&-label-wrapper": {
|
|
4831
4844
|
display: "flex",
|
|
4832
4845
|
alignItems: "center",
|
|
@@ -4847,7 +4860,7 @@ const sr = {
|
|
|
4847
4860
|
}
|
|
4848
4861
|
}
|
|
4849
4862
|
}
|
|
4850
|
-
},
|
|
4863
|
+
}, br = {
|
|
4851
4864
|
".cn-time-ago-card": {
|
|
4852
4865
|
"&-trigger": {
|
|
4853
4866
|
"@apply leading-snug whitespace-nowrap truncate max-w-full": "",
|
|
@@ -4869,7 +4882,7 @@ const sr = {
|
|
|
4869
4882
|
"@apply grid grid-cols-[auto_1fr_auto] items-center whitespace-nowrap": ""
|
|
4870
4883
|
}
|
|
4871
4884
|
}
|
|
4872
|
-
},
|
|
4885
|
+
}, gr = {
|
|
4873
4886
|
".cn-toast-wrapper": {
|
|
4874
4887
|
right: "var(--cn-toast-offset-right)",
|
|
4875
4888
|
bottom: "var(--cn-toast-offset-bottom)"
|
|
@@ -4945,9 +4958,9 @@ const sr = {
|
|
|
4945
4958
|
}
|
|
4946
4959
|
}
|
|
4947
4960
|
}
|
|
4948
|
-
},
|
|
4961
|
+
}, vr = ["xs", "sm", "md"], ur = () => {
|
|
4949
4962
|
const r = {};
|
|
4950
|
-
return
|
|
4963
|
+
return vr.forEach((e) => {
|
|
4951
4964
|
r[`&.cn-toggle-${e}.cn-toggle-transparent.cn-toggle-text`] = {
|
|
4952
4965
|
paddingLeft: `var(--cn-btn-px-${e})`,
|
|
4953
4966
|
paddingRight: `var(--cn-btn-px-${e})`,
|
|
@@ -4956,15 +4969,15 @@ const sr = {
|
|
|
4956
4969
|
border: "var(--cn-btn-border) solid transparent"
|
|
4957
4970
|
};
|
|
4958
4971
|
}), r;
|
|
4959
|
-
},
|
|
4972
|
+
}, hr = {
|
|
4960
4973
|
".cn-toggle": {
|
|
4961
4974
|
transitionDuration: "100ms",
|
|
4962
|
-
...
|
|
4975
|
+
...ur(),
|
|
4963
4976
|
'&[data-state="on"]': {
|
|
4964
4977
|
color: "var(--cn-text-1)"
|
|
4965
4978
|
}
|
|
4966
4979
|
}
|
|
4967
|
-
},
|
|
4980
|
+
}, mr = {
|
|
4968
4981
|
".cn-toggle-group": {
|
|
4969
4982
|
gap: "var(--cn-layout-3xs)",
|
|
4970
4983
|
"@apply flex": "",
|
|
@@ -4972,7 +4985,7 @@ const sr = {
|
|
|
4972
4985
|
"@apply flex-col": ""
|
|
4973
4986
|
}
|
|
4974
4987
|
}
|
|
4975
|
-
},
|
|
4988
|
+
}, xr = {
|
|
4976
4989
|
".cn-tooltip": {
|
|
4977
4990
|
minWidth: "var(--cn-tooltip-min)",
|
|
4978
4991
|
maxWidth: "var(--cn-tooltip-max)",
|
|
@@ -5024,17 +5037,17 @@ const sr = {
|
|
|
5024
5037
|
}
|
|
5025
5038
|
}
|
|
5026
5039
|
}
|
|
5027
|
-
},
|
|
5040
|
+
}, S = {
|
|
5028
5041
|
"@apply text-cn-2 font-body-normal": "",
|
|
5029
5042
|
minHeight: "var(--cn-tree-item-height)",
|
|
5030
5043
|
padding: "var(--cn-tree-item-py) var(--cn-tree-item-pr) var(--cn-tree-item-py)"
|
|
5031
|
-
},
|
|
5044
|
+
}, yr = {
|
|
5032
5045
|
".cn-file-tree": {
|
|
5033
5046
|
"&-base-item": {
|
|
5034
|
-
...
|
|
5047
|
+
...S
|
|
5035
5048
|
},
|
|
5036
5049
|
"&-item": {
|
|
5037
|
-
...
|
|
5050
|
+
...S,
|
|
5038
5051
|
"@apply relative gap-cn-3xs flex items-center w-[fill-available]": "",
|
|
5039
5052
|
"&-wrapper": {
|
|
5040
5053
|
"@apply relative transition-colors": "",
|
|
@@ -5074,72 +5087,72 @@ const sr = {
|
|
|
5074
5087
|
}
|
|
5075
5088
|
}
|
|
5076
5089
|
}
|
|
5077
|
-
},
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
ve,
|
|
5085
|
-
cr,
|
|
5090
|
+
}, fr = [
|
|
5091
|
+
W,
|
|
5092
|
+
A,
|
|
5093
|
+
F,
|
|
5094
|
+
q,
|
|
5095
|
+
ie,
|
|
5096
|
+
nr,
|
|
5086
5097
|
ue,
|
|
5087
|
-
|
|
5088
|
-
|
|
5098
|
+
ir,
|
|
5099
|
+
he,
|
|
5100
|
+
j,
|
|
5089
5101
|
ee,
|
|
5090
|
-
|
|
5091
|
-
|
|
5102
|
+
re,
|
|
5103
|
+
ke,
|
|
5104
|
+
Te,
|
|
5105
|
+
oe,
|
|
5106
|
+
Q,
|
|
5107
|
+
or,
|
|
5092
5108
|
ae,
|
|
5093
|
-
J,
|
|
5094
|
-
ar,
|
|
5095
|
-
ne,
|
|
5096
|
-
He,
|
|
5097
5109
|
Le,
|
|
5098
5110
|
Ae,
|
|
5099
|
-
|
|
5100
|
-
|
|
5111
|
+
De,
|
|
5112
|
+
Ce,
|
|
5113
|
+
xr,
|
|
5114
|
+
gr,
|
|
5115
|
+
Ye,
|
|
5116
|
+
V,
|
|
5117
|
+
pe,
|
|
5101
5118
|
br,
|
|
5102
|
-
|
|
5103
|
-
F,
|
|
5104
|
-
se,
|
|
5105
|
-
pr,
|
|
5106
|
-
_e,
|
|
5107
|
-
ur,
|
|
5119
|
+
Xe,
|
|
5108
5120
|
hr,
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5121
|
+
mr,
|
|
5122
|
+
J,
|
|
5123
|
+
We,
|
|
5124
|
+
Je,
|
|
5113
5125
|
Ze,
|
|
5114
5126
|
er,
|
|
5115
|
-
|
|
5127
|
+
rr,
|
|
5128
|
+
yr,
|
|
5129
|
+
xe,
|
|
5116
5130
|
me,
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
Je,
|
|
5131
|
+
He,
|
|
5132
|
+
_e,
|
|
5133
|
+
Qe,
|
|
5121
5134
|
// Form styles
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
],
|
|
5135
|
+
Oe,
|
|
5136
|
+
de,
|
|
5137
|
+
ne,
|
|
5138
|
+
Be,
|
|
5139
|
+
pr,
|
|
5140
|
+
ve,
|
|
5141
|
+
Z,
|
|
5142
|
+
we,
|
|
5143
|
+
ar
|
|
5144
|
+
], wr = {
|
|
5132
5145
|
content: [],
|
|
5133
5146
|
plugins: [
|
|
5134
|
-
|
|
5135
|
-
r(
|
|
5147
|
+
I(({ addComponents: r }) => {
|
|
5148
|
+
r(fr);
|
|
5136
5149
|
})
|
|
5137
5150
|
]
|
|
5138
|
-
},
|
|
5139
|
-
presets: [
|
|
5151
|
+
}, Sr = {
|
|
5152
|
+
presets: [wr, T],
|
|
5140
5153
|
content: ["./src/**/*.{ts,tsx}"]
|
|
5141
5154
|
};
|
|
5142
5155
|
export {
|
|
5143
|
-
|
|
5156
|
+
Sr as default
|
|
5144
5157
|
};
|
|
5145
5158
|
//# sourceMappingURL=tailwind.config.js.map
|