@sphereon/ui-components.ssi-react 0.4.1-unstable.86 → 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,22 +1,23 @@
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 = 'var(--color-aqua-500)', 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
  };
11
12
  const getAdornmentElement = (props) => {
12
13
  return _jsx(MuiColorInputButton, { ...props, sx: {
13
- width: 'w-[46px]',
14
- height: 'w-[90px]',
15
- borderRadius: 'var(--border-radius-3)',
16
- border: '1px solid var(--color-grey-300)'
14
+ width: 46,
15
+ height: 30,
16
+ borderRadius: '6px',
17
+ border: `1px solid ${elementColors.lightGrey}`
17
18
  } });
18
19
  };
19
- return (_jsx(MuiColorInput, { className: "flex flex-grow", format: format, value: data, onChange: onValueChange, isAlphaHidden: isAlphaHidden, Adornment: getAdornmentElement }));
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);
@@ -216,12 +216,6 @@
216
216
  .aspect-square {
217
217
  aspect-ratio: 1 / 1;
218
218
  }
219
- .w-\[46px\] {
220
- width: 46px;
221
- }
222
- .w-\[90px\] {
223
- width: 90px;
224
- }
225
219
  .w-\[var\(--button-width\)\] {
226
220
  width: var(--button-width);
227
221
  }
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.86+728cd63",
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.86+728cd63",
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": "728cd631c79783d0310869062591a8c773ed984f"
75
+ "gitHead": "4aca76e22d2de645e0c207f7c279937c76954de5"
76
76
  }