@harnessio/ui 0.5.27 → 0.5.29

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.
@@ -143,7 +143,7 @@ const T = {
143
143
  fadeBgColor: "success"
144
144
  }
145
145
  };
146
- function L() {
146
+ function H() {
147
147
  const r = {};
148
148
  return B.forEach((e) => {
149
149
  const n = {}, { backgroundColor: o, color: a, fadeBgColor: t } = W[e];
@@ -154,7 +154,7 @@ function L() {
154
154
  }, r[`&:where(.cn-alert-${e})`] = n;
155
155
  }), r;
156
156
  }
157
- const H = {
157
+ const L = {
158
158
  ".cn-alert": {
159
159
  gap: "var(--cn-alert-gap)",
160
160
  paddingTop: "var(--cn-alert-py)",
@@ -243,10 +243,10 @@ const H = {
243
243
  "&-link-wrapper": {
244
244
  paddingTop: "var(--cn-spacing-1)"
245
245
  },
246
- ...L()
246
+ ...H()
247
247
  }
248
248
  }, A = ["md", "sm", "lg", "xs"];
249
- function j() {
249
+ function D() {
250
250
  const r = {};
251
251
  return A.forEach((e) => {
252
252
  e === "xs" ? r[`&:where(.cn-avatar-${e})`] = {
@@ -263,7 +263,7 @@ function j() {
263
263
  };
264
264
  }), r;
265
265
  }
266
- const D = {
266
+ const E = {
267
267
  ".cn-avatar": {
268
268
  display: "inline-flex",
269
269
  alignItems: "center",
@@ -274,7 +274,7 @@ const D = {
274
274
  boxShadow: "var(--cn-comp-shadow-avatar-inner)",
275
275
  letterSpacing: "var(--cn-tracking-tight)",
276
276
  "@apply shrink-0": "",
277
- ...j(),
277
+ ...D(),
278
278
  "&:where(.cn-avatar-rounded)": {
279
279
  borderRadius: "var(--cn-avatar-radius-rounded)"
280
280
  },
@@ -298,7 +298,7 @@ const D = {
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
- }, E = ["primary", "secondary", "outline", "status", "ghost"], P = ["success", "info", "warning", "danger", "muted", "merged", "risk"], O = {
301
+ }, j = ["primary", "secondary", "outline", "status", "ghost"], P = ["success", "info", "warning", "danger", "muted", "merged", "risk"], O = {
302
302
  success: "success",
303
303
  info: "blue",
304
304
  warning: "warning",
@@ -309,7 +309,7 @@ const D = {
309
309
  };
310
310
  function _() {
311
311
  const r = {}, e = {};
312
- return E.forEach((n) => {
312
+ return j.forEach((n) => {
313
313
  P.forEach((o) => {
314
314
  const a = {}, t = O[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`] = {
@@ -2415,7 +2415,7 @@ const Re = {
2415
2415
  opacity: "0"
2416
2416
  }
2417
2417
  }
2418
- }, Le = {
2418
+ }, He = {
2419
2419
  ".cn-repo": {
2420
2420
  "&-header": {
2421
2421
  paddingTop: "var(--cn-page-container-spacing-py)",
@@ -2430,7 +2430,7 @@ const Re = {
2430
2430
  }
2431
2431
  }
2432
2432
  }
2433
- }, He = {
2433
+ }, Le = {
2434
2434
  ".cn-sandbox-layout": {
2435
2435
  "&-content": {
2436
2436
  paddingTop: "var(--cn-page-container-spacing-py)",
@@ -2468,10 +2468,10 @@ const Re = {
2468
2468
  }
2469
2469
  }
2470
2470
  }
2471
- }, je = ["danger", "warning"], De = ["sm"];
2472
- function Ee() {
2471
+ }, De = ["danger", "warning"], Ee = ["sm"];
2472
+ function je() {
2473
2473
  const r = {};
2474
- return je.forEach((e) => {
2474
+ return De.forEach((e) => {
2475
2475
  r[`&:where(.cn-select-${e}):not(:disabled)`] = {
2476
2476
  borderColor: `var(--cn-border-${e})`,
2477
2477
  boxShadow: `var(--cn-ring-${e})`,
@@ -2480,7 +2480,7 @@ function Ee() {
2480
2480
  boxShadow: `var(--cn-ring-${e}-hover)`
2481
2481
  }
2482
2482
  };
2483
- }), De.forEach((e) => {
2483
+ }), Ee.forEach((e) => {
2484
2484
  r[`&.cn-select-${e}`] = {
2485
2485
  height: `var(--cn-input-size-${e})`
2486
2486
  }, r[`&.cn-select-${e} .cn-select-trigger`] = {
@@ -2539,7 +2539,7 @@ const Pe = {
2539
2539
  aspectRatio: "1",
2540
2540
  height: "100%"
2541
2541
  },
2542
- ...Ee()
2542
+ ...je()
2543
2543
  }
2544
2544
  }, Oe = {
2545
2545
  ".cn-shimmer": {
@@ -2591,14 +2591,15 @@ const Pe = {
2591
2591
  },
2592
2592
  ".cn-sidebar-group": {
2593
2593
  "--sidebar-group-label-scale": "0",
2594
- "&-header": { display: "none" }
2594
+ "&-header": {
2595
+ maxHeight: "0",
2596
+ "@apply overflow-hidden opacity-0 p-0 gap-0": ""
2597
+ }
2595
2598
  },
2596
2599
  ".cn-sidebar-item": {
2597
2600
  "&-content": {
2598
2601
  gridTemplateColumns: "1fr",
2599
2602
  gridTemplateAreas: '"icon"',
2600
- justifyItems: "center",
2601
- justifyContent: "center",
2602
2603
  padding: "var(--cn-sidebar-item-container)",
2603
2604
  minWidth: "calc(var(--cn-sidebar-item-min-width) - 2 * var(--cn-sidebar-container-px))",
2604
2605
  "&-title, &-description, &-badge, &-right-element, &-action-item-placeholder, &-action-buttons": {
@@ -2612,8 +2613,7 @@ const Pe = {
2612
2613
  "&-only-action-buttons, &-w-r-element, &-complete": {
2613
2614
  gridTemplateColumns: "1fr",
2614
2615
  gridTemplateAreas: '"icon"'
2615
- },
2616
- "&-icon": { justifySelf: "center", marginLeft: "0" }
2616
+ }
2617
2617
  },
2618
2618
  "&-action-button": {
2619
2619
  maxWidth: "0",
@@ -2699,6 +2699,8 @@ const Pe = {
2699
2699
  alignItems: "center",
2700
2700
  gap: "var(--cn-layout-xs)",
2701
2701
  alignSelf: "stretch",
2702
+ maxHeight: "3rem",
2703
+ "@apply overflow-hidden duration-150 transition-[max-height,opacity,padding,gap] ease-linear": "",
2702
2704
  "&-action-button": {
2703
2705
  "@apply opacity-0 transition-opacity duration-150": ""
2704
2706
  },
@@ -4776,7 +4778,7 @@ const lr = {
4776
4778
  }
4777
4779
  }, xr = [
4778
4780
  T,
4779
- H,
4781
+ L,
4780
4782
  X,
4781
4783
  K,
4782
4784
  ce,
@@ -4784,7 +4786,7 @@ const lr = {
4784
4786
  ve,
4785
4787
  tr,
4786
4788
  he,
4787
- D,
4789
+ E,
4788
4790
  Z,
4789
4791
  ee,
4790
4792
  we,
@@ -4793,8 +4795,8 @@ const lr = {
4793
4795
  J,
4794
4796
  nr,
4795
4797
  ne,
4796
- Le,
4797
4798
  He,
4799
+ Le,
4798
4800
  Ae,
4799
4801
  ke,
4800
4802
  ur,