infinity-forge 0.6.96 → 0.6.98
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/system/presentation/context/auth/context.js +4 -6
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/ui/components/form/index.d.ts +1 -0
- package/dist/ui/components/form/index.js +1 -0
- package/dist/ui/components/form/index.js.map +1 -1
- package/dist/ui/components/form/input-currency/index.d.ts +2 -0
- package/dist/ui/components/form/input-currency/index.js +27 -0
- package/dist/ui/components/form/input-currency/index.js.map +1 -0
- package/package.json +86 -85
|
@@ -100,13 +100,11 @@ function AuthAdminProvider(_a) {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
function signOut() {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
system_1.container.get(system_1.InfraTypes.storage).set('token', { value: null });
|
|
107
|
-
}
|
|
103
|
+
setUser(null);
|
|
104
|
+
(0, swr_1.mutate)(function () { return true; }, undefined, { revalidate: false });
|
|
105
|
+
system_1.container.get(system_1.InfraTypes.storage).set('token', { value: null });
|
|
108
106
|
}
|
|
109
|
-
(0, swr_1.default)('load_user', loadUser);
|
|
107
|
+
(0, swr_1.default)(user !== null && 'load_user', loadUser);
|
|
110
108
|
(0, react_1.useEffect)(function () {
|
|
111
109
|
axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
|
|
112
110
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,yCAAoC;AACpC,6CAAyC;AAEzC,2BAAoC;AACpC,mCAUiB;AAIjB,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBA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MAAM,GAAG,EAE9D,QAAQ,IACY,CACxB,CAAA;AACH,CAAC;AAWQ,8CAAiB;AAT1B,SAAS,YAAY;IACnB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
|
|
@@ -26,4 +26,5 @@ __exportStar(require("./input-switch/index.js"), exports);
|
|
|
26
26
|
__exportStar(require("./input-control/index.js"), exports);
|
|
27
27
|
__exportStar(require("./input-password/index.js"), exports);
|
|
28
28
|
__exportStar(require("./input-cpf-cnpj/index.js"), exports);
|
|
29
|
+
__exportStar(require("./input-currency/index.js"), exports);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.InputCurrency = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var formik_1 = require("formik");
|
|
20
|
+
var input_control_1 = require("../input-control/index.js");
|
|
21
|
+
var react_currency_input_field_1 = __importDefault(require("react-currency-input-field"));
|
|
22
|
+
function InputCurrency(props) {
|
|
23
|
+
var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], utils = _a[2];
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(react_currency_input_field_1.default, { prefix: 'R$', decimalsLimit: 2, decimalSeparator: ',', groupSeparator: '.', value: field.value, onValueChange: function (value) { return utils.setValue(value); } }) })));
|
|
25
|
+
}
|
|
26
|
+
exports.InputCurrency = InputCurrency;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-currency/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iCAAiC;AACjC,kDAA+C;AAC/C,0FAAsD;AAEtD,SAAgB,aAAa,CAAC,KAAiB;IACvC,IAAA,KAAoB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAjD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAE,KAAK,QAAkC,CAAA;IAExD,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,cACrB,uBAAC,oCAAa,IACZ,MAAM,EAAC,IAAI,EACX,aAAa,EAAE,CAAC,EAChB,gBAAgB,EAAC,GAAG,EACpB,cAAc,EAAC,GAAG,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,aAAa,EAAE,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAArB,CAAqB,GAC/C,IACW,CAChB,CAAA;AACH,CAAC;AAfD,sCAeC"}
|
package/package.json
CHANGED
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "infinity-forge",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "codie Library",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "next -p 3016",
|
|
14
|
-
"start": "next start -p 3015",
|
|
15
|
-
"build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
|
|
16
|
-
"nextBuild": "next build",
|
|
17
|
-
"build:esm": "tsc",
|
|
18
|
-
"build:cjs": "tsc --module commonjs --outDir dist && tsc-alias -p tsconfig.json && for /r src %i in (.otf, *.ttf) do copy \"%i\" dist\\ && for /r src %i in (.css) do copy \"%i\" dist\\"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"react": ">=16"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"LICENSE",
|
|
26
|
-
"README.md"
|
|
27
|
-
],
|
|
28
|
-
"keywords": [
|
|
29
|
-
"react",
|
|
30
|
-
"typescript",
|
|
31
|
-
"awesome-project"
|
|
32
|
-
],
|
|
33
|
-
"author": "Codie Digital",
|
|
34
|
-
"license": "MIT",
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^18.11.7",
|
|
37
|
-
"@types/react": "^18.0.12",
|
|
38
|
-
"@types/react-dom": "^18.2.18",
|
|
39
|
-
"@types/styled-components": "^5.1.26",
|
|
40
|
-
"prettier": "^2.6.2",
|
|
41
|
-
"react": "^18.1.0",
|
|
42
|
-
"react-dom": "^18.2.0",
|
|
43
|
-
"tslib": "^2.4.1",
|
|
44
|
-
"typescript": "^5.1.5"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@emotion/react": "^11.11.3",
|
|
48
|
-
"@emotion/styled": "^11.11.0",
|
|
49
|
-
"@fullcalendar/core": "^6.1.10",
|
|
50
|
-
"@fullcalendar/daygrid": "^6.1.10",
|
|
51
|
-
"@fullcalendar/interaction": "^6.1.10",
|
|
52
|
-
"@fullcalendar/react": "^6.1.10",
|
|
53
|
-
"@fullcalendar/timegrid": "^6.1.10",
|
|
54
|
-
"@react-input/mask": "^1.0.21",
|
|
55
|
-
"aos": "^2.3.4",
|
|
56
|
-
"axios": "^1.4.0",
|
|
57
|
-
"concurrently": "^8.2.2",
|
|
58
|
-
"formik": "^2.4.5",
|
|
59
|
-
"fs": "^0.0.1-security",
|
|
60
|
-
"fs-extra": "^11.1.1",
|
|
61
|
-
"glider-js": "^1.7.8",
|
|
62
|
-
"inversify": "^6.0.2",
|
|
63
|
-
"js-cookie": "^3.0.5",
|
|
64
|
-
"lz-string": "^1.4.4",
|
|
65
|
-
"next": "^13.1.6",
|
|
66
|
-
"npm": "^10.2.4",
|
|
67
|
-
"path": "^0.12.7",
|
|
68
|
-
"react-countup": "^6.5.0",
|
|
69
|
-
"react-
|
|
70
|
-
"react-
|
|
71
|
-
"react-
|
|
72
|
-
"react-
|
|
73
|
-
"react-
|
|
74
|
-
"react-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"semantic-ui-
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "infinity-forge",
|
|
3
|
+
"version": "0.6.98",
|
|
4
|
+
"description": "codie Library",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "next -p 3016",
|
|
14
|
+
"start": "next start -p 3015",
|
|
15
|
+
"build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
|
|
16
|
+
"nextBuild": "next build",
|
|
17
|
+
"build:esm": "tsc",
|
|
18
|
+
"build:cjs": "tsc --module commonjs --outDir dist && tsc-alias -p tsconfig.json && for /r src %i in (.otf, *.ttf) do copy \"%i\" dist\\ && for /r src %i in (.css) do copy \"%i\" dist\\"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=16"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"react",
|
|
30
|
+
"typescript",
|
|
31
|
+
"awesome-project"
|
|
32
|
+
],
|
|
33
|
+
"author": "Codie Digital",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^18.11.7",
|
|
37
|
+
"@types/react": "^18.0.12",
|
|
38
|
+
"@types/react-dom": "^18.2.18",
|
|
39
|
+
"@types/styled-components": "^5.1.26",
|
|
40
|
+
"prettier": "^2.6.2",
|
|
41
|
+
"react": "^18.1.0",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
|
+
"tslib": "^2.4.1",
|
|
44
|
+
"typescript": "^5.1.5"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@emotion/react": "^11.11.3",
|
|
48
|
+
"@emotion/styled": "^11.11.0",
|
|
49
|
+
"@fullcalendar/core": "^6.1.10",
|
|
50
|
+
"@fullcalendar/daygrid": "^6.1.10",
|
|
51
|
+
"@fullcalendar/interaction": "^6.1.10",
|
|
52
|
+
"@fullcalendar/react": "^6.1.10",
|
|
53
|
+
"@fullcalendar/timegrid": "^6.1.10",
|
|
54
|
+
"@react-input/mask": "^1.0.21",
|
|
55
|
+
"aos": "^2.3.4",
|
|
56
|
+
"axios": "^1.4.0",
|
|
57
|
+
"concurrently": "^8.2.2",
|
|
58
|
+
"formik": "^2.4.5",
|
|
59
|
+
"fs": "^0.0.1-security",
|
|
60
|
+
"fs-extra": "^11.1.1",
|
|
61
|
+
"glider-js": "^1.7.8",
|
|
62
|
+
"inversify": "^6.0.2",
|
|
63
|
+
"js-cookie": "^3.0.5",
|
|
64
|
+
"lz-string": "^1.4.4",
|
|
65
|
+
"next": "^13.1.6",
|
|
66
|
+
"npm": "^10.2.4",
|
|
67
|
+
"path": "^0.12.7",
|
|
68
|
+
"react-countup": "^6.5.0",
|
|
69
|
+
"react-currency-input-field": "^3.8.0",
|
|
70
|
+
"react-error-boundary": "^3.1.4",
|
|
71
|
+
"react-ga": "^3.3.1",
|
|
72
|
+
"react-glider": "^4.0.2",
|
|
73
|
+
"react-google-recaptcha": "^3.1.0",
|
|
74
|
+
"react-select": "^5.8.0",
|
|
75
|
+
"react-slick": "^0.30.2",
|
|
76
|
+
"reflect-metadata": "^0.2.1",
|
|
77
|
+
"semantic-ui-css": "^2.5.0",
|
|
78
|
+
"semantic-ui-react": "^2.1.5",
|
|
79
|
+
"sharp": "^0.33.2",
|
|
80
|
+
"slick-carousel": "^1.8.1",
|
|
81
|
+
"styled-components": "^6.0.1",
|
|
82
|
+
"swr": "^2.2.5",
|
|
83
|
+
"tsc-alias": "^1.8.8",
|
|
84
|
+
"zustand": "^4.3.8"
|
|
85
|
+
}
|
|
86
|
+
}
|