@still-forest/canopy 0.51.1 → 0.52.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.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +23 -9
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -767,15 +767,18 @@ declare interface Props_5 extends SidebarProps {
|
|
|
767
767
|
children?: React.ReactNode;
|
|
768
768
|
}
|
|
769
769
|
|
|
770
|
-
export declare const RadioSelect: ({ label, name, options, value, onChange, error, labelClassName }: RadioSelectProps) => JSX.Element;
|
|
770
|
+
export declare const RadioSelect: ({ cols, gap, label, name, options, value, size, onChange, error, labelClassName, }: RadioSelectProps) => JSX.Element;
|
|
771
771
|
|
|
772
772
|
declare interface RadioSelectProps {
|
|
773
|
+
cols?: GridCols;
|
|
774
|
+
gap?: Gap;
|
|
773
775
|
name: string;
|
|
774
776
|
label?: string;
|
|
775
777
|
labelClassName?: string;
|
|
776
778
|
value?: string;
|
|
777
779
|
options: Option_3[];
|
|
778
780
|
onChange?: (value: string) => void;
|
|
781
|
+
size?: "sm" | "md" | "lg";
|
|
779
782
|
error?: string;
|
|
780
783
|
}
|
|
781
784
|
|
package/dist/index.js
CHANGED
|
@@ -8873,7 +8873,7 @@ const Hx = ({
|
|
|
8873
8873
|
className: t,
|
|
8874
8874
|
position: n = "outside",
|
|
8875
8875
|
type: r = "unordered",
|
|
8876
|
-
variant: o = "
|
|
8876
|
+
variant: o = "default",
|
|
8877
8877
|
...a
|
|
8878
8878
|
}) => /* @__PURE__ */ c.jsx(
|
|
8879
8879
|
"ul",
|
|
@@ -14090,14 +14090,28 @@ function ik({ className: e, ...t }) {
|
|
|
14090
14090
|
}
|
|
14091
14091
|
);
|
|
14092
14092
|
}
|
|
14093
|
-
const OS = ({
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14093
|
+
const OS = ({
|
|
14094
|
+
cols: e = "1",
|
|
14095
|
+
gap: t = "2",
|
|
14096
|
+
label: n,
|
|
14097
|
+
name: r,
|
|
14098
|
+
options: o,
|
|
14099
|
+
value: a,
|
|
14100
|
+
size: s = "md",
|
|
14101
|
+
onChange: i,
|
|
14102
|
+
error: l,
|
|
14103
|
+
labelClassName: d
|
|
14104
|
+
}) => {
|
|
14105
|
+
const f = s === "lg" ? "size-5" : s === "md" ? "size-4" : "size-3";
|
|
14106
|
+
return /* @__PURE__ */ c.jsxs(V1, { className: "flex flex-col gap-4 px-4 py-2", label: n, labelFor: r, children: [
|
|
14107
|
+
/* @__PURE__ */ c.jsx(sk, { className: "w-full", name: r, onValueChange: i, value: a, children: /* @__PURE__ */ c.jsx(nd, { cols: e, gap: t, children: o.map((u, p) => /* @__PURE__ */ c.jsxs(ie, { align: "center", gap: "2", justify: "start", children: [
|
|
14108
|
+
/* @__PURE__ */ c.jsx(ik, { className: f, id: u.value, value: u.value }),
|
|
14109
|
+
/* @__PURE__ */ c.jsx(Ie, { className: d, htmlFor: u.value, size: s, children: u.label }),
|
|
14110
|
+
u.hint && /* @__PURE__ */ c.jsx(Dt, { content: u.hint })
|
|
14111
|
+
] }, p)) }) }),
|
|
14112
|
+
l && /* @__PURE__ */ c.jsx(at, { message: l })
|
|
14113
|
+
] });
|
|
14114
|
+
};
|
|
14101
14115
|
function lk({ className: e, ...t }) {
|
|
14102
14116
|
return /* @__PURE__ */ c.jsxs(
|
|
14103
14117
|
"div",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@still-forest/canopy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"author": "John Szymanowski",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React components, built with Tailwind CSS, Shadcn, and VisX",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vaul": "^1.1.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@biomejs/biome": "2.3.
|
|
66
|
+
"@biomejs/biome": "2.3.11",
|
|
67
67
|
"@still-forest/biomejs-config": "2.2.0",
|
|
68
68
|
"@storybook/addon-docs": "10.1.11",
|
|
69
69
|
"@storybook/addon-themes": "10.1.11",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"jsdom": "27.4.0",
|
|
85
85
|
"react": "19.2.3",
|
|
86
86
|
"react-dom": "19.2.3",
|
|
87
|
-
"release-it": "19.2.
|
|
87
|
+
"release-it": "19.2.3",
|
|
88
88
|
"storybook": "10.1.11",
|
|
89
89
|
"tailwind-merge": "3.4.0",
|
|
90
90
|
"tailwindcss": "4.1.18",
|