infinity-forge 0.42.7 → 0.43.1

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.
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.Modal = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.Modal = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .overlay {\n position: fixed;\n z-index: 999999999;\n min-width: 100%;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(2px);\n left: 0;\n top: 0;\n }\n\n .modal_content {\n width: 100%;\n max-height: 660px;\n position: fixed;\n z-index: 9999999999;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n overflow: hidden;\n }\n"], ["\n .overlay {\n position: fixed;\n z-index: 999999999;\n min-width: 100%;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(2px);\n left: 0;\n top: 0;\n }\n\n .modal_content {\n width: 100%;\n max-height: 660px;\n position: fixed;\n z-index: 9999999999;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n overflow: hidden;\n }\n"])));
12
+ exports.Modal = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .overlay {\n position: fixed;\n z-index: 999999999;\n min-width: 100%;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(2px);\n left: 0;\n top: 0;\n }\n\n .modal_content {\n width: 100%;\n max-height: 100vh;\n position: fixed;\n z-index: 9999999999;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n overflow: auto;\n }\n"], ["\n .overlay {\n position: fixed;\n z-index: 999999999;\n min-width: 100%;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(2px);\n left: 0;\n top: 0;\n }\n\n .modal_content {\n width: 100%;\n max-height: 100vh;\n position: fixed;\n z-index: 9999999999;\n background: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n overflow: auto;\n }\n"])));
13
13
  var templateObject_1;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/modal/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,shBAAA,mdAwBjC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/modal/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,ohBAAA,idAwBjC,KAAA"}
@@ -0,0 +1,5 @@
1
+ export declare function formatNumberToCurrency(money: number | string, noIcon?: boolean, options?: {
2
+ local: 'en-GB';
3
+ currency: 'GBP';
4
+ icon: '£';
5
+ }): string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatNumberToCurrency = void 0;
4
+ function formatNumberToCurrency(money, noIcon, options) {
5
+ return Number(money)
6
+ .toLocaleString((options === null || options === void 0 ? void 0 : options.local) || 'pt-BR', {
7
+ minimumFractionDigits: 2,
8
+ style: 'currency',
9
+ currency: (options === null || options === void 0 ? void 0 : options.currency) || 'BRL',
10
+ })
11
+ .replaceAll(noIcon ? (options === null || options === void 0 ? void 0 : options.icon) || 'R$' : '', '');
12
+ }
13
+ exports.formatNumberToCurrency = formatNumberToCurrency;
14
+ //# sourceMappingURL=format-number-to-currency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-number-to-currency.js","sourceRoot":"","sources":["../../../../src/ui/utils/formatters/format-number-to-currency.ts"],"names":[],"mappings":";;;AAAA,SAAgB,sBAAsB,CAClC,KAAsB,EACtB,MAAgB,EAChB,OAAwD;IAExD,OAAO,MAAM,CAAC,KAAK,CAAC;SACjB,cAAc,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,KAAI,OAAO,EAAE;QACzC,qBAAqB,EAAE,CAAC;QACxB,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,KAAK;KACrC,CAAC;SACD,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,KAAI,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;AACxD,CAAC;AAZH,wDAYG"}
@@ -0,0 +1 @@
1
+ export * from "./format-number-to-currency.js";
@@ -0,0 +1,18 @@
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("./format-number-to-currency.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/utils/formatters/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA2C"}
@@ -5,6 +5,7 @@ export * from './format/index.js';
5
5
  export * from './buffer/index.js';
6
6
  export * from './cookies.js';
7
7
  export * from './facebook/index.js';
8
+ export * from './formatters/index.js';
8
9
  export * from './validations/index.js';
9
10
  export * from './disable-scroll.js';
10
11
  export * from './scroll-to-top-page.js';
@@ -21,6 +21,7 @@ __exportStar(require("./format/index.js"), exports);
21
21
  __exportStar(require("./buffer/index.js"), exports);
22
22
  __exportStar(require("./cookies.js"), exports);
23
23
  __exportStar(require("./facebook/index.js"), exports);
24
+ __exportStar(require("./formatters/index.js"), exports);
24
25
  __exportStar(require("./validations/index.js"), exports);
25
26
  __exportStar(require("./disable-scroll.js"), exports);
26
27
  __exportStar(require("./scroll-to-top-page.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,2CAAwB;AACxB,4CAAyB;AACzB,6CAA0B;AAC1B,gDAA6B;AAC7B,mDAAgC;AAChC,uDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,2CAAwB;AACxB,4CAAyB;AACzB,6CAA0B;AAC1B,+CAA4B;AAC5B,gDAA6B;AAC7B,mDAAgC;AAChC,uDAAoC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.42.7",
3
+ "version": "0.43.1",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",