@lobehub/ui 3.3.1 → 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/Accordion/AccordionItem.js +1 -1
- package/es/ActionIcon/ActionIcon.js +1 -1
- package/es/ActionIcon/type.d.ts +1 -1
- package/es/ActionIconGroup/ActionIconGroup.d.ts +2 -2
- package/es/ActionIconGroup/ActionIconGroup.js +4 -4
- package/es/ActionIconGroup/type.d.ts +1 -1
- package/es/Alert/Alert.js +1 -1
- package/es/Avatar/Avatar.js +3 -4
- package/es/Avatar/AvatarGroup/index.js +1 -1
- package/es/Avatar/type.d.ts +1 -1
- package/es/Block/Block.d.ts +2 -2
- package/es/Block/Block.js +4 -4
- package/es/Block/type.d.ts +1 -1
- package/es/Burger/Burger.js +1 -1
- package/es/Button/Button.d.ts +2 -2
- package/es/Button/Button.js +3 -3
- package/es/CodeEditor/CodeEditor.js +1 -1
- package/es/CodeEditor/type.d.ts +1 -1
- package/es/Collapse/Collapse.js +1 -1
- package/es/ColorSwatches/ColorSwatches.d.ts +2 -2
- package/es/ColorSwatches/ColorSwatches.js +4 -4
- package/es/ColorSwatches/type.d.ts +1 -1
- package/es/DraggablePanel/DraggablePanel.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelBody.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelContainer.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelFooter.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelHeader.js +1 -1
- package/es/DraggableSideNav/DraggableSideNav.js +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/EditableText/ControlInput.js +1 -1
- package/es/EditableText/EditableText.js +1 -1
- package/es/EditableText/type.d.ts +1 -1
- package/es/EmojiPicker/AvatarUploader.js +1 -1
- package/es/EmojiPicker/EmojiPicker.js +1 -1
- package/es/Empty/Empty.d.ts +2 -2
- package/es/Empty/Empty.js +3 -4
- package/es/Empty/type.d.ts +1 -1
- package/es/FileTypeIcon/FileTypeIcon.d.ts +2 -2
- package/es/FileTypeIcon/FileTypeIcon.js +4 -4
- 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/Flex/style.css +29 -13
- package/es/FluentEmoji/FluentEmoji.d.ts +2 -2
- package/es/FluentEmoji/FluentEmoji.js +4 -4
- package/es/Footer/Footer.js +1 -1
- package/es/Footer/type.d.ts +1 -1
- package/es/Form/components/FormDivider.d.ts +2 -2
- package/es/Form/components/FormDivider.js +2 -3
- package/es/Form/components/FormFlatGroup.js +1 -1
- package/es/Form/components/FormFooter.d.ts +3 -2
- package/es/Form/components/FormFooter.js +3 -4
- package/es/Form/components/FormGroup.js +1 -1
- package/es/Form/components/FormSubmitFooter.js +1 -1
- package/es/Form/components/FormTitle.d.ts +2 -2
- package/es/Form/components/FormTitle.js +3 -4
- package/es/Form/type.d.ts +1 -1
- package/es/FormModal/FormModal.js +1 -1
- package/es/Grid/Grid.d.ts +2 -2
- package/es/Grid/Grid.js +3 -4
- package/es/Grid/type.d.ts +1 -1
- package/es/GroupAvatar/GroupAvatar.d.ts +2 -2
- package/es/GroupAvatar/GroupAvatar.js +5 -5
- package/es/GuideCard/GuideCard.js +1 -1
- package/es/GuideCard/type.d.ts +1 -1
- package/es/Header/Header.js +1 -1
- package/es/Header/type.d.ts +1 -1
- package/es/Highlighter/FullFeatured.js +37 -27
- package/es/Highlighter/Highlighter.js +5 -2
- package/es/Highlighter/LangSelect.js +9 -5
- package/es/Highlighter/style.d.ts +0 -1
- package/es/Highlighter/style.js +8 -9
- package/es/Highlighter/type.d.ts +1 -1
- package/es/Hotkey/Hotkey.js +1 -1
- package/es/Hotkey/type.d.ts +1 -1
- package/es/Hotkey/utils.d.ts +1 -1
- package/es/HotkeyInput/HotkeyInput.js +1 -1
- package/es/Image/Image.js +1 -1
- package/es/Image/components/Toolbar.js +1 -7
- package/es/Image/components/usePreview.js +1 -3
- package/es/Image/style.js +5 -4
- package/es/ImageSelect/ImageSelect.js +1 -1
- package/es/ImageSelect/type.d.ts +1 -1
- package/es/Img/index.d.ts +2 -2
- package/es/Img/index.js +2 -2
- package/es/List/List.js +1 -1
- package/es/List/ListItem/index.js +1 -1
- package/es/List/type.d.ts +1 -1
- package/es/Markdown/components/Footnotes.js +1 -1
- package/es/Markdown/components/SearchResultCards/SearchResultCard.js +1 -1
- package/es/Markdown/components/SearchResultCards/index.d.ts +1 -1
- package/es/MaskShadow/MaskShadow.js +1 -1
- package/es/MaskShadow/type.d.ts +1 -1
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +4 -4
- package/es/Mermaid/FullFeatured.js +21 -9
- package/es/Mermaid/Mermaid.js +5 -2
- package/es/Mermaid/SyntaxMermaid/index.js +0 -4
- package/es/ScrollShadow/ScrollShadow.d.ts +2 -2
- package/es/ScrollShadow/ScrollShadow.js +4 -4
- package/es/ScrollShadow/type.d.ts +1 -1
- package/es/SideNav/SideNav.js +1 -1
- package/es/SideNav/type.d.ts +1 -1
- package/es/Skeleton/Skeleton.d.ts +2 -2
- package/es/Skeleton/Skeleton.js +3 -4
- 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 +3 -4
- package/es/Skeleton/SkeletonTags.d.ts +2 -2
- package/es/Skeleton/SkeletonTags.js +3 -4
- package/es/Skeleton/SkeletonTitle.d.ts +2 -2
- package/es/Skeleton/SkeletonTitle.js +2 -3
- package/es/SliderWithInput/SliderWithInput.js +1 -1
- package/es/SliderWithInput/type.d.ts +1 -1
- package/es/Snippet/Snippet.d.ts +2 -2
- package/es/Snippet/Snippet.js +4 -4
- package/es/Snippet/type.d.ts +1 -1
- package/es/SortableList/SortableList.js +1 -1
- package/es/SortableList/components/SortableItem.d.ts +1 -1
- package/es/SortableList/components/SortableItem.js +1 -1
- package/es/SortableList/type.d.ts +1 -1
- 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 +4 -4
- package/es/Tooltip/TooltipFloating.js +1 -1
- package/es/Video/index.d.ts +1 -1
- package/es/Video/index.js +1 -1
- package/es/awesome/AuroraBackground/AuroraBackground.js +1 -1
- package/es/awesome/AuroraBackground/type.d.ts +1 -1
- package/es/awesome/Features/FeatureItem.js +1 -1
- package/es/awesome/GridBackground/GridShowcase.js +1 -1
- package/es/awesome/GridBackground/type.d.ts +1 -1
- package/es/awesome/Hero/Hero.js +1 -1
- package/es/awesome/SpotlightCard/SpotlightCardItem.js +1 -1
- package/es/brand/LobeChat/index.js +1 -1
- package/es/brand/LobeHub/index.js +1 -1
- 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 +3 -4
- package/es/brand/LogoThree/index.js +1 -1
- package/es/brand/components/Divider.d.ts +3 -3
- package/es/brand/components/Divider.js +3 -4
- package/es/chat/Bubble/Bubble.js +1 -1
- package/es/chat/Bubble/type.d.ts +1 -1
- package/es/chat/ChatHeader/ChatHeader.js +1 -1
- package/es/chat/ChatHeader/ChatHeaderTitle.d.ts +2 -2
- package/es/chat/ChatHeader/ChatHeaderTitle.js +3 -4
- package/es/chat/ChatHeader/type.d.ts +1 -1
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.ts +2 -2
- package/es/chat/ChatInputArea/components/ChatInputActionBar.js +3 -4
- package/es/chat/ChatInputArea/components/ChatSendButton.d.ts +2 -2
- package/es/chat/ChatInputArea/components/ChatSendButton.js +3 -4
- package/es/chat/ChatInputArea/type.d.ts +1 -1
- package/es/chat/ChatItem/ChatItem.js +1 -1
- package/es/chat/ChatItem/components/Actions.d.ts +2 -2
- package/es/chat/ChatItem/components/Actions.js +3 -4
- package/es/chat/ChatItem/components/Avatar.d.ts +2 -2
- package/es/chat/ChatItem/components/Avatar.js +3 -4
- 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 +3 -4
- package/es/chat/ChatItem/components/Loading.d.ts +2 -2
- package/es/chat/ChatItem/components/Loading.js +3 -4
- package/es/chat/ChatItem/components/MessageContent.js +1 -1
- package/es/chat/ChatItem/components/Title.d.ts +2 -2
- package/es/chat/ChatItem/components/Title.js +3 -4
- package/es/chat/ChatItem/type.d.ts +1 -1
- 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/EditableMessageList/EditableMessageList.js +1 -1
- package/es/chat/LoadingDots/LoadingDots.d.ts +2 -2
- package/es/chat/LoadingDots/LoadingDots.js +2 -3
- package/es/chat/MessageInput/MessageInput.js +1 -1
- package/es/chat/MessageInput/type.d.ts +1 -1
- package/es/chat/MessageModal/MessageModal.js +1 -1
- package/es/chat/TokenTag/TokenTag.d.ts +2 -2
- package/es/chat/TokenTag/TokenTag.js +3 -3
- package/es/color/ColorScales/ScaleRow.js +1 -1
- package/es/color/ColorScales/index.js +1 -1
- 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/mdx/Callout/index.d.ts +1 -1
- package/es/mdx/Callout/index.js +1 -1
- package/es/mdx/Cards/Card.js +1 -1
- package/es/mdx/FileTree/File.d.ts +1 -1
- package/es/mdx/FileTree/File.js +1 -1
- package/es/mdx/FileTree/Folder.d.ts +1 -1
- package/es/mdx/FileTree/Folder.js +1 -1
- package/es/mdx/Tabs/index.d.ts +1 -1
- package/es/mdx/Tabs/index.js +1 -1
- package/es/mdx/mdxComponents/Citation/PopoverPanel.js +1 -1
- package/es/mobile/ChatHeader/ChatHeader.js +1 -1
- package/es/mobile/ChatHeader/ChatHeaderTitle.js +1 -1
- package/es/mobile/ChatHeader/type.d.ts +1 -1
- package/es/mobile/ChatInputArea/ChatInputArea.js +1 -1
- package/es/mobile/SafeArea/SafeArea.d.ts +2 -2
- package/es/mobile/SafeArea/SafeArea.js +2 -3
- package/es/mobile/TabBar/TabBar.js +1 -1
- package/es/mobile/TabBar/type.d.ts +1 -1
- package/es/storybook/StoryBook/index.d.ts +1 -1
- package/es/storybook/StoryBook/index.js +1 -1
- package/package.json +1 -2
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;
|
|
@@ -7,8 +7,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
8
|
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); }
|
|
9
9
|
import { memo, useCallback, useMemo } from 'react';
|
|
10
|
-
import { Flexbox } from 'react-layout-kit';
|
|
11
10
|
import Block from "../Block";
|
|
11
|
+
import { Flexbox } from "../Flex";
|
|
12
12
|
import Text from "../Text";
|
|
13
13
|
import { LazyMotion, m } from "../motion";
|
|
14
14
|
import ArrowIcon from "./ArrowIcon";
|
|
@@ -12,7 +12,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
12
|
import { cva } from 'class-variance-authority';
|
|
13
13
|
import { Loader2 } from 'lucide-react';
|
|
14
14
|
import { memo, useCallback, useMemo } from 'react';
|
|
15
|
-
import { Center } from
|
|
15
|
+
import { Center } from "../Flex";
|
|
16
16
|
import Icon from "../Icon";
|
|
17
17
|
import Tooltip from "../Tooltip";
|
|
18
18
|
import { calcSize } from "./components/utils";
|
package/es/ActionIcon/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode, Ref } from 'react';
|
|
2
|
-
import type { CenterProps } from
|
|
2
|
+
import type { CenterProps } from "../Flex";
|
|
3
3
|
import type { IconProps, IconSizeConfig, IconSizeType, LucideIconProps } from "../Icon";
|
|
4
4
|
import type { TooltipProps } from "../Tooltip";
|
|
5
5
|
interface ActionIconSizeConfig extends IconSizeConfig {
|
|
@@ -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 {
|
|
16
|
-
import { Center } from 'react-layout-kit';
|
|
15
|
+
import { useMemo } from 'react';
|
|
17
16
|
import ActionIcon from "../ActionIcon";
|
|
18
17
|
import Dropdown from "../Dropdown";
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref } from 'react';
|
|
2
|
-
import type { CenterProps } from 'react-layout-kit';
|
|
3
2
|
import type { ActionIconProps } from "../ActionIcon";
|
|
4
3
|
import type { DropdownProps } from "../Dropdown";
|
|
4
|
+
import type { CenterProps } from "../Flex";
|
|
5
5
|
import type { MenuInfo, MenuItemType } from "../Menu";
|
|
6
6
|
export type ActionIconGroupEvent = Pick<MenuInfo, 'key' | 'keyPath' | 'domEvent'>;
|
|
7
7
|
export interface ActionIconGroupProps extends Omit<CenterProps, 'children'> {
|
package/es/Alert/Alert.js
CHANGED
|
@@ -14,9 +14,9 @@ import { cva } from 'class-variance-authority';
|
|
|
14
14
|
import { camelCase } from 'lodash-es';
|
|
15
15
|
import { AlertTriangle, CheckCircle, Info, X, XCircle } from 'lucide-react';
|
|
16
16
|
import { memo, useMemo } from 'react';
|
|
17
|
-
import { Flexbox } from 'react-layout-kit';
|
|
18
17
|
import { Accordion, AccordionItem } from "../Accordion";
|
|
19
18
|
import ActionIcon from "../ActionIcon";
|
|
19
|
+
import { Flexbox } from "../Flex";
|
|
20
20
|
import Icon from "../Icon";
|
|
21
21
|
import { useStyles } from "./style";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -15,7 +15,7 @@ import { cva } from 'class-variance-authority';
|
|
|
15
15
|
import { Loader2 } from 'lucide-react';
|
|
16
16
|
import { readableColor } from 'polished';
|
|
17
17
|
import { isValidElement, memo, useMemo } from 'react';
|
|
18
|
-
import { Center } from
|
|
18
|
+
import { Center } from "../Flex";
|
|
19
19
|
import FluentEmoji from "../FluentEmoji";
|
|
20
20
|
import Icon from "../Icon";
|
|
21
21
|
import Img from "../Img";
|
|
@@ -32,8 +32,7 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
32
32
|
borderedColor = _ref.borderedColor,
|
|
33
33
|
_ref$size = _ref.size,
|
|
34
34
|
size = _ref$size === void 0 ? 48 : _ref$size,
|
|
35
|
-
|
|
36
|
-
shape = _ref$shape === void 0 ? 'circle' : _ref$shape,
|
|
35
|
+
shape = _ref.shape,
|
|
37
36
|
background = _ref.background,
|
|
38
37
|
style = _ref.style,
|
|
39
38
|
unoptimized = _ref.unoptimized,
|
|
@@ -110,7 +109,7 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
110
109
|
size: size,
|
|
111
110
|
src: isDefaultAntAvatar ? defualtAvatar : undefined,
|
|
112
111
|
style: _objectSpread({
|
|
113
|
-
background: background,
|
|
112
|
+
background: isDefaultAntAvatar ? background : background || theme.colorBorder,
|
|
114
113
|
boxShadow: bordered ? "".concat(theme.colorBgLayout, " 0 0 0 2px, ").concat(borderedColor || theme.colorTextTertiary, " 0 0 0 4px") : undefined,
|
|
115
114
|
color: readableColor(background || theme.colorBorder),
|
|
116
115
|
cursor: rest !== null && rest !== void 0 && rest.onClick ? 'pointer' : undefined,
|
|
@@ -11,7 +11,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
11
11
|
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; }
|
|
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 { memo } from 'react';
|
|
14
|
-
import { Flexbox } from
|
|
14
|
+
import { Flexbox } from "../../Flex";
|
|
15
15
|
import Avatar from "../Avatar";
|
|
16
16
|
import { useStyles } from "./style";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/Avatar/type.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AvatarProps as AntAvatarProps } from 'antd';
|
|
2
2
|
import type { CSSProperties, ReactNode, Ref } from 'react';
|
|
3
|
-
import type { FlexboxProps } from
|
|
3
|
+
import type { FlexboxProps } from "../Flex";
|
|
4
4
|
import type { TooltipProps } from "../Tooltip";
|
|
5
5
|
export interface AvatarProps extends AntAvatarProps {
|
|
6
6
|
animation?: boolean;
|
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 {
|
|
14
|
-
import { Flexbox } from
|
|
13
|
+
import { useMemo } from 'react';
|
|
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/Block/type.d.ts
CHANGED
package/es/Burger/Burger.js
CHANGED
|
@@ -12,8 +12,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
12
|
import { Drawer, Menu } from 'antd';
|
|
13
13
|
import { MenuIcon, X } from 'lucide-react';
|
|
14
14
|
import { memo } from 'react';
|
|
15
|
-
import { Center } from 'react-layout-kit';
|
|
16
15
|
import ActionIcon from "../ActionIcon";
|
|
16
|
+
import { Center } from "../Flex";
|
|
17
17
|
import { useStyles } from "./style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
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;
|
|
@@ -17,9 +17,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
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
18
|
import { cva } from 'class-variance-authority';
|
|
19
19
|
import { memo, useMemo } from 'react';
|
|
20
|
-
import { Flexbox } from 'react-layout-kit';
|
|
21
20
|
import useMergeState from 'use-merge-value';
|
|
22
21
|
import { useStyles } from "./style";
|
|
22
|
+
import { Flexbox } from "../Flex";
|
|
23
23
|
import SyntaxHighlighter from "../Highlighter/SyntaxHighlighter";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
package/es/CodeEditor/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, Ref } from 'react';
|
|
2
|
-
import type { FlexboxProps } from
|
|
2
|
+
import type { FlexboxProps } from "../Flex";
|
|
3
3
|
import type { TextAreaProps } from "../types";
|
|
4
4
|
export interface CodeEditorProps extends TextAreaProps, Pick<FlexboxProps, 'width' | 'height' | 'flex'> {
|
|
5
5
|
classNames?: {
|
package/es/Collapse/Collapse.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Collapse as AntdCollapse, ConfigProvider } from 'antd';
|
|
|
14
14
|
import { cva } from 'class-variance-authority';
|
|
15
15
|
import { ChevronDown } from 'lucide-react';
|
|
16
16
|
import { isValidElement, memo, useMemo } from 'react';
|
|
17
|
-
import { Flexbox } from
|
|
17
|
+
import { Flexbox } from "../Flex";
|
|
18
18
|
import Icon from "../Icon";
|
|
19
19
|
import { DEFAULT_PADDING, getPadding, useStyles } from "./style";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -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,15 +19,15 @@ 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 {
|
|
23
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
22
|
+
import { useMemo } from 'react';
|
|
24
23
|
import useMergeState from 'use-merge-value';
|
|
24
|
+
import { Center, Flexbox } from "../Flex";
|
|
25
25
|
import Icon from "../Icon";
|
|
26
26
|
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;
|
|
@@ -18,8 +18,8 @@ import { cva } from 'class-variance-authority';
|
|
|
18
18
|
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from 'lucide-react';
|
|
19
19
|
import { Resizable } from 're-resizable';
|
|
20
20
|
import { memo, use, useCallback, useEffect, useMemo, useReducer, useRef, useTransition } from 'react';
|
|
21
|
-
import { Center } from 'react-layout-kit';
|
|
22
21
|
import useControlledState from 'use-merge-value';
|
|
22
|
+
import { Center } from "../Flex";
|
|
23
23
|
import Icon from "../Icon";
|
|
24
24
|
import { useStyles } from "./style";
|
|
25
25
|
import { reversePlacement } from "./utils";
|
|
@@ -10,7 +10,7 @@ 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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../../Flex";
|
|
14
14
|
import { useStyles } from "./style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
var DraggablePanelBody = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -10,7 +10,7 @@ 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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../../Flex";
|
|
14
14
|
import { useStyles } from "./style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
var DraggablePanelContainer = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -10,7 +10,7 @@ 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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../../Flex";
|
|
14
14
|
import { useStyles } from "./style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
var DraggablePanelFooter = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -17,9 +17,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
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
18
|
import { PanelLeft, Pin, PinOff } from 'lucide-react';
|
|
19
19
|
import { memo } from 'react';
|
|
20
|
-
import { Flexbox } from 'react-layout-kit';
|
|
21
20
|
import useControlledState from 'use-merge-value';
|
|
22
21
|
import ActionIcon from "../../ActionIcon";
|
|
22
|
+
import { Flexbox } from "../../Flex";
|
|
23
23
|
import { useStyles } from "./style";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -19,8 +19,8 @@ import { useHover } from 'ahooks';
|
|
|
19
19
|
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
20
20
|
import { Resizable } from 're-resizable';
|
|
21
21
|
import { memo, useCallback, useEffect, useMemo, useReducer, useRef } from 'react';
|
|
22
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
23
22
|
import useControlledState from 'use-merge-value';
|
|
23
|
+
import { Center, Flexbox } from "../Flex";
|
|
24
24
|
import Icon from "../Icon";
|
|
25
25
|
import { useStyles } from "./style";
|
|
26
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -13,8 +13,8 @@ import { Drawer as AntdDrawer } from 'antd';
|
|
|
13
13
|
import { useTheme } from 'antd-style';
|
|
14
14
|
import { XIcon } from 'lucide-react';
|
|
15
15
|
import { memo, useMemo } from 'react';
|
|
16
|
-
import { Flexbox } from 'react-layout-kit';
|
|
17
16
|
import ActionIcon from "../ActionIcon";
|
|
17
|
+
import { Flexbox } from "../Flex";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -17,8 +17,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
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
18
|
import { RotateCcw, Save } from 'lucide-react';
|
|
19
19
|
import { memo, useEffect, useRef, useState } from 'react';
|
|
20
|
-
import { Flexbox } from 'react-layout-kit';
|
|
21
20
|
import ActionIcon from "../ActionIcon";
|
|
21
|
+
import { Flexbox } from "../Flex";
|
|
22
22
|
import Input from "../Input";
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -19,9 +19,9 @@ import { cx } from 'antd-style';
|
|
|
19
19
|
import { Edit3 } from 'lucide-react';
|
|
20
20
|
import { memo, useMemo } from 'react';
|
|
21
21
|
import { useHotkeys } from 'react-hotkeys-hook';
|
|
22
|
-
import { Flexbox } from 'react-layout-kit';
|
|
23
22
|
import useControlledState from 'use-merge-value';
|
|
24
23
|
import ActionIcon from "../ActionIcon";
|
|
24
|
+
import { Flexbox } from "../Flex";
|
|
25
25
|
import ControlInput from "./ControlInput";
|
|
26
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
27
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import type { FlexboxProps } from 'react-layout-kit';
|
|
3
2
|
import type { ControlInputProps } from "./ControlInput";
|
|
3
|
+
import type { FlexboxProps } from "../Flex";
|
|
4
4
|
export interface EditableTextProps extends Omit<FlexboxProps, 'onChange' | 'onBlur' | 'onFocus'>, Pick<ControlInputProps, 'onChange' | 'value' | 'onChangeEnd' | 'onValueChanging' | 'texts' | 'variant' | 'onBlur' | 'onFocus' | 'size'> {
|
|
5
5
|
className?: string;
|
|
6
6
|
classNames?: {
|
|
@@ -11,8 +11,8 @@ import { useTheme } from 'antd-style';
|
|
|
11
11
|
import { ChevronLeftIcon, ImageUpIcon } from 'lucide-react';
|
|
12
12
|
import { memo, useCallback, useRef, useState } from 'react';
|
|
13
13
|
import AvatarEditor from 'react-avatar-editor';
|
|
14
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
15
14
|
import Button from "../Button";
|
|
15
|
+
import { Center, Flexbox } from "../Flex";
|
|
16
16
|
import Icon from "../Icon";
|
|
17
17
|
import Tag from "../Tag";
|
|
18
18
|
import Text from "../Text";
|
|
@@ -27,11 +27,11 @@ import Picker from '@emoji-mart/react';
|
|
|
27
27
|
import { Popover } from 'antd';
|
|
28
28
|
import { SmileIcon, TrashIcon, UploadIcon } from 'lucide-react';
|
|
29
29
|
import { memo, useRef, useState } from 'react';
|
|
30
|
-
import { Flexbox } from 'react-layout-kit';
|
|
31
30
|
import useSWR from 'swr';
|
|
32
31
|
import useMergeState from 'use-merge-value';
|
|
33
32
|
import ActionIcon from "../ActionIcon";
|
|
34
33
|
import Avatar from "../Avatar";
|
|
34
|
+
import { Flexbox } from "../Flex";
|
|
35
35
|
import Icon from "../Icon";
|
|
36
36
|
import Tabs from "../Tabs";
|
|
37
37
|
import Tooltip from "../Tooltip";
|
package/es/Empty/Empty.d.ts
CHANGED
package/es/Empty/Empty.js
CHANGED
|
@@ -11,15 +11,14 @@ 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
|
-
import { Flexbox } from 'react-layout-kit';
|
|
16
14
|
import Block from "../Block";
|
|
15
|
+
import { Flexbox } from "../Flex";
|
|
17
16
|
import FluentEmoji from "../FluentEmoji";
|
|
18
17
|
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;
|
package/es/Empty/type.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { FlexboxProps } from 'react-layout-kit';
|
|
3
2
|
import { BlockProps } from "../Block";
|
|
3
|
+
import { FlexboxProps } from "../Flex";
|
|
4
4
|
import { IconProps } from "../Icon";
|
|
5
5
|
import { TextProps } from "../Text";
|
|
6
6
|
export interface EmptyProps extends Omit<FlexboxProps, 'title'> {
|
|
@@ -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 {
|
|
13
|
-
import { Center } from
|
|
12
|
+
import { useMemo } from 'react';
|
|
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;
|