@react-querybuilder/antd 4.3.0 → 4.4.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/dist/index.es.js CHANGED
@@ -32,6 +32,7 @@ var __objRest = (source, exclude) => {
32
32
  import { Button, Switch, Select, Radio, Checkbox, Input, TimePicker, DatePicker } from "antd";
33
33
  import require$$0, { forwardRef, useMemo, useEffect } from "react";
34
34
  import { HolderOutlined } from "@ant-design/icons";
35
+ import { isOptionGroupArray } from "react-querybuilder";
35
36
  var jsxRuntime = { exports: {} };
36
37
  var reactJsxRuntime_production_min = {};
37
38
  /**
@@ -107,7 +108,6 @@ const AntDDragHandle = forwardRef((_c, dragRef) => {
107
108
  className,
108
109
  title,
109
110
  testID: _testID,
110
- ref: _ref,
111
111
  level: _level,
112
112
  path: _path,
113
113
  label: _label,
@@ -118,7 +118,6 @@ const AntDDragHandle = forwardRef((_c, dragRef) => {
118
118
  "className",
119
119
  "title",
120
120
  "testID",
121
- "ref",
122
121
  "level",
123
122
  "path",
124
123
  "label",
@@ -140,14 +139,22 @@ const AntDNotToggle = (_e) => {
140
139
  label,
141
140
  checked,
142
141
  title,
143
- disabled
142
+ disabled,
143
+ path: _path,
144
+ context: _context,
145
+ validation: _validation,
146
+ testID: _testID
144
147
  } = _f, extraProps = __objRest(_f, [
145
148
  "className",
146
149
  "handleOnChange",
147
150
  "label",
148
151
  "checked",
149
152
  "title",
150
- "disabled"
153
+ "disabled",
154
+ "path",
155
+ "context",
156
+ "validation",
157
+ "testID"
151
158
  ]);
152
159
  return /* @__PURE__ */ jsx(Switch, __spreadValues({
153
160
  title,
@@ -3857,7 +3864,6 @@ const {
3857
3864
  OptGroup,
3858
3865
  Option
3859
3866
  } = Select;
3860
- const isOptionGroupArray = (arr) => Array.isArray(arr) && arr.length > 0 && "options" in arr[0];
3861
3867
  const toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ jsx(OptGroup, {
3862
3868
  label: og.label,
3863
3869
  children: og.options.map((opt) => /* @__PURE__ */ jsx(Option, {