xmirror-components 1.0.39 → 1.0.40-alpha.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.
Files changed (65) hide show
  1. package/build/dist/index.cjs +41 -109
  2. package/build/dist/index.mjs +4229 -10397
  3. package/build/es/components/AntdApp/index.d.ts +1 -2
  4. package/build/es/components/AntdApp/index.js +2 -5
  5. package/build/es/components/CheckboxValue/index.d.ts +1 -1
  6. package/build/es/components/CheckboxValue/index.js +2 -2
  7. package/build/es/components/ConfigProvider/index.d.ts +1 -1
  8. package/build/es/components/ConfigProvider/index.js +3 -3
  9. package/build/es/components/GlobalLoading/index.d.ts +1 -2
  10. package/build/es/components/GlobalLoading/index.js +8 -19
  11. package/build/es/components/IconButton/index.js +5 -6
  12. package/build/es/components/IconFont/index.js +5 -5
  13. package/build/es/components/IntlProvider/index.d.ts +1 -1
  14. package/build/es/components/IntlProvider/index.js +3 -2
  15. package/build/es/components/SearchArea/Item/index.d.ts +2 -2
  16. package/build/es/components/SearchArea/Item/index.js +4 -2
  17. package/build/es/components/SearchArea/ToggleButton/index.d.ts +1 -2
  18. package/build/es/components/SearchArea/ToggleButton/index.js +3 -4
  19. package/build/es/components/SearchArea/index.js +13 -24
  20. package/build/es/components/SwitchValue/index.d.ts +1 -1
  21. package/build/es/components/SwitchValue/index.js +2 -2
  22. package/build/es/components/Table/Footer/index.d.ts +1 -2
  23. package/build/es/components/Table/Footer/index.js +10 -20
  24. package/build/es/components/Table/PopoverSetColumns/index.d.ts +1 -2
  25. package/build/es/components/Table/PopoverSetColumns/index.js +9 -12
  26. package/build/es/components/Table/PopoverSetColumns/styles.d.ts +0 -4
  27. package/build/es/components/Table/PopoverSetColumns/styles.js +2 -3
  28. package/build/es/components/Table/ResizableColumns/index.js +4 -5
  29. package/build/es/components/Table/index.js +8 -11
  30. package/build/es/components/TagGroup/index.d.ts +40 -0
  31. package/build/es/components/TagGroup/index.js +33 -0
  32. package/build/es/hooks/useTable/index.js +30 -14
  33. package/build/lib/components/AntdApp/index.js +2 -5
  34. package/build/lib/components/CheckboxValue/index.js +2 -5
  35. package/build/lib/components/ConfigProvider/index.js +3 -3
  36. package/build/lib/components/GlobalLoading/index.js +8 -52
  37. package/build/lib/components/IconButton/index.js +5 -6
  38. package/build/lib/components/IconFont/index.js +5 -38
  39. package/build/lib/components/IntlProvider/index.js +3 -2
  40. package/build/lib/components/SearchArea/Item/index.js +4 -2
  41. package/build/lib/components/SearchArea/ToggleButton/index.js +3 -37
  42. package/build/lib/components/SearchArea/index.js +13 -57
  43. package/build/lib/components/SwitchValue/index.js +2 -5
  44. package/build/lib/components/Table/Footer/index.js +10 -53
  45. package/build/lib/components/Table/PopoverSetColumns/index.js +9 -45
  46. package/build/lib/components/Table/PopoverSetColumns/styles.js +3 -4
  47. package/build/lib/components/Table/ResizableColumns/index.js +4 -38
  48. package/build/lib/components/Table/index.js +8 -44
  49. package/build/lib/components/TagGroup/index.js +35 -0
  50. package/build/lib/hooks/useTable/index.js +30 -14
  51. package/build/lib/index.d.ts +9 -7
  52. package/build/package.json +9 -7
  53. package/build/types/components/AntdApp/index.d.ts +1 -2
  54. package/build/types/components/CheckboxValue/index.d.ts +1 -1
  55. package/build/types/components/ConfigProvider/index.d.ts +1 -1
  56. package/build/types/components/GlobalLoading/index.d.ts +1 -2
  57. package/build/types/components/IntlProvider/index.d.ts +1 -1
  58. package/build/types/components/SearchArea/Item/index.d.ts +2 -2
  59. package/build/types/components/SearchArea/ToggleButton/index.d.ts +1 -2
  60. package/build/types/components/SwitchValue/index.d.ts +1 -1
  61. package/build/types/components/Table/Footer/index.d.ts +1 -2
  62. package/build/types/components/Table/PopoverSetColumns/index.d.ts +1 -2
  63. package/build/types/components/Table/PopoverSetColumns/styles.d.ts +0 -4
  64. package/build/types/components/TagGroup/index.d.ts +40 -0
  65. package/package.json +9 -7
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { type AppProps } from 'antd';
3
2
  import { type MessageInstance } from 'antd/es/message/interface';
4
3
  import { type NotificationInstance } from 'antd/es/notification/interface';
@@ -9,6 +8,6 @@ declare let notification: NotificationInstance;
9
8
  declare let modal: Omit<ModalStaticFunctions, 'warn'>;
10
9
  declare function Index({ children, config, ...props }: AppProps & {
11
10
  config?: ConfigProviderConfigProps;
12
- }): React.JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
13
12
  export { message, notification, modal };
14
13
  export default Index;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React from 'react';
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { App, message as AntdMessage, notification as AntdNotification, Modal as AntdModal } from 'antd';
25
25
  import GlobalLoading from './../GlobalLoading';
26
26
  import ConfigProvider from './../ConfigProvider';
@@ -37,10 +37,7 @@ function InitApp(_a) {
37
37
  }
38
38
  function Index(_a) {
39
39
  var children = _a.children, config = _a.config, props = __rest(_a, ["children", "config"]);
40
- return (React.createElement(ConfigProvider, { config: config || {} },
41
- React.createElement(App, __assign({}, props),
42
- React.createElement(GlobalLoading, null),
43
- React.createElement(InitApp, null, children))));
40
+ return (_jsx(ConfigProvider, { config: config || {}, children: _jsxs(App, __assign({}, props, { children: [_jsx(GlobalLoading, {}), _jsx(InitApp, { children: children })] })) }));
44
41
  }
45
42
  export { message, notification, modal };
46
43
  export default Index;
@@ -36,5 +36,5 @@ interface CheckboxValueProps<T = any, F = any> extends Omit<React.ComponentProps
36
36
  */
37
37
  children?: React.ReactNode;
38
38
  }
39
- declare const CheckboxValue: <T = any, F = any>({ checked, onChange, trueValue, falseValue, trueLabel, falseLabel, children, ...props }: CheckboxValueProps<T, F>) => React.JSX.Element;
39
+ declare const CheckboxValue: <T = any, F = any>({ checked, onChange, trueValue, falseValue, trueLabel, falseLabel, children, ...props }: CheckboxValueProps<T, F>) => import("react/jsx-runtime").JSX.Element;
40
40
  export default CheckboxValue;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { Checkbox } from 'antd';
25
25
  var CheckboxValue = function (_a) {
26
26
  var checked = _a.checked, onChange = _a.onChange, _b = _a.trueValue, trueValue = _b === void 0 ? true : _b, _c = _a.falseValue, falseValue = _c === void 0 ? false : _c, _d = _a.trueLabel, trueLabel = _d === void 0 ? '' : _d, _e = _a.falseLabel, falseLabel = _e === void 0 ? '' : _e, children = _a.children, props = __rest(_a, ["checked", "onChange", "trueValue", "falseValue", "trueLabel", "falseLabel", "children"]);
@@ -28,6 +28,6 @@ var CheckboxValue = function (_a) {
28
28
  var change = function (e) {
29
29
  onChange === null || onChange === void 0 ? void 0 : onChange(e.target.checked ? trueValue : falseValue, e);
30
30
  };
31
- return (React.createElement(Checkbox, __assign({ checked: _checked, onChange: change }, props), children || (_checked ? trueLabel : falseLabel)));
31
+ return (_jsx(Checkbox, __assign({ checked: _checked, onChange: change }, props, { children: children || (_checked ? trueLabel : falseLabel) })));
32
32
  };
33
33
  export default CheckboxValue;
@@ -6,4 +6,4 @@ interface ConfigProviderProps {
6
6
  children: React.ReactNode;
7
7
  config: ConfigProviderConfigProps;
8
8
  }
9
- export default function ConfigProvider({ children, config }: ConfigProviderProps): React.JSX.Element;
9
+ export default function ConfigProvider({ children, config }: ConfigProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import React from 'react';
13
14
  import IntlProvider from '../IntlProvider';
14
15
  import { messages } from '../../locale';
@@ -46,9 +47,8 @@ export var ConfigContext = React.createContext(baseConfig);
46
47
  export default function ConfigProvider(_a) {
47
48
  var children = _a.children, config = _a.config;
48
49
  var mergeConfig = deepMerge(baseConfig, config);
49
- return (React.createElement(ConfigContext.Provider, { value: mergeConfig },
50
- React.createElement(IntlProvider, { config: {
50
+ return (_jsx(ConfigContext.Provider, { value: mergeConfig, children: _jsx(IntlProvider, { config: {
51
51
  locale: config.locale,
52
52
  messages: messages
53
- } }, children)));
53
+ }, children: children }) }));
54
54
  }
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  declare let setGlobalLoading: (_value: boolean) => void;
3
- declare function GlobalLoading(): React.JSX.Element;
2
+ declare function GlobalLoading(): import("react/jsx-runtime").JSX.Element;
4
3
  export { setGlobalLoading };
5
4
  export default GlobalLoading;
@@ -2,7 +2,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
2
2
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
3
  return cooked;
4
4
  };
5
- import React, { useState, useEffect, useRef } from 'react';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { useState, useEffect, useRef } from 'react';
6
7
  import { CSSTransition } from 'react-transition-group';
7
8
  import styled from '@emotion/styled';
8
9
  import { keyframes } from '@emotion/react';
@@ -35,24 +36,12 @@ function GlobalLoading() {
35
36
  setLoading(value);
36
37
  };
37
38
  }, []);
38
- return (React.createElement(CSSTransition, { in: loading, nodeRef: ref, timeout: 500, classNames: "global-loading-transition", unmountOnExit: true }, function () {
39
- return (React.createElement(GlobalLoadingWrapper, { ref: ref, className: "global-loading" },
40
- React.createElement(LoadingContainer, { className: "global-loading-container" },
41
- React.createElement(Dot, { className: "dot dot-1", size: 15, delay: "0.0s" }),
42
- React.createElement(Dot, { className: "dot dot-2", size: 13, delay: "0.2s" }),
43
- React.createElement(Dot, { className: "dot dot-3", size: 11, delay: "0.4s" }),
44
- React.createElement(Dot, { className: "dot dot-4", size: 9, delay: "0.6s" }),
45
- React.createElement(Dot, { className: "dot dot-5", size: 7, delay: "0.8s" })),
46
- React.createElement("svg", { style: {
47
- visibility: 'hidden',
48
- position: 'absolute'
49
- } },
50
- React.createElement("defs", null,
51
- React.createElement("filter", { id: "goo" },
52
- React.createElement("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "3", result: "blur" }),
53
- React.createElement("feColorMatrix", { in: "blur", type: "matrix", values: "\n 1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 18 -6" }),
54
- React.createElement("feComposite", { in: "SourceGraphic", in2: "goo", operator: "atop" }))))));
55
- }));
39
+ return (_jsx(CSSTransition, { in: loading, nodeRef: ref, timeout: 500, classNames: "global-loading-transition", unmountOnExit: true, children: function () {
40
+ return (_jsxs(GlobalLoadingWrapper, { ref: ref, className: "global-loading", children: [_jsxs(LoadingContainer, { className: "global-loading-container", children: [_jsx(Dot, { className: "dot dot-1", size: 15, delay: "0.0s" }), _jsx(Dot, { className: "dot dot-2", size: 13, delay: "0.2s" }), _jsx(Dot, { className: "dot dot-3", size: 11, delay: "0.4s" }), _jsx(Dot, { className: "dot dot-4", size: 9, delay: "0.6s" }), _jsx(Dot, { className: "dot dot-5", size: 7, delay: "0.8s" })] }), _jsx("svg", { style: {
41
+ visibility: 'hidden',
42
+ position: 'absolute'
43
+ }, children: _jsx("defs", { children: _jsxs("filter", { id: "goo", children: [_jsx("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "3", result: "blur" }), _jsx("feColorMatrix", { in: "blur", type: "matrix", values: "\n 1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 18 -6" }), _jsx("feComposite", { in: "SourceGraphic", in2: "goo", operator: "atop" })] }) }) })] }));
44
+ } }));
56
45
  }
57
46
  export { setGlobalLoading };
58
47
  export default GlobalLoading;
@@ -24,6 +24,7 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  }
25
25
  return t;
26
26
  };
27
+ import { jsx as _jsx } from "react/jsx-runtime";
27
28
  import React, { useContext, forwardRef } from 'react';
28
29
  import { Tooltip, Button } from 'antd';
29
30
  import { noop, isString } from 'lodash-es';
@@ -32,7 +33,7 @@ import IconFont from '../IconFont';
32
33
  import { ConfigContext } from '../ConfigProvider';
33
34
  import styled from '@emotion/styled';
34
35
  // 1. 先用 forwardRef 包裹 antd Button,确保 ref 类型
35
- var BaseButton = React.forwardRef(function (props, ref) { return (React.createElement(Button, __assign({ ref: ref }, props))); });
36
+ var BaseButton = React.forwardRef(function (props, ref) { return (_jsx(Button, __assign({ ref: ref }, props))); });
36
37
  // 2. 用 styled/emotion 包裹 BaseButton
37
38
  var StyledButton = styled(BaseButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &&.icon-button {\n font-size: 18px;\n color: var(--color-primary);\n background-color: transparent;\n border: none;\n box-shadow: initial;\n transition: background-color 0.2s;\n\n &[disabled], &[aria-disabled='true'] {\n color: #9da2a6 !important;\n cursor: not-allowed;\n background-color: transparent;\n }\n\n &:hover, &:active, &:focus {\n background: var(--color-primary-bg);\n }\n }\n"], ["\n &&.icon-button {\n font-size: 18px;\n color: var(--color-primary);\n background-color: transparent;\n border: none;\n box-shadow: initial;\n transition: background-color 0.2s;\n\n &[disabled], &[aria-disabled='true'] {\n color: #9da2a6 !important;\n cursor: not-allowed;\n background-color: transparent;\n }\n\n &:hover, &:active, &:focus {\n background: var(--color-primary-bg);\n }\n }\n"])));
38
39
  var ButtonTooltip = function (_a) {
@@ -41,7 +42,7 @@ var ButtonTooltip = function (_a) {
41
42
  return children;
42
43
  }
43
44
  else {
44
- return (React.createElement(Tooltip, __assign({ title: disabled ? disabledReason || title : title }, attrs), children));
45
+ return (_jsx(Tooltip, __assign({ title: disabled ? disabledReason || title : title }, attrs, { children: children })));
45
46
  }
46
47
  };
47
48
  var IconButton = forwardRef(function (props, ref) {
@@ -49,7 +50,7 @@ var IconButton = forwardRef(function (props, ref) {
49
50
  var Icon = props.icon, _a = props.tooltipDisabled, tooltipDisabled = _a === void 0 ? false : _a, title = props.title, _b = props.hide, hide = _b === void 0 ? false : _b, disabledReason = props.disabledReason, _c = props.onClick, onClick = _c === void 0 ? noop : _c, disabled = props.disabled, _d = props.size, size = _d === void 0 ? iconButton.size || 'small' : _d, _e = props.style, style = _e === void 0 ? {} : _e, className = props.className, _f = props.loading, loading = _f === void 0 ? false : _f, attrs = __rest(props, ["icon", "tooltipDisabled", "title", "hide", "disabledReason", "onClick", "disabled", "size", "style", "className", "loading"]);
50
51
  var createIcon = function () {
51
52
  if (isString(Icon)) {
52
- return React.createElement(IconFont, { type: Icon });
53
+ return _jsx(IconFont, { type: Icon });
53
54
  }
54
55
  else {
55
56
  return Icon;
@@ -59,9 +60,7 @@ var IconButton = forwardRef(function (props, ref) {
59
60
  if (!Icon) {
60
61
  console.warn('Icon props not found');
61
62
  }
62
- return (React.createElement(IconButtonRender, __assign({}, props),
63
- React.createElement(ButtonTooltip, __assign({ tooltipDisabled: tooltipDisabled, hide: hide, disabled: disabled, disabledReason: disabledReason, title: title }, attrs),
64
- React.createElement(StyledButton, { ref: ref, icon: createIcon(), size: size, className: classNames(['icon-button', iconButton.className, className]), disabled: disabled, style: __assign(__assign({}, iconButton.style), style), loading: loading, onClick: onClick }))));
63
+ return (_jsx(IconButtonRender, __assign({}, props, { children: _jsx(ButtonTooltip, __assign({ tooltipDisabled: tooltipDisabled, hide: hide, disabled: disabled, disabledReason: disabledReason, title: title }, attrs, { children: _jsx(StyledButton, { ref: ref, icon: createIcon(), size: size, className: classNames(['icon-button', iconButton.className, className]), disabled: disabled, style: __assign(__assign({}, iconButton.style), style), loading: loading, onClick: onClick }) })) })));
65
64
  });
66
65
  export default IconButton;
67
66
  var templateObject_1;
@@ -20,22 +20,22 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef, useContext } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef, useContext } from 'react';
24
25
  import classNames from 'classnames';
25
26
  import { ConfigContext } from '../ConfigProvider';
26
27
  var IconFont = forwardRef(function (_a, ref) {
27
28
  var _b = _a.type, type = _b === void 0 ? '' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.symbol, symbol = _d === void 0 ? false : _d, style = _a.style, attrs = __rest(_a, ["type", "className", "symbol", "style"]);
28
29
  var iconFont = useContext(ConfigContext).iconFont;
29
30
  if (symbol) {
30
- return (React.createElement("svg", __assign({ className: classNames([
31
+ return (_jsx("svg", __assign({ className: classNames([
31
32
  'iconfont-symbol',
32
33
  iconFont.className || '',
33
34
  type,
34
35
  className,
35
- ]), "aria-hidden": "true", ref: ref, style: __assign(__assign({}, iconFont.style), (style || {})) }, attrs),
36
- React.createElement("use", { xlinkHref: "#".concat(type) })));
36
+ ]), "aria-hidden": "true", ref: ref, style: __assign(__assign({}, iconFont.style), (style || {})) }, attrs, { children: _jsx("use", { xlinkHref: "#".concat(type) }) })));
37
37
  }
38
- return (React.createElement("i", __assign({ className: classNames([
38
+ return (_jsx("i", __assign({ className: classNames([
39
39
  'iconfont',
40
40
  iconFont.className || '',
41
41
  type,
@@ -8,5 +8,5 @@ interface IntlProviderProps {
8
8
  children: React.ReactNode;
9
9
  config: IntlProviderConfigProps;
10
10
  }
11
- export default function IntlProvider({ children, config }: IntlProviderProps): React.JSX.Element;
11
+ export default function IntlProvider({ children, config }: IntlProviderProps): import("react/jsx-runtime").JSX.Element;
12
12
  export { FormattedMessage, useIntl };
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { messages } from '../../locale';
3
4
  import FormattedMessage from './FormattedMessage';
@@ -9,9 +10,9 @@ var baseConfig = {
9
10
  export var IntlContext = React.createContext(baseConfig);
10
11
  export default function IntlProvider(_a) {
11
12
  var children = _a.children, config = _a.config;
12
- return (React.createElement(IntlContext.Provider, { value: {
13
+ return (_jsx(IntlContext.Provider, { value: {
13
14
  locale: config.locale,
14
15
  messages: messages
15
- } }, children));
16
+ }, children: children }));
16
17
  }
17
18
  export { FormattedMessage, useIntl };
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
1
  import { type FormItemProps } from 'antd';
3
2
  /**
4
3
  * 筛选项
5
4
  * @param props
5
+ * @param children
6
6
  * @return {JSX.Element}
7
7
  * @constructor
8
8
  */
9
- declare function Index({ children, ...props }: FormItemProps): React.JSX.Element;
9
+ declare function Index({ children, ...props }: FormItemProps): import("react/jsx-runtime").JSX.Element;
10
10
  export default Index;
@@ -24,13 +24,14 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  }
25
25
  return t;
26
26
  };
27
- import React from 'react';
27
+ import { jsx as _jsx } from "react/jsx-runtime";
28
28
  import { Form } from 'antd';
29
29
  import styled from '@emotion/styled';
30
30
  var StyledFormItem = styled(Form.Item)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"], ["\n .search-item__label {\n position: relative;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n height: 32px;\n font-size: 14px;\n color: rgba(0, 0, 0, 85%);\n\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ':';\n }\n }\n\n .search-item__content {\n flex: 1;\n }\n"
31
31
  /**
32
32
  * 筛选项
33
33
  * @param props
34
+ * @param children
34
35
  * @return {JSX.Element}
35
36
  * @constructor
36
37
  */
@@ -38,12 +39,13 @@ var StyledFormItem = styled(Form.Item)(templateObject_1 || (templateObject_1 = _
38
39
  /**
39
40
  * 筛选项
40
41
  * @param props
42
+ * @param children
41
43
  * @return {JSX.Element}
42
44
  * @constructor
43
45
  */
44
46
  function Index(_a) {
45
47
  var children = _a.children, props = __rest(_a, ["children"]);
46
- return (React.createElement(StyledFormItem, __assign({}, props), children));
48
+ return (_jsx(StyledFormItem, __assign({}, props, { children: children })));
47
49
  }
48
50
  export default Index;
49
51
  var templateObject_1;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface ToggleButtonProps {
3
2
  panel: {
4
3
  show: boolean;
@@ -11,5 +10,5 @@ interface ToggleButtonProps {
11
10
  * @return {JSX.Element}
12
11
  * @constructor
13
12
  */
14
- declare function ToggleButton({ panel, onChange }: ToggleButtonProps): React.JSX.Element;
13
+ declare function ToggleButton({ panel, onChange }: ToggleButtonProps): import("react/jsx-runtime").JSX.Element;
15
14
  export default ToggleButton;
@@ -2,7 +2,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
2
2
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
3
  return cooked;
4
4
  };
5
- import React, { useCallback, useMemo } from 'react';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { useCallback, useMemo } from 'react';
6
7
  import { Button } from 'antd';
7
8
  import { CaretUpOutlined } from '@ant-design/icons';
8
9
  import styled from '@emotion/styled';
@@ -24,9 +25,7 @@ function ToggleButton(_a) {
24
25
  panel === null || panel === void 0 ? void 0 : panel.toggle();
25
26
  onChange === null || onChange === void 0 ? void 0 : onChange(!(panel === null || panel === void 0 ? void 0 : panel.show));
26
27
  }, [panel]);
27
- return (React.createElement(Button, { type: "link", style: { paddingLeft: 0, paddingRight: 0 }, onClick: toggle },
28
- React.createElement(FormattedMessage, { id: "comgponent.searcharea.togle", defaultMessage: '高级搜索' }),
29
- React.createElement(AnimatedIcon, { show: show })));
28
+ return (_jsxs(Button, { type: "link", style: { paddingLeft: 0, paddingRight: 0 }, onClick: toggle, children: [_jsx(FormattedMessage, { id: "comgponent.searcharea.togle", defaultMessage: '高级搜索' }), _jsx(AnimatedIcon, { show: show })] }));
30
29
  }
31
30
  export default ToggleButton;
32
31
  var templateObject_1;
@@ -24,7 +24,8 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  }
25
25
  return t;
26
26
  };
27
- import React, { useMemo, useState, useCallback } from 'react';
27
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
+ import { useMemo, useState, useCallback } from 'react';
28
29
  import { Form, Row, Col, Button } from 'antd';
29
30
  import { UpOutlined } from '@ant-design/icons';
30
31
  import styled from '@emotion/styled';
@@ -94,29 +95,17 @@ function InternalSearchArea(_a) {
94
95
  toggle();
95
96
  onClose === null || onClose === void 0 ? void 0 : onClose();
96
97
  };
97
- return (React.createElement(AnimatedContainer, { show: _show },
98
- React.createElement(StyledForm, __assign({ form: form, labelCol: { flex: '70px' }, wrapperCol: { flex: '1', style: { maxWidth: '280px' } } }, props),
99
- React.createElement(Row, __assign({ gutter: 10, justify: "space-between" }, row),
100
- Array.isArray(children)
101
- ? children.map(function (item) {
102
- return (React.createElement(Col, __assign({ span: 6, xxl: 6,
103
- xl: 8,
104
- lg: 12,
105
- xs: 24, key: item.props.name || item.key || item.props.label }, col), item));
106
- })
107
- : children,
108
- React.createElement(Col, { flex: 1 },
109
- React.createElement(SearchAreaHandle, null,
110
- React.createElement(Button, { loading: loading, type: "primary", onClick: submit },
111
- React.createElement(FormattedMessage, { id: "component.searcharea.submit", defaultMessage: '筛选' })),
112
- React.createElement(Button, { loading: loading, onClick: reset },
113
- React.createElement(FormattedMessage, { id: "component.searcharea.reset", defaultMessage: '重置' })),
114
- React.createElement(Button, { type: "link", style: {
115
- paddingLeft: 0,
116
- paddingRight: 0
117
- }, onClick: close },
118
- React.createElement(FormattedMessage, { id: "component.searcharea.close", defaultMessage: '收起' }),
119
- React.createElement(UpOutlined, null))))))));
98
+ return (_jsx(AnimatedContainer, { show: _show, children: _jsx(StyledForm, __assign({ form: form, labelCol: { flex: '70px' }, wrapperCol: { flex: '1', style: { maxWidth: '280px' } } }, props, { children: _jsxs(Row, __assign({ gutter: 10, justify: "space-between" }, row, { children: [Array.isArray(children)
99
+ ? children.map(function (item) {
100
+ return (_jsx(Col, __assign({ span: 6, xxl: 6,
101
+ xl: 8,
102
+ lg: 12,
103
+ xs: 24 }, col, { children: item }), item.props.name || item.key || item.props.label));
104
+ })
105
+ : children, _jsx(Col, { flex: 1, children: _jsxs(SearchAreaHandle, { children: [_jsx(Button, { loading: loading, type: "primary", onClick: submit, children: _jsx(FormattedMessage, { id: "component.searcharea.submit", defaultMessage: '筛选' }) }), _jsx(Button, { loading: loading, onClick: reset, children: _jsx(FormattedMessage, { id: "component.searcharea.reset", defaultMessage: '重置' }) }), _jsxs(Button, { type: "link", style: {
106
+ paddingLeft: 0,
107
+ paddingRight: 0
108
+ }, onClick: close, children: [_jsx(FormattedMessage, { id: "component.searcharea.close", defaultMessage: '收起' }), _jsx(UpOutlined, {})] })] }) })] })) })) }));
120
109
  }
121
110
  var SearchArea = InternalSearchArea;
122
111
  function useSearchArea(defaultShow) {
@@ -26,5 +26,5 @@ interface SwitchValueProps<T = boolean | string | number, F = boolean | string |
26
26
  /**
27
27
  * Switch 可自定义 value
28
28
  */
29
- declare const Index: ({ checked, onChange, trueValue, falseValue, ...props }: SwitchValueProps) => React.JSX.Element;
29
+ declare const Index: ({ checked, onChange, trueValue, falseValue, ...props }: SwitchValueProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export default Index;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { Switch } from 'antd';
25
25
  /**
26
26
  * Switch 可自定义 value
@@ -31,6 +31,6 @@ var Index = function (_a) {
31
31
  var change = function (checked, event) {
32
32
  onChange === null || onChange === void 0 ? void 0 : onChange(checked ? trueValue : falseValue, event);
33
33
  };
34
- return (React.createElement(Switch, __assign({ checked: _checked, onChange: change }, props)));
34
+ return (_jsx(Switch, __assign({ checked: _checked, onChange: change }, props)));
35
35
  };
36
36
  export default Index;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { TableComponentProps } from '../types';
3
- declare function Index(props: TableComponentProps): React.JSX.Element;
2
+ declare function Index(props: TableComponentProps): import("react/jsx-runtime").JSX.Element;
4
3
  export default Index;
@@ -1,4 +1,5 @@
1
- import React, { useMemo, useRef } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useMemo, useRef } from 'react';
2
3
  import { FormattedMessage } from '../../IntlProvider';
3
4
  import { Checkbox, Col } from 'antd';
4
5
  import { CSSTransition } from 'react-transition-group';
@@ -57,7 +58,7 @@ function Index(props) {
57
58
  var indeterminate = useMemo(function () {
58
59
  var _a;
59
60
  var selectedRowKeys = (_a = rowSelection.selectedRowKeys) !== null && _a !== void 0 ? _a : [];
60
- return !!(selectedRowKeys.length > 0 && selectedRowKeys.length < optionalNum);
61
+ return (selectedRowKeys.length > 0 && selectedRowKeys.length < optionalNum);
61
62
  }, [rowSelection.selectedRowKeys, optionalNum]);
62
63
  /**
63
64
  * checked 选中状态
@@ -66,24 +67,13 @@ function Index(props) {
66
67
  var checked = useMemo(function () {
67
68
  var _a;
68
69
  var selectedRowKeys = (_a = rowSelection.selectedRowKeys) !== null && _a !== void 0 ? _a : [];
69
- return !!(selectedRowKeys.length > 0 && selectedRowKeys.length === optionalNum);
70
+ return (selectedRowKeys.length > 0 && selectedRowKeys.length === optionalNum);
70
71
  }, [rowSelection.selectedRowKeys, optionalNum]);
71
- return (React.createElement(React.Fragment, null,
72
- React.createElement(Global, { styles: globalStyles }),
73
- React.createElement(TableFooterWrapper, null,
74
- React.createElement(CSSTransition, { in: Boolean(props.rowSelection && props.selectionPopover && (checked || indeterminate)), nodeRef: transitionNodeRef, classNames: zoomStyles, unmountOnExit: true, timeout: 300 }, function () {
75
- var _a, _b;
76
- return (React.createElement(StyledRow, { ref: transitionNodeRef, justify: "space-between" },
77
- React.createElement(Col, { style: { display: 'flex', alignItems: 'center' } },
78
- React.createElement(Checkbox, { checked: checked, indeterminate: indeterminate, onChange: changeCheckAll },
79
- React.createElement(FormattedMessage, { id: "component.table.selected", defaultMessage: '已选{length}条', values: {
80
- length: (_b = (_a = rowSelection.selectedRowKeys) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0
81
- } }))),
82
- React.createElement(Col, { style: { display: 'flex', alignItems: 'center' } },
83
- selectionPopover,
84
- React.createElement(CloseButton, { onClick: function () { changeCheckAll({ target: { checked: false } }); } },
85
- React.createElement(CloseOutlined, null)))));
86
- }),
87
- pagination && (React.createElement(TableFooterTotal, null, pagination.showTotal ? pagination.showTotal((_a = pagination.total) !== null && _a !== void 0 ? _a : 0, [0, 0]) : null)))));
72
+ return (_jsxs(_Fragment, { children: [_jsx(Global, { styles: globalStyles }), _jsxs(TableFooterWrapper, { children: [_jsx(CSSTransition, { in: Boolean(props.rowSelection && props.selectionPopover && (checked || indeterminate)), nodeRef: transitionNodeRef, classNames: zoomStyles, unmountOnExit: true, timeout: 300, children: function () {
73
+ var _a, _b;
74
+ return (_jsxs(StyledRow, { ref: transitionNodeRef, justify: "space-between", children: [_jsx(Col, { style: { display: 'flex', alignItems: 'center' }, children: _jsx(Checkbox, { checked: checked, indeterminate: indeterminate, onChange: changeCheckAll, children: _jsx(FormattedMessage, { id: "component.table.selected", defaultMessage: '已选{length}条', values: {
75
+ length: (_b = (_a = rowSelection.selectedRowKeys) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0
76
+ } }) }) }), _jsxs(Col, { style: { display: 'flex', alignItems: 'center' }, children: [selectionPopover, _jsx(CloseButton, { onClick: function () { changeCheckAll({ target: { checked: false } }); }, children: _jsx(CloseOutlined, {}) })] })] }));
77
+ } }), pagination && (_jsx(TableFooterTotal, { children: pagination.showTotal ? pagination.showTotal((_a = pagination.total) !== null && _a !== void 0 ? _a : 0, [0, 0]) : null }))] })] }));
88
78
  }
89
79
  export default Index;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { type TableComponentProps } from '../types';
3
2
  interface PopoverSetColumnsProps {
4
3
  order: string[];
@@ -9,5 +8,5 @@ interface PopoverSetColumnsProps {
9
8
  columnsSort: TableComponentProps['columnsSort'];
10
9
  onChangeVisible: (newVisibleItems: string[]) => void;
11
10
  }
12
- declare function PopoverSetColumns({ order, visibleItems, columns, onChangeOrder, columnsVisible, columnsSort, onChangeVisible }: PopoverSetColumnsProps): React.JSX.Element;
11
+ declare function PopoverSetColumns({ order, visibleItems, columns, onChangeOrder, columnsVisible, columnsSort, onChangeVisible }: PopoverSetColumnsProps): import("react/jsx-runtime").JSX.Element;
13
12
  export default PopoverSetColumns;
@@ -7,7 +7,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
7
  }
8
8
  return to.concat(ar || Array.prototype.slice.call(from));
9
9
  };
10
- import React, { useMemo, useRef } from 'react';
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { useMemo, useRef } from 'react';
11
12
  import { Checkbox, Popover } from 'antd';
12
13
  import { FormattedMessage } from '../../IntlProvider';
13
14
  import { HolderOutlined } from '@ant-design/icons';
@@ -84,7 +85,7 @@ function PopoverSetColumns(_a) {
84
85
  var checked = _a.target.checked;
85
86
  var dataIndex = _b.dataIndex;
86
87
  if (visibleItems.length === 1 && !checked) {
87
- message.error(React.createElement(FormattedMessage, { id: "component.table.visibleError", defaultMessage: '列表最少保留一个字段' }));
88
+ message.error(_jsx(FormattedMessage, { id: "component.table.visibleError", defaultMessage: '列表最少保留一个字段' }));
88
89
  return;
89
90
  }
90
91
  var id = Array.isArray(dataIndex) ? dataIndex.join(',') : dataIndex;
@@ -152,27 +153,23 @@ function PopoverSetColumns(_a) {
152
153
  }
153
154
  var checked = typeof id === 'string' && visibleItems.includes(id);
154
155
  return column
155
- ? (React.createElement("li", { key: Array.isArray(column.dataIndex) ? column.dataIndex.join(',') : String(column.dataIndex), draggable: draggable, onDragEnd: dragEnd, onDragStart: dragStart, "data-index": index, "data-id": Array.isArray(column.dataIndex) ? column.dataIndex.join(',') : String(column.dataIndex) },
156
- columnsSort && React.createElement(HolderOutlined, { className: "icon-drag" }),
157
- columnsVisible &&
158
- React.createElement(Checkbox, { style: { marginRight: '10px' }, checked: Boolean(checked), disabled: column.columnVisibleDisabled, onChange: function (event) { changeVisible(event, column); } }),
159
- typeof column.title === 'function' ? column.title({}) : column.title))
156
+ ? (_jsxs("li", { draggable: draggable, onDragEnd: dragEnd, onDragStart: dragStart, "data-index": index, "data-id": Array.isArray(column.dataIndex) ? column.dataIndex.join(',') : String(column.dataIndex), children: [columnsSort && _jsx(HolderOutlined, { className: "icon-drag" }), columnsVisible &&
157
+ _jsx(Checkbox, { style: { marginRight: '10px' }, checked: Boolean(checked), disabled: column.columnVisibleDisabled, onChange: function (event) { changeVisible(event, column); } }), typeof column.title === 'function' ? column.title({}) : column.title] }, Array.isArray(column.dataIndex) ? column.dataIndex.join(',') : String(column.dataIndex)))
160
158
  : null;
161
159
  });
162
160
  }, [order, visibleItems, columns, columnsSort, columnsVisible]);
163
- return (React.createElement(Popover, { overlayClassName: "table-columns-setting-popover", content: React.createElement(ColumnsSettingWrapper, { onDragOver: dragOver }, renderList), trigger: "click", align: {
161
+ return (_jsx(Popover, { overlayClassName: "table-columns-setting-popover", content: _jsx(ColumnsSettingWrapper, { onDragOver: dragOver, children: renderList }), trigger: "click", align: {
164
162
  offset: [-60, -14]
165
163
  }, styles: {
166
- body: {
164
+ container: {
167
165
  padding: 0
168
166
  }
169
- } },
170
- React.createElement(IconFont, { type: "icon-setting", style: {
167
+ }, children: _jsx(IconFont, { type: "icon-setting", style: {
171
168
  float: 'right',
172
169
  fontSize: '17px',
173
170
  lineHeight: 1,
174
171
  marginTop: '2px',
175
172
  fontWeight: 500
176
- } })));
173
+ } }) }));
177
174
  }
178
175
  export default PopoverSetColumns;
@@ -1,7 +1,3 @@
1
- export declare const PopoverWrapper: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
1
  export declare const ColumnsSettingWrapper: import("@emotion/styled").StyledComponent<{
6
2
  theme?: import("@emotion/react").Theme;
7
3
  as?: React.ElementType;
@@ -6,6 +6,5 @@ import styled from '@emotion/styled';
6
6
  import { keyframes } from '@emotion/react';
7
7
  var dragUpAnimation = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n margin-top: 0;\n }\n to {\n margin-top: 32px;\n }\n"], ["\n from {\n margin-top: 0;\n }\n to {\n margin-top: 32px;\n }\n"])));
8
8
  var dragDownAnimation = keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n from {\n margin-top: 32px;\n margin-bottom: 0;\n }\n to {\n margin-top: 0;\n margin-bottom: 32px;\n }\n"], ["\n from {\n margin-top: 32px;\n margin-bottom: 0;\n }\n to {\n margin-top: 0;\n margin-bottom: 32px;\n }\n"])));
9
- export var PopoverWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n .ant-popover-inner-content {\n max-height: 360px;\n padding: 0;\n overflow-y: auto;\n }\n"], ["\n .ant-popover-inner-content {\n max-height: 360px;\n padding: 0;\n overflow-y: auto;\n }\n"])));
10
- export var ColumnsSettingWrapper = styled.ul(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: 10px 0;\n\n .drag-up {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n .drag-down {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n li {\n width: 150px;\n padding: 5px 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n user-select: none;\n transition: background-color 0.5s;\n\n .icon-drag {\n margin-right: 10px;\n color: #999;\n cursor: move;\n }\n\n &[draggable=\"false\"] {\n .icon-drag {\n cursor: no-drop;\n opacity: 0.2;\n }\n }\n\n &:hover {\n background-color: #f0f0f0;\n }\n }\n"], ["\n padding: 10px 0;\n\n .drag-up {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n .drag-down {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n li {\n width: 150px;\n padding: 5px 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n user-select: none;\n transition: background-color 0.5s;\n\n .icon-drag {\n margin-right: 10px;\n color: #999;\n cursor: move;\n }\n\n &[draggable=\"false\"] {\n .icon-drag {\n cursor: no-drop;\n opacity: 0.2;\n }\n }\n\n &:hover {\n background-color: #f0f0f0;\n }\n }\n"])), dragUpAnimation, dragDownAnimation);
11
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
9
+ export var ColumnsSettingWrapper = styled.ul(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 10px 0;\n\n .drag-up {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n .drag-down {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n li {\n width: 150px;\n padding: 5px 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n user-select: none;\n transition: background-color 0.5s;\n\n .icon-drag {\n margin-right: 10px;\n color: #999;\n cursor: move;\n }\n\n &[draggable=\"false\"] {\n .icon-drag {\n cursor: no-drop;\n opacity: 0.2;\n }\n }\n\n &:hover {\n background-color: #f0f0f0;\n }\n }\n"], ["\n padding: 10px 0;\n\n .drag-up {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n .drag-down {\n border: solid 2px #ccc;\n animation: ", " ease 0.2s 1;\n animation-fill-mode: forwards;\n }\n\n li {\n width: 150px;\n padding: 5px 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n user-select: none;\n transition: background-color 0.5s;\n\n .icon-drag {\n margin-right: 10px;\n color: #999;\n cursor: move;\n }\n\n &[draggable=\"false\"] {\n .icon-drag {\n cursor: no-drop;\n opacity: 0.2;\n }\n }\n\n &:hover {\n background-color: #f0f0f0;\n }\n }\n"])), dragUpAnimation, dragDownAnimation);
10
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -20,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { useMemo, useState } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { useMemo, useState } from 'react';
24
25
  import { useLocalStorageState } from 'ahooks';
25
26
  import { MenuOutlined } from '@ant-design/icons';
26
27
  import { Resizable } from 'react-resizable';
@@ -30,7 +31,7 @@ export var ResizableTitle = function (props) {
30
31
  var onResize = props.onResize, width = props.width, restProps = __rest(props, ["onResize", "width"]);
31
32
  var _a = useState(false), resizing = _a[0], setResizing = _a[1];
32
33
  if (!width) {
33
- return React.createElement("th", __assign({}, restProps));
34
+ return _jsx("th", __assign({}, restProps));
34
35
  }
35
36
  var onResizeStart = function (_e) {
36
37
  setResizing(true);
@@ -38,9 +39,7 @@ export var ResizableTitle = function (props) {
38
39
  var onResizeStop = function (_e) {
39
40
  setResizing(false);
40
41
  };
41
- return (React.createElement(Resizable, { width: width, height: 0, handle: React.createElement(ResizableHandle, { className: resizing ? 'resizing' : '', onClick: function (e) { return e.stopPropagation(); } },
42
- React.createElement(MenuOutlined, { className: "react-resizable-handle-icon" })), onResize: onResize, onResizeStart: onResizeStart, onResizeStop: onResizeStop, draggableOpts: { enableUserSelectHack: false } },
43
- React.createElement("th", __assign({}, restProps))));
42
+ return (_jsx(Resizable, { width: width, height: 0, handle: _jsx(ResizableHandle, { className: resizing ? 'resizing' : '', onClick: function (e) { return e.stopPropagation(); }, children: _jsx(MenuOutlined, { className: "react-resizable-handle-icon" }) }), onResize: onResize, onResizeStart: onResizeStart, onResizeStop: onResizeStop, draggableOpts: { enableUserSelectHack: false }, children: _jsx("th", __assign({}, restProps)) }));
44
43
  };
45
44
  export var resizableColumns = function (columns, tableId) {
46
45
  // const [columnsWidth, setColumnsWidth] = useSetState({})