@acp-autoform/mantine 3.0.0 → 3.1.1

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.
package/README.md CHANGED
@@ -8,4 +8,4 @@ This package provides a Mantine integration for AutoForm.
8
8
  npm install @acp-autoform/mantine
9
9
  ```
10
10
 
11
- For more information on how to use this package, see the [AutoForm documentation](https://autoform.vantezzen.io/docs/react/getting-started).
11
+ For more information on how to use this package, see the [AutoForm documentation](https://autoform-acp-docs.vercel.app/docs/react/getting-started).
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as _acp_autoform_react from '@acp-autoform/react';
3
2
  import { FieldValues, ExtendableAutoFormProps } from '@acp-autoform/react';
4
3
  import React from 'react';
@@ -16,6 +15,6 @@ declare const MantineAutoFormFieldComponents: {
16
15
  readonly select: React.FC<_acp_autoform_react.AutoFormFieldProps>;
17
16
  };
18
17
  type FieldTypes = keyof typeof MantineAutoFormFieldComponents;
19
- declare function AutoForm<T extends Record<string, any>>({ theme, uiComponents, formComponents, ...props }: AutoFormProps<T>): react_jsx_runtime.JSX.Element;
18
+ declare function AutoForm<T extends Record<string, any>>({ theme, uiComponents, formComponents, ...props }: AutoFormProps<T>): React.JSX.Element;
20
19
 
21
20
  export { AutoForm, type AutoFormProps, type FieldTypes, MantineAutoFormFieldComponents };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as _acp_autoform_react from '@acp-autoform/react';
3
2
  import { FieldValues, ExtendableAutoFormProps } from '@acp-autoform/react';
4
3
  import React from 'react';
@@ -16,6 +15,6 @@ declare const MantineAutoFormFieldComponents: {
16
15
  readonly select: React.FC<_acp_autoform_react.AutoFormFieldProps>;
17
16
  };
18
17
  type FieldTypes = keyof typeof MantineAutoFormFieldComponents;
19
- declare function AutoForm<T extends Record<string, any>>({ theme, uiComponents, formComponents, ...props }: AutoFormProps<T>): react_jsx_runtime.JSX.Element;
18
+ declare function AutoForm<T extends Record<string, any>>({ theme, uiComponents, formComponents, ...props }: AutoFormProps<T>): React.JSX.Element;
20
19
 
21
20
  export { AutoForm, type AutoFormProps, type FieldTypes, MantineAutoFormFieldComponents };
package/dist/index.js CHANGED
@@ -343,7 +343,7 @@ function AutoForm({
343
343
  formComponents,
344
344
  ...props
345
345
  }) {
346
- const ThemedForm = () => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
346
+ const form = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
347
347
  import_react2.AutoForm,
348
348
  {
349
349
  ...props,
@@ -351,7 +351,7 @@ function AutoForm({
351
351
  formComponents: { ...MantineAutoFormFieldComponents, ...formComponents }
352
352
  }
353
353
  );
354
- return theme ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_core11.MantineProvider, { theme, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ThemedForm, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ThemedForm, {});
354
+ return theme ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_core11.MantineProvider, { theme, children: form }) : form;
355
355
  }
356
356
  // Annotate the CommonJS export names for ESM import in node:
357
357
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -308,7 +308,7 @@ function AutoForm({
308
308
  formComponents,
309
309
  ...props
310
310
  }) {
311
- const ThemedForm = () => /* @__PURE__ */ jsx13(
311
+ const form = /* @__PURE__ */ jsx13(
312
312
  BaseAutoForm,
313
313
  {
314
314
  ...props,
@@ -316,7 +316,7 @@ function AutoForm({
316
316
  formComponents: { ...MantineAutoFormFieldComponents, ...formComponents }
317
317
  }
318
318
  );
319
- return theme ? /* @__PURE__ */ jsx13(MantineProvider, { theme, children: /* @__PURE__ */ jsx13(ThemedForm, {}) }) : /* @__PURE__ */ jsx13(ThemedForm, {});
319
+ return theme ? /* @__PURE__ */ jsx13(MantineProvider, { theme, children: form }) : form;
320
320
  }
321
321
  export {
322
322
  AutoForm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acp-autoform/mantine",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",