@lobehub/ui 1.157.0 → 1.158.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/es/A/index.js +2 -2
  2. package/es/ActionIcon/index.js +11 -15
  3. package/es/ActionIconGroup/index.js +45 -47
  4. package/es/Alert/index.js +43 -50
  5. package/es/Avatar/index.js +10 -12
  6. package/es/Burger/index.js +30 -35
  7. package/es/CodeEditor/index.js +38 -41
  8. package/es/Collapse/index.js +3 -3
  9. package/es/ColorScales/ScaleRow.js +39 -43
  10. package/es/ColorScales/index.js +57 -59
  11. package/es/ConfigProvider/index.js +3 -5
  12. package/es/ContextMenu/index.js +2 -3
  13. package/es/CopyButton/index.js +3 -4
  14. package/es/DraggablePanel/components/DraggablePanelBody.js +2 -3
  15. package/es/DraggablePanel/components/DraggablePanelContainer.js +2 -3
  16. package/es/DraggablePanel/components/DraggablePanelFooter.js +2 -3
  17. package/es/DraggablePanel/components/DraggablePanelHeader.js +5 -9
  18. package/es/DraggablePanel/index.js +28 -35
  19. package/es/EditableText/index.js +13 -16
  20. package/es/EmojiPicker/AvatarUploader.js +60 -71
  21. package/es/EmojiPicker/index.js +101 -110
  22. package/es/EmptyCard/index.js +23 -31
  23. package/es/FileTypeIcon/index.js +44 -55
  24. package/es/FluentEmoji/index.js +4 -6
  25. package/es/Footer/index.js +8 -10
  26. package/es/Form/components/FormDivider.js +2 -2
  27. package/es/Form/components/FormFlatGroup.js +4 -9
  28. package/es/Form/components/FormFooter.js +3 -6
  29. package/es/Form/components/FormGroup.js +15 -21
  30. package/es/Form/components/FormItem.js +10 -17
  31. package/es/Form/components/FormTitle.js +15 -23
  32. package/es/Form/index.js +26 -30
  33. package/es/FormModal/index.js +30 -34
  34. package/es/Grid/index.js +3 -6
  35. package/es/Header/index.js +49 -65
  36. package/es/Highlighter/FullFeatured.js +41 -51
  37. package/es/Highlighter/SyntaxHighlighter/index.js +19 -30
  38. package/es/Highlighter/index.js +23 -32
  39. package/es/Icon/icons/DiscordIcon.js +2 -3
  40. package/es/Icon/index.js +13 -16
  41. package/es/Image/ImageGallery.js +3 -5
  42. package/es/Image/Preview.js +5 -6
  43. package/es/Image/index.js +34 -38
  44. package/es/Image/usePreview.js +33 -37
  45. package/es/Img/index.js +2 -2
  46. package/es/Input/index.js +3 -3
  47. package/es/Layout/index.js +35 -63
  48. package/es/List/ListItem/index.js +53 -67
  49. package/es/Markdown/CodeBlock.js +10 -16
  50. package/es/Markdown/Typography.js +3 -6
  51. package/es/Markdown/index.js +18 -22
  52. package/es/MaterialFileTypeIcon/index.js +17 -20
  53. package/es/MaterialFileTypeIcon/utils.d.ts +2 -2
  54. package/es/Mermaid/FullFeatured.js +35 -45
  55. package/es/Mermaid/index.js +17 -26
  56. package/es/Mermaid/useMermaid.d.ts +2 -1
  57. package/es/Mermaid/useMermaid.js +3 -5
  58. package/es/Modal/index.js +48 -60
  59. package/es/SearchBar/index.js +48 -52
  60. package/es/SelectWithImg/index.js +34 -40
  61. package/es/SideNav/index.js +15 -22
  62. package/es/SliderWithInput/index.js +35 -38
  63. package/es/Snippet/index.js +11 -15
  64. package/es/SortableList/DragHandle.js +3 -3
  65. package/es/SortableList/SortableItem.js +16 -19
  66. package/es/SortableList/SortableOverlay.js +3 -5
  67. package/es/SortableList/index.js +15 -23
  68. package/es/Swatches/index.js +18 -20
  69. package/es/TabsNav/index.js +2 -3
  70. package/es/Tag/index.js +7 -12
  71. package/es/ThemeProvider/Meta.js +53 -58
  72. package/es/ThemeProvider/index.js +17 -23
  73. package/es/ThemeSwitch/index.js +15 -19
  74. package/es/Toc/TocMobile.js +47 -52
  75. package/es/Toc/index.js +8 -13
  76. package/es/Tooltip/index.js +2 -3
  77. package/es/Video/index.js +41 -47
  78. package/es/awesome/AuroraBackground/index.js +11 -18
  79. package/es/awesome/Features/Item.js +37 -45
  80. package/es/awesome/Features/index.js +5 -4
  81. package/es/awesome/GaussianBackground/index.js +8 -13
  82. package/es/awesome/GaussianBackground/useGaussianBackground.d.ts +1 -1
  83. package/es/awesome/GaussianBackground/useGaussianBackground.js +1 -1
  84. package/es/awesome/Giscus/index.js +13 -15
  85. package/es/awesome/GradientButton/index.js +5 -9
  86. package/es/awesome/GridBackground/Grid.js +49 -61
  87. package/es/awesome/GridBackground/GridShowcase.js +24 -28
  88. package/es/awesome/GridBackground/index.js +27 -33
  89. package/es/awesome/Hero/index.js +63 -74
  90. package/es/awesome/Spline/ParentSize.js +7 -8
  91. package/es/awesome/Spline/index.js +10 -13
  92. package/es/awesome/Spotlight/index.js +3 -4
  93. package/es/awesome/SpotlightCard/SpotlightCardItem.js +5 -8
  94. package/es/awesome/SpotlightCard/index.js +9 -12
  95. package/es/brand/BrandLoading/index.js +2 -3
  96. package/es/brand/LobeChat/index.js +29 -38
  97. package/es/brand/LobeChatText/index.js +8 -13
  98. package/es/brand/LobeHub/index.js +29 -38
  99. package/es/brand/LobeHubText/index.js +4 -9
  100. package/es/brand/Logo3d/index.js +2 -3
  101. package/es/brand/LogoFlat/index.js +44 -49
  102. package/es/brand/LogoMono/index.js +48 -53
  103. package/es/brand/LogoThree/Loading.js +9 -11
  104. package/es/brand/LogoThree/LogoSpline.js +10 -12
  105. package/es/brand/LogoThree/index.js +23 -25
  106. package/es/brand/components/Divider.js +4 -6
  107. package/es/chat/BackBottom/index.js +4 -6
  108. package/es/chat/ChatHeader/ChatHeaderTitle.js +22 -31
  109. package/es/chat/ChatHeader/index.js +35 -42
  110. package/es/chat/ChatInputArea/ChatInputActionBar.js +16 -21
  111. package/es/chat/ChatInputArea/ChatInputArea.d.ts +1 -1
  112. package/es/chat/ChatInputArea/ChatInputArea.js +19 -23
  113. package/es/chat/ChatInputArea/ChatInputAreaInner.d.ts +1 -1
  114. package/es/chat/ChatInputArea/ChatInputAreaInner.js +2 -3
  115. package/es/chat/ChatInputArea/SendButton.js +36 -51
  116. package/es/chat/ChatItem/components/Actions.js +3 -5
  117. package/es/chat/ChatItem/components/Avatar.js +17 -21
  118. package/es/chat/ChatItem/components/BorderSpacing.js +1 -2
  119. package/es/chat/ChatItem/components/ErrorContent.js +9 -11
  120. package/es/chat/ChatItem/components/Loading.js +10 -12
  121. package/es/chat/ChatItem/components/MessageContent.js +6 -10
  122. package/es/chat/ChatItem/components/Title.js +3 -8
  123. package/es/chat/ChatItem/index.js +47 -53
  124. package/es/chat/ChatList/ActionsBar.js +2 -3
  125. package/es/chat/ChatList/HistoryDivider.js +6 -11
  126. package/es/chat/ChatList/Item.js +14 -12
  127. package/es/chat/ChatList/index.js +25 -29
  128. package/es/chat/EditableMessage/index.js +26 -32
  129. package/es/chat/EditableMessageList/index.js +72 -76
  130. package/es/chat/MessageInput/index.js +35 -43
  131. package/es/chat/MessageModal/index.js +41 -51
  132. package/es/chat/TokenTag/index.js +7 -11
  133. package/es/components/ControlInput.js +18 -22
  134. package/es/hooks/useHighlight.d.ts +1 -1
  135. package/es/mdx/Callout/index.js +13 -19
  136. package/es/mdx/Cards/Card.js +46 -59
  137. package/es/mdx/Cards/index.js +3 -6
  138. package/es/mdx/FileTree/File.js +5 -11
  139. package/es/mdx/FileTree/Folder.js +13 -22
  140. package/es/mdx/FileTree/index.js +3 -6
  141. package/es/mdx/Mdx/index.d.ts +1 -0
  142. package/es/mdx/Mdx/index.js +24 -11
  143. package/es/mdx/Steps/index.js +3 -6
  144. package/es/mdx/Tabs/Tab.js +3 -8
  145. package/es/mdx/Tabs/index.js +17 -21
  146. package/es/mdx/mdxComponents/CodeBlock.js +9 -14
  147. package/es/mdx/mdxComponents/Image.js +2 -2
  148. package/es/mdx/mdxComponents/Link.js +2 -3
  149. package/es/mdx/mdxComponents/Pre.js +7 -14
  150. package/es/mdx/mdxComponents/Video.js +2 -2
  151. package/es/mobile/MobileChatInputArea/SendButton.js +3 -4
  152. package/es/mobile/MobileChatInputArea/index.js +69 -79
  153. package/es/mobile/MobileNavBar/MobileNavBarTitle.js +26 -37
  154. package/es/mobile/MobileNavBar/index.js +41 -48
  155. package/es/mobile/MobileSafeArea/index.js +2 -3
  156. package/es/mobile/MobileTabBar/index.js +29 -35
  157. package/es/storybook/StoryBook/index.js +19 -26
  158. package/package.json +41 -45
@@ -1,4 +1,4 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  var _excluded = ["children", "language", "showLanguage", "className", "style", "allowChangeLanguage", "fileName", "icon", "bodyRender", "actionsRender", "copyable", "type", "defalutExpand"];
@@ -11,8 +11,6 @@ import CopyButton from "../CopyButton";
11
11
  import { languageMap } from "../hooks/useHighlight";
12
12
  import SyntaxHighlighter from "./SyntaxHighlighter";
13
13
  import { useStyles } from "./style";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
14
  var options = languageMap.map(function (item) {
17
15
  return {
18
16
  label: item,
@@ -52,7 +50,7 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref) {
52
50
  fontSize: 14,
53
51
  strokeWidth: 2
54
52
  };
55
- var origianlActions = copyable && /*#__PURE__*/_jsx(CopyButton, {
53
+ var origianlActions = copyable && /*#__PURE__*/React.createElement(CopyButton, {
56
54
  content: children,
57
55
  placement: "left",
58
56
  size: size
@@ -63,65 +61,57 @@ export var HighlighterFullFeatured = /*#__PURE__*/memo(function (_ref) {
63
61
  language: language,
64
62
  originalNode: origianlActions
65
63
  }) : origianlActions;
66
- var originalBody = /*#__PURE__*/_jsx(SyntaxHighlighter, {
64
+ var originalBody = /*#__PURE__*/React.createElement(SyntaxHighlighter, {
67
65
  language: lang === null || lang === void 0 ? void 0 : lang.toLowerCase(),
68
66
  style: expand ? {} : {
69
67
  height: 0,
70
68
  overflow: 'hidden'
71
- },
72
- children: children
73
- });
69
+ }
70
+ }, children);
74
71
  var body = bodyRender ? bodyRender({
75
72
  content: children,
76
73
  language: language,
77
74
  originalNode: originalBody
78
75
  }) : originalBody;
79
- return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
76
+ return /*#__PURE__*/React.createElement("div", _extends({
80
77
  className: cx(styles.container, className),
81
78
  "data-code-type": "highlighter",
82
79
  style: style
83
- }, rest), {}, {
84
- children: [/*#__PURE__*/_jsxs(Flexbox, {
85
- align: 'center',
86
- className: styles.header,
87
- horizontal: true,
88
- justify: 'space-between',
89
- children: [/*#__PURE__*/_jsx(ActionIcon, {
90
- icon: expand ? ChevronDown : ChevronRight,
91
- onClick: function onClick() {
92
- return setExpand(!expand);
93
- },
94
- size: {
95
- blockSize: 24,
96
- fontSize: 14,
97
- strokeWidth: 3
98
- }
99
- }), allowChangeLanguage && !fileName ? showLanguage && /*#__PURE__*/_jsx(Select, {
100
- className: styles.select,
101
- onSelect: setLang,
102
- options: options,
103
- size: 'small',
104
- suffixIcon: false,
105
- value: lang.toLowerCase(),
106
- variant: 'borderless'
107
- }) : /*#__PURE__*/_jsxs(Flexbox, {
108
- align: 'center',
109
- className: styles.select,
110
- gap: 2,
111
- horizontal: true,
112
- justify: 'center',
113
- children: [icon, /*#__PURE__*/_jsx("span", {
114
- children: fileName || lang
115
- })]
116
- }), /*#__PURE__*/_jsx(Flexbox, {
117
- align: 'center',
118
- flex: 'none',
119
- gap: 4,
120
- horizontal: true,
121
- children: actions
122
- })]
123
- }), body]
124
- }));
80
+ }, rest), /*#__PURE__*/React.createElement(Flexbox, {
81
+ align: 'center',
82
+ className: styles.header,
83
+ horizontal: true,
84
+ justify: 'space-between'
85
+ }, /*#__PURE__*/React.createElement(ActionIcon, {
86
+ icon: expand ? ChevronDown : ChevronRight,
87
+ onClick: function onClick() {
88
+ return setExpand(!expand);
89
+ },
90
+ size: {
91
+ blockSize: 24,
92
+ fontSize: 14,
93
+ strokeWidth: 3
94
+ }
95
+ }), allowChangeLanguage && !fileName ? showLanguage && /*#__PURE__*/React.createElement(Select, {
96
+ className: styles.select,
97
+ onSelect: setLang,
98
+ options: options,
99
+ size: 'small',
100
+ suffixIcon: false,
101
+ value: lang.toLowerCase(),
102
+ variant: 'borderless'
103
+ }) : /*#__PURE__*/React.createElement(Flexbox, {
104
+ align: 'center',
105
+ className: styles.select,
106
+ gap: 2,
107
+ horizontal: true,
108
+ justify: 'center'
109
+ }, icon, /*#__PURE__*/React.createElement("span", null, fileName || lang)), /*#__PURE__*/React.createElement(Flexbox, {
110
+ align: 'center',
111
+ flex: 'none',
112
+ gap: 4,
113
+ horizontal: true
114
+ }, actions)), body);
125
115
  });
126
116
  export default HighlighterFullFeatured;
127
117
  export { default as SyntaxHighlighter } from "./SyntaxHighlighter";
@@ -5,9 +5,6 @@ import { Flexbox } from 'react-layout-kit';
5
5
  import Icon from "../../Icon";
6
6
  import { useHighlight } from "../../hooks/useHighlight";
7
7
  import { useStyles } from "./style";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { Fragment as _Fragment } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
8
  var SyntaxHighlighter = /*#__PURE__*/memo(function (_ref) {
12
9
  var children = _ref.children,
13
10
  language = _ref.language,
@@ -21,32 +18,24 @@ var SyntaxHighlighter = /*#__PURE__*/memo(function (_ref) {
21
18
  var _useHighlight = useHighlight(children, language, isDarkMode),
22
19
  data = _useHighlight.data,
23
20
  isLoading = _useHighlight.isLoading;
24
- return /*#__PURE__*/_jsxs(_Fragment, {
25
- children: [isLoading || !data ? /*#__PURE__*/_jsx("div", {
26
- className: cx(styles.unshiki, className),
27
- style: style,
28
- children: /*#__PURE__*/_jsx("pre", {
29
- children: /*#__PURE__*/_jsx("code", {
30
- children: children
31
- })
32
- })
33
- }) : /*#__PURE__*/_jsx("div", {
34
- className: cx(styles.shiki, className),
35
- dangerouslySetInnerHTML: {
36
- __html: data
37
- },
38
- style: style
39
- }), isLoading && /*#__PURE__*/_jsx(Flexbox, {
40
- align: 'center',
41
- className: styles.loading,
42
- gap: 8,
43
- horizontal: true,
44
- justify: 'center',
45
- children: /*#__PURE__*/_jsx(Icon, {
46
- icon: Loader2,
47
- spin: true
48
- })
49
- })]
50
- });
21
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLoading || !data ? /*#__PURE__*/React.createElement("div", {
22
+ className: cx(styles.unshiki, className),
23
+ style: style
24
+ }, /*#__PURE__*/React.createElement("pre", null, /*#__PURE__*/React.createElement("code", null, children))) : /*#__PURE__*/React.createElement("div", {
25
+ className: cx(styles.shiki, className),
26
+ dangerouslySetInnerHTML: {
27
+ __html: data
28
+ },
29
+ style: style
30
+ }), isLoading && /*#__PURE__*/React.createElement(Flexbox, {
31
+ align: 'center',
32
+ className: styles.loading,
33
+ gap: 8,
34
+ horizontal: true,
35
+ justify: 'center'
36
+ }, /*#__PURE__*/React.createElement(Icon, {
37
+ icon: Loader2,
38
+ spin: true
39
+ })));
51
40
  });
52
41
  export default SyntaxHighlighter;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  var _excluded = ["fullFeatured", "copyButtonSize", "children", "language", "className", "style", "copyable", "showLanguage", "type", "wrap", "bodyRender", "actionsRender"];
6
6
  import { memo } from 'react';
@@ -10,8 +10,6 @@ import Tag from "../Tag";
10
10
  import FullFeatured from "./FullFeatured";
11
11
  import SyntaxHighlighter from "./SyntaxHighlighter";
12
12
  import { useStyles } from "./style";
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
13
  export var Highlighter = /*#__PURE__*/memo(function (_ref) {
16
14
  var fullFeatured = _ref.fullFeatured,
17
15
  _ref$copyButtonSize = _ref.copyButtonSize,
@@ -34,27 +32,27 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
34
32
  var _useStyles = useStyles(type),
35
33
  styles = _useStyles.styles,
36
34
  cx = _useStyles.cx;
37
- var originalActions = copyable && /*#__PURE__*/_jsx(CopyButton, {
38
- content: children,
35
+ var tirmedChildren = children.trim();
36
+ var originalActions = copyable && /*#__PURE__*/React.createElement(CopyButton, {
37
+ content: tirmedChildren,
39
38
  placement: "left",
40
39
  size: copyButtonSize
41
40
  });
42
41
  var actions = actionsRender ? actionsRender({
43
42
  actionIconSize: copyButtonSize,
44
- content: children,
43
+ content: tirmedChildren,
45
44
  language: language,
46
45
  originalNode: originalActions
47
46
  }) : originalActions;
48
- var originalBody = /*#__PURE__*/_jsx(SyntaxHighlighter, {
49
- language: language === null || language === void 0 ? void 0 : language.toLowerCase(),
50
- children: children
51
- });
47
+ var originalBody = /*#__PURE__*/React.createElement(SyntaxHighlighter, {
48
+ language: language === null || language === void 0 ? void 0 : language.toLowerCase()
49
+ }, tirmedChildren);
52
50
  var body = bodyRender ? bodyRender({
53
- content: children,
51
+ content: tirmedChildren,
54
52
  language: language,
55
53
  originalNode: originalBody
56
54
  }) : originalBody;
57
- if (fullFeatured) return /*#__PURE__*/_jsx(FullFeatured, _objectSpread(_objectSpread({
55
+ if (fullFeatured) return /*#__PURE__*/React.createElement(FullFeatured, _extends({
58
56
  actionsRender: actionsRender,
59
57
  bodyRender: bodyRender,
60
58
  className: className,
@@ -63,29 +61,22 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
63
61
  showLanguage: showLanguage,
64
62
  type: type,
65
63
  wrap: wrap
66
- }, rest), {}, {
67
- children: children
68
- }));
69
- return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
64
+ }, rest), tirmedChildren);
65
+ return /*#__PURE__*/React.createElement("div", _extends({
70
66
  className: cx(styles.container, !wrap && styles.nowrap, className),
71
67
  "data-code-type": "highlighter",
72
68
  style: style
73
- }, rest), {}, {
74
- children: [/*#__PURE__*/_jsx(Flexbox, {
75
- align: 'center',
76
- className: styles.button,
77
- flex: 'none',
78
- gap: 4,
79
- horizontal: true,
80
- children: actions
81
- }), showLanguage && language && /*#__PURE__*/_jsx(Tag, {
82
- className: styles.lang,
83
- children: language.toLowerCase()
84
- }), /*#__PURE__*/_jsx("div", {
85
- className: styles.scroller,
86
- children: body
87
- })]
88
- }));
69
+ }, rest), /*#__PURE__*/React.createElement(Flexbox, {
70
+ align: 'center',
71
+ className: styles.button,
72
+ flex: 'none',
73
+ gap: 4,
74
+ horizontal: true
75
+ }, actions), showLanguage && language && /*#__PURE__*/React.createElement(Tag, {
76
+ className: styles.lang
77
+ }, language.toLowerCase()), /*#__PURE__*/React.createElement("div", {
78
+ className: styles.scroller
79
+ }, body));
89
80
  });
90
81
  export default Highlighter;
91
82
  export { default as SyntaxHighlighter } from "./SyntaxHighlighter";
@@ -1,12 +1,11 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { createLucideIcon } from 'lucide-react';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
3
  var Discord = createLucideIcon('Discord', [['path', {
5
4
  d: 'M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z',
6
5
  key: '18tl5t'
7
6
  }]]);
8
7
  var DiscordIcon = function DiscordIcon(props) {
9
- return /*#__PURE__*/_jsx(Discord, _objectSpread({
8
+ return /*#__PURE__*/React.createElement(Discord, _extends({
10
9
  style: {
11
10
  overflow: 'visible'
12
11
  }
package/es/Icon/index.js CHANGED
@@ -1,13 +1,12 @@
1
1
  'use client';
2
2
 
3
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  var _excluded = ["icon", "size", "color", "fill", "className", "focusable", "spin", "fillRule", "fillOpacity"],
6
6
  _excluded2 = ["fontSize"];
7
7
  import { forwardRef, useMemo } from 'react';
8
8
  import { calcSize } from "./calcSize";
9
9
  import { useStyles } from "./style";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
10
  var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
11
  var icon = _ref.icon,
13
12
  size = _ref.size,
@@ -29,21 +28,19 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
29
28
  }, [size]),
30
29
  fontSize = _useMemo.fontSize,
31
30
  restSize = _objectWithoutProperties(_useMemo, _excluded2);
32
- return /*#__PURE__*/_jsx("span", _objectSpread(_objectSpread({
31
+ return /*#__PURE__*/React.createElement("span", _extends({
33
32
  className: cx('anticon', spin && styles.spin, className),
34
33
  role: "img"
35
- }, rest), {}, {
36
- children: /*#__PURE__*/_jsx(SvgIcon, _objectSpread({
37
- color: color,
38
- fill: fill,
39
- fillOpacity: fillOpacity,
40
- fillRule: fillRule,
41
- focusable: focusable,
42
- height: fontSize,
43
- ref: ref,
44
- size: fontSize,
45
- width: fontSize
46
- }, restSize))
47
- }));
34
+ }, rest), /*#__PURE__*/React.createElement(SvgIcon, _extends({
35
+ color: color,
36
+ fill: fill,
37
+ fillOpacity: fillOpacity,
38
+ fillRule: fillRule,
39
+ focusable: focusable,
40
+ height: fontSize,
41
+ ref: ref,
42
+ size: fontSize,
43
+ width: fontSize
44
+ }, restSize)));
48
45
  });
49
46
  export default Icon;
@@ -1,7 +1,6 @@
1
1
  import { Image } from 'antd';
2
2
  import { memo } from 'react';
3
3
  import usePreview from "./usePreview";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
4
  var PreviewGroup = Image.PreviewGroup;
6
5
  var ImageGallery = /*#__PURE__*/memo(function (_ref) {
7
6
  var items = _ref.items,
@@ -11,10 +10,9 @@ var ImageGallery = /*#__PURE__*/memo(function (_ref) {
11
10
  preview = _ref.preview;
12
11
  var mergePreivew = usePreview(preview);
13
12
  if (!enable) return children;
14
- return /*#__PURE__*/_jsx(PreviewGroup, {
13
+ return /*#__PURE__*/React.createElement(PreviewGroup, {
15
14
  items: items,
16
- preview: mergePreivew,
17
- children: children
18
- });
15
+ preview: mergePreivew
16
+ }, children);
19
17
  });
20
18
  export default ImageGallery;
@@ -1,10 +1,10 @@
1
1
  import { memo, useEffect, useRef } from 'react';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
2
  var Preview = /*#__PURE__*/memo(function (_ref) {
4
3
  var children = _ref.children,
5
4
  visible = _ref.visible;
6
- var ref = useRef();
5
+ var ref = useRef(null);
7
6
  useEffect(function () {
7
+ if (!ref.current) return;
8
8
  var handleDisableZoom = function handleDisableZoom(event) {
9
9
  event.preventDefault();
10
10
  };
@@ -16,9 +16,8 @@ var Preview = /*#__PURE__*/memo(function (_ref) {
16
16
  ref.current.removeEventListener('wheel', handleDisableZoom);
17
17
  }
18
18
  }, [visible]);
19
- return /*#__PURE__*/_jsx("div", {
20
- ref: ref,
21
- children: children
22
- });
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ ref: ref
21
+ }, children);
23
22
  });
24
23
  export default Preview;
package/es/Image/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
6
  var _excluded = ["wrapperClassName", "style", "preview", "isLoading", "minSize", "size", "actions", "alwaysShowActions", "objectFit", "classNames", "onClick", "width", "height", "borderless"];
@@ -11,8 +12,6 @@ import { Flexbox } from 'react-layout-kit';
11
12
  import Icon from "../Icon";
12
13
  import { useStyles } from "./style";
13
14
  import usePreview from "./usePreview";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
15
  var Image = /*#__PURE__*/memo(function (_ref) {
17
16
  var wrapperClassName = _ref.wrapperClassName,
18
17
  style = _ref.style,
@@ -48,42 +47,39 @@ var Image = /*#__PURE__*/memo(function (_ref) {
48
47
  cx = _useStyles.cx,
49
48
  theme = _useStyles.theme;
50
49
  var mergePreivew = usePreview(preview);
51
- if (isLoading) return /*#__PURE__*/_jsx("div", {
52
- onClick: onClick,
53
- children: /*#__PURE__*/_jsx(Skeleton.Avatar, {
54
- active: true,
55
- style: {
56
- borderRadius: theme.borderRadius,
57
- height: height,
58
- maxHeight: size,
59
- maxWidth: size,
60
- minHeight: minSize,
61
- minWidth: minSize,
62
- width: width
63
- }
64
- })
65
- });
66
- return /*#__PURE__*/_jsxs(Flexbox, {
67
- className: cx(styles.imageWrapper, wrapperClassName),
68
- style: style,
69
- children: [actions && /*#__PURE__*/_jsx("div", {
70
- className: styles.actions,
71
- children: actions
72
- }), /*#__PURE__*/_jsx(AntImage, _objectSpread({
73
- className: classNames.image,
74
- fallback: isDarkMode ? 'https://gw.alipayobjects.com/zos/kitchen/nhzBb%24r0Cm/image_off_dark.webp' : 'https://gw.alipayobjects.com/zos/kitchen/QAvkgt30Ys/image_off_light.webp',
50
+ if (isLoading) return /*#__PURE__*/React.createElement("div", {
51
+ onClick: onClick
52
+ }, /*#__PURE__*/React.createElement(Skeleton.Avatar, {
53
+ active: true,
54
+ style: {
55
+ borderRadius: theme.borderRadius,
75
56
  height: height,
76
- loading: 'lazy',
77
- onClick: onClick,
78
- preview: preview === false ? false : _objectSpread({
79
- mask: mobile ? false : actions ? /*#__PURE__*/_jsx("div", {}) : /*#__PURE__*/_jsx(Icon, {
80
- icon: Eye,
81
- size: 'normal'
82
- })
83
- }, mergePreivew),
84
- width: width,
85
- wrapperClassName: cx(styles.image, classNames.wrapper)
86
- }, rest))]
87
- });
57
+ maxHeight: size,
58
+ maxWidth: size,
59
+ minHeight: minSize,
60
+ minWidth: minSize,
61
+ width: width
62
+ }
63
+ }));
64
+ return /*#__PURE__*/React.createElement(Flexbox, {
65
+ className: cx(styles.imageWrapper, wrapperClassName),
66
+ style: style
67
+ }, actions && /*#__PURE__*/React.createElement("div", {
68
+ className: styles.actions
69
+ }, actions), /*#__PURE__*/React.createElement(AntImage, _extends({
70
+ className: classNames.image,
71
+ fallback: isDarkMode ? 'https://gw.alipayobjects.com/zos/kitchen/nhzBb%24r0Cm/image_off_dark.webp' : 'https://gw.alipayobjects.com/zos/kitchen/QAvkgt30Ys/image_off_light.webp',
72
+ height: height,
73
+ loading: 'lazy',
74
+ onClick: onClick,
75
+ preview: preview === false ? false : _objectSpread({
76
+ mask: mobile ? false : actions ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Icon, {
77
+ icon: Eye,
78
+ size: 'normal'
79
+ })
80
+ }, mergePreivew),
81
+ width: width,
82
+ wrapperClassName: cx(styles.image, classNames.wrapper)
83
+ }, rest)));
88
84
  });
89
85
  export default Image;
@@ -9,8 +9,6 @@ import ActionIcon from "../ActionIcon";
9
9
  import Icon from "../Icon";
10
10
  import Preview from "./Preview";
11
11
  import { useStyles } from "./style";
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
12
  export var usePreview = function usePreview() {
15
13
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
16
14
  _onVisibleChange = _ref.onVisibleChange,
@@ -29,7 +27,7 @@ export var usePreview = function usePreview() {
29
27
  var _useStyles = useStyles(),
30
28
  styles = _useStyles.styles;
31
29
  return _objectSpread({
32
- closeIcon: /*#__PURE__*/_jsx(Icon, {
30
+ closeIcon: /*#__PURE__*/React.createElement(Icon, {
33
31
  icon: X,
34
32
  size: {
35
33
  fontSize: 18,
@@ -37,10 +35,9 @@ export var usePreview = function usePreview() {
37
35
  }
38
36
  }),
39
37
  imageRender: function imageRender(node) {
40
- return /*#__PURE__*/_jsx(Preview, {
41
- visible: visible,
42
- children: node
43
- });
38
+ return /*#__PURE__*/React.createElement(Preview, {
39
+ visible: visible
40
+ }, node);
44
41
  },
45
42
  maxScale: maxScale,
46
43
  minScale: minScale,
@@ -62,38 +59,37 @@ export var usePreview = function usePreview() {
62
59
  onRotateRight = _ref2$actions.onRotateRight,
63
60
  onZoomOut = _ref2$actions.onZoomOut,
64
61
  onZoomIn = _ref2$actions.onZoomIn;
65
- return /*#__PURE__*/_jsxs(Flexbox, {
62
+ return /*#__PURE__*/React.createElement(Flexbox, {
66
63
  className: styles.toolbar,
67
64
  gap: 4,
68
- horizontal: true,
69
- children: [/*#__PURE__*/_jsx(ActionIcon, {
70
- color: '#fff',
71
- icon: FlipHorizontal,
72
- onClick: onFlipX
73
- }), /*#__PURE__*/_jsx(ActionIcon, {
74
- color: '#fff',
75
- icon: FlipVertical,
76
- onClick: onFlipY
77
- }), /*#__PURE__*/_jsx(ActionIcon, {
78
- color: '#fff',
79
- icon: RotateCcw,
80
- onClick: onRotateLeft
81
- }), /*#__PURE__*/_jsx(ActionIcon, {
82
- color: '#fff',
83
- icon: RotateCw,
84
- onClick: onRotateRight
85
- }), /*#__PURE__*/_jsx(ActionIcon, {
86
- color: '#fff',
87
- disable: scale === minScale,
88
- icon: ZoomOut,
89
- onClick: onZoomOut
90
- }), /*#__PURE__*/_jsx(ActionIcon, {
91
- color: '#fff',
92
- disable: scale === maxScale,
93
- icon: ZoomIn,
94
- onClick: onZoomIn
95
- }), toolbarAddon]
96
- });
65
+ horizontal: true
66
+ }, /*#__PURE__*/React.createElement(ActionIcon, {
67
+ color: '#fff',
68
+ icon: FlipHorizontal,
69
+ onClick: onFlipX
70
+ }), /*#__PURE__*/React.createElement(ActionIcon, {
71
+ color: '#fff',
72
+ icon: FlipVertical,
73
+ onClick: onFlipY
74
+ }), /*#__PURE__*/React.createElement(ActionIcon, {
75
+ color: '#fff',
76
+ icon: RotateCcw,
77
+ onClick: onRotateLeft
78
+ }), /*#__PURE__*/React.createElement(ActionIcon, {
79
+ color: '#fff',
80
+ icon: RotateCw,
81
+ onClick: onRotateRight
82
+ }), /*#__PURE__*/React.createElement(ActionIcon, {
83
+ color: '#fff',
84
+ disable: scale === minScale,
85
+ icon: ZoomOut,
86
+ onClick: onZoomOut
87
+ }), /*#__PURE__*/React.createElement(ActionIcon, {
88
+ color: '#fff',
89
+ disable: scale === maxScale,
90
+ icon: ZoomIn,
91
+ onClick: onZoomIn
92
+ }), toolbarAddon);
97
93
  }
98
94
  }, rest);
99
95
  };
package/es/Img/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
6
  var _excluded = ["unoptimized"];
6
7
  import { createElement, forwardRef, useContext, useMemo } from 'react';
7
8
  import { ConfigContext } from "../ConfigProvider";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
9
  var createContainer = function createContainer(as) {
10
10
  return /*#__PURE__*/forwardRef(function (props, ref) {
11
11
  return /*#__PURE__*/createElement(as, _objectSpread(_objectSpread({}, props), {}, {
@@ -21,7 +21,7 @@ var Img = /*#__PURE__*/forwardRef(function (_ref, ref) {
21
21
  var ImgContainer = useMemo(function () {
22
22
  return createContainer(render);
23
23
  }, [render]);
24
- return /*#__PURE__*/_jsx(ImgContainer, _objectSpread({
24
+ return /*#__PURE__*/React.createElement(ImgContainer, _extends({
25
25
  ref: ref,
26
26
  unoptimized: unoptimized === undefined ? config === null || config === void 0 ? void 0 : config.imgUnoptimized : unoptimized
27
27
  }, res));
package/es/Input/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  'use client';
2
2
 
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
6
  var _excluded = ["className", "type"],
6
7
  _excluded2 = ["className", "type", "resize", "style"];
7
8
  import { Input as AntInput } from 'antd';
8
9
  import { forwardRef } from 'react';
9
10
  import { useStyles } from "./style";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
11
  export var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
12
  var className = _ref.className,
13
13
  _ref$type = _ref.type,
@@ -18,7 +18,7 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
18
18
  }),
19
19
  styles = _useStyles.styles,
20
20
  cx = _useStyles.cx;
21
- return /*#__PURE__*/_jsx(AntInput, _objectSpread({
21
+ return /*#__PURE__*/React.createElement(AntInput, _extends({
22
22
  className: cx(styles.input, className),
23
23
  ref: ref,
24
24
  variant: type === 'pure' ? 'borderless' : undefined
@@ -37,7 +37,7 @@ export var TextArea = /*#__PURE__*/forwardRef(function (_ref2, ref) {
37
37
  }),
38
38
  styles = _useStyles2.styles,
39
39
  cx = _useStyles2.cx;
40
- return /*#__PURE__*/_jsx(AntInput.TextArea, _objectSpread({
40
+ return /*#__PURE__*/React.createElement(AntInput.TextArea, _extends({
41
41
  className: cx(styles.textarea, className),
42
42
  ref: ref,
43
43
  style: resize ? style : _objectSpread({