@lobehub/ui 3.3.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/es/Accordion/AccordionItem.js +1 -1
  2. package/es/ActionIcon/ActionIcon.js +1 -1
  3. package/es/ActionIcon/type.d.ts +1 -1
  4. package/es/ActionIconGroup/ActionIconGroup.js +1 -1
  5. package/es/ActionIconGroup/type.d.ts +1 -1
  6. package/es/Alert/Alert.js +1 -1
  7. package/es/Avatar/Avatar.js +3 -4
  8. package/es/Avatar/AvatarGroup/index.js +1 -1
  9. package/es/Avatar/type.d.ts +1 -1
  10. package/es/Block/Block.js +1 -1
  11. package/es/Block/type.d.ts +1 -1
  12. package/es/Burger/Burger.js +1 -1
  13. package/es/CodeEditor/CodeEditor.js +1 -1
  14. package/es/CodeEditor/type.d.ts +1 -1
  15. package/es/Collapse/Collapse.js +1 -1
  16. package/es/ColorSwatches/ColorSwatches.js +1 -1
  17. package/es/ColorSwatches/type.d.ts +1 -1
  18. package/es/DraggablePanel/DraggablePanel.js +1 -1
  19. package/es/DraggablePanel/components/DraggablePanelBody.js +1 -1
  20. package/es/DraggablePanel/components/DraggablePanelContainer.js +1 -1
  21. package/es/DraggablePanel/components/DraggablePanelFooter.js +1 -1
  22. package/es/DraggablePanel/components/DraggablePanelHeader.js +1 -1
  23. package/es/DraggableSideNav/DraggableSideNav.js +1 -1
  24. package/es/Drawer/Drawer.js +1 -1
  25. package/es/EditableText/ControlInput.js +1 -1
  26. package/es/EditableText/EditableText.js +1 -1
  27. package/es/EditableText/type.d.ts +1 -1
  28. package/es/EmojiPicker/AvatarUploader.js +1 -1
  29. package/es/EmojiPicker/EmojiPicker.js +1 -1
  30. package/es/Empty/Empty.js +1 -1
  31. package/es/Empty/type.d.ts +1 -1
  32. package/es/FileTypeIcon/FileTypeIcon.js +1 -1
  33. package/es/Flex/style.css +29 -13
  34. package/es/FluentEmoji/FluentEmoji.js +1 -1
  35. package/es/Footer/Footer.js +1 -1
  36. package/es/Footer/type.d.ts +1 -1
  37. package/es/Form/components/FormFlatGroup.js +1 -1
  38. package/es/Form/components/FormFooter.js +1 -1
  39. package/es/Form/components/FormGroup.js +1 -1
  40. package/es/Form/components/FormSubmitFooter.js +1 -1
  41. package/es/Form/components/FormTitle.js +1 -1
  42. package/es/Form/type.d.ts +1 -1
  43. package/es/FormModal/FormModal.js +1 -1
  44. package/es/Grid/Grid.js +1 -1
  45. package/es/Grid/type.d.ts +1 -1
  46. package/es/GroupAvatar/GroupAvatar.js +2 -2
  47. package/es/GuideCard/GuideCard.js +1 -1
  48. package/es/GuideCard/type.d.ts +1 -1
  49. package/es/Header/Header.js +1 -1
  50. package/es/Header/type.d.ts +1 -1
  51. package/es/Highlighter/FullFeatured.js +46 -32
  52. package/es/Highlighter/Highlighter.js +15 -4
  53. package/es/Highlighter/LangSelect.js +9 -5
  54. package/es/Highlighter/style.d.ts +0 -1
  55. package/es/Highlighter/style.js +8 -9
  56. package/es/Highlighter/type.d.ts +12 -2
  57. package/es/Hotkey/Hotkey.js +1 -1
  58. package/es/Hotkey/type.d.ts +1 -1
  59. package/es/Hotkey/utils.d.ts +1 -1
  60. package/es/HotkeyInput/HotkeyInput.js +1 -1
  61. package/es/Image/Image.js +1 -1
  62. package/es/Image/components/Toolbar.js +1 -7
  63. package/es/Image/components/usePreview.js +1 -3
  64. package/es/Image/style.js +5 -4
  65. package/es/ImageSelect/ImageSelect.js +1 -1
  66. package/es/ImageSelect/type.d.ts +1 -1
  67. package/es/List/List.js +1 -1
  68. package/es/List/ListItem/index.js +1 -1
  69. package/es/List/type.d.ts +1 -1
  70. package/es/Markdown/components/Footnotes.js +1 -1
  71. package/es/Markdown/components/SearchResultCards/SearchResultCard.js +1 -1
  72. package/es/Markdown/components/SearchResultCards/index.d.ts +1 -1
  73. package/es/MaskShadow/MaskShadow.js +1 -1
  74. package/es/MaskShadow/type.d.ts +1 -1
  75. package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +1 -1
  76. package/es/Mermaid/FullFeatured.js +30 -14
  77. package/es/Mermaid/Mermaid.js +13 -4
  78. package/es/Mermaid/SyntaxMermaid/index.js +11 -6
  79. package/es/Mermaid/type.d.ts +13 -1
  80. package/es/ScrollShadow/ScrollShadow.js +1 -1
  81. package/es/ScrollShadow/type.d.ts +1 -1
  82. package/es/SideNav/SideNav.js +1 -1
  83. package/es/SideNav/type.d.ts +1 -1
  84. package/es/Skeleton/Skeleton.js +1 -1
  85. package/es/Skeleton/SkeletonParagraph.js +1 -1
  86. package/es/Skeleton/SkeletonTags.js +1 -1
  87. package/es/SliderWithInput/SliderWithInput.js +1 -1
  88. package/es/SliderWithInput/type.d.ts +1 -1
  89. package/es/Snippet/Snippet.js +1 -1
  90. package/es/Snippet/type.d.ts +1 -1
  91. package/es/SortableList/SortableList.js +1 -1
  92. package/es/SortableList/components/SortableItem.d.ts +1 -1
  93. package/es/SortableList/components/SortableItem.js +1 -1
  94. package/es/SortableList/type.d.ts +1 -1
  95. package/es/ThemeSwitch/ThemeSwitch.js +1 -1
  96. package/es/Tooltip/TooltipFloating.js +1 -1
  97. package/es/Video/index.d.ts +1 -1
  98. package/es/Video/index.js +1 -1
  99. package/es/awesome/AuroraBackground/AuroraBackground.js +1 -1
  100. package/es/awesome/AuroraBackground/type.d.ts +1 -1
  101. package/es/awesome/Features/FeatureItem.js +1 -1
  102. package/es/awesome/GridBackground/GridShowcase.js +1 -1
  103. package/es/awesome/GridBackground/type.d.ts +1 -1
  104. package/es/awesome/Hero/Hero.js +1 -1
  105. package/es/awesome/SpotlightCard/SpotlightCardItem.js +1 -1
  106. package/es/brand/LobeChat/index.js +1 -1
  107. package/es/brand/LobeHub/index.js +1 -1
  108. package/es/brand/LogoThree/Loading.js +1 -1
  109. package/es/brand/LogoThree/index.js +1 -1
  110. package/es/chat/Bubble/Bubble.js +1 -1
  111. package/es/chat/Bubble/type.d.ts +1 -1
  112. package/es/chat/ChatHeader/ChatHeader.js +1 -1
  113. package/es/chat/ChatHeader/ChatHeaderTitle.js +1 -1
  114. package/es/chat/ChatHeader/type.d.ts +1 -1
  115. package/es/chat/ChatInputArea/components/ChatInputActionBar.js +1 -1
  116. package/es/chat/ChatInputArea/components/ChatSendButton.js +1 -1
  117. package/es/chat/ChatInputArea/type.d.ts +1 -1
  118. package/es/chat/ChatItem/ChatItem.js +1 -1
  119. package/es/chat/ChatItem/components/Actions.js +1 -1
  120. package/es/chat/ChatItem/components/Avatar.js +1 -1
  121. package/es/chat/ChatItem/components/ErrorContent.js +1 -1
  122. package/es/chat/ChatItem/components/Loading.js +1 -1
  123. package/es/chat/ChatItem/components/MessageContent.js +1 -1
  124. package/es/chat/ChatItem/components/Title.js +1 -1
  125. package/es/chat/ChatItem/type.d.ts +1 -1
  126. package/es/chat/EditableMessageList/EditableMessageList.js +1 -1
  127. package/es/chat/MessageInput/MessageInput.js +1 -1
  128. package/es/chat/MessageInput/type.d.ts +1 -1
  129. package/es/chat/MessageModal/MessageModal.js +1 -1
  130. package/es/color/ColorScales/ScaleRow.js +1 -1
  131. package/es/color/ColorScales/index.js +1 -1
  132. package/es/mdx/Callout/index.d.ts +1 -1
  133. package/es/mdx/Callout/index.js +1 -1
  134. package/es/mdx/Cards/Card.js +1 -1
  135. package/es/mdx/FileTree/File.d.ts +1 -1
  136. package/es/mdx/FileTree/File.js +1 -1
  137. package/es/mdx/FileTree/Folder.d.ts +1 -1
  138. package/es/mdx/FileTree/Folder.js +1 -1
  139. package/es/mdx/Tabs/index.d.ts +1 -1
  140. package/es/mdx/Tabs/index.js +1 -1
  141. package/es/mdx/mdxComponents/Citation/PopoverPanel.js +1 -1
  142. package/es/mobile/ChatHeader/ChatHeader.js +1 -1
  143. package/es/mobile/ChatHeader/ChatHeaderTitle.js +1 -1
  144. package/es/mobile/ChatHeader/type.d.ts +1 -1
  145. package/es/mobile/ChatInputArea/ChatInputArea.js +1 -1
  146. package/es/mobile/TabBar/TabBar.js +1 -1
  147. package/es/mobile/TabBar/type.d.ts +1 -1
  148. package/es/storybook/StoryBook/index.d.ts +1 -1
  149. package/es/storybook/StoryBook/index.js +1 -1
  150. package/package.json +1 -2
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var _excluded = ["content", "language", "setLanguage", "showLanguage", "className", "style", "allowChangeLanguage", "fileName", "icon", "actionsRender", "copyable", "variant", "shadow", "wrap", "defaultExpand", "children"];
4
+ var _excluded = ["content", "language", "setLanguage", "showLanguage", "className", "classNames", "styles", "style", "allowChangeLanguage", "fileName", "icon", "actionsRender", "copyable", "variant", "shadow", "wrap", "defaultExpand", "children"];
5
5
  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
6
  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
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -18,16 +18,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
18
18
  import { cva } from 'class-variance-authority';
19
19
  import { ChevronDown, ChevronRight } from 'lucide-react';
20
20
  import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
21
- import { Flexbox } from 'react-layout-kit';
22
21
  import ActionIcon from "../ActionIcon";
23
22
  import CopyButton from "../CopyButton";
23
+ import { Flexbox } from "../Flex";
24
24
  import { getCodeLanguageDisplayName, getCodeLanguageFilename } from "./const";
25
25
  import MaterialFileTypeIcon from "../MaterialFileTypeIcon";
26
26
  import Text from "../Text";
27
27
  import LangSelect from "./LangSelect";
28
28
  import { useStyles } from "./style";
29
29
  import { jsx as _jsx } from "react/jsx-runtime";
30
- import { Fragment as _Fragment } from "react/jsx-runtime";
31
30
  import { jsxs as _jsxs } from "react/jsx-runtime";
32
31
  var HeaderLanguage = /*#__PURE__*/memo(function (_ref) {
33
32
  var allowChangeLanguage = _ref.allowChangeLanguage,
@@ -39,29 +38,29 @@ var HeaderLanguage = /*#__PURE__*/memo(function (_ref) {
39
38
  setLanguage = _ref.setLanguage,
40
39
  showLanguage = _ref.showLanguage;
41
40
  if (!showLanguage) return null;
42
- return /*#__PURE__*/_jsx(Flexbox, {
41
+ if (allowChangeLanguage && !fileName) return /*#__PURE__*/_jsx(LangSelect, {
42
+ onSelect: setLanguage,
43
+ value: language.toLowerCase()
44
+ });
45
+ return /*#__PURE__*/_jsxs(Flexbox, {
43
46
  align: 'center',
44
47
  className: 'languageTitle',
45
48
  flex: 1,
46
49
  gap: 4,
47
50
  horizontal: true,
48
- justify: 'center',
49
- children: allowChangeLanguage && !fileName ? /*#__PURE__*/_jsx(LangSelect, {
50
- onSelect: setLanguage,
51
- value: language.toLowerCase()
52
- }) : /*#__PURE__*/_jsxs(_Fragment, {
53
- children: [icon || /*#__PURE__*/_jsx(MaterialFileTypeIcon, {
54
- fallbackUnknownType: false,
55
- filename: filetype,
56
- size: 18,
57
- type: 'file',
58
- variant: 'raw'
59
- }), /*#__PURE__*/_jsx(Text, {
60
- ellipsis: true,
61
- fontSize: 13,
62
- children: displayName
63
- })]
64
- })
51
+ justify: 'flex-start',
52
+ paddingInline: 8,
53
+ children: [icon || /*#__PURE__*/_jsx(MaterialFileTypeIcon, {
54
+ fallbackUnknownType: false,
55
+ filename: filetype,
56
+ size: 18,
57
+ type: 'file',
58
+ variant: 'raw'
59
+ }), /*#__PURE__*/_jsx(Text, {
60
+ ellipsis: true,
61
+ fontSize: 13,
62
+ children: displayName
63
+ })]
65
64
  });
66
65
  }, function (prev, next) {
67
66
  return prev.allowChangeLanguage === next.allowChangeLanguage && prev.displayName === next.displayName && prev.fileName === next.fileName && prev.filetype === next.filetype && prev.icon === next.icon && prev.language === next.language && prev.setLanguage === next.setLanguage && prev.showLanguage === next.showLanguage;
@@ -72,6 +71,8 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref2) {
72
71
  setLanguage = _ref2.setLanguage,
73
72
  showLanguage = _ref2.showLanguage,
74
73
  className = _ref2.className,
74
+ classNames = _ref2.classNames,
75
+ customStyles = _ref2.styles,
75
76
  style = _ref2.style,
76
77
  _ref2$allowChangeLang = _ref2.allowChangeLanguage,
77
78
  allowChangeLanguage = _ref2$allowChangeLang === void 0 ? false : _ref2$allowChangeLang,
@@ -196,16 +197,14 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref2) {
196
197
  }, rest), {}, {
197
198
  children: [/*#__PURE__*/_jsxs(Flexbox, {
198
199
  align: 'center',
199
- className: headerVariants({
200
+ className: cx(headerVariants({
200
201
  variant: variant
201
- }),
202
+ }), classNames === null || classNames === void 0 ? void 0 : classNames.header),
202
203
  horizontal: true,
203
204
  justify: 'space-between',
204
- children: [/*#__PURE__*/_jsx(ActionIcon, {
205
- icon: expand ? ChevronDown : ChevronRight,
206
- onClick: handleToggleExpand,
207
- size: 'small'
208
- }), /*#__PURE__*/_jsx(HeaderLanguage, {
205
+ onClick: handleToggleExpand,
206
+ style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.header,
207
+ children: [/*#__PURE__*/_jsx(HeaderLanguage, {
209
208
  allowChangeLanguage: allowChangeLanguage,
210
209
  displayName: displayName,
211
210
  fileName: fileName,
@@ -214,17 +213,32 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref2) {
214
213
  language: language,
215
214
  setLanguage: setLanguage,
216
215
  showLanguage: showLanguage
217
- }), /*#__PURE__*/_jsx(Flexbox, {
216
+ }), /*#__PURE__*/_jsxs(Flexbox, {
218
217
  align: 'center',
219
218
  flex: 'none',
220
219
  gap: 4,
221
220
  horizontal: true,
222
- children: actions
221
+ onClick: function onClick(e) {
222
+ return e.stopPropagation();
223
+ },
224
+ children: [/*#__PURE__*/_jsx(Flexbox, {
225
+ align: 'center',
226
+ className: 'panel-actions',
227
+ flex: 'none',
228
+ gap: 4,
229
+ horizontal: true,
230
+ children: actions
231
+ }), /*#__PURE__*/_jsx(ActionIcon, {
232
+ icon: expand ? ChevronDown : ChevronRight,
233
+ onClick: handleToggleExpand,
234
+ size: 'small'
235
+ })]
223
236
  })]
224
237
  }), /*#__PURE__*/_jsx(Flexbox, {
225
- className: bodyVariants({
238
+ className: cx(bodyVariants({
226
239
  expand: expand
227
- }),
240
+ }), classNames === null || classNames === void 0 ? void 0 : classNames.body),
241
+ style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.body,
228
242
  children: children
229
243
  })]
230
244
  }));
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- var _excluded = ["animated", "fullFeatured", "actionIconSize", "children", "language", "className", "copyable", "showLanguage", "variant", "shadow", "wrap", "bodyRender", "actionsRender", "enableTransformer", "theme", "icon", "fileName", "allowChangeLanguage", "defaultExpand"];
3
+ var _excluded = ["animated", "fullFeatured", "actionIconSize", "children", "language", "className", "classNames", "styles", "copyable", "showLanguage", "variant", "shadow", "wrap", "bodyRender", "actionsRender", "enableTransformer", "theme", "icon", "fileName", "allowChangeLanguage", "defaultExpand"];
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
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -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 { cva } from 'class-variance-authority';
19
19
  import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
20
- import { Flexbox } from 'react-layout-kit';
21
20
  import CopyButton from "../CopyButton";
21
+ import { Flexbox } from "../Flex";
22
22
  import { getCodeLanguageDisplayName } from "./const";
23
23
  import Tag from "../Tag";
24
24
  import FullFeatured from "./FullFeatured";
@@ -34,6 +34,8 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
34
34
  _ref$language = _ref.language,
35
35
  language = _ref$language === void 0 ? 'markdown' : _ref$language,
36
36
  className = _ref.className,
37
+ classNames = _ref.classNames,
38
+ customStyles = _ref.styles,
37
39
  _ref$copyable = _ref.copyable,
38
40
  copyable = _ref$copyable === void 0 ? true : _ref$copyable,
39
41
  _ref$showLanguage = _ref.showLanguage,
@@ -107,7 +109,10 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
107
109
  return /*#__PURE__*/_jsx(CopyButton, {
108
110
  content: getCopyContent,
109
111
  glass: true,
110
- size: actionIconSize
112
+ size: actionIconSize || {
113
+ blockSize: 28,
114
+ size: 16
115
+ }
111
116
  });
112
117
  }, [actionIconSize, copyable, getCopyContent]);
113
118
  var actions = useMemo(function () {
@@ -123,13 +128,17 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
123
128
  var originalBody = useMemo(function () {
124
129
  return /*#__PURE__*/_jsx(SyntaxHighlighter, {
125
130
  animated: animated,
131
+ className: classNames === null || classNames === void 0 ? void 0 : classNames.content,
126
132
  enableTransformer: enableTransformer,
127
133
  language: lang === null || lang === void 0 ? void 0 : lang.toLowerCase(),
134
+ style: _objectSpread({
135
+ height: '100%'
136
+ }, customStyles === null || customStyles === void 0 ? void 0 : customStyles.content),
128
137
  theme: theme,
129
138
  variant: variant,
130
139
  children: tirmedChildren
131
140
  });
132
- }, [animated, enableTransformer, lang, theme, tirmedChildren, variant]);
141
+ }, [animated, enableTransformer, lang, theme, tirmedChildren, variant, customStyles === null || customStyles === void 0 ? void 0 : customStyles.content, customStyles === null || customStyles === void 0 ? void 0 : customStyles.content]);
133
142
  var displayName = useMemo(function () {
134
143
  if (fileName) return fileName;
135
144
  return getCodeLanguageDisplayName(language);
@@ -146,6 +155,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
146
155
  actionsRender: actionsRender,
147
156
  allowChangeLanguage: allowChangeLanguage,
148
157
  className: className,
158
+ classNames: classNames,
149
159
  content: tirmedChildren,
150
160
  copyable: copyable,
151
161
  defaultExpand: defaultExpand,
@@ -155,6 +165,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
155
165
  setLanguage: setLang,
156
166
  shadow: shadow,
157
167
  showLanguage: showLanguage,
168
+ styles: customStyles,
158
169
  variant: variant,
159
170
  wrap: wrap
160
171
  }, rest), {}, {
@@ -15,17 +15,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
15
15
  function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
16
16
  import { Select } from 'antd';
17
17
  import { memo, useMemo } from 'react';
18
- import { Flexbox } from 'react-layout-kit';
19
18
  import { bundledLanguagesInfo } from 'shiki';
19
+ import { Flexbox } from "../Flex";
20
20
  import MaterialFileTypeIcon from "../MaterialFileTypeIcon";
21
21
  import Text from "../Text";
22
- import { useStyles } from "./style";
23
22
  import { jsx as _jsx } from "react/jsx-runtime";
24
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
25
24
  export var LangSelect = /*#__PURE__*/memo(function (_ref) {
26
25
  var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
27
- var _useStyles = useStyles(),
28
- styles = _useStyles.styles;
29
26
  var options = useMemo(function () {
30
27
  return [{
31
28
  aliases: ['text', 'txt'],
@@ -74,10 +71,17 @@ export var LangSelect = /*#__PURE__*/memo(function (_ref) {
74
71
  })));
75
72
  }, []);
76
73
  return /*#__PURE__*/_jsx(Select, _objectSpread({
77
- className: styles.select,
74
+ className: 'languageTitle',
75
+ onClick: function onClick(e) {
76
+ return e.stopPropagation();
77
+ },
78
78
  options: options,
79
79
  showSearch: true,
80
80
  size: 'small',
81
+ style: {
82
+ maxWidth: 240,
83
+ width: '100%'
84
+ },
81
85
  suffixIcon: false,
82
86
  variant: 'borderless'
83
87
  }, rest));
@@ -13,7 +13,6 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
13
13
  nowrap: import("antd-style").SerializedStyles;
14
14
  outlined: string;
15
15
  root: string;
16
- select: import("antd-style").SerializedStyles;
17
16
  shadow: string;
18
17
  wrap: import("antd-style").SerializedStyles;
19
18
  }>;
@@ -17,16 +17,15 @@ export var useStyles = createStyles(function (_ref) {
17
17
  bodyExpand: cx(expandCls),
18
18
  bodyRoot: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n transition: opacity 0.25s ", ";\n "])), token.motionEaseOut),
19
19
  borderless: stylish.variantBorderlessWithoutHover,
20
- filled: stylish.variantFilledWithoutHover,
21
- headerBorderless: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding-inline: 0;\n "]))),
22
- headerFilled: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background: ", ";\n "])), token.colorFillQuaternary),
23
- headerOutlined: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n & + .", " {\n border-block-start: 1px solid ", ";\n }\n "])), expandCls, token.colorFillQuaternary),
24
- headerRoot: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: relative;\n padding: 4px;\n\n .languageTitle {\n opacity: 0.5;\n transition: opacity 0.2s ", ";\n }\n\n &:hover {\n .languageTitle {\n opacity: 1;\n }\n }\n "])), token.motionEaseInOut),
25
- lang: cx(langHoverCls, stylish.blur, css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 2;\n inset-block-end: 8px;\n inset-inline-end: 8px;\n\n font-family: ", ";\n color: ", ";\n\n opacity: 0;\n background: ", ";\n\n transition: opacity 0.1s;\n "])), token.fontFamilyCode, token.colorTextSecondary, token.colorFillQuaternary)),
26
- nowrap: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n pre,\n code {\n text-wrap: nowrap;\n }\n "]))),
20
+ filled: cx(stylish.variantFilledWithoutHover, css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: ", ";\n "])), token.colorFillQuaternary)),
21
+ headerBorderless: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-inline: 0;\n "]))),
22
+ headerFilled: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n background: transparent;\n "]))),
23
+ headerOutlined: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n & + .", " {\n border-block-start: 1px solid ", ";\n }\n "])), expandCls, token.colorFillQuaternary),
24
+ headerRoot: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n cursor: pointer;\n position: relative;\n padding: 4px;\n "]))),
25
+ lang: cx(langHoverCls, stylish.blur, css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 2;\n inset-block-end: 8px;\n inset-inline-end: 8px;\n\n font-family: ", ";\n color: ", ";\n\n opacity: 0;\n background: ", ";\n\n transition: opacity 0.1s;\n "])), token.fontFamilyCode, token.colorTextSecondary, token.colorFillQuaternary)),
26
+ nowrap: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n pre,\n code {\n text-wrap: nowrap;\n }\n "]))),
27
27
  outlined: stylish.variantOutlinedWithoutHover,
28
- root: cx(prefix, css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: relative;\n\n overflow: hidden;\n\n width: 100%;\n border-radius: ", "px;\n\n transition: background-color 100ms ", ";\n\n &:hover {\n .", " {\n opacity: 1;\n }\n\n .", " {\n opacity: 1;\n }\n }\n\n code {\n background: transparent !important;\n }\n "])), token.borderRadius, token.motionEaseOut, actionsHoverCls, langHoverCls)),
29
- select: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n user-select: none;\n\n position: absolute;\n inset-inline-start: 50%;\n transform: translateX(-50%);\n\n min-width: 100px;\n\n font-size: 14px;\n color: ", ";\n text-align: center;\n "])), token.colorTextDescription),
28
+ root: cx(prefix, css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: relative;\n\n overflow: hidden;\n\n width: 100%;\n border-radius: ", "px;\n\n transition: background-color 100ms ", ";\n\n .languageTitle {\n opacity: 0.5;\n filter: grayscale(100%);\n transition:\n opacity,\n grayscale 0.2s ", ";\n }\n\n .panel-actions {\n opacity: 0;\n transition: opacity 0.2s ", ";\n }\n\n &:hover {\n .languageTitle {\n opacity: 1;\n filter: grayscale(0%);\n }\n\n .panel-actions {\n opacity: 1;\n }\n\n .", " {\n opacity: 1;\n }\n\n .", " {\n opacity: 1;\n }\n }\n\n pre {\n height: 100%;\n font-size: 12px;\n }\n\n code {\n background: transparent !important;\n }\n "])), token.borderRadius, token.motionEaseOut, token.motionEaseInOut, token.motionEaseInOut, actionsHoverCls, langHoverCls)),
30
29
  shadow: stylish.shadow,
31
30
  wrap: css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n pre,\n code {\n text-wrap: wrap;\n }\n "])))
32
31
  };
@@ -1,7 +1,7 @@
1
- import { ReactNode, type Ref } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
1
+ import { CSSProperties, ReactNode, type Ref } from 'react';
3
2
  import type { BuiltinTheme } from 'shiki';
4
3
  import type { ActionIconProps } from "../ActionIcon";
4
+ import { FlexboxProps } from "../Flex";
5
5
  import { DivProps } from "../types";
6
6
  export interface SyntaxHighlighterProps extends DivProps {
7
7
  animated?: boolean;
@@ -29,6 +29,11 @@ export interface HighlighterProps extends Omit<FlexboxProps, 'children' | 'wrap'
29
29
  originalNode: ReactNode;
30
30
  }) => ReactNode;
31
31
  children: string;
32
+ classNames?: {
33
+ body?: string;
34
+ content?: string;
35
+ header?: string;
36
+ };
32
37
  copyable?: boolean;
33
38
  defaultExpand?: boolean;
34
39
  enableTransformer?: boolean;
@@ -38,6 +43,11 @@ export interface HighlighterProps extends Omit<FlexboxProps, 'children' | 'wrap'
38
43
  language: string;
39
44
  shadow?: boolean;
40
45
  showLanguage?: boolean;
46
+ styles?: {
47
+ body?: CSSProperties;
48
+ content?: CSSProperties;
49
+ header?: CSSProperties;
50
+ };
41
51
  theme?: 'lobe-theme' | BuiltinTheme;
42
52
  variant?: 'filled' | 'outlined' | 'borderless';
43
53
  wrap?: boolean;
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  import { cva } from 'class-variance-authority';
19
19
  import { ArrowBigUpIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpIcon, ChevronUpIcon, Command, CornerDownLeftIcon, Delete, Grid2X2Icon, MouseIcon, Option, SpaceIcon } from 'lucide-react';
20
20
  import { memo, useEffect, useMemo, useState } from 'react';
21
- import { Center, Flexbox } from 'react-layout-kit';
21
+ import { Center, Flexbox } from "../Flex";
22
22
  import Icon from "../Icon";
23
23
  import LeftClickIcon from "../icons/lucideExtra/LeftClickIcon";
24
24
  import LeftDoubleClickIcon from "../icons/lucideExtra/LeftDoubleClickIcon";
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties } from 'react';
2
- import type { FlexboxProps } from 'react-layout-kit';
2
+ import type { FlexboxProps } from "../Flex";
3
3
  export interface HotkeyProps extends Omit<FlexboxProps, 'children'> {
4
4
  classNames?: {
5
5
  kbdClassName?: string;
@@ -1,4 +1,4 @@
1
- export declare const NORMATIVE_MODIFIER: ("shift" | "meta" | "alt" | "control" | "ctrl" | "mod")[];
1
+ export declare const NORMATIVE_MODIFIER: ("meta" | "alt" | "shift" | "control" | "ctrl" | "mod")[];
2
2
  export declare const splitKeysByPlus: (keys: string) => string[];
3
3
  export declare const startCase: (str: string) => string;
4
4
  export declare const checkIsAppleDevice: (isApple?: boolean) => boolean;
@@ -18,9 +18,9 @@ import { isEqual } from 'lodash-es';
18
18
  import { Undo2Icon } from 'lucide-react';
19
19
  import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
20
20
  import { useHotkeys, useRecordHotkeys } from 'react-hotkeys-hook';
21
- import { Flexbox } from 'react-layout-kit';
22
21
  import useControlledState from 'use-merge-value';
23
22
  import ActionIcon from "../ActionIcon";
23
+ import { Flexbox } from "../Flex";
24
24
  import Hotkey from "../Hotkey";
25
25
  import { NORMATIVE_MODIFIER, checkIsAppleDevice, splitKeysByPlus } from "../Hotkey/utils";
26
26
  import { useStyles } from "./style";
package/es/Image/Image.js CHANGED
@@ -12,7 +12,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
12
12
  import { Image as AntImage, Skeleton } from 'antd';
13
13
  import { cva } from 'class-variance-authority';
14
14
  import { memo, useMemo } from 'react';
15
- import { Flexbox } from 'react-layout-kit';
15
+ import { Flexbox } from "../Flex";
16
16
  import usePreview from "./components/usePreview";
17
17
  import { FALLBACK_DARK, FALLBACK_LIGHT, useStyles } from "./style";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { FlipHorizontal, FlipVertical, RotateCcw, RotateCw, ZoomIn, ZoomOut } from 'lucide-react';
2
2
  import { memo } from 'react';
3
- import { Flexbox } from 'react-layout-kit';
4
3
  import ActionIcon from "../../ActionIcon";
4
+ import { Flexbox } from "../../Flex";
5
5
  import { useStyles } from "../style";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -25,28 +25,22 @@ var Toolbar = /*#__PURE__*/memo(function (_ref) {
25
25
  gap: 4,
26
26
  horizontal: true,
27
27
  children: [/*#__PURE__*/_jsx(ActionIcon, {
28
- color: '#fff',
29
28
  icon: FlipHorizontal,
30
29
  onClick: onFlipX
31
30
  }), /*#__PURE__*/_jsx(ActionIcon, {
32
- color: '#fff',
33
31
  icon: FlipVertical,
34
32
  onClick: onFlipY
35
33
  }), /*#__PURE__*/_jsx(ActionIcon, {
36
- color: '#fff',
37
34
  icon: RotateCcw,
38
35
  onClick: onRotateLeft
39
36
  }), /*#__PURE__*/_jsx(ActionIcon, {
40
- color: '#fff',
41
37
  icon: RotateCw,
42
38
  onClick: onRotateRight
43
39
  }), /*#__PURE__*/_jsx(ActionIcon, {
44
- color: '#fff',
45
40
  disabled: scale === minScale,
46
41
  icon: ZoomOut,
47
42
  onClick: onZoomOut
48
43
  }), /*#__PURE__*/_jsx(ActionIcon, {
49
- color: '#fff',
50
44
  disabled: scale === maxScale,
51
45
  icon: ZoomIn,
52
46
  onClick: onZoomIn
@@ -55,9 +55,6 @@ export var usePreview = function usePreview(props) {
55
55
  if (toolbarRender) return toolbarRender(originalNode, info);
56
56
  return originalNode;
57
57
  },
58
- classNames: {
59
- root: cx(styles.preview, rootClassName)
60
- },
61
58
  closeIcon: /*#__PURE__*/_jsx(Icon, {
62
59
  color: '#fff',
63
60
  icon: X
@@ -79,6 +76,7 @@ export var usePreview = function usePreview(props) {
79
76
  // 向后兼容旧的 onVisibleChange
80
77
  onVisibleChange === null || onVisibleChange === void 0 || onVisibleChange(open, !open);
81
78
  },
79
+ rootClassName: cx(styles.preview, rootClassName),
82
80
  styles: {
83
81
  mask: {
84
82
  backdropFilter: 'blur(8px)'
package/es/Image/style.js CHANGED
@@ -6,7 +6,8 @@ export var useStyles = createStyles(function (_ref) {
6
6
  var cx = _ref.cx,
7
7
  css = _ref.css,
8
8
  token = _ref.token,
9
- stylish = _ref.stylish;
9
+ stylish = _ref.stylish,
10
+ prefixCls = _ref.prefixCls;
10
11
  var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
11
12
  alwaysShowActions = _ref2.alwaysShowActions;
12
13
  var actions = cx(css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n position: absolute;\n z-index: 1;\n inset-block-start: 0;\n inset-inline-end: 0;\n\n opacity: ", ";\n "])), alwaysShowActions ? 1 : 0));
@@ -17,9 +18,9 @@ export var useStyles = createStyles(function (_ref) {
17
18
  image: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: auto;\n height: auto;\n "]))),
18
19
  mask: cx(stylish.blur, css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n backdrop-filter: blur(8px);\n "])))),
19
20
  outlined: stylish.variantOutlinedWithoutHover,
20
- preview: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n img {\n width: 100%;\n }\n "]))),
21
- root: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n cursor: pointer;\n user-select: none;\n\n position: relative;\n\n overflow: hidden;\n\n width: fit-content;\n border-radius: ", "px;\n\n line-height: 1;\n\n &:hover {\n .", " {\n opacity: 1;\n }\n }\n "])), token.borderRadius, actions),
22
- toolbar: cx(stylish.blur, stylish.variantOutlinedWithoutHover, css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: 4px;\n border-color: ", ";\n border-radius: ", "px;\n background: ", ";\n "])), token.colorFillTertiary, token.borderRadiusLG, rgba(token.colorBgMask, 0.5))),
21
+ preview: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .", "-image-preview-mask {\n background: ", ";\n }\n\n img {\n width: 100%;\n }\n "])), prefixCls, rgba(token.colorBgLayout, 0.9)),
22
+ root: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n cursor: pointer;\n user-select: none;\n\n position: relative;\n\n overflow: hidden;\n\n width: fit-content;\n border-radius: ", "px;\n\n line-height: 1;\n\n .", "-image-cover {\n display: none !important;\n }\n\n &:hover {\n .", " {\n opacity: 1;\n }\n }\n "])), token.borderRadius, prefixCls, actions),
23
+ toolbar: cx(stylish.blur, stylish.variantOutlinedWithoutHover, css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: 4px;\n border-color: ", ";\n border-radius: ", "px;\n background: ", ";\n "])), token.colorFillTertiary, token.borderRadiusLG, rgba(token.colorBgContainer, 0.5))),
23
24
  wrapper: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n max-width: 100%;\n height: auto;\n "])))
24
25
  };
25
26
  });
@@ -16,8 +16,8 @@ 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
18
  import { memo } from 'react';
19
- import { Flexbox } from 'react-layout-kit';
20
19
  import useControlledState from 'use-merge-value';
20
+ import { Flexbox } from "../Flex";
21
21
  import Icon from "../Icon";
22
22
  import Img from "../Img";
23
23
  import { useStyles } from "./styles";
@@ -1,6 +1,6 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import type { CSSProperties, ReactNode, Ref } from 'react';
3
- import type { FlexboxProps } from 'react-layout-kit';
3
+ import type { FlexboxProps } from "../Flex";
4
4
  import type { IconProps } from "../Icon";
5
5
  export interface ImageSelectItem {
6
6
  alt?: string;
package/es/List/List.js CHANGED
@@ -14,7 +14,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
14
  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; }
15
15
  import { cx } from 'antd-style';
16
16
  import { memo } from 'react';
17
- import { Flexbox } from 'react-layout-kit';
17
+ import { Flexbox } from "../Flex";
18
18
  import ListItem from "./ListItem";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  var List = /*#__PURE__*/memo(function (_ref) {
@@ -11,7 +11,7 @@ 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 { Loader2, MessageSquare } from 'lucide-react';
13
13
  import { memo } from 'react';
14
- import { Flexbox } from 'react-layout-kit';
14
+ import { Flexbox } from "../../Flex";
15
15
  import Icon from "../../Icon";
16
16
  import Text from "../../Text";
17
17
  import { useStyles } from "./style";
package/es/List/type.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties, ReactNode, Ref } from 'react';
2
- import type { FlexboxProps } from 'react-layout-kit';
2
+ import type { FlexboxProps } from "../Flex";
3
3
  export interface ListItemProps extends Omit<FlexboxProps, 'title'> {
4
4
  actions?: ReactNode;
5
5
  active?: boolean;
@@ -11,9 +11,9 @@ 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, useMemo } from 'react';
14
- import { Flexbox } from 'react-layout-kit';
15
14
  import A from "../../A";
16
15
  import Block from "../../Block";
16
+ import { Flexbox } from "../../Flex";
17
17
  import Text from "../../Text";
18
18
  import SearchResultCards from "./SearchResultCards";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -16,9 +16,9 @@ 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
18
  import { memo, useMemo } from 'react';
19
- import { Flexbox } from 'react-layout-kit';
20
19
  import A from "../../../A";
21
20
  import Block from "../../../Block";
21
+ import { Flexbox } from "../../../Flex";
22
22
  import Img from "../../../Img";
23
23
  import Text from "../../../Text";
24
24
  import { useStyles } from "./style";
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../../Flex";
3
3
  export interface SearchResultItem {
4
4
  alt?: string;
5
5
  summary?: string;
@@ -11,7 +11,7 @@ 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 { cva } from 'class-variance-authority';
13
13
  import { memo, useMemo } from 'react';
14
- import { Flexbox } from 'react-layout-kit';
14
+ import { Flexbox } from "../Flex";
15
15
  import { useStyles } from "./style";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  var MaskShadow = /*#__PURE__*/memo(function (_ref) {
@@ -1,4 +1,4 @@
1
- import type { FlexboxProps } from 'react-layout-kit';
1
+ import type { FlexboxProps } from "../Flex";
2
2
  export interface MaskShadowProps extends FlexboxProps {
3
3
  position?: 'top' | 'bottom' | 'left' | 'right';
4
4
  size?: number;
@@ -10,9 +10,9 @@ 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, useMemo } from 'react';
13
- import { Center } from 'react-layout-kit';
14
13
  import { useCdnFn } from "../ConfigProvider";
15
14
  import FileTypeIcon from "../FileTypeIcon";
15
+ import { Center } from "../Flex";
16
16
  import Img from "../Img";
17
17
  import { getIconUrlForDirectoryPath, getIconUrlForFilePath } from "./utils";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";