@react-querybuilder/antd 8.2.0 → 8.3.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.
@@ -3,6 +3,12 @@ import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { ActionWithRulesProps } from "react-querybuilder";
5
5
  type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
6
+ /**
7
+ * @group Props
8
+ */
6
9
  export type AntDActionProps = ActionWithRulesProps & RemoveDataIndexKeys<ComponentPropsWithoutRef<typeof Button>>;
10
+ /**
11
+ * @group Components
12
+ */
7
13
  export declare const AntDActionElement: ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema,...extraProps }: AntDActionProps) => React.JSX.Element;
8
14
  export {};
@@ -2,7 +2,13 @@ import { HolderOutlined } from "@ant-design/icons";
2
2
  import type { ComponentPropsWithRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { DragHandleProps } from "react-querybuilder";
5
+ /**
6
+ * @group Props
7
+ */
5
8
  export type AntDDragHandleProps = DragHandleProps & {
6
9
  label?: any
7
10
  } & ComponentPropsWithRef<typeof HolderOutlined>;
11
+ /**
12
+ * @group Components
13
+ */
8
14
  export declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
@@ -2,5 +2,11 @@ import { Switch } from "antd";
2
2
  import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { NotToggleProps } from "react-querybuilder";
5
+ /**
6
+ * @group Props
7
+ */
5
8
  export type AntDNotToggleProps = NotToggleProps & ComponentPropsWithoutRef<typeof Switch>;
9
+ /**
10
+ * @group Components
11
+ */
6
12
  export declare const AntDNotToggle: ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup,...extraProps }: AntDNotToggleProps) => React.JSX.Element;
@@ -1,3 +1,6 @@
1
1
  import * as React from "react";
2
2
  import type { ShiftActionsProps } from "react-querybuilder";
3
+ /**
4
+ * @group Components
5
+ */
3
6
  export declare const AntDShiftActions: ({ shiftUp, shiftDown, shiftUpDisabled, shiftDownDisabled, disabled, className, labels, titles, testID }: ShiftActionsProps) => React.JSX.Element;
@@ -1,7 +1,12 @@
1
1
  import * as React from "react";
2
2
  import type { ValueEditorProps } from "react-querybuilder";
3
- type AntDValueEditorProps = ValueEditorProps & {
3
+ /**
4
+ * @group Props
5
+ */
6
+ export type AntDValueEditorProps = ValueEditorProps & {
4
7
  extraProps?: Record<string, any>
5
8
  };
9
+ /**
10
+ * @group Components
11
+ */
6
12
  export declare const AntDValueEditor: (allProps: AntDValueEditorProps) => React.JSX.Element | null;
7
- export {};
@@ -2,5 +2,11 @@ import { Select } from "antd";
2
2
  import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { VersatileSelectorProps } from "react-querybuilder";
5
+ /**
6
+ * @group Props
7
+ */
5
8
  export type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, "onChange" | "defaultValue">;
9
+ /**
10
+ * @group Components
11
+ */
6
12
  export declare const AntDValueSelector: ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema,...extraProps }: AntDValueSelectorProps) => React.JSX.Element;
@@ -5,6 +5,15 @@ export * from "./AntDNotToggle";
5
5
  export * from "./AntDShiftActions";
6
6
  export * from "./AntDValueEditor";
7
7
  export * from "./AntDValueSelector";
8
+ /**
9
+ * @group Props
10
+ */
8
11
  export declare const antdControlElements: ControlElementsProp<FullField, string>;
12
+ /**
13
+ * @group Props
14
+ */
9
15
  export declare const antdTranslations: Partial<Translations>;
16
+ /**
17
+ * @group Components
18
+ */
10
19
  export declare const QueryBuilderAntD: QueryBuilderContextProvider;
@@ -3,6 +3,12 @@ import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { ActionWithRulesProps } from "react-querybuilder";
5
5
  type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
6
+ /**
7
+ * @group Props
8
+ */
6
9
  export type AntDActionProps = ActionWithRulesProps & RemoveDataIndexKeys<ComponentPropsWithoutRef<typeof Button>>;
10
+ /**
11
+ * @group Components
12
+ */
7
13
  export declare const AntDActionElement: ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema,...extraProps }: AntDActionProps) => React.JSX.Element;
8
14
  export {};
@@ -2,7 +2,13 @@ import { HolderOutlined } from "@ant-design/icons";
2
2
  import type { ComponentPropsWithRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { DragHandleProps } from "react-querybuilder";
5
+ /**
6
+ * @group Props
7
+ */
5
8
  export type AntDDragHandleProps = DragHandleProps & {
6
9
  label?: any
7
10
  } & ComponentPropsWithRef<typeof HolderOutlined>;
11
+ /**
12
+ * @group Components
13
+ */
8
14
  export declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
@@ -2,5 +2,11 @@ import { Switch } from "antd";
2
2
  import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { NotToggleProps } from "react-querybuilder";
5
+ /**
6
+ * @group Props
7
+ */
5
8
  export type AntDNotToggleProps = NotToggleProps & ComponentPropsWithoutRef<typeof Switch>;
9
+ /**
10
+ * @group Components
11
+ */
6
12
  export declare const AntDNotToggle: ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup,...extraProps }: AntDNotToggleProps) => React.JSX.Element;
@@ -1,3 +1,6 @@
1
1
  import * as React from "react";
2
2
  import type { ShiftActionsProps } from "react-querybuilder";
3
+ /**
4
+ * @group Components
5
+ */
3
6
  export declare const AntDShiftActions: ({ shiftUp, shiftDown, shiftUpDisabled, shiftDownDisabled, disabled, className, labels, titles, testID }: ShiftActionsProps) => React.JSX.Element;
@@ -1,7 +1,12 @@
1
1
  import * as React from "react";
2
2
  import type { ValueEditorProps } from "react-querybuilder";
3
- type AntDValueEditorProps = ValueEditorProps & {
3
+ /**
4
+ * @group Props
5
+ */
6
+ export type AntDValueEditorProps = ValueEditorProps & {
4
7
  extraProps?: Record<string, any>
5
8
  };
9
+ /**
10
+ * @group Components
11
+ */
6
12
  export declare const AntDValueEditor: (allProps: AntDValueEditorProps) => React.JSX.Element | null;
7
- export {};
@@ -2,5 +2,11 @@ import { Select } from "antd";
2
2
  import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { VersatileSelectorProps } from "react-querybuilder";
5
+ /**
6
+ * @group Props
7
+ */
5
8
  export type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, "onChange" | "defaultValue">;
9
+ /**
10
+ * @group Components
11
+ */
6
12
  export declare const AntDValueSelector: ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema,...extraProps }: AntDValueSelectorProps) => React.JSX.Element;
@@ -5,6 +5,15 @@ export * from "./AntDNotToggle.mjs";
5
5
  export * from "./AntDShiftActions.mjs";
6
6
  export * from "./AntDValueEditor.mjs";
7
7
  export * from "./AntDValueSelector.mjs";
8
+ /**
9
+ * @group Props
10
+ */
8
11
  export declare const antdControlElements: ControlElementsProp<FullField, string>;
12
+ /**
13
+ * @group Props
14
+ */
9
15
  export declare const antdTranslations: Partial<Translations>;
16
+ /**
17
+ * @group Components
18
+ */
10
19
  export declare const QueryBuilderAntD: QueryBuilderContextProvider;
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": "8.2.0",
4
+ "version": "8.3.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -52,27 +52,27 @@
52
52
  "typecheck:watch": "tsc --noEmit --watch"
53
53
  },
54
54
  "devDependencies": {
55
- "@ant-design/icons": "^5.6.0",
55
+ "@ant-design/icons": "^5.6.1",
56
56
  "@ant-design/v5-patch-for-react-19": "^1.0.3",
57
57
  "@testing-library/dom": "^10.4.0",
58
58
  "@testing-library/react": "^16.2.0",
59
- "@types/react": "^19.0.8",
59
+ "@types/react": "^19.0.10",
60
60
  "@vitejs/plugin-react": "^4.3.4",
61
- "antd": "^5.23.3",
61
+ "antd": "^5.24.2",
62
62
  "dayjs": "^1.11.13",
63
63
  "react": "^19.0.0",
64
64
  "react-dom": "^19.0.0",
65
- "react-querybuilder": "8.2.0",
65
+ "react-querybuilder": "8.3.1",
66
66
  "rollup-plugin-visualizer": "^5.14.0",
67
67
  "typescript": "^5.7.3",
68
- "vite": "^6.0.11"
68
+ "vite": "^6.2.0"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@ant-design/icons": ">=5",
72
72
  "antd": ">=5.11.0",
73
73
  "dayjs": ">=1",
74
74
  "react": ">=18",
75
- "react-querybuilder": "8.2.0"
75
+ "react-querybuilder": "8.3.1"
76
76
  },
77
- "gitHead": "d4fc2257a39912408e1f3a66d3bf345b232b89dd"
77
+ "gitHead": "02e97fb95b7734acee6e9c5490bcb7546bafa5c2"
78
78
  }