@team-monolith/cds 1.43.3 → 1.44.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.
@@ -65,12 +65,7 @@ export default function SegmentedInput(props) {
65
65
  ? "activeDanger"
66
66
  : focusedIndex === i
67
67
  ? "activePrimary"
68
- : "default", css: isCorrect === false &&
69
- css `
70
- input {
71
- color: ${theme.color.foreground.danger};
72
- }
73
- `, inputProps: {
68
+ : "default", inputProps: {
74
69
  readOnly,
75
70
  onFocus: () => {
76
71
  var _a, _b;
@@ -80,6 +75,9 @@ export default function SegmentedInput(props) {
80
75
  (_a = hiddenRef.current) === null || _a === void 0 ? void 0 : _a.focus();
81
76
  (_b = hiddenRef.current) === null || _b === void 0 ? void 0 : _b.setSelectionRange(i, i);
82
77
  },
78
+ color: isCorrect === false
79
+ ? theme.color.foreground.danger
80
+ : undefined,
83
81
  }, value: splitedValues[i] || "", onChange: () => { } }, i))) })), _jsx(InputMarker, {})] }), _jsx(Text, { children: placeholder })] }));
84
82
  }
85
83
  const Container = styled.div `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.43.3",
3
+ "version": "1.44.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -19,7 +19,7 @@
19
19
  "react-dom": "^18.2.0",
20
20
  "react-hook-form": "^7.48.2",
21
21
  "remixicon": "^3.4.0",
22
- "typescript": "^4.5.5",
22
+ "typescript": "^4.9.5",
23
23
  "uid": "^2.0.2"
24
24
  },
25
25
  "files": [