Skip to content

Commit 6adc77d

Browse files
committed
Merge branch 'develop' into main
2 parents 5e0732e + c045339 commit 6adc77d

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

packages/.eslintrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"parser": "@babel/eslint-parser",
33
"root": true,
44
"extends": [
5-
"eslint:recommended"
5+
"eslint:recommended",
6+
"plugin:react-hooks/recommended"
67
],
78
"settings": {
89
"react": {
@@ -72,7 +73,8 @@
7273
"eslint:recommended",
7374
"plugin:react/recommended",
7475
"plugin:@typescript-eslint/eslint-recommended",
75-
"plugin:@typescript-eslint/recommended"
76+
"plugin:@typescript-eslint/recommended",
77+
"plugin:react-hooks/recommended"
7678
],
7779
"globals": {
7880
"process": true

packages/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Config } from '@jest/types'
22

33
const packages: string[] = ['material-color', 'material-colorful']
44

5-
const testMatchesLint: string[] = []
5+
const testMatchesLint: string[] = ['material-color', 'material-colorful']
66

77
packages.forEach(pkg => {
88
testMatchesLint.push(...[
@@ -19,6 +19,7 @@ const base: Partial<Config.InitialOptions> = {
1919
},*/
2020
moduleNameMapper: {
2121
'^@ui-schema/material-color(.*)$': '<rootDir>/material-color/src$1',
22+
'^@ui-schema/material-colorful(.*)$': '<rootDir>/material-colorful/src$1',
2223
},
2324
moduleFileExtensions: [
2425
'ts',

packages/material-colorful/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ui-schema/material-colorful",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "React color pickers as MUI widgets for UI-Schema - using react-colorful.",
55
"homepage": "https://ui-schema.bemit.codes/docs/material-color/material-color",
66
"author": {

packages/material-colorful/src/WidgetColorful/WidgetColorful.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const WidgetColorful = <T extends AnyColor, P extends WidgetProps = Widge
4444
borderColor: valid ? palette.divider : palette.error.main,
4545
width: pickerWidth || '100%',
4646
height: pickerHeight,
47-
}), [palette, pickerWidth, pickerHeight])
47+
}), [palette, pickerWidth, pickerHeight, valid])
4848

4949
const showValueText = schema?.getIn(['view', 'showValueText']) as boolean
5050
return <>

0 commit comments

Comments
 (0)