fina-react-ds 1.0.28 → 1.0.29
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.
|
@@ -5,7 +5,7 @@ import { Sun as i, Moon as s } from "lucide-react";
|
|
|
5
5
|
import { Button as m } from "./button.js";
|
|
6
6
|
import { DropdownMenu as c, DropdownMenuTrigger as d, DropdownMenuContent as h, DropdownMenuItem as t } from "./dropdown-menu.js";
|
|
7
7
|
import { useTheme as p } from "../providers/theme-provider.js";
|
|
8
|
-
function
|
|
8
|
+
function M() {
|
|
9
9
|
const { setTheme: r } = p();
|
|
10
10
|
return /* @__PURE__ */ n(c, { children: [
|
|
11
11
|
/* @__PURE__ */ e(d, { asChild: !0, children: /* @__PURE__ */ n(m, { variant: "ghost", color: "dark", size: "icon", children: [
|
|
@@ -14,13 +14,13 @@ function C() {
|
|
|
14
14
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle theme" })
|
|
15
15
|
] }) }),
|
|
16
16
|
/* @__PURE__ */ n(h, { align: "end", children: [
|
|
17
|
-
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("light"), "onClick"), children: "
|
|
18
|
-
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("dark"), "onClick"), children: "
|
|
19
|
-
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("system"), "onClick"), children: "
|
|
17
|
+
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("light"), "onClick"), children: "Clair" }),
|
|
18
|
+
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("dark"), "onClick"), children: "Sombre" }),
|
|
19
|
+
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("system"), "onClick"), children: "Système" })
|
|
20
20
|
] })
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
23
|
-
o(
|
|
23
|
+
o(M, "ModeToggle");
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
M as ModeToggle
|
|
26
26
|
};
|