@connectif/ui-components 5.4.2 → 5.5.0
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/CHANGELOG.md +7 -0
- package/dist/index.js +19 -12
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -19093,13 +19093,13 @@ var TextFieldContainer = React49.forwardRef(function TextFieldContainer2({
|
|
|
19093
19093
|
display: "flex",
|
|
19094
19094
|
alignItems: multiline ? "start" : "center",
|
|
19095
19095
|
gap: "8px",
|
|
19096
|
-
backgroundColor: variant === "default" ? palette2.common.white : "transparent",
|
|
19096
|
+
backgroundColor: variant === "default" ? disabled ? palette2.grey[50] : palette2.common.white : "transparent",
|
|
19097
19097
|
width: "100%",
|
|
19098
19098
|
minHeight: "36px",
|
|
19099
19099
|
overflow: "hidden",
|
|
19100
19100
|
border: variant === "default" ? `1px solid ${palette2.grey[200]}` : "none",
|
|
19101
19101
|
borderRadius: variant === "default" ? "4px" : 0,
|
|
19102
|
-
color: isFocused ? effectiveActiveColor : palette2.grey[400],
|
|
19102
|
+
color: disabled ? palette2.grey[500] : isFocused ? effectiveActiveColor : palette2.grey[400],
|
|
19103
19103
|
padding: variant === "default" ? "1px 1px 1px 7px" : "2px 2px 2px 8px",
|
|
19104
19104
|
boxSizing: "border-box",
|
|
19105
19105
|
justifyContent: "end",
|
|
@@ -19111,9 +19111,6 @@ var TextFieldContainer = React49.forwardRef(function TextFieldContainer2({
|
|
|
19111
19111
|
borderColor: palette2.error.main,
|
|
19112
19112
|
color: palette2.error.main
|
|
19113
19113
|
},
|
|
19114
|
-
...disabled && {
|
|
19115
|
-
opacity: 0.5
|
|
19116
|
-
},
|
|
19117
19114
|
...highlighted && {
|
|
19118
19115
|
backgroundColor: lighten(effectiveActiveColor, 0.6)
|
|
19119
19116
|
},
|
|
@@ -19243,22 +19240,22 @@ import { Fragment as Fragment22, jsx as jsx101, jsxs as jsxs45 } from "react/jsx
|
|
|
19243
19240
|
var commonInputStylesOptions = {
|
|
19244
19241
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
19245
19242
|
};
|
|
19246
|
-
function getCommonInputStyles({ palette: palette2 }, { disabled, typographyVariant }) {
|
|
19243
|
+
function getCommonInputStyles({ palette: palette2 }, { disabled, typographyVariant, readOnly }) {
|
|
19247
19244
|
return {
|
|
19248
19245
|
...variants[typographyVariant ?? "body2"],
|
|
19249
|
-
backgroundColor: "transparent",
|
|
19246
|
+
backgroundColor: disabled || readOnly ? palette2.grey[50] : "transparent",
|
|
19250
19247
|
display: "block",
|
|
19251
19248
|
width: "0",
|
|
19252
19249
|
minWidth: "64px",
|
|
19253
19250
|
flexGrow: 1,
|
|
19254
19251
|
border: "none",
|
|
19255
|
-
color: disabled ? palette2.grey[
|
|
19252
|
+
color: disabled ? palette2.grey[500] : palette2.grey[900],
|
|
19256
19253
|
boxSizing: "border-box",
|
|
19257
19254
|
outline: "none",
|
|
19258
19255
|
padding: "6px 0",
|
|
19259
19256
|
textOverflow: "ellipsis",
|
|
19260
19257
|
"&::placeholder": {
|
|
19261
|
-
color: palette2.grey[
|
|
19258
|
+
color: palette2.grey[500]
|
|
19262
19259
|
}
|
|
19263
19260
|
};
|
|
19264
19261
|
}
|
|
@@ -19362,7 +19359,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19362
19359
|
isError,
|
|
19363
19360
|
multiline,
|
|
19364
19361
|
sx: {
|
|
19365
|
-
backgroundColor: readOnly ? palette2.grey[50] : "transparent",
|
|
19362
|
+
backgroundColor: disabled || readOnly ? palette2.grey[50] : "transparent",
|
|
19366
19363
|
...sx
|
|
19367
19364
|
},
|
|
19368
19365
|
onClick: onContainerClick,
|
|
@@ -20214,7 +20211,7 @@ var ExtendedTextField = ({
|
|
|
20214
20211
|
InputProps,
|
|
20215
20212
|
error,
|
|
20216
20213
|
...rest
|
|
20217
|
-
}) => /* @__PURE__ */ jsx110(TextField_default, { ...
|
|
20214
|
+
}) => /* @__PURE__ */ jsx110(TextField_default, { ...rest, ...inputProps, readOnly: InputProps.readOnly });
|
|
20218
20215
|
var TimeField = function TimeField2({
|
|
20219
20216
|
onChange,
|
|
20220
20217
|
value,
|
|
@@ -21265,6 +21262,16 @@ var BootstrapInput = styled7(InputBase, {
|
|
|
21265
21262
|
backgroundColor: "white",
|
|
21266
21263
|
cursor: "default",
|
|
21267
21264
|
maxWidth: "100%",
|
|
21265
|
+
"&.Mui-disabled": {
|
|
21266
|
+
backgroundColor: palette2.grey[50],
|
|
21267
|
+
".MuiSelect-select": {
|
|
21268
|
+
color: palette2.grey[500],
|
|
21269
|
+
"-webkit-text-fill-color": palette2.grey[500],
|
|
21270
|
+
span: {
|
|
21271
|
+
color: "inherit !important"
|
|
21272
|
+
}
|
|
21273
|
+
}
|
|
21274
|
+
},
|
|
21268
21275
|
"& .MuiInputBase-input.MuiSelect-select": {
|
|
21269
21276
|
...variants["button-medium"],
|
|
21270
21277
|
padding: "0 36px 0 12px !important",
|
|
@@ -21296,7 +21303,7 @@ var ChevronIcon = ({ disabled = false }) => {
|
|
|
21296
21303
|
sx: {
|
|
21297
21304
|
marginLeft: "-24px !important",
|
|
21298
21305
|
transform: "translateX(-8px) !important",
|
|
21299
|
-
color: disabled ? `${palette2.grey[
|
|
21306
|
+
color: disabled ? `${palette2.grey[500]} !important` : palette2.grey[800]
|
|
21300
21307
|
}
|
|
21301
21308
|
}
|
|
21302
21309
|
);
|