Skip to content

Commit 7228994

Browse files
committed
Updated to mantine v8 and fixed linting errors
1 parent df4a183 commit 7228994

File tree

6 files changed

+43
-35
lines changed

6 files changed

+43
-35
lines changed

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mantine/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@
6464
"@rjsf/core": "^6.0.0-beta",
6565
"@rjsf/utils": "^6.0.0-beta",
6666
"react": ">=18",
67-
"@mantine/core": ">=7",
68-
"@mantine/hooks": ">=7",
69-
"@mantine/dates": ">=7"
67+
"@mantine/core": ">=8",
68+
"@mantine/hooks": ">=8",
69+
"@mantine/dates": ">=8"
7070
},
7171
"devDependencies": {
7272
"@rjsf/core": "^6.0.0-beta.1",
7373
"@rjsf/snapshot-tests": "^6.0.0-beta.1",
7474
"@rjsf/utils": "^6.0.0-beta.1",
7575
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
7676
"eslint": "^8.56.0",
77-
"@mantine/core": ">=7",
78-
"@mantine/hooks": ">=7",
79-
"@mantine/dates": ">=7",
77+
"@mantine/core": ">=8",
78+
"@mantine/hooks": ">=8",
79+
"@mantine/dates": ">=8",
8080
"@restart/hooks": "^0.6.2",
8181
"@restart/ui": "^1.9.4",
8282
"ajv": "^8.17.1",
@@ -109,4 +109,4 @@
109109
"url": "git+https://github.com/rjsf-team/react-jsonschema-form.git"
110110
},
111111
"license": "Apache-2.0"
112-
}
112+
}

packages/mantine/src/widgets/TextareaWidget.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { ReactElement, ChangeEvent, FocusEvent, useCallback } from 'react';
2-
import { StrictRJSFSchema, RJSFSchema, FormContextType, WidgetProps, labelValue } from '@rjsf/utils';
2+
import {
3+
StrictRJSFSchema,
4+
RJSFSchema,
5+
FormContextType,
6+
WidgetProps,
7+
labelValue,
8+
ariaDescribedByIds,
9+
} from '@rjsf/utils';
310
import { Textarea } from '@mantine/core';
411

512
import { cleanupOptions } from '../utils';
@@ -73,6 +80,7 @@ export default function TextareaWidget<
7380
onBlur={handleBlur}
7481
onFocus={handleFocus}
7582
error={rawErrors && rawErrors.length > 0 ? rawErrors.join('\n') : undefined}
83+
aria-describedby={ariaDescribedByIds<T>(id)}
7684
{...themeProps}
7785
/>
7886
);

packages/playground/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
"@chakra-ui/react": "^3.19.1",
4040
"@emotion/react": "^11.14.0",
4141
"@mui/material": "^7.1.0",
42-
"@mantine/core": "^7.17.4",
43-
"@mantine/dates": "^7.17.4",
44-
"@mantine/hooks": "^7.17.4",
42+
"@mantine/core": "^8.1.3",
43+
"@mantine/dates": "^8.1.3",
44+
"@mantine/hooks": "^8.1.3",
4545
"@rjsf/antd": "^6.0.0-beta.12",
4646
"@rjsf/chakra-ui": "^6.0.0-beta.12",
4747
"@rjsf/core": "^6.0.0-beta.12",

packages/playground/src/components/DemoFrame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function DemoFrame(props: DemoFrameProps) {
6262
key: 'css',
6363
prepend: true,
6464
container: instanceRef.current.contentWindow['demo-frame-jss'],
65-
})
65+
}),
6666
);
6767
setContainer(instanceRef.current.contentDocument.body);
6868
setWindow(() => instanceRef.current.contentWindow);

packages/shadcn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@
120120
"tuanphung2308 <[email protected]"
121121
],
122122
"license": "MIT"
123-
}
123+
}

0 commit comments

Comments
 (0)