@harnessio/ui 0.5.15 → 0.5.17
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 +1 -0
- package/dist/components.js +1 -1
- package/dist/form-shared-styles-W3czzLsz.js +31 -0
- package/dist/form-shared-styles-W3czzLsz.js.map +1 -0
- package/dist/{index-BB_D_s6Q.js → index-DOJqgX28.js} +7727 -7719
- package/dist/{index-BB_D_s6Q.js.map → index-DOJqgX28.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.config.js +211 -237
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +1 -1
package/dist/tailwind.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
|
|
1
|
+
import { p as $, t as I } from "./tailwind-design-system-B-Jd9lCG.js";
|
|
2
|
+
import { F as R, C as g, f as T } from "./form-shared-styles-W3czzLsz.js";
|
|
3
|
+
const B = {
|
|
3
4
|
".cn-accordion": {
|
|
4
5
|
display: "flex",
|
|
5
6
|
flexDirection: "column",
|
|
@@ -26,7 +27,7 @@ const I = {
|
|
|
26
27
|
"@apply font-heading-base": ""
|
|
27
28
|
},
|
|
28
29
|
"&.cn-accordion-card": {
|
|
29
|
-
|
|
30
|
+
[`@apply ${R}`]: ""
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
"&-item": {
|
|
@@ -120,7 +121,7 @@ const I = {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
},
|
|
124
|
+
}, W = ["info", "danger", "warning", "success"], L = {
|
|
124
125
|
info: {
|
|
125
126
|
backgroundColor: "gray-secondary",
|
|
126
127
|
color: "text-cn-2",
|
|
@@ -142,10 +143,10 @@ const I = {
|
|
|
142
143
|
fadeBgColor: "success"
|
|
143
144
|
}
|
|
144
145
|
};
|
|
145
|
-
function
|
|
146
|
+
function A() {
|
|
146
147
|
const r = {};
|
|
147
|
-
return
|
|
148
|
-
const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } =
|
|
148
|
+
return W.forEach((e) => {
|
|
149
|
+
const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } = L[e];
|
|
149
150
|
n.backgroundColor = `var(--cn-set-${o}-bg)`, n["> .cn-alert-icon"] = {
|
|
150
151
|
color: `var(--cn-${a})`
|
|
151
152
|
}, n[" .cn-alert-fade-overlay"] = {
|
|
@@ -153,7 +154,7 @@ function W() {
|
|
|
153
154
|
}, r[`&:where(.cn-alert-${e})`] = n;
|
|
154
155
|
}), r;
|
|
155
156
|
}
|
|
156
|
-
const
|
|
157
|
+
const H = {
|
|
157
158
|
".cn-alert": {
|
|
158
159
|
gap: "var(--cn-alert-gap)",
|
|
159
160
|
paddingTop: "var(--cn-alert-py)",
|
|
@@ -242,12 +243,12 @@ const B = {
|
|
|
242
243
|
"&-link-wrapper": {
|
|
243
244
|
paddingTop: "var(--cn-spacing-1)"
|
|
244
245
|
},
|
|
245
|
-
...
|
|
246
|
+
...A()
|
|
246
247
|
}
|
|
247
|
-
},
|
|
248
|
-
function
|
|
248
|
+
}, j = ["md", "sm", "lg", "xs"];
|
|
249
|
+
function E() {
|
|
249
250
|
const r = {};
|
|
250
|
-
return
|
|
251
|
+
return j.forEach((e) => {
|
|
251
252
|
e === "xs" ? r[`&:where(.cn-avatar-${e})`] = {
|
|
252
253
|
height: `var(--cn-avatar-size-${e})`,
|
|
253
254
|
width: `var(--cn-avatar-size-${e})`,
|
|
@@ -262,7 +263,7 @@ function H() {
|
|
|
262
263
|
};
|
|
263
264
|
}), r;
|
|
264
265
|
}
|
|
265
|
-
const
|
|
266
|
+
const D = {
|
|
266
267
|
".cn-avatar": {
|
|
267
268
|
display: "inline-flex",
|
|
268
269
|
alignItems: "center",
|
|
@@ -273,7 +274,7 @@ const A = {
|
|
|
273
274
|
boxShadow: "var(--cn-comp-shadow-avatar-inner)",
|
|
274
275
|
letterSpacing: "var(--cn-tracking-tight)",
|
|
275
276
|
"@apply shrink-0": "",
|
|
276
|
-
...
|
|
277
|
+
...E(),
|
|
277
278
|
"&:where(.cn-avatar-rounded)": {
|
|
278
279
|
borderRadius: "var(--cn-avatar-radius-rounded)"
|
|
279
280
|
},
|
|
@@ -297,7 +298,7 @@ const A = {
|
|
|
297
298
|
// Avatar xs → Icon xs, Avatar sm → Icon sm, Avatar md → Icon sm, Avatar lg → Icon md
|
|
298
299
|
".cn-avatar-icon": {}
|
|
299
300
|
}
|
|
300
|
-
},
|
|
301
|
+
}, P = ["primary", "secondary", "outline", "status", "ghost"], O = ["success", "info", "warning", "danger", "muted", "merged", "risk"], _ = {
|
|
301
302
|
success: "success",
|
|
302
303
|
info: "blue",
|
|
303
304
|
warning: "warning",
|
|
@@ -306,18 +307,18 @@ const A = {
|
|
|
306
307
|
merged: "purple",
|
|
307
308
|
risk: "orange"
|
|
308
309
|
};
|
|
309
|
-
function
|
|
310
|
+
function X() {
|
|
310
311
|
const r = {}, e = {};
|
|
311
|
-
return
|
|
312
|
-
|
|
313
|
-
const a = {}, t =
|
|
312
|
+
return P.forEach((n) => {
|
|
313
|
+
O.forEach((o) => {
|
|
314
|
+
const a = {}, t = _[o];
|
|
314
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`] = {
|
|
315
316
|
backgroundColor: `var(--cn-set-${t}-primary-bg)`
|
|
316
317
|
};
|
|
317
318
|
});
|
|
318
319
|
}), { ...r, ...e };
|
|
319
320
|
}
|
|
320
|
-
const
|
|
321
|
+
const F = {
|
|
321
322
|
".cn-badge": {
|
|
322
323
|
paddingBlock: "var(--cn-badge-md-py)",
|
|
323
324
|
paddingInline: "var(--cn-badge-md-px)",
|
|
@@ -370,9 +371,9 @@ const O = {
|
|
|
370
371
|
}
|
|
371
372
|
},
|
|
372
373
|
/** Variants */
|
|
373
|
-
...
|
|
374
|
+
...X()
|
|
374
375
|
}
|
|
375
|
-
},
|
|
376
|
+
}, V = {
|
|
376
377
|
".cn-breadcrumb": {
|
|
377
378
|
"@apply flex flex-wrap items-center break-words select-none": "",
|
|
378
379
|
gap: "var(--cn-spacing-1)"
|
|
@@ -475,23 +476,23 @@ const O = {
|
|
|
475
476
|
color: "var(--cn-text-1)"
|
|
476
477
|
}
|
|
477
478
|
}
|
|
478
|
-
},
|
|
479
|
+
}, G = ["primary", "secondary", "outline", "ghost"], N = ["success", "danger", "default"], M = ["3xs", "2xs", "xs", "sm", "md"], v = "0.99", l = "150ms", s = "ease-in-out", Y = {
|
|
479
480
|
success: "success",
|
|
480
481
|
danger: "danger",
|
|
481
482
|
default: "gray"
|
|
482
483
|
};
|
|
483
|
-
function
|
|
484
|
+
function U() {
|
|
484
485
|
const r = {}, e = {};
|
|
485
|
-
return
|
|
486
|
-
|
|
487
|
-
const a = {}, t =
|
|
486
|
+
return G.forEach((n) => {
|
|
487
|
+
N.forEach((o) => {
|
|
488
|
+
const a = {}, t = Y[o];
|
|
488
489
|
if (n === "ghost") {
|
|
489
490
|
a.color = `var(--cn-set-${t}-outline-text)`;
|
|
490
|
-
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)`, z = o === "default" ? "var(--cn-state-hover)" : `var(--cn-set-${t}-outline-bg-selected)`;
|
|
491
492
|
a["&:hover:not(:disabled, .cn-button-disabled)"] = {
|
|
492
493
|
backgroundColor: c
|
|
493
494
|
}, a["&:active:not(:disabled, .cn-button-disabled), &:where(.cn-button-active), &:where([data-state=open])"] = {
|
|
494
|
-
backgroundColor:
|
|
495
|
+
backgroundColor: z
|
|
495
496
|
};
|
|
496
497
|
} else {
|
|
497
498
|
const c = n === "primary" && o === "default" ? "brand" : t;
|
|
@@ -520,9 +521,9 @@ function G() {
|
|
|
520
521
|
});
|
|
521
522
|
}), { ...r, ...e };
|
|
522
523
|
}
|
|
523
|
-
function
|
|
524
|
+
function K() {
|
|
524
525
|
const r = {};
|
|
525
|
-
return
|
|
526
|
+
return M.forEach((e) => {
|
|
526
527
|
r[`&:where(.cn-button-${e})`] = {
|
|
527
528
|
height: `var(--cn-btn-size-${e})`,
|
|
528
529
|
paddingBlock: `var(--cn-btn-py-${e})`,
|
|
@@ -531,7 +532,7 @@ function Y() {
|
|
|
531
532
|
};
|
|
532
533
|
}), r;
|
|
533
534
|
}
|
|
534
|
-
const
|
|
535
|
+
const q = {
|
|
535
536
|
".cn-button": {
|
|
536
537
|
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke, transform, box-shadow, opacity",
|
|
537
538
|
transitionDuration: l,
|
|
@@ -547,7 +548,7 @@ const M = {
|
|
|
547
548
|
border: "var(--cn-btn-border) solid var(--cn-set-gray-outline-border)",
|
|
548
549
|
"@apply font-body-single-line-normal select-none overflow-hidden inline-flex items-center justify-center whitespace-nowrap": "",
|
|
549
550
|
"&:active:not(:disabled, .cn-button-disabled, .cn-button-split-dropdown)": {
|
|
550
|
-
transform: `scale(${
|
|
551
|
+
transform: `scale(${v})`
|
|
551
552
|
},
|
|
552
553
|
"&:where(.cn-button-split-dropdown)": {
|
|
553
554
|
height: "var(--cn-btn-size-md)",
|
|
@@ -563,7 +564,7 @@ const M = {
|
|
|
563
564
|
}
|
|
564
565
|
},
|
|
565
566
|
// sizes
|
|
566
|
-
...
|
|
567
|
+
...K(),
|
|
567
568
|
"&:where(.cn-button-xs, .cn-button-3xs, .cn-button-2xs)": {
|
|
568
569
|
"@apply font-caption-single-line-normal": ""
|
|
569
570
|
},
|
|
@@ -609,7 +610,7 @@ const M = {
|
|
|
609
610
|
}
|
|
610
611
|
},
|
|
611
612
|
// variant styles
|
|
612
|
-
...
|
|
613
|
+
...U(),
|
|
613
614
|
// Rounded
|
|
614
615
|
"&:where(.cn-button-rounded)": {
|
|
615
616
|
borderRadius: "var(--cn-btn-rounded-radius)"
|
|
@@ -723,10 +724,10 @@ const M = {
|
|
|
723
724
|
transform: "none !important"
|
|
724
725
|
},
|
|
725
726
|
"&:has(> .cn-button:active)": {
|
|
726
|
-
transform: `scale(${
|
|
727
|
+
transform: `scale(${v})`
|
|
727
728
|
}
|
|
728
729
|
}
|
|
729
|
-
},
|
|
730
|
+
}, J = {
|
|
730
731
|
".cn-button-group": {
|
|
731
732
|
"@apply flex": "",
|
|
732
733
|
"&-horizontal": {
|
|
@@ -767,7 +768,7 @@ const M = {
|
|
|
767
768
|
}
|
|
768
769
|
}
|
|
769
770
|
}
|
|
770
|
-
},
|
|
771
|
+
}, Q = {
|
|
771
772
|
".cn-button-layout": {
|
|
772
773
|
gap: "var(--cn-layout-sm)",
|
|
773
774
|
"@apply flex": "",
|
|
@@ -807,7 +808,7 @@ const M = {
|
|
|
807
808
|
"@apply flex": ""
|
|
808
809
|
}
|
|
809
810
|
}
|
|
810
|
-
},
|
|
811
|
+
}, Z = {
|
|
811
812
|
".cn-caption": {
|
|
812
813
|
gap: "var(--cn-spacing-1)",
|
|
813
814
|
"@apply w-full inline-flex items-start": ""
|
|
@@ -815,7 +816,7 @@ const M = {
|
|
|
815
816
|
":where([disabled]) + .cn-caption": {
|
|
816
817
|
"@apply opacity-cn-disabled": ""
|
|
817
818
|
}
|
|
818
|
-
},
|
|
819
|
+
}, ee = {
|
|
819
820
|
".cn-card": {
|
|
820
821
|
border: "var(--cn-card-border) solid var(--cn-border-2)",
|
|
821
822
|
borderRadius: "var(--cn-card-md-radius)",
|
|
@@ -900,7 +901,7 @@ const M = {
|
|
|
900
901
|
"@apply outline-offset-cn-tight": ""
|
|
901
902
|
}
|
|
902
903
|
}
|
|
903
|
-
},
|
|
904
|
+
}, re = {
|
|
904
905
|
".cn-card-select-root": {
|
|
905
906
|
display: "grid",
|
|
906
907
|
"&:where(.cn-card-select-horizontal)": {
|
|
@@ -976,7 +977,7 @@ const M = {
|
|
|
976
977
|
".cn-card-select-hidden-input": {
|
|
977
978
|
"@apply sr-only": ""
|
|
978
979
|
}
|
|
979
|
-
},
|
|
980
|
+
}, ne = {
|
|
980
981
|
".cn-checkbox-wrapper": {
|
|
981
982
|
display: "flex",
|
|
982
983
|
gap: "var(--cn-spacing-2-half)",
|
|
@@ -1105,7 +1106,7 @@ const M = {
|
|
|
1105
1106
|
},
|
|
1106
1107
|
"@apply truncate": ""
|
|
1107
1108
|
}
|
|
1108
|
-
},
|
|
1109
|
+
}, ae = {
|
|
1109
1110
|
".cn-modal-dialog-overlay": {
|
|
1110
1111
|
backgroundColor: "var(--cn-comp-dialog-backdrop)",
|
|
1111
1112
|
padding: "var(--cn-dialog-safezone)",
|
|
@@ -1274,7 +1275,7 @@ const M = {
|
|
|
1274
1275
|
opacity: "0"
|
|
1275
1276
|
}
|
|
1276
1277
|
}
|
|
1277
|
-
},
|
|
1278
|
+
}, oe = {
|
|
1278
1279
|
".cn-drawer": {
|
|
1279
1280
|
"&-content": {
|
|
1280
1281
|
userSelect: "auto !important",
|
|
@@ -1430,7 +1431,7 @@ const M = {
|
|
|
1430
1431
|
"@apply flex flex-col border-t": ""
|
|
1431
1432
|
}
|
|
1432
1433
|
}
|
|
1433
|
-
},
|
|
1434
|
+
}, te = [
|
|
1434
1435
|
"gray",
|
|
1435
1436
|
"green",
|
|
1436
1437
|
"red",
|
|
@@ -1445,14 +1446,14 @@ const M = {
|
|
|
1445
1446
|
"orange",
|
|
1446
1447
|
"pink",
|
|
1447
1448
|
"violet"
|
|
1448
|
-
],
|
|
1449
|
+
], ce = () => {
|
|
1449
1450
|
const r = {};
|
|
1450
|
-
return
|
|
1451
|
+
return te.forEach((e) => {
|
|
1451
1452
|
r[`&.cn-dropdown-menu-item-indicator-${e}`] = {
|
|
1452
1453
|
backgroundColor: `var(--cn-set-${e}-solid-bg)`
|
|
1453
1454
|
};
|
|
1454
1455
|
}), r;
|
|
1455
|
-
},
|
|
1456
|
+
}, ie = {
|
|
1456
1457
|
".cn-dropdown-menu": {
|
|
1457
1458
|
zIndex: "50",
|
|
1458
1459
|
minWidth: "var(--cn-dropdown-min-width)",
|
|
@@ -1530,7 +1531,7 @@ const M = {
|
|
|
1530
1531
|
height: "var(--cn-badge-indicator-size-sm)",
|
|
1531
1532
|
borderRadius: "var(--cn-rounded-full)",
|
|
1532
1533
|
flexShrink: "0",
|
|
1533
|
-
...
|
|
1534
|
+
...ce()
|
|
1534
1535
|
}
|
|
1535
1536
|
},
|
|
1536
1537
|
"&-group-label": {
|
|
@@ -1558,41 +1559,15 @@ const M = {
|
|
|
1558
1559
|
padding: "calc(var(--cn-dropdown-item-py) + var(--cn-spacing-4)) var(--cn-dropdown-item-px)"
|
|
1559
1560
|
}
|
|
1560
1561
|
}
|
|
1561
|
-
},
|
|
1562
|
-
".cn-form": {
|
|
1563
|
-
"@apply flex flex-col gap-cn-xl": ""
|
|
1564
|
-
},
|
|
1565
|
-
":where(.cn-control-group)": {
|
|
1566
|
-
gap: "var(--cn-input-wrapper-gap)",
|
|
1567
|
-
"@apply relative flex flex-col": "",
|
|
1568
|
-
maxWidth: "100%",
|
|
1569
|
-
"&.cn-control-group-horizontal": {
|
|
1570
|
-
"@apply flex-row": "",
|
|
1571
|
-
".cn-control-group-label": {
|
|
1572
|
-
width: "var(--cn-input-horizontal-label-max-width)"
|
|
1573
|
-
},
|
|
1574
|
-
".cn-control-group-input": {
|
|
1575
|
-
"@apply flex-1": ""
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
},
|
|
1579
|
-
":where(.cn-control-group-label)": {
|
|
1580
|
-
gap: "var(--cn-layout-3xs)",
|
|
1581
|
-
"@apply relative flex flex-col": ""
|
|
1582
|
-
},
|
|
1583
|
-
":where(.cn-control-group-input)": {
|
|
1584
|
-
gap: "var(--cn-input-wrapper-gap)",
|
|
1585
|
-
"@apply relative flex flex-col": ""
|
|
1586
|
-
}
|
|
1587
|
-
}, ce = ["2xs", "xs", "sm", "md", "lg", "xl"], ie = ["xs", "sm", "md", "lg"];
|
|
1562
|
+
}, de = ["2xs", "xs", "sm", "md", "lg", "xl"], le = ["xs", "sm", "md", "lg"];
|
|
1588
1563
|
function p(r) {
|
|
1589
|
-
const e = r === "icon" ?
|
|
1564
|
+
const e = r === "icon" ? de : le, n = r === "symbol" ? "logo" : r, o = {};
|
|
1590
1565
|
return e.forEach((a) => {
|
|
1591
1566
|
const t = {};
|
|
1592
1567
|
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;
|
|
1593
1568
|
}), o;
|
|
1594
1569
|
}
|
|
1595
|
-
const
|
|
1570
|
+
const se = {
|
|
1596
1571
|
".cn-icon": {
|
|
1597
1572
|
...p("icon")
|
|
1598
1573
|
},
|
|
@@ -1602,10 +1577,10 @@ const de = {
|
|
|
1602
1577
|
".cn-symbol": {
|
|
1603
1578
|
...p("symbol")
|
|
1604
1579
|
}
|
|
1605
|
-
},
|
|
1606
|
-
function
|
|
1580
|
+
}, pe = ["danger", "warning", "success"];
|
|
1581
|
+
function be() {
|
|
1607
1582
|
const r = {};
|
|
1608
|
-
return
|
|
1583
|
+
return pe.forEach((e) => {
|
|
1609
1584
|
r[`&:where(.cn-input-${e}):not(:has(input[disabled]))`] = {
|
|
1610
1585
|
borderColor: `var(--cn-border-${e})`,
|
|
1611
1586
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -1620,7 +1595,7 @@ function se() {
|
|
|
1620
1595
|
};
|
|
1621
1596
|
}), r;
|
|
1622
1597
|
}
|
|
1623
|
-
const
|
|
1598
|
+
const ge = {
|
|
1624
1599
|
".cn-input": {
|
|
1625
1600
|
"&-input": {
|
|
1626
1601
|
height: "100%",
|
|
@@ -1708,7 +1683,7 @@ const pe = {
|
|
|
1708
1683
|
"@apply h-full border-0 border-l rounded-l-cn-none": "",
|
|
1709
1684
|
borderColor: "inherit"
|
|
1710
1685
|
},
|
|
1711
|
-
...
|
|
1686
|
+
...be()
|
|
1712
1687
|
},
|
|
1713
1688
|
"&-search": {
|
|
1714
1689
|
"&:where(.cn-input-input)": {
|
|
@@ -1719,7 +1694,7 @@ const pe = {
|
|
|
1719
1694
|
}
|
|
1720
1695
|
}
|
|
1721
1696
|
}
|
|
1722
|
-
},
|
|
1697
|
+
}, ve = {
|
|
1723
1698
|
".cn-label": {
|
|
1724
1699
|
"@apply font-body-normal": "",
|
|
1725
1700
|
display: "grid",
|
|
@@ -1743,7 +1718,7 @@ const pe = {
|
|
|
1743
1718
|
color: "var(--cn-text-3)"
|
|
1744
1719
|
}
|
|
1745
1720
|
}
|
|
1746
|
-
},
|
|
1721
|
+
}, he = {
|
|
1747
1722
|
".cn-link": {
|
|
1748
1723
|
display: "inline-flex",
|
|
1749
1724
|
alignItems: "center",
|
|
@@ -1804,7 +1779,7 @@ const pe = {
|
|
|
1804
1779
|
textDecorationLine: "none !important"
|
|
1805
1780
|
}
|
|
1806
1781
|
}
|
|
1807
|
-
},
|
|
1782
|
+
}, ue = {
|
|
1808
1783
|
".cn-message-bubble": {
|
|
1809
1784
|
display: "flex",
|
|
1810
1785
|
flexDirection: "column",
|
|
@@ -1830,7 +1805,7 @@ const pe = {
|
|
|
1830
1805
|
gap: "var(--cn-spacing-1)"
|
|
1831
1806
|
}
|
|
1832
1807
|
}
|
|
1833
|
-
},
|
|
1808
|
+
}, me = {
|
|
1834
1809
|
".cn-meter": {
|
|
1835
1810
|
"@apply flex h-[19px] items-stretch gap-cn-3xs": "",
|
|
1836
1811
|
"&:has(.cn-meter-tooltip-bar:hover) .cn-meter-bar:not(:hover)": {
|
|
@@ -1844,10 +1819,10 @@ const pe = {
|
|
|
1844
1819
|
transition: "all 0.15s"
|
|
1845
1820
|
}
|
|
1846
1821
|
}
|
|
1847
|
-
},
|
|
1848
|
-
function
|
|
1822
|
+
}, xe = ["danger", "warning"];
|
|
1823
|
+
function ye() {
|
|
1849
1824
|
const r = {};
|
|
1850
|
-
return
|
|
1825
|
+
return xe.forEach((e) => {
|
|
1851
1826
|
r[`&:where(.cn-multi-select-${e}):not(:has(input[disabled]))`] = {
|
|
1852
1827
|
borderColor: `var(--cn-border-${e})`,
|
|
1853
1828
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -1862,7 +1837,7 @@ function me() {
|
|
|
1862
1837
|
};
|
|
1863
1838
|
}), r;
|
|
1864
1839
|
}
|
|
1865
|
-
const
|
|
1840
|
+
const fe = {
|
|
1866
1841
|
".cn-multi-select": {
|
|
1867
1842
|
"&-outer-container": {
|
|
1868
1843
|
"@apply flex flex-col gap-cn-xs": ""
|
|
@@ -1882,7 +1857,7 @@ const xe = {
|
|
|
1882
1857
|
"&:where(:hover):not(:has(input[disabled]))": {
|
|
1883
1858
|
borderColor: "var(--cn-border-brand)"
|
|
1884
1859
|
},
|
|
1885
|
-
...
|
|
1860
|
+
...ye()
|
|
1886
1861
|
},
|
|
1887
1862
|
"&-tag-wrapper": {
|
|
1888
1863
|
"@apply relative flex flex-wrap items-center gap-cn-xs": ""
|
|
@@ -1909,7 +1884,7 @@ const xe = {
|
|
|
1909
1884
|
"@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": ""
|
|
1910
1885
|
}
|
|
1911
1886
|
}
|
|
1912
|
-
},
|
|
1887
|
+
}, we = {
|
|
1913
1888
|
".cn-pagination": {
|
|
1914
1889
|
"&-root": {
|
|
1915
1890
|
containerType: "inline-size",
|
|
@@ -1949,7 +1924,7 @@ const xe = {
|
|
|
1949
1924
|
paddingInline: "var(--cn-pagination-btn-px)"
|
|
1950
1925
|
}
|
|
1951
1926
|
}
|
|
1952
|
-
},
|
|
1927
|
+
}, ke = {
|
|
1953
1928
|
".cn-popover": {
|
|
1954
1929
|
"&-content": {
|
|
1955
1930
|
display: "grid",
|
|
@@ -2033,7 +2008,7 @@ const xe = {
|
|
|
2033
2008
|
}
|
|
2034
2009
|
}
|
|
2035
2010
|
}
|
|
2036
|
-
},
|
|
2011
|
+
}, Ce = ["sm", "md", "lg"], Se = ["processing", "completed", "paused", "failed"], i = {
|
|
2037
2012
|
processing: {
|
|
2038
2013
|
progressBg: "progress",
|
|
2039
2014
|
color: "text-cn-3"
|
|
@@ -2050,25 +2025,25 @@ const xe = {
|
|
|
2050
2025
|
progressBg: "danger",
|
|
2051
2026
|
color: "text-danger"
|
|
2052
2027
|
}
|
|
2053
|
-
}, b = "var(--cn-comp-slider-track-progress-stripes)",
|
|
2028
|
+
}, b = "var(--cn-comp-slider-track-progress-stripes)", ze = `linear-gradient(45deg,
|
|
2054
2029
|
${b} 18.75%,
|
|
2055
2030
|
transparent 18.75%,
|
|
2056
2031
|
transparent 50%,
|
|
2057
2032
|
${b} 50%,
|
|
2058
2033
|
${b} 68.75%,
|
|
2059
2034
|
transparent 68.75%,
|
|
2060
|
-
transparent)`,
|
|
2061
|
-
function
|
|
2035
|
+
transparent)`, $e = (r) => r === "sm" ? "8px 8px" : r === "lg" ? "32px 32px" : "16px 16px";
|
|
2036
|
+
function Ie() {
|
|
2062
2037
|
const r = {};
|
|
2063
|
-
return
|
|
2038
|
+
return Ce.forEach((e) => {
|
|
2064
2039
|
const n = {};
|
|
2065
2040
|
n[" .cn-progress-root"] = {
|
|
2066
2041
|
height: `var(--cn-progress-size-${e})`
|
|
2067
2042
|
}, n[" .cn-progress-processing-fake"] = {
|
|
2068
|
-
"background-size":
|
|
2043
|
+
"background-size": $e(e),
|
|
2069
2044
|
"animation-name": `cnProgressBar-${e}`
|
|
2070
2045
|
}, r[`&:where(.cn-progress-${e})`] = n;
|
|
2071
|
-
}),
|
|
2046
|
+
}), Se.forEach((e) => {
|
|
2072
2047
|
const n = {};
|
|
2073
2048
|
n[" .cn-progress-root::-webkit-progress-value"] = {
|
|
2074
2049
|
"background-color": `var(--cn-comp-slider-track-${i[e].progressBg})`
|
|
@@ -2083,7 +2058,7 @@ function ze() {
|
|
|
2083
2058
|
}, r[`&:where(.cn-progress-${e})`] = n;
|
|
2084
2059
|
}), r;
|
|
2085
2060
|
}
|
|
2086
|
-
const
|
|
2061
|
+
const Re = {
|
|
2087
2062
|
".cn-progress": {
|
|
2088
2063
|
"&-container": {
|
|
2089
2064
|
position: "relative"
|
|
@@ -2168,13 +2143,13 @@ const $e = {
|
|
|
2168
2143
|
},
|
|
2169
2144
|
"&-processing-fake": {
|
|
2170
2145
|
"background-color": "var(--cn-comp-slider-track-progress)",
|
|
2171
|
-
"background-image":
|
|
2146
|
+
"background-image": ze,
|
|
2172
2147
|
"background-size": "16px 16px",
|
|
2173
2148
|
height: "100%",
|
|
2174
2149
|
width: "100%",
|
|
2175
2150
|
animation: "cnProgressBar-md 0.8s linear infinite"
|
|
2176
2151
|
},
|
|
2177
|
-
...
|
|
2152
|
+
...Ie(),
|
|
2178
2153
|
"@keyframes cnProgressIndeterminateAnimation": {
|
|
2179
2154
|
"0%": {
|
|
2180
2155
|
transform: "translateX(-100%)"
|
|
@@ -2208,7 +2183,7 @@ const $e = {
|
|
|
2208
2183
|
}
|
|
2209
2184
|
}
|
|
2210
2185
|
}
|
|
2211
|
-
},
|
|
2186
|
+
}, Te = {
|
|
2212
2187
|
"@property --cn-angle": {
|
|
2213
2188
|
syntax: '"<angle>"',
|
|
2214
2189
|
inherits: "true",
|
|
@@ -2274,13 +2249,12 @@ const $e = {
|
|
|
2274
2249
|
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)"
|
|
2275
2250
|
}
|
|
2276
2251
|
}
|
|
2277
|
-
},
|
|
2252
|
+
}, Be = {
|
|
2278
2253
|
":where(.cn-radio-control)": {
|
|
2279
|
-
|
|
2254
|
+
[`@apply ${g}`]: ""
|
|
2280
2255
|
},
|
|
2281
2256
|
":where(.cn-radio-root)": {
|
|
2282
|
-
|
|
2283
|
-
gap: "var(--cn-layout-sm)"
|
|
2257
|
+
[`@apply grid ${g}`]: ""
|
|
2284
2258
|
},
|
|
2285
2259
|
".cn-radio-item-wrapper": {
|
|
2286
2260
|
display: "flex",
|
|
@@ -2360,7 +2334,7 @@ const $e = {
|
|
|
2360
2334
|
"@apply opacity-cn-disabled": ""
|
|
2361
2335
|
}
|
|
2362
2336
|
}
|
|
2363
|
-
},
|
|
2337
|
+
}, We = {
|
|
2364
2338
|
".cn-reasoning": {
|
|
2365
2339
|
marginBottom: "var(--cn-spacing-4)"
|
|
2366
2340
|
},
|
|
@@ -2413,7 +2387,7 @@ const $e = {
|
|
|
2413
2387
|
opacity: "0"
|
|
2414
2388
|
}
|
|
2415
2389
|
}
|
|
2416
|
-
},
|
|
2390
|
+
}, Le = {
|
|
2417
2391
|
".cn-repo": {
|
|
2418
2392
|
"&-header": {
|
|
2419
2393
|
paddingTop: "var(--cn-page-container-spacing-py)",
|
|
@@ -2428,7 +2402,7 @@ const $e = {
|
|
|
2428
2402
|
}
|
|
2429
2403
|
}
|
|
2430
2404
|
}
|
|
2431
|
-
},
|
|
2405
|
+
}, Ae = {
|
|
2432
2406
|
".cn-sandbox-layout": {
|
|
2433
2407
|
"&-content": {
|
|
2434
2408
|
paddingTop: "var(--cn-page-container-spacing-py)",
|
|
@@ -2444,7 +2418,7 @@ const $e = {
|
|
|
2444
2418
|
paddingRight: "var(--cn-page-container-spacing-px)"
|
|
2445
2419
|
}
|
|
2446
2420
|
}
|
|
2447
|
-
},
|
|
2421
|
+
}, He = {
|
|
2448
2422
|
".cn-scroll-area": {
|
|
2449
2423
|
"@apply overflow-auto grid min-w-full": "",
|
|
2450
2424
|
"&-content": {
|
|
@@ -2466,10 +2440,10 @@ const $e = {
|
|
|
2466
2440
|
}
|
|
2467
2441
|
}
|
|
2468
2442
|
}
|
|
2469
|
-
},
|
|
2470
|
-
function
|
|
2443
|
+
}, je = ["danger", "warning"], Ee = ["sm"];
|
|
2444
|
+
function De() {
|
|
2471
2445
|
const r = {};
|
|
2472
|
-
return
|
|
2446
|
+
return je.forEach((e) => {
|
|
2473
2447
|
r[`&:where(.cn-select-${e}):not(:disabled)`] = {
|
|
2474
2448
|
borderColor: `var(--cn-border-${e})`,
|
|
2475
2449
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -2478,7 +2452,7 @@ function je() {
|
|
|
2478
2452
|
boxShadow: `var(--cn-ring-${e}-hover)`
|
|
2479
2453
|
}
|
|
2480
2454
|
};
|
|
2481
|
-
}),
|
|
2455
|
+
}), Ee.forEach((e) => {
|
|
2482
2456
|
r[`&.cn-select-${e}`] = {
|
|
2483
2457
|
height: `var(--cn-input-size-${e})`
|
|
2484
2458
|
}, r[`&.cn-select-${e} .cn-select-trigger`] = {
|
|
@@ -2486,7 +2460,7 @@ function je() {
|
|
|
2486
2460
|
};
|
|
2487
2461
|
}), r;
|
|
2488
2462
|
}
|
|
2489
|
-
const
|
|
2463
|
+
const Pe = {
|
|
2490
2464
|
".cn-select": {
|
|
2491
2465
|
display: "flex",
|
|
2492
2466
|
alignItems: "center",
|
|
@@ -2537,9 +2511,9 @@ const Ee = {
|
|
|
2537
2511
|
aspectRatio: "1",
|
|
2538
2512
|
height: "100%"
|
|
2539
2513
|
},
|
|
2540
|
-
...
|
|
2514
|
+
...De()
|
|
2541
2515
|
}
|
|
2542
|
-
},
|
|
2516
|
+
}, Oe = {
|
|
2543
2517
|
".cn-shimmer": {
|
|
2544
2518
|
position: "relative",
|
|
2545
2519
|
display: "inline-block",
|
|
@@ -2550,7 +2524,7 @@ const Ee = {
|
|
|
2550
2524
|
backgroundImage: "var(--shimmer-highlight), linear-gradient(var(--shimmer-color), var(--shimmer-color))",
|
|
2551
2525
|
backgroundRepeat: "no-repeat, padding-box"
|
|
2552
2526
|
}
|
|
2553
|
-
},
|
|
2527
|
+
}, _e = {
|
|
2554
2528
|
".cn-shortcut": {
|
|
2555
2529
|
"&, &.cn-input-suffix": {
|
|
2556
2530
|
display: "inline-flex",
|
|
@@ -2567,15 +2541,15 @@ const Ee = {
|
|
|
2567
2541
|
}, d = (r) => ({
|
|
2568
2542
|
color: r,
|
|
2569
2543
|
"& svg, & path": { color: r, stroke: r, fill: "none" }
|
|
2570
|
-
}),
|
|
2544
|
+
}), Xe = {
|
|
2571
2545
|
".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-hover)" },
|
|
2572
2546
|
".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-hover)" }
|
|
2573
|
-
},
|
|
2547
|
+
}, h = {
|
|
2574
2548
|
".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-selected)" },
|
|
2575
2549
|
".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-selected)" }
|
|
2576
|
-
}, h = {
|
|
2577
|
-
"& .cn-sidebar-item-content-icon": { color: "var(--cn-text-1)" }
|
|
2578
2550
|
}, u = {
|
|
2551
|
+
"& .cn-sidebar-item-content-icon": { color: "var(--cn-text-1)" }
|
|
2552
|
+
}, m = {
|
|
2579
2553
|
".cn-sidebar-item-content.cn-sidebar-item-content-w-description": {
|
|
2580
2554
|
".cn-sidebar-item-content-icon": {
|
|
2581
2555
|
alignSelf: "stretch",
|
|
@@ -2583,7 +2557,7 @@ const Ee = {
|
|
|
2583
2557
|
alignItems: "center"
|
|
2584
2558
|
}
|
|
2585
2559
|
}
|
|
2586
|
-
},
|
|
2560
|
+
}, Fe = {
|
|
2587
2561
|
"& .cn-input-prefix": {
|
|
2588
2562
|
"@apply ml-0": ""
|
|
2589
2563
|
},
|
|
@@ -2748,7 +2722,7 @@ const Ee = {
|
|
|
2748
2722
|
overflow: "hidden",
|
|
2749
2723
|
"@apply duration-150 transition-[max-width,margin-left,padding] ease-linear": "",
|
|
2750
2724
|
// Router-active (e.g. NavLink); label colors — hover is handled on .cn-sidebar-item-wrapper
|
|
2751
|
-
"&-active":
|
|
2725
|
+
"&-active": h,
|
|
2752
2726
|
"&:hover": {
|
|
2753
2727
|
textDecoration: "none !important"
|
|
2754
2728
|
},
|
|
@@ -2789,7 +2763,7 @@ const Ee = {
|
|
|
2789
2763
|
"&[data-active=false] .cn-sidebar-item-content": {
|
|
2790
2764
|
backgroundColor: "var(--cn-state-hover)"
|
|
2791
2765
|
},
|
|
2792
|
-
...
|
|
2766
|
+
...Xe,
|
|
2793
2767
|
".cn-sidebar-item-action-menu": { opacity: "1" },
|
|
2794
2768
|
".cn-sidebar-item-content-action-buttons": { display: "flex !important" },
|
|
2795
2769
|
".cn-sidebar-item-grip-handle": { opacity: "1" },
|
|
@@ -2799,7 +2773,7 @@ const Ee = {
|
|
|
2799
2773
|
".cn-sidebar-item-content": {
|
|
2800
2774
|
background: "var(--cn-comp-sidebar-item-selected)"
|
|
2801
2775
|
},
|
|
2802
|
-
...
|
|
2776
|
+
...h,
|
|
2803
2777
|
".cn-sidebar-item-action-menu": { opacity: "1" },
|
|
2804
2778
|
".cn-sidebar-item-active-indicator": {
|
|
2805
2779
|
backgroundColor: "var(--cn-set-brand-primary-bg)",
|
|
@@ -2853,7 +2827,7 @@ const Ee = {
|
|
|
2853
2827
|
`,
|
|
2854
2828
|
gridTemplateColumns: "auto 1fr auto"
|
|
2855
2829
|
},
|
|
2856
|
-
...
|
|
2830
|
+
...u
|
|
2857
2831
|
},
|
|
2858
2832
|
"&-w-r-element": {
|
|
2859
2833
|
gridTemplateAreas: '"icon title elem"',
|
|
@@ -2877,7 +2851,7 @@ const Ee = {
|
|
|
2877
2851
|
`,
|
|
2878
2852
|
gridTemplateColumns: "auto 1fr auto auto"
|
|
2879
2853
|
},
|
|
2880
|
-
...
|
|
2854
|
+
...u
|
|
2881
2855
|
},
|
|
2882
2856
|
/** Reserves space for active bar + grip handle so icon/title stay stable when active or dragging */
|
|
2883
2857
|
"&-icon": { gridArea: "icon", marginLeft: "var(--cn-layout-sm)" },
|
|
@@ -3009,7 +2983,7 @@ const Ee = {
|
|
|
3009
2983
|
}
|
|
3010
2984
|
}
|
|
3011
2985
|
},
|
|
3012
|
-
"&[data-state=collapsed]":
|
|
2986
|
+
"&[data-state=collapsed]": Fe
|
|
3013
2987
|
},
|
|
3014
2988
|
".cn-sidebar-popover-measurement": {
|
|
3015
2989
|
position: "fixed",
|
|
@@ -3031,11 +3005,11 @@ const Ee = {
|
|
|
3031
3005
|
width: "var(--cn-size-64)",
|
|
3032
3006
|
height: "100vh",
|
|
3033
3007
|
borderRadius: "0 var(--cn-popover-radius) var(--cn-popover-radius) 0",
|
|
3034
|
-
...
|
|
3008
|
+
...m
|
|
3035
3009
|
},
|
|
3036
3010
|
".cn-popover-content.cn-sidebar-popover": {
|
|
3037
3011
|
backgroundColor: "var(--cn-bg-2)",
|
|
3038
|
-
...
|
|
3012
|
+
...m,
|
|
3039
3013
|
".cn-sidebar-group-header": {
|
|
3040
3014
|
padding: "var(--cn-layout-2xs)"
|
|
3041
3015
|
},
|
|
@@ -3055,33 +3029,33 @@ const Ee = {
|
|
|
3055
3029
|
backgroundColor: "var(--cn-comp-sidebar-separator)"
|
|
3056
3030
|
}
|
|
3057
3031
|
}
|
|
3058
|
-
},
|
|
3059
|
-
function
|
|
3032
|
+
}, Ge = ["sm", "md", "lg", "xs"], Ne = ["2xs", "xs", "sm", "md", "lg", "xl"], Me = ["xs", "sm", "md", "lg"], Ye = ["sm"];
|
|
3033
|
+
function Ue() {
|
|
3060
3034
|
const r = {};
|
|
3061
|
-
return
|
|
3035
|
+
return Ge.forEach((e) => {
|
|
3062
3036
|
r[`&:where(.cn-skeleton-avatar-${e})`] = {
|
|
3063
3037
|
width: `var(--cn-avatar-size-${e})`,
|
|
3064
3038
|
height: `var(--cn-avatar-size-${e})`
|
|
3065
3039
|
};
|
|
3066
3040
|
}), r;
|
|
3067
3041
|
}
|
|
3068
|
-
function
|
|
3069
|
-
const e = r === "icon" ? Ne :
|
|
3042
|
+
function x(r) {
|
|
3043
|
+
const e = r === "icon" ? Ne : Me, n = {};
|
|
3070
3044
|
return e.forEach((o) => {
|
|
3071
3045
|
const a = {};
|
|
3072
3046
|
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;
|
|
3073
3047
|
}), n;
|
|
3074
3048
|
}
|
|
3075
|
-
function
|
|
3049
|
+
function Ke() {
|
|
3076
3050
|
const r = {};
|
|
3077
|
-
return
|
|
3051
|
+
return Ye.forEach((e) => {
|
|
3078
3052
|
r[`&.cn-skeleton-form-item-${e}`] = {
|
|
3079
3053
|
padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`,
|
|
3080
3054
|
height: `var(--cn-input-size-${e})`
|
|
3081
3055
|
};
|
|
3082
3056
|
}), r;
|
|
3083
3057
|
}
|
|
3084
|
-
const
|
|
3058
|
+
const qe = {
|
|
3085
3059
|
".cn-skeleton": {
|
|
3086
3060
|
"&-base": {
|
|
3087
3061
|
backgroundImage: "var(--cn-comp-skeleton-bg)",
|
|
@@ -3096,13 +3070,13 @@ const Ue = {
|
|
|
3096
3070
|
"&:where(.cn-skeleton-avatar-rounded)": {
|
|
3097
3071
|
borderRadius: "var(--cn-avatar-radius-rounded)"
|
|
3098
3072
|
},
|
|
3099
|
-
...
|
|
3073
|
+
...Ue()
|
|
3100
3074
|
},
|
|
3101
3075
|
"&-icon": {
|
|
3102
|
-
...
|
|
3076
|
+
...x("icon")
|
|
3103
3077
|
},
|
|
3104
3078
|
"&-logo": {
|
|
3105
|
-
...
|
|
3079
|
+
...x("logo")
|
|
3106
3080
|
},
|
|
3107
3081
|
"&-typography": {
|
|
3108
3082
|
"&-wrapper": {
|
|
@@ -3132,7 +3106,7 @@ const Ue = {
|
|
|
3132
3106
|
border: "var(--cn-input-border) solid var(--cn-border-2)",
|
|
3133
3107
|
borderRadius: "var(--cn-input-radius)",
|
|
3134
3108
|
backgroundColor: "var(--cn-comp-input-bg)",
|
|
3135
|
-
...
|
|
3109
|
+
...Ke()
|
|
3136
3110
|
}
|
|
3137
3111
|
},
|
|
3138
3112
|
"&-list": {
|
|
@@ -3153,7 +3127,7 @@ const Ue = {
|
|
|
3153
3127
|
backgroundPosition: "-200% 0"
|
|
3154
3128
|
}
|
|
3155
3129
|
}
|
|
3156
|
-
},
|
|
3130
|
+
}, Je = {
|
|
3157
3131
|
".cn-slider": {
|
|
3158
3132
|
display: "flex",
|
|
3159
3133
|
flexDirection: "column",
|
|
@@ -3429,7 +3403,7 @@ const Ue = {
|
|
|
3429
3403
|
}
|
|
3430
3404
|
}
|
|
3431
3405
|
}
|
|
3432
|
-
},
|
|
3406
|
+
}, Qe = {
|
|
3433
3407
|
".cn-stacked-list": {
|
|
3434
3408
|
"@apply w-full bg-cn-1 border rounded-cn-3": "",
|
|
3435
3409
|
"& > *:first-child > .cn-stacked-list-item": {
|
|
@@ -3497,14 +3471,14 @@ const Ue = {
|
|
|
3497
3471
|
}
|
|
3498
3472
|
}
|
|
3499
3473
|
}
|
|
3500
|
-
},
|
|
3501
|
-
[
|
|
3474
|
+
}, S = ".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 = {
|
|
3475
|
+
[S]: {
|
|
3502
3476
|
opacity: "0.45 !important",
|
|
3503
3477
|
transition: "opacity 200ms ease-in-out"
|
|
3504
3478
|
}
|
|
3505
|
-
},
|
|
3479
|
+
}, f = {
|
|
3506
3480
|
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)"
|
|
3507
|
-
},
|
|
3481
|
+
}, Ze = {
|
|
3508
3482
|
".cn-studio-card": {
|
|
3509
3483
|
borderRadius: "var(--cn-rounded-4)",
|
|
3510
3484
|
border: "1px solid var(--cn-border-2)",
|
|
@@ -3543,9 +3517,9 @@ const Ue = {
|
|
|
3543
3517
|
"&:has(.cn-studio-card-group:hover)": {
|
|
3544
3518
|
backgroundColor: "lch(from var(--cn-bg-3) l c h / 0.45) !important",
|
|
3545
3519
|
borderColor: "lch(from var(--cn-border-2) l c h / 0.65) !important",
|
|
3546
|
-
...
|
|
3520
|
+
...f,
|
|
3547
3521
|
">": {
|
|
3548
|
-
...
|
|
3522
|
+
...y
|
|
3549
3523
|
}
|
|
3550
3524
|
},
|
|
3551
3525
|
// Group card variant
|
|
@@ -3637,8 +3611,8 @@ const Ue = {
|
|
|
3637
3611
|
'&:not(:has(> [data-status="executing"]))': {
|
|
3638
3612
|
borderColor: "lch(from var(--cn-border-2) l c h / 0.65) !important"
|
|
3639
3613
|
},
|
|
3640
|
-
...
|
|
3641
|
-
...
|
|
3614
|
+
...f,
|
|
3615
|
+
...y
|
|
3642
3616
|
},
|
|
3643
3617
|
// Preserve opacity for the hovered group itself
|
|
3644
3618
|
"& .cn-studio-card-group:hover": {
|
|
@@ -3652,7 +3626,7 @@ const Ue = {
|
|
|
3652
3626
|
// borderColor: 'lch(from var(--cn-border-2) l c h / 0.65) !important',
|
|
3653
3627
|
},
|
|
3654
3628
|
"@apply shadow-cn-3": "",
|
|
3655
|
-
[
|
|
3629
|
+
[S]: {
|
|
3656
3630
|
opacity: "1 !important"
|
|
3657
3631
|
}
|
|
3658
3632
|
}
|
|
@@ -3774,7 +3748,7 @@ const Ue = {
|
|
|
3774
3748
|
}
|
|
3775
3749
|
}
|
|
3776
3750
|
}
|
|
3777
|
-
},
|
|
3751
|
+
}, er = {
|
|
3778
3752
|
".cn-switch-wrapper": {
|
|
3779
3753
|
display: "flex",
|
|
3780
3754
|
gap: "var(--cn-spacing-2-half)",
|
|
@@ -3863,7 +3837,7 @@ const Ue = {
|
|
|
3863
3837
|
},
|
|
3864
3838
|
"@apply truncate": ""
|
|
3865
3839
|
}
|
|
3866
|
-
},
|
|
3840
|
+
}, rr = {
|
|
3867
3841
|
".cn-table-v2": {
|
|
3868
3842
|
"@apply w-full": "",
|
|
3869
3843
|
// Table container
|
|
@@ -4037,7 +4011,7 @@ const Ue = {
|
|
|
4037
4011
|
".cn-row-pin-on": {
|
|
4038
4012
|
opacity: "1"
|
|
4039
4013
|
}
|
|
4040
|
-
},
|
|
4014
|
+
}, nr = {
|
|
4041
4015
|
".cn-tabs-scroll-container": {
|
|
4042
4016
|
position: "relative",
|
|
4043
4017
|
width: "100%",
|
|
@@ -4197,7 +4171,7 @@ const Ue = {
|
|
|
4197
4171
|
"@apply opacity-cn-disabled": ""
|
|
4198
4172
|
}
|
|
4199
4173
|
}
|
|
4200
|
-
},
|
|
4174
|
+
}, ar = [
|
|
4201
4175
|
"gray",
|
|
4202
4176
|
"blue",
|
|
4203
4177
|
"brown",
|
|
@@ -4213,24 +4187,24 @@ const Ue = {
|
|
|
4213
4187
|
"red",
|
|
4214
4188
|
"violet",
|
|
4215
4189
|
"yellow"
|
|
4216
|
-
],
|
|
4190
|
+
], or = {
|
|
4217
4191
|
green: "success",
|
|
4218
4192
|
red: "danger",
|
|
4219
4193
|
yellow: "warning"
|
|
4220
|
-
},
|
|
4194
|
+
}, w = (r, e) => ({
|
|
4221
4195
|
backgroundColor: `var(--cn-set-${r}-${e ? "outline-bg-hover" : "secondary-bg-hover"})`,
|
|
4222
4196
|
borderColor: `var(--cn-set-${r}-${e ? "outline-border" : "secondary-bg-hover"})`
|
|
4223
4197
|
});
|
|
4224
|
-
function
|
|
4198
|
+
function k(r) {
|
|
4225
4199
|
const e = {};
|
|
4226
|
-
return
|
|
4227
|
-
const o =
|
|
4200
|
+
return ar.forEach((n) => {
|
|
4201
|
+
const o = or[n] ?? n, a = r === "outline", t = {
|
|
4228
4202
|
color: `var(--cn-set-${o}-${a ? "outline-text" : "secondary-text"})`,
|
|
4229
4203
|
backgroundColor: `var(--cn-set-${o}-${a ? "outline-bg" : "secondary-bg"})`,
|
|
4230
4204
|
borderColor: `var(--cn-set-${o}-${a ? "outline-border" : "secondary-bg"})`,
|
|
4231
|
-
"&.cn-tag-hoverable:hover:not(.cn-tag-split *)":
|
|
4205
|
+
"&.cn-tag-hoverable:hover:not(.cn-tag-split *)": w(o, a),
|
|
4232
4206
|
"&:where(.cn-tag-split-left)": {
|
|
4233
|
-
".cn-tag-split.cn-tag-split-hoverable:hover &":
|
|
4207
|
+
".cn-tag-split.cn-tag-split-hoverable:hover &": w(o, a)
|
|
4234
4208
|
},
|
|
4235
4209
|
"&:where(.cn-tag-split-right)": a ? {
|
|
4236
4210
|
borderColor: `var(--cn-set-${o}-secondary-bg)`,
|
|
@@ -4251,7 +4225,7 @@ function w(r) {
|
|
|
4251
4225
|
e[`&:where(.cn-tag-${o})`] = t;
|
|
4252
4226
|
}), e;
|
|
4253
4227
|
}
|
|
4254
|
-
const
|
|
4228
|
+
const tr = {
|
|
4255
4229
|
".cn-tag": {
|
|
4256
4230
|
display: "inline-flex",
|
|
4257
4231
|
alignItems: "center",
|
|
@@ -4297,19 +4271,19 @@ const ar = {
|
|
|
4297
4271
|
}
|
|
4298
4272
|
},
|
|
4299
4273
|
"&:where(.cn-tag-outline)": {
|
|
4300
|
-
...
|
|
4274
|
+
...k("outline")
|
|
4301
4275
|
},
|
|
4302
4276
|
"&:where(.cn-tag-secondary)": {
|
|
4303
|
-
...
|
|
4277
|
+
...k("secondary")
|
|
4304
4278
|
},
|
|
4305
4279
|
".cn-tag-text": {
|
|
4306
4280
|
"@apply truncate leading-normal align-middle inline-block": ""
|
|
4307
4281
|
}
|
|
4308
4282
|
}
|
|
4309
|
-
},
|
|
4310
|
-
function
|
|
4283
|
+
}, cr = ["danger", "warning"], ir = ["sm"];
|
|
4284
|
+
function dr() {
|
|
4311
4285
|
const r = {};
|
|
4312
|
-
return
|
|
4286
|
+
return cr.forEach((e) => {
|
|
4313
4287
|
r[`&:where(.cn-textarea-${e}):not(:disabled)`] = {
|
|
4314
4288
|
borderColor: `var(--cn-border-${e})`,
|
|
4315
4289
|
boxShadow: `var(--cn-ring-${e})`,
|
|
@@ -4322,13 +4296,13 @@ function cr() {
|
|
|
4322
4296
|
boxShadow: `var(--cn-ring-${e})`
|
|
4323
4297
|
}
|
|
4324
4298
|
};
|
|
4325
|
-
}),
|
|
4299
|
+
}), ir.forEach((e) => {
|
|
4326
4300
|
r[`&.cn-textarea-${e}`] = {
|
|
4327
4301
|
padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`
|
|
4328
4302
|
};
|
|
4329
4303
|
}), r;
|
|
4330
4304
|
}
|
|
4331
|
-
const
|
|
4305
|
+
const lr = {
|
|
4332
4306
|
".cn-textarea": {
|
|
4333
4307
|
borderRadius: "var(--cn-input-radius)",
|
|
4334
4308
|
padding: "var(--cn-input-md-py) var(--cn-input-md-pr) var(--cn-input-md-py) var(--cn-input-md-pl)",
|
|
@@ -4367,7 +4341,7 @@ const ir = {
|
|
|
4367
4341
|
"&-resizable": {
|
|
4368
4342
|
resize: "vertical"
|
|
4369
4343
|
},
|
|
4370
|
-
...
|
|
4344
|
+
...dr(),
|
|
4371
4345
|
"&-label-wrapper": {
|
|
4372
4346
|
display: "flex",
|
|
4373
4347
|
alignItems: "center",
|
|
@@ -4388,7 +4362,7 @@ const ir = {
|
|
|
4388
4362
|
}
|
|
4389
4363
|
}
|
|
4390
4364
|
}
|
|
4391
|
-
},
|
|
4365
|
+
}, sr = {
|
|
4392
4366
|
".cn-time-ago-card": {
|
|
4393
4367
|
"&-trigger": {
|
|
4394
4368
|
"@apply leading-snug whitespace-nowrap truncate max-w-full": "",
|
|
@@ -4410,7 +4384,7 @@ const ir = {
|
|
|
4410
4384
|
"@apply grid grid-cols-[auto_1fr_auto] items-center whitespace-nowrap": ""
|
|
4411
4385
|
}
|
|
4412
4386
|
}
|
|
4413
|
-
},
|
|
4387
|
+
}, pr = {
|
|
4414
4388
|
".cn-toast-wrapper": {
|
|
4415
4389
|
right: "var(--cn-toast-offset-right)",
|
|
4416
4390
|
bottom: "var(--cn-toast-offset-bottom)"
|
|
@@ -4486,9 +4460,9 @@ const ir = {
|
|
|
4486
4460
|
}
|
|
4487
4461
|
}
|
|
4488
4462
|
}
|
|
4489
|
-
},
|
|
4463
|
+
}, br = ["xs", "sm", "md"], gr = () => {
|
|
4490
4464
|
const r = {};
|
|
4491
|
-
return
|
|
4465
|
+
return br.forEach((e) => {
|
|
4492
4466
|
r[`&.cn-toggle-${e}.cn-toggle-transparent.cn-toggle-text`] = {
|
|
4493
4467
|
paddingLeft: `var(--cn-btn-px-${e})`,
|
|
4494
4468
|
paddingRight: `var(--cn-btn-px-${e})`,
|
|
@@ -4497,15 +4471,15 @@ const ir = {
|
|
|
4497
4471
|
border: "var(--cn-btn-border) solid transparent"
|
|
4498
4472
|
};
|
|
4499
4473
|
}), r;
|
|
4500
|
-
},
|
|
4474
|
+
}, vr = {
|
|
4501
4475
|
".cn-toggle": {
|
|
4502
4476
|
transitionDuration: "100ms",
|
|
4503
|
-
...
|
|
4477
|
+
...gr(),
|
|
4504
4478
|
'&[data-state="on"]': {
|
|
4505
4479
|
color: "var(--cn-text-1)"
|
|
4506
4480
|
}
|
|
4507
4481
|
}
|
|
4508
|
-
},
|
|
4482
|
+
}, hr = {
|
|
4509
4483
|
".cn-toggle-group": {
|
|
4510
4484
|
gap: "var(--cn-layout-3xs)",
|
|
4511
4485
|
"@apply flex": "",
|
|
@@ -4513,7 +4487,7 @@ const ir = {
|
|
|
4513
4487
|
"@apply flex-col": ""
|
|
4514
4488
|
}
|
|
4515
4489
|
}
|
|
4516
|
-
},
|
|
4490
|
+
}, ur = {
|
|
4517
4491
|
".cn-tooltip": {
|
|
4518
4492
|
minWidth: "var(--cn-tooltip-min)",
|
|
4519
4493
|
maxWidth: "var(--cn-tooltip-max)",
|
|
@@ -4565,17 +4539,17 @@ const ir = {
|
|
|
4565
4539
|
}
|
|
4566
4540
|
}
|
|
4567
4541
|
}
|
|
4568
|
-
},
|
|
4542
|
+
}, C = {
|
|
4569
4543
|
"@apply text-cn-2 font-body-normal": "",
|
|
4570
4544
|
minHeight: "var(--cn-tree-item-height)",
|
|
4571
4545
|
padding: "var(--cn-tree-item-py) var(--cn-tree-item-pr) var(--cn-tree-item-py)"
|
|
4572
|
-
},
|
|
4546
|
+
}, mr = {
|
|
4573
4547
|
".cn-file-tree": {
|
|
4574
4548
|
"&-base-item": {
|
|
4575
|
-
...
|
|
4549
|
+
...C
|
|
4576
4550
|
},
|
|
4577
4551
|
"&-item": {
|
|
4578
|
-
...
|
|
4552
|
+
...C,
|
|
4579
4553
|
"@apply relative gap-cn-3xs flex items-center w-[fill-available]": "",
|
|
4580
4554
|
"&-wrapper": {
|
|
4581
4555
|
"@apply relative transition-colors": "",
|
|
@@ -4615,71 +4589,71 @@ const ir = {
|
|
|
4615
4589
|
}
|
|
4616
4590
|
}
|
|
4617
4591
|
}
|
|
4618
|
-
},
|
|
4619
|
-
I,
|
|
4592
|
+
}, xr = [
|
|
4620
4593
|
B,
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
oe,
|
|
4624
|
-
Qe,
|
|
4625
|
-
be,
|
|
4626
|
-
ar,
|
|
4627
|
-
ge,
|
|
4628
|
-
A,
|
|
4629
|
-
K,
|
|
4630
|
-
Q,
|
|
4631
|
-
ye,
|
|
4632
|
-
$e,
|
|
4633
|
-
re,
|
|
4594
|
+
H,
|
|
4595
|
+
F,
|
|
4634
4596
|
q,
|
|
4597
|
+
ie,
|
|
4635
4598
|
er,
|
|
4599
|
+
ve,
|
|
4600
|
+
tr,
|
|
4601
|
+
he,
|
|
4602
|
+
D,
|
|
4636
4603
|
ee,
|
|
4637
|
-
|
|
4638
|
-
|
|
4604
|
+
re,
|
|
4605
|
+
we,
|
|
4606
|
+
Re,
|
|
4607
|
+
oe,
|
|
4608
|
+
Q,
|
|
4609
|
+
nr,
|
|
4610
|
+
ae,
|
|
4639
4611
|
Le,
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4612
|
+
Ae,
|
|
4613
|
+
He,
|
|
4614
|
+
ke,
|
|
4615
|
+
ur,
|
|
4616
|
+
pr,
|
|
4643
4617
|
Ve,
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
gr,
|
|
4650
|
-
U,
|
|
4651
|
-
Ie,
|
|
4652
|
-
Ue,
|
|
4653
|
-
Je,
|
|
4654
|
-
Ke,
|
|
4618
|
+
V,
|
|
4619
|
+
se,
|
|
4620
|
+
sr,
|
|
4621
|
+
_e,
|
|
4622
|
+
vr,
|
|
4655
4623
|
hr,
|
|
4656
|
-
|
|
4657
|
-
ve,
|
|
4624
|
+
J,
|
|
4658
4625
|
Te,
|
|
4659
|
-
De,
|
|
4660
4626
|
qe,
|
|
4627
|
+
Qe,
|
|
4628
|
+
Ze,
|
|
4629
|
+
mr,
|
|
4630
|
+
me,
|
|
4631
|
+
ue,
|
|
4632
|
+
We,
|
|
4633
|
+
Oe,
|
|
4634
|
+
Je,
|
|
4661
4635
|
// Form styles
|
|
4662
|
-
|
|
4663
|
-
|
|
4636
|
+
Pe,
|
|
4637
|
+
T,
|
|
4638
|
+
ne,
|
|
4639
|
+
Be,
|
|
4640
|
+
lr,
|
|
4641
|
+
ge,
|
|
4664
4642
|
Z,
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
J,
|
|
4669
|
-
xe,
|
|
4670
|
-
Ze
|
|
4671
|
-
], mr = {
|
|
4643
|
+
fe,
|
|
4644
|
+
rr
|
|
4645
|
+
], yr = {
|
|
4672
4646
|
content: [],
|
|
4673
4647
|
plugins: [
|
|
4674
|
-
|
|
4675
|
-
r(
|
|
4648
|
+
$(({ addComponents: r }) => {
|
|
4649
|
+
r(xr);
|
|
4676
4650
|
})
|
|
4677
4651
|
]
|
|
4678
|
-
},
|
|
4679
|
-
presets: [
|
|
4652
|
+
}, kr = {
|
|
4653
|
+
presets: [yr, I],
|
|
4680
4654
|
content: ["./src/**/*.{ts,tsx}"]
|
|
4681
4655
|
};
|
|
4682
4656
|
export {
|
|
4683
|
-
|
|
4657
|
+
kr as default
|
|
4684
4658
|
};
|
|
4685
4659
|
//# sourceMappingURL=tailwind.config.js.map
|