@julseb-lib/react 1.0.18 → 1.0.19

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 CHANGED
@@ -2831,7 +2831,7 @@ var Key = ({
2831
2831
  accentColor = "primary",
2832
2832
  ...rest
2833
2833
  }) => {
2834
- const theme = localStorage.getItem("theme") ?? "light";
2834
+ const { theme } = useLibTheme();
2835
2835
  const Element = element;
2836
2836
  const childrenArray = Children.toArray(
2837
2837
  children?.toString().replaceAll(",", "").split("")
@@ -67041,7 +67041,7 @@ var Toast = ({
67041
67041
  ...rest
67042
67042
  }) => {
67043
67043
  const Element = element;
67044
- const theme = localStorage.getItem("theme") ?? "light";
67044
+ const { theme } = useLibTheme();
67045
67045
  return /* @__PURE__ */ jsxs278(
67046
67046
  Element,
67047
67047
  {
@@ -67234,7 +67234,7 @@ var Alert = ({
67234
67234
  ...rest
67235
67235
  }) => {
67236
67236
  const Element = element;
67237
- const theme = localStorage.getItem("theme") ?? "light";
67237
+ const { theme } = useLibTheme();
67238
67238
  return /* @__PURE__ */ jsx335(
67239
67239
  Element,
67240
67240
  {