Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
elbakerino committed Jun 26, 2022
2 parents 5e0732e + c045339 commit 6adc77d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parser": "@babel/eslint-parser",
"root": true,
"extends": [
"eslint:recommended"
"eslint:recommended",
"plugin:react-hooks/recommended"
],
"settings": {
"react": {
Expand Down Expand Up @@ -72,7 +73,8 @@
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"globals": {
"process": true
Expand Down
3 changes: 2 additions & 1 deletion packages/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Config } from '@jest/types'

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

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

packages.forEach(pkg => {
testMatchesLint.push(...[
Expand All @@ -19,6 +19,7 @@ const base: Partial<Config.InitialOptions> = {
},*/
moduleNameMapper: {
'^@ui-schema/material-color(.*)$': '<rootDir>/material-color/src$1',
'^@ui-schema/material-colorful(.*)$': '<rootDir>/material-colorful/src$1',
},
moduleFileExtensions: [
'ts',
Expand Down
2 changes: 1 addition & 1 deletion packages/material-colorful/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ui-schema/material-colorful",
"version": "0.0.1",
"version": "0.0.2",
"description": "React color pickers as MUI widgets for UI-Schema - using react-colorful.",
"homepage": "https://ui-schema.bemit.codes/docs/material-color/material-color",
"author": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const WidgetColorful = <T extends AnyColor, P extends WidgetProps = Widge
borderColor: valid ? palette.divider : palette.error.main,
width: pickerWidth || '100%',
height: pickerHeight,
}), [palette, pickerWidth, pickerHeight])
}), [palette, pickerWidth, pickerHeight, valid])

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

0 comments on commit 6adc77d

Please sign in to comment.