infinity-forge 0.10.8 → 0.11.0

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.
@@ -36,7 +36,7 @@ function HeaderVersion01() {
36
36
  var _a;
37
37
  var isFixed = (0, ui_1.useScreen)().isFixed;
38
38
  var width = (0, ui_1.useElementSize)('left-menu').width;
39
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', "$isSticky": isFixed, children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { style: { maxWidth: width + 'px' }, children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'logo', href: '/', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.clientLogo) || '', alt: 'header-logo' }) }) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(components_1.SearchModal, {}), (0, jsx_runtime_1.jsx)(components_1.MenuRight, {})] })] }) }) }));
39
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', "$isSticky": isFixed, children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { style: { maxWidth: width + 'px' }, children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'logo', href: '/', children: (0, jsx_runtime_1.jsx)("img", { src: ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.api) + "logo.png", alt: 'header-logo' }) }) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(components_1.SearchModal, {}), (0, jsx_runtime_1.jsx)(components_1.MenuRight, {})] })] }) }) }));
40
40
  }
41
41
  exports.HeaderVersion01 = HeaderVersion01;
42
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA6E;AAE7E,4CAAsD;AAEtD,0CAA6B;AAC7B,mDAA4B;AAE5B,SAAgB,eAAe;;IACrB,IAAA,OAAO,GAAK,IAAA,cAAS,GAAE,QAAhB,CAAgB;IACvB,IAAA,KAAK,GAAK,IAAA,mBAAc,EAAC,WAAW,CAAC,MAAhC,CAAgC;IAE7C,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,eAAY,OAAO,YAC/C,wBAAC,cAAS,eACR,gCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,GAAG,IAAI,EAAE,YACpC,uBAAC,cAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,GAAG,YAC7B,uBAAC,cAAS,IAAC,GAAG,EAAE,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,UAAU,KAAI,EAAE,EAAE,GAAG,EAAC,aAAa,GAAG,GAC/D,GACH,EAEN,4CACE,uBAAC,wBAAW,KAAG,EAEf,uBAAC,sBAAS,KAAG,IACT,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC;AAvBD,0CAuBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA6E;AAE7E,4CAAsD;AAEtD,0CAA6B;AAC7B,mDAA4B;AAE5B,SAAgB,eAAe;;IACrB,IAAA,OAAO,GAAK,IAAA,cAAS,GAAE,QAAhB,CAAgB;IACvB,IAAA,KAAK,GAAK,IAAA,mBAAc,EAAC,WAAW,CAAC,MAAhC,CAAgC;IAE7C,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,eAAY,OAAO,YAC/C,wBAAC,cAAS,eACR,gCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,GAAG,IAAI,EAAE,YACpC,uBAAC,cAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,GAAG,YAC7B,gCAAK,GAAG,EAAE,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,GAAG,IAAG,UAAU,EAAE,GAAG,EAAC,aAAa,GAAG,GACzD,GACH,EAEN,4CACE,uBAAC,wBAAW,KAAG,EAEf,uBAAC,sBAAS,KAAG,IACT,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC;AAvBD,0CAuBC"}
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.SubMenu = exports.Menu = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.Menu = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: relative;\n z-index: 999;\n\n padding-right: 15px;\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n }\n\n .title {\n color: #828282;\n margin-bottom: 10px;\n padding-left: 15px;\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n color: ", ";\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 15px;\n height: 40px;\n display: flex;\n position: relative;\n z-index: 2222;\n\n &.active {\n background-color: #3872fa;\n color: #fff;\n }\n\n &:hover {\n background-color: ", ";\n color: #fff;\n transform: scale(1.01);\n }\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n\n .icon {\n width: 16px;\n height: 16px;\n display: flex;\n\n > svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"], ["\n width: 100%;\n position: relative;\n z-index: 999;\n\n padding-right: 15px;\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n }\n\n .title {\n color: #828282;\n margin-bottom: 10px;\n padding-left: 15px;\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n color: ", ";\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 15px;\n height: 40px;\n display: flex;\n position: relative;\n z-index: 2222;\n\n &.active {\n background-color: #3872fa;\n color: #fff;\n }\n\n &:hover {\n background-color: ", ";\n color: #fff;\n transform: scale(1.01);\n }\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n\n .icon {\n width: 16px;\n height: 16px;\n display: flex;\n\n > svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"])), function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; });
12
+ exports.Menu = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: relative;\n z-index: 999;\n\n padding-right: 15px;\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n }\n\n .title {\n color: #828282;\n margin-bottom: 10px;\n padding-left: 15px;\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n color: ", ";\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 15px;\n height: 40px;\n display: flex;\n position: relative;\n z-index: 2222;\n\n &.active {\n background-color: #3872fa;\n color: #fff;\n }\n\n &:hover {\n background-color: ", ";\n color: #fff;\n transform: scale(1.01);\n }\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n\n > svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"], ["\n width: 100%;\n position: relative;\n z-index: 999;\n\n padding-right: 15px;\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n }\n\n .title {\n color: #828282;\n margin-bottom: 10px;\n padding-left: 15px;\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n color: ", ";\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 15px;\n height: 40px;\n display: flex;\n position: relative;\n z-index: 2222;\n\n &.active {\n background-color: #3872fa;\n color: #fff;\n }\n\n &:hover {\n background-color: ", ";\n color: #fff;\n transform: scale(1.01);\n }\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n\n > svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"])), function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; });
13
13
  exports.SubMenu = styled_components_1.default.ul(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 5px;\n padding: 12px 8px;\n z-index: 24;\n position: absolute;\n top: 0;\n left: 100%;\n z-index: 9999;\n background-color: #ffffff;\n border: 1px solid #d1d5db;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s, border-color 0.3s;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n\n li {\n &:hover {\n background-color: #f3f4f6;\n }\n }\n"], ["\n border-radius: 5px;\n padding: 12px 8px;\n z-index: 24;\n position: absolute;\n top: 0;\n left: 100%;\n z-index: 9999;\n background-color: #ffffff;\n border: 1px solid #d1d5db;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s, border-color 0.3s;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n\n li {\n &:hover {\n background-color: #f3f4f6;\n }\n }\n"])));
14
14
  var templateObject_1, templateObject_2;
15
15
  //# sourceMappingURL=styles.js.map
@@ -0,0 +1,4 @@
1
+ export declare function InputSearch({ items, setItems }: {
2
+ items: any;
3
+ setItems: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputSearch = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var semantic_ui_react_1 = require("semantic-ui-react");
6
+ var ui_1 = require("../../../../../../../../../ui/index.js");
7
+ function InputSearch(_a) {
8
+ var items = _a.items, setItems = _a.setItems;
9
+ function handleChange(ev) { }
10
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'InputSearch', children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Input, { icon: 'search', iconPosition: 'left', placeholder: 'Pesquisar...', onChange: handleChange }) }));
11
+ }
12
+ exports.InputSearch = InputSearch;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/filters/search/index.tsx"],"names":[],"mappings":";;;;AAAA,uDAAyC;AAEzC,2BAA4B;AAE5B,SAAgB,WAAW,CAAC,EAAmB;QAAjB,KAAK,WAAA,EAAE,QAAQ,cAAA;IAC3C,SAAS,YAAY,CAAC,EAAE,IAAG,CAAC;IAE5B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,aAAa,YACvB,uBAAC,yBAAK,IAAC,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAC,MAAM,EAAC,WAAW,EAAC,cAAc,EAAC,QAAQ,EAAE,YAAY,GAAI,GACxF,CACT,CAAA;AACH,CAAC;AARD,kCAQC"}
@@ -1,2 +1,4 @@
1
1
  import { InputProps } from '../interfaces.js';
2
- export declare function InputCpfCnpj(props: InputProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function InputCpfCnpj(props: {
3
+ only?: 'cpf' | 'cpnj';
4
+ } & InputProps): import("react/jsx-runtime").JSX.Element;
@@ -18,9 +18,13 @@ var mask_1 = require("@react-input/mask");
18
18
  var input_control_1 = require("../input-control/index.js");
19
19
  function InputCpfCnpj(props) {
20
20
  var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], helpers = _a[2];
21
+ var masks = {
22
+ cpf: '___.___.___-___',
23
+ cpnj: '__.___.___/____-__',
24
+ };
21
25
  function modify(value) {
22
26
  return {
23
- mask: (value === null || value === void 0 ? void 0 : value.length) > 11 ? '__.___.___/____-__' : '___.___.___-___',
27
+ mask: props.only ? masks[props.only] : (value === null || value === void 0 ? void 0 : value.length) > 11 ? masks["cpnj"] : masks["cpf"],
24
28
  replacement: { _: /\d/ },
25
29
  };
26
30
  }
@@ -29,7 +33,7 @@ function InputCpfCnpj(props) {
29
33
  helpers.setValue(event.target.value);
30
34
  helpers.setTouched(true);
31
35
  };
32
- return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(mask_1.InputMask, __assign({ className: "font-16-regular", mask: "___.___.___-___", replacement: { _: /\d/ }, modify: modify }, field, { onChange: handleChange }, props)) })));
36
+ return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(mask_1.InputMask, __assign({ className: 'font-16-regular', mask: masks["cpf"], replacement: { _: /\d/ }, modify: modify }, field, { onChange: handleChange }, props)) })));
33
37
  }
34
38
  exports.InputCpfCnpj = InputCpfCnpj;
35
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-cpf-cnpj/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAkC;AAClC,0CAA8C;AAE9C,kDAAgD;AAKhD,SAAgB,YAAY,CAAC,KAAiB;IACtC,IAAA,KAAuB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAApD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAG,OAAO,QAAkC,CAAC;IAE5D,SAAS,MAAM,CAAC,KAAa;QAC3B,OAAO;YACL,IAAI,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,IAAG,EAAE,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,iBAAiB;YACnE,WAAW,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE;SACzB,CAAC;IACJ,CAAC;IAED,IAAM,YAAY,GAAG,UAAC,KAA0C;QAC9D,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACtB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,C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,CAAC,KAAK,CAAC,CAAA;QACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACpC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;IAC1B,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,cACrB,uBAAC,gBAAS,aACR,SAAS,EAAC,iBAAiB,EAC3B,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,EAClB,WAAW,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,EACxB,MAAM,EAAE,MAAM,IACV,KAAK,IACT,QAAQ,EAAE,YAAY,IACjB,KAAa,EAClB,IACW,CAChB,CAAA;AACH,CAAC;AAlCD,oCAkCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.10.8",
3
+ "version": "0.11.0",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",