@lobehub/ui 1.121.0 → 1.122.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.
- package/es/ActionIcon/index.js +4 -1
- package/es/ActionIcon/style.js +1 -1
- package/es/ActionIconGroup/index.js +4 -3
- package/es/ActionIconGroup/style.d.ts +0 -1
- package/es/ActionIconGroup/style.js +2 -3
- package/es/ColorScales/ScaleRow.js +5 -1
- package/es/ColorScales/index.js +14 -5
- package/es/ColorScales/style.d.ts +0 -1
- package/es/ColorScales/style.js +4 -5
- package/es/ContextMenu/index.d.ts +4 -17
- package/es/ContextMenu/index.js +6 -249
- package/es/DraggablePanel/components/DraggablePanelBody.js +4 -2
- package/es/DraggablePanel/components/DraggablePanelContainer.js +2 -1
- package/es/DraggablePanel/components/DraggablePanelFooter.js +8 -2
- package/es/DraggablePanel/components/DraggablePanelHeader.js +8 -2
- package/es/DraggablePanel/components/style.js +4 -4
- package/es/FluentEmoji/style.d.ts +0 -1
- package/es/FluentEmoji/style.js +3 -5
- package/es/Form/components/FormFooter.js +6 -6
- package/es/Form/components/FormGroup.js +3 -1
- package/es/Form/components/FormTitle.js +2 -1
- package/es/Form/components/style.d.ts +0 -1
- package/es/Form/components/style.js +9 -10
- package/es/Form/style.d.ts +0 -1
- package/es/Form/style.js +2 -3
- package/es/GaussianBackground/index.d.ts +17 -0
- package/es/GaussianBackground/index.js +48 -0
- package/es/GaussianBackground/style.d.ts +5 -0
- package/es/GaussianBackground/style.js +11 -0
- package/es/GaussianBackground/useGaussianBackground.d.ts +7 -0
- package/es/GaussianBackground/useGaussianBackground.js +19 -0
- package/es/GaussianBackground/vendor/gaussianBackground.d.ts +38 -0
- package/es/GaussianBackground/vendor/gaussianBackground.js +222 -0
- package/es/GaussianBackground/vendor/stackBlur.d.ts +1 -0
- package/es/GaussianBackground/vendor/stackBlur.js +184 -0
- package/es/GaussianBackground/vendor/stackBlurTable.d.ts +2 -0
- package/es/GaussianBackground/vendor/stackBlurTable.js +2 -0
- package/es/Header/index.js +4 -1
- package/es/Header/style.js +1 -1
- package/es/Hero/index.js +4 -1
- package/es/Hero/style.js +1 -1
- package/es/Highlighter/SyntaxHighlighter/index.js +4 -2
- package/es/Highlighter/SyntaxHighlighter/style.js +1 -1
- package/es/List/ListItem/time.d.ts +0 -1
- package/es/List/ListItem/time.js +0 -4
- package/es/MessageModal/index.js +1 -1
- package/es/SideNav/index.js +5 -2
- package/es/SideNav/style.js +1 -1
- package/es/Snippet/index.js +6 -2
- package/es/Snippet/style.js +1 -1
- package/es/SpotlightCard/SpotlightCardItem.js +1 -1
- package/es/SpotlightCard/style.js +1 -1
- package/es/StoryBook/index.js +10 -3
- package/es/StoryBook/style.js +2 -2
- package/es/Tag/index.js +1 -1
- package/es/ThemeProvider/GlobalStyle/antdOverride.js +1 -1
- package/es/TokenTag/index.js +6 -1
- package/es/TokenTag/style.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/package.json +1 -2
- package/es/ContextMenu/MenuItem/icons.d.ts +0 -4
- package/es/ContextMenu/MenuItem/icons.js +0 -73
- package/es/ContextMenu/MenuItem/index.d.ts +0 -12
- package/es/ContextMenu/MenuItem/index.js +0 -73
- package/es/ContextMenu/MenuItem/style.d.ts +0 -7
- package/es/ContextMenu/MenuItem/style.js +0 -16
- package/es/ContextMenu/style.d.ts +0 -4
- package/es/ContextMenu/style.js +0 -12
- package/es/ContextMenu/types/index.d.ts +0 -5
- package/es/ContextMenu/types/index.js +0 -2
- package/es/ContextMenu/types/menuItem.d.ts +0 -21
- package/es/ContextMenu/types/menuItem.js +0 -1
package/es/ActionIcon/index.js
CHANGED
|
@@ -5,6 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { Loader2 } from 'lucide-react';
|
|
7
7
|
import { forwardRef, useMemo } from 'react';
|
|
8
|
+
import { Flexbox } from 'react-layout-kit';
|
|
8
9
|
import Icon from "../Icon";
|
|
9
10
|
import Spotlight from "../Spotlight";
|
|
10
11
|
import Tooltip from "../Tooltip";
|
|
@@ -65,8 +66,10 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
65
66
|
}, iconProps), {}, {
|
|
66
67
|
spin: true
|
|
67
68
|
}));
|
|
68
|
-
var actionIconBlock = /*#__PURE__*/_jsxs(
|
|
69
|
+
var actionIconBlock = /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
70
|
+
align: 'center',
|
|
69
71
|
className: cx(styles.block, disable ? styles.disabled : styles.normal, className),
|
|
72
|
+
justify: 'center',
|
|
70
73
|
onClick: loading || disable ? undefined : onClick,
|
|
71
74
|
ref: ref,
|
|
72
75
|
style: _objectSpread({
|
package/es/ActionIcon/style.js
CHANGED
|
@@ -9,7 +9,7 @@ export var useStyles = createStyles(function (_ref, _ref2) {
|
|
|
9
9
|
var active = _ref2.active,
|
|
10
10
|
glass = _ref2.glass;
|
|
11
11
|
return {
|
|
12
|
-
block: cx(glass && stylish.blur, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n
|
|
12
|
+
block: cx(glass && stylish.blur, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n color: ", ";\n\n background: ", ";\n\n transition:\n color 600ms ", ",\n scale 400ms ", ",\n background-color 100ms ", ";\n "])), active ? token.colorText : token.colorTextTertiary, active ? token.colorFillTertiary : 'transparent', token.motionEaseOut, token.motionEaseOut, token.motionEaseOut)),
|
|
13
13
|
disabled: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: not-allowed;\n opacity: 0.5;\n "]))),
|
|
14
14
|
icon: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n transition: scale 400ms ", ";\n\n &:active {\n scale: 0.8;\n }\n "])), token.motionEaseOut),
|
|
15
15
|
normal: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n }\n "])), token.colorText, token.colorFillSecondary, token.colorText, token.colorFill)
|
|
@@ -7,6 +7,7 @@ import { ActionIcon, Icon, Spotlight } from "./..";
|
|
|
7
7
|
import { Dropdown } from 'antd';
|
|
8
8
|
import { MoreHorizontal } from 'lucide-react';
|
|
9
9
|
import { memo } from 'react';
|
|
10
|
+
import { Flexbox } from 'react-layout-kit';
|
|
10
11
|
import { useStyles } from "./style";
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -25,13 +26,13 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
|
|
|
25
26
|
onActionClick = _ref.onActionClick,
|
|
26
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
28
|
var _useStyles = useStyles({
|
|
28
|
-
direction: direction,
|
|
29
29
|
type: type
|
|
30
30
|
}),
|
|
31
31
|
styles = _useStyles.styles;
|
|
32
32
|
var tooltipsPlacement = placement || (direction === 'column' ? 'right' : 'top');
|
|
33
|
-
return /*#__PURE__*/_jsxs(
|
|
34
|
-
className: styles.container
|
|
33
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
34
|
+
className: styles.container,
|
|
35
|
+
horizontal: direction === 'row'
|
|
35
36
|
}, rest), {}, {
|
|
36
37
|
children: [spotlight && /*#__PURE__*/_jsx(Spotlight, {}), (items === null || items === void 0 ? void 0 : items.length) > 0 && items.map(function (item) {
|
|
37
38
|
return /*#__PURE__*/_jsx(ActionIcon, {
|
|
@@ -6,10 +6,9 @@ export var useStyles = createStyles(function (_ref, _ref2) {
|
|
|
6
6
|
token = _ref.token,
|
|
7
7
|
stylish = _ref.stylish,
|
|
8
8
|
cx = _ref.cx;
|
|
9
|
-
var
|
|
10
|
-
type = _ref2.type;
|
|
9
|
+
var type = _ref2.type;
|
|
11
10
|
var typeStylish = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n border: 1px solid ", ";\n "])), type === 'block' ? token.colorFillTertiary : token.colorFillQuaternary, type === 'block' ? 'transparent' : token.colorBorder);
|
|
12
11
|
return {
|
|
13
|
-
container: cx(type !== 'pure' && typeStylish, stylish.blur, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n
|
|
12
|
+
container: cx(type !== 'pure' && typeStylish, stylish.blur, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n padding: 2px;\n border-radius: ", "px;\n "])), token.borderRadius))
|
|
14
13
|
};
|
|
15
14
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Space, message } from 'antd';
|
|
2
2
|
import copy from 'copy-to-clipboard';
|
|
3
3
|
import { memo } from 'react';
|
|
4
|
+
import { Flexbox } from 'react-layout-kit';
|
|
4
5
|
import { alphaBg, useStyles } from "./style";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -55,8 +56,11 @@ var ScaleRow = /*#__PURE__*/memo(function (_ref) {
|
|
|
55
56
|
},
|
|
56
57
|
style: style,
|
|
57
58
|
title: color,
|
|
58
|
-
children: /*#__PURE__*/_jsx(
|
|
59
|
+
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
60
|
+
align: 'center',
|
|
59
61
|
className: styles.scaleItem,
|
|
62
|
+
horizontal: true,
|
|
63
|
+
justify: 'center',
|
|
60
64
|
style: {
|
|
61
65
|
backgroundColor: color
|
|
62
66
|
}
|
package/es/ColorScales/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Space } from 'antd';
|
|
2
2
|
import { memo } from 'react';
|
|
3
|
+
import { Flexbox } from 'react-layout-kit';
|
|
3
4
|
import ScaleRow from "./ScaleRow";
|
|
4
5
|
import { useStyles } from "./style";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -10,8 +11,11 @@ var ColorScales = /*#__PURE__*/memo(function (_ref) {
|
|
|
10
11
|
midHighLight = _ref.midHighLight;
|
|
11
12
|
var _useStyles = useStyles(),
|
|
12
13
|
styles = _useStyles.styles;
|
|
13
|
-
return /*#__PURE__*/_jsx(
|
|
14
|
-
|
|
14
|
+
return /*#__PURE__*/_jsx(Flexbox, {
|
|
15
|
+
align: 'center',
|
|
16
|
+
flex: 1,
|
|
17
|
+
horizontal: true,
|
|
18
|
+
justify: 'center',
|
|
15
19
|
children: /*#__PURE__*/_jsx("div", {
|
|
16
20
|
style: {
|
|
17
21
|
padding: '8px 16px 32px 0'
|
|
@@ -21,8 +25,10 @@ var ColorScales = /*#__PURE__*/memo(function (_ref) {
|
|
|
21
25
|
size: 2,
|
|
22
26
|
children: [/*#__PURE__*/_jsxs(Space, {
|
|
23
27
|
size: 2,
|
|
24
|
-
children: [/*#__PURE__*/_jsx(
|
|
25
|
-
|
|
28
|
+
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
29
|
+
align: 'center',
|
|
30
|
+
className: styles.scaleRowTitle,
|
|
31
|
+
horizontal: true
|
|
26
32
|
}, "scale-num"), Array.from({
|
|
27
33
|
length: scale.light.length
|
|
28
34
|
}).fill('').map(function (_, index) {
|
|
@@ -32,8 +38,11 @@ var ColorScales = /*#__PURE__*/memo(function (_ref) {
|
|
|
32
38
|
className: styles.scaleBox,
|
|
33
39
|
children: /*#__PURE__*/_jsx("div", {
|
|
34
40
|
className: styles.scaleBox,
|
|
35
|
-
children: /*#__PURE__*/_jsx(
|
|
41
|
+
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
42
|
+
align: 'center',
|
|
36
43
|
className: styles.scaleItem,
|
|
44
|
+
horizontal: true,
|
|
45
|
+
justify: 'center',
|
|
37
46
|
style: {
|
|
38
47
|
fontWeight: isMidHighlight ? 700 : 400,
|
|
39
48
|
opacity: 0.5
|
|
@@ -7,5 +7,4 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
|
|
|
7
7
|
scaleItem: import("antd-style").SerializedStyles;
|
|
8
8
|
scaleRowTitle: import("antd-style").SerializedStyles;
|
|
9
9
|
text: import("antd-style").SerializedStyles;
|
|
10
|
-
view: import("antd-style").SerializedStyles;
|
|
11
10
|
}>;
|
package/es/ColorScales/style.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
export var alphaBg = {
|
|
5
5
|
dark: 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACPTkDJAAAAZUlEQVRIDe2VMQoAMAgDa9/g/1/oIzrpZBCh2dLFkkoDF0Fz99OdiOjks+2/7S8fRRmMMIVoRGSoYzvvqF8ZIMKlC1GhQBc6IkPzq32QmdAzkEGihpWOSPsAss8HegYySNSw0hE9WQ4StafZFqkAAAAASUVORK5CYII=) 0% 0% / 26px',
|
|
@@ -10,9 +10,8 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
10
10
|
token = _ref.token;
|
|
11
11
|
return {
|
|
12
12
|
scaleBox: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n position: relative;\n\n width: 48px;\n height: 32px;\n\n background-position:\n 0 0,\n 0 8px,\n 8px -8px,\n -8px 0;\n background-size: 16px 16px;\n\n transition: scale 400ms ", ";\n\n &:active {\n scale: 0.8;\n }\n "])), token.motionEaseOut),
|
|
13
|
-
scaleItem: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
14
|
-
scaleRowTitle: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
15
|
-
text: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n opacity: 0.5;\n "])))
|
|
16
|
-
view: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n "])))
|
|
13
|
+
scaleItem: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n "]))),
|
|
14
|
+
scaleRowTitle: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 64px;\n height: 32px;\n "]))),
|
|
15
|
+
text: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n opacity: 0.5;\n "])))
|
|
17
16
|
};
|
|
18
17
|
});
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
* @description Container element for the context menu
|
|
6
|
-
*/
|
|
7
|
-
container?: HTMLElement;
|
|
8
|
-
/**
|
|
9
|
-
* @description Items to be displayed in the context menu
|
|
10
|
-
*/
|
|
11
|
-
items: MenuItemType[];
|
|
12
|
-
/**
|
|
13
|
-
* @description Label for the context menu
|
|
14
|
-
*/
|
|
15
|
-
label?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const ContextMenu: import("react").ForwardRefExoticComponent<Omit<ContextMenuProps & HTMLProps<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type DropdownProps } from 'antd';
|
|
3
|
+
export type ContextMenuProps = DropdownProps;
|
|
4
|
+
declare const ContextMenu: import("react").NamedExoticComponent<DropdownProps>;
|
|
18
5
|
export default ContextMenu;
|
package/es/ContextMenu/index.js
CHANGED
|
@@ -1,255 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["items", "label", "container"];
|
|
5
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
10
|
-
import MenuItem from "./MenuItem";
|
|
11
|
-
import { useStyles } from "./style";
|
|
4
|
+
import { Dropdown } from 'antd';
|
|
5
|
+
import { memo } from 'react';
|
|
12
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
container = _ref.container,
|
|
18
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
var _useStyles = useStyles(),
|
|
20
|
-
styles = _useStyles.styles;
|
|
21
|
-
var _useState = useState(false),
|
|
22
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
-
isOpen = _useState2[0],
|
|
24
|
-
setIsOpen = _useState2[1];
|
|
25
|
-
var _useState3 = useState(null),
|
|
26
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
27
|
-
activeIndex = _useState4[0],
|
|
28
|
-
setActiveIndex = _useState4[1];
|
|
29
|
-
var _useState5 = useState(false),
|
|
30
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
31
|
-
allowHover = _useState6[0],
|
|
32
|
-
setAllowHover = _useState6[1];
|
|
33
|
-
var listItemsReference = useRef([]);
|
|
34
|
-
var listContentReference = useRef(items.map(function (item) {
|
|
35
|
-
return item.label;
|
|
36
|
-
}));
|
|
37
|
-
var allowMouseUpCloseReference = useRef(false);
|
|
38
|
-
var tree = useFloatingTree();
|
|
39
|
-
var nodeId = useFloatingNodeId();
|
|
40
|
-
var parentId = useFloatingParentNodeId();
|
|
41
|
-
var isNested = parentId !== null;
|
|
42
|
-
var _useFloating = useFloating({
|
|
43
|
-
middleware: [offset({
|
|
44
|
-
alignmentAxis: isNested ? -4 : 0,
|
|
45
|
-
mainAxis: isNested ? 0 : 4
|
|
46
|
-
}), flip(), shift()],
|
|
47
|
-
nodeId: nodeId,
|
|
48
|
-
onOpenChange: setIsOpen,
|
|
49
|
-
open: isOpen,
|
|
50
|
-
placement: isNested ? 'right-start' : 'bottom-start',
|
|
51
|
-
whileElementsMounted: autoUpdate
|
|
52
|
-
}),
|
|
53
|
-
refs = _useFloating.refs,
|
|
54
|
-
context = _useFloating.context;
|
|
55
|
-
var hover = useHover(context, {
|
|
56
|
-
delay: {
|
|
57
|
-
open: 75
|
|
58
|
-
},
|
|
59
|
-
enabled: isNested && allowHover,
|
|
60
|
-
handleClose: safePolygon({
|
|
61
|
-
blockPointerEvents: true
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
var click = useClick(context, {
|
|
65
|
-
event: 'mousedown',
|
|
66
|
-
ignoreMouse: isNested,
|
|
67
|
-
toggle: !isNested || !allowHover
|
|
68
|
-
});
|
|
69
|
-
var role = useRole(context, {
|
|
70
|
-
role: 'menu'
|
|
71
|
-
});
|
|
72
|
-
var dismiss = useDismiss(context);
|
|
73
|
-
var listNavigation = useListNavigation(context, {
|
|
74
|
-
activeIndex: activeIndex,
|
|
75
|
-
listRef: listItemsReference,
|
|
76
|
-
nested: isNested,
|
|
77
|
-
onNavigate: setActiveIndex
|
|
78
|
-
});
|
|
79
|
-
var typeahead = useTypeahead(context, {
|
|
80
|
-
activeIndex: activeIndex,
|
|
81
|
-
enabled: isOpen,
|
|
82
|
-
listRef: listContentReference,
|
|
83
|
-
onMatch: isOpen ? setActiveIndex : undefined
|
|
84
|
-
});
|
|
85
|
-
var _useInteractions = useInteractions([hover, click, role, dismiss, listNavigation, typeahead]),
|
|
86
|
-
getReferenceProps = _useInteractions.getReferenceProps,
|
|
87
|
-
getFloatingProps = _useInteractions.getFloatingProps,
|
|
88
|
-
getItemProps = _useInteractions.getItemProps;
|
|
89
|
-
|
|
90
|
-
// Event emitter allows you to communicate across tree components.
|
|
91
|
-
// This effect closes all menus when an item gets clicked anywhere
|
|
92
|
-
// in the tree.
|
|
93
|
-
useEffect(function () {
|
|
94
|
-
if (!tree) return;
|
|
95
|
-
function handleTreeClick() {
|
|
96
|
-
setIsOpen(false);
|
|
97
|
-
}
|
|
98
|
-
function onSubMenuOpen(event) {
|
|
99
|
-
if (event.nodeId !== nodeId && event.parentId === parentId) {
|
|
100
|
-
setIsOpen(false);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
tree.events.on('click', handleTreeClick);
|
|
104
|
-
tree.events.on('menuopen', onSubMenuOpen);
|
|
105
|
-
return function () {
|
|
106
|
-
tree.events.off('click', handleTreeClick);
|
|
107
|
-
tree.events.off('menuopen', onSubMenuOpen);
|
|
108
|
-
};
|
|
109
|
-
}, [tree, nodeId, parentId]);
|
|
110
|
-
useEffect(function () {
|
|
111
|
-
if (isOpen && tree) {
|
|
112
|
-
tree.events.emit('menuopen', {
|
|
113
|
-
nodeId: nodeId,
|
|
114
|
-
parentId: parentId
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}, [tree, isOpen, nodeId, parentId]);
|
|
118
|
-
|
|
119
|
-
// Determine if "hover" logic can run based on the modality of input. This
|
|
120
|
-
// prevents unwanted focus synchronization as menus open and close with
|
|
121
|
-
// keyboard navigation and the cursor is resting on the menu.
|
|
122
|
-
useEffect(function () {
|
|
123
|
-
function onPointerMove(_ref2) {
|
|
124
|
-
var pointerType = _ref2.pointerType;
|
|
125
|
-
if (pointerType !== 'touch') {
|
|
126
|
-
setAllowHover(true);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function onKeyDown() {
|
|
130
|
-
setAllowHover(false);
|
|
131
|
-
}
|
|
132
|
-
window.addEventListener('pointermove', onPointerMove, {
|
|
133
|
-
capture: true,
|
|
134
|
-
once: true
|
|
135
|
-
});
|
|
136
|
-
window.addEventListener('keydown', onKeyDown, true);
|
|
137
|
-
return function () {
|
|
138
|
-
window.removeEventListener('pointermove', onPointerMove, {
|
|
139
|
-
capture: true
|
|
140
|
-
});
|
|
141
|
-
window.removeEventListener('keydown', onKeyDown, true);
|
|
142
|
-
};
|
|
143
|
-
}, [allowHover]);
|
|
144
|
-
useEffect(function () {
|
|
145
|
-
var timeout;
|
|
146
|
-
function onContextMenu(e) {
|
|
147
|
-
e.preventDefault();
|
|
148
|
-
refs.setPositionReference({
|
|
149
|
-
getBoundingClientRect: function getBoundingClientRect() {
|
|
150
|
-
return {
|
|
151
|
-
bottom: e.clientY,
|
|
152
|
-
height: 0,
|
|
153
|
-
left: e.clientX,
|
|
154
|
-
right: e.clientX,
|
|
155
|
-
top: e.clientY,
|
|
156
|
-
width: 0,
|
|
157
|
-
x: e.clientX,
|
|
158
|
-
y: e.clientY
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
setIsOpen(true);
|
|
163
|
-
clearTimeout(timeout);
|
|
164
|
-
allowMouseUpCloseReference.current = false;
|
|
165
|
-
timeout = window.setTimeout(function () {
|
|
166
|
-
allowMouseUpCloseReference.current = true;
|
|
167
|
-
}, 300);
|
|
168
|
-
}
|
|
169
|
-
function onMouseUp() {
|
|
170
|
-
if (allowMouseUpCloseReference.current) {
|
|
171
|
-
setIsOpen(false);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
document.addEventListener('contextmenu', onContextMenu);
|
|
175
|
-
document.addEventListener('mouseup', onMouseUp);
|
|
176
|
-
return function () {
|
|
177
|
-
document.removeEventListener('contextmenu', onContextMenu);
|
|
178
|
-
document.removeEventListener('mouseup', onMouseUp);
|
|
179
|
-
clearTimeout(timeout);
|
|
180
|
-
};
|
|
181
|
-
}, [refs, container]);
|
|
182
|
-
var renderMenuItem = useCallback(function (item, index) {
|
|
183
|
-
// 支持渲染分割线
|
|
184
|
-
if ('type' in item && item.type === 'divider') return /*#__PURE__*/_jsx(Divider, {
|
|
185
|
-
style: {
|
|
186
|
-
margin: '4px 12px',
|
|
187
|
-
minWidth: 'auto',
|
|
188
|
-
width: 'auto'
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
var data = item;
|
|
192
|
-
var props = _objectSpread({
|
|
193
|
-
active: activeIndex === index,
|
|
194
|
-
icon: data.icon,
|
|
195
|
-
key: data.key,
|
|
196
|
-
label: data.label,
|
|
197
|
-
shortcut: data.shortcut
|
|
198
|
-
}, getItemProps({
|
|
199
|
-
onClick: function onClick() {
|
|
200
|
-
var _data$onClick;
|
|
201
|
-
(_data$onClick = data.onClick) === null || _data$onClick === void 0 || _data$onClick.call(data);
|
|
202
|
-
setIsOpen(false);
|
|
203
|
-
},
|
|
204
|
-
onMouseUp: function onMouseUp() {
|
|
205
|
-
var _data$onClick2;
|
|
206
|
-
(_data$onClick2 = data.onClick) === null || _data$onClick2 === void 0 || _data$onClick2.call(data);
|
|
207
|
-
setIsOpen(false);
|
|
208
|
-
},
|
|
209
|
-
ref: function ref(node) {
|
|
210
|
-
listItemsReference.current[index] = node;
|
|
211
|
-
}
|
|
212
|
-
}));
|
|
213
|
-
if ('children' in item) {
|
|
214
|
-
return /*#__PURE__*/_jsx(MenuComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
215
|
-
items: item.children
|
|
216
|
-
}));
|
|
217
|
-
}
|
|
218
|
-
return /*#__PURE__*/_jsx(MenuItem, _objectSpread({}, props));
|
|
219
|
-
}, [activeIndex]);
|
|
220
|
-
var referenceReference = useMergeRefs([refs.setReference, forwardedReference]);
|
|
221
|
-
return /*#__PURE__*/_jsxs(FloatingNode, {
|
|
222
|
-
id: nodeId,
|
|
223
|
-
children: [label ? /*#__PURE__*/_jsx(MenuItem, _objectSpread(_objectSpread({
|
|
224
|
-
label: label,
|
|
225
|
-
nested: isNested,
|
|
226
|
-
ref: referenceReference,
|
|
227
|
-
role: isNested ? 'menuitem' : 'menu'
|
|
228
|
-
}, rest), getReferenceProps({
|
|
229
|
-
onClick: function onClick(event) {
|
|
230
|
-
event.stopPropagation();
|
|
231
|
-
}
|
|
232
|
-
}))) : null, /*#__PURE__*/_jsx(FloatingPortal, {
|
|
233
|
-
children: isOpen && /*#__PURE__*/_jsx(FloatingFocusManager, {
|
|
234
|
-
context: context,
|
|
235
|
-
initialFocus: isNested ? -1 : 0,
|
|
236
|
-
modal: false,
|
|
237
|
-
returnFocus: !isNested,
|
|
238
|
-
children: /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
239
|
-
className: styles.container,
|
|
240
|
-
ref: refs.setFloating
|
|
241
|
-
}, getFloatingProps()), {}, {
|
|
242
|
-
children: items === null || items === void 0 ? void 0 : items.map(renderMenuItem)
|
|
243
|
-
}))
|
|
244
|
-
})
|
|
245
|
-
})]
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
var ContextMenu = /*#__PURE__*/forwardRef(function (props, reference) {
|
|
249
|
-
return /*#__PURE__*/_jsx(FloatingTree, {
|
|
250
|
-
children: /*#__PURE__*/_jsx(MenuComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
251
|
-
ref: reference
|
|
252
|
-
}))
|
|
253
|
-
});
|
|
7
|
+
var ContextMenu = /*#__PURE__*/memo(function (props) {
|
|
8
|
+
return /*#__PURE__*/_jsx(Dropdown, _objectSpread({
|
|
9
|
+
trigger: ['contextMenu']
|
|
10
|
+
}, props));
|
|
254
11
|
});
|
|
255
12
|
export default ContextMenu;
|
|
@@ -4,6 +4,7 @@ var _excluded = ["className"];
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
+
import { Flexbox } from 'react-layout-kit';
|
|
7
8
|
import { useStyles } from "./style";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
var DraggablePanelBody = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -12,8 +13,9 @@ var DraggablePanelBody = /*#__PURE__*/memo(function (_ref) {
|
|
|
12
13
|
var _useStyles = useStyles(),
|
|
13
14
|
cx = _useStyles.cx,
|
|
14
15
|
styles = _useStyles.styles;
|
|
15
|
-
return /*#__PURE__*/_jsx(
|
|
16
|
-
className: cx(styles.body, className)
|
|
16
|
+
return /*#__PURE__*/_jsx(Flexbox, _objectSpread({
|
|
17
|
+
className: cx(styles.body, className),
|
|
18
|
+
flex: 1
|
|
17
19
|
}, rest));
|
|
18
20
|
});
|
|
19
21
|
export default DraggablePanelBody;
|
|
@@ -4,6 +4,7 @@ var _excluded = ["className"];
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
+
import { Flexbox } from 'react-layout-kit';
|
|
7
8
|
import { useStyles } from "./style";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
var DraggablePanelContainer = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -12,7 +13,7 @@ var DraggablePanelContainer = /*#__PURE__*/memo(function (_ref) {
|
|
|
12
13
|
var _useStyles = useStyles(),
|
|
13
14
|
cx = _useStyles.cx,
|
|
14
15
|
styles = _useStyles.styles;
|
|
15
|
-
return /*#__PURE__*/_jsx(
|
|
16
|
+
return /*#__PURE__*/_jsx(Flexbox, _objectSpread({
|
|
16
17
|
className: cx(styles.container, className)
|
|
17
18
|
}, rest));
|
|
18
19
|
});
|
|
@@ -4,6 +4,7 @@ var _excluded = ["className"];
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
+
import { Flexbox } from 'react-layout-kit';
|
|
7
8
|
import { useStyles } from "./style";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
var DraggablePanelFooter = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -12,8 +13,13 @@ var DraggablePanelFooter = /*#__PURE__*/memo(function (_ref) {
|
|
|
12
13
|
var _useStyles = useStyles(),
|
|
13
14
|
cx = _useStyles.cx,
|
|
14
15
|
styles = _useStyles.styles;
|
|
15
|
-
return /*#__PURE__*/_jsx(
|
|
16
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(Flexbox, _objectSpread({
|
|
17
|
+
align: 'center',
|
|
18
|
+
className: cx(styles.footer, className),
|
|
19
|
+
flex: 'none',
|
|
20
|
+
gap: 8,
|
|
21
|
+
horizontal: true,
|
|
22
|
+
justify: 'flex-start'
|
|
17
23
|
}, rest));
|
|
18
24
|
});
|
|
19
25
|
export default DraggablePanelFooter;
|
|
@@ -7,6 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { ActionIcon } from "../..";
|
|
8
8
|
import { PanelLeft, Pin, PinOff } from 'lucide-react';
|
|
9
9
|
import { memo } from 'react';
|
|
10
|
+
import { Flexbox } from 'react-layout-kit';
|
|
10
11
|
import useControlledState from 'use-merge-value';
|
|
11
12
|
import { useStyles } from "./style";
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -51,8 +52,13 @@ var DraggablePanelHeader = /*#__PURE__*/memo(function (props) {
|
|
|
51
52
|
fontSize: 14
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
|
-
return /*#__PURE__*/_jsxs(
|
|
55
|
-
|
|
55
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
56
|
+
align: 'center',
|
|
57
|
+
className: cx(styles.header, className),
|
|
58
|
+
flex: 'none',
|
|
59
|
+
gap: 8,
|
|
60
|
+
horizontal: true,
|
|
61
|
+
justify: 'space-between'
|
|
56
62
|
}, rest), {}, {
|
|
57
63
|
children: [position === 'left' ? panelIcon : pinIcon, title, position === 'left' ? pinIcon : panelIcon]
|
|
58
64
|
}));
|
|
@@ -5,9 +5,9 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
5
5
|
var css = _ref.css,
|
|
6
6
|
token = _ref.token;
|
|
7
7
|
return {
|
|
8
|
-
body: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-x: hidden;\n overflow-y: auto;\n
|
|
9
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n
|
|
10
|
-
footer: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
11
|
-
header: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n
|
|
8
|
+
body: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-x: hidden;\n overflow-y: auto;\n padding: 16px;\n "]))),
|
|
9
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n "]))),
|
|
10
|
+
footer: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 8px 16px;\n border-top: 1px solid ", ";\n "])), token.colorBorderSecondary),
|
|
11
|
+
header: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 8px 16px;\n font-weight: 500;\n border-bottom: 1px solid ", ";\n "])), token.colorBorderSecondary)
|
|
12
12
|
};
|
|
13
13
|
});
|
package/es/FluentEmoji/style.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject
|
|
2
|
+
var _templateObject;
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
export var useStyles = createStyles(function (_ref) {
|
|
5
|
-
var css = _ref.css
|
|
6
|
-
token = _ref.token;
|
|
5
|
+
var css = _ref.css;
|
|
7
6
|
return {
|
|
8
|
-
container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "])))
|
|
9
|
-
loading: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n color: ", ";\n "])), token.colorText)
|
|
7
|
+
container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "])))
|
|
10
8
|
};
|
|
11
9
|
});
|
|
@@ -4,18 +4,18 @@ var _excluded = ["className", "children"];
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { Flexbox } from 'react-layout-kit';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
var FormFooter = /*#__PURE__*/memo(function (_ref) {
|
|
10
10
|
var className = _ref.className,
|
|
11
11
|
children = _ref.children,
|
|
12
12
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className: cx(styles.footer, className)
|
|
13
|
+
return /*#__PURE__*/_jsx(Flexbox, _objectSpread(_objectSpread({
|
|
14
|
+
className: className,
|
|
15
|
+
gap: 8,
|
|
16
|
+
justify: 'flex-end'
|
|
18
17
|
}, rest), {}, {
|
|
18
|
+
horizontal: true,
|
|
19
19
|
children: children
|
|
20
20
|
}));
|
|
21
21
|
});
|
|
@@ -24,8 +24,10 @@ var FormGroup = /*#__PURE__*/memo(function (_ref) {
|
|
|
24
24
|
var _useStyles = useStyles(),
|
|
25
25
|
cx = _useStyles.cx,
|
|
26
26
|
styles = _useStyles.styles;
|
|
27
|
-
var titleContent = /*#__PURE__*/_jsxs(
|
|
27
|
+
var titleContent = /*#__PURE__*/_jsxs(Flexbox, {
|
|
28
28
|
className: styles.title,
|
|
29
|
+
gap: 8,
|
|
30
|
+
horizontal: true,
|
|
29
31
|
children: [icon && /*#__PURE__*/_jsx(Icon, {
|
|
30
32
|
icon: icon
|
|
31
33
|
}), title]
|
|
@@ -13,8 +13,9 @@ var FormTitle = /*#__PURE__*/memo(function (_ref) {
|
|
|
13
13
|
var _useStyles = useStyles(),
|
|
14
14
|
cx = _useStyles.cx,
|
|
15
15
|
styles = _useStyles.styles;
|
|
16
|
-
var titleNode = /*#__PURE__*/_jsxs(
|
|
16
|
+
var titleNode = /*#__PURE__*/_jsxs(Flexbox, {
|
|
17
17
|
className: cx(styles.formTitle, className),
|
|
18
|
+
gap: 6,
|
|
18
19
|
children: [/*#__PURE__*/_jsxs(Flexbox, {
|
|
19
20
|
align: 'center',
|
|
20
21
|
direction: 'horizontal',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const useStyles: (props?: string | number | undefined) => import("antd-style").ReturnStyles<{
|
|
2
|
-
footer: import("antd-style").SerializedStyles;
|
|
3
2
|
formTitle: import("antd-style").SerializedStyles;
|
|
4
3
|
group: string;
|
|
5
4
|
icon: import("antd-style").SerializedStyles;
|