infinity-forge 5.1.3 → 5.1.5

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.Avatar = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.Avatar = styled_components_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 40px;\n height: 40px;\n background-color: #b6b5b5;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n border-radius: 100%;\n overflow: hidden;\n cursor: pointer;\n\n img {\n width: 100%;\n height: auto;\n flex-shrink: 0;\n aspect-ratio: 40/40;\n }\n\n @media only screen and (max-width: 768px) {\n width: 35px;\n height: 35px;\n min-width: 35px;\n min-height: 35px;\n }\n"], ["\n width: 40px;\n height: 40px;\n background-color: #b6b5b5;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n border-radius: 100%;\n overflow: hidden;\n cursor: pointer;\n\n img {\n width: 100%;\n height: auto;\n flex-shrink: 0;\n aspect-ratio: 40/40;\n }\n\n @media only screen and (max-width: 768px) {\n width: 35px;\n height: 35px;\n min-width: 35px;\n min-height: 35px;\n }\n"])));
12
+ exports.Avatar = styled_components_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0;\n border: 0;\n border-radius: 100%;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 40px;\n height: 40px;\n line-height: 1;\n background-color: #b6b5b5;\n\n overflow: hidden;\n cursor: pointer;\n\n img {\n width: 100%;\n height: auto;\n flex-shrink: 0;\n aspect-ratio: 40/40;\n }\n\n @media only screen and (max-width: 768px) {\n width: 35px;\n height: 35px;\n }\n"], ["\n padding: 0;\n border: 0;\n border-radius: 100%;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 40px;\n height: 40px;\n line-height: 1;\n background-color: #b6b5b5;\n\n overflow: hidden;\n cursor: pointer;\n\n img {\n width: 100%;\n height: auto;\n flex-shrink: 0;\n aspect-ratio: 40/40;\n }\n\n @media only screen and (max-width: 768px) {\n width: 35px;\n height: 35px;\n }\n"])));
13
13
  var templateObject_1;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/avatar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,MAAM,GAAG,2BAAM,CAAC,MAAM,shBAAA,mdA0BlC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/avatar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,MAAM,GAAG,2BAAM,CAAC,MAAM,kgBAAA,+bA4BlC,KAAA"}
@@ -1,4 +1,6 @@
1
1
  import { InputProps } from '../interfaces.js';
2
- export declare function InputCurrency(props: {
2
+ export type InputCurrencyProps = {
3
+ decimalLimit?: number;
3
4
  errorMessageMax?: (value: string) => string;
4
- } & InputProps): import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ export declare function InputCurrency(props: InputProps & InputCurrencyProps): import("react/jsx-runtime").JSX.Element;
@@ -51,7 +51,7 @@ function InputCurrency(props) {
51
51
  }, 500);
52
52
  }
53
53
  }, []);
54
- return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(components_1.CurrencyInput, __assign({}, props, { prefix: typeof (props === null || props === void 0 ? void 0 : props.prefix) !== 'string' ? 'R$ ' : props.prefix, decimalsLimit: 2, decimalSeparator: ',', groupSeparator: '.', value: value, onValueChange: handleChange, readOnly: props.readOnly, max: props.max })) })));
54
+ return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(components_1.CurrencyInput, __assign({}, props, { prefix: typeof (props === null || props === void 0 ? void 0 : props.prefix) !== 'string' ? 'R$ ' : props.prefix, decimalsLimit: (props === null || props === void 0 ? void 0 : props.decimalLimit) || 2, decimalSeparator: ',', groupSeparator: '.', value: value, onValueChange: handleChange, readOnly: props.readOnly, max: props.max })) })));
55
55
  }
56
56
  exports.InputCurrency = InputCurrency;
57
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-currency/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAAiC;AAEjC,iCAAiC;AAEjC,kDAA+C;AAI/C,2CAA4C;AAE5C,SAAgB,aAAa,CAAC,KAAmE;;IACzF,IAAA,KAAuB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAApD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAE,QAAQ,QAAkC,CAAA;IAE3D,SAAS,YAAY,CAAC,KAAa;QACjC,IAAM,aAAa,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;QAEvE,IAAI,aAAa,EAAE,CAAC;YAClB,IAAM,YAAY,GAAG,UAAU,CAC7B,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CACnG,CAAA;YAED,IAAI,KAAK,CAAC,GAAG,IAAI,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC;gBACvD,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;oBAC1B,Q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AK,EACZ,aAAa,EAAE,YAAY,EAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,GAAG,EAAE,KAAK,CAAC,GAAG,IACd,IACW,CAChB,CAAA;AACH,CAAC;AAtDD,sCAsDC"}
@@ -10,6 +10,7 @@ import { StylesConfig } from 'react-select';
10
10
  import { InputMaskProps } from './input-mask/index.js';
11
11
  import { InputManagerProps } from './input-manager/index.js';
12
12
  import { IInputDatePicker } from './input-date-picker/index.js';
13
+ import { InputCurrencyProps } from './input-currency/index.js';
13
14
  export type Option = {
14
15
  label: string;
15
16
  value?: string | number;
@@ -73,5 +74,5 @@ export interface IOptionSelect {
73
74
  label: string;
74
75
  value: string;
75
76
  }
76
- export type InputProps = JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['textarea'] & Props & Partial<TranslateProps> & Partial<ISelectProps> & Partial<IInputDatePicker> & Partial<InputManagerProps> & Partial<InputMaskProps>;
77
+ export type InputProps = JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['textarea'] & Props & Partial<TranslateProps> & Partial<ISelectProps> & Partial<IInputDatePicker> & Partial<InputManagerProps> & Partial<InputMaskProps> & Partial<InputCurrencyProps>;
77
78
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",