infinity-forge 0.1.5 → 0.1.7
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 +3 -3
- package/dist/index.js +3 -3
- package/dist/sites/components/brands-carousel/index.js +2 -2
- package/dist/sites/components/carousel/component.d.ts +1 -1
- package/dist/sites/components/carousel/component.js +1 -1
- package/dist/sites/components/carousel/index.d.ts +1 -1
- package/dist/sites/components/carousel/index.js +1 -1
- package/dist/sites/components/carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.js +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.js +1 -1
- package/dist/sites/components/counter/component.d.ts +1 -1
- package/dist/sites/components/counter/component.js +1 -1
- package/dist/sites/components/counter/index.d.ts +1 -1
- package/dist/sites/components/counter/index.js +1 -1
- package/dist/sites/components/counter/interfaces.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.js +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
- package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/component.js +3 -3
- package/dist/sites/components/counter/versions/version-01/component.stories.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/component.stories.js +1 -1
- package/dist/sites/components/head/component.d.ts +1 -1
- package/dist/sites/components/head/index.d.ts +2 -2
- package/dist/sites/components/head/index.js +2 -2
- package/dist/sites/components/header-link/component.d.ts +1 -1
- package/dist/sites/components/header-link/component.js +1 -1
- package/dist/sites/components/header-link/index.d.ts +1 -1
- package/dist/sites/components/header-link/index.js +1 -1
- package/dist/sites/components/header-link/interfaces.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.js +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
- package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
- package/dist/sites/components/index.d.ts +6 -6
- package/dist/sites/components/index.js +6 -6
- package/dist/sites/components/mvv/component.d.ts +1 -1
- package/dist/sites/components/mvv/component.js +1 -1
- package/dist/sites/components/mvv/index.d.ts +1 -1
- package/dist/sites/components/mvv/index.js +1 -1
- package/dist/sites/components/mvv/interfaces.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.js +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
- package/dist/sites/context/configs/context.d.ts +1 -1
- package/dist/sites/context/configs/context.js +3 -3
- package/dist/sites/context/configs/index.d.ts +2 -2
- package/dist/sites/context/configs/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-cookies/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-ratedr/index.js +2 -2
- package/dist/sites/context/configs/scripts/component.d.ts +1 -1
- package/dist/sites/context/configs/scripts/component.js +4 -4
- package/dist/sites/context/configs/scripts/index.d.ts +5 -5
- package/dist/sites/context/configs/scripts/index.js +5 -5
- package/dist/sites/context/configs/scripts/interfaces.d.ts +1 -1
- package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +1 -1
- package/dist/sites/context/index.d.ts +1 -1
- package/dist/sites/context/index.js +1 -1
- package/dist/sites/index.d.ts +3 -3
- package/dist/sites/index.js +3 -3
- package/dist/sites/interfaces/api-data/index.d.ts +1 -1
- package/dist/sites/interfaces/api-data/index.js +1 -1
- package/dist/sites/interfaces/index.d.ts +2 -2
- package/dist/sites/interfaces/index.js +2 -2
- package/dist/system/components/data/avatar/index.js +2 -2
- package/dist/system/components/data/cards/index.d.ts +1 -1
- package/dist/system/components/data/cards/index.js +1 -1
- package/dist/system/components/data/cards/message-card/index.d.ts +1 -1
- package/dist/system/components/data/cards/message-card/index.js +3 -3
- package/dist/system/components/data/index.d.ts +9 -9
- package/dist/system/components/data/index.js +9 -9
- package/dist/system/components/data/logo/index.js +2 -2
- package/dist/system/components/data/overlay/index.d.ts +1 -1
- package/dist/system/components/data/overlay/index.js +2 -2
- package/dist/system/components/data/page-wrapper/index.d.ts +1 -1
- package/dist/system/components/data/page-wrapper/index.js +2 -2
- package/dist/system/components/data/popover/index.d.ts +1 -1
- package/dist/system/components/data/sign-in/index.js +4 -4
- package/dist/system/components/data/sign-in/index.js.map +1 -1
- package/dist/system/components/data/sign-up/index.js +4 -4
- package/dist/system/components/data/sign-up/index.js.map +1 -1
- package/dist/system/components/data/skeleton/index.d.ts +1 -1
- package/dist/system/components/data/skeleton/index.js +2 -2
- package/dist/system/components/index.d.ts +2 -2
- package/dist/system/components/index.js +2 -2
- package/dist/system/components/layout/component.js +3 -3
- package/dist/system/components/layout/header/components/index.d.ts +2 -2
- package/dist/system/components/layout/header/components/index.js +2 -2
- package/dist/system/components/layout/header/components/menu-right/index.js +6 -6
- package/dist/system/components/layout/header/components/menu-right/messages/content/index.d.ts +1 -1
- package/dist/system/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- package/dist/system/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/components/layout/header/components/menu-right/notifications/index.js +1 -1
- package/dist/system/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/components/layout/header/components/menu-right/profile/index.js +4 -4
- package/dist/system/components/layout/header/components/menu-right/settings/index.js +2 -2
- package/dist/system/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/components/layout/header/components/search-modal/search-list/index.js +3 -3
- package/dist/system/components/layout/header/components/search-modal/trigger/index.js +2 -2
- package/dist/system/components/layout/header/index.js +1 -1
- package/dist/system/components/layout/header/version-01/index.js +3 -3
- package/dist/system/components/layout/index.d.ts +3 -3
- package/dist/system/components/layout/index.js +3 -3
- package/dist/system/components/layout/menu/components/index.d.ts +2 -2
- package/dist/system/components/layout/menu/components/index.js +2 -2
- package/dist/system/components/layout/menu/components/menu/index.js +3 -3
- package/dist/system/components/layout/menu/components/select-workspace/index.js +2 -2
- package/dist/system/components/layout/menu/index.js +1 -1
- package/dist/system/components/layout/menu/version-01/index.js +3 -3
- package/dist/system/configs/index.d.ts +3 -3
- package/dist/system/configs/index.js +3 -3
- package/dist/system/hooks/index.d.ts +1 -1
- package/dist/system/hooks/index.js +1 -1
- package/dist/system/hooks/ui/index.d.ts +1 -1
- package/dist/system/hooks/ui/index.js +1 -1
- package/dist/system/hooks/ui/use-table/component.d.ts +1 -1
- package/dist/system/hooks/ui/use-table/component.js +1 -1
- package/dist/system/hooks/ui/use-table/components/active-indicator/index.js +1 -1
- package/dist/system/hooks/ui/use-table/components/index.d.ts +3 -3
- package/dist/system/hooks/ui/use-table/components/index.js +3 -3
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/index.js +1 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/index.d.ts +1 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/index.js +4 -4
- package/dist/system/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/hooks/ui/use-table/components/table/index.js +6 -6
- package/dist/system/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/hooks/ui/use-table/components/table/loader-table/index.js +1 -1
- package/dist/system/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/hooks/ui/use-table/components/table/thead-item/index.js +3 -3
- package/dist/system/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/hooks/ui/use-table/index.d.ts +5 -5
- package/dist/system/hooks/ui/use-table/index.js +5 -5
- package/dist/system/hooks/ui/use-table/query/index.d.ts +2 -2
- package/dist/system/hooks/ui/use-table/query/index.js +1 -1
- package/dist/system/hooks/ui/use-table/query/interfaces.d.ts +1 -1
- package/dist/system/hooks/ui/use-table/query/service.js +1 -1
- package/dist/system/hooks/ui/use-table/utils/filter-empty-values.js +1 -1
- package/dist/system/hooks/ui/use-table/utils/index.d.ts +4 -4
- package/dist/system/hooks/ui/use-table/utils/index.js +4 -4
- package/dist/system/index.d.ts +3 -3
- package/dist/system/index.js +3 -3
- package/dist/ui/components/accordion/index..d.ts +1 -1
- package/dist/ui/components/accordion/index..js +2 -2
- package/dist/ui/components/breadcrumb/index.d.ts +1 -1
- package/dist/ui/components/breadcrumb/index.js +1 -1
- package/dist/ui/components/button/component.d.ts +1 -1
- package/dist/ui/components/button/component.js +2 -2
- package/dist/ui/components/button/index.d.ts +2 -2
- package/dist/ui/components/button/index.js +2 -2
- package/dist/ui/components/button/interfaces.d.ts +1 -1
- package/dist/ui/components/container/index.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.js +1 -1
- package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
- package/dist/ui/components/error-boundary/index.d.ts +2 -2
- package/dist/ui/components/error-boundary/index.js +2 -2
- package/dist/ui/components/form/checkbox/index.js +2 -2
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -16
- package/dist/ui/components/form/handler/custom-submit/index.js +0 -22
- package/dist/ui/components/form/handler/index.d.ts +0 -3
- package/dist/ui/components/form/handler/index.js +0 -128
- package/dist/ui/components/form/handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/interfaces.d.ts +0 -15
- package/dist/ui/components/form/helpers/index.d.ts +0 -1
- package/dist/ui/components/form/helpers/index.js +0 -18
- package/dist/ui/components/form/index.d.ts +0 -12
- package/dist/ui/components/form/index.js +0 -29
- package/dist/ui/components/form/input/index.d.ts +0 -2
- package/dist/ui/components/form/input/index.js +0 -31
- package/dist/ui/components/form/input-control/error/index.d.ts +0 -2
- package/dist/ui/components/form/input-control/error/index.js +0 -34
- package/dist/ui/components/form/input-control/index.d.ts +0 -2
- package/dist/ui/components/form/input-control/index.js +0 -38
- package/dist/ui/components/form/input-control/label/index.js +0 -34
- package/dist/ui/components/form/input-control/loader-input/index.js +0 -34
- package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
- package/dist/ui/components/form/input-cpf-cnpj/index.js +2 -2
- package/dist/ui/components/form/input-file/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/index.js +1 -1
- package/dist/ui/components/form/input-mask/index.d.ts +1 -1
- package/dist/ui/components/form/input-mask/index.js +1 -1
- package/dist/ui/components/form/input-password/index.d.ts +1 -1
- package/dist/ui/components/form/input-password/index.js +2 -2
- package/dist/ui/components/form/radio/index.js +0 -47
- package/dist/ui/components/form/select/index.d.ts +0 -2
- package/dist/ui/components/form/select/index.js +0 -55
- package/dist/ui/components/form/select/interfaces.d.ts +0 -17
- package/dist/ui/components/form/textarea/index.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.js +2 -2
- package/dist/ui/components/index.d.ts +8 -8
- package/dist/ui/components/index.js +8 -8
- package/dist/ui/components/loader-circle/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.js +4 -4
- package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/top/index.js +2 -2
- package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
- package/dist/ui/components/next-image/index.d.ts +1 -1
- package/dist/ui/components/next-image/index.js +3 -3
- package/dist/ui/contexts/index.d.ts +0 -3
- package/dist/ui/contexts/index.js +0 -20
- package/dist/ui/contexts/theme/context.js +0 -19
- package/dist/ui/contexts/theme/index.d.ts +0 -2
- package/dist/ui/contexts/theme/index.js +0 -19
- package/dist/ui/contexts/toast/index.d.ts +0 -8
- package/dist/ui/contexts/toast/index.js +0 -70
- package/dist/ui/contexts/toast/toast-item/index.d.ts +0 -5
- package/dist/ui/contexts/toast/toast-item/index.js +0 -65
- package/dist/ui/icons/render/Eye.d.ts +1 -1
- package/dist/ui/icons/render/Globe.d.ts +1 -1
- package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
- package/dist/ui/icons/render/index.d.ts +1 -1
- package/dist/ui/icons/render/index.js +1 -1
- package/dist/ui/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/dist/ui/utils/facebook/index.d.ts +0 -1
- package/dist/ui/utils/facebook/index.js +0 -18
- package/dist/ui/utils/index.d.ts +0 -5
- package/dist/ui/utils/index.js +0 -22
- package/dist/ui/utils/libs/@tanstack/index.d.ts +0 -1
- package/dist/ui/utils/libs/@tanstack/index.js +0 -18
- package/dist/ui/utils/libs/@tanstack/react-query/index.d.ts +0 -1
- package/dist/ui/utils/libs/@tanstack/react-query/index.js +0 -18
- package/dist/ui/utils/libs/index.d.ts +0 -2
- package/dist/ui/utils/libs/index.js +0 -19
- package/dist/ui/utils/validations/index.d.ts +0 -2
- package/dist/ui/utils/validations/index.js +0 -19
- package/package.json +1 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./theme/index.js"), exports);
|
|
18
|
-
__exportStar(require("./toast/index.js"), exports);
|
|
19
|
-
__exportStar(require("./route-loading/index.js"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useTheme = exports.ThemeProvider = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var react_1 = require("react");
|
|
6
|
-
var styled_components_1 = require("styled-components");
|
|
7
|
-
var interfaces_1 = require("./interfaces.js");
|
|
8
|
-
var themeContext = (0, react_1.createContext)({});
|
|
9
|
-
function ThemeProvider(_a) {
|
|
10
|
-
var children = _a.children;
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, { theme: interfaces_1.theme, children: children }));
|
|
12
|
-
}
|
|
13
|
-
exports.ThemeProvider = ThemeProvider;
|
|
14
|
-
function useTheme() {
|
|
15
|
-
var context = (0, react_1.useContext)(themeContext);
|
|
16
|
-
return context;
|
|
17
|
-
}
|
|
18
|
-
exports.useTheme = useTheme;
|
|
19
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./context.js"), exports);
|
|
18
|
-
__exportStar(require("./interfaces.js"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Toast } from './interfaces.js';
|
|
2
|
-
declare function ToastProvider({ children }: {
|
|
3
|
-
children: any;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function useToast(): {
|
|
6
|
-
createToast: (item: Toast) => void;
|
|
7
|
-
};
|
|
8
|
-
export { ToastProvider, useToast };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
37
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
38
|
-
if (ar || !(i in from)) {
|
|
39
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
40
|
-
ar[i] = from[i];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
44
|
-
};
|
|
45
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.useToast = exports.ToastProvider = void 0;
|
|
47
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
48
|
-
var react_1 = require("react");
|
|
49
|
-
var utils_1 = require("../../../ui/utils/index.js");
|
|
50
|
-
var toast_item_1 = require("./toast-item/index.js");
|
|
51
|
-
var S = __importStar(require("./styles.js"));
|
|
52
|
-
var ToastContext = (0, react_1.createContext)({
|
|
53
|
-
createToast: function () { },
|
|
54
|
-
});
|
|
55
|
-
function ToastProvider(_a) {
|
|
56
|
-
var children = _a.children;
|
|
57
|
-
var _b = (0, react_1.useState)([]), toasts = _b[0], setToast = _b[1];
|
|
58
|
-
function createToast(item) {
|
|
59
|
-
var id = (0, utils_1.uid)(32);
|
|
60
|
-
setToast(function (s) { return __spreadArray(__spreadArray([], s, true), [__assign(__assign({}, item), { uid: id })], false); });
|
|
61
|
-
}
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(ToastContext.Provider, { value: { createToast: createToast }, children: [(0, jsx_runtime_1.jsx)("div", { style: { position: 'relative', zIndex: 2 }, children: (0, jsx_runtime_1.jsx)(S.Toast, { children: toasts === null || toasts === void 0 ? void 0 : toasts.map(function (toast, index) { return ((0, jsx_runtime_1.jsx)(toast_item_1.ToastItem, __assign({}, toast, { setToast: setToast }), index)); }) }) }), (0, jsx_runtime_1.jsx)("div", { style: { position: 'relative', zIndex: 1 }, children: children })] }));
|
|
63
|
-
}
|
|
64
|
-
exports.ToastProvider = ToastProvider;
|
|
65
|
-
function useToast() {
|
|
66
|
-
var context = (0, react_1.useContext)(ToastContext);
|
|
67
|
-
return context;
|
|
68
|
-
}
|
|
69
|
-
exports.useToast = useToast;
|
|
70
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ToastItem = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var react_1 = require("react");
|
|
29
|
-
var S = __importStar(require("./styles.js"));
|
|
30
|
-
function ToastItem(_a) {
|
|
31
|
-
var uid = _a.uid, status = _a.status, message = _a.message, setToast = _a.setToast;
|
|
32
|
-
var animationDuration = 5000;
|
|
33
|
-
var _b = (0, react_1.useState)(100), progressWidth = _b[0], setProgressWidth = _b[1];
|
|
34
|
-
(0, react_1.useEffect)(function () {
|
|
35
|
-
var startTime;
|
|
36
|
-
var animate = function (timestamp) {
|
|
37
|
-
if (!startTime) {
|
|
38
|
-
startTime = timestamp;
|
|
39
|
-
}
|
|
40
|
-
var elapsed = timestamp - startTime;
|
|
41
|
-
var progress = Math.min(1, elapsed / animationDuration);
|
|
42
|
-
setProgressWidth(100 - progress * 100);
|
|
43
|
-
if (progress < 1) {
|
|
44
|
-
requestAnimationFrame(animate);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
setToast(function (s) { return s === null || s === void 0 ? void 0 : s.filter(function (st) { return st.uid !== uid; }); });
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
var animation = requestAnimationFrame(animate);
|
|
51
|
-
return function () { return cancelAnimationFrame(animation); };
|
|
52
|
-
}, [animationDuration]);
|
|
53
|
-
// const icon =
|
|
54
|
-
// status === "error" ? (
|
|
55
|
-
// <Icon name="IconWarning" color="#e74c3c" />
|
|
56
|
-
// ) : (
|
|
57
|
-
// <Icon name="IconGreenCheck" color="#07bc0c" />
|
|
58
|
-
// );
|
|
59
|
-
return ((0, jsx_runtime_1.jsxs)(S.ToastItem, { children: [(0, jsx_runtime_1.jsx)("div", { className: "toast-content", children: (0, jsx_runtime_1.jsx)("span", { children: message }) }), (0, jsx_runtime_1.jsx)("div", { className: "progressbar_container", children: (0, jsx_runtime_1.jsx)("div", { className: "progressbar", style: {
|
|
60
|
-
width: "".concat(progressWidth, "%"),
|
|
61
|
-
backgroundColor: status === "success" ? "#07bc0c" : "#e74c3c",
|
|
62
|
-
} }) })] }));
|
|
63
|
-
}
|
|
64
|
-
exports.ToastItem = ToastItem;
|
|
65
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IIcon } from '../interfaces
|
|
1
|
+
import { IIcon } from '../interfaces';
|
|
2
2
|
export declare function IconEye({ fill }: IIcon): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IIcon } from '../interfaces
|
|
1
|
+
import { IIcon } from '../interfaces';
|
|
2
2
|
export declare function IconGlobe({ fill }: IIcon): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IIcon } from '../interfaces
|
|
1
|
+
import { IIcon } from '../interfaces';
|
|
2
2
|
export declare function LongArrowRight({ fill }: IIcon): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './component
|
|
1
|
+
export * from './component';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./component
|
|
17
|
+
__exportStar(require("./component"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './icons
|
|
2
|
-
export * from './hooks
|
|
3
|
-
export * from './utils
|
|
4
|
-
export * from './contexts
|
|
5
|
-
export * from './components
|
|
1
|
+
export * from './icons';
|
|
2
|
+
export * from './hooks';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './contexts';
|
|
5
|
+
export * from './components';
|
package/dist/ui/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./icons
|
|
18
|
-
__exportStar(require("./hooks
|
|
19
|
-
__exportStar(require("./utils
|
|
20
|
-
__exportStar(require("./contexts
|
|
21
|
-
__exportStar(require("./components
|
|
17
|
+
__exportStar(require("./icons"), exports);
|
|
18
|
+
__exportStar(require("./hooks"), exports);
|
|
19
|
+
__exportStar(require("./utils"), exports);
|
|
20
|
+
__exportStar(require("./contexts"), exports);
|
|
21
|
+
__exportStar(require("./components"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./facebook-pixel.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./facebook-pixel.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/ui/utils/index.d.ts
CHANGED
package/dist/ui/utils/index.js
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./uid/index.js"), exports);
|
|
18
|
-
__exportStar(require("./libs/index.js"), exports);
|
|
19
|
-
__exportStar(require("./cookies.js"), exports);
|
|
20
|
-
__exportStar(require("./facebook/index.js"), exports);
|
|
21
|
-
__exportStar(require("./validations/index.js"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./react-query/index.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./react-query/index.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./cached-query.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./cached-query.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./next/index.js"), exports);
|
|
18
|
-
__exportStar(require("./@tanstack/index.js"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./validate-cpf.js"), exports);
|
|
18
|
-
__exportStar(require("./validate-phone.js"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|