@harnessio/ui 1.3.0 → 1.3.1

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,5 +1,5 @@
1
1
  import { p as D, t as j } from "./tailwind-design-system-DIFJVle2.js";
2
- import { F as L, C as g } from "./form-constants-CdD106iI.js";
2
+ import { F as L, C as b } from "./form-constants-CdD106iI.js";
3
3
  const A = {
4
4
  ".cn-accordion": {
5
5
  display: "flex",
@@ -530,7 +530,7 @@ const Q = {
530
530
  color: "var(--cn-text-1)"
531
531
  }
532
532
  }
533
- }, ee = ["primary", "secondary", "outline", "ghost"], re = ["success", "danger", "default"], ne = ["3xs", "2xs", "xs", "sm", "md"], f = "0.99", b = "150ms", v = "ease-in-out", ae = {
533
+ }, ee = ["primary", "secondary", "outline", "ghost"], re = ["success", "danger", "default"], ne = ["3xs", "2xs", "xs", "sm", "md"], f = "0.99", g = "150ms", v = "ease-in-out", ae = {
534
534
  success: "success",
535
535
  danger: "danger",
536
536
  default: "gray"
@@ -589,7 +589,7 @@ function oe() {
589
589
  const ce = {
590
590
  ".cn-button": {
591
591
  transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke, transform, box-shadow, opacity",
592
- transitionDuration: b,
592
+ transitionDuration: g,
593
593
  transitionTimingFunction: v,
594
594
  willChange: "transform",
595
595
  borderRadius: "var(--cn-btn-default-radius)",
@@ -632,7 +632,7 @@ const ce = {
632
632
  backgroundSize: "300% 300%, 100% 100%",
633
633
  border: "var(--cn-btn-ai-border) solid transparent",
634
634
  transitionProperty: "color, background-size, background-position, border-color, box-shadow, transform, opacity",
635
- transitionDuration: b,
635
+ transitionDuration: g,
636
636
  transitionTimingFunction: v,
637
637
  "&:hover:not(:disabled, .cn-button-disabled)": {
638
638
  // gradient matches the token one-to-one
@@ -772,7 +772,7 @@ const ce = {
772
772
  ".cn-button-split-wrapper": {
773
773
  display: "inline-flex",
774
774
  transitionProperty: "transform",
775
- transitionDuration: b,
775
+ transitionDuration: g,
776
776
  transitionTimingFunction: v,
777
777
  "& > .cn-button, & > .cn-button-split-dropdown": {
778
778
  transform: "none !important"
@@ -1042,7 +1042,7 @@ const ce = {
1042
1042
  ".cn-card-select-hidden-input": {
1043
1043
  "@apply sr-only": ""
1044
1044
  }
1045
- }, ge = {
1045
+ }, be = {
1046
1046
  ".cn-checkbox-wrapper": {
1047
1047
  display: "flex",
1048
1048
  gap: "var(--cn-spacing-2-half)",
@@ -1171,7 +1171,7 @@ const ce = {
1171
1171
  },
1172
1172
  "@apply truncate": ""
1173
1173
  }
1174
- }, be = {
1174
+ }, ge = {
1175
1175
  ".cn-checkbox-tree": {
1176
1176
  "@apply w-full": ""
1177
1177
  },
@@ -1377,7 +1377,7 @@ const ce = {
1377
1377
  opacity: "0"
1378
1378
  }
1379
1379
  }
1380
- }, he = {
1380
+ }, ue = {
1381
1381
  ".cn-drawer": {
1382
1382
  "&-content": {
1383
1383
  userSelect: "auto !important",
@@ -1782,7 +1782,7 @@ const ce = {
1782
1782
  }
1783
1783
  }
1784
1784
  }
1785
- }, ue = [
1785
+ }, he = [
1786
1786
  "gray",
1787
1787
  "green",
1788
1788
  "red",
@@ -1799,7 +1799,7 @@ const ce = {
1799
1799
  "violet"
1800
1800
  ], me = () => {
1801
1801
  const r = {};
1802
- return ue.forEach((e) => {
1802
+ return he.forEach((e) => {
1803
1803
  r[`&.cn-dropdown-menu-item-indicator-${e}`] = {
1804
1804
  backgroundColor: `var(--cn-set-${e}-solid-bg)`
1805
1805
  };
@@ -2137,7 +2137,7 @@ const ce = {
2137
2137
  [`@apply flex flex-col ${L}`]: ""
2138
2138
  },
2139
2139
  ":where(.cn-control-group)": {
2140
- [`@apply relative flex flex-col ${g}`]: "",
2140
+ [`@apply relative flex flex-col ${b}`]: "",
2141
2141
  maxWidth: "100%",
2142
2142
  "&.cn-control-group-horizontal": {
2143
2143
  "@apply flex-row": "",
@@ -2154,7 +2154,7 @@ const ce = {
2154
2154
  "@apply relative flex flex-col": ""
2155
2155
  },
2156
2156
  ":where(.cn-control-group-input)": {
2157
- [`@apply relative flex flex-col ${g}`]: ""
2157
+ [`@apply relative flex flex-col ${b}`]: ""
2158
2158
  }
2159
2159
  }, y = {
2160
2160
  poor: "var(--cn-comp-slider-track-danger)",
@@ -2257,7 +2257,7 @@ const Se = {
2257
2257
  ...Ce()
2258
2258
  }
2259
2259
  }, ze = ["2xs", "xs", "sm", "md", "lg", "xl"], $e = ["xs", "sm", "md", "lg"];
2260
- function h(r) {
2260
+ function u(r) {
2261
2261
  const e = r === "icon" ? ze : $e, n = r === "symbol" ? "logo" : r, a = {};
2262
2262
  return e.forEach((t) => {
2263
2263
  const o = {};
@@ -2266,13 +2266,13 @@ function h(r) {
2266
2266
  }
2267
2267
  const Ie = {
2268
2268
  ".cn-icon": {
2269
- ...h("icon")
2269
+ ...u("icon")
2270
2270
  },
2271
2271
  ".cn-logo": {
2272
- ...h("logo")
2272
+ ...u("logo")
2273
2273
  },
2274
2274
  ".cn-symbol": {
2275
- ...h("symbol")
2275
+ ...u("symbol")
2276
2276
  }
2277
2277
  }, Re = ["danger", "warning", "success"];
2278
2278
  function Te() {
@@ -2760,12 +2760,12 @@ const Ee = {
2760
2760
  progressBg: "danger",
2761
2761
  color: "text-danger"
2762
2762
  }
2763
- }, u = "var(--cn-comp-slider-track-progress-stripes)", Ne = `linear-gradient(45deg,
2764
- ${u} 18.75%,
2763
+ }, h = "var(--cn-comp-slider-track-progress-stripes)", Ne = `linear-gradient(45deg,
2764
+ ${h} 18.75%,
2765
2765
  transparent 18.75%,
2766
2766
  transparent 50%,
2767
- ${u} 50%,
2768
- ${u} 68.75%,
2767
+ ${h} 50%,
2768
+ ${h} 68.75%,
2769
2769
  transparent 68.75%,
2770
2770
  transparent)`, Ve = (r) => r === "sm" ? "8px 8px" : r === "lg" ? "32px 32px" : "16px 16px";
2771
2771
  function Me() {
@@ -3009,10 +3009,10 @@ const Ue = {
3009
3009
  }
3010
3010
  }, Ke = {
3011
3011
  ":where(.cn-radio-control)": {
3012
- [`@apply ${g}`]: ""
3012
+ [`@apply ${b}`]: ""
3013
3013
  },
3014
3014
  ":where(.cn-radio-root)": {
3015
- [`@apply grid ${g}`]: ""
3015
+ [`@apply grid ${b}`]: ""
3016
3016
  },
3017
3017
  ".cn-radio-item-wrapper": {
3018
3018
  display: "flex",
@@ -3880,8 +3880,8 @@ const tr = {
3880
3880
  flexShrink: "0"
3881
3881
  }
3882
3882
  }
3883
- }, pr = ["sm", "md", "lg", "xs"], gr = ["2xs", "xs", "sm", "md", "lg", "xl"], br = ["xs", "sm", "md", "lg"], vr = ["sm"];
3884
- function hr() {
3883
+ }, pr = ["sm", "md", "lg", "xs"], br = ["2xs", "xs", "sm", "md", "lg", "xl"], gr = ["xs", "sm", "md", "lg"], vr = ["sm"];
3884
+ function ur() {
3885
3885
  const r = {};
3886
3886
  return pr.forEach((e) => {
3887
3887
  r[`&:where(.cn-skeleton-avatar-${e})`] = {
@@ -3891,13 +3891,13 @@ function hr() {
3891
3891
  }), r;
3892
3892
  }
3893
3893
  function S(r) {
3894
- const e = r === "icon" ? gr : br, n = {};
3894
+ const e = r === "icon" ? br : gr, n = {};
3895
3895
  return e.forEach((a) => {
3896
3896
  const t = {};
3897
3897
  t.width = `var(--cn-${r}-size-${a})`, t["min-width"] = `var(--cn-${r}-size-${a})`, t.height = `var(--cn-${r}-size-${a})`, t["min-height"] = `var(--cn-${r}-size-${a})`, n[`&:where(.cn-skeleton-${r}-${a})`] = t;
3898
3898
  }), n;
3899
3899
  }
3900
- function ur() {
3900
+ function hr() {
3901
3901
  const r = {};
3902
3902
  return vr.forEach((e) => {
3903
3903
  r[`&.cn-skeleton-form-item-${e}`] = {
@@ -3921,7 +3921,7 @@ const mr = {
3921
3921
  "&:where(.cn-skeleton-avatar-rounded)": {
3922
3922
  borderRadius: "var(--cn-avatar-radius-rounded)"
3923
3923
  },
3924
- ...hr()
3924
+ ...ur()
3925
3925
  },
3926
3926
  "&-icon": {
3927
3927
  ...S("icon")
@@ -3959,7 +3959,7 @@ const mr = {
3959
3959
  border: "var(--cn-input-border) solid var(--cn-border-2)",
3960
3960
  borderRadius: "var(--cn-input-radius)",
3961
3961
  backgroundColor: "var(--cn-comp-input-bg)",
3962
- ...ur()
3962
+ ...hr()
3963
3963
  }
3964
3964
  },
3965
3965
  "&-list": {
@@ -6345,6 +6345,18 @@ const Hr = {
6345
6345
  ".cn-toast-description": {
6346
6346
  "@apply text-cn-2": ""
6347
6347
  },
6348
+ "&.cn-toast-severity-critical": {
6349
+ borderLeftColor: "var(--cn-border-danger)"
6350
+ },
6351
+ "&.cn-toast-severity-high": {
6352
+ borderLeftColor: "var(--cn-border-warning)"
6353
+ },
6354
+ "&.cn-toast-severity-medium": {
6355
+ borderLeftColor: "var(--cn-border-success)"
6356
+ },
6357
+ "&.cn-toast-severity-low": {
6358
+ borderLeftColor: "var(--cn-border-brand)"
6359
+ },
6348
6360
  "&.cn-toast-danger": {
6349
6361
  backgroundColor: "var(--cn-comp-toast-danger-bg)",
6350
6362
  borderColor: "var(--cn-comp-toast-danger-border)",
@@ -6385,6 +6397,9 @@ const Hr = {
6385
6397
  transform: "rotate(180deg)",
6386
6398
  transition: "transform 0.2s ease-out"
6387
6399
  }
6400
+ },
6401
+ ".cn-toast-bottom-actions": {
6402
+ "@apply w-full": ""
6388
6403
  }
6389
6404
  }
6390
6405
  }, Er = ["xs", "sm", "md"], Pr = () => {
@@ -6553,7 +6568,7 @@ const Hr = {
6553
6568
  Oe,
6554
6569
  Ue,
6555
6570
  Se,
6556
- he,
6571
+ ue,
6557
6572
  de,
6558
6573
  $r,
6559
6574
  ve,
@@ -6591,8 +6606,8 @@ const Hr = {
6591
6606
  // Form styles
6592
6607
  tr,
6593
6608
  we,
6594
- ge,
6595
6609
  be,
6610
+ ge,
6596
6611
  Ke,
6597
6612
  Hr,
6598
6613
  We,