@sphereon/ui-components.ssi-react 0.4.1-unstable.87 → 0.4.1-unstable.88

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.
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { optionIs, rankWith } from '@jsonforms/core';
3
3
  import { withJsonFormsControlProps } from '@jsonforms/react';
4
+ import { elementColors } from '@sphereon/ui-components.core';
4
5
  import { MuiColorInput, MuiColorInputButton } from 'mui-color-input';
5
6
  import { JsonFormsCustomControlKey } from '../../../../types';
6
7
  const ColorPickerControl = (props) => {
7
- const { data = '#7276f7', handleChange, path, format = 'hex', isAlphaHidden = true } = props;
8
+ const { data = elementColors.purple, handleChange, path, format = 'hex', isAlphaHidden = true } = props;
8
9
  const onValueChange = async (value) => {
9
10
  handleChange(path, value);
10
11
  };
@@ -13,10 +14,10 @@ const ColorPickerControl = (props) => {
13
14
  width: 46,
14
15
  height: 30,
15
16
  borderRadius: '6px',
16
- border: '1px solid #C4C4C4'
17
+ border: `1px solid ${elementColors.lightGrey}`
17
18
  } });
18
19
  };
19
- return (_jsx(MuiColorInput, { format: format, value: data, onChange: onValueChange, isAlphaHidden: isAlphaHidden, Adornment: getAdornmentElement, style: { display: 'flex', flexGrow: 1 } }));
20
+ return (_jsx(MuiColorInput, { format: format, value: data, onChange: onValueChange, isAlphaHidden: isAlphaHidden, Adornment: getAdornmentElement, style: { display: 'flex' } }));
20
21
  };
21
22
  export const colorPickerControlTester = rankWith(4, optionIs('type', JsonFormsCustomControlKey.COLOR_PICKER));
22
23
  export default withJsonFormsControlProps(ColorPickerControl);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react",
3
3
  "private": false,
4
- "version": "0.4.1-unstable.87+af4242c",
4
+ "version": "0.4.1-unstable.88+4aca76e",
5
5
  "description": "SSI UI components for React",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -50,7 +50,7 @@
50
50
  "@mui/x-date-pickers": "^8.18.0",
51
51
  "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.45.94",
52
52
  "@sphereon/ssi-types": "0.34.1-feature.SSISDK.45.94",
53
- "@sphereon/ui-components.core": "0.4.1-unstable.87+af4242c",
53
+ "@sphereon/ui-components.core": "0.4.1-unstable.88+4aca76e",
54
54
  "@tanstack/react-table": "^8.9.3",
55
55
  "ajv": "^8.17.1",
56
56
  "ajv-formats": "^3.0.1",
@@ -72,5 +72,5 @@
72
72
  "peerDependencies": {
73
73
  "react": ">= 18"
74
74
  },
75
- "gitHead": "af4242ca6c803d538119e4707a088de70517de32"
75
+ "gitHead": "4aca76e22d2de645e0c207f7c279937c76954de5"
76
76
  }