@still-forest/canopy 0.48.0 → 0.48.2
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.
- package/dist/index.js +9 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10483,7 +10483,6 @@ const lS = ({
|
|
|
10483
10483
|
iy,
|
|
10484
10484
|
{
|
|
10485
10485
|
checked: d,
|
|
10486
|
-
className: "bg-input dark:bg-input",
|
|
10487
10486
|
id: u,
|
|
10488
10487
|
name: t,
|
|
10489
10488
|
onCheckedChange: h,
|
|
@@ -13488,7 +13487,7 @@ const dS = ({ onDateSelection: e, initialValue: t, className: n, size: r = "defa
|
|
|
13488
13487
|
tt,
|
|
13489
13488
|
{
|
|
13490
13489
|
className: C(
|
|
13491
|
-
"w-[280px] justify-start text-left font-normal bg-
|
|
13490
|
+
"w-[280px] justify-start text-left font-normal bg-background",
|
|
13492
13491
|
!a && "text-muted-foreground",
|
|
13493
13492
|
n
|
|
13494
13493
|
),
|
|
@@ -13519,11 +13518,11 @@ const dS = ({ onDateSelection: e, initialValue: t, className: n, size: r = "defa
|
|
|
13519
13518
|
...u
|
|
13520
13519
|
}) => {
|
|
13521
13520
|
const p = C(
|
|
13522
|
-
"flex w-full min-w-0 rounded-md border border-input bg-
|
|
13521
|
+
"flex w-full min-w-0 rounded-md border border-input bg-background px-3 py-1 shadow-xs outline-none",
|
|
13523
13522
|
"transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex ",
|
|
13524
|
-
"file:h-7 file:border-0 file:bg-
|
|
13523
|
+
"file:h-7 file:border-0 file:bg-background file:font-medium file:text-foreground file:text-sm",
|
|
13525
13524
|
"placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
13526
|
-
"dark:bg-input focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
13525
|
+
"dark:bg-input/30 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
13527
13526
|
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
|
|
13528
13527
|
c === "xs" && "h-7 text-xs md:text-xs",
|
|
13529
13528
|
c === "sm" && "h-8 text-sm md:text-xs",
|
|
@@ -13653,7 +13652,7 @@ function x1({ className: e, ...t }) {
|
|
|
13653
13652
|
}
|
|
13654
13653
|
);
|
|
13655
13654
|
}
|
|
13656
|
-
const lt = ({ children: e,
|
|
13655
|
+
const lt = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(g1, { ...t, children: e }), y1 = ({ className: e, size: t = "xs", variant: n = "ghost", ...r }) => /* @__PURE__ */ l.jsx(
|
|
13657
13656
|
tt,
|
|
13658
13657
|
{
|
|
13659
13658
|
className: C("shadow-none flex gap-2 items-center", e),
|
|
@@ -13696,7 +13695,7 @@ const S1 = ({
|
|
|
13696
13695
|
children: o
|
|
13697
13696
|
}) => /* @__PURE__ */ l.jsxs(ie, { direction: "col", gap: "2", children: [
|
|
13698
13697
|
e && /* @__PURE__ */ l.jsx(He, { className: r, htmlFor: t, children: e }),
|
|
13699
|
-
/* @__PURE__ */ l.jsx(ie, { className: C("rounded-md border border-input bg-
|
|
13698
|
+
/* @__PURE__ */ l.jsx(ie, { className: C("rounded-md border border-input bg-background p-2 shadow-xs", n), gapY: "1", children: o })
|
|
13700
13699
|
] }), N1 = ({
|
|
13701
13700
|
name: e,
|
|
13702
13701
|
label: t,
|
|
@@ -13993,7 +13992,7 @@ function W1({ className: e, ...t }) {
|
|
|
13993
13992
|
}
|
|
13994
13993
|
const mS = ({ label: e, name: t, options: n, value: r, onChange: o, error: a, labelClassName: s }) => /* @__PURE__ */ l.jsxs(S1, { className: "flex flex-col gap-4 px-2 py-1", label: e, labelFor: t, children: [
|
|
13995
13994
|
/* @__PURE__ */ l.jsx(F1, { className: "w-full", name: t, onValueChange: o, value: r, children: /* @__PURE__ */ l.jsx(Fc, { cols: "2", children: n.map((i, c) => /* @__PURE__ */ l.jsxs(ie, { align: "center", gap: "2", justify: "start", children: [
|
|
13996
|
-
/* @__PURE__ */ l.jsx(W1, {
|
|
13995
|
+
/* @__PURE__ */ l.jsx(W1, { id: i.value, value: i.value }),
|
|
13997
13996
|
/* @__PURE__ */ l.jsx(He, { className: s, htmlFor: i.value, children: i.label }),
|
|
13998
13997
|
i.hint && /* @__PURE__ */ l.jsx(Ft, { content: i.hint })
|
|
13999
13998
|
] }, c)) }) }),
|
|
@@ -14059,7 +14058,6 @@ const pS = ({
|
|
|
14059
14058
|
p === "md" && "h-9 text-sm",
|
|
14060
14059
|
p === "lg" && "h-10 text-base",
|
|
14061
14060
|
p === "xl" && "h-11 text-lg",
|
|
14062
|
-
"bg-input dark:bg-input",
|
|
14063
14061
|
c
|
|
14064
14062
|
), v = n.some((w) => "options" in w), y = (w) => {
|
|
14065
14063
|
f?.(w.target.value);
|
|
@@ -15210,7 +15208,7 @@ const wk = ({
|
|
|
15210
15208
|
return j ? p(j) : n;
|
|
15211
15209
|
}, [t, n, p, y]), k = (j) => {
|
|
15212
15210
|
r(j === t ? "" : j), b(!1);
|
|
15213
|
-
}, N = C("bg-
|
|
15211
|
+
}, N = C("bg-background", i);
|
|
15214
15212
|
return /* @__PURE__ */ l.jsxs(ie, { direction: "col", gap: "2", children: [
|
|
15215
15213
|
(o || d) && /* @__PURE__ */ l.jsxs(ie, { align: "center", direction: "row", gap: "1", children: [
|
|
15216
15214
|
o && /* @__PURE__ */ l.jsx(He, { className: s, htmlFor: a, children: o }),
|
|
@@ -15973,7 +15971,7 @@ function Kk({
|
|
|
15973
15971
|
h1,
|
|
15974
15972
|
{
|
|
15975
15973
|
"aria-label": e || t,
|
|
15976
|
-
className:
|
|
15974
|
+
className: o,
|
|
15977
15975
|
id: t,
|
|
15978
15976
|
name: t,
|
|
15979
15977
|
placeholder: r,
|