@mamrp/components 1.0.13 → 1.0.15

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
@@ -3016,7 +3016,7 @@ var Table = ({
3016
3016
  _CustomFooter,
3017
3017
  rowInPage,
3018
3018
  highlightedRowId,
3019
- evenRowBgColor = "transparent",
3019
+ evenRowBgColor = "",
3020
3020
  sortFieldMapping,
3021
3021
  setsortQuery,
3022
3022
  sortQuery,
@@ -3108,7 +3108,7 @@ var Table = ({
3108
3108
  fontSize: fontSize ?? "1rem"
3109
3109
  },
3110
3110
  "& .MuiDataGrid-row:nth-of-type(even)": {
3111
- backgroundColor: evenRowBgColor
3111
+ backgroundColor: evenRowBgColor !== "" ? "" : evenRowBgColor
3112
3112
  },
3113
3113
  ...highlightedRowId && {
3114
3114
  "& .MuiDataGrid-row": {
@@ -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,