@gustavo-valsechi/client 1.4.177 → 1.4.179

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.
Files changed (69) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +3 -1
  3. package/dist/index.mjs +1 -0
  4. package/dist/src/components/index.d.ts +1 -1
  5. package/dist/src/components/types/avatar/index.d.ts +1 -1
  6. package/dist/src/components/types/badge/index.d.ts +1 -1
  7. package/dist/src/components/types/block/index.d.ts +1 -1
  8. package/dist/src/components/types/chart/index.d.ts +1 -1
  9. package/dist/src/components/types/credit-card/card/index.d.ts +1 -1
  10. package/dist/src/components/types/credit-card/functions/index.d.ts +1 -1
  11. package/dist/src/components/types/credit-card/index.d.ts +1 -1
  12. package/dist/src/components/types/form/index.d.ts +1 -1
  13. package/dist/src/components/types/form/types/button/index.d.ts +1 -1
  14. package/dist/src/components/types/form/types/custom/index.d.ts +1 -1
  15. package/dist/src/components/types/form/types/datetime/index.d.ts +1 -1
  16. package/dist/src/components/types/form/types/error/index.d.ts +1 -1
  17. package/dist/src/components/types/form/types/file/index.d.ts +1 -1
  18. package/dist/src/components/types/form/types/label/index.d.ts +1 -1
  19. package/dist/src/components/types/form/types/select/index.d.ts +1 -1
  20. package/dist/src/components/types/form/types/select/index.js +1 -1
  21. package/dist/src/components/types/form/types/select/index.mjs +1 -1
  22. package/dist/src/components/types/form/types/select/options/index.d.ts +1 -1
  23. package/dist/src/components/types/form/types/text/index.d.ts +1 -1
  24. package/dist/src/components/types/form/types/textarea/index.d.ts +1 -1
  25. package/dist/src/components/types/loading/app/index.d.ts +1 -1
  26. package/dist/src/components/types/loading/bar/index.d.ts +1 -1
  27. package/dist/src/components/types/logo/index.d.ts +1 -1
  28. package/dist/src/components/types/lottie/index.d.ts +1 -1
  29. package/dist/src/components/types/modal/index.d.ts +1 -1
  30. package/dist/src/components/types/table/index.d.ts +1 -1
  31. package/dist/src/components/types/table/index.js +3 -3
  32. package/dist/src/components/types/table/index.mjs +2 -2
  33. package/dist/src/components/types/table/modal/actions.js +1 -1
  34. package/dist/src/components/types/table/modal/actions.mjs +1 -1
  35. package/dist/src/components/types/table/modal/index.d.ts +1 -1
  36. package/dist/src/components/types/table/modal/index.js +1 -1
  37. package/dist/src/components/types/table/modal/index.mjs +1 -1
  38. package/dist/src/components/types/table/paginate/index.d.ts +1 -1
  39. package/dist/src/components/types/tooltip/index.d.ts +1 -1
  40. package/dist/src/contexts/icon/index.d.ts +1 -1
  41. package/dist/src/contexts/index.d.ts +1 -1
  42. package/dist/src/contexts/index.js +5 -5
  43. package/dist/src/contexts/index.mjs +5 -5
  44. package/dist/src/contexts/modal/index.d.ts +1 -1
  45. package/dist/src/contexts/target/index.d.ts +1 -1
  46. package/dist/src/contexts/theme/content.d.ts +1 -1
  47. package/dist/src/contexts/theme/index.d.ts +1 -1
  48. package/dist/src/contexts/theme/index.js +1 -1
  49. package/dist/src/contexts/theme/index.mjs +1 -1
  50. package/dist/src/contexts/tooltip/index.d.ts +1 -1
  51. package/dist/src/interfaces/components/badge/index.d.ts +1 -1
  52. package/dist/src/interfaces/components/block/index.d.ts +1 -1
  53. package/dist/src/interfaces/components/form/custom/index.d.ts +1 -1
  54. package/dist/src/interfaces/components/form/datetime/index.d.ts +1 -1
  55. package/dist/src/interfaces/components/form/file/index.d.ts +1 -1
  56. package/dist/src/interfaces/components/form/index.d.ts +1 -1
  57. package/dist/src/interfaces/components/form/select/index.d.ts +1 -1
  58. package/dist/src/interfaces/components/form/text/index.d.ts +1 -1
  59. package/dist/src/interfaces/components/form/textarea/index.d.ts +1 -1
  60. package/dist/src/interfaces/components/modal/index.d.ts +1 -1
  61. package/dist/src/interfaces/contexts/index.d.ts +1 -1
  62. package/dist/src/services/index.d.ts +1 -0
  63. package/dist/src/services/index.js +23 -0
  64. package/dist/src/services/index.mjs +2 -0
  65. package/dist/src/services/toaster.d.ts +9 -0
  66. package/dist/src/services/toaster.js +57 -0
  67. package/dist/src/services/toaster.mjs +23 -0
  68. package/dist/styled.d.ts +1 -1
  69. package/package.json +11 -6
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ import "./styled";
2
2
  export * from "./src/components";
3
3
  export * from "./src/contexts";
4
4
  export * from "./src/interfaces";
5
+ export * from "./src/services";
package/dist/index.js CHANGED
@@ -20,9 +20,11 @@ var import_styled = require("./styled");
20
20
  __reExport(index_exports, require("./src/components"), module.exports);
21
21
  __reExport(index_exports, require("./src/contexts"), module.exports);
22
22
  __reExport(index_exports, require("./src/interfaces"), module.exports);
23
+ __reExport(index_exports, require("./src/services"), module.exports);
23
24
  // Annotate the CommonJS export names for ESM import in node:
24
25
  0 && (module.exports = {
25
26
  ...require("./src/components"),
26
27
  ...require("./src/contexts"),
27
- ...require("./src/interfaces")
28
+ ...require("./src/interfaces"),
29
+ ...require("./src/services")
28
30
  });
package/dist/index.mjs CHANGED
@@ -3,3 +3,4 @@ import "./styled";
3
3
  export * from "./src/components";
4
4
  export * from "./src/contexts";
5
5
  export * from "./src/interfaces";
6
+ export * from "./src/services";
@@ -1,3 +1,3 @@
1
- import { IComponent } from "src/interfaces";
1
+ import { IComponent } from "../interfaces";
2
2
  export * from "./types";
3
3
  export default function Component(props: IComponent): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IAvatar } from "src/interfaces";
1
+ import { IAvatar } from "../../../interfaces";
2
2
  export declare function Avatar(props: IAvatar): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IBadge } from "src/interfaces";
1
+ import { IBadge } from "../../../interfaces";
2
2
  export declare function Badge(props: IBadge): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IBlock } from "src/interfaces";
1
+ import { IBlock } from "../../../interfaces";
2
2
  export declare function Block(props: IBlock): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IChart } from "src/interfaces";
1
+ import { IChart } from "../../../interfaces";
2
2
  export declare function Chart(props: IChart): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ICreditCard } from "src/interfaces";
1
+ import { ICreditCard } from "../../../../interfaces";
2
2
  export default function CreditCardComponent(props: ICreditCard): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ICreditCard } from "src/interfaces";
1
+ import { ICreditCard } from "../../../../interfaces";
2
2
  export default function CreditCardFunctions(props: ICreditCard): false | import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ICreditCard } from "src/interfaces";
1
+ import { ICreditCard } from "../../../interfaces";
2
2
  export declare function CreditCard(props: ICreditCard): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { IForm } from "src/interfaces";
1
+ import { IForm } from "../../../interfaces";
2
2
  export * from "./types";
3
3
  export declare function Form(props: IForm): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IButton } from "src/interfaces";
1
+ import { IButton } from "../../../../../interfaces";
2
2
  export declare function Button(props: IButton): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputCustom } from "src/interfaces";
1
+ import { IInputCustom } from "../../../../../interfaces";
2
2
  export declare function InputCustom(props: IInputCustom): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputDateTime } from "src/interfaces";
1
+ import { IInputDateTime } from "../../../../../interfaces";
2
2
  export declare function InputDateTime(props: IInputDateTime): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputError } from "src/interfaces";
1
+ import { IInputError } from "../../../../../interfaces";
2
2
  export declare function InputError(props: IInputError): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputFile } from "src/interfaces";
1
+ import { IInputFile } from "../../../../../interfaces";
2
2
  export declare function InputFile(props: IInputFile): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputLabel } from "src/interfaces";
1
+ import { IInputLabel } from "../../../../../interfaces";
2
2
  export declare function InputLabel(props: IInputLabel): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputSelect } from "src/interfaces";
1
+ import { IInputSelect } from "../../../../../interfaces";
2
2
  export declare function InputSelect(props: IInputSelect): import("react/jsx-runtime").JSX.Element;
@@ -38,7 +38,7 @@ var import_react = require("react");
38
38
  var import_styles = require("./styles");
39
39
  var import_label = require("../label");
40
40
  var import_error = require("../error");
41
- var import_contexts = require("../../../../../../src/contexts");
41
+ var import_contexts = require("../../../../../contexts");
42
42
  var import_lodash = __toESM(require("lodash"));
43
43
  var import_options = __toESM(require("./options"));
44
44
  function InputSelect(props) {
@@ -5,7 +5,7 @@ import { useState, useRef, useEffect } from "react";
5
5
  import { Container } from "./styles";
6
6
  import { InputLabel } from "../label";
7
7
  import { InputError } from "../error";
8
- import { useTarget } from "../../../../../../src/contexts";
8
+ import { useTarget } from "../../../../../contexts";
9
9
  import _ from "lodash";
10
10
  import InputSelectOption from "./options";
11
11
  function InputSelect(props) {
@@ -1,4 +1,4 @@
1
- import { IInputSelect } from "src/interfaces";
1
+ import { IInputSelect } from "../../../../../../interfaces";
2
2
  export default function InputSelectOption(props: IInputSelect & {
3
3
  inputRef: any;
4
4
  width: number;
@@ -1,2 +1,2 @@
1
- import { IInputText } from "src/interfaces";
1
+ import { IInputText } from "../../../../../interfaces";
2
2
  export declare function InputText(props: IInputText): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IInputTextarea } from "src/interfaces";
1
+ import { IInputTextarea } from "../../../../../interfaces";
2
2
  export declare function InputTextarea(props: IInputTextarea): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ILoadingApp } from "src/interfaces";
1
+ import { ILoadingApp } from "../../../../interfaces";
2
2
  export declare function LoadingApp(props: ILoadingApp): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ILoadingBar } from "src/interfaces";
1
+ import { ILoadingBar } from "../../../../interfaces";
2
2
  export declare function LoadingBar(props: ILoadingBar): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ILogo } from "src/interfaces";
1
+ import { ILogo } from "../../../interfaces";
2
2
  export declare function Logo(props: ILogo): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ILottie } from "src/interfaces";
1
+ import { ILottie } from "../../../interfaces";
2
2
  export declare function Lottie(props: ILottie): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IModal } from "src/interfaces";
1
+ import { IModal } from "../../../interfaces";
2
2
  export declare function Modal(props: IModal): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { ITable } from "src/interfaces";
1
+ import { ITable } from "../../../interfaces";
2
2
  export * from "./paginate";
3
3
  export declare function Table(props: ITable): import("react/jsx-runtime").JSX.Element;
@@ -37,9 +37,9 @@ module.exports = __toCommonJS(table_exports);
37
37
  var import_jsx_runtime = require("react/jsx-runtime");
38
38
  var import_react = require("react");
39
39
  var import_styles = require("./styles");
40
- var import_components = require("../../../../src/components");
40
+ var import_loading = require("../loading");
41
41
  var import_paginate = require("./paginate");
42
- var import_contexts = require("../../../../src/contexts");
42
+ var import_contexts = require("../../../contexts");
43
43
  var import_lodash = __toESM(require("lodash"));
44
44
  var import_modal = __toESM(require("./modal"));
45
45
  __reExport(table_exports, require("./paginate"), module.exports);
@@ -150,7 +150,7 @@ function Table(props) {
150
150
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: loading ? import_lodash.default.map(((_c = props.loading) == null ? void 0 : _c.items) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (data, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { children: import_lodash.default.map(props.options, (data2, index) => {
151
151
  var _a2;
152
152
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
- import_components.LoadingBar,
153
+ import_loading.LoadingBar,
154
154
  {
155
155
  height: "2.5rem",
156
156
  borderRadius: index === 0 ? "5px 0 0 5px" : ((_a2 = props.options) == null ? void 0 : _a2.length) - 1 === index ? "0 5px 5px 0" : "0",
@@ -3,9 +3,9 @@
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { useEffect } from "react";
5
5
  import { Container } from "./styles";
6
- import { LoadingBar } from "../../../../src/components";
6
+ import { LoadingBar } from "../loading";
7
7
  import { Paginate } from "./paginate";
8
- import { useModal, useTheme } from "../../../../src/contexts";
8
+ import { useModal, useTheme } from "../../../contexts";
9
9
  import _ from "lodash";
10
10
  import Modal from "./modal";
11
11
  export * from "./paginate";
@@ -22,7 +22,7 @@ __export(actions_exports, {
22
22
  default: () => actions_default
23
23
  });
24
24
  module.exports = __toCommonJS(actions_exports);
25
- var import_content = require("../../../../../src/contexts/theme/content");
25
+ var import_content = require("../../../../contexts/theme/content");
26
26
  const actionConfig = {
27
27
  "fa-solid fa-pen-to-square": { label: "editar" },
28
28
  "fa-solid fa-trash-can": { label: "remover", color: import_content.CommonTheme.negative }
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { CommonTheme } from "../../../../../src/contexts/theme/content";
2
+ import { CommonTheme } from "../../../../contexts/theme/content";
3
3
  const actionConfig = {
4
4
  "fa-solid fa-pen-to-square": { label: "editar" },
5
5
  "fa-solid fa-trash-can": { label: "remover", color: CommonTheme.negative }
@@ -1,2 +1,2 @@
1
- import { IModal } from "src/interfaces";
1
+ import { IModal } from "../../../../interfaces";
2
2
  export default function Modal(props: IModal): import("react/jsx-runtime").JSX.Element;
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(modal_exports);
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var import_styles = require("./styles");
38
38
  var import_styles2 = require("../styles");
39
- var import_contexts = require("../../../../../src/contexts");
39
+ var import_contexts = require("../../../../contexts");
40
40
  var import__ = __toESM(require("../../.."));
41
41
  var import_lodash = __toESM(require("lodash"));
42
42
  var import_actions = __toESM(require("./actions"));
@@ -3,7 +3,7 @@
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Content } from "./styles";
5
5
  import { Container } from "../styles";
6
- import { useModal } from "../../../../../src/contexts";
6
+ import { useModal } from "../../../../contexts";
7
7
  import Component from "../../..";
8
8
  import _ from "lodash";
9
9
  import actionConfig from "./actions";
@@ -1,2 +1,2 @@
1
- import { IPaginate } from "src/interfaces";
1
+ import { IPaginate } from "../../../../interfaces";
2
2
  export declare function Paginate(props: IPaginate): false | import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ITooltip } from "src/interfaces";
1
+ import { ITooltip } from "../../../interfaces";
2
2
  export declare function Tooltip(props: ITooltip): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { IIconProvider, IIconContext } from "src/interfaces";
1
+ import { IIconProvider, IIconContext } from "../../interfaces";
2
2
  declare const IconProviderContainer: ({ children }: IIconProvider) => import("react/jsx-runtime").JSX.Element;
3
3
  declare const useIcon: () => IIconContext;
4
4
  export { IconProviderContainer as IconProvider, useIcon };
@@ -1,4 +1,4 @@
1
- import { IContext } from "src/interfaces";
1
+ import { IContext } from "../interfaces";
2
2
  export * from "./icon";
3
3
  export * from "./theme";
4
4
  export * from "./tooltip";
@@ -25,11 +25,11 @@ __export(contexts_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(contexts_exports);
27
27
  var import_jsx_runtime = require("react/jsx-runtime");
28
- var import_icon = require("../../src/contexts/icon");
29
- var import_modal = require("../../src/contexts/modal");
30
- var import_target = require("../../src/contexts/target");
31
- var import_tooltip = require("../../src/contexts/tooltip");
32
- var import_theme = require("../../src/contexts/theme");
28
+ var import_icon = require("../contexts/icon");
29
+ var import_modal = require("../contexts/modal");
30
+ var import_target = require("../contexts/target");
31
+ var import_tooltip = require("../contexts/tooltip");
32
+ var import_theme = require("../contexts/theme");
33
33
  __reExport(contexts_exports, require("./icon"), module.exports);
34
34
  __reExport(contexts_exports, require("./theme"), module.exports);
35
35
  __reExport(contexts_exports, require("./tooltip"), module.exports);
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  "use client";
3
3
  import { jsx } from "react/jsx-runtime";
4
- import { IconProvider } from "../../src/contexts/icon";
5
- import { ModalProvider } from "../../src/contexts/modal";
6
- import { TargetProvider } from "../../src/contexts/target";
7
- import { TooltipProvider } from "../../src/contexts/tooltip";
8
- import { ThemeProvider } from "../../src/contexts/theme";
4
+ import { IconProvider } from "../contexts/icon";
5
+ import { ModalProvider } from "../contexts/modal";
6
+ import { TargetProvider } from "../contexts/target";
7
+ import { TooltipProvider } from "../contexts/tooltip";
8
+ import { ThemeProvider } from "../contexts/theme";
9
9
  export * from "./icon";
10
10
  export * from "./theme";
11
11
  export * from "./tooltip";
@@ -1,4 +1,4 @@
1
- import { IModalProvider, IModalContext } from "src/interfaces";
1
+ import { IModalProvider, IModalContext } from "../../interfaces";
2
2
  declare const ModalProviderContainer: ({ children }: IModalProvider) => import("react/jsx-runtime").JSX.Element;
3
3
  declare const useModal: () => IModalContext;
4
4
  export { ModalProviderContainer as ModalProvider, useModal };
@@ -1,4 +1,4 @@
1
- import { ITargetProvider, ITargetContext } from "src/interfaces";
1
+ import { ITargetProvider, ITargetContext } from "../../interfaces";
2
2
  declare const TargetProviderContainer: ({ children }: ITargetProvider) => import("react/jsx-runtime").JSX.Element;
3
3
  declare const useTarget: () => ITargetContext;
4
4
  export { TargetProviderContainer as TargetProvider, useTarget };
@@ -1,3 +1,3 @@
1
- import { ICommonTheme, ITheme } from "src/interfaces";
1
+ import { ICommonTheme, ITheme } from "../../interfaces";
2
2
  export declare const CommonTheme: ICommonTheme;
3
3
  export declare const Themes: ITheme;
@@ -1,4 +1,4 @@
1
- import { IThemeProvider, IThemeContext } from "src/interfaces";
1
+ import { IThemeProvider, IThemeContext } from "../../interfaces";
2
2
  declare const ThemeProviderContainer: (props: IThemeProvider) => import("react/jsx-runtime").JSX.Element;
3
3
  declare const useTheme: () => IThemeContext;
4
4
  export { ThemeProviderContainer as ThemeProvider, useTheme };
@@ -40,7 +40,7 @@ var import_styled_components = require("styled-components");
40
40
  var import_styles = require("./styles");
41
41
  var import_content = require("./content");
42
42
  var import_tools = require("@gustavo-valsechi/server/tools");
43
- var import_registry = __toESM(require("../../../src/contexts/theme/registry"));
43
+ var import_registry = __toESM(require("../../contexts/theme/registry"));
44
44
  var import_global = __toESM(require("./global.styles"));
45
45
  const ThemeContext = (0, import_react.createContext)({});
46
46
  const ThemeProviderContainer = (props) => {
@@ -6,7 +6,7 @@ import { ThemeProvider } from "styled-components";
6
6
  import { Switcher } from "./styles";
7
7
  import { Themes } from "./content";
8
8
  import { setStorage } from "@gustavo-valsechi/server/tools";
9
- import StyledComponentsRegistry from "../../../src/contexts/theme/registry";
9
+ import StyledComponentsRegistry from "../../contexts/theme/registry";
10
10
  import GlobalStyles from "./global.styles";
11
11
  const ThemeContext = createContext({});
12
12
  const ThemeProviderContainer = (props) => {
@@ -1,4 +1,4 @@
1
- import { ITooltipProvider } from "src/interfaces";
1
+ import { ITooltipProvider } from "../../interfaces";
2
2
  declare const TooltipProviderContainer: ({ children }: ITooltipProvider) => import("react/jsx-runtime").JSX.Element;
3
3
  declare const useTooltip: () => any;
4
4
  export { TooltipProviderContainer as TooltipProvider, useTooltip };
@@ -1,4 +1,4 @@
1
- import { IThemeContent } from "src/interfaces";
1
+ import { IThemeContent } from "../../contexts";
2
2
  export interface IBadge {
3
3
  value: string;
4
4
  color: keyof IThemeContent;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IComponentContent } from "src/interfaces";
2
+ import { IComponentContent } from "../index";
3
3
  interface IBase {
4
4
  icon?: string;
5
5
  label?: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { UseFormRegister } from "react-hook-form";
3
- import { IInputType } from "src/interfaces";
3
+ import { IInputType } from "../index";
4
4
  import { z } from "zod";
5
5
  export interface IInputCustom {
6
6
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { UseFormRegister } from "react-hook-form";
2
- import { IInputType } from "src/interfaces";
2
+ import { IInputType } from "../index";
3
3
  import { z } from "zod";
4
4
  export interface IInputDateTime {
5
5
  type?: IInputType;
@@ -1,5 +1,5 @@
1
1
  import { UseFormRegister } from "react-hook-form";
2
- import { IInputType } from "src/interfaces";
2
+ import { IInputType } from "../index";
3
3
  import { z } from "zod";
4
4
  export interface IInputFile {
5
5
  type?: IInputType;
@@ -1,4 +1,4 @@
1
- import { IButton, IInputSelect } from "src/interfaces";
1
+ import { IButton, IInputSelect } from "../form";
2
2
  export * from "./file";
3
3
  export * from "./label";
4
4
  export * from "./text";
@@ -1,5 +1,5 @@
1
1
  import { UseFormRegister } from "react-hook-form";
2
- import { IInputType } from "src/interfaces";
2
+ import { IInputType } from "../index";
3
3
  import { z } from "zod";
4
4
  export interface IInputSelect {
5
5
  type?: IInputType;
@@ -1,5 +1,5 @@
1
1
  import { UseFormRegister } from "react-hook-form";
2
- import { IInputType } from "src/interfaces";
2
+ import { IInputType } from "../index";
3
3
  import { z } from "zod";
4
4
  export interface IInputText {
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { UseFormRegister } from "react-hook-form";
2
- import { IInputType } from "src/interfaces";
2
+ import { IInputType } from "../index";
3
3
  import { z } from "zod";
4
4
  export interface IInputTextarea {
5
5
  type?: IInputType;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IButton } from "src/interfaces";
2
+ import { IButton } from "../form";
3
3
  export interface IModal {
4
4
  toggle?: boolean;
5
5
  onClose?: () => void;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IThemeProvider } from "src/interfaces";
2
+ import { IThemeProvider } from "./theme";
3
3
  export * from "./icon";
4
4
  export * from "./theme";
5
5
  export * from "./tooltip";
@@ -0,0 +1 @@
1
+ export * from "./toaster";
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from))
10
+ if (!__hasOwnProp.call(to, key) && key !== except)
11
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ }
13
+ return to;
14
+ };
15
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
+ var services_exports = {};
18
+ module.exports = __toCommonJS(services_exports);
19
+ __reExport(services_exports, require("./toaster"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("./toaster")
23
+ });
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export * from "./toaster";
@@ -0,0 +1,9 @@
1
+ export declare class Toast {
2
+ static set: (config: {
3
+ type: string;
4
+ message: string;
5
+ }) => Promise<void>;
6
+ static success: (message?: string) => string;
7
+ static error: (message?: string) => string;
8
+ static buildMessage: (message: string) => string;
9
+ }
@@ -0,0 +1,57 @@
1
+ "use client";
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var toaster_exports = {};
31
+ __export(toaster_exports, {
32
+ Toast: () => Toast
33
+ });
34
+ module.exports = __toCommonJS(toaster_exports);
35
+ var import_react_hot_toast = require("react-hot-toast");
36
+ var import_lodash = __toESM(require("lodash"));
37
+ const _Toast = class _Toast {
38
+ };
39
+ _Toast.set = async (config) => {
40
+ if (!config.type || config.type === "success") _Toast.success(config.message);
41
+ if (config.type === "error") _Toast.error(config.message);
42
+ };
43
+ _Toast.success = (message = "") => {
44
+ return import_react_hot_toast.toast.success(_Toast.buildMessage(message));
45
+ };
46
+ _Toast.error = (message = "") => {
47
+ return import_react_hot_toast.toast.error(_Toast.buildMessage(message));
48
+ };
49
+ _Toast.buildMessage = (message) => {
50
+ if (!!message && !import_lodash.default.isString(message)) return JSON.stringify(message);
51
+ return import_lodash.default.trim(message, ".");
52
+ };
53
+ let Toast = _Toast;
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ Toast
57
+ });
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ import { toast } from "react-hot-toast";
3
+ import _ from "lodash";
4
+ const _Toast = class _Toast {
5
+ };
6
+ _Toast.set = async (config) => {
7
+ if (!config.type || config.type === "success") _Toast.success(config.message);
8
+ if (config.type === "error") _Toast.error(config.message);
9
+ };
10
+ _Toast.success = (message = "") => {
11
+ return toast.success(_Toast.buildMessage(message));
12
+ };
13
+ _Toast.error = (message = "") => {
14
+ return toast.error(_Toast.buildMessage(message));
15
+ };
16
+ _Toast.buildMessage = (message) => {
17
+ if (!!message && !_.isString(message)) return JSON.stringify(message);
18
+ return _.trim(message, ".");
19
+ };
20
+ let Toast = _Toast;
21
+ export {
22
+ Toast
23
+ };
package/dist/styled.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "styled-components";
2
- import { IThemeContent } from "src/interfaces";
2
+ import { IThemeContent } from "./src/interfaces";
3
3
  declare module "styled-components" {
4
4
  interface DefaultTheme extends IThemeContent {
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.177",
3
+ "version": "1.4.179",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,6 @@
12
12
  "clean": "rimraf dist && rimraf node_modules/.cache",
13
13
  "build:types": "tsc -p tsconfig.json",
14
14
  "build:js": "tsup && tsc-alias",
15
- "build:remodel": "node scripts/remodel.js",
16
15
  "build:assets": "node scripts/assets.js",
17
16
  "build": "npm run clean && npm run build:js && npm run build:types && npm run build:assets",
18
17
  "commit": "npm run build && npm version patch --no-git-tag-version && npm publish --access public",
@@ -30,6 +29,7 @@
30
29
  "@hookform/resolvers": "5.2.2",
31
30
  "apexcharts": "3.51.0",
32
31
  "lodash": "4.17.21",
32
+ "luhn": "2.4.1",
33
33
  "next": "14.2.5",
34
34
  "randomcolor": "0.6.2",
35
35
  "react-apexcharts": "1.4.1",
@@ -49,9 +49,9 @@
49
49
  "@types/react-dom": "18.3.0",
50
50
  "@types/react-lottie": "1.2.10",
51
51
  "@types/styled-components": "5.1.34",
52
- "@vitejs/plugin-react": "^5.1.0",
52
+ "@vitejs/plugin-react": "5.1.0",
53
53
  "esbuild": "0.25.11",
54
- "esbuild-css-modules-plugin": "^3.1.5",
54
+ "esbuild-css-modules-plugin": "3.1.5",
55
55
  "raw-loader": "4.0.2",
56
56
  "react": "18.3.1",
57
57
  "react-dom": "18.3.1",
@@ -59,8 +59,8 @@
59
59
  "styled-components": "6.1.12",
60
60
  "tsc-alias": "1.8.16",
61
61
  "typescript": "5.5.4",
62
- "vite": "^7.2.1",
63
- "vitest": "^4.0.8"
62
+ "vite": "7.2.1",
63
+ "vitest": "4.0.8"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"
@@ -85,6 +85,11 @@
85
85
  "types": "./dist/src/interfaces/index.d.ts",
86
86
  "import": "./dist/src/interfaces/index.js",
87
87
  "require": "./dist/src/interfaces/index.js"
88
+ },
89
+ "./services": {
90
+ "types": "./dist/src/services/index.d.ts",
91
+ "import": "./dist/src/services/index.js",
92
+ "require": "./dist/src/services/index.js"
88
93
  }
89
94
  }
90
95
  }