infinity-forge 0.1.0 → 0.1.4
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 +3 -3
- package/dist/system/components/data/sign-up/index.js +3 -3
- 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 +1 -1
- package/dist/ui/components/form/handler/custom-submit/index.js +1 -1
- package/dist/ui/components/form/handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/index.js +3 -3
- package/dist/ui/components/form/handler/interfaces.d.ts +2 -2
- package/dist/ui/components/form/helpers/index.d.ts +1 -1
- package/dist/ui/components/form/helpers/index.js +1 -1
- package/dist/ui/components/form/index.d.ts +12 -12
- package/dist/ui/components/form/index.js +12 -12
- package/dist/ui/components/form/input/index.d.ts +1 -1
- package/dist/ui/components/form/input/index.js +2 -2
- package/dist/ui/components/form/input-control/error/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +5 -5
- package/dist/ui/components/form/input-control/label/index.js +34 -0
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- 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 +2 -2
- package/dist/ui/components/form/select/index.d.ts +1 -1
- package/dist/ui/components/form/select/index.js +5 -5
- package/dist/ui/components/form/select/index.js.map +1 -1
- package/dist/ui/components/form/select/interfaces.d.ts +1 -1
- 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 +3 -0
- package/dist/ui/contexts/index.js +20 -0
- package/dist/ui/contexts/theme/context.js +19 -0
- package/dist/ui/contexts/theme/index.d.ts +2 -0
- package/dist/ui/contexts/theme/index.js +19 -0
- package/dist/ui/contexts/toast/index.d.ts +8 -0
- package/dist/ui/contexts/toast/index.js +70 -0
- package/dist/ui/contexts/toast/toast-item/index.d.ts +5 -0
- package/dist/ui/contexts/toast/toast-item/index.js +65 -0
- package/dist/ui/hooks/index.d.ts +2 -0
- package/dist/ui/hooks/index.js +19 -0
- package/dist/ui/icons/index.d.ts +39 -0
- package/dist/ui/icons/index.js +56 -0
- 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/icons/render-icon/index.d.ts +7 -0
- package/dist/ui/icons/render-icon/index.js +38 -0
- package/dist/ui/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/dist/ui/utils/facebook/index.d.ts +1 -0
- package/dist/ui/utils/facebook/index.js +18 -0
- package/dist/ui/utils/index.d.ts +5 -0
- package/dist/ui/utils/index.js +22 -0
- package/dist/ui/utils/libs/@tanstack/index.d.ts +1 -0
- package/dist/ui/utils/libs/@tanstack/index.js +18 -0
- package/dist/ui/utils/libs/@tanstack/react-query/index.d.ts +1 -0
- package/dist/ui/utils/libs/@tanstack/react-query/index.js +18 -0
- package/dist/ui/utils/libs/index.d.ts +2 -0
- package/dist/ui/utils/libs/index.js +19 -0
- package/dist/ui/utils/libs/next/index.d.ts +1 -0
- package/dist/ui/utils/libs/next/index.js +18 -0
- package/dist/ui/utils/validations/index.d.ts +2 -0
- package/dist/ui/utils/validations/index.js +19 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputCpfCnpj(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,8 +15,8 @@ exports.InputCpfCnpj = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
17
|
var mask_1 = require("@react-input/mask");
|
|
18
|
-
var helpers_1 = require("../helpers");
|
|
19
|
-
var input_control_1 = require("../input-control");
|
|
18
|
+
var helpers_1 = require("../helpers/index.js");
|
|
19
|
+
var input_control_1 = require("../input-control/index.js");
|
|
20
20
|
function InputCpfCnpj(props) {
|
|
21
21
|
var listposition = props.listposition, name = props.name, basePath = props.basePath;
|
|
22
22
|
var fieldName = (0, helpers_1.makeRegisterName)(listposition, name, basePath);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputFile(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.InputFile = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var formik_1 = require("formik");
|
|
29
|
-
var S = __importStar(require("./styles"));
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function InputFile(props) {
|
|
31
31
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(S.InputFile, { children: (0, jsx_runtime_1.jsx)("input", { type: "file" }) }));
|
|
@@ -15,7 +15,7 @@ exports.InputMask = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
17
|
var mask_1 = require("@react-input/mask");
|
|
18
|
-
var input_control_1 = require("../input-control");
|
|
18
|
+
var input_control_1 = require("../input-control/index.js");
|
|
19
19
|
function InputMask(props) {
|
|
20
20
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
21
21
|
var inputRef = (0, mask_1.useMask)({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputPassword(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,8 +38,8 @@ exports.InputPassword = void 0;
|
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var react_1 = require("react");
|
|
40
40
|
var formik_1 = require("formik");
|
|
41
|
-
var S = __importStar(require("./styles"));
|
|
42
|
-
var input_control_1 = require("../input-control");
|
|
41
|
+
var S = __importStar(require("./styles.js"));
|
|
42
|
+
var input_control_1 = require("../input-control/index.js");
|
|
43
43
|
function InputPassword(props) {
|
|
44
44
|
var _a = (0, formik_1.useField)(props.name), field = _a[0], meta = _a[1];
|
|
45
45
|
var _b = (0, react_1.useState)(false), showPassword = _b[0], setShowPassword = _b[1];
|
|
@@ -37,8 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.InputRadio = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var formik_1 = require("formik");
|
|
40
|
-
var error_1 = require("../input-control/error");
|
|
41
|
-
var S = __importStar(require("./styles"));
|
|
40
|
+
var error_1 = require("../input-control/error/index.js");
|
|
41
|
+
var S = __importStar(require("./styles.js"));
|
|
42
42
|
function InputRadio(props) {
|
|
43
43
|
var _a = (0, formik_1.useField)({ name: props.name, }), field = _a[0], meta = _a[1];
|
|
44
44
|
return ((0, jsx_runtime_1.jsxs)(S.InputRadio, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: props.options.map(function (option, index) { return ((0, jsx_runtime_1.jsx)("label", { htmlFor: props.name + index, children: (0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + index }, field, { type: 'radio', value: option.value })) }, option.value)); }) }), (0, jsx_runtime_1.jsx)(error_1.ErrorMessage, { name: props.name })] }));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ISelectProps } from './interfaces';
|
|
1
|
+
import { ISelectProps } from './interfaces.js';
|
|
2
2
|
export declare function Select(props: ISelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,22 +30,22 @@ exports.Select = void 0;
|
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var formik_1 = require("formik");
|
|
32
32
|
var react_select_1 = __importDefault(require("react-select"));
|
|
33
|
-
var helpers_1 = require("../helpers");
|
|
34
|
-
var S = __importStar(require("./styles"));
|
|
33
|
+
var helpers_1 = require("../helpers/index.js");
|
|
34
|
+
var S = __importStar(require("./styles.js"));
|
|
35
35
|
function Select(props) {
|
|
36
36
|
var _a = (0, formik_1.useField)({
|
|
37
37
|
name: (0, helpers_1.makeRegisterName)(props.listposition, props.name),
|
|
38
38
|
}), field = _a[0], helpers = _a[2];
|
|
39
39
|
var fieldValue = field.value;
|
|
40
|
-
var value = fieldValue && fieldValue.length > 0 && props.isGroup
|
|
41
|
-
? fieldValue.map(function (defaultValueForm) {
|
|
40
|
+
var value = fieldValue && (fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.length) > 0 && props.isGroup
|
|
41
|
+
? fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.map(function (defaultValueForm) {
|
|
42
42
|
return props.options
|
|
43
43
|
.find(function (option) {
|
|
44
44
|
return option.options.find(function (o) { return o.value === defaultValueForm; });
|
|
45
45
|
})
|
|
46
46
|
.options.find(function (opt) { return opt.value === defaultValueForm; });
|
|
47
47
|
})
|
|
48
|
-
: fieldValue.map(function (valueForm) { return props.options.find(function (option) { return option.value === valueForm; }); });
|
|
48
|
+
: fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.map(function (valueForm) { return props.options.find(function (option) { return option.value === valueForm; }); });
|
|
49
49
|
return ((0, jsx_runtime_1.jsx)(S.SelectWrapper, { children: (0, jsx_runtime_1.jsx)(react_select_1.default, { name: field.name, onChange: function (ev) {
|
|
50
50
|
helpers.setValue(Array.isArray(ev) ? ev.map(function (ev) { return ev.value; }) : ev ? [ev.value] : []);
|
|
51
51
|
}, value: value, isMulti: props.isMultiple, options: props.options, components: props.CustomOption ? { Option: props.CustomOption } : undefined, className: field.value.length > 0 ? 'open' : '' }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/select/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iCAAiC;AACjC,8DAAsC;AAGtC,sCAA6C;AAE7C,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,KAAmB;IAClC,IAAA,KAAqB,IAAA,iBAAQ,EAAC;QAClC,IAAI,EAAE,IAAA,0BAAgB,EAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC;KACvD,CAAC,EAFK,KAAK,QAAA,EAAI,OAAO,QAErB,CAAA;IAEF,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAA;IAE9B,IAAM,KAAK,GAAG,UAAU,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/select/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iCAAiC;AACjC,8DAAsC;AAGtC,sCAA6C;AAE7C,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,KAAmB;IAClC,IAAA,KAAqB,IAAA,iBAAQ,EAAC;QAClC,IAAI,EAAE,IAAA,0BAAgB,EAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC;KACvD,CAAC,EAFK,KAAK,QAAA,EAAI,OAAO,QAErB,CAAA;IAEF,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAA;IAE9B,IAAM,KAAK,GAAG,UAAU,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,IAAG,CAAC,IAAI,KAAK,CAAC,OAAO;QAC/D,CAAC,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,UAAC,gBAAgB;YAC/B,OAAO,KAAK,CAAC,OAAO;iBACjB,IAAI,CAAC,UAAC,MAAM;gBACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,KAAK,gBAAgB,EAA5B,CAA4B,CAAC,CAAA;YACjE,CAAC,CAAC;iBACD,OAAO,CAAC,IAAI,CAAC,UAAC,GAAG,IAAK,OAAA,GAAG,CAAC,KAAK,KAAK,gBAAgB,EAA9B,CAA8B,CAAC,CAAA;QAC1D,CAAC,CAAC;QACJ,CAAC,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,UAAC,SAAS,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,KAAK,SAAS,EAA1B,CAA0B,CAAC,EAA1D,CAA0D,CAAC,CAAA;IAEhG,OAAO,CACL,uBAAC,CAAC,CAAC,aAAa,cACd,uBAAC,sBAAW,IACV,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,EAAE,UAAC,EAAE;gBACX,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,EAAE,CAAC,KAAK,EAAR,CAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;YACvF,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,KAAK,CAAC,UAAU,EACzB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,YAAmB,EAAE,CAAC,CAAC,CAAC,SAAS,EAClF,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAC/C,GACc,CACnB,CAAA;AACH,CAAC;AAhCD,wBAgCC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function Textarea(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,8 +14,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.Textarea = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
|
-
var input_control_1 = require("../input-control");
|
|
18
|
-
var make_register_name_1 = require("../helpers/make-register-name");
|
|
17
|
+
var input_control_1 = require("../input-control/index.js");
|
|
18
|
+
var make_register_name_1 = require("../helpers/make-register-name.js");
|
|
19
19
|
function Textarea(props) {
|
|
20
20
|
var listposition = props.listposition, name = props.name;
|
|
21
21
|
var fieldName = (0, make_register_name_1.makeRegisterName)(listposition, name);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./form";
|
|
2
|
-
export * from './button';
|
|
3
|
-
export * from './container';
|
|
4
|
-
export * from './next-image';
|
|
5
|
-
export * from './breadcrumb';
|
|
6
|
-
export * from './menu-mobile';
|
|
7
|
-
export * from './loader-circle';
|
|
8
|
-
export * from './error-boundary';
|
|
1
|
+
export * from "./form/index.js";
|
|
2
|
+
export * from './button/index.js';
|
|
3
|
+
export * from './container/index.js';
|
|
4
|
+
export * from './next-image/index.js';
|
|
5
|
+
export * from './breadcrumb/index.js';
|
|
6
|
+
export * from './menu-mobile/index.js';
|
|
7
|
+
export * from './loader-circle/index.js';
|
|
8
|
+
export * from './error-boundary/index.js';
|
|
@@ -14,12 +14,12 @@ 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("./form"), exports);
|
|
18
|
-
__exportStar(require("./button"), exports);
|
|
19
|
-
__exportStar(require("./container"), exports);
|
|
20
|
-
__exportStar(require("./next-image"), exports);
|
|
21
|
-
__exportStar(require("./breadcrumb"), exports);
|
|
22
|
-
__exportStar(require("./menu-mobile"), exports);
|
|
23
|
-
__exportStar(require("./loader-circle"), exports);
|
|
24
|
-
__exportStar(require("./error-boundary"), exports);
|
|
17
|
+
__exportStar(require("./form/index.js"), exports);
|
|
18
|
+
__exportStar(require("./button/index.js"), exports);
|
|
19
|
+
__exportStar(require("./container/index.js"), exports);
|
|
20
|
+
__exportStar(require("./next-image/index.js"), exports);
|
|
21
|
+
__exportStar(require("./breadcrumb/index.js"), exports);
|
|
22
|
+
__exportStar(require("./menu-mobile/index.js"), exports);
|
|
23
|
+
__exportStar(require("./loader-circle/index.js"), exports);
|
|
24
|
+
__exportStar(require("./error-boundary/index.js"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LoaderCircleProps } from './interfaces';
|
|
1
|
+
import { LoaderCircleProps } from './interfaces.js';
|
|
2
2
|
export declare function LoaderCircle({ size, color }: LoaderCircleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -34,8 +34,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
36
36
|
var react_1 = require("react");
|
|
37
|
-
var S = __importStar(require("./styles"));
|
|
38
|
-
var error_boundary_1 = require("
|
|
37
|
+
var S = __importStar(require("./styles.js"));
|
|
38
|
+
var error_boundary_1 = require("../../../../../ui/components/error-boundary/index.js");
|
|
39
39
|
var NavLinks = function (_a) {
|
|
40
40
|
var links = _a.links, isActive = _a.isActive;
|
|
41
41
|
var _b = (0, react_1.useState)(null), submenu = _b[0], setSubmenu = _b[1];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IMenuMobileProps } from './interfaces';
|
|
1
|
+
import { IMenuMobileProps } from './interfaces.js';
|
|
2
2
|
export declare function MenuMobile({ linksMenu, topConfigs }: IMenuMobileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.MenuMobile = void 0;
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var react_1 = require("react");
|
|
32
|
-
var top_1 = require("./top");
|
|
33
|
-
var nav_links_1 = __importDefault(require("./components/nav-links"));
|
|
34
|
-
var S = __importStar(require("./styles"));
|
|
35
|
-
var error_boundary_1 = require("../error-boundary");
|
|
32
|
+
var top_1 = require("./top/index.js");
|
|
33
|
+
var nav_links_1 = __importDefault(require("./components/nav-links/index.js"));
|
|
34
|
+
var S = __importStar(require("./styles.js"));
|
|
35
|
+
var error_boundary_1 = require("../error-boundary/index.js");
|
|
36
36
|
function MenuMobile(_a) {
|
|
37
37
|
var linksMenu = _a.linksMenu, topConfigs = _a.topConfigs;
|
|
38
38
|
var _b = (0, react_1.useState)(false), isActive = _b[0], setIsActive = _b[1];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITopProps } from './interfaces';
|
|
1
|
+
import { ITopProps } from './interfaces.js';
|
|
2
2
|
export declare function Top({ configs, setIsActive }: ITopProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,8 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Top = void 0;
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var link_1 = __importDefault(require("next/link"));
|
|
32
|
-
var error_boundary_1 = require("../../error-boundary");
|
|
33
|
-
var S = __importStar(require("./styles"));
|
|
32
|
+
var error_boundary_1 = require("../../error-boundary/index.js");
|
|
33
|
+
var S = __importStar(require("./styles.js"));
|
|
34
34
|
function Top(_a) {
|
|
35
35
|
var configs = _a.configs, setIsActive = _a.setIsActive;
|
|
36
36
|
if (!configs) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NextImageProps } from './interfaces';
|
|
1
|
+
import { NextImageProps } from './interfaces.js';
|
|
2
2
|
export declare function NextImage({ src, alt, forceLoading }: NextImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,9 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.NextImage = void 0;
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var image_1 = __importDefault(require("next/image"));
|
|
32
|
-
var error_boundary_1 = require("../error-boundary");
|
|
33
|
-
var loader_circle_1 = require("../loader-circle");
|
|
34
|
-
var S = __importStar(require("./styles"));
|
|
32
|
+
var error_boundary_1 = require("../error-boundary/index.js");
|
|
33
|
+
var loader_circle_1 = require("../loader-circle/index.js");
|
|
34
|
+
var S = __importStar(require("./styles.js"));
|
|
35
35
|
function NextImage(_a) {
|
|
36
36
|
var src = _a.src, alt = _a.alt, forceLoading = _a.forceLoading;
|
|
37
37
|
var isLoading = forceLoading;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
package/dist/ui/hooks/index.d.ts
CHANGED
package/dist/ui/hooks/index.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
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("./use-screen/index.js"), exports);
|
|
18
|
+
__exportStar(require("./use-mounted/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
package/dist/ui/icons/index.d.ts
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export * from './render/box.js';
|
|
2
|
+
export * from './render/Pin.js';
|
|
3
|
+
export * from './render/Map.js';
|
|
4
|
+
export * from './render/Lupa.js';
|
|
5
|
+
export * from './render/Plus.js';
|
|
6
|
+
export * from './render/Exit.js';
|
|
7
|
+
export * from './render/Play.js';
|
|
8
|
+
export * from './render/Edit.js';
|
|
9
|
+
export * from './render/Gear.js';
|
|
10
|
+
export * from './render/NavUp.js';
|
|
11
|
+
export * from './render/whats.js';
|
|
12
|
+
export * from './render/Home.js';
|
|
13
|
+
export * from './render/user.js';
|
|
14
|
+
export * from './render/Share.js';
|
|
15
|
+
export * from './render/File.js';
|
|
16
|
+
export * from './render/Minus.js';
|
|
17
|
+
export * from './render/Clock.js';
|
|
18
|
+
export * from './render/Close.js';
|
|
19
|
+
export * from './render/Codie.js';
|
|
20
|
+
export * from './render/Email.js';
|
|
21
|
+
export * from './render/Phone.js';
|
|
22
|
+
export * from './render/Check.js';
|
|
23
|
+
export * from './render/TikTok.js';
|
|
24
|
+
export * from './render/Folder.js';
|
|
25
|
+
export * from './render/Twitter.js';
|
|
26
|
+
export * from './render/YouTube.js';
|
|
27
|
+
export * from './render/NavDown.js';
|
|
28
|
+
export * from './render/NavLeft.js';
|
|
29
|
+
export * from './render/NavRight.js';
|
|
30
|
+
export * from './render/Insagram.js';
|
|
31
|
+
export * from './render/Linkedin.js';
|
|
32
|
+
export * from './render/Facebook.js';
|
|
33
|
+
export * from './render/component.js';
|
|
34
|
+
export * from './render/Microphone.js';
|
|
35
|
+
export * from './render/phone-message.js';
|
|
36
|
+
export * from './render/transparent-mail.js';
|
|
37
|
+
export * from './render/transparent-phone.js';
|
|
38
|
+
export * from './render/Carousel-left-icon.js';
|
|
39
|
+
export * from './render/Carousel-right-icon.js';
|