@veracity/vui 1.9.1 → 1.9.2

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.
@@ -61,8 +61,8 @@ exports.InputBase = core_1.styled.divBox `
61
61
  width: 100%;
62
62
 
63
63
  &[aria-disabled='true'] {
64
- background-color: disabled.bg;
65
- color: disabled.color;
64
+ background-color: disabled .bg;
65
+ color: disabled .color;
66
66
  cursor: not-allowed;
67
67
  }
68
68
  `;
@@ -78,7 +78,7 @@ exports.Input = (0, core_1.vui)((props, ref) => {
78
78
  const [valueInternal, setValueInternal] = (0, react_1.useState)(defaultValue);
79
79
  const states = Object.assign(Object.assign({}, consts_1.inputStateMapping), stateMapping);
80
80
  const computedColorScheme = (0, utils_1.filterUndefined)({
81
- colorScheme: (_a = colorScheme !== null && colorScheme !== void 0 ? colorScheme : (isInvalid ? consts_1.redColor : undefined)) !== null && _a !== void 0 ? _a : (_b = states[state]) === null || _b === void 0 ? void 0 : _b.colorScheme
81
+ colorScheme: (_a = colorScheme !== null && colorScheme !== void 0 ? colorScheme : (isInvalid ? 'red' : undefined)) !== null && _a !== void 0 ? _a : (_b = states[state]) === null || _b === void 0 ? void 0 : _b.colorScheme
82
82
  });
83
83
  const styles = (0, core_1.useStyleConfig)('Input', Object.assign(Object.assign({}, computedColorScheme), props));
84
84
  const context = (0, react_1.useMemo)(() => (0, utils_1.filterUndefined)({ colorScheme, disabled, size, variant }), [colorScheme, disabled, size, variant]);
@@ -21,8 +21,8 @@ export const InputBase = styled.divBox `
21
21
  width: 100%;
22
22
 
23
23
  &[aria-disabled='true'] {
24
- background-color: disabled.bg;
25
- color: disabled.color;
24
+ background-color: disabled .bg;
25
+ color: disabled .color;
26
26
  cursor: not-allowed;
27
27
  }
28
28
  `;
@@ -37,7 +37,7 @@ export const Input = vui((props, ref) => {
37
37
  const [valueInternal, setValueInternal] = useState(defaultValue);
38
38
  const states = { ...inputStateMapping, ...stateMapping };
39
39
  const computedColorScheme = filterUndefined({
40
- colorScheme: colorScheme ?? (isInvalid ? redColor : undefined) ?? states[state]?.colorScheme
40
+ colorScheme: colorScheme ?? (isInvalid ? 'red' : undefined) ?? states[state]?.colorScheme
41
41
  });
42
42
  const styles = useStyleConfig('Input', { ...computedColorScheme, ...props });
43
43
  const context = useMemo(() => filterUndefined({ colorScheme, disabled, size, variant }), [colorScheme, disabled, size, variant]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veracity/vui",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/cjs/index.js",
@@ -24,8 +24,8 @@ export const InputBase = styled.divBox`
24
24
  width: 100%;
25
25
 
26
26
  &[aria-disabled='true'] {
27
- background-color: disabled.bg;
28
- color: disabled.color;
27
+ background-color: disabled .bg;
28
+ color: disabled .color;
29
29
  cursor: not-allowed;
30
30
  }
31
31
  `
@@ -81,7 +81,7 @@ export const Input = vui<'div', InputProps>((props, ref) => {
81
81
  const [valueInternal, setValueInternal] = useState(defaultValue)
82
82
  const states = { ...inputStateMapping, ...stateMapping }
83
83
  const computedColorScheme = filterUndefined({
84
- colorScheme: colorScheme ?? (isInvalid ? redColor : undefined) ?? states[state]?.colorScheme
84
+ colorScheme: colorScheme ?? (isInvalid ? 'red' : undefined) ?? states[state]?.colorScheme
85
85
  })
86
86
 
87
87
  const styles = useStyleConfig('Input', { ...computedColorScheme, ...props })