@grasp-labs/ds-react-components 1.1.6 → 1.2.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 _h = (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
|
|
3037
|
+
border border-secondary-light hover:border-primary active:border-secondary-dark disabled:border-secondary-light
|
|
3038
3038
|
bg-background hover:bg-secondary 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
|
|
@@ -3553,7 +3553,7 @@ const Wg = "[&>svg]:size-4", Ku = {
|
|
|
3553
3553
|
"div",
|
|
3554
3554
|
{
|
|
3555
3555
|
className: X(
|
|
3556
|
-
"bg-background border-secondary flex flex-col gap-3 rounded-lg border py-6",
|
|
3556
|
+
"bg-background border-secondary-light flex flex-col gap-3 rounded-lg border py-6",
|
|
3557
3557
|
o
|
|
3558
3558
|
),
|
|
3559
3559
|
children: [
|
|
@@ -3584,7 +3584,7 @@ const Wg = "[&>svg]:size-4", Ku = {
|
|
|
3584
3584
|
)
|
|
3585
3585
|
]
|
|
3586
3586
|
}
|
|
3587
|
-
), Vg = (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", qu = ({
|
|
3587
|
+
), Vg = (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", qu = ({
|
|
3588
3588
|
error: e = !1,
|
|
3589
3589
|
checked: t = !1,
|
|
3590
3590
|
intermediate: n = !1,
|
|
@@ -10985,7 +10985,7 @@ const BO = ({
|
|
|
10985
10985
|
"hr",
|
|
10986
10986
|
{
|
|
10987
10987
|
ref: t,
|
|
10988
|
-
className: X("border-secondary my-4 border-t", e),
|
|
10988
|
+
className: X("border-secondary-light my-4 border-t", e),
|
|
10989
10989
|
...n
|
|
10990
10990
|
}
|
|
10991
10991
|
), _0 = ({
|
|
@@ -11157,7 +11157,7 @@ const XO = ({
|
|
|
11157
11157
|
iconCancel: "var(--error)"
|
|
11158
11158
|
}
|
|
11159
11159
|
}, R0 = fe(
|
|
11160
|
-
() => import("./index.esm-
|
|
11160
|
+
() => import("./index.esm-CXwp-i4H.js").then((e) => ({
|
|
11161
11161
|
default: e.JsonEditor
|
|
11162
11162
|
}))
|
|
11163
11163
|
);
|
|
@@ -11350,7 +11350,7 @@ const Mt = (e) => typeof e.label == "string" ? e.label : e.label.title, bf = (e)
|
|
|
11350
11350
|
/* @__PURE__ */ C.jsx(
|
|
11351
11351
|
"span",
|
|
11352
11352
|
{
|
|
11353
|
-
className: "border-secondary absolute inset-x-4 top-1/2 border-t",
|
|
11353
|
+
className: "border-secondary-light absolute inset-x-4 top-1/2 border-t",
|
|
11354
11354
|
"aria-hidden": "true"
|
|
11355
11355
|
}
|
|
11356
11356
|
),
|
|
@@ -11495,8 +11495,8 @@ const n5 = ({
|
|
|
11495
11495
|
() => A0(n, r),
|
|
11496
11496
|
[n, r]
|
|
11497
11497
|
);
|
|
11498
|
-
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: [
|
|
11499
|
-
/* @__PURE__ */ C.jsx("div", { className: "border-secondary flex h-24 flex-col items-center justify-center overflow-hidden border-b p-6", children: e }),
|
|
11498
|
+
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: [
|
|
11499
|
+
/* @__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 }),
|
|
11500
11500
|
/* @__PURE__ */ C.jsx("div", { className: "flex-1 overflow-y-auto", children: a.map((c) => /* @__PURE__ */ C.jsx(
|
|
11501
11501
|
xf,
|
|
11502
11502
|
{
|
|
@@ -14445,7 +14445,7 @@ const cp = ({
|
|
|
14445
14445
|
"div",
|
|
14446
14446
|
{
|
|
14447
14447
|
className: X(
|
|
14448
|
-
"bg-background text-text focus-within:border-primary border-secondary flex h-9 cursor-pointer flex-row items-center rounded-lg border",
|
|
14448
|
+
"bg-background text-text focus-within:border-primary border-secondary-light flex h-9 cursor-pointer flex-row items-center rounded-lg border",
|
|
14449
14449
|
o && "border-error-contrast text-error-contrast focus-within:border-error stroke-error-contrast",
|
|
14450
14450
|
a && "bg-background-disabled text-text-disabled"
|
|
14451
14451
|
),
|
|
@@ -14552,7 +14552,7 @@ const cp = ({
|
|
|
14552
14552
|
...c
|
|
14553
14553
|
}) => {
|
|
14554
14554
|
const l = o ?? `textbox-${s ?? ""}`, d = X(
|
|
14555
|
-
"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",
|
|
14555
|
+
"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",
|
|
14556
14556
|
n && "bg-background-disabled cursor-not-allowed border-text-disabled text-text-disabled",
|
|
14557
14557
|
t && "border-error-dark",
|
|
14558
14558
|
r
|
|
@@ -14775,7 +14775,7 @@ const cp = ({
|
|
|
14775
14775
|
{
|
|
14776
14776
|
ref: w,
|
|
14777
14777
|
className: X(
|
|
14778
|
-
"bg-background border-secondary z-popover fixed flex flex-col items-start gap-4 rounded-lg border px-6 py-4 shadow-md",
|
|
14778
|
+
"bg-background border-secondary-light z-popover fixed flex flex-col items-start gap-4 rounded-lg border px-6 py-4 shadow-md",
|
|
14779
14779
|
!h?.top && !h?.left && "invisible",
|
|
14780
14780
|
l
|
|
14781
14781
|
),
|
|
@@ -14791,7 +14791,7 @@ const cp = ({
|
|
|
14791
14791
|
"div",
|
|
14792
14792
|
{
|
|
14793
14793
|
className: X(
|
|
14794
|
-
"bg-background border-secondary absolute h-3 w-3 rotate-45 border-t border-l",
|
|
14794
|
+
"bg-background border-secondary-light absolute h-3 w-3 rotate-45 border-t border-l",
|
|
14795
14795
|
Xw(i),
|
|
14796
14796
|
d
|
|
14797
14797
|
),
|
|
@@ -15033,9 +15033,9 @@ const cp = ({
|
|
|
15033
15033
|
"div",
|
|
15034
15034
|
{
|
|
15035
15035
|
className: X(
|
|
15036
|
-
"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",
|
|
15036
|
+
"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",
|
|
15037
15037
|
i && "border-error-dark focus-within:border-error focus-within:hover:border-error hover:border-error-light",
|
|
15038
|
-
a && "bg-background-disabled text-text-disabled border-secondary hover:border-secondary cursor-not-allowed",
|
|
15038
|
+
a && "bg-background-disabled text-text-disabled border-secondary-light hover:border-secondary-light background-secondary-light cursor-not-allowed",
|
|
15039
15039
|
m
|
|
15040
15040
|
),
|
|
15041
15041
|
onClick: () => !P && !a && U(),
|
|
@@ -15075,7 +15075,7 @@ const cp = ({
|
|
|
15075
15075
|
"div",
|
|
15076
15076
|
{
|
|
15077
15077
|
className: X(
|
|
15078
|
-
"bg-background text-text z-dropdown border-secondary fixed overflow-hidden rounded-lg border shadow-lg",
|
|
15078
|
+
"bg-background text-text z-dropdown border-secondary-light fixed overflow-hidden rounded-lg border shadow-lg",
|
|
15079
15079
|
!P && "hidden"
|
|
15080
15080
|
),
|
|
15081
15081
|
style: {
|