@react-querybuilder/antd 4.1.0 → 4.2.0

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ActionProps } from 'react-querybuilder';
3
- declare const AntDActionElement: {
4
- ({ className, handleOnClick, label, title, disabled }: ActionProps): JSX.Element;
3
+ export declare const AntDActionElement: {
4
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, }: ActionProps): JSX.Element;
5
5
  displayName: string;
6
6
  };
7
- export default AntDActionElement;
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import type { DragHandleProps } from 'react-querybuilder';
3
- declare const AntDDragHandle: import("react").ForwardRefExoticComponent<DragHandleProps & import("react").RefAttributes<HTMLSpanElement>>;
4
- export default AntDDragHandle;
3
+ export declare const AntDDragHandle: import("react").ForwardRefExoticComponent<DragHandleProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { NotToggleProps } from 'react-querybuilder';
3
- declare const AntDNotToggle: {
3
+ export declare const AntDNotToggle: {
4
4
  ({ className, handleOnChange, label, checked, title, disabled, }: NotToggleProps): JSX.Element;
5
5
  displayName: string;
6
6
  };
7
- export default AntDNotToggle;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ValueEditorProps } from 'react-querybuilder';
3
- declare const AntDValueEditor: {
3
+ export declare const AntDValueEditor: {
4
4
  ({ fieldData, operator, value, handleOnChange, title, className, type, inputType, values, disabled, ...props }: ValueEditorProps): JSX.Element | null;
5
5
  displayName: string;
6
6
  };
7
- export default AntDValueEditor;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ValueSelectorProps } from 'react-querybuilder';
3
- declare const AntDValueSelector: {
4
- ({ className, handleOnChange, options, value, title, disabled, }: ValueSelectorProps): JSX.Element;
3
+ export declare const AntDValueSelector: {
4
+ ({ className, handleOnChange, options, value, title, disabled, multiple, }: ValueSelectorProps): JSX.Element;
5
5
  displayName: string;
6
6
  };
7
- export default AntDValueSelector;
@@ -1,5 +1,8 @@
1
- export { default as AntDActionElement } from './AntDActionElement';
2
- export { default as AntDDragHandle } from './AntDDragHandle';
3
- export { default as AntDNotToggle } from './AntDNotToggle';
4
- export { default as AntDValueEditor } from './AntDValueEditor';
5
- export { default as AntDValueSelector } from './AntDValueSelector';
1
+ import type { Controls } from 'react-querybuilder';
2
+ import { AntDActionElement } from './AntDActionElement';
3
+ import { AntDDragHandle } from './AntDDragHandle';
4
+ import { AntDNotToggle } from './AntDNotToggle';
5
+ import { AntDValueEditor } from './AntDValueEditor';
6
+ import { AntDValueSelector } from './AntDValueSelector';
7
+ export declare const antdControlElements: Partial<Controls>;
8
+ export { AntDActionElement, AntDDragHandle, AntDNotToggle, AntDValueEditor, AntDValueSelector };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-querybuilder/antd",
3
3
  "description": "Custom Ant Design components for react-querybuilder",
4
- "version": "4.1.0",
4
+ "version": "4.2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -13,20 +13,22 @@
13
13
  ],
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "https://github.com/react-querybuilder/react-querybuilder"
16
+ "url": "https://github.com/react-querybuilder/react-querybuilder.git",
17
+ "directory": "packages/antd"
17
18
  },
18
19
  "license": "MIT",
19
20
  "homepage": "https://react-querybuilder.js.org/",
20
21
  "scripts": {
21
- "build": "vite build && tsc --emitDeclarationOnly"
22
+ "build": "vite build && tsc --emitDeclarationOnly",
23
+ "type-check": "tsc --noEmit",
24
+ "type-check:watch": "yarn type-check --watch"
22
25
  },
23
26
  "devDependencies": {
24
27
  "@ant-design/icons": "^4.7.0",
25
- "@react-querybuilder/compat": "^4.1.0",
26
28
  "@types/react": "^17.0.0",
27
- "antd": "^4.10.3",
29
+ "antd": "^4.17.3",
28
30
  "react": "^17.0.1",
29
- "react-querybuilder": "^4.1.0",
31
+ "react-querybuilder": "^4.2.0",
30
32
  "typescript": "^4.5.0"
31
33
  },
32
34
  "peerDependencies": {
@@ -35,5 +37,5 @@
35
37
  "react": ">=16.8.0",
36
38
  "react-querybuilder": ">=4"
37
39
  },
38
- "gitHead": "b73987bada7b64b5df892f92ceb8691a488d096c"
40
+ "gitHead": "eac79b859bfd36754f0fa4d72f55bb959357dc5d"
39
41
  }