@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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +26 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -235,8 +235,9 @@ type FormInputNumberProps<T extends FieldValues> = {
|
|
|
235
235
|
borderColor?: string;
|
|
236
236
|
decimalScale?: number;
|
|
237
237
|
textAlign?: "left" | "right" | "center";
|
|
238
|
+
borderless?: boolean;
|
|
238
239
|
} & TextFieldProps;
|
|
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;
|
|
240
|
+
declare const FormInputNumber: <T extends FieldValues>({ name, control, label, endAdornment, thousandSeparator, startAdornment, allowLeadingZeros, allowNegative, maxLength, isLoading, rules, data, borderColor, decimalScale, textAlign, borderless, ...rest }: FormInputNumberProps<T>) => React__default.JSX.Element;
|
|
240
241
|
|
|
241
242
|
type FormInputTextProps<T extends FieldValues> = {
|
|
242
243
|
control: Control<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -235,8 +235,9 @@ type FormInputNumberProps<T extends FieldValues> = {
|
|
|
235
235
|
borderColor?: string;
|
|
236
236
|
decimalScale?: number;
|
|
237
237
|
textAlign?: "left" | "right" | "center";
|
|
238
|
+
borderless?: boolean;
|
|
238
239
|
} & TextFieldProps;
|
|
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;
|
|
240
|
+
declare const FormInputNumber: <T extends FieldValues>({ name, control, label, endAdornment, thousandSeparator, startAdornment, allowLeadingZeros, allowNegative, maxLength, isLoading, rules, data, borderColor, decimalScale, textAlign, borderless, ...rest }: FormInputNumberProps<T>) => React__default.JSX.Element;
|
|
240
241
|
|
|
241
242
|
type FormInputTextProps<T extends FieldValues> = {
|
|
242
243
|
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 = "
|
|
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": {
|
|
@@ -3191,6 +3191,7 @@ var FormInputNumber = ({
|
|
|
3191
3191
|
borderColor,
|
|
3192
3192
|
decimalScale = 2,
|
|
3193
3193
|
textAlign = "left",
|
|
3194
|
+
borderless = false,
|
|
3194
3195
|
...rest
|
|
3195
3196
|
}) => {
|
|
3196
3197
|
return /* @__PURE__ */ import_react21.default.createElement(
|
|
@@ -3209,17 +3210,30 @@ var FormInputNumber = ({
|
|
|
3209
3210
|
onChange,
|
|
3210
3211
|
value: data && !value ? data : value == null ? "" : value,
|
|
3211
3212
|
fullWidth: true,
|
|
3213
|
+
variant: borderless ? "standard" : "outlined",
|
|
3212
3214
|
sx: {
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3215
|
+
...borderless ? {
|
|
3216
|
+
"& .MuiInput-underline:before": {
|
|
3217
|
+
borderBottom: "none"
|
|
3218
|
+
},
|
|
3219
|
+
"& .MuiInput-underline:after": {
|
|
3220
|
+
borderBottom: "none"
|
|
3221
|
+
},
|
|
3222
|
+
"& .MuiInput-underline:hover:not(.Mui-disabled):before": {
|
|
3223
|
+
borderBottom: "none"
|
|
3224
|
+
}
|
|
3225
|
+
} : {
|
|
3226
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
3227
|
+
borderColor: borderColor || ""
|
|
3220
3228
|
},
|
|
3221
|
-
"
|
|
3222
|
-
|
|
3229
|
+
"& .MuiOutlinedInput-root": {
|
|
3230
|
+
borderRadius: "12px",
|
|
3231
|
+
"&:hover fieldset": {
|
|
3232
|
+
borderColor: borderColor ?? "#085938"
|
|
3233
|
+
},
|
|
3234
|
+
"&.Mui-focused fieldset": {
|
|
3235
|
+
borderColor: borderColor ?? "#085938"
|
|
3236
|
+
}
|
|
3223
3237
|
}
|
|
3224
3238
|
},
|
|
3225
3239
|
"& .MuiInputLabel-root.Mui-focused": {
|
|
@@ -3231,7 +3245,6 @@ var FormInputNumber = ({
|
|
|
3231
3245
|
},
|
|
3232
3246
|
label,
|
|
3233
3247
|
inputRef: ref,
|
|
3234
|
-
variant: "outlined",
|
|
3235
3248
|
InputLabelProps: { shrink: true },
|
|
3236
3249
|
InputProps: {
|
|
3237
3250
|
inputComponent: NumericFormatCustom,
|
|
@@ -3242,7 +3255,7 @@ var FormInputNumber = ({
|
|
|
3242
3255
|
maxLength,
|
|
3243
3256
|
decimalScale
|
|
3244
3257
|
},
|
|
3245
|
-
endAdornment: isLoading ? /* @__PURE__ */ import_react21.default.createElement(import_InputAdornment.default, { position: "end" }, /* @__PURE__ */ import_react21.default.createElement(import_CircularProgress2.default, { size: 20 })) :
|
|
3258
|
+
endAdornment: isLoading ? /* @__PURE__ */ import_react21.default.createElement(import_InputAdornment.default, { position: "end" }, /* @__PURE__ */ import_react21.default.createElement(import_CircularProgress2.default, { size: 20 })) : endAdornment,
|
|
3246
3259
|
startAdornment
|
|
3247
3260
|
},
|
|
3248
3261
|
...rest
|