@harnessio/ui 0.5.38 → 0.5.40

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.
@@ -1,6 +1,6 @@
1
- import { p as R, t as I } from "./tailwind-design-system-D9j_K4lL.js";
2
- import { F as S, C as l } from "./form-constants-CdD106iI.js";
3
- const T = {
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 ${S}`]: ""
30
+ [`@apply ${z}`]: ""
31
31
  }
32
32
  },
33
33
  "&-item": {
@@ -100,7 +100,9 @@ const T = {
100
100
  "&-container": {
101
101
  marginTop: "-4px",
102
102
  paddingTop: "4px",
103
- overflow: "hidden",
103
+ // 'clip' instead of 'hidden' — clips during height animation but doesn't
104
+ // create a scroll container, allowing position:sticky inside accordions
105
+ overflow: "clip",
104
106
  "&-card": {
105
107
  "&-sm": {
106
108
  paddingInline: "var(--cn-card-sm-px)"
@@ -113,15 +115,22 @@ const T = {
113
115
  }
114
116
  },
115
117
  '&:where([data-state="open"])': {
116
- "@apply animate-accordion-down": ""
118
+ // Delays overflow:visible until after height animation completes,
119
+ // so content is clipped during expand but can bleed (e.g. sticky headers) when open
120
+ animation: "accordion-down 0.2s ease-out, accordion-overflow 0s 0.2s forwards"
117
121
  },
118
122
  '&:where([data-state="closed"])': {
119
123
  "@apply animate-accordion-up": ""
120
124
  }
121
125
  }
122
126
  }
127
+ },
128
+ "@keyframes accordion-overflow": {
129
+ to: {
130
+ overflow: "visible"
131
+ }
123
132
  }
124
- }, W = ["info", "danger", "warning", "success"], B = {
133
+ }, B = ["info", "danger", "warning", "success"], L = {
125
134
  info: {
126
135
  backgroundColor: "gray-secondary",
127
136
  color: "text-cn-2",
@@ -145,8 +154,8 @@ const T = {
145
154
  };
146
155
  function H() {
147
156
  const r = {};
148
- return W.forEach((e) => {
149
- const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } = B[e];
157
+ return B.forEach((e) => {
158
+ const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } = L[e];
150
159
  n.backgroundColor = `var(--cn-set-${o}-bg)`, n["> .cn-alert-icon"] = {
151
160
  color: `var(--cn-${a})`
152
161
  }, n[" .cn-alert-fade-overlay"] = {
@@ -154,7 +163,7 @@ function H() {
154
163
  }, r[`&:where(.cn-alert-${e})`] = n;
155
164
  }), r;
156
165
  }
157
- const L = {
166
+ const A = {
158
167
  ".cn-alert": {
159
168
  gap: "var(--cn-alert-gap)",
160
169
  paddingTop: "var(--cn-alert-py)",
@@ -245,10 +254,10 @@ const L = {
245
254
  },
246
255
  ...H()
247
256
  }
248
- }, A = ["md", "sm", "lg", "xs"];
249
- function D() {
257
+ }, D = ["md", "sm", "lg", "xs"];
258
+ function E() {
250
259
  const r = {};
251
- return A.forEach((e) => {
260
+ return D.forEach((e) => {
252
261
  e === "xs" ? r[`&:where(.cn-avatar-${e})`] = {
253
262
  height: `var(--cn-avatar-size-${e})`,
254
263
  width: `var(--cn-avatar-size-${e})`,
@@ -263,7 +272,7 @@ function D() {
263
272
  };
264
273
  }), r;
265
274
  }
266
- const E = {
275
+ const j = {
267
276
  ".cn-avatar": {
268
277
  display: "inline-flex",
269
278
  alignItems: "center",
@@ -274,7 +283,7 @@ const E = {
274
283
  boxShadow: "var(--cn-comp-shadow-avatar-inner)",
275
284
  letterSpacing: "var(--cn-tracking-tight)",
276
285
  "@apply shrink-0": "",
277
- ...D(),
286
+ ...E(),
278
287
  "&:where(.cn-avatar-rounded)": {
279
288
  borderRadius: "var(--cn-avatar-radius-rounded)"
280
289
  },
@@ -298,7 +307,7 @@ const E = {
298
307
  // Avatar xs → Icon xs, Avatar sm → Icon sm, Avatar md → Icon sm, Avatar lg → Icon md
299
308
  ".cn-avatar-icon": {}
300
309
  }
301
- }, j = ["primary", "secondary", "outline", "status", "ghost"], P = ["success", "info", "warning", "danger", "muted", "merged", "risk"], O = {
310
+ }, P = ["primary", "secondary", "outline", "status", "ghost"], O = ["success", "info", "warning", "danger", "muted", "merged", "risk"], _ = {
302
311
  success: "success",
303
312
  info: "blue",
304
313
  warning: "warning",
@@ -307,18 +316,18 @@ const E = {
307
316
  merged: "purple",
308
317
  risk: "orange"
309
318
  };
310
- function _() {
319
+ function X() {
311
320
  const r = {}, e = {};
312
- return j.forEach((n) => {
313
- P.forEach((o) => {
314
- const a = {}, t = O[o];
321
+ return P.forEach((n) => {
322
+ O.forEach((o) => {
323
+ const a = {}, t = _[o];
315
324
  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
325
  backgroundColor: `var(--cn-set-${t}-primary-bg)`
317
326
  };
318
327
  });
319
328
  }), { ...r, ...e };
320
329
  }
321
- const X = {
330
+ const F = {
322
331
  ".cn-badge": {
323
332
  paddingBlock: "var(--cn-badge-md-py)",
324
333
  paddingInline: "var(--cn-badge-md-px)",
@@ -371,9 +380,9 @@ const X = {
371
380
  }
372
381
  },
373
382
  /** Variants */
374
- ..._()
383
+ ...X()
375
384
  }
376
- }, F = {
385
+ }, V = {
377
386
  ".cn-breadcrumb": {
378
387
  "@apply flex flex-wrap items-center break-words select-none": "",
379
388
  gap: "var(--cn-spacing-1)"
@@ -476,23 +485,23 @@ const X = {
476
485
  color: "var(--cn-text-1)"
477
486
  }
478
487
  }
479
- }, V = ["primary", "secondary", "outline", "ghost"], Y = ["success", "danger", "default"], G = ["3xs", "2xs", "xs", "sm", "md"], v = "0.99", s = "150ms", p = "ease-in-out", N = {
488
+ }, 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
489
  success: "success",
481
490
  danger: "danger",
482
491
  default: "gray"
483
492
  };
484
- function M() {
493
+ function U() {
485
494
  const r = {}, e = {};
486
- return V.forEach((n) => {
487
- Y.forEach((o) => {
488
- const a = {}, t = N[o];
495
+ return Y.forEach((n) => {
496
+ G.forEach((o) => {
497
+ const a = {}, t = M[o];
489
498
  if (n === "ghost") {
490
499
  a.color = `var(--cn-set-${t}-outline-text)`;
491
- const c = o === "default" ? "var(--cn-state-hover)" : `var(--cn-set-${t}-outline-bg-hover)`, $ = o === "default" ? "var(--cn-state-hover)" : `var(--cn-set-${t}-outline-bg-selected)`;
500
+ 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
501
  a["&:hover:not(:disabled, .cn-button-disabled)"] = {
493
502
  backgroundColor: c
494
503
  }, a["&:active:not(:disabled, .cn-button-disabled), &:where(.cn-button-active), &:where([data-state=open])"] = {
495
- backgroundColor: $
504
+ backgroundColor: R
496
505
  };
497
506
  } else {
498
507
  const c = n === "primary" && o === "default" ? "brand" : t;
@@ -521,9 +530,9 @@ function M() {
521
530
  });
522
531
  }), { ...r, ...e };
523
532
  }
524
- function U() {
533
+ function K() {
525
534
  const r = {};
526
- return G.forEach((e) => {
535
+ return N.forEach((e) => {
527
536
  r[`&:where(.cn-button-${e})`] = {
528
537
  height: `var(--cn-btn-size-${e})`,
529
538
  paddingBlock: `var(--cn-btn-py-${e})`,
@@ -532,7 +541,7 @@ function U() {
532
541
  };
533
542
  }), r;
534
543
  }
535
- const K = {
544
+ const q = {
536
545
  ".cn-button": {
537
546
  transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke, transform, box-shadow, opacity",
538
547
  transitionDuration: s,
@@ -548,7 +557,7 @@ const K = {
548
557
  border: "var(--cn-btn-border) solid var(--cn-set-gray-outline-border)",
549
558
  "@apply font-body-single-line-normal select-none overflow-hidden inline-flex items-center justify-center whitespace-nowrap": "",
550
559
  "&:active:not(:disabled, .cn-button-disabled, .cn-button-split-dropdown)": {
551
- transform: `scale(${v})`
560
+ transform: `scale(${u})`
552
561
  },
553
562
  "&:where(.cn-button-split-dropdown)": {
554
563
  height: "var(--cn-btn-size-md)",
@@ -564,7 +573,7 @@ const K = {
564
573
  }
565
574
  },
566
575
  // sizes
567
- ...U(),
576
+ ...K(),
568
577
  "&:where(.cn-button-xs, .cn-button-3xs, .cn-button-2xs)": {
569
578
  "@apply font-caption-single-line-normal": ""
570
579
  },
@@ -610,7 +619,7 @@ const K = {
610
619
  }
611
620
  },
612
621
  // variant styles
613
- ...M(),
622
+ ...U(),
614
623
  // Rounded
615
624
  "&:where(.cn-button-rounded)": {
616
625
  borderRadius: "var(--cn-btn-rounded-radius)"
@@ -724,10 +733,10 @@ const K = {
724
733
  transform: "none !important"
725
734
  },
726
735
  "&:has(> .cn-button:active)": {
727
- transform: `scale(${v})`
736
+ transform: `scale(${u})`
728
737
  }
729
738
  }
730
- }, q = {
739
+ }, J = {
731
740
  ".cn-button-group": {
732
741
  "@apply flex": "",
733
742
  "&-horizontal": {
@@ -768,7 +777,7 @@ const K = {
768
777
  }
769
778
  }
770
779
  }
771
- }, J = {
780
+ }, Q = {
772
781
  ".cn-button-layout": {
773
782
  gap: "var(--cn-layout-sm)",
774
783
  "@apply flex": "",
@@ -808,7 +817,7 @@ const K = {
808
817
  "@apply flex": ""
809
818
  }
810
819
  }
811
- }, Q = {
820
+ }, Z = {
812
821
  ".cn-caption": {
813
822
  gap: "var(--cn-spacing-1)",
814
823
  "@apply w-full inline-flex items-start": ""
@@ -816,7 +825,7 @@ const K = {
816
825
  ":where([disabled]) + .cn-caption": {
817
826
  "@apply opacity-cn-disabled": ""
818
827
  }
819
- }, Z = {
828
+ }, ee = {
820
829
  ".cn-card": {
821
830
  border: "var(--cn-card-border) solid var(--cn-border-2)",
822
831
  borderRadius: "var(--cn-card-md-radius)",
@@ -901,7 +910,7 @@ const K = {
901
910
  "@apply outline-offset-cn-tight": ""
902
911
  }
903
912
  }
904
- }, ee = {
913
+ }, re = {
905
914
  ".cn-card-select-root": {
906
915
  display: "grid",
907
916
  "&:where(.cn-card-select-horizontal)": {
@@ -977,7 +986,7 @@ const K = {
977
986
  ".cn-card-select-hidden-input": {
978
987
  "@apply sr-only": ""
979
988
  }
980
- }, re = {
989
+ }, ne = {
981
990
  ".cn-checkbox-wrapper": {
982
991
  display: "flex",
983
992
  gap: "var(--cn-spacing-2-half)",
@@ -1106,7 +1115,7 @@ const K = {
1106
1115
  },
1107
1116
  "@apply truncate": ""
1108
1117
  }
1109
- }, ne = {
1118
+ }, ae = {
1110
1119
  ".cn-modal-dialog-overlay": {
1111
1120
  backgroundColor: "var(--cn-comp-dialog-backdrop)",
1112
1121
  padding: "var(--cn-dialog-safezone)",
@@ -1275,7 +1284,7 @@ const K = {
1275
1284
  opacity: "0"
1276
1285
  }
1277
1286
  }
1278
- }, ae = {
1287
+ }, oe = {
1279
1288
  ".cn-drawer": {
1280
1289
  "&-content": {
1281
1290
  userSelect: "auto !important",
@@ -1680,7 +1689,7 @@ const K = {
1680
1689
  }
1681
1690
  }
1682
1691
  }
1683
- }, oe = [
1692
+ }, te = [
1684
1693
  "gray",
1685
1694
  "green",
1686
1695
  "red",
@@ -1695,14 +1704,14 @@ const K = {
1695
1704
  "orange",
1696
1705
  "pink",
1697
1706
  "violet"
1698
- ], te = () => {
1707
+ ], ce = () => {
1699
1708
  const r = {};
1700
- return oe.forEach((e) => {
1709
+ return te.forEach((e) => {
1701
1710
  r[`&.cn-dropdown-menu-item-indicator-${e}`] = {
1702
1711
  backgroundColor: `var(--cn-set-${e}-solid-bg)`
1703
1712
  };
1704
1713
  }), r;
1705
- }, ce = {
1714
+ }, ie = {
1706
1715
  ".cn-dropdown-menu": {
1707
1716
  zIndex: "50",
1708
1717
  minWidth: "var(--cn-dropdown-min-width)",
@@ -1780,7 +1789,7 @@ const K = {
1780
1789
  height: "var(--cn-badge-indicator-size-sm)",
1781
1790
  borderRadius: "var(--cn-rounded-full)",
1782
1791
  flexShrink: "0",
1783
- ...te()
1792
+ ...ce()
1784
1793
  }
1785
1794
  },
1786
1795
  "&-group-label": {
@@ -1808,9 +1817,9 @@ const K = {
1808
1817
  padding: "calc(var(--cn-dropdown-item-py) + var(--cn-spacing-4)) var(--cn-dropdown-item-px)"
1809
1818
  }
1810
1819
  }
1811
- }, ie = {
1820
+ }, de = {
1812
1821
  ".cn-form": {
1813
- [`@apply flex flex-col ${S}`]: ""
1822
+ [`@apply flex flex-col ${z}`]: ""
1814
1823
  },
1815
1824
  ":where(.cn-control-group)": {
1816
1825
  [`@apply relative flex flex-col ${l}`]: "",
@@ -1832,15 +1841,15 @@ const K = {
1832
1841
  ":where(.cn-control-group-input)": {
1833
1842
  [`@apply relative flex flex-col ${l}`]: ""
1834
1843
  }
1835
- }, de = ["2xs", "xs", "sm", "md", "lg", "xl"], le = ["xs", "sm", "md", "lg"];
1844
+ }, le = ["2xs", "xs", "sm", "md", "lg", "xl"], se = ["xs", "sm", "md", "lg"];
1836
1845
  function b(r) {
1837
- const e = r === "icon" ? de : le, n = r === "symbol" ? "logo" : r, o = {};
1846
+ const e = r === "icon" ? le : se, n = r === "symbol" ? "logo" : r, o = {};
1838
1847
  return e.forEach((a) => {
1839
1848
  const t = {};
1840
1849
  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
1850
  }), o;
1842
1851
  }
1843
- const se = {
1852
+ const pe = {
1844
1853
  ".cn-icon": {
1845
1854
  ...b("icon")
1846
1855
  },
@@ -1850,10 +1859,10 @@ const se = {
1850
1859
  ".cn-symbol": {
1851
1860
  ...b("symbol")
1852
1861
  }
1853
- }, pe = ["danger", "warning", "success"];
1854
- function be() {
1862
+ }, be = ["danger", "warning", "success"];
1863
+ function ge() {
1855
1864
  const r = {};
1856
- return pe.forEach((e) => {
1865
+ return be.forEach((e) => {
1857
1866
  r[`&:where(.cn-input-${e}):not(:has(input[disabled]))`] = {
1858
1867
  borderColor: `var(--cn-border-${e})`,
1859
1868
  boxShadow: `var(--cn-ring-${e})`,
@@ -1868,7 +1877,7 @@ function be() {
1868
1877
  };
1869
1878
  }), r;
1870
1879
  }
1871
- const ge = {
1880
+ const ve = {
1872
1881
  ".cn-input": {
1873
1882
  "&-input": {
1874
1883
  height: "100%",
@@ -1956,7 +1965,7 @@ const ge = {
1956
1965
  "@apply h-full border-0 border-l rounded-l-cn-none": "",
1957
1966
  borderColor: "inherit"
1958
1967
  },
1959
- ...be()
1968
+ ...ge()
1960
1969
  },
1961
1970
  "&-search": {
1962
1971
  "&:where(.cn-input-input)": {
@@ -1967,7 +1976,7 @@ const ge = {
1967
1976
  }
1968
1977
  }
1969
1978
  }
1970
- }, ve = {
1979
+ }, ue = {
1971
1980
  ".cn-label": {
1972
1981
  "@apply font-body-normal": "",
1973
1982
  display: "grid",
@@ -1995,7 +2004,7 @@ const ge = {
1995
2004
  color: "var(--cn-set-danger-secondary-text)"
1996
2005
  }
1997
2006
  }
1998
- }, ue = {
2007
+ }, he = {
1999
2008
  ".cn-link": {
2000
2009
  display: "inline-flex",
2001
2010
  alignItems: "center",
@@ -2056,7 +2065,7 @@ const ge = {
2056
2065
  textDecorationLine: "none !important"
2057
2066
  }
2058
2067
  }
2059
- }, he = {
2068
+ }, me = {
2060
2069
  ".cn-message-bubble": {
2061
2070
  display: "flex",
2062
2071
  flexDirection: "column",
@@ -2082,7 +2091,7 @@ const ge = {
2082
2091
  gap: "var(--cn-spacing-1)"
2083
2092
  }
2084
2093
  }
2085
- }, me = {
2094
+ }, xe = {
2086
2095
  ".cn-meter": {
2087
2096
  "@apply flex h-[19px] items-stretch gap-cn-3xs": "",
2088
2097
  "&:has(.cn-meter-tooltip-bar:hover) .cn-meter-bar:not(:hover)": {
@@ -2096,10 +2105,10 @@ const ge = {
2096
2105
  transition: "all 0.15s"
2097
2106
  }
2098
2107
  }
2099
- }, xe = ["danger", "warning"];
2100
- function ye() {
2108
+ }, ye = ["danger", "warning"];
2109
+ function fe() {
2101
2110
  const r = {};
2102
- return xe.forEach((e) => {
2111
+ return ye.forEach((e) => {
2103
2112
  r[`&:where(.cn-multi-select-${e}):not(:has(input[disabled]))`] = {
2104
2113
  borderColor: `var(--cn-border-${e})`,
2105
2114
  boxShadow: `var(--cn-ring-${e})`,
@@ -2114,7 +2123,7 @@ function ye() {
2114
2123
  };
2115
2124
  }), r;
2116
2125
  }
2117
- const fe = {
2126
+ const we = {
2118
2127
  ".cn-multi-select": {
2119
2128
  "&-outer-container": {
2120
2129
  "@apply flex flex-col gap-cn-xs": ""
@@ -2134,7 +2143,7 @@ const fe = {
2134
2143
  "&:where(:hover):not(:has(input[disabled]))": {
2135
2144
  borderColor: "var(--cn-border-brand)"
2136
2145
  },
2137
- ...ye()
2146
+ ...fe()
2138
2147
  },
2139
2148
  "&-tag-wrapper": {
2140
2149
  "@apply relative flex flex-wrap items-center gap-cn-xs": ""
@@ -2161,7 +2170,7 @@ const fe = {
2161
2170
  "@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
2171
  }
2163
2172
  }
2164
- }, we = {
2173
+ }, ke = {
2165
2174
  ".cn-pagination": {
2166
2175
  "&-root": {
2167
2176
  containerType: "inline-size",
@@ -2201,7 +2210,7 @@ const fe = {
2201
2210
  paddingInline: "var(--cn-pagination-btn-px)"
2202
2211
  }
2203
2212
  }
2204
- }, ke = {
2213
+ }, Ce = {
2205
2214
  ".cn-popover": {
2206
2215
  "&-content": {
2207
2216
  display: "grid",
@@ -2285,7 +2294,7 @@ const fe = {
2285
2294
  }
2286
2295
  }
2287
2296
  }
2288
- }, Ce = ["sm", "md", "lg"], Se = ["processing", "completed", "paused", "failed"], i = {
2297
+ }, Se = ["sm", "md", "lg"], ze = ["processing", "completed", "paused", "failed"], i = {
2289
2298
  processing: {
2290
2299
  progressBg: "progress",
2291
2300
  color: "text-cn-3"
@@ -2302,25 +2311,25 @@ const fe = {
2302
2311
  progressBg: "danger",
2303
2312
  color: "text-danger"
2304
2313
  }
2305
- }, g = "var(--cn-comp-slider-track-progress-stripes)", ze = `linear-gradient(45deg,
2314
+ }, g = "var(--cn-comp-slider-track-progress-stripes)", $e = `linear-gradient(45deg,
2306
2315
  ${g} 18.75%,
2307
2316
  transparent 18.75%,
2308
2317
  transparent 50%,
2309
2318
  ${g} 50%,
2310
2319
  ${g} 68.75%,
2311
2320
  transparent 68.75%,
2312
- transparent)`, $e = (r) => r === "sm" ? "8px 8px" : r === "lg" ? "32px 32px" : "16px 16px";
2313
- function Re() {
2321
+ transparent)`, Re = (r) => r === "sm" ? "8px 8px" : r === "lg" ? "32px 32px" : "16px 16px";
2322
+ function Ie() {
2314
2323
  const r = {};
2315
- return Ce.forEach((e) => {
2324
+ return Se.forEach((e) => {
2316
2325
  const n = {};
2317
2326
  n[" .cn-progress-root"] = {
2318
2327
  height: `var(--cn-progress-size-${e})`
2319
2328
  }, n[" .cn-progress-processing-fake"] = {
2320
- "background-size": $e(e),
2329
+ "background-size": Re(e),
2321
2330
  "animation-name": `cnProgressBar-${e}`
2322
2331
  }, r[`&:where(.cn-progress-${e})`] = n;
2323
- }), Se.forEach((e) => {
2332
+ }), ze.forEach((e) => {
2324
2333
  const n = {};
2325
2334
  n[" .cn-progress-root::-webkit-progress-value"] = {
2326
2335
  "background-color": `var(--cn-comp-slider-track-${i[e].progressBg})`
@@ -2335,7 +2344,7 @@ function Re() {
2335
2344
  }, r[`&:where(.cn-progress-${e})`] = n;
2336
2345
  }), r;
2337
2346
  }
2338
- const Ie = {
2347
+ const Te = {
2339
2348
  ".cn-progress": {
2340
2349
  "&-container": {
2341
2350
  position: "relative"
@@ -2420,13 +2429,13 @@ const Ie = {
2420
2429
  },
2421
2430
  "&-processing-fake": {
2422
2431
  "background-color": "var(--cn-comp-slider-track-progress)",
2423
- "background-image": ze,
2432
+ "background-image": $e,
2424
2433
  "background-size": "16px 16px",
2425
2434
  height: "100%",
2426
2435
  width: "100%",
2427
2436
  animation: "cnProgressBar-md 0.8s linear infinite"
2428
2437
  },
2429
- ...Re(),
2438
+ ...Ie(),
2430
2439
  "@keyframes cnProgressIndeterminateAnimation": {
2431
2440
  "0%": {
2432
2441
  transform: "translateX(-100%)"
@@ -2460,7 +2469,7 @@ const Ie = {
2460
2469
  }
2461
2470
  }
2462
2471
  }
2463
- }, Te = {
2472
+ }, We = {
2464
2473
  "@property --cn-angle": {
2465
2474
  syntax: '"<angle>"',
2466
2475
  inherits: "true",
@@ -2526,7 +2535,7 @@ const Ie = {
2526
2535
  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
2536
  }
2528
2537
  }
2529
- }, We = {
2538
+ }, Be = {
2530
2539
  ":where(.cn-radio-control)": {
2531
2540
  [`@apply ${l}`]: ""
2532
2541
  },
@@ -2611,7 +2620,7 @@ const Ie = {
2611
2620
  "@apply opacity-cn-disabled": ""
2612
2621
  }
2613
2622
  }
2614
- }, Be = {
2623
+ }, Le = {
2615
2624
  ".cn-reasoning": {
2616
2625
  marginBottom: "var(--cn-spacing-4)"
2617
2626
  },
@@ -2679,7 +2688,7 @@ const Ie = {
2679
2688
  }
2680
2689
  }
2681
2690
  }
2682
- }, Le = {
2691
+ }, Ae = {
2683
2692
  ".cn-sandbox-layout": {
2684
2693
  "&-content": {
2685
2694
  paddingTop: "var(--cn-page-container-spacing-py)",
@@ -2695,7 +2704,7 @@ const Ie = {
2695
2704
  paddingRight: "var(--cn-page-container-spacing-px)"
2696
2705
  }
2697
2706
  }
2698
- }, Ae = {
2707
+ }, De = {
2699
2708
  ".cn-scroll-area": {
2700
2709
  "@apply overflow-auto grid min-w-full": "",
2701
2710
  "&-content": {
@@ -2717,10 +2726,10 @@ const Ie = {
2717
2726
  }
2718
2727
  }
2719
2728
  }
2720
- }, De = ["danger", "warning"], Ee = ["sm"];
2721
- function je() {
2729
+ }, Ee = ["danger", "warning"], je = ["sm"];
2730
+ function Pe() {
2722
2731
  const r = {};
2723
- return De.forEach((e) => {
2732
+ return Ee.forEach((e) => {
2724
2733
  r[`&:where(.cn-select-${e}):not(:disabled)`] = {
2725
2734
  borderColor: `var(--cn-border-${e})`,
2726
2735
  boxShadow: `var(--cn-ring-${e})`,
@@ -2729,7 +2738,7 @@ function je() {
2729
2738
  boxShadow: `var(--cn-ring-${e}-hover)`
2730
2739
  }
2731
2740
  };
2732
- }), Ee.forEach((e) => {
2741
+ }), je.forEach((e) => {
2733
2742
  r[`&.cn-select-${e}`] = {
2734
2743
  height: `var(--cn-input-size-${e})`
2735
2744
  }, r[`&.cn-select-${e} .cn-select-trigger`] = {
@@ -2737,7 +2746,7 @@ function je() {
2737
2746
  };
2738
2747
  }), r;
2739
2748
  }
2740
- const Pe = {
2749
+ const Oe = {
2741
2750
  ".cn-select": {
2742
2751
  display: "flex",
2743
2752
  alignItems: "center",
@@ -2788,9 +2797,9 @@ const Pe = {
2788
2797
  aspectRatio: "1",
2789
2798
  height: "100%"
2790
2799
  },
2791
- ...je()
2800
+ ...Pe()
2792
2801
  }
2793
- }, Oe = {
2802
+ }, _e = {
2794
2803
  ".cn-shimmer": {
2795
2804
  position: "relative",
2796
2805
  display: "inline-block",
@@ -2801,7 +2810,7 @@ const Pe = {
2801
2810
  backgroundImage: "var(--shimmer-highlight), linear-gradient(var(--shimmer-color), var(--shimmer-color))",
2802
2811
  backgroundRepeat: "no-repeat, padding-box"
2803
2812
  }
2804
- }, _e = {
2813
+ }, Xe = {
2805
2814
  ".cn-shortcut": {
2806
2815
  "&, &.cn-input-suffix": {
2807
2816
  display: "inline-flex",
@@ -2818,15 +2827,15 @@ const Pe = {
2818
2827
  }, d = (r) => ({
2819
2828
  color: r,
2820
2829
  "& svg, & path": { color: r, stroke: r, fill: "none" }
2821
- }), Xe = {
2830
+ }), Fe = {
2822
2831
  ".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-hover)" },
2823
2832
  ".cn-sidebar-item-content-icon": { color: "var(--cn-comp-sidebar-item-text-hover)" }
2824
- }, u = {
2833
+ }, h = {
2825
2834
  ".cn-sidebar-item-content-title": { color: "var(--cn-comp-sidebar-item-text-selected)" },
2826
2835
  ".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
2836
  }, m = {
2837
+ "& .cn-sidebar-item-content-icon": { color: "var(--cn-text-1)" }
2838
+ }, x = {
2830
2839
  ".cn-sidebar-item-content.cn-sidebar-item-content-w-description": {
2831
2840
  ".cn-sidebar-item-content-icon": {
2832
2841
  alignSelf: "stretch",
@@ -2834,7 +2843,7 @@ const Pe = {
2834
2843
  alignItems: "center"
2835
2844
  }
2836
2845
  }
2837
- }, Fe = {
2846
+ }, Ve = {
2838
2847
  "& .cn-input-prefix": {
2839
2848
  "@apply ml-0": ""
2840
2849
  },
@@ -2870,7 +2879,7 @@ const Pe = {
2870
2879
  opacity: "0"
2871
2880
  }
2872
2881
  }
2873
- }, Ve = {
2882
+ }, Ye = {
2874
2883
  ".cn-sidebar": {
2875
2884
  "&.cn-sidebar": {
2876
2885
  display: "flex",
@@ -3001,7 +3010,7 @@ const Pe = {
3001
3010
  overflow: "hidden",
3002
3011
  "@apply duration-150 transition-[max-width,margin-left,padding] ease-linear": "",
3003
3012
  // Router-active (e.g. NavLink); label colors — hover is handled on .cn-sidebar-item-wrapper
3004
- "&-active": u,
3013
+ "&-active": h,
3005
3014
  "&:hover": {
3006
3015
  textDecoration: "none !important"
3007
3016
  },
@@ -3042,7 +3051,7 @@ const Pe = {
3042
3051
  "&[data-active=false] .cn-sidebar-item-content": {
3043
3052
  backgroundColor: "var(--cn-state-hover)"
3044
3053
  },
3045
- ...Xe,
3054
+ ...Fe,
3046
3055
  ".cn-sidebar-item-action-menu": { opacity: "1" },
3047
3056
  ".cn-sidebar-item-content-action-buttons": { display: "flex !important" },
3048
3057
  ".cn-sidebar-item-grip-handle": { opacity: "1" },
@@ -3052,7 +3061,7 @@ const Pe = {
3052
3061
  ".cn-sidebar-item-content": {
3053
3062
  background: "var(--cn-comp-sidebar-item-selected)"
3054
3063
  },
3055
- ...u,
3064
+ ...h,
3056
3065
  ".cn-sidebar-item-action-menu": { opacity: "1" },
3057
3066
  ".cn-sidebar-item-active-indicator": {
3058
3067
  backgroundColor: "var(--cn-set-brand-primary-bg)",
@@ -3106,7 +3115,7 @@ const Pe = {
3106
3115
  `,
3107
3116
  gridTemplateColumns: "auto 1fr auto"
3108
3117
  },
3109
- ...h
3118
+ ...m
3110
3119
  },
3111
3120
  "&-w-r-element": {
3112
3121
  gridTemplateAreas: '"icon title elem"',
@@ -3130,7 +3139,7 @@ const Pe = {
3130
3139
  `,
3131
3140
  gridTemplateColumns: "auto 1fr auto auto"
3132
3141
  },
3133
- ...h
3142
+ ...m
3134
3143
  },
3135
3144
  /** Reserves space for active bar + grip handle so icon/title stay stable when active or dragging */
3136
3145
  "&-icon": { gridArea: "icon", marginLeft: "var(--cn-layout-sm)" },
@@ -3262,7 +3271,7 @@ const Pe = {
3262
3271
  }
3263
3272
  }
3264
3273
  },
3265
- "&[data-state=collapsed]": Fe
3274
+ "&[data-state=collapsed]": Ve
3266
3275
  },
3267
3276
  ".cn-sidebar-popover-measurement": {
3268
3277
  position: "fixed",
@@ -3284,11 +3293,11 @@ const Pe = {
3284
3293
  width: "var(--cn-size-64)",
3285
3294
  height: "100vh",
3286
3295
  borderRadius: "0 var(--cn-popover-radius) var(--cn-popover-radius) 0",
3287
- ...m
3296
+ ...x
3288
3297
  },
3289
3298
  ".cn-popover-content.cn-sidebar-popover": {
3290
3299
  backgroundColor: "var(--cn-bg-2)",
3291
- ...m,
3300
+ ...x,
3292
3301
  ".cn-sidebar-group-header": {
3293
3302
  padding: "var(--cn-layout-2xs)"
3294
3303
  },
@@ -3308,33 +3317,33 @@ const Pe = {
3308
3317
  backgroundColor: "var(--cn-comp-sidebar-separator)"
3309
3318
  }
3310
3319
  }
3311
- }, Ye = ["sm", "md", "lg", "xs"], Ge = ["2xs", "xs", "sm", "md", "lg", "xl"], Ne = ["xs", "sm", "md", "lg"], Me = ["sm"];
3312
- function Ue() {
3320
+ }, Ge = ["sm", "md", "lg", "xs"], Ne = ["2xs", "xs", "sm", "md", "lg", "xl"], Me = ["xs", "sm", "md", "lg"], Ue = ["sm"];
3321
+ function Ke() {
3313
3322
  const r = {};
3314
- return Ye.forEach((e) => {
3323
+ return Ge.forEach((e) => {
3315
3324
  r[`&:where(.cn-skeleton-avatar-${e})`] = {
3316
3325
  width: `var(--cn-avatar-size-${e})`,
3317
3326
  height: `var(--cn-avatar-size-${e})`
3318
3327
  };
3319
3328
  }), r;
3320
3329
  }
3321
- function x(r) {
3322
- const e = r === "icon" ? Ge : Ne, n = {};
3330
+ function y(r) {
3331
+ const e = r === "icon" ? Ne : Me, n = {};
3323
3332
  return e.forEach((o) => {
3324
3333
  const a = {};
3325
3334
  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
3335
  }), n;
3327
3336
  }
3328
- function Ke() {
3337
+ function qe() {
3329
3338
  const r = {};
3330
- return Me.forEach((e) => {
3339
+ return Ue.forEach((e) => {
3331
3340
  r[`&.cn-skeleton-form-item-${e}`] = {
3332
3341
  padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`,
3333
3342
  height: `var(--cn-input-size-${e})`
3334
3343
  };
3335
3344
  }), r;
3336
3345
  }
3337
- const qe = {
3346
+ const Je = {
3338
3347
  ".cn-skeleton": {
3339
3348
  "&-base": {
3340
3349
  backgroundImage: "var(--cn-comp-skeleton-bg)",
@@ -3349,13 +3358,13 @@ const qe = {
3349
3358
  "&:where(.cn-skeleton-avatar-rounded)": {
3350
3359
  borderRadius: "var(--cn-avatar-radius-rounded)"
3351
3360
  },
3352
- ...Ue()
3361
+ ...Ke()
3353
3362
  },
3354
3363
  "&-icon": {
3355
- ...x("icon")
3364
+ ...y("icon")
3356
3365
  },
3357
3366
  "&-logo": {
3358
- ...x("logo")
3367
+ ...y("logo")
3359
3368
  },
3360
3369
  "&-typography": {
3361
3370
  "&-wrapper": {
@@ -3385,7 +3394,7 @@ const qe = {
3385
3394
  border: "var(--cn-input-border) solid var(--cn-border-2)",
3386
3395
  borderRadius: "var(--cn-input-radius)",
3387
3396
  backgroundColor: "var(--cn-comp-input-bg)",
3388
- ...Ke()
3397
+ ...qe()
3389
3398
  }
3390
3399
  },
3391
3400
  "&-list": {
@@ -3406,7 +3415,7 @@ const qe = {
3406
3415
  backgroundPosition: "-200% 0"
3407
3416
  }
3408
3417
  }
3409
- }, Je = {
3418
+ }, Qe = {
3410
3419
  ".cn-slider": {
3411
3420
  display: "flex",
3412
3421
  flexDirection: "column",
@@ -3682,7 +3691,7 @@ const qe = {
3682
3691
  }
3683
3692
  }
3684
3693
  }
3685
- }, Qe = {
3694
+ }, Ze = {
3686
3695
  ".cn-stacked-list": {
3687
3696
  "@apply w-full bg-cn-1 border rounded-cn-3": "",
3688
3697
  "& > *:first-child > .cn-stacked-list-item": {
@@ -3750,7 +3759,7 @@ const qe = {
3750
3759
  }
3751
3760
  }
3752
3761
  }
3753
- }, Ze = {
3762
+ }, er = {
3754
3763
  ".cn-sticky-list-section": {
3755
3764
  "@apply relative": "",
3756
3765
  "&-sentinel": {
@@ -3776,15 +3785,32 @@ const qe = {
3776
3785
  "&-content": {
3777
3786
  "@apply relative": ""
3778
3787
  }
3788
+ },
3789
+ // Contained mode: for sticky lists nested inside non-drawer containers (e.g. form inputs).
3790
+ // Set --cn-sticky-container-padding on an ancestor to control how far the header bleeds.
3791
+ ".cn-sticky-list-section-contained": {
3792
+ "--cn-sticky-container": "var(--cn-sticky-container-padding, 0px)"
3793
+ },
3794
+ ".cn-sticky-list-section-contained .cn-sticky-list-section-header": {
3795
+ top: "0",
3796
+ backgroundColor: "transparent",
3797
+ marginLeft: "calc(-1 * var(--cn-sticky-container))",
3798
+ marginRight: "calc(-1 * var(--cn-sticky-container))",
3799
+ paddingLeft: "var(--cn-sticky-container)",
3800
+ paddingRight: "var(--cn-sticky-container)",
3801
+ paddingTop: "0"
3802
+ },
3803
+ ".cn-sticky-list-section-contained .cn-sticky-list-section-header-stuck": {
3804
+ backgroundColor: "var(--cn-sticky-header-bg, var(--cn-bg-1))"
3779
3805
  }
3780
- }, 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 = {
3781
- [z]: {
3806
+ }, $ = ".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 = {
3807
+ [$]: {
3782
3808
  opacity: "0.45 !important",
3783
3809
  transition: "opacity 200ms ease-in-out"
3784
3810
  }
3785
- }, f = {
3811
+ }, w = {
3786
3812
  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
- }, er = {
3813
+ }, rr = {
3788
3814
  ".cn-studio-card": {
3789
3815
  borderRadius: "var(--cn-rounded-4)",
3790
3816
  border: "1px solid var(--cn-border-2)",
@@ -3829,9 +3855,9 @@ const qe = {
3829
3855
  "&:has(.cn-studio-card-group:hover)": {
3830
3856
  backgroundColor: "lch(from var(--cn-bg-3) l c h / 0.45) !important",
3831
3857
  borderColor: "lch(from var(--cn-border-2) l c h / 0.65) !important",
3832
- ...f,
3858
+ ...w,
3833
3859
  ">": {
3834
- ...y
3860
+ ...f
3835
3861
  }
3836
3862
  },
3837
3863
  // Group card variant
@@ -3958,8 +3984,8 @@ const qe = {
3958
3984
  '&:not(:has(> [data-status="executing"]))': {
3959
3985
  borderColor: "lch(from var(--cn-border-2) l c h / 0.65) !important"
3960
3986
  },
3961
- ...f,
3962
- ...y
3987
+ ...w,
3988
+ ...f
3963
3989
  },
3964
3990
  // Preserve opacity for the hovered group itself
3965
3991
  "& .cn-studio-card-group:hover": {
@@ -3973,7 +3999,7 @@ const qe = {
3973
3999
  // borderColor: 'lch(from var(--cn-border-2) l c h / 0.65) !important',
3974
4000
  },
3975
4001
  "@apply shadow-cn-3": "",
3976
- [z]: {
4002
+ [$]: {
3977
4003
  opacity: "1 !important"
3978
4004
  }
3979
4005
  }
@@ -4156,7 +4182,7 @@ const qe = {
4156
4182
  }
4157
4183
  }
4158
4184
  }
4159
- }, rr = {
4185
+ }, nr = {
4160
4186
  ".cn-switch-wrapper": {
4161
4187
  display: "flex",
4162
4188
  gap: "var(--cn-spacing-2-half)",
@@ -4245,7 +4271,7 @@ const qe = {
4245
4271
  },
4246
4272
  "@apply truncate": ""
4247
4273
  }
4248
- }, nr = {
4274
+ }, v = "linear-gradient(var(--cn-table-pinned-overlay), var(--cn-table-pinned-overlay)), var(--cn-table-pinned-base)", ar = {
4249
4275
  ".cn-table-v2": {
4250
4276
  "@apply w-full": "",
4251
4277
  // Table container
@@ -4319,7 +4345,8 @@ const qe = {
4319
4345
  backgroundColor: "var(--cn-state-hover)"
4320
4346
  },
4321
4347
  "&>td.cn-table-v2-cell-pinned": {
4322
- background: "linear-gradient(var(--cn-state-hover), var(--cn-state-hover)), var(--cn-bg-1)"
4348
+ "--cn-table-pinned-overlay": "var(--cn-state-hover)",
4349
+ background: v
4323
4350
  },
4324
4351
  "& .cn-row-pin:not(.cn-row-pin-on)": {
4325
4352
  opacity: "1"
@@ -4346,6 +4373,10 @@ const qe = {
4346
4373
  "&:where([data-checked=true]) td": {
4347
4374
  backgroundColor: "var(--cn-state-selected)"
4348
4375
  },
4376
+ "&:where([data-checked=true]) td.cn-table-v2-cell-pinned": {
4377
+ "--cn-table-pinned-overlay": "var(--cn-state-selected)",
4378
+ background: v
4379
+ },
4349
4380
  "&-expanded": {
4350
4381
  backgroundColor: "var(--cn-state-selected)"
4351
4382
  },
@@ -4368,7 +4399,9 @@ const qe = {
4368
4399
  },
4369
4400
  // Head cell
4370
4401
  "&-head": {
4371
- "@apply text-cn-3 text-left align-middle font-medium overflow-hidden bg-cn-2 transition-colors": "",
4402
+ "--cn-table-pinned-base": "var(--cn-bg-2)",
4403
+ backgroundColor: "var(--cn-table-pinned-base)",
4404
+ "@apply text-cn-3 text-left align-middle font-medium overflow-hidden transition-colors": "",
4372
4405
  "@apply [&:has([role=checkbox])]:py-0 [&:has([role=checkbox])]:!pr-0 [&>[role=checkbox]]:translate-y-[2px]": "",
4373
4406
  "@apply [&:has([role=button])]:py-0 [&:has([role=button])]:!pr-0": "",
4374
4407
  paddingLeft: "var(--cn-table-header-px)",
@@ -4389,6 +4422,10 @@ const qe = {
4389
4422
  "&-head-sortable:hover": {
4390
4423
  backgroundColor: "var(--cn-state-hover)"
4391
4424
  },
4425
+ "&-head-sortable.cn-table-v2-cell-pinned:hover": {
4426
+ "--cn-table-pinned-overlay": "var(--cn-state-hover)",
4427
+ background: v
4428
+ },
4392
4429
  "&-head-divider": {
4393
4430
  position: "absolute",
4394
4431
  top: "0",
@@ -4397,8 +4434,10 @@ const qe = {
4397
4434
  },
4398
4435
  // Data cell
4399
4436
  "&-cell": {
4437
+ "--cn-table-pinned-base": "var(--cn-bg-1)",
4438
+ backgroundColor: "var(--cn-table-pinned-base)",
4400
4439
  position: "relative",
4401
- "@apply align-middle bg-cn-1 transition-colors": "",
4440
+ "@apply align-middle transition-colors": "",
4402
4441
  "@apply [&:has([role=checkbox])]:py-0 [&:has([role=checkbox])]:!pr-0 [&>[role=checkbox]]:translate-y-[2px]": "",
4403
4442
  "@apply [&:has([role=button])]:py-0 [&:has([role=button])]:!pr-0": "",
4404
4443
  paddingLeft: "var(--cn-table-cell-px)",
@@ -4431,7 +4470,7 @@ const qe = {
4431
4470
  ".cn-row-pin-on": {
4432
4471
  opacity: "1"
4433
4472
  }
4434
- }, ar = {
4473
+ }, or = {
4435
4474
  ".cn-tabs-scroll-container": {
4436
4475
  position: "relative",
4437
4476
  width: "100%",
@@ -4656,7 +4695,7 @@ const qe = {
4656
4695
  "@apply opacity-cn-disabled": ""
4657
4696
  }
4658
4697
  }
4659
- }, or = [
4698
+ }, tr = [
4660
4699
  "gray",
4661
4700
  "blue",
4662
4701
  "brown",
@@ -4672,24 +4711,24 @@ const qe = {
4672
4711
  "red",
4673
4712
  "violet",
4674
4713
  "yellow"
4675
- ], tr = {
4714
+ ], cr = {
4676
4715
  green: "success",
4677
4716
  red: "danger",
4678
4717
  yellow: "warning"
4679
- }, w = (r, e) => ({
4718
+ }, k = (r, e) => ({
4680
4719
  backgroundColor: `var(--cn-set-${r}-${e ? "outline-bg-hover" : "secondary-bg-hover"})`,
4681
4720
  borderColor: `var(--cn-set-${r}-${e ? "outline-border" : "secondary-bg-hover"})`
4682
4721
  });
4683
- function k(r) {
4722
+ function C(r) {
4684
4723
  const e = {};
4685
- return or.forEach((n) => {
4686
- const o = tr[n] ?? n, a = r === "outline", t = {
4724
+ return tr.forEach((n) => {
4725
+ const o = cr[n] ?? n, a = r === "outline", t = {
4687
4726
  color: `var(--cn-set-${o}-${a ? "outline-text" : "secondary-text"})`,
4688
4727
  backgroundColor: `var(--cn-set-${o}-${a ? "outline-bg" : "secondary-bg"})`,
4689
4728
  borderColor: `var(--cn-set-${o}-${a ? "outline-border" : "secondary-bg"})`,
4690
- "&.cn-tag-hoverable:hover:not(.cn-tag-split *)": w(o, a),
4729
+ "&.cn-tag-hoverable:hover:not(.cn-tag-split *)": k(o, a),
4691
4730
  "&:where(.cn-tag-split-left)": {
4692
- ".cn-tag-split.cn-tag-split-hoverable:hover &": w(o, a)
4731
+ ".cn-tag-split.cn-tag-split-hoverable:hover &": k(o, a)
4693
4732
  },
4694
4733
  "&:where(.cn-tag-split-right)": a ? {
4695
4734
  borderColor: `var(--cn-set-${o}-secondary-bg)`,
@@ -4710,7 +4749,7 @@ function k(r) {
4710
4749
  e[`&:where(.cn-tag-${o})`] = t;
4711
4750
  }), e;
4712
4751
  }
4713
- const cr = {
4752
+ const ir = {
4714
4753
  ".cn-tag": {
4715
4754
  display: "inline-flex",
4716
4755
  alignItems: "center",
@@ -4756,19 +4795,19 @@ const cr = {
4756
4795
  }
4757
4796
  },
4758
4797
  "&:where(.cn-tag-outline)": {
4759
- ...k("outline")
4798
+ ...C("outline")
4760
4799
  },
4761
4800
  "&:where(.cn-tag-secondary)": {
4762
- ...k("secondary")
4801
+ ...C("secondary")
4763
4802
  },
4764
4803
  ".cn-tag-text": {
4765
4804
  "@apply truncate leading-normal align-middle inline-block": ""
4766
4805
  }
4767
4806
  }
4768
- }, ir = ["danger", "warning"], dr = ["sm"];
4769
- function lr() {
4807
+ }, dr = ["danger", "warning"], lr = ["sm"];
4808
+ function sr() {
4770
4809
  const r = {};
4771
- return ir.forEach((e) => {
4810
+ return dr.forEach((e) => {
4772
4811
  r[`&:where(.cn-textarea-${e}):not(:disabled)`] = {
4773
4812
  borderColor: `var(--cn-border-${e})`,
4774
4813
  boxShadow: `var(--cn-ring-${e})`,
@@ -4781,13 +4820,13 @@ function lr() {
4781
4820
  boxShadow: `var(--cn-ring-${e})`
4782
4821
  }
4783
4822
  };
4784
- }), dr.forEach((e) => {
4823
+ }), lr.forEach((e) => {
4785
4824
  r[`&.cn-textarea-${e}`] = {
4786
4825
  padding: `var(--cn-input-${e}-py) var(--cn-input-${e}-pr) var(--cn-input-${e}-py) var(--cn-input-${e}-pl)`
4787
4826
  };
4788
4827
  }), r;
4789
4828
  }
4790
- const sr = {
4829
+ const pr = {
4791
4830
  ".cn-textarea": {
4792
4831
  borderRadius: "var(--cn-input-radius)",
4793
4832
  padding: "var(--cn-input-md-py) var(--cn-input-md-pr) var(--cn-input-md-py) var(--cn-input-md-pl)",
@@ -4826,7 +4865,7 @@ const sr = {
4826
4865
  "&-resizable": {
4827
4866
  resize: "vertical"
4828
4867
  },
4829
- ...lr(),
4868
+ ...sr(),
4830
4869
  "&-label-wrapper": {
4831
4870
  display: "flex",
4832
4871
  alignItems: "center",
@@ -4847,7 +4886,7 @@ const sr = {
4847
4886
  }
4848
4887
  }
4849
4888
  }
4850
- }, pr = {
4889
+ }, br = {
4851
4890
  ".cn-time-ago-card": {
4852
4891
  "&-trigger": {
4853
4892
  "@apply leading-snug whitespace-nowrap truncate max-w-full": "",
@@ -4869,7 +4908,7 @@ const sr = {
4869
4908
  "@apply grid grid-cols-[auto_1fr_auto] items-center whitespace-nowrap": ""
4870
4909
  }
4871
4910
  }
4872
- }, br = {
4911
+ }, gr = {
4873
4912
  ".cn-toast-wrapper": {
4874
4913
  right: "var(--cn-toast-offset-right)",
4875
4914
  bottom: "var(--cn-toast-offset-bottom)"
@@ -4945,9 +4984,9 @@ const sr = {
4945
4984
  }
4946
4985
  }
4947
4986
  }
4948
- }, gr = ["xs", "sm", "md"], vr = () => {
4987
+ }, vr = ["xs", "sm", "md"], ur = () => {
4949
4988
  const r = {};
4950
- return gr.forEach((e) => {
4989
+ return vr.forEach((e) => {
4951
4990
  r[`&.cn-toggle-${e}.cn-toggle-transparent.cn-toggle-text`] = {
4952
4991
  paddingLeft: `var(--cn-btn-px-${e})`,
4953
4992
  paddingRight: `var(--cn-btn-px-${e})`,
@@ -4956,15 +4995,15 @@ const sr = {
4956
4995
  border: "var(--cn-btn-border) solid transparent"
4957
4996
  };
4958
4997
  }), r;
4959
- }, ur = {
4998
+ }, hr = {
4960
4999
  ".cn-toggle": {
4961
5000
  transitionDuration: "100ms",
4962
- ...vr(),
5001
+ ...ur(),
4963
5002
  '&[data-state="on"]': {
4964
5003
  color: "var(--cn-text-1)"
4965
5004
  }
4966
5005
  }
4967
- }, hr = {
5006
+ }, mr = {
4968
5007
  ".cn-toggle-group": {
4969
5008
  gap: "var(--cn-layout-3xs)",
4970
5009
  "@apply flex": "",
@@ -4972,7 +5011,7 @@ const sr = {
4972
5011
  "@apply flex-col": ""
4973
5012
  }
4974
5013
  }
4975
- }, mr = {
5014
+ }, xr = {
4976
5015
  ".cn-tooltip": {
4977
5016
  minWidth: "var(--cn-tooltip-min)",
4978
5017
  maxWidth: "var(--cn-tooltip-max)",
@@ -5024,17 +5063,17 @@ const sr = {
5024
5063
  }
5025
5064
  }
5026
5065
  }
5027
- }, C = {
5066
+ }, S = {
5028
5067
  "@apply text-cn-2 font-body-normal": "",
5029
5068
  minHeight: "var(--cn-tree-item-height)",
5030
5069
  padding: "var(--cn-tree-item-py) var(--cn-tree-item-pr) var(--cn-tree-item-py)"
5031
- }, xr = {
5070
+ }, yr = {
5032
5071
  ".cn-file-tree": {
5033
5072
  "&-base-item": {
5034
- ...C
5073
+ ...S
5035
5074
  },
5036
5075
  "&-item": {
5037
- ...C,
5076
+ ...S,
5038
5077
  "@apply relative gap-cn-3xs flex items-center w-[fill-available]": "",
5039
5078
  "&-wrapper": {
5040
5079
  "@apply relative transition-colors": "",
@@ -5074,72 +5113,72 @@ const sr = {
5074
5113
  }
5075
5114
  }
5076
5115
  }
5077
- }, yr = [
5078
- T,
5079
- L,
5080
- X,
5081
- K,
5082
- ce,
5083
- rr,
5084
- ve,
5085
- cr,
5116
+ }, fr = [
5117
+ W,
5118
+ A,
5119
+ F,
5120
+ q,
5121
+ ie,
5122
+ nr,
5086
5123
  ue,
5087
- E,
5088
- Z,
5124
+ ir,
5125
+ he,
5126
+ j,
5089
5127
  ee,
5090
- we,
5091
- Ie,
5128
+ re,
5129
+ ke,
5130
+ Te,
5131
+ oe,
5132
+ Q,
5133
+ or,
5092
5134
  ae,
5093
- J,
5094
- ar,
5095
- ne,
5096
5135
  He,
5097
- Le,
5098
5136
  Ae,
5099
- ke,
5100
- mr,
5137
+ De,
5138
+ Ce,
5139
+ xr,
5140
+ gr,
5141
+ Ye,
5142
+ V,
5143
+ pe,
5101
5144
  br,
5102
- Ve,
5103
- F,
5104
- se,
5105
- pr,
5106
- _e,
5107
- ur,
5145
+ Xe,
5108
5146
  hr,
5109
- q,
5110
- Te,
5111
- qe,
5112
- Qe,
5147
+ mr,
5148
+ J,
5149
+ We,
5150
+ Je,
5113
5151
  Ze,
5114
5152
  er,
5115
- xr,
5153
+ rr,
5154
+ yr,
5155
+ xe,
5116
5156
  me,
5117
- he,
5118
- Be,
5119
- Oe,
5120
- Je,
5157
+ Le,
5158
+ _e,
5159
+ Qe,
5121
5160
  // Form styles
5122
- Pe,
5123
- ie,
5124
- re,
5125
- We,
5126
- sr,
5127
- ge,
5128
- Q,
5129
- fe,
5130
- nr
5131
- ], fr = {
5161
+ Oe,
5162
+ de,
5163
+ ne,
5164
+ Be,
5165
+ pr,
5166
+ ve,
5167
+ Z,
5168
+ we,
5169
+ ar
5170
+ ], wr = {
5132
5171
  content: [],
5133
5172
  plugins: [
5134
- R(({ addComponents: r }) => {
5135
- r(yr);
5173
+ I(({ addComponents: r }) => {
5174
+ r(fr);
5136
5175
  })
5137
5176
  ]
5138
- }, Cr = {
5139
- presets: [fr, I],
5177
+ }, Sr = {
5178
+ presets: [wr, T],
5140
5179
  content: ["./src/**/*.{ts,tsx}"]
5141
5180
  };
5142
5181
  export {
5143
- Cr as default
5182
+ Sr as default
5144
5183
  };
5145
5184
  //# sourceMappingURL=tailwind.config.js.map