@mamrp/components 1.0.14 → 1.0.16

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.mjs CHANGED
@@ -2989,7 +2989,7 @@ var Table = ({
2989
2989
  _CustomFooter,
2990
2990
  rowInPage,
2991
2991
  highlightedRowId,
2992
- evenRowBgColor = "transparent",
2992
+ evenRowBgColor = "",
2993
2993
  sortFieldMapping,
2994
2994
  setsortQuery,
2995
2995
  sortQuery,
@@ -3081,7 +3081,7 @@ var Table = ({
3081
3081
  fontSize: fontSize ?? "1rem"
3082
3082
  },
3083
3083
  "& .MuiDataGrid-row:nth-of-type(even)": {
3084
- backgroundColor: evenRowBgColor
3084
+ backgroundColor: evenRowBgColor !== "" ? "" : evenRowBgColor
3085
3085
  },
3086
3086
  ...highlightedRowId && {
3087
3087
  "& .MuiDataGrid-row": {
@@ -3164,6 +3164,7 @@ var FormInputNumber = ({
3164
3164
  borderColor,
3165
3165
  decimalScale = 2,
3166
3166
  textAlign = "left",
3167
+ borderless = false,
3167
3168
  ...rest
3168
3169
  }) => {
3169
3170
  return /* @__PURE__ */ React22.createElement(
@@ -3182,17 +3183,30 @@ var FormInputNumber = ({
3182
3183
  onChange,
3183
3184
  value: data && !value ? data : value == null ? "" : value,
3184
3185
  fullWidth: true,
3186
+ variant: borderless ? "standard" : "outlined",
3185
3187
  sx: {
3186
- "& .MuiOutlinedInput-notchedOutline": {
3187
- borderColor: borderColor ? borderColor : ""
3188
- },
3189
- "& .MuiOutlinedInput-root": {
3190
- borderRadius: "12px",
3191
- "&:hover fieldset": {
3192
- borderColor: borderColor ?? "#085938"
3188
+ ...borderless ? {
3189
+ "& .MuiInput-underline:before": {
3190
+ borderBottom: "none"
3191
+ },
3192
+ "& .MuiInput-underline:after": {
3193
+ borderBottom: "none"
3194
+ },
3195
+ "& .MuiInput-underline:hover:not(.Mui-disabled):before": {
3196
+ borderBottom: "none"
3197
+ }
3198
+ } : {
3199
+ "& .MuiOutlinedInput-notchedOutline": {
3200
+ borderColor: borderColor || ""
3193
3201
  },
3194
- "&.Mui-focused fieldset": {
3195
- borderColor: borderColor ?? "#085938"
3202
+ "& .MuiOutlinedInput-root": {
3203
+ borderRadius: "12px",
3204
+ "&:hover fieldset": {
3205
+ borderColor: borderColor ?? "#085938"
3206
+ },
3207
+ "&.Mui-focused fieldset": {
3208
+ borderColor: borderColor ?? "#085938"
3209
+ }
3196
3210
  }
3197
3211
  },
3198
3212
  "& .MuiInputLabel-root.Mui-focused": {
@@ -3204,7 +3218,6 @@ var FormInputNumber = ({
3204
3218
  },
3205
3219
  label,
3206
3220
  inputRef: ref,
3207
- variant: "outlined",
3208
3221
  InputLabelProps: { shrink: true },
3209
3222
  InputProps: {
3210
3223
  inputComponent: NumericFormatCustom,
@@ -3215,7 +3228,7 @@ var FormInputNumber = ({
3215
3228
  maxLength,
3216
3229
  decimalScale
3217
3230
  },
3218
- endAdornment: isLoading ? /* @__PURE__ */ React22.createElement(InputAdornment2, { position: "end" }, /* @__PURE__ */ React22.createElement(CircularProgress3, { size: 20 })) : null,
3231
+ endAdornment: isLoading ? /* @__PURE__ */ React22.createElement(InputAdornment2, { position: "end" }, /* @__PURE__ */ React22.createElement(CircularProgress3, { size: 20 })) : endAdornment,
3219
3232
  startAdornment
3220
3233
  },
3221
3234
  ...rest