@grasp-labs/ds-react-components 1.1.8 → 1.3.0

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.
@@ -3034,13 +3034,13 @@ const Sh = (e, t) => {
3034
3034
  `,
3035
3035
  secondary: `
3036
3036
  text-primary-dark hover:text-primary-dark active:text-secondary-contrast disabled:text-text-disabled
3037
- border border-secondary hover:border-primary active:border-secondary-dark disabled:border-secondary
3038
- bg-background hover:bg-secondary active:bg-secondary-dark disabled:bg-background-disabled
3037
+ border border-secondary-light hover:border-primary active:border-secondary-dark disabled:border-secondary-light
3038
+ bg-background hover:bg-secondary-light active:bg-secondary-dark disabled:bg-background-disabled
3039
3039
  `,
3040
3040
  text: `
3041
3041
  text-primary-dark disabled:text-text-disabled
3042
- border border-transparent hover:border-secondary active:border-primary disabled:border-transparent
3043
- active:bg-secondary disabled:bg-[unset]
3042
+ border border-transparent hover:border-secondary-light active:border-primary disabled:border-transparent
3043
+ active:bg-secondary-light disabled:bg-[unset]
3044
3044
  `,
3045
3045
  danger: `
3046
3046
  text-error-contrast disabled:text-text-disabled
@@ -3614,7 +3614,7 @@ const di = ({
3614
3614
  "div",
3615
3615
  {
3616
3616
  className: X(
3617
- "bg-background border-secondary flex flex-col gap-3 rounded-lg border py-6",
3617
+ "bg-background border-secondary-light flex flex-col gap-3 rounded-lg border py-6",
3618
3618
  o
3619
3619
  ),
3620
3620
  children: [
@@ -3645,7 +3645,7 @@ const di = ({
3645
3645
  )
3646
3646
  ]
3647
3647
  }
3648
- ), Hg = (e, t, n) => e && t ? "bg-background-disabled border-secondary text-text-disabled hover:bg-background-disabled hover:border-secondary" : e && n ? "bg-error border-error text-error-contrast hover:bg-error-light hover:border-error-light" : e ? "bg-primary border-primary text-primary-contrast hover:bg-primary-dark hover:border-primary-dark" : t ? "bg-background-disabled border-secondary text-text-disabled hover:bg-background-disabled hover:border-secondary" : n ? "bg-background border-error text-error hover:bg-error-contrast hover:border-error" : "bg-background border-primary text-primary hover:bg-secondary hover:border-primary", Gu = ({
3648
+ ), Hg = (e, t, n) => e && t ? "bg-background-disabled border-secondary-light text-text-disabled hover:bg-background-disabled hover:border-secondary" : e && n ? "bg-error border-error text-error-contrast hover:bg-error-light hover:border-error-light" : e ? "bg-primary border-primary text-primary-contrast hover:bg-primary-dark hover:border-primary-dark" : t ? "bg-background-disabled border-secondary-light text-text-disabled hover:bg-background-disabled hover:border-secondary" : n ? "bg-background border-error text-error hover:bg-error-contrast hover:border-error" : "bg-background border-primary text-primary hover:bg-secondary-light hover:border-primary", Gu = ({
3649
3649
  error: e = !1,
3650
3650
  checked: t = !1,
3651
3651
  intermediate: n = !1,
@@ -11046,7 +11046,7 @@ const zO = ({
11046
11046
  "hr",
11047
11047
  {
11048
11048
  ref: t,
11049
- className: X("border-secondary my-4 border-t", e),
11049
+ className: X("border-secondary-light my-4 border-t", e),
11050
11050
  ...n
11051
11051
  }
11052
11052
  ), S0 = ({
@@ -11226,7 +11226,7 @@ const JO = ({
11226
11226
  iconCancel: "var(--error)"
11227
11227
  }
11228
11228
  }, D0 = Ol(
11229
- () => import("./index.esm-PVQc_2lZ.js").then((e) => ({
11229
+ () => import("./index.esm-hIxJ5tpq.js").then((e) => ({
11230
11230
  default: e.JsonEditor
11231
11231
  }))
11232
11232
  );
@@ -11370,7 +11370,7 @@ const St = (e) => typeof e.label == "string" ? e.label : e.label.title, vf = (e)
11370
11370
  }
11371
11371
  St(o).toLowerCase().includes(n) && r.push(o);
11372
11372
  }), r;
11373
- }, xf = "EMPTY", L0 = "LOADING", A0 = (e, t) => e ? t ? "text-error-contrast bg-error hover:bg-error-light" : "text-primary-dark bg-secondary hover:bg-secondary-light hover:text-secondary-contrast" : "hover:bg-secondary-contrast", Rr = ({
11373
+ }, xf = "EMPTY", L0 = "LOADING", A0 = (e, t) => e ? t ? "text-error-contrast bg-error hover:bg-error-light" : "text-secondary-dark bg-secondary-light hover:bg-secondary hover:text-secondary-contrast" : "hover:bg-secondary-contrast", Rr = ({
11374
11374
  option: e,
11375
11375
  highlighted: t,
11376
11376
  selected: n,
@@ -11384,7 +11384,7 @@ const St = (e) => typeof e.label == "string" ? e.label : e.label.title, vf = (e)
11384
11384
  {
11385
11385
  className: X(
11386
11386
  "flex cursor-pointer items-center px-4 py-2 text-sm transition-colors",
11387
- n ? "text-primary-dark bg-secondary hover:bg-secondary-light hover:text-secondary-contrast" : "hover:bg-secondary-contrast",
11387
+ n ? "text-secondary-dark bg-secondary-light hover:bg-secondary hover:text-secondary-contrast" : "hover:bg-secondary-contrast",
11388
11388
  o && (n ? "text-error-contrast bg-error hover:bg-error-light" : "text-error-dark hover:bg-error-contrast"),
11389
11389
  t && A0(n, o),
11390
11390
  (s || e.disabled) && "cursor-not-allowed opacity-50",
@@ -11419,7 +11419,7 @@ const St = (e) => typeof e.label == "string" ? e.label : e.label.title, vf = (e)
11419
11419
  /* @__PURE__ */ C.jsx(
11420
11420
  "span",
11421
11421
  {
11422
- className: "border-secondary absolute inset-x-4 top-1/2 border-t",
11422
+ className: "border-secondary-light absolute inset-x-4 top-1/2 border-t",
11423
11423
  "aria-hidden": "true"
11424
11424
  }
11425
11425
  ),
@@ -11510,7 +11510,7 @@ const St = (e) => typeof e.label == "string" ? e.label : e.label.title, vf = (e)
11510
11510
  "gap-2 p-2 pl-[calc(0.5rem+var(--depth)*0.75rem)] [&_svg]:size-4",
11511
11511
  "transition-colors",
11512
11512
  "text-secondary-dark",
11513
- m && "bg-secondary-contrast hover:bg-secondary",
11513
+ m && "bg-secondary-contrast hover:bg-secondary-light",
11514
11514
  s
11515
11515
  ),
11516
11516
  style: { "--depth": c },
@@ -11564,8 +11564,8 @@ const s5 = ({
11564
11564
  () => V0(n, r),
11565
11565
  [n, r]
11566
11566
  );
11567
- return /* @__PURE__ */ C.jsx("div", { className: X("w-54", o), children: /* @__PURE__ */ C.jsxs("nav", { className: "border-secondary fixed inset-3 flex w-48 flex-col rounded-lg border", children: [
11568
- /* @__PURE__ */ C.jsx("div", { className: "border-secondary flex h-24 flex-col items-center justify-center overflow-hidden border-b p-6", children: e }),
11567
+ return /* @__PURE__ */ C.jsx("div", { className: X("w-54", o), children: /* @__PURE__ */ C.jsxs("nav", { className: "border-secondary-light fixed inset-3 flex w-48 flex-col rounded-lg border", children: [
11568
+ /* @__PURE__ */ C.jsx("div", { className: "border-secondary-light flex h-24 flex-col items-center justify-center overflow-hidden border-b p-6", children: e }),
11569
11569
  /* @__PURE__ */ C.jsx("div", { className: "flex-1 overflow-y-auto", children: a.map((c) => /* @__PURE__ */ C.jsx(
11570
11570
  Ef,
11571
11571
  {
@@ -14514,7 +14514,7 @@ const up = ({
14514
14514
  "div",
14515
14515
  {
14516
14516
  className: X(
14517
- "bg-background text-text focus-within:border-primary border-secondary flex h-9 cursor-pointer flex-row items-center rounded-lg border",
14517
+ "bg-background text-text focus-within:border-primary border-secondary-light flex h-9 cursor-pointer flex-row items-center rounded-lg border",
14518
14518
  o && "border-error-contrast text-error-contrast focus-within:border-error stroke-error-contrast",
14519
14519
  a && "bg-background-disabled text-text-disabled"
14520
14520
  ),
@@ -14621,7 +14621,7 @@ const up = ({
14621
14621
  ...c
14622
14622
  }) => {
14623
14623
  const l = o ?? `textbox-${s ?? ""}`, d = X(
14624
- "bg-background h-9 rounded-sm border focus-within:border-primary-dark focus-within:hover:border-primary-dark border-secondary hover:border-primary transition-colors [&>svg]:size-4",
14624
+ "bg-background h-9 rounded-sm border focus-within:border-primary-dark focus-within:hover:border-primary-dark border-secondary-light hover:border-primary transition-colors [&>svg]:size-4",
14625
14625
  n && "bg-background-disabled cursor-not-allowed border-text-disabled text-text-disabled",
14626
14626
  t && "border-error-dark",
14627
14627
  r
@@ -14844,7 +14844,7 @@ const up = ({
14844
14844
  {
14845
14845
  ref: w,
14846
14846
  className: X(
14847
- "bg-background border-secondary z-popover fixed flex flex-col items-start gap-4 rounded-lg border px-6 py-4 shadow-md",
14847
+ "bg-background border-secondary-light z-popover fixed flex flex-col items-start gap-4 rounded-lg border px-6 py-4 shadow-md",
14848
14848
  !h?.top && !h?.left && "invisible",
14849
14849
  l
14850
14850
  ),
@@ -14860,7 +14860,7 @@ const up = ({
14860
14860
  "div",
14861
14861
  {
14862
14862
  className: X(
14863
- "bg-background border-secondary absolute h-3 w-3 rotate-45 border-t border-l",
14863
+ "bg-background border-secondary-light absolute h-3 w-3 rotate-45 border-t border-l",
14864
14864
  Qw(i),
14865
14865
  d
14866
14866
  ),
@@ -15102,9 +15102,9 @@ const up = ({
15102
15102
  "div",
15103
15103
  {
15104
15104
  className: X(
15105
- "bg-background text-text focus-within:border-primary-dark focus-within:hover:border-primary-dark border-secondary hover:border-primary flex h-9 cursor-pointer flex-row items-center gap-3 rounded-sm border px-3 transition-colors [&>svg]:size-4",
15105
+ "bg-background text-text focus-within:border-primary-dark focus-within:hover:border-primary-dark border-secondary-light hover:border-primary flex h-9 cursor-pointer flex-row items-center gap-3 rounded-sm border px-3 transition-colors [&>svg]:size-4",
15106
15106
  i && "border-error-dark focus-within:border-error focus-within:hover:border-error hover:border-error-light",
15107
- a && "bg-background-disabled text-text-disabled border-secondary hover:border-secondary cursor-not-allowed",
15107
+ a && "bg-background-disabled text-text-disabled border-secondary-light hover:border-secondary-light background-secondary-light cursor-not-allowed",
15108
15108
  m
15109
15109
  ),
15110
15110
  onClick: () => !P && !a && U(),
@@ -15144,7 +15144,7 @@ const up = ({
15144
15144
  "div",
15145
15145
  {
15146
15146
  className: X(
15147
- "bg-background text-text z-dropdown border-secondary fixed overflow-hidden rounded-lg border shadow-lg",
15147
+ "bg-background text-text z-dropdown border-secondary-light fixed overflow-hidden rounded-lg border shadow-lg",
15148
15148
  !P && "hidden"
15149
15149
  ),
15150
15150
  style: {
@@ -15444,7 +15444,7 @@ function u5({
15444
15444
  const b = k.getIsSelected?.() ?? !1, x = X(
15445
15445
  (s || i) && "cursor-pointer hover:bg-secondary-contrast",
15446
15446
  "border-b border-secondary-contrast",
15447
- b && "bg-secondary hover:bg-secondary"
15447
+ b && "bg-secondary hover:bg-secondary-light"
15448
15448
  );
15449
15449
  return /* @__PURE__ */ C.jsx(
15450
15450
  "tr",