@pnkx-lib/ui 1.9.513 → 1.9.514

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.
Files changed (39) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{GenericUploadModal-Dhv5_mhq.js → GenericUploadModal-CkhTggnS.js} +575 -637
  3. package/es/chunks/{bundle-mjs-BME7zF0Z.js → bundle-mjs-BBFHkixS.js} +1 -1
  4. package/es/chunks/{index.esm-Dr5ZHcf7.js → index.esm-Ds4t-z37.js} +3 -6
  5. package/es/chunks/{toArray-2LkvUaha.js → toArray-DzhjhY0s.js} +81 -68
  6. package/es/fields/CascaderField.js +1 -1
  7. package/es/fields/Checkbox.js +1 -1
  8. package/es/fields/DatePicker.js +1 -1
  9. package/es/fields/DateRangePicker.js +1 -1
  10. package/es/fields/Input.js +1 -1
  11. package/es/fields/InputRangePicker.js +1 -1
  12. package/es/fields/PnkxField.js +1 -1
  13. package/es/fields/Select.js +1 -1
  14. package/es/fields/SliderRanger.js +1 -1
  15. package/es/fields/SliderSingle.js +1 -1
  16. package/es/fields/Switch.js +1 -1
  17. package/es/fields/Textarea.js +1 -1
  18. package/es/fields/TimePicker.js +1 -1
  19. package/es/fields/TimeRangePicker.js +1 -1
  20. package/es/fields/TinyMCE.js +17 -36
  21. package/es/index.js +1 -1
  22. package/es/ui/Button.js +1 -1
  23. package/es/ui/Cascader.js +1 -1
  24. package/es/ui/CategoryStatus.js +1 -1
  25. package/es/ui/Container.js +1 -1
  26. package/es/ui/Descriptions.js +1 -1
  27. package/es/ui/GenericUploadModal.js +2 -2
  28. package/es/ui/Label.js +1 -1
  29. package/es/ui/Layout.js +30 -33
  30. package/es/ui/Modal.js +1 -1
  31. package/es/ui/SearchFilterForm.js +1 -1
  32. package/es/ui/SelectSingleTable.js +16 -3
  33. package/es/ui/SelectTable.js +1 -1
  34. package/es/ui/Sidebar/index.js +1 -1
  35. package/es/ui/Tabs.js +2 -2
  36. package/es/ui/UploadComponent.js +1 -1
  37. package/es/ui/UploadImage.js +1 -1
  38. package/es/ui/index.js +2061 -2166
  39. package/package.json +1 -1
@@ -1281,7 +1281,7 @@ var eventPropTypes = {
1281
1281
  onScriptsLoad: propTypesExports.func,
1282
1282
  onScriptsLoadError: propTypesExports.func,
1283
1283
  };
1284
- var EditorPropTypes = __assign$2({ apiKey: propTypesExports.string, licenseKey: propTypesExports.string, id: propTypesExports.string, inline: propTypesExports.bool, init: propTypesExports.object, initialValue: propTypesExports.string, onEditorChange: propTypesExports.func, value: propTypesExports.string, tagName: propTypesExports.string, tabIndex: propTypesExports.number, cloudChannel: propTypesExports.string, plugins: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), toolbar: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), disabled: propTypesExports.bool, readonly: propTypesExports.bool, textareaName: propTypesExports.string, tinymceScriptSrc: propTypesExports.oneOfType([
1284
+ var EditorPropTypes = __assign$2({ apiKey: propTypesExports.string, licenseKey: propTypesExports.string, id: propTypesExports.string, inline: propTypesExports.bool, init: propTypesExports.object, initialValue: propTypesExports.string, onEditorChange: propTypesExports.func, value: propTypesExports.string, tagName: propTypesExports.string, tabIndex: propTypesExports.number, cloudChannel: propTypesExports.string, plugins: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), toolbar: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), disabled: propTypesExports.bool, textareaName: propTypesExports.string, tinymceScriptSrc: propTypesExports.oneOfType([
1285
1285
  propTypesExports.string,
1286
1286
  propTypesExports.arrayOf(propTypesExports.string),
1287
1287
  propTypesExports.arrayOf(propTypesExports.shape({
@@ -1295,11 +1295,6 @@ var EditorPropTypes = __assign$2({ apiKey: propTypesExports.string, licenseKey:
1295
1295
  delay: propTypesExports.number
1296
1296
  }) }, eventPropTypes);
1297
1297
 
1298
- var getTinymce = function (view) {
1299
- var global = view;
1300
- return global && global.tinymce ? global.tinymce : null;
1301
- };
1302
-
1303
1298
  var isFunction = function (x) { return typeof x === 'function'; };
1304
1299
  var isEventProp = function (name) { return name in eventPropTypes; };
1305
1300
  var eventAttrToEventName = function (attrName) { return attrName.substr(2); };
@@ -1369,14 +1364,6 @@ var setMode = function (editor, mode) {
1369
1364
  }
1370
1365
  }
1371
1366
  };
1372
- var getTinymceOrError = function (view) {
1373
- var tinymce = getTinymce(view);
1374
- if (!tinymce) {
1375
- throw new Error('tinymce should have been loaded into global scope');
1376
- }
1377
- return tinymce;
1378
- };
1379
- var isDisabledOptionSupported = function (editor) { return editor.options && editor.options.isRegistered('disabled'); };
1380
1367
 
1381
1368
  var __assign$1 = (undefined && undefined.__assign) || function () {
1382
1369
  __assign$1 = Object.assign || function(t) {
@@ -1521,6 +1508,11 @@ var createScriptLoader = function () {
1521
1508
  };
1522
1509
  var ScriptLoader = createScriptLoader();
1523
1510
 
1511
+ var getTinymce = function (view) {
1512
+ var global = view;
1513
+ return global && global.tinymce ? global.tinymce : null;
1514
+ };
1515
+
1524
1516
  var __extends = (undefined && undefined.__extends) || (function () {
1525
1517
  var extendStatics = function (d, b) {
1526
1518
  extendStatics = Object.setPrototypeOf ||
@@ -1641,8 +1633,11 @@ var Editor = /** @class */ (function (_super) {
1641
1633
  }
1642
1634
  return;
1643
1635
  }
1644
- var tinymce = getTinymceOrError(_this.view);
1645
- var finalInit = __assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target, disabled: _this.props.disabled, readonly: _this.props.readonly, inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
1636
+ var tinymce = getTinymce(_this.view);
1637
+ if (!tinymce) {
1638
+ throw new Error('tinymce should have been loaded into global scope');
1639
+ }
1640
+ var finalInit = __assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target, readonly: _this.props.disabled, inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
1646
1641
  _this.editor = editor;
1647
1642
  _this.bindHandlers({});
1648
1643
  // When running in inline mode the editor gets the initial value
@@ -1659,16 +1654,8 @@ var Editor = /** @class */ (function (_super) {
1659
1654
  if (_this.props.init && isFunction(_this.props.init.setup)) {
1660
1655
  _this.props.init.setup(editor);
1661
1656
  }
1662
- if (_this.props.disabled) {
1663
- if (isDisabledOptionSupported(_this.editor)) {
1664
- _this.editor.options.set('disabled', _this.props.disabled);
1665
- }
1666
- else {
1667
- _this.editor.mode.set('readonly');
1668
- }
1669
- }
1670
1657
  }, init_instance_callback: function (editor) {
1671
- var _a;
1658
+ var _a, _b;
1672
1659
  // check for changes that happened since tinymce.init() was called
1673
1660
  var initialValue = _this.getInitialValue();
1674
1661
  _this.currentContent = (_a = _this.currentContent) !== null && _a !== void 0 ? _a : editor.getContent();
@@ -1680,6 +1667,8 @@ var Editor = /** @class */ (function (_super) {
1680
1667
  editor.undoManager.add();
1681
1668
  editor.setDirty(false);
1682
1669
  }
1670
+ var disabled = (_b = _this.props.disabled) !== null && _b !== void 0 ? _b : false;
1671
+ setMode(_this.editor, disabled ? 'readonly' : 'design');
1683
1672
  // ensure existing init_instance_callback is called
1684
1673
  if (_this.props.init && isFunction(_this.props.init.init_instance_callback)) {
1685
1674
  _this.props.init.init_instance_callback(editor);
@@ -1757,17 +1746,9 @@ var Editor = /** @class */ (function (_super) {
1757
1746
  }
1758
1747
  });
1759
1748
  }
1760
- if (this.props.readonly !== prevProps.readonly) {
1761
- var readonly = (_b = this.props.readonly) !== null && _b !== void 0 ? _b : false;
1762
- setMode(this.editor, readonly ? 'readonly' : 'design');
1763
- }
1764
1749
  if (this.props.disabled !== prevProps.disabled) {
1765
- if (isDisabledOptionSupported(this.editor)) {
1766
- this.editor.options.set('disabled', this.props.disabled);
1767
- }
1768
- else {
1769
- setMode(this.editor, this.props.disabled ? 'readonly' : 'design');
1770
- }
1750
+ var disabled = (_b = this.props.disabled) !== null && _b !== void 0 ? _b : false;
1751
+ setMode(this.editor, disabled ? 'readonly' : 'design');
1771
1752
  }
1772
1753
  }
1773
1754
  }
@@ -1898,7 +1879,7 @@ var Editor = /** @class */ (function (_super) {
1898
1879
  };
1899
1880
  Editor.propTypes = EditorPropTypes;
1900
1881
  Editor.defaultProps = {
1901
- cloudChannel: '8',
1882
+ cloudChannel: '7',
1902
1883
  };
1903
1884
  return Editor;
1904
1885
  }(React.Component));
package/es/index.js CHANGED
@@ -66,7 +66,7 @@ export { ViewPdf } from './ui/ViewPdf.js';
66
66
  export { Sidebar } from './ui/Sidebar/index.js';
67
67
  export { SelectTable } from './ui/SelectTable.js';
68
68
  export { SelectSingleTable } from './ui/SelectSingleTable.js';
69
- export { G as GenericUploadModal } from './chunks/GenericUploadModal-Dhv5_mhq.js';
69
+ export { G as GenericUploadModal } from './chunks/GenericUploadModal-CkhTggnS.js';
70
70
  export { Descriptions } from './ui/Descriptions.js';
71
71
  export { Input } from './fields/Input.js';
72
72
  export { PnkxField } from './fields/PnkxField.js';
package/es/ui/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Button as Button$1 } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
4
4
 
5
5
  const Button = (props) => {
6
6
  const { onClick, ...restProps } = props;
package/es/ui/Cascader.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Cascader } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
4
4
 
5
5
  const CascaderField = (props) => {
6
6
  const {
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
2
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
3
 
4
4
  var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
5
5
  CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DRAFT"] = 0] = "DRAFT";
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
2
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
3
 
4
4
  const Container = ({
5
5
  children,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Descriptions as Descriptions$1 } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
4
4
 
5
5
  const Descriptions = (props) => {
6
6
  const { className } = props;
@@ -1,7 +1,7 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'antd';
3
- export { G as GenericUploadModal } from '../chunks/GenericUploadModal-Dhv5_mhq.js';
4
- import '../chunks/index.esm-Dr5ZHcf7.js';
3
+ export { G as GenericUploadModal } from '../chunks/GenericUploadModal-CkhTggnS.js';
4
+ import '../chunks/index.esm-Ds4t-z37.js';
5
5
  import 'react';
6
6
  import '@pnkx-lib/core';
7
7
  import '../chunks/InboxOutlined-BBuIJe6u.js';
package/es/ui/Label.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
2
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
3
3
  import { Typography } from './Typography.js';
4
4
 
5
5
  const Label = ({ label, required, classNameLabel, isSubLabel }) => {
package/es/ui/Layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-2LkvUaha.js';
2
+ import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-DzhjhY0s.js';
3
3
  import * as React from 'react';
4
4
  import { useContext, useState, useEffect, useRef } from 'react';
5
5
  import { c as classNames } from '../chunks/index-BLRvgOFN.js';
@@ -60,23 +60,6 @@ const LayoutContext = /*#__PURE__*/React.createContext({
60
60
  }
61
61
  });
62
62
 
63
- const addMediaQueryListener = (mql, handler) => {
64
- // Don't delete here, please keep the code compatible
65
- if (typeof (mql === null || mql === void 0 ? void 0 : mql.addEventListener) !== 'undefined') {
66
- mql.addEventListener('change', handler);
67
- } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.addListener) !== 'undefined') {
68
- mql.addListener(handler);
69
- }
70
- };
71
- const removeMediaQueryListener = (mql, handler) => {
72
- // Don't delete here, please keep the code compatible
73
- if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeEventListener) !== 'undefined') {
74
- mql.removeEventListener('change', handler);
75
- } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeListener) !== 'undefined') {
76
- mql.removeListener(handler);
77
- }
78
- };
79
-
80
63
  const genLayoutStyle = token => {
81
64
  const {
82
65
  antCls,
@@ -185,7 +168,7 @@ const prepareComponentToken = token => {
185
168
  };
186
169
  // ============================== Export ==============================
187
170
  const DEPRECATED_TOKENS = [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']];
188
- const useStyle$1 = genStyleHooks('Layout', genLayoutStyle, prepareComponentToken, {
171
+ const useStyle$1 = genStyleHooks('Layout', token => [genLayoutStyle(token)], prepareComponentToken, {
189
172
  deprecatedTokens: DEPRECATED_TOKENS
190
173
  });
191
174
 
@@ -296,7 +279,7 @@ const genSiderStyle = token => {
296
279
  }
297
280
  };
298
281
  };
299
- const useStyle = genStyleHooks(['Layout', 'Sider'], genSiderStyle, prepareComponentToken, {
282
+ const useStyle = genStyleHooks(['Layout', 'Sider'], token => [genSiderStyle(token)], prepareComponentToken, {
300
283
  deprecatedTokens: DEPRECATED_TOKENS
301
284
  });
302
285
 
@@ -320,7 +303,8 @@ const isNumeric = value => !Number.isNaN(Number.parseFloat(value)) && isFinite(v
320
303
  const SiderContext = /*#__PURE__*/React.createContext({});
321
304
  const generateId = (() => {
322
305
  let i = 0;
323
- return (prefix = '') => {
306
+ return function () {
307
+ let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
324
308
  i += 1;
325
309
  return `${prefix}${i}`;
326
310
  };
@@ -378,17 +362,29 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
378
362
  };
379
363
  useEffect(() => {
380
364
  function responsiveHandler(mql) {
381
- var _a;
382
- return (_a = responsiveHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(responsiveHandlerRef, mql);
365
+ return responsiveHandlerRef.current(mql);
383
366
  }
384
367
  let mql;
385
- if (typeof (window === null || window === void 0 ? void 0 : window.matchMedia) !== 'undefined' && breakpoint && breakpoint in dimensionMaxMap) {
386
- mql = window.matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
387
- addMediaQueryListener(mql, responsiveHandler);
388
- responsiveHandler(mql);
368
+ if (typeof window !== 'undefined') {
369
+ const {
370
+ matchMedia
371
+ } = window;
372
+ if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
373
+ mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
374
+ try {
375
+ mql.addEventListener('change', responsiveHandler);
376
+ } catch (_a) {
377
+ mql.addListener(responsiveHandler);
378
+ }
379
+ responsiveHandler(mql);
380
+ }
389
381
  }
390
382
  return () => {
391
- removeMediaQueryListener(mql, responsiveHandler);
383
+ try {
384
+ mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
385
+ } catch (_a) {
386
+ mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
387
+ }
392
388
  };
393
389
  }, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.
394
390
  useEffect(() => {
@@ -472,11 +468,12 @@ var __rest = undefined && undefined.__rest || function (s, e) {
472
468
  }
473
469
  return t;
474
470
  };
475
- function generator({
476
- suffixCls,
477
- tagName,
478
- displayName
479
- }) {
471
+ function generator(_ref) {
472
+ let {
473
+ suffixCls,
474
+ tagName,
475
+ displayName
476
+ } = _ref;
480
477
  return BasicComponent => {
481
478
  const Adapter = /*#__PURE__*/React.forwardRef((props, ref) => (/*#__PURE__*/React.createElement(BasicComponent, Object.assign({
482
479
  ref: ref,
package/es/ui/Modal.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Modal as Modal$1 } from 'antd';
3
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
4
4
 
5
5
  const widthMap = {
6
6
  xs: 400,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { u as useForm } from '../chunks/index.esm-Dr5ZHcf7.js';
2
+ import { u as useForm } from '../chunks/index.esm-Ds4t-z37.js';
3
3
  import { Button } from './Button.js';
4
4
  import { I as Icon, _ as _extends } from '../chunks/AntdIcon-Bve8mGNz.js';
5
5
  import * as React from 'react';
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Select, Table } from 'antd';
3
- import { useState, useCallback } from 'react';
4
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
3
+ import { useState, useRef, useCallback } from 'react';
4
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
5
5
  import { get, isEmpty } from 'lodash';
6
6
  import { ErrorMessage } from './ErrorMessage.js';
7
7
  import { Label } from './Label.js';
@@ -37,6 +37,7 @@ const SelectSingleTable = ({
37
37
  const [internalLoading, setInternalLoading] = useState(false);
38
38
  const [searchValue, setSearchValue] = useState("");
39
39
  const [isClearing, setIsClearing] = useState(false);
40
+ const selectRef = useRef(null);
40
41
  const { name, value, onChange } = field || {};
41
42
  const { touchedFields, errors, isSubmitted } = formState || {};
42
43
  const isTouched = get(touchedFields, name);
@@ -91,7 +92,14 @@ const SelectSingleTable = ({
91
92
  onSelectionChange(key, record);
92
93
  }
93
94
  }
95
+ setSearchValue("");
94
96
  setOpen(false);
97
+ setIsClearing(false);
98
+ setTimeout(() => {
99
+ if (selectRef.current) {
100
+ selectRef.current.blur();
101
+ }
102
+ }, 50);
95
103
  };
96
104
  const getDisplayValue = useCallback(() => {
97
105
  if (isEmpty(value) && !selectedRow) {
@@ -128,9 +136,13 @@ const SelectSingleTable = ({
128
136
  };
129
137
  const handleDropdownVisibleChange = (visible) => {
130
138
  if (isClearing && !visible) {
139
+ setIsClearing(false);
131
140
  return;
132
141
  }
133
142
  setOpen(visible);
143
+ if (!visible) {
144
+ setSearchValue("");
145
+ }
134
146
  };
135
147
  const dropdownRender = () => /* @__PURE__ */ jsx("div", { className: "select-single-table-dropdown", children: /* @__PURE__ */ jsx(
136
148
  "div",
@@ -176,6 +188,7 @@ const SelectSingleTable = ({
176
188
  /* @__PURE__ */ jsx(
177
189
  Select,
178
190
  {
191
+ ref: selectRef,
179
192
  ...selectProps,
180
193
  open,
181
194
  onDropdownVisibleChange: handleDropdownVisibleChange,
@@ -186,7 +199,7 @@ const SelectSingleTable = ({
186
199
  onClear: handleClear,
187
200
  placeholder: searchPlaceholder,
188
201
  filterOption: false,
189
- searchValue,
202
+ searchValue: open ? searchValue : "",
190
203
  allowClear: true
191
204
  }
192
205
  ),
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Select, Table } from 'antd';
3
3
  import { useState, useCallback } from 'react';
4
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
4
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
5
5
  import { get } from 'lodash';
6
6
  import { ErrorMessage } from './ErrorMessage.js';
7
7
  import { Label } from './Label.js';
@@ -5,7 +5,7 @@ import { useLocation, useNavigate } from 'react-router';
5
5
  import { Flex, AutoComplete, Divider, ConfigProvider, Dropdown } from 'antd';
6
6
  import { Layout } from '../Layout.js';
7
7
  import { Input } from '../../fields/Input.js';
8
- import { t as twMerge } from '../../chunks/bundle-mjs-BME7zF0Z.js';
8
+ import { t as twMerge } from '../../chunks/bundle-mjs-BBFHkixS.js';
9
9
  import { R as RefIcon$2 } from '../../chunks/DownOutlined-O2mPkovb.js';
10
10
  import { I as Icon, _ as _extends } from '../../chunks/AntdIcon-Bve8mGNz.js';
11
11
 
package/es/ui/Tabs.js CHANGED
@@ -29,8 +29,8 @@ const identity = (arg) => arg;
29
29
  function useStore(api, selector = identity) {
30
30
  const slice = React__default.useSyncExternalStore(
31
31
  api.subscribe,
32
- React__default.useCallback(() => selector(api.getState()), [api, selector]),
33
- React__default.useCallback(() => selector(api.getInitialState()), [api, selector])
32
+ () => selector(api.getState()),
33
+ () => selector(api.getInitialState())
34
34
  );
35
35
  React__default.useDebugValue(slice);
36
36
  return slice;
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Upload, Image, Tooltip } from 'antd';
3
3
  import { Spin } from './Spin.js';
4
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
4
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
5
5
  import { Label } from './Label.js';
6
6
  import { R as RefIcon } from '../chunks/CloseOutlined-CZUJ_3tW.js';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { C as Controller } from '../chunks/index.esm-Dr5ZHcf7.js';
2
+ import { C as Controller } from '../chunks/index.esm-Ds4t-z37.js';
3
3
  import { UploadComponent } from './UploadComponent.js';
4
4
 
5
5
  const UploadImage = ({