@gustavo-valsechi/client 1.4.183 → 1.4.185

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.
@@ -1,6 +1,6 @@
1
1
  import { ITheme } from "../interfaces";
2
2
  export declare class Toaster {
3
- static provider: (theme: keyof ITheme) => void;
3
+ static provider: (theme: keyof ITheme) => import("react/jsx-runtime").JSX.Element;
4
4
  static success: (message?: string) => string;
5
5
  static error: (message?: string) => string;
6
6
  private static buildMessage;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  "use strict";
3
+ "use client";
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -38,7 +39,7 @@ var import_lodash = __toESM(require("lodash"));
38
39
  const _Toaster = class _Toaster {
39
40
  };
40
41
  _Toaster.provider = (theme) => {
41
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
43
  import_react_hot_toast.Toaster,
43
44
  {
44
45
  position: "top-center",
@@ -1,11 +1,12 @@
1
1
  "use client";
2
+ "use client";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { toast, Toaster as Provider } from "react-hot-toast";
4
5
  import _ from "lodash";
5
6
  const _Toaster = class _Toaster {
6
7
  };
7
8
  _Toaster.provider = (theme) => {
8
- /* @__PURE__ */ jsx(
9
+ return /* @__PURE__ */ jsx(
9
10
  Provider,
10
11
  {
11
12
  position: "top-center",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.183",
3
+ "version": "1.4.185",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",