@gustavo-valsechi/client 1.3.31 → 1.3.32
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/components/index.js +3070 -13
- package/dist/components/index.mjs +3082 -11
- package/dist/contexts/index.js +504 -9
- package/dist/contexts/index.mjs +486 -4
- package/dist/index.js +3325 -8
- package/dist/index.mjs +3312 -4
- package/dist/interfaces/index.js +2 -8
- package/dist/interfaces/index.mjs +0 -2
- package/package.json +2 -2
- package/dist/components/styles.js +0 -54
- package/dist/components/styles.mjs +0 -19
- package/dist/components/types/avatar/index.js +0 -63
- package/dist/components/types/avatar/index.mjs +0 -29
- package/dist/components/types/avatar/styles.js +0 -93
- package/dist/components/types/avatar/styles.mjs +0 -59
- package/dist/components/types/badge/index.js +0 -54
- package/dist/components/types/badge/index.mjs +0 -20
- package/dist/components/types/badge/styles.js +0 -71
- package/dist/components/types/badge/styles.mjs +0 -37
- package/dist/components/types/block/index.js +0 -44
- package/dist/components/types/block/index.mjs +0 -20
- package/dist/components/types/block/styles.js +0 -65
- package/dist/components/types/block/styles.mjs +0 -30
- package/dist/components/types/chart/index.js +0 -80
- package/dist/components/types/chart/index.mjs +0 -46
- package/dist/components/types/chart/styles.js +0 -42
- package/dist/components/types/chart/styles.mjs +0 -8
- package/dist/components/types/credit-card/assets/index.js +0 -41
- package/dist/components/types/credit-card/assets/index.mjs +0 -21
- package/dist/components/types/credit-card/card/index.js +0 -67
- package/dist/components/types/credit-card/card/index.mjs +0 -37
- package/dist/components/types/credit-card/card/styles.js +0 -170
- package/dist/components/types/credit-card/card/styles.mjs +0 -136
- package/dist/components/types/credit-card/functions/index.js +0 -52
- package/dist/components/types/credit-card/functions/index.mjs +0 -22
- package/dist/components/types/credit-card/functions/styles.js +0 -75
- package/dist/components/types/credit-card/functions/styles.mjs +0 -41
- package/dist/components/types/credit-card/index.js +0 -70
- package/dist/components/types/credit-card/index.mjs +0 -36
- package/dist/components/types/credit-card/styles.js +0 -72
- package/dist/components/types/credit-card/styles.mjs +0 -38
- package/dist/components/types/credit-card/tools/index.js +0 -58
- package/dist/components/types/credit-card/tools/index.mjs +0 -23
- package/dist/components/types/form/index.js +0 -111
- package/dist/components/types/form/index.mjs +0 -75
- package/dist/components/types/form/styles.js +0 -53
- package/dist/components/types/form/styles.mjs +0 -19
- package/dist/components/types/form/types/button/index.js +0 -58
- package/dist/components/types/form/types/button/index.mjs +0 -24
- package/dist/components/types/form/types/button/loading/index.js +0 -38
- package/dist/components/types/form/types/button/loading/index.mjs +0 -14
- package/dist/components/types/form/types/button/loading/styles.js +0 -126
- package/dist/components/types/form/types/button/loading/styles.mjs +0 -92
- package/dist/components/types/form/types/button/styles.js +0 -79
- package/dist/components/types/form/types/button/styles.mjs +0 -45
- package/dist/components/types/form/types/datetime/index.js +0 -72
- package/dist/components/types/form/types/datetime/index.mjs +0 -38
- package/dist/components/types/form/types/datetime/styles.js +0 -78
- package/dist/components/types/form/types/datetime/styles.mjs +0 -44
- package/dist/components/types/form/types/file/index.js +0 -71
- package/dist/components/types/form/types/file/index.mjs +0 -47
- package/dist/components/types/form/types/file/styles.js +0 -65
- package/dist/components/types/form/types/file/styles.mjs +0 -31
- package/dist/components/types/form/types/index.js +0 -35
- package/dist/components/types/form/types/index.mjs +0 -8
- package/dist/components/types/form/types/input/index.js +0 -84
- package/dist/components/types/form/types/input/index.mjs +0 -50
- package/dist/components/types/form/types/input/styles.js +0 -84
- package/dist/components/types/form/types/input/styles.mjs +0 -50
- package/dist/components/types/form/types/label/index.js +0 -34
- package/dist/components/types/form/types/label/index.mjs +0 -10
- package/dist/components/types/form/types/label/styles.js +0 -45
- package/dist/components/types/form/types/label/styles.mjs +0 -11
- package/dist/components/types/form/types/select/index.js +0 -90
- package/dist/components/types/form/types/select/index.mjs +0 -56
- package/dist/components/types/form/types/select/styles.js +0 -90
- package/dist/components/types/form/types/select/styles.mjs +0 -56
- package/dist/components/types/form/types/textarea/index.js +0 -72
- package/dist/components/types/form/types/textarea/index.mjs +0 -38
- package/dist/components/types/form/types/textarea/styles.js +0 -77
- package/dist/components/types/form/types/textarea/styles.mjs +0 -43
- package/dist/components/types/index.js +0 -43
- package/dist/components/types/index.mjs +0 -12
- package/dist/components/types/loading/app/index.js +0 -35
- package/dist/components/types/loading/app/index.mjs +0 -11
- package/dist/components/types/loading/app/styles.js +0 -125
- package/dist/components/types/loading/app/styles.mjs +0 -91
- package/dist/components/types/loading/bar/index.js +0 -34
- package/dist/components/types/loading/bar/index.mjs +0 -10
- package/dist/components/types/loading/bar/styles.js +0 -59
- package/dist/components/types/loading/bar/styles.mjs +0 -25
- package/dist/components/types/loading/index.js +0 -25
- package/dist/components/types/loading/index.mjs +0 -3
- package/dist/components/types/logo/index.js +0 -37
- package/dist/components/types/logo/index.mjs +0 -13
- package/dist/components/types/logo/styles.js +0 -57
- package/dist/components/types/logo/styles.mjs +0 -23
- package/dist/components/types/lottie/animations/index.js +0 -36
- package/dist/components/types/lottie/animations/index.mjs +0 -6
- package/dist/components/types/lottie/index.js +0 -72
- package/dist/components/types/lottie/index.mjs +0 -38
- package/dist/components/types/lottie/styles.js +0 -60
- package/dist/components/types/lottie/styles.mjs +0 -26
- package/dist/components/types/modal/index.js +0 -66
- package/dist/components/types/modal/index.mjs +0 -32
- package/dist/components/types/modal/styles.js +0 -167
- package/dist/components/types/modal/styles.mjs +0 -133
- package/dist/components/types/table/index.js +0 -171
- package/dist/components/types/table/index.mjs +0 -135
- package/dist/components/types/table/modal/actions.js +0 -30
- package/dist/components/types/table/modal/actions.mjs +0 -10
- package/dist/components/types/table/modal/index.js +0 -91
- package/dist/components/types/table/modal/index.mjs +0 -61
- package/dist/components/types/table/modal/styles.js +0 -90
- package/dist/components/types/table/modal/styles.mjs +0 -56
- package/dist/components/types/table/paginate/index.js +0 -92
- package/dist/components/types/table/paginate/index.mjs +0 -58
- package/dist/components/types/table/paginate/styles.js +0 -74
- package/dist/components/types/table/paginate/styles.mjs +0 -40
- package/dist/components/types/table/styles.js +0 -300
- package/dist/components/types/table/styles.mjs +0 -266
- package/dist/contexts/icon/assets/brands/index.js +0 -31
- package/dist/contexts/icon/assets/brands/index.mjs +0 -11
- package/dist/contexts/icon/assets/index.js +0 -42
- package/dist/contexts/icon/assets/index.mjs +0 -12
- package/dist/contexts/icon/assets/regular/index.js +0 -31
- package/dist/contexts/icon/assets/regular/index.mjs +0 -11
- package/dist/contexts/icon/assets/solid/index.js +0 -31
- package/dist/contexts/icon/assets/solid/index.mjs +0 -11
- package/dist/contexts/icon/index.js +0 -107
- package/dist/contexts/icon/index.mjs +0 -72
- package/dist/contexts/icon/styles.js +0 -42
- package/dist/contexts/icon/styles.mjs +0 -8
- package/dist/contexts/modal/index.js +0 -92
- package/dist/contexts/modal/index.mjs +0 -57
- package/dist/contexts/modal/styles.js +0 -42
- package/dist/contexts/modal/styles.mjs +0 -8
- package/dist/contexts/theme/content.js +0 -104
- package/dist/contexts/theme/content.mjs +0 -79
- package/dist/contexts/theme/index.js +0 -68
- package/dist/contexts/theme/index.mjs +0 -43
- package/dist/contexts/theme/styles.js +0 -116
- package/dist/contexts/theme/styles.mjs +0 -82
- package/dist/contexts/tooltip/index.js +0 -107
- package/dist/contexts/tooltip/index.mjs +0 -72
- package/dist/contexts/tooltip/styles.js +0 -78
- package/dist/contexts/tooltip/styles.mjs +0 -44
- package/dist/interfaces/components/avatar/index.js +0 -17
- package/dist/interfaces/components/avatar/index.mjs +0 -1
- package/dist/interfaces/components/badge/index.js +0 -17
- package/dist/interfaces/components/badge/index.mjs +0 -1
- package/dist/interfaces/components/block/index.js +0 -17
- package/dist/interfaces/components/block/index.mjs +0 -1
- package/dist/interfaces/components/chart/index.js +0 -17
- package/dist/interfaces/components/chart/index.mjs +0 -1
- package/dist/interfaces/components/credit-card/index.js +0 -17
- package/dist/interfaces/components/credit-card/index.mjs +0 -1
- package/dist/interfaces/components/form/button/index.js +0 -17
- package/dist/interfaces/components/form/button/index.mjs +0 -1
- package/dist/interfaces/components/form/datetime/index.js +0 -17
- package/dist/interfaces/components/form/datetime/index.mjs +0 -1
- package/dist/interfaces/components/form/file/index.js +0 -17
- package/dist/interfaces/components/form/file/index.mjs +0 -1
- package/dist/interfaces/components/form/index.js +0 -35
- package/dist/interfaces/components/form/index.mjs +0 -8
- package/dist/interfaces/components/form/input/index.js +0 -17
- package/dist/interfaces/components/form/input/index.mjs +0 -1
- package/dist/interfaces/components/form/label/index.js +0 -17
- package/dist/interfaces/components/form/label/index.mjs +0 -1
- package/dist/interfaces/components/form/select/index.js +0 -17
- package/dist/interfaces/components/form/select/index.mjs +0 -1
- package/dist/interfaces/components/form/textarea/index.js +0 -17
- package/dist/interfaces/components/form/textarea/index.mjs +0 -1
- package/dist/interfaces/components/index.js +0 -43
- package/dist/interfaces/components/index.mjs +0 -12
- package/dist/interfaces/components/loading/app/index.js +0 -17
- package/dist/interfaces/components/loading/app/index.mjs +0 -1
- package/dist/interfaces/components/loading/bar/index.js +0 -17
- package/dist/interfaces/components/loading/bar/index.mjs +0 -1
- package/dist/interfaces/components/loading/index.js +0 -25
- package/dist/interfaces/components/loading/index.mjs +0 -3
- package/dist/interfaces/components/logo/index.js +0 -17
- package/dist/interfaces/components/logo/index.mjs +0 -1
- package/dist/interfaces/components/lottie/index.js +0 -17
- package/dist/interfaces/components/lottie/index.mjs +0 -1
- package/dist/interfaces/components/modal/index.js +0 -17
- package/dist/interfaces/components/modal/index.mjs +0 -1
- package/dist/interfaces/components/table/index.js +0 -23
- package/dist/interfaces/components/table/index.mjs +0 -2
- package/dist/interfaces/components/table/paginate/index.js +0 -17
- package/dist/interfaces/components/table/paginate/index.mjs +0 -1
- package/dist/interfaces/contexts/icon/index.js +0 -17
- package/dist/interfaces/contexts/icon/index.mjs +0 -1
- package/dist/interfaces/contexts/index.js +0 -29
- package/dist/interfaces/contexts/index.mjs +0 -5
- package/dist/interfaces/contexts/modal/index.js +0 -18
- package/dist/interfaces/contexts/modal/index.mjs +0 -2
- package/dist/interfaces/contexts/theme/index.js +0 -17
- package/dist/interfaces/contexts/theme/index.mjs +0 -1
- package/dist/interfaces/contexts/tooltip/index.js +0 -17
- package/dist/interfaces/contexts/tooltip/index.mjs +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const req = require.context("./", false, /\.svg$/);
|
|
3
|
-
const brands = {};
|
|
4
|
-
req.keys().forEach((key) => {
|
|
5
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
6
|
-
brands[name] = req(key).default;
|
|
7
|
-
});
|
|
8
|
-
var brands_default = brands;
|
|
9
|
-
export {
|
|
10
|
-
brands_default as default
|
|
11
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
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 assets_exports = {};
|
|
31
|
-
__export(assets_exports, {
|
|
32
|
-
default: () => assets_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(assets_exports);
|
|
35
|
-
var import_brands = __toESM(require("./brands"));
|
|
36
|
-
var import_regular = __toESM(require("./regular"));
|
|
37
|
-
var import_solid = __toESM(require("./solid"));
|
|
38
|
-
var assets_default = {
|
|
39
|
-
brands: import_brands.default,
|
|
40
|
-
regular: import_regular.default,
|
|
41
|
-
solid: import_solid.default
|
|
42
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
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 __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var regular_exports = {};
|
|
21
|
-
__export(regular_exports, {
|
|
22
|
-
default: () => regular_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(regular_exports);
|
|
25
|
-
const req = require.context("./", false, /\.svg$/);
|
|
26
|
-
const regular = {};
|
|
27
|
-
req.keys().forEach((key) => {
|
|
28
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
29
|
-
regular[name] = req(key).default;
|
|
30
|
-
});
|
|
31
|
-
var regular_default = regular;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const req = require.context("./", false, /\.svg$/);
|
|
3
|
-
const regular = {};
|
|
4
|
-
req.keys().forEach((key) => {
|
|
5
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
6
|
-
regular[name] = req(key).default;
|
|
7
|
-
});
|
|
8
|
-
var regular_default = regular;
|
|
9
|
-
export {
|
|
10
|
-
regular_default as default
|
|
11
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
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 __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var solid_exports = {};
|
|
21
|
-
__export(solid_exports, {
|
|
22
|
-
default: () => solid_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(solid_exports);
|
|
25
|
-
const req = require.context("./", false, /\.svg$/);
|
|
26
|
-
const solid = {};
|
|
27
|
-
req.keys().forEach((key) => {
|
|
28
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
29
|
-
solid[name] = req(key).default;
|
|
30
|
-
});
|
|
31
|
-
var solid_default = solid;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const req = require.context("./", false, /\.svg$/);
|
|
3
|
-
const solid = {};
|
|
4
|
-
req.keys().forEach((key) => {
|
|
5
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
6
|
-
solid[name] = req(key).default;
|
|
7
|
-
});
|
|
8
|
-
var solid_default = solid;
|
|
9
|
-
export {
|
|
10
|
-
solid_default as default
|
|
11
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
"use client";
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
-
mod
|
|
29
|
-
));
|
|
30
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
-
var icon_exports = {};
|
|
32
|
-
__export(icon_exports, {
|
|
33
|
-
IconProvider: () => IconProviderContainer,
|
|
34
|
-
useIcon: () => useIcon
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(icon_exports);
|
|
37
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
-
var import_react = require("react");
|
|
39
|
-
var import_theme = require("../theme");
|
|
40
|
-
var import_lodash = __toESM(require("lodash"));
|
|
41
|
-
var import_assets = __toESM(require("./assets"));
|
|
42
|
-
const IconContext = (0, import_react.createContext)({});
|
|
43
|
-
const IconProviderContainer = ({ children }) => {
|
|
44
|
-
const { content } = (0, import_theme.useTheme)();
|
|
45
|
-
const [isClient, setIsClient] = (0, import_react.useState)(false);
|
|
46
|
-
const [matches, setMatches] = (0, import_react.useState)(0);
|
|
47
|
-
(0, import_react.useEffect)(() => {
|
|
48
|
-
setIsClient(true);
|
|
49
|
-
}, []);
|
|
50
|
-
(0, import_react.useEffect)(() => {
|
|
51
|
-
const firstMediaQuery = window.matchMedia(`(max-width: ${content.mobileMaxWidth})`);
|
|
52
|
-
const secoundMediaQuery = window.matchMedia(`(max-width: ${content.mobileMinWidth})`);
|
|
53
|
-
const firstHandler = (event) => setMatches(event.matches ? 1 : 0);
|
|
54
|
-
const secoundHandler = (event) => setMatches(event.matches ? 2 : 1);
|
|
55
|
-
if (firstMediaQuery.matches) setMatches(1);
|
|
56
|
-
if (secoundMediaQuery.matches) setMatches(2);
|
|
57
|
-
firstMediaQuery.addEventListener("change", firstHandler);
|
|
58
|
-
secoundMediaQuery.addEventListener("change", secoundHandler);
|
|
59
|
-
return () => {
|
|
60
|
-
firstMediaQuery.removeEventListener("change", firstHandler);
|
|
61
|
-
secoundMediaQuery.removeEventListener("change", secoundHandler);
|
|
62
|
-
};
|
|
63
|
-
}, []);
|
|
64
|
-
(0, import_react.useEffect)(() => {
|
|
65
|
-
if (!isClient) return;
|
|
66
|
-
const processElement = (element) => {
|
|
67
|
-
var _a, _b, _c, _d, _e;
|
|
68
|
-
const name = element.getAttribute("class");
|
|
69
|
-
if (!name) return;
|
|
70
|
-
const icon = import_lodash.default.split(import_lodash.default.replace(name, /fa-/g, ""), " ");
|
|
71
|
-
if (!icon.length) return;
|
|
72
|
-
let svg = (_d = (_c = (_a = import_assets.default[icon[0]]) == null ? void 0 : _a[icon[1]]) != null ? _c : (_b = import_assets.default["solid"]) == null ? void 0 : _b[icon[0]]) != null ? _d : "";
|
|
73
|
-
if (!svg) return;
|
|
74
|
-
svg = svg.replace(/fill=".*?"/g, 'fill="currentColor"');
|
|
75
|
-
const styles = window.getComputedStyle(element);
|
|
76
|
-
const size = Number((_e = import_lodash.default.split(styles.fontSize, "px")) == null ? void 0 : _e[0]) + 2;
|
|
77
|
-
element.style.width = `${size}px`;
|
|
78
|
-
element.style.height = `${size}px`;
|
|
79
|
-
element.textContent = "";
|
|
80
|
-
element.innerHTML = svg;
|
|
81
|
-
};
|
|
82
|
-
document.querySelectorAll("i").forEach((el) => processElement(el));
|
|
83
|
-
const observer = new MutationObserver((mutations) => {
|
|
84
|
-
mutations.forEach((mutation) => {
|
|
85
|
-
mutation.addedNodes.forEach((node) => {
|
|
86
|
-
if (node.nodeType === 1) {
|
|
87
|
-
const el = node;
|
|
88
|
-
if (el.tagName.toLowerCase() === "i") processElement(el);
|
|
89
|
-
el.querySelectorAll("i").forEach((child) => processElement(child));
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
observer.observe(document.body, {
|
|
95
|
-
childList: true,
|
|
96
|
-
subtree: true
|
|
97
|
-
});
|
|
98
|
-
return () => observer.disconnect();
|
|
99
|
-
}, [isClient, matches]);
|
|
100
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconContext.Provider, { value: {}, children });
|
|
101
|
-
};
|
|
102
|
-
const useIcon = () => (0, import_react.useContext)(IconContext);
|
|
103
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
-
0 && (module.exports = {
|
|
105
|
-
IconProvider,
|
|
106
|
-
useIcon
|
|
107
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { createContext, useContext, useEffect, useState } from "react";
|
|
5
|
-
import { useTheme } from "../theme";
|
|
6
|
-
import _ from "lodash";
|
|
7
|
-
import assets from "./assets";
|
|
8
|
-
const IconContext = createContext({});
|
|
9
|
-
const IconProviderContainer = ({ children }) => {
|
|
10
|
-
const { content } = useTheme();
|
|
11
|
-
const [isClient, setIsClient] = useState(false);
|
|
12
|
-
const [matches, setMatches] = useState(0);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
setIsClient(true);
|
|
15
|
-
}, []);
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
const firstMediaQuery = window.matchMedia(`(max-width: ${content.mobileMaxWidth})`);
|
|
18
|
-
const secoundMediaQuery = window.matchMedia(`(max-width: ${content.mobileMinWidth})`);
|
|
19
|
-
const firstHandler = (event) => setMatches(event.matches ? 1 : 0);
|
|
20
|
-
const secoundHandler = (event) => setMatches(event.matches ? 2 : 1);
|
|
21
|
-
if (firstMediaQuery.matches) setMatches(1);
|
|
22
|
-
if (secoundMediaQuery.matches) setMatches(2);
|
|
23
|
-
firstMediaQuery.addEventListener("change", firstHandler);
|
|
24
|
-
secoundMediaQuery.addEventListener("change", secoundHandler);
|
|
25
|
-
return () => {
|
|
26
|
-
firstMediaQuery.removeEventListener("change", firstHandler);
|
|
27
|
-
secoundMediaQuery.removeEventListener("change", secoundHandler);
|
|
28
|
-
};
|
|
29
|
-
}, []);
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (!isClient) return;
|
|
32
|
-
const processElement = (element) => {
|
|
33
|
-
var _a, _b, _c, _d, _e;
|
|
34
|
-
const name = element.getAttribute("class");
|
|
35
|
-
if (!name) return;
|
|
36
|
-
const icon = _.split(_.replace(name, /fa-/g, ""), " ");
|
|
37
|
-
if (!icon.length) return;
|
|
38
|
-
let svg = (_d = (_c = (_a = assets[icon[0]]) == null ? void 0 : _a[icon[1]]) != null ? _c : (_b = assets["solid"]) == null ? void 0 : _b[icon[0]]) != null ? _d : "";
|
|
39
|
-
if (!svg) return;
|
|
40
|
-
svg = svg.replace(/fill=".*?"/g, 'fill="currentColor"');
|
|
41
|
-
const styles = window.getComputedStyle(element);
|
|
42
|
-
const size = Number((_e = _.split(styles.fontSize, "px")) == null ? void 0 : _e[0]) + 2;
|
|
43
|
-
element.style.width = `${size}px`;
|
|
44
|
-
element.style.height = `${size}px`;
|
|
45
|
-
element.textContent = "";
|
|
46
|
-
element.innerHTML = svg;
|
|
47
|
-
};
|
|
48
|
-
document.querySelectorAll("i").forEach((el) => processElement(el));
|
|
49
|
-
const observer = new MutationObserver((mutations) => {
|
|
50
|
-
mutations.forEach((mutation) => {
|
|
51
|
-
mutation.addedNodes.forEach((node) => {
|
|
52
|
-
if (node.nodeType === 1) {
|
|
53
|
-
const el = node;
|
|
54
|
-
if (el.tagName.toLowerCase() === "i") processElement(el);
|
|
55
|
-
el.querySelectorAll("i").forEach((child) => processElement(child));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
observer.observe(document.body, {
|
|
61
|
-
childList: true,
|
|
62
|
-
subtree: true
|
|
63
|
-
});
|
|
64
|
-
return () => observer.disconnect();
|
|
65
|
-
}, [isClient, matches]);
|
|
66
|
-
return /* @__PURE__ */ jsx(IconContext.Provider, { value: {}, children });
|
|
67
|
-
};
|
|
68
|
-
const useIcon = () => useContext(IconContext);
|
|
69
|
-
export {
|
|
70
|
-
IconProviderContainer as IconProvider,
|
|
71
|
-
useIcon
|
|
72
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
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 styles_exports = {};
|
|
31
|
-
__export(styles_exports, {
|
|
32
|
-
Container: () => Container
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(styles_exports);
|
|
35
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
36
|
-
const Container = import_styled_components.default.div`
|
|
37
|
-
|
|
38
|
-
`;
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
Container
|
|
42
|
-
});
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
"use client";
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
-
mod
|
|
29
|
-
));
|
|
30
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
-
var modal_exports = {};
|
|
32
|
-
__export(modal_exports, {
|
|
33
|
-
ModalProvider: () => ModalProviderContainer,
|
|
34
|
-
useModal: () => useModal
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(modal_exports);
|
|
37
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
-
var import_react = require("react");
|
|
39
|
-
var import_navigation = require("next/navigation");
|
|
40
|
-
var import_styles = require("./styles");
|
|
41
|
-
var import_lodash = __toESM(require("lodash"));
|
|
42
|
-
const ModalContext = (0, import_react.createContext)({});
|
|
43
|
-
const memory = [];
|
|
44
|
-
const ModalProviderContainer = ({ children }) => {
|
|
45
|
-
const pathname = (0, import_navigation.usePathname)();
|
|
46
|
-
const [modals, setModals] = (0, import_react.useState)([]);
|
|
47
|
-
(0, import_react.useEffect)(() => {
|
|
48
|
-
setModals(import_lodash.default.filter(memory, (modal) => modal.type === "fixed"));
|
|
49
|
-
}, [pathname]);
|
|
50
|
-
const add = (modal) => {
|
|
51
|
-
if (import_lodash.default.some(memory, (data) => data.name === modal.name)) return;
|
|
52
|
-
memory.push(modal);
|
|
53
|
-
setModals(memory);
|
|
54
|
-
};
|
|
55
|
-
const remove = (modalName) => {
|
|
56
|
-
const index = import_lodash.default.findIndex(memory, (data) => data.name === modalName);
|
|
57
|
-
memory.slice(index, 1);
|
|
58
|
-
setModals(memory);
|
|
59
|
-
};
|
|
60
|
-
const setProps = (modalName, props) => {
|
|
61
|
-
const index = import_lodash.default.findIndex(modals, (modal) => modal.name === modalName);
|
|
62
|
-
const content = import_lodash.default.find(modals, (modal) => modal.name === modalName);
|
|
63
|
-
if (!content) return;
|
|
64
|
-
let settedModals = [...modals];
|
|
65
|
-
settedModals.splice(index, 1, { ...content, props: { ...content.props, ...props } });
|
|
66
|
-
setModals(settedModals);
|
|
67
|
-
};
|
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
69
|
-
ModalContext.Provider,
|
|
70
|
-
{
|
|
71
|
-
value: {
|
|
72
|
-
value: modals,
|
|
73
|
-
add,
|
|
74
|
-
remove,
|
|
75
|
-
setProps
|
|
76
|
-
},
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { children: import_lodash.default.map(modals, (modal, index) => {
|
|
79
|
-
const ModalComponent = modal.component;
|
|
80
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalComponent, { ...modal.props }, index);
|
|
81
|
-
}) }),
|
|
82
|
-
children
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
const useModal = () => (0, import_react.useContext)(ModalContext);
|
|
88
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
89
|
-
0 && (module.exports = {
|
|
90
|
-
ModalProvider,
|
|
91
|
-
useModal
|
|
92
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { createContext, useContext, useEffect, useState } from "react";
|
|
5
|
-
import { usePathname } from "next/navigation";
|
|
6
|
-
import { Container } from "./styles";
|
|
7
|
-
import _ from "lodash";
|
|
8
|
-
const ModalContext = createContext({});
|
|
9
|
-
const memory = [];
|
|
10
|
-
const ModalProviderContainer = ({ children }) => {
|
|
11
|
-
const pathname = usePathname();
|
|
12
|
-
const [modals, setModals] = useState([]);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
setModals(_.filter(memory, (modal) => modal.type === "fixed"));
|
|
15
|
-
}, [pathname]);
|
|
16
|
-
const add = (modal) => {
|
|
17
|
-
if (_.some(memory, (data) => data.name === modal.name)) return;
|
|
18
|
-
memory.push(modal);
|
|
19
|
-
setModals(memory);
|
|
20
|
-
};
|
|
21
|
-
const remove = (modalName) => {
|
|
22
|
-
const index = _.findIndex(memory, (data) => data.name === modalName);
|
|
23
|
-
memory.slice(index, 1);
|
|
24
|
-
setModals(memory);
|
|
25
|
-
};
|
|
26
|
-
const setProps = (modalName, props) => {
|
|
27
|
-
const index = _.findIndex(modals, (modal) => modal.name === modalName);
|
|
28
|
-
const content = _.find(modals, (modal) => modal.name === modalName);
|
|
29
|
-
if (!content) return;
|
|
30
|
-
let settedModals = [...modals];
|
|
31
|
-
settedModals.splice(index, 1, { ...content, props: { ...content.props, ...props } });
|
|
32
|
-
setModals(settedModals);
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ jsxs(
|
|
35
|
-
ModalContext.Provider,
|
|
36
|
-
{
|
|
37
|
-
value: {
|
|
38
|
-
value: modals,
|
|
39
|
-
add,
|
|
40
|
-
remove,
|
|
41
|
-
setProps
|
|
42
|
-
},
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsx(Container, { children: _.map(modals, (modal, index) => {
|
|
45
|
-
const ModalComponent = modal.component;
|
|
46
|
-
return /* @__PURE__ */ jsx(ModalComponent, { ...modal.props }, index);
|
|
47
|
-
}) }),
|
|
48
|
-
children
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
const useModal = () => useContext(ModalContext);
|
|
54
|
-
export {
|
|
55
|
-
ModalProviderContainer as ModalProvider,
|
|
56
|
-
useModal
|
|
57
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
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 styles_exports = {};
|
|
31
|
-
__export(styles_exports, {
|
|
32
|
-
Container: () => Container
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(styles_exports);
|
|
35
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
36
|
-
const Container = import_styled_components.default.div`
|
|
37
|
-
|
|
38
|
-
`;
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
Container
|
|
42
|
-
});
|