@still-forest/canopy 0.48.0 → 0.48.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -16
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10440,7 +10440,7 @@ function iy({ className: e, ...t }) {
10440
10440
  Xc,
10441
10441
  {
10442
10442
  className: C(
10443
- "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
10443
+ "peer border-input bg-input/30 dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
10444
10444
  e
10445
10445
  ),
10446
10446
  "data-slot": "checkbox",
@@ -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-input dark:bg-input",
13490
+ "w-[280px] justify-start text-left font-normal bg-input/30 dark:bg-input/30",
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-input px-3 py-1 shadow-xs outline-none",
13521
+ "flex w-full min-w-0 rounded-md border border-input bg-input/30 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-input file:font-medium file:text-foreground file:text-sm",
13523
+ "file:h-7 file:border-0 file:bg-input/30 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",
@@ -13567,7 +13566,7 @@ function h1({ className: e, ...t }) {
13567
13566
  "textarea",
13568
13567
  {
13569
13568
  className: C(
13570
- "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
13569
+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-input/30 px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
13571
13570
  e
13572
13571
  ),
13573
13572
  "data-slot": "textarea",
@@ -13580,7 +13579,7 @@ function g1({ className: e, ...t }) {
13580
13579
  "div",
13581
13580
  {
13582
13581
  className: C(
13583
- "group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
13582
+ "group/input-group border-input bg-input/30 dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
13584
13583
  "h-9 min-w-0 has-[>textarea]:h-auto",
13585
13584
  // Variants based on alignment.
13586
13585
  "has-[>[data-align=inline-start]]:[&>input]:pl-2",
@@ -13653,7 +13652,7 @@ function x1({ className: e, ...t }) {
13653
13652
  }
13654
13653
  );
13655
13654
  }
13656
- const lt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l.jsx(g1, { className: C("bg-input dark:bg-input", t), ...n, children: e }), y1 = ({ className: e, size: t = "xs", variant: n = "ghost", ...r }) => /* @__PURE__ */ l.jsx(
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,14 @@ 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-input dark:bg-input p-2 shadow-xs", n), gapY: "1", children: o })
13698
+ /* @__PURE__ */ l.jsx(
13699
+ ie,
13700
+ {
13701
+ className: C("rounded-md border border-input bg-input/30 dark:bg-input/30 p-2 shadow-xs", n),
13702
+ gapY: "1",
13703
+ children: o
13704
+ }
13705
+ )
13700
13706
  ] }), N1 = ({
13701
13707
  name: e,
13702
13708
  label: t,
@@ -13975,7 +13981,7 @@ function W1({ className: e, ...t }) {
13975
13981
  I1,
13976
13982
  {
13977
13983
  className: C(
13978
- "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
13984
+ "border-input bg-input/30 text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
13979
13985
  e
13980
13986
  ),
13981
13987
  "data-slot": "radio-group-item",
@@ -13993,7 +13999,7 @@ function W1({ className: e, ...t }) {
13993
13999
  }
13994
14000
  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
14001
  /* @__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, { className: "bg-input dark:bg-input", id: i.value, value: i.value }),
14002
+ /* @__PURE__ */ l.jsx(W1, { id: i.value, value: i.value }),
13997
14003
  /* @__PURE__ */ l.jsx(He, { className: s, htmlFor: i.value, children: i.label }),
13998
14004
  i.hint && /* @__PURE__ */ l.jsx(Ft, { content: i.hint })
13999
14005
  ] }, c)) }) }),
@@ -14010,7 +14016,7 @@ function L1({ className: e, ...t }) {
14010
14016
  "select",
14011
14017
  {
14012
14018
  className: C(
14013
- "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
14019
+ "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-input/30 px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
14014
14020
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
14015
14021
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
14016
14022
  e
@@ -14059,7 +14065,6 @@ const pS = ({
14059
14065
  p === "md" && "h-9 text-sm",
14060
14066
  p === "lg" && "h-10 text-base",
14061
14067
  p === "xl" && "h-11 text-lg",
14062
- "bg-input dark:bg-input",
14063
14068
  c
14064
14069
  ), v = n.some((w) => "options" in w), y = (w) => {
14065
14070
  f?.(w.target.value);
@@ -15210,7 +15215,7 @@ const wk = ({
15210
15215
  return j ? p(j) : n;
15211
15216
  }, [t, n, p, y]), k = (j) => {
15212
15217
  r(j === t ? "" : j), b(!1);
15213
- }, N = C("bg-input dark:bg-input", i);
15218
+ }, N = C("bg-input/30 dark:bg-input/30", i);
15214
15219
  return /* @__PURE__ */ l.jsxs(ie, { direction: "col", gap: "2", children: [
15215
15220
  (o || d) && /* @__PURE__ */ l.jsxs(ie, { align: "center", direction: "row", gap: "1", children: [
15216
15221
  o && /* @__PURE__ */ l.jsx(He, { className: s, htmlFor: a, children: o }),
@@ -15973,7 +15978,7 @@ function Kk({
15973
15978
  h1,
15974
15979
  {
15975
15980
  "aria-label": e || t,
15976
- className: C("bg-input dark:bg-input", o),
15981
+ className: o,
15977
15982
  id: t,
15978
15983
  name: t,
15979
15984
  placeholder: r,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@still-forest/canopy",
3
- "version": "0.48.0",
3
+ "version": "0.48.1",
4
4
  "author": "John Szymanowski",
5
5
  "license": "MIT",
6
6
  "description": "React components, built with Tailwind CSS, Shadcn, and VisX",