@flozy/editor 10.7.5 → 10.7.6

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.
@@ -164,8 +164,8 @@ export default function Select(props) {
164
164
  avatar: /*#__PURE__*/_jsx(AvatarIcon, {
165
165
  option: option,
166
166
  avatar: optionAvatar
167
- }),
168
- deleteIcon: /*#__PURE__*/_jsx(CloseIcon, {})
167
+ })
168
+ // deleteIcon={<CloseIcon />}
169
169
  })
170
170
  }, key);
171
171
  },
@@ -210,14 +210,25 @@ export default function Select(props) {
210
210
  maxWidth: '150px',
211
211
  border: "none",
212
212
  "& .MuiChip-label": {
213
- paddingLeft: "12px !important",
214
- paddingRight: disabled ? "12px !important" : ""
213
+ // paddingLeft: "12px !important",
214
+ // paddingRight: disabled ? "12px !important" : "",
215
+ maxWidth: '100px'
216
+ },
217
+ "& .MuiChip-deleteIcon": {
218
+ '& path': {
219
+ stroke: '#0F172A'
220
+ }
215
221
  }
216
222
  },
217
223
  avatar: /*#__PURE__*/_jsx(AvatarIcon, {
218
224
  option: option,
219
225
  avatar: optionAvatar
220
226
  }),
227
+ onDelete: !disabled ? () => {
228
+ const newValue = [...value];
229
+ newValue.splice(index, 1);
230
+ onChange(newValue);
231
+ } : undefined,
221
232
  deleteIcon: /*#__PURE__*/_jsx(CloseIcon, {
222
233
  style: {
223
234
  cursor: "pointer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "10.7.5",
3
+ "version": "10.7.6",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"