@mamrp/components 1.0.13 → 1.0.14

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/index.d.mts CHANGED
@@ -234,8 +234,9 @@ type FormInputNumberProps<T extends FieldValues> = {
234
234
  data?: any;
235
235
  borderColor?: string;
236
236
  decimalScale?: number;
237
+ textAlign?: "left" | "right" | "center";
237
238
  } & TextFieldProps;
238
- declare const FormInputNumber: <T extends FieldValues>({ name, control, label, endAdornment, thousandSeparator, startAdornment, allowLeadingZeros, allowNegative, maxLength, isLoading, rules, data, borderColor, decimalScale, ...rest }: FormInputNumberProps<T>) => React__default.JSX.Element;
239
+ declare const FormInputNumber: <T extends FieldValues>({ name, control, label, endAdornment, thousandSeparator, startAdornment, allowLeadingZeros, allowNegative, maxLength, isLoading, rules, data, borderColor, decimalScale, textAlign, ...rest }: FormInputNumberProps<T>) => React__default.JSX.Element;
239
240
 
240
241
  type FormInputTextProps<T extends FieldValues> = {
241
242
  control: Control<T>;
package/dist/index.d.ts CHANGED
@@ -234,8 +234,9 @@ type FormInputNumberProps<T extends FieldValues> = {
234
234
  data?: any;
235
235
  borderColor?: string;
236
236
  decimalScale?: number;
237
+ textAlign?: "left" | "right" | "center";
237
238
  } & TextFieldProps;
238
- declare const FormInputNumber: <T extends FieldValues>({ name, control, label, endAdornment, thousandSeparator, startAdornment, allowLeadingZeros, allowNegative, maxLength, isLoading, rules, data, borderColor, decimalScale, ...rest }: FormInputNumberProps<T>) => React__default.JSX.Element;
239
+ declare const FormInputNumber: <T extends FieldValues>({ name, control, label, endAdornment, thousandSeparator, startAdornment, allowLeadingZeros, allowNegative, maxLength, isLoading, rules, data, borderColor, decimalScale, textAlign, ...rest }: FormInputNumberProps<T>) => React__default.JSX.Element;
239
240
 
240
241
  type FormInputTextProps<T extends FieldValues> = {
241
242
  control: Control<T>;
package/dist/index.js CHANGED
@@ -3190,6 +3190,7 @@ var FormInputNumber = ({
3190
3190
  data,
3191
3191
  borderColor,
3192
3192
  decimalScale = 2,
3193
+ textAlign = "left",
3193
3194
  ...rest
3194
3195
  }) => {
3195
3196
  return /* @__PURE__ */ import_react21.default.createElement(
@@ -3223,6 +3224,9 @@ var FormInputNumber = ({
3223
3224
  },
3224
3225
  "& .MuiInputLabel-root.Mui-focused": {
3225
3226
  color: "#085938"
3227
+ },
3228
+ "& .MuiInputBase-input": {
3229
+ textAlign
3226
3230
  }
3227
3231
  },
3228
3232
  label,