@lobehub/ui 3.3.2 → 3.3.3
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/A/index.d.ts +3 -3
- package/es/A/index.js +2 -2
- package/es/ActionIconGroup/ActionIconGroup.d.ts +2 -2
- package/es/ActionIconGroup/ActionIconGroup.js +3 -3
- package/es/Block/Block.d.ts +2 -2
- package/es/Block/Block.js +3 -3
- package/es/Button/Button.d.ts +2 -2
- package/es/Button/Button.js +3 -3
- package/es/ColorSwatches/ColorSwatches.d.ts +2 -2
- package/es/ColorSwatches/ColorSwatches.js +3 -3
- package/es/Empty/Empty.d.ts +2 -2
- package/es/Empty/Empty.js +2 -3
- package/es/FileTypeIcon/FileTypeIcon.d.ts +2 -2
- package/es/FileTypeIcon/FileTypeIcon.js +3 -3
- package/es/FileTypeIcon/components/FileIcon.d.ts +2 -2
- package/es/FileTypeIcon/components/FileIcon.js +2 -3
- package/es/FileTypeIcon/components/FolderIcon.d.ts +2 -2
- package/es/FileTypeIcon/components/FolderIcon.js +2 -3
- package/es/FluentEmoji/FluentEmoji.d.ts +2 -2
- package/es/FluentEmoji/FluentEmoji.js +3 -3
- package/es/Form/components/FormDivider.d.ts +2 -2
- package/es/Form/components/FormDivider.js +2 -3
- package/es/Form/components/FormFooter.d.ts +3 -2
- package/es/Form/components/FormFooter.js +2 -3
- package/es/Form/components/FormTitle.d.ts +2 -2
- package/es/Form/components/FormTitle.js +2 -3
- package/es/Grid/Grid.d.ts +2 -2
- package/es/Grid/Grid.js +2 -3
- package/es/GroupAvatar/GroupAvatar.d.ts +2 -2
- package/es/GroupAvatar/GroupAvatar.js +3 -3
- package/es/Img/index.d.ts +2 -2
- package/es/Img/index.js +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +3 -3
- package/es/ScrollShadow/ScrollShadow.d.ts +2 -2
- package/es/ScrollShadow/ScrollShadow.js +3 -3
- package/es/Skeleton/Skeleton.d.ts +2 -2
- package/es/Skeleton/Skeleton.js +2 -3
- package/es/Skeleton/SkeletonAvatar.d.ts +2 -2
- package/es/Skeleton/SkeletonAvatar.js +2 -3
- package/es/Skeleton/SkeletonBlock.d.ts +2 -2
- package/es/Skeleton/SkeletonBlock.js +2 -3
- package/es/Skeleton/SkeletonButton.d.ts +2 -2
- package/es/Skeleton/SkeletonButton.js +2 -3
- package/es/Skeleton/SkeletonParagraph.d.ts +2 -2
- package/es/Skeleton/SkeletonParagraph.js +2 -3
- package/es/Skeleton/SkeletonTags.d.ts +2 -2
- package/es/Skeleton/SkeletonTags.js +2 -3
- package/es/Skeleton/SkeletonTitle.d.ts +2 -2
- package/es/Skeleton/SkeletonTitle.js +2 -3
- package/es/Snippet/Snippet.d.ts +2 -2
- package/es/Snippet/Snippet.js +3 -3
- package/es/Tabs/Tabs.d.ts +2 -2
- package/es/Tabs/Tabs.js +3 -3
- package/es/Tag/Tag.d.ts +2 -2
- package/es/Tag/Tag.js +3 -3
- package/es/Text/Text.d.ts +2 -2
- package/es/Text/Text.js +3 -3
- package/es/ThemeProvider/Meta.d.ts +2 -2
- package/es/ThemeProvider/Meta.js +3 -3
- package/es/ThemeSwitch/ThemeSwitch.d.ts +2 -2
- package/es/ThemeSwitch/ThemeSwitch.js +3 -3
- package/es/brand/Logo3d/index.d.ts +2 -2
- package/es/brand/Logo3d/index.js +2 -3
- package/es/brand/LogoThree/Loading.d.ts +3 -3
- package/es/brand/LogoThree/Loading.js +2 -3
- package/es/brand/components/Divider.d.ts +3 -3
- package/es/brand/components/Divider.js +3 -4
- package/es/chat/ChatHeader/ChatHeaderTitle.d.ts +2 -2
- package/es/chat/ChatHeader/ChatHeaderTitle.js +2 -3
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.ts +2 -2
- package/es/chat/ChatInputArea/components/ChatInputActionBar.js +2 -3
- package/es/chat/ChatInputArea/components/ChatSendButton.d.ts +2 -2
- package/es/chat/ChatInputArea/components/ChatSendButton.js +2 -3
- package/es/chat/ChatItem/components/Actions.d.ts +2 -2
- package/es/chat/ChatItem/components/Actions.js +2 -3
- package/es/chat/ChatItem/components/Avatar.d.ts +2 -2
- package/es/chat/ChatItem/components/Avatar.js +2 -3
- package/es/chat/ChatItem/components/BorderSpacing.d.ts +2 -2
- package/es/chat/ChatItem/components/BorderSpacing.js +2 -3
- package/es/chat/ChatItem/components/ErrorContent.d.ts +2 -2
- package/es/chat/ChatItem/components/ErrorContent.js +2 -3
- package/es/chat/ChatItem/components/Loading.d.ts +2 -2
- package/es/chat/ChatItem/components/Loading.js +2 -3
- package/es/chat/ChatItem/components/Title.d.ts +2 -2
- package/es/chat/ChatItem/components/Title.js +2 -3
- package/es/chat/ChatList/components/ChatActionsBar.d.ts +2 -2
- package/es/chat/ChatList/components/ChatActionsBar.js +2 -3
- package/es/chat/ChatList/components/HistoryDivider.d.ts +2 -2
- package/es/chat/ChatList/components/HistoryDivider.js +2 -3
- package/es/chat/LoadingDots/LoadingDots.d.ts +2 -2
- package/es/chat/LoadingDots/LoadingDots.js +2 -3
- package/es/chat/TokenTag/TokenTag.d.ts +2 -2
- package/es/chat/TokenTag/TokenTag.js +3 -3
- package/es/icons/Auth0/components/Avatar.d.ts +2 -2
- package/es/icons/Auth0/components/Avatar.js +2 -3
- package/es/icons/Authelia/components/Avatar.d.ts +2 -2
- package/es/icons/Authelia/components/Avatar.js +2 -3
- package/es/icons/Authentik/components/Avatar.d.ts +2 -2
- package/es/icons/Authentik/components/Avatar.js +2 -3
- package/es/icons/Casdoor/components/Avatar.d.ts +2 -2
- package/es/icons/Casdoor/components/Avatar.js +2 -3
- package/es/icons/Clerk/components/Avatar.d.ts +2 -2
- package/es/icons/Clerk/components/Avatar.js +2 -3
- package/es/icons/Logto/components/Avatar.d.ts +2 -2
- package/es/icons/Logto/components/Avatar.js +2 -3
- package/es/icons/MicrosoftEntra/components/Avatar.d.ts +2 -2
- package/es/icons/MicrosoftEntra/components/Avatar.js +2 -3
- package/es/icons/NextAuth/components/Avatar.d.ts +2 -2
- package/es/icons/NextAuth/components/Avatar.js +2 -3
- package/es/icons/Zitadel/components/Avatar.d.ts +2 -2
- package/es/icons/Zitadel/components/Avatar.js +2 -3
- package/es/mobile/SafeArea/SafeArea.d.ts +2 -2
- package/es/mobile/SafeArea/SafeArea.js +2 -3
- package/package.json +1 -1
package/es/A/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Ref } from 'react';
|
|
1
|
+
import { type FC, type Ref } from 'react';
|
|
2
2
|
import type { AProps } from "../types";
|
|
3
|
-
declare const A:
|
|
4
|
-
ref?: Ref<HTMLAnchorElement
|
|
3
|
+
declare const A: FC<AProps & {
|
|
4
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
5
5
|
}>;
|
|
6
6
|
export default A;
|
package/es/A/index.js
CHANGED
|
@@ -14,13 +14,13 @@ var createContainer = function createContainer(as) {
|
|
|
14
14
|
return /*#__PURE__*/createElement(as, props);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
var A =
|
|
17
|
+
var A = function A(props) {
|
|
18
18
|
var config = use(ConfigContext);
|
|
19
19
|
var render = (config === null || config === void 0 ? void 0 : config.aAs) || 'a';
|
|
20
20
|
var AContainer = useMemo(function () {
|
|
21
21
|
return createContainer(render);
|
|
22
22
|
}, [render]);
|
|
23
23
|
return /*#__PURE__*/_jsx(AContainer, _objectSpread({}, props));
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
A.displayName = 'A';
|
|
26
26
|
export default A;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { ActionIconGroupProps } from './type';
|
|
3
|
-
declare const ActionIconGroup:
|
|
3
|
+
declare const ActionIconGroup: FC<ActionIconGroupProps>;
|
|
4
4
|
export default ActionIconGroup;
|
|
@@ -12,14 +12,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
12
12
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
14
14
|
import { MoreHorizontal } from 'lucide-react';
|
|
15
|
-
import {
|
|
15
|
+
import { useMemo } from 'react';
|
|
16
16
|
import ActionIcon from "../ActionIcon";
|
|
17
17
|
import Dropdown from "../Dropdown";
|
|
18
18
|
import { Center } from "../Flex";
|
|
19
19
|
import { useStyles } from "./style";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
var ActionIconGroup =
|
|
22
|
+
var ActionIconGroup = function ActionIconGroup(_ref) {
|
|
23
23
|
var _ref$variant = _ref.variant,
|
|
24
24
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
25
25
|
disabled = _ref.disabled,
|
|
@@ -132,6 +132,6 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
|
|
|
132
132
|
}), "more")
|
|
133
133
|
})]
|
|
134
134
|
}));
|
|
135
|
-
}
|
|
135
|
+
};
|
|
136
136
|
ActionIconGroup.displayName = 'ActionIconGroup';
|
|
137
137
|
export default ActionIconGroup;
|
package/es/Block/Block.d.ts
CHANGED
package/es/Block/Block.js
CHANGED
|
@@ -10,11 +10,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { cva } from 'class-variance-authority';
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
14
|
import { Flexbox } from "../Flex";
|
|
15
15
|
import { useStyles } from "./style";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Block =
|
|
17
|
+
var Block = function Block(_ref) {
|
|
18
18
|
var className = _ref.className,
|
|
19
19
|
_ref$variant = _ref.variant,
|
|
20
20
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
@@ -82,6 +82,6 @@ var Block = /*#__PURE__*/memo(function (_ref) {
|
|
|
82
82
|
}, rest), {}, {
|
|
83
83
|
children: children
|
|
84
84
|
}));
|
|
85
|
-
}
|
|
85
|
+
};
|
|
86
86
|
Block.displayName = 'Block';
|
|
87
87
|
export default Block;
|
package/es/Button/Button.d.ts
CHANGED
package/es/Button/Button.js
CHANGED
|
@@ -12,11 +12,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
12
|
import { Button as AntdButton } from 'antd';
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
14
14
|
import { Loader2Icon } from 'lucide-react';
|
|
15
|
-
import { isValidElement,
|
|
15
|
+
import { isValidElement, useMemo } from 'react';
|
|
16
16
|
import Icon from "../Icon";
|
|
17
17
|
import { useStyles } from "./style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
var Button =
|
|
19
|
+
var Button = function Button(_ref) {
|
|
20
20
|
var icon = _ref.icon,
|
|
21
21
|
variant = _ref.variant,
|
|
22
22
|
glass = _ref.glass,
|
|
@@ -85,5 +85,5 @@ var Button = /*#__PURE__*/memo(function (_ref) {
|
|
|
85
85
|
}, rest), {}, {
|
|
86
86
|
children: children
|
|
87
87
|
}));
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
89
|
export default Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { ColorSwatchesProps } from './type';
|
|
3
|
-
declare const ColorSwatches:
|
|
3
|
+
declare const ColorSwatches: FC<ColorSwatchesProps>;
|
|
4
4
|
export default ColorSwatches;
|
|
@@ -19,7 +19,7 @@ import { ColorPicker } from 'antd';
|
|
|
19
19
|
import chroma from 'chroma-js';
|
|
20
20
|
import { CheckIcon } from 'lucide-react';
|
|
21
21
|
import { readableColor, rgba } from 'polished';
|
|
22
|
-
import {
|
|
22
|
+
import { useMemo } from 'react';
|
|
23
23
|
import useMergeState from 'use-merge-value';
|
|
24
24
|
import { Center, Flexbox } from "../Flex";
|
|
25
25
|
import Icon from "../Icon";
|
|
@@ -27,7 +27,7 @@ import Tooltip from "../Tooltip";
|
|
|
27
27
|
import { useStyles } from "./style";
|
|
28
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
29
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
-
var ColorSwatches =
|
|
30
|
+
var ColorSwatches = function ColorSwatches(_ref) {
|
|
31
31
|
var enableColorPicker = _ref.enableColorPicker,
|
|
32
32
|
_ref$enableColorSwatc = _ref.enableColorSwatches,
|
|
33
33
|
enableColorSwatches = _ref$enableColorSwatc === void 0 ? true : _ref$enableColorSwatc,
|
|
@@ -124,6 +124,6 @@ var ColorSwatches = /*#__PURE__*/memo(function (_ref) {
|
|
|
124
124
|
})
|
|
125
125
|
})]
|
|
126
126
|
}));
|
|
127
|
-
}
|
|
127
|
+
};
|
|
128
128
|
ColorSwatches.displayName = 'ColorSwatches';
|
|
129
129
|
export default ColorSwatches;
|
package/es/Empty/Empty.d.ts
CHANGED
package/es/Empty/Empty.js
CHANGED
|
@@ -11,7 +11,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { Empty as AntEmpty } from 'antd';
|
|
13
13
|
import { useTheme } from 'antd-style';
|
|
14
|
-
import { memo } from 'react';
|
|
15
14
|
import Block from "../Block";
|
|
16
15
|
import { Flexbox } from "../Flex";
|
|
17
16
|
import FluentEmoji from "../FluentEmoji";
|
|
@@ -19,7 +18,7 @@ import Icon from "../Icon";
|
|
|
19
18
|
import Text from "../Text";
|
|
20
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
var Empty =
|
|
21
|
+
var Empty = function Empty(_ref) {
|
|
23
22
|
var title = _ref.title,
|
|
24
23
|
description = _ref.description,
|
|
25
24
|
icon = _ref.icon,
|
|
@@ -92,6 +91,6 @@ var Empty = /*#__PURE__*/memo(function (_ref) {
|
|
|
92
91
|
children: action
|
|
93
92
|
}))]
|
|
94
93
|
}));
|
|
95
|
-
}
|
|
94
|
+
};
|
|
96
95
|
Empty.displayName = 'Empty';
|
|
97
96
|
export default Empty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { FileTypeIconProps } from './type';
|
|
3
|
-
declare const FileTypeIcon:
|
|
3
|
+
declare const FileTypeIcon: FC<FileTypeIconProps>;
|
|
4
4
|
export default FileTypeIcon;
|
|
@@ -9,14 +9,14 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import {
|
|
12
|
+
import { useMemo } from 'react';
|
|
13
13
|
import { Center } from "../Flex";
|
|
14
14
|
import FileIcon from "./components/FileIcon";
|
|
15
15
|
import FolderIcon from "./components/FolderIcon";
|
|
16
16
|
import { useStyles } from "./style";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
var FileTypeIcon =
|
|
19
|
+
var FileTypeIcon = function FileTypeIcon(_ref) {
|
|
20
20
|
var icon = _ref.icon,
|
|
21
21
|
color = _ref.color,
|
|
22
22
|
filetype = _ref.filetype,
|
|
@@ -79,6 +79,6 @@ var FileTypeIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
79
79
|
children: icon
|
|
80
80
|
}), content]
|
|
81
81
|
}));
|
|
82
|
-
}
|
|
82
|
+
};
|
|
83
83
|
FileTypeIcon.displayName = 'FileTypeIcon';
|
|
84
84
|
export default FileTypeIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { SvgProps } from "../../types";
|
|
3
3
|
interface FileIconProps extends SvgProps {
|
|
4
4
|
filetypeShort?: string;
|
|
@@ -8,5 +8,5 @@ interface FileIconProps extends SvgProps {
|
|
|
8
8
|
isMono?: boolean;
|
|
9
9
|
size?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const FileIcon:
|
|
11
|
+
declare const FileIcon: FC<FileIconProps>;
|
|
12
12
|
export default FileIcon;
|
|
@@ -7,11 +7,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
import { memo } from 'react';
|
|
11
10
|
import { useStyles } from "../style";
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
var FileIcon =
|
|
13
|
+
var FileIcon = function FileIcon(_ref) {
|
|
15
14
|
var size = _ref.size,
|
|
16
15
|
isMono = _ref.isMono,
|
|
17
16
|
hasIcon = _ref.hasIcon,
|
|
@@ -55,5 +54,5 @@ var FileIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
55
54
|
strokeWidth: 0.5
|
|
56
55
|
})]
|
|
57
56
|
}));
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
export default FileIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { SvgProps } from "../../types";
|
|
3
3
|
interface FolderIconProps extends SvgProps {
|
|
4
4
|
filetype?: string;
|
|
@@ -8,5 +8,5 @@ interface FolderIconProps extends SvgProps {
|
|
|
8
8
|
isMono?: boolean;
|
|
9
9
|
size?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const FolderIcon:
|
|
11
|
+
declare const FolderIcon: FC<FolderIconProps>;
|
|
12
12
|
export default FolderIcon;
|
|
@@ -7,11 +7,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
import { memo } from 'react';
|
|
11
10
|
import { useStyles } from "../style";
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
var FolderIcon =
|
|
13
|
+
var FolderIcon = function FolderIcon(_ref) {
|
|
15
14
|
var size = _ref.size,
|
|
16
15
|
isMono = _ref.isMono,
|
|
17
16
|
hasIcon = _ref.hasIcon,
|
|
@@ -48,5 +47,5 @@ var FolderIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
48
47
|
children: filetype.toUpperCase()
|
|
49
48
|
})]
|
|
50
49
|
}));
|
|
51
|
-
}
|
|
50
|
+
};
|
|
52
51
|
export default FolderIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { FluentEmojiProps } from './type';
|
|
3
|
-
declare const FluentEmoji:
|
|
3
|
+
declare const FluentEmoji: FC<FluentEmojiProps>;
|
|
4
4
|
export default FluentEmoji;
|
|
@@ -15,14 +15,14 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
|
-
import {
|
|
18
|
+
import { useMemo, useState } from 'react';
|
|
19
19
|
import { useCdnFn } from "../ConfigProvider";
|
|
20
20
|
import { Center } from "../Flex";
|
|
21
21
|
import Img from "../Img";
|
|
22
22
|
import { useStyles } from "./style";
|
|
23
23
|
import { genEmojiUrl } from "./utils";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
var FluentEmoji =
|
|
25
|
+
var FluentEmoji = function FluentEmoji(_ref) {
|
|
26
26
|
var emoji = _ref.emoji,
|
|
27
27
|
className = _ref.className,
|
|
28
28
|
style = _ref.style,
|
|
@@ -73,6 +73,6 @@ var FluentEmoji = /*#__PURE__*/memo(function (_ref) {
|
|
|
73
73
|
unoptimized: unoptimized,
|
|
74
74
|
width: size
|
|
75
75
|
}, rest));
|
|
76
|
-
}
|
|
76
|
+
};
|
|
77
77
|
FluentEmoji.displayName = 'FluentEmoji';
|
|
78
78
|
export default FluentEmoji;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { FormDividerProps } from '../type';
|
|
3
|
-
declare const FormDivider:
|
|
3
|
+
declare const FormDivider: FC<FormDividerProps>;
|
|
4
4
|
export default FormDivider;
|
|
@@ -13,7 +13,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
14
14
|
import { Divider as AntDivider } from 'antd';
|
|
15
15
|
import { createStyles } from 'antd-style';
|
|
16
|
-
import { memo } from 'react';
|
|
17
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
17
|
var useStyles = createStyles(function (_ref) {
|
|
19
18
|
var css = _ref.css;
|
|
@@ -21,7 +20,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
21
20
|
root: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0;\n opacity: 0.66;\n "])))
|
|
22
21
|
};
|
|
23
22
|
});
|
|
24
|
-
var FormDivider =
|
|
23
|
+
var FormDivider = function FormDivider(_ref2) {
|
|
25
24
|
var _ref2$visible = _ref2.visible,
|
|
26
25
|
visible = _ref2$visible === void 0 ? true : _ref2$visible,
|
|
27
26
|
style = _ref2.style,
|
|
@@ -36,6 +35,6 @@ var FormDivider = /*#__PURE__*/memo(function (_ref2) {
|
|
|
36
35
|
opacity: visible ? 1 : 0
|
|
37
36
|
}, style)
|
|
38
37
|
}, rest));
|
|
39
|
-
}
|
|
38
|
+
};
|
|
40
39
|
FormDivider.displayName = 'FormDivider';
|
|
41
40
|
export default FormDivider;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { FormFooterProps } from '../type';
|
|
3
|
+
declare const FormFooter: FC<FormFooterProps>;
|
|
3
4
|
export default FormFooter;
|
|
@@ -9,11 +9,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { memo } from 'react';
|
|
13
12
|
import { Flexbox } from "../../Flex";
|
|
14
13
|
import { useFooterStyles as useStyles } from "../style";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
var FormFooter =
|
|
15
|
+
var FormFooter = function FormFooter(_ref) {
|
|
17
16
|
var className = _ref.className,
|
|
18
17
|
children = _ref.children,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -29,6 +28,6 @@ var FormFooter = /*#__PURE__*/memo(function (_ref) {
|
|
|
29
28
|
}, rest), {}, {
|
|
30
29
|
children: children
|
|
31
30
|
}));
|
|
32
|
-
}
|
|
31
|
+
};
|
|
33
32
|
FormFooter.displayName = 'FormFooter';
|
|
34
33
|
export default FormFooter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { FormTitleProps } from '../type';
|
|
3
|
-
declare const FormTitle:
|
|
3
|
+
declare const FormTitle: FC<FormTitleProps>;
|
|
4
4
|
export default FormTitle;
|
|
@@ -9,13 +9,12 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { memo } from 'react';
|
|
13
12
|
import { Flexbox } from "../../Flex";
|
|
14
13
|
import Tag from "../../Tag";
|
|
15
14
|
import { useTitleStyles as useStyles } from "../style";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var FormTitle =
|
|
17
|
+
var FormTitle = function FormTitle(_ref) {
|
|
19
18
|
var tag = _ref.tag,
|
|
20
19
|
title = _ref.title,
|
|
21
20
|
desc = _ref.desc,
|
|
@@ -53,6 +52,6 @@ var FormTitle = /*#__PURE__*/memo(function (_ref) {
|
|
|
53
52
|
})]
|
|
54
53
|
})]
|
|
55
54
|
}));
|
|
56
|
-
}
|
|
55
|
+
};
|
|
57
56
|
FormTitle.displayName = 'FormTitle';
|
|
58
57
|
export default FormTitle;
|
package/es/Grid/Grid.d.ts
CHANGED
package/es/Grid/Grid.js
CHANGED
|
@@ -9,11 +9,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { memo } from 'react';
|
|
13
12
|
import { Flexbox } from "../Flex";
|
|
14
13
|
import { useStyles } from "./style";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
var Grid =
|
|
15
|
+
var Grid = function Grid(_ref) {
|
|
17
16
|
var className = _ref.className,
|
|
18
17
|
_ref$gap = _ref.gap,
|
|
19
18
|
gap = _ref$gap === void 0 ? '1em' : _ref$gap,
|
|
@@ -38,6 +37,6 @@ var Grid = /*#__PURE__*/memo(function (_ref) {
|
|
|
38
37
|
}, rest), {}, {
|
|
39
38
|
children: children
|
|
40
39
|
}));
|
|
41
|
-
}
|
|
40
|
+
};
|
|
42
41
|
Grid.displayName = 'Grid';
|
|
43
42
|
export default Grid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { GroupAvatarProps } from './type';
|
|
3
|
-
declare const GroupAvatar:
|
|
3
|
+
declare const GroupAvatar: FC<GroupAvatarProps>;
|
|
4
4
|
export default GroupAvatar;
|
|
@@ -10,13 +10,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { cva } from 'class-variance-authority';
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
14
|
import Avatar from "../Avatar";
|
|
15
15
|
import Block from "../Block";
|
|
16
16
|
import Grid from "../Grid";
|
|
17
17
|
import { useStyles } from "./style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
var GroupAvatar =
|
|
19
|
+
var GroupAvatar = function GroupAvatar(_ref) {
|
|
20
20
|
var className = _ref.className,
|
|
21
21
|
style = _ref.style,
|
|
22
22
|
_ref$avatars = _ref.avatars,
|
|
@@ -98,5 +98,5 @@ var GroupAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
98
98
|
})
|
|
99
99
|
})
|
|
100
100
|
}));
|
|
101
|
-
}
|
|
101
|
+
};
|
|
102
102
|
export default GroupAvatar;
|
package/es/Img/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ImageProps } from 'antd';
|
|
2
|
-
import { Ref } from 'react';
|
|
2
|
+
import { type FC, type Ref } from 'react';
|
|
3
3
|
import type { ImgProps as HtmlImgeProps } from "../types";
|
|
4
4
|
type ImgProps = HtmlImgeProps & ImageProps & {
|
|
5
5
|
ref?: Ref<HTMLImageElement>;
|
|
6
6
|
unoptimized?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const Img:
|
|
8
|
+
declare const Img: FC<ImgProps>;
|
|
9
9
|
export default Img;
|
package/es/Img/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var createContainer = function createContainer(as) {
|
|
|
17
17
|
return /*#__PURE__*/createElement(as, props);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
var Img =
|
|
20
|
+
var Img = function Img(_ref) {
|
|
21
21
|
var unoptimized = _ref.unoptimized,
|
|
22
22
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
23
|
var config = use(ConfigContext);
|
|
@@ -28,6 +28,6 @@ var Img = /*#__PURE__*/memo(function (_ref) {
|
|
|
28
28
|
return /*#__PURE__*/_jsx(ImgContainer, _objectSpread({
|
|
29
29
|
unoptimized: unoptimized === undefined ? config === null || config === void 0 ? void 0 : config.imgUnoptimized : unoptimized
|
|
30
30
|
}, rest));
|
|
31
|
-
}
|
|
31
|
+
};
|
|
32
32
|
Img.displayName = 'Img';
|
|
33
33
|
export default Img;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { MaterialFileTypeIconProps } from './type';
|
|
3
|
-
declare const MaterialFileTypeIcon:
|
|
3
|
+
declare const MaterialFileTypeIcon: FC<MaterialFileTypeIconProps>;
|
|
4
4
|
export default MaterialFileTypeIcon;
|
|
@@ -9,7 +9,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import {
|
|
12
|
+
import { useMemo } from 'react';
|
|
13
13
|
import { useCdnFn } from "../ConfigProvider";
|
|
14
14
|
import FileTypeIcon from "../FileTypeIcon";
|
|
15
15
|
import { Center } from "../Flex";
|
|
@@ -17,7 +17,7 @@ import Img from "../Img";
|
|
|
17
17
|
import { getIconUrlForDirectoryPath, getIconUrlForFilePath } from "./utils";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
var MaterialFileTypeIcon =
|
|
20
|
+
var MaterialFileTypeIcon = function MaterialFileTypeIcon(_ref) {
|
|
21
21
|
var _ref$fallbackUnknownT = _ref.fallbackUnknownType,
|
|
22
22
|
fallbackUnknownType = _ref$fallbackUnknownT === void 0 ? true : _ref$fallbackUnknownT,
|
|
23
23
|
filename = _ref.filename,
|
|
@@ -83,6 +83,6 @@ var MaterialFileTypeIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
83
83
|
width: size / 2
|
|
84
84
|
}, rest))]
|
|
85
85
|
}));
|
|
86
|
-
}
|
|
86
|
+
};
|
|
87
87
|
MaterialFileTypeIcon.displayName = 'MaterialFileTypeIcon';
|
|
88
88
|
export default MaterialFileTypeIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { ScrollShadowProps } from './type';
|
|
3
|
-
declare const ScrollShadow:
|
|
3
|
+
declare const ScrollShadow: FC<ScrollShadowProps>;
|
|
4
4
|
export default ScrollShadow;
|
|
@@ -10,13 +10,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { cva } from 'class-variance-authority';
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo, useRef } from 'react';
|
|
14
14
|
import { mergeRefs } from 'react-merge-refs';
|
|
15
15
|
import { Flexbox } from "../Flex";
|
|
16
16
|
import { useStyles } from "./style";
|
|
17
17
|
import { useScrollOverflow } from "./useScrollOverflow";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
var ScrollShadow =
|
|
19
|
+
var ScrollShadow = function ScrollShadow(_ref) {
|
|
20
20
|
var className = _ref.className,
|
|
21
21
|
children = _ref.children,
|
|
22
22
|
_ref$orientation = _ref.orientation,
|
|
@@ -150,6 +150,6 @@ var ScrollShadow = /*#__PURE__*/memo(function (_ref) {
|
|
|
150
150
|
}, dataAttributes), rest), {}, {
|
|
151
151
|
children: children
|
|
152
152
|
}));
|
|
153
|
-
}
|
|
153
|
+
};
|
|
154
154
|
ScrollShadow.displayName = 'ScrollShadow';
|
|
155
155
|
export default ScrollShadow;
|