@bouko/proton 1.0.1 → 1.0.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.
|
@@ -9,10 +9,9 @@ export default function PathSelector({ title, value, update, original }) {
|
|
|
9
9
|
default: original
|
|
10
10
|
});
|
|
11
11
|
if (!result)
|
|
12
|
-
return toast.error("No folder
|
|
13
|
-
console.log("result", result);
|
|
12
|
+
return toast.error("No folder selected");
|
|
14
13
|
update(result);
|
|
15
14
|
};
|
|
16
15
|
const resetPath = () => update();
|
|
17
|
-
return (_jsxs(ColumnBox, { style: "items-start gap-2", children: [_jsxs(RowBox, { style: "gap-2", centerY: true, children: [_jsx(Folder, { className: "text-accent" }), _jsx("span", { className: "text-sm text-primary", children: title })] }), _jsxs("div", { className: "flex gap-1 justify-center items-center pl-3 pr-[0.35rem] py-1 bg-background-light border border-border rounded-full", children: [_jsx("span", { className: "mr-2 text-xs text-primary-darker font-mono", children: value }), _jsx("span", { className: "pr-1 pl-[0.3rem] py-[0.11rem] text-px bg-accent rounded-l-full rounded-r-md font-semibold text-background cursor-pointer duration-200 hover:bg-accent-light border border-accent-dark", onClick: () => choosePath(), children: "SET" }), _jsx("span", { className: "pl-1 pr-[0.3rem] py-[0.11rem] text-px bg-surface-light rounded-l-md rounded-r-full font-semibold text-primary-darker cursor-pointer duration-200 border border-border hover:border-light", onClick: () => resetPath(), children: "X" })] })] }));
|
|
16
|
+
return (_jsxs(ColumnBox, { style: "items-start gap-2 select-none", children: [_jsxs(RowBox, { style: "gap-2", centerY: true, children: [_jsx(Folder, { className: "text-accent" }), _jsx("span", { className: "text-sm text-primary", children: title })] }), _jsxs("div", { className: "flex gap-1 justify-center items-center pl-3 pr-[0.35rem] py-1 bg-background-light border border-border rounded-full", children: [_jsx("span", { className: "mr-2 text-xs text-primary-darker font-mono", children: value }), _jsx("span", { className: "pr-1 pl-[0.3rem] py-[0.11rem] text-px bg-accent rounded-l-full rounded-r-md font-semibold text-background cursor-pointer duration-200 hover:bg-accent-light border border-accent-dark", onClick: () => choosePath(), children: "SET" }), _jsx("span", { className: "pl-1 pr-[0.3rem] py-[0.11rem] text-px bg-surface-light rounded-l-md rounded-r-full font-semibold text-primary-darker cursor-pointer duration-200 border border-border hover:border-light", onClick: () => resetPath(), children: "X" })] })] }));
|
|
18
17
|
}
|