@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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +1 -0
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/types/avatar/index.d.ts +1 -1
- package/dist/src/components/types/badge/index.d.ts +1 -1
- package/dist/src/components/types/block/index.d.ts +1 -1
- package/dist/src/components/types/chart/index.d.ts +1 -1
- package/dist/src/components/types/credit-card/card/index.d.ts +1 -1
- package/dist/src/components/types/credit-card/functions/index.d.ts +1 -1
- package/dist/src/components/types/credit-card/index.d.ts +1 -1
- package/dist/src/components/types/form/index.d.ts +1 -1
- package/dist/src/components/types/form/types/button/index.d.ts +1 -1
- package/dist/src/components/types/form/types/custom/index.d.ts +1 -1
- package/dist/src/components/types/form/types/datetime/index.d.ts +1 -1
- package/dist/src/components/types/form/types/error/index.d.ts +1 -1
- package/dist/src/components/types/form/types/file/index.d.ts +1 -1
- package/dist/src/components/types/form/types/label/index.d.ts +1 -1
- package/dist/src/components/types/form/types/select/index.d.ts +1 -1
- package/dist/src/components/types/form/types/select/index.js +1 -1
- package/dist/src/components/types/form/types/select/index.mjs +1 -1
- package/dist/src/components/types/form/types/select/options/index.d.ts +1 -1
- package/dist/src/components/types/form/types/text/index.d.ts +1 -1
- package/dist/src/components/types/form/types/textarea/index.d.ts +1 -1
- package/dist/src/components/types/loading/app/index.d.ts +1 -1
- package/dist/src/components/types/loading/bar/index.d.ts +1 -1
- package/dist/src/components/types/logo/index.d.ts +1 -1
- package/dist/src/components/types/lottie/index.d.ts +1 -1
- package/dist/src/components/types/modal/index.d.ts +1 -1
- package/dist/src/components/types/table/index.d.ts +1 -1
- package/dist/src/components/types/table/index.js +3 -3
- package/dist/src/components/types/table/index.mjs +2 -2
- package/dist/src/components/types/table/modal/actions.js +1 -1
- package/dist/src/components/types/table/modal/actions.mjs +1 -1
- package/dist/src/components/types/table/modal/index.d.ts +1 -1
- package/dist/src/components/types/table/modal/index.js +1 -1
- package/dist/src/components/types/table/modal/index.mjs +1 -1
- package/dist/src/components/types/table/paginate/index.d.ts +1 -1
- package/dist/src/components/types/tooltip/index.d.ts +1 -1
- package/dist/src/contexts/icon/index.d.ts +1 -1
- package/dist/src/contexts/index.d.ts +1 -1
- package/dist/src/contexts/index.js +5 -5
- package/dist/src/contexts/index.mjs +5 -5
- package/dist/src/contexts/modal/index.d.ts +1 -1
- package/dist/src/contexts/target/index.d.ts +1 -1
- package/dist/src/contexts/theme/content.d.ts +1 -1
- package/dist/src/contexts/theme/index.d.ts +1 -1
- package/dist/src/contexts/theme/index.js +1 -1
- package/dist/src/contexts/theme/index.mjs +1 -1
- package/dist/src/contexts/tooltip/index.d.ts +1 -1
- package/dist/src/interfaces/components/badge/index.d.ts +1 -1
- package/dist/src/interfaces/components/block/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/custom/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/datetime/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/file/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/select/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/text/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/textarea/index.d.ts +1 -1
- package/dist/src/interfaces/components/modal/index.d.ts +1 -1
- package/dist/src/interfaces/contexts/index.d.ts +1 -1
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/services/index.js +23 -0
- package/dist/src/services/index.mjs +2 -0
- package/dist/src/services/toaster.d.ts +9 -0
- package/dist/src/services/toaster.js +57 -0
- package/dist/src/services/toaster.mjs +23 -0
- package/dist/styled.d.ts +1 -1
- package/package.json +11 -6
package/dist/index.d.ts
CHANGED
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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IAvatar } from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
1
|
+
import { ICreditCard } from "../../../interfaces";
|
|
2
2
|
export declare function CreditCard(props: ICreditCard): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IButton } from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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("
|
|
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 "
|
|
8
|
+
import { useTarget } from "../../../../../contexts";
|
|
9
9
|
import _ from "lodash";
|
|
10
10
|
import InputSelectOption from "./options";
|
|
11
11
|
function InputSelect(props) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IInputText } from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
1
|
+
import { IModal } from "../../../interfaces";
|
|
2
2
|
export declare function Modal(props: IModal): 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
|
|
40
|
+
var import_loading = require("../loading");
|
|
41
41
|
var import_paginate = require("./paginate");
|
|
42
|
-
var import_contexts = require("
|
|
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
|
-
|
|
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 "
|
|
6
|
+
import { LoadingBar } from "../loading";
|
|
7
7
|
import { Paginate } from "./paginate";
|
|
8
|
-
import { useModal, useTheme } from "
|
|
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("
|
|
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 "
|
|
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 "
|
|
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("
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 };
|
|
@@ -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("
|
|
29
|
-
var import_modal = require("
|
|
30
|
-
var import_target = require("
|
|
31
|
-
var import_tooltip = require("
|
|
32
|
-
var import_theme = require("
|
|
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 "
|
|
5
|
-
import { ModalProvider } from "
|
|
6
|
-
import { TargetProvider } from "
|
|
7
|
-
import { TooltipProvider } from "
|
|
8
|
-
import { ThemeProvider } from "
|
|
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 "
|
|
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 "
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { IThemeProvider, IThemeContext } from "
|
|
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("
|
|
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 "
|
|
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 "
|
|
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 };
|
|
@@ -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,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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustavo-valsechi/client",
|
|
3
|
-
"version": "1.4.
|
|
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": "
|
|
52
|
+
"@vitejs/plugin-react": "5.1.0",
|
|
53
53
|
"esbuild": "0.25.11",
|
|
54
|
-
"esbuild-css-modules-plugin": "
|
|
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": "
|
|
63
|
-
"vitest": "
|
|
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
|
}
|