infinity-forge 10.9.7 → 10.9.8

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.
@@ -51,6 +51,8 @@ var S = __importStar(require("./styles.js"));
51
51
  function FavoriteList(_a) {
52
52
  var Component = _a.Component;
53
53
  var favorites = (0, system_1.useFavorites)().favorites;
54
+ if (!favorites.length)
55
+ return ((0, jsx_runtime_1.jsx)(S.FavoriteList, { className: 'not-found', children: (0, jsx_runtime_1.jsx)("p", { className: 'font-16-bold', children: "Desculpe n\u00E3o achamos nenhum favorito no momento." }) }));
54
56
  return ((0, jsx_runtime_1.jsx)(S.FavoriteList, { children: favorites === null || favorites === void 0 ? void 0 : favorites.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(Component, __assign({}, item), index)); }) }));
55
57
  }
56
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/favorite-page/favorite-list/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,oCAUC;;AAlBD,mCAAuC;AAEvC,0CAA6B;AAM7B,SAAgB,YAAY,CAAC,EAAiC;QAA/B,SAAS,eAAA;IAC9B,IAAA,SAAS,GAAK,IAAA,qBAAY,GAAE,UAAnB,CAAmB;IAEpC,OAAO,CACL,uBAAC,CAAC,CAAC,YAAY,cACZ,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAC/B,uBAAC,SAAS,eAAiB,IAAI,GAAf,KAAK,CAAc,CACpC,EAFgC,CAEhC,CAAC,GACa,CAClB,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/favorite-page/favorite-list/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,oCAiBC;;AAzBD,mCAAuC;AAEvC,0CAA6B;AAM7B,SAAgB,YAAY,CAAC,EAAiC;QAA/B,SAAS,eAAA;IAC9B,IAAA,SAAS,GAAK,IAAA,qBAAY,GAAE,UAAnB,CAAmB;IAEpC,IAAI,CAAC,SAAS,CAAC,MAAM;QACnB,OAAO,CACL,uBAAC,CAAC,CAAC,YAAY,IAAC,SAAS,EAAC,WAAW,YACnC,8BAAG,SAAS,EAAC,cAAc,sEAAqD,GACjE,CAClB,CAAA;IAEH,OAAO,CACL,uBAAC,CAAC,CAAC,YAAY,cACZ,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAC/B,uBAAC,SAAS,eAAiB,IAAI,GAAf,KAAK,CAAc,CACpC,EAFgC,CAEhC,CAAC,GACa,CAClB,CAAA;AACH,CAAC"}
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.FavoriteList = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.FavoriteList = (0, styled_components_1.default)('section')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 30px;\n margin-top: 40px;\n\n @media only screen and (max-width: 1600px) {\n gap: 20px;\n }\n\n @media only screen and (max-width: 1024px) {\n grid-template-columns: repeat(3, 1fr);\n }\n\n @media only screen and (max-width: 900px) {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media only screen and (max-width: 768px) {\n gap: 15px;\n }\n\n @media only screen and (max-width: 520px) {\n grid-template-columns: repeat(1, 1fr);\n gap: 20px;\n }\n"], ["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 30px;\n margin-top: 40px;\n\n @media only screen and (max-width: 1600px) {\n gap: 20px;\n }\n\n @media only screen and (max-width: 1024px) {\n grid-template-columns: repeat(3, 1fr);\n }\n\n @media only screen and (max-width: 900px) {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media only screen and (max-width: 768px) {\n gap: 15px;\n }\n\n @media only screen and (max-width: 520px) {\n grid-template-columns: repeat(1, 1fr);\n gap: 20px;\n }\n"])));
12
+ exports.FavoriteList = (0, styled_components_1.default)('section')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 30px;\n margin-top: 40px;\n\n &.not-found {\n max-width: 550px;\n display: flex !important;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n gap: 15px;\n text-align: center;\n margin-left: auto;\n margin-right: auto;\n }\n\n @media only screen and (max-width: 1600px) {\n gap: 20px;\n }\n\n @media only screen and (max-width: 1024px) {\n grid-template-columns: repeat(3, 1fr);\n }\n\n @media only screen and (max-width: 900px) {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media only screen and (max-width: 768px) {\n gap: 15px;\n }\n\n @media only screen and (max-width: 520px) {\n grid-template-columns: repeat(1, 1fr);\n gap: 20px;\n }\n"], ["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 30px;\n margin-top: 40px;\n\n &.not-found {\n max-width: 550px;\n display: flex !important;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n gap: 15px;\n text-align: center;\n margin-left: auto;\n margin-right: auto;\n }\n\n @media only screen and (max-width: 1600px) {\n gap: 20px;\n }\n\n @media only screen and (max-width: 1024px) {\n grid-template-columns: repeat(3, 1fr);\n }\n\n @media only screen and (max-width: 900px) {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media only screen and (max-width: 768px) {\n gap: 15px;\n }\n\n @media only screen and (max-width: 520px) {\n grid-template-columns: repeat(1, 1fr);\n gap: 20px;\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/codie-dynamic/components/favorite-page/favorite-list/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,YAAY,GAAG,IAAA,2BAAM,EAAC,SAAS,CAAC,0mBAAA,uiBA0B5C,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/ui/codie-dynamic/components/favorite-page/favorite-list/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,YAAY,GAAG,IAAA,2BAAM,EAAC,SAAS,CAAC,u2BAAA,oyBAsC5C,KAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "10.9.7",
3
+ "version": "10.9.8",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",