@julseb-lib/react 1.0.17 → 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.cjs CHANGED
@@ -3013,7 +3013,7 @@ var Key = ({
3013
3013
  accentColor = "primary",
3014
3014
  ...rest
3015
3015
  }) => {
3016
- const theme = localStorage.getItem("theme") ?? "light";
3016
+ const { theme } = useLibTheme();
3017
3017
  const Element = element;
3018
3018
  const childrenArray = import_react23.Children.toArray(
3019
3019
  children?.toString().replaceAll(",", "").split("")
@@ -4484,7 +4484,7 @@ var INPUT_LIST_CLASSES = ({
4484
4484
  inputBackground,
4485
4485
  validation
4486
4486
  }) => [
4487
- "left-0 absolute flex flex-col items-start opacity-0 border border-primary-500 rounded-md w-full max-h-0 overflow-hidden overflow-y-scroll transition-all duration-200 ease-in-out z-0",
4487
+ "left-0 absolute flex flex-col items-start opacity-0 border border-primary-500 rounded-md w-full max-h-0 overflow-y-scroll transition-all duration-200 ease-in-out z-0",
4488
4488
  isOpen && "open",
4489
4489
  "[&.open]:opacity-100 [&.open]:max-h-[300px]",
4490
4490
  (listDirection === "down" || !listDirection) && "top-0 [&.open]:pt-8",
@@ -67223,7 +67223,7 @@ var Toast = ({
67223
67223
  ...rest
67224
67224
  }) => {
67225
67225
  const Element = element;
67226
- const theme = localStorage.getItem("theme") ?? "light";
67226
+ const { theme } = useLibTheme();
67227
67227
  return /* @__PURE__ */ (0, import_jsx_runtime333.jsxs)(
67228
67228
  Element,
67229
67229
  {
@@ -67414,7 +67414,7 @@ var Alert = ({
67414
67414
  ...rest
67415
67415
  }) => {
67416
67416
  const Element = element;
67417
- const theme = localStorage.getItem("theme") ?? "light";
67417
+ const { theme } = useLibTheme();
67418
67418
  return /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
67419
67419
  Element,
67420
67420
  {