@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
package/es/A/index.js CHANGED
@@ -1,9 +1,9 @@
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 { createElement, forwardRef, useContext, useMemo } from 'react';
5
6
  import { ConfigContext } from "../ConfigProvider";
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
7
  var createContainer = function createContainer(as) {
8
8
  return /*#__PURE__*/forwardRef(function (props, ref) {
9
9
  return /*#__PURE__*/createElement(as, _objectSpread(_objectSpread({}, props), {}, {
@@ -17,7 +17,7 @@ var A = /*#__PURE__*/forwardRef(function (props, ref) {
17
17
  var AContainer = useMemo(function () {
18
18
  return createContainer(render);
19
19
  }, [render]);
20
- return /*#__PURE__*/_jsx(AContainer, _objectSpread({
20
+ return /*#__PURE__*/React.createElement(AContainer, _extends({
21
21
  ref: ref
22
22
  }, props));
23
23
  });
@@ -1,7 +1,8 @@
1
1
  'use client';
2
2
 
3
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
+ import _extends from "@babel/runtime/helpers/esm/extends";
5
6
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
7
  var _excluded = ["color", "fill", "className", "active", "icon", "size", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "overlayStyle", "tooltipDelay", "fillOpacity", "fillRule", "focusable", "disable", "spin"];
7
8
  import { Loader2 } from 'lucide-react';
@@ -12,8 +13,6 @@ import Tooltip from "../Tooltip";
12
13
  import Spotlight from "../awesome/Spotlight";
13
14
  import { calcSize } from "./calcSize";
14
15
  import { useStyles } from "./style";
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
16
  var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
18
17
  var color = _ref.color,
19
18
  fill = _ref.fill,
@@ -60,15 +59,15 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
60
59
  focusable: focusable,
61
60
  size: size === 'site' ? 'normal' : size
62
61
  };
63
- var content = icon && /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({
62
+ var content = icon && /*#__PURE__*/React.createElement(Icon, _extends({
64
63
  className: styles.icon,
65
64
  icon: icon
66
- }, iconProps), {}, {
65
+ }, iconProps, {
67
66
  spin: iconSpinning
68
67
  }));
69
- var spin = /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({
68
+ var spin = /*#__PURE__*/React.createElement(Icon, _extends({
70
69
  icon: Loader2
71
- }, iconProps), {}, {
70
+ }, iconProps, {
72
71
  spin: true
73
72
  }));
74
73
  var _useState = useState(false),
@@ -80,7 +79,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
80
79
  setTooltipOpen(false);
81
80
  onClick === null || onClick === void 0 || onClick(event);
82
81
  }, [loading, disable, setTooltipOpen, onClick]);
83
- var actionIconBlock = /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
82
+ var actionIconBlock = /*#__PURE__*/React.createElement(Flexbox, _extends({
84
83
  align: 'center',
85
84
  className: cx(styles.block, disable ? styles.disabled : styles.normal, className),
86
85
  horizontal: true,
@@ -92,11 +91,9 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
92
91
  height: blockSize,
93
92
  width: blockSize
94
93
  }, style)
95
- }, rest), {}, {
96
- children: [spotlight && /*#__PURE__*/_jsx(Spotlight, {}), loading ? spin : content, children]
97
- }));
94
+ }, rest), spotlight && /*#__PURE__*/React.createElement(Spotlight, null), loading ? spin : content, children);
98
95
  if (!title) return actionIconBlock;
99
- return /*#__PURE__*/_jsx(Tooltip, {
96
+ return /*#__PURE__*/React.createElement(Tooltip, {
100
97
  arrow: arrow,
101
98
  mouseEnterDelay: tooltipDelay,
102
99
  onOpenChange: setTooltipOpen,
@@ -105,8 +102,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
105
102
  pointerEvents: 'none'
106
103
  }, overlayStyle),
107
104
  placement: placement,
108
- title: title,
109
- children: actionIconBlock
110
- });
105
+ title: title
106
+ }, actionIconBlock);
111
107
  });
112
108
  export default ActionIcon;
@@ -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 = ["type", "items", "placement", "direction", "dropdownMenu", "onActionClick", "size"];
@@ -10,8 +11,6 @@ import { Flexbox } from 'react-layout-kit';
10
11
  import ActionIcon from "../ActionIcon";
11
12
  import Icon from "../Icon";
12
13
  import { useStyles } from "./style";
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
14
  var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
16
15
  var _ref$type = _ref.type,
17
16
  type = _ref$type === void 0 ? 'block' : _ref$type,
@@ -31,52 +30,51 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
31
30
  }),
32
31
  styles = _useStyles.styles;
33
32
  var tooltipsPlacement = placement || (direction === 'column' ? 'right' : 'top');
34
- return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
33
+ return /*#__PURE__*/React.createElement(Flexbox, _extends({
35
34
  className: styles.container,
36
35
  horizontal: direction === 'row'
37
- }, rest), {}, {
38
- children: [(items === null || items === void 0 ? void 0 : items.length) > 0 && items.map(function (item) {
39
- return /*#__PURE__*/_jsx(ActionIcon, {
40
- disable: item.disable,
41
- icon: item.icon,
42
- onClick: onActionClick ? function () {
43
- return onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick({
44
- item: item,
45
- key: item.key,
46
- keyPath: [item.key]
47
- });
48
- } : undefined,
49
- placement: tooltipsPlacement,
50
- size: size,
51
- title: item.label
52
- }, item.key);
53
- }), (dropdownMenu === null || dropdownMenu === void 0 ? void 0 : dropdownMenu.length) > 0 && /*#__PURE__*/_jsx(Dropdown, {
54
- menu: {
55
- items: dropdownMenu.map(function (item) {
56
- if (item.type) return item;
57
- return _objectSpread(_objectSpread({}, item), {}, {
58
- disabled: item.disable,
59
- icon: /*#__PURE__*/_jsx(Icon, {
60
- icon: item.icon,
61
- size: size
62
- }),
63
- onClick: onActionClick ? function (info) {
64
- return onActionClick({
65
- item: item,
66
- key: info.key,
67
- keyPath: info.keyPath
68
- });
69
- } : undefined
70
- });
71
- })
72
- },
73
- trigger: ['click'],
74
- children: /*#__PURE__*/_jsx(ActionIcon, {
75
- icon: MoreHorizontal,
76
- placement: tooltipsPlacement,
77
- size: size
78
- }, "more")
79
- })]
80
- }));
36
+ }, rest), (items === null || items === void 0 ? void 0 : items.length) > 0 && items.map(function (item) {
37
+ return /*#__PURE__*/React.createElement(ActionIcon, {
38
+ disable: item.disable,
39
+ icon: item.icon,
40
+ key: item.key,
41
+ onClick: onActionClick ? function () {
42
+ return onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick({
43
+ item: item,
44
+ key: item.key,
45
+ keyPath: [item.key]
46
+ });
47
+ } : undefined,
48
+ placement: tooltipsPlacement,
49
+ size: size,
50
+ title: item.label
51
+ });
52
+ }), (dropdownMenu === null || dropdownMenu === void 0 ? void 0 : dropdownMenu.length) > 0 && /*#__PURE__*/React.createElement(Dropdown, {
53
+ menu: {
54
+ items: dropdownMenu.map(function (item) {
55
+ if (item.type) return item;
56
+ return _objectSpread(_objectSpread({}, item), {}, {
57
+ disabled: item.disable,
58
+ icon: /*#__PURE__*/React.createElement(Icon, {
59
+ icon: item.icon,
60
+ size: size
61
+ }),
62
+ onClick: onActionClick ? function (info) {
63
+ return onActionClick({
64
+ item: item,
65
+ key: info.key,
66
+ keyPath: info.keyPath
67
+ });
68
+ } : undefined
69
+ });
70
+ })
71
+ },
72
+ trigger: ['click']
73
+ }, /*#__PURE__*/React.createElement(ActionIcon, {
74
+ icon: MoreHorizontal,
75
+ key: "more",
76
+ placement: tooltipsPlacement,
77
+ size: size
78
+ })));
81
79
  });
82
80
  export default ActionIconGroup;
package/es/Alert/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 _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
6
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
@@ -12,8 +13,6 @@ import { Flexbox } from 'react-layout-kit';
12
13
  import ActionIcon from "../ActionIcon";
13
14
  import Icon from "../Icon";
14
15
  import { useStyles } from "./style";
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
16
  var typeIcons = {
18
17
  error: XCircle,
19
18
  info: Info,
@@ -62,17 +61,17 @@ var Alert = /*#__PURE__*/memo(function (_ref) {
62
61
  styles = _useStyles.styles,
63
62
  cx = _useStyles.cx;
64
63
  var isInsideExtra = !extraIsolate && !!extra;
65
- var alert = /*#__PURE__*/_jsx(AntdAlert, _objectSpread({
64
+ var alert = /*#__PURE__*/React.createElement(AntdAlert, _extends({
66
65
  banner: banner,
67
66
  className: cx(styles.container, colorfulText && styles.colorfulText, !!isInsideExtra && styles.hasExtra, variant === 'block' && styles.variantBlock, variant === 'ghost' && styles.variantGhost, variant === 'pure' && styles.variantPure, classNames === null || classNames === void 0 ? void 0 : classNames.alert, !isInsideExtra && styles.container),
68
67
  closable: closable,
69
- closeIcon: closeIcon || /*#__PURE__*/_jsx(ActionIcon, {
68
+ closeIcon: closeIcon || /*#__PURE__*/React.createElement(ActionIcon, {
70
69
  color: colors(theme, type),
71
70
  icon: X,
72
71
  size: 'small'
73
72
  }),
74
73
  description: description,
75
- icon: /*#__PURE__*/_jsx(Icon, {
74
+ icon: /*#__PURE__*/React.createElement(Icon, {
76
75
  icon: typeIcons[type] || icon,
77
76
  size: {
78
77
  fontSize: description ? 24 : 18
@@ -85,51 +84,45 @@ var Alert = /*#__PURE__*/memo(function (_ref) {
85
84
  type: type
86
85
  }, rest));
87
86
  if (!extra) return alert;
88
- if (extraIsolate) return /*#__PURE__*/_jsxs(Flexbox, {
87
+ if (extraIsolate) return /*#__PURE__*/React.createElement(Flexbox, {
89
88
  className: classNames === null || classNames === void 0 ? void 0 : classNames.container,
90
- gap: 8,
91
- children: [alert, extra]
92
- });
93
- return /*#__PURE__*/_jsxs(Flexbox, {
94
- className: classNames === null || classNames === void 0 ? void 0 : classNames.container,
95
- children: [alert, /*#__PURE__*/_jsxs(Flexbox, {
96
- className: cx(styles.extra, banner && styles.banner, variant === 'block' && styles.variantBlock, variant === 'ghost' && styles.variantGhost, variant === 'pure' && styles.variantPure),
97
- style: {
98
- background: colors(theme, type, 'bg'),
99
- borderColor: colors(theme, type, 'border'),
100
- color: colors(theme, type),
101
- fontSize: description ? 14 : 12
102
- },
103
- children: [/*#__PURE__*/_jsxs(Flexbox, {
104
- align: 'center',
105
- className: cx(styles.extraHeader, variant === 'pure' && styles.variantPureExtraHeader),
106
- gap: message ? 6 : 10,
107
- horizontal: true,
108
- style: {
109
- borderColor: colors(theme, type, 'border')
110
- },
111
- children: [/*#__PURE__*/_jsx(ActionIcon, {
112
- color: colorfulText ? colors(theme, type) : undefined,
113
- icon: expand ? ChevronDown : ChevronRight,
114
- onClick: function onClick() {
115
- return setExpand(!expand);
116
- },
117
- size: {
118
- blockSize: 24,
119
- fontSize: 18
120
- }
121
- }), /*#__PURE__*/_jsx("div", {
122
- className: cx(styles.expandText),
123
- onClick: function onClick() {
124
- return setExpand(!expand);
125
- },
126
- children: (text === null || text === void 0 ? void 0 : text.detail) || 'Show Details'
127
- })]
128
- }), expand && /*#__PURE__*/_jsx("div", {
129
- className: cx(styles.extraBody, variant === 'pure' && styles.variantPure),
130
- children: extra
131
- })]
132
- })]
133
- });
89
+ gap: 8
90
+ }, alert, extra);
91
+ return /*#__PURE__*/React.createElement(Flexbox, {
92
+ className: classNames === null || classNames === void 0 ? void 0 : classNames.container
93
+ }, alert, /*#__PURE__*/React.createElement(Flexbox, {
94
+ className: cx(styles.extra, banner && styles.banner, variant === 'block' && styles.variantBlock, variant === 'ghost' && styles.variantGhost, variant === 'pure' && styles.variantPure),
95
+ style: {
96
+ background: colors(theme, type, 'bg'),
97
+ borderColor: colors(theme, type, 'border'),
98
+ color: colors(theme, type),
99
+ fontSize: description ? 14 : 12
100
+ }
101
+ }, /*#__PURE__*/React.createElement(Flexbox, {
102
+ align: 'center',
103
+ className: cx(styles.extraHeader, variant === 'pure' && styles.variantPureExtraHeader),
104
+ gap: message ? 6 : 10,
105
+ horizontal: true,
106
+ style: {
107
+ borderColor: colors(theme, type, 'border')
108
+ }
109
+ }, /*#__PURE__*/React.createElement(ActionIcon, {
110
+ color: colorfulText ? colors(theme, type) : undefined,
111
+ icon: expand ? ChevronDown : ChevronRight,
112
+ onClick: function onClick() {
113
+ return setExpand(!expand);
114
+ },
115
+ size: {
116
+ blockSize: 24,
117
+ fontSize: 18
118
+ }
119
+ }), /*#__PURE__*/React.createElement("div", {
120
+ className: cx(styles.expandText),
121
+ onClick: function onClick() {
122
+ return setExpand(!expand);
123
+ }
124
+ }, (text === null || text === void 0 ? void 0 : text.detail) || 'Show Details')), expand && /*#__PURE__*/React.createElement("div", {
125
+ className: cx(styles.extraBody, variant === 'pure' && styles.variantPure)
126
+ }, extra)));
134
127
  });
135
128
  export default Alert;
@@ -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 = ["className", "avatar", "title", "animation", "size", "shape", "background", "style", "unoptimized"];
@@ -9,7 +10,6 @@ import { forwardRef, isValidElement, useMemo } from 'react';
9
10
  import FluentEmoji from "../FluentEmoji";
10
11
  import Img from "../Img";
11
12
  import { useStyles } from "./style";
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
13
  var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
14
14
  var className = _ref.className,
15
15
  avatar = _ref.avatar,
@@ -47,24 +47,22 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
47
  cursor: 'default'
48
48
  }, style)
49
49
  }, rest);
50
- return isDefaultAntAvatar ? /*#__PURE__*/_jsx(AntAvatar, _objectSpread({
50
+ return isDefaultAntAvatar ? /*#__PURE__*/React.createElement(AntAvatar, _extends({
51
51
  ref: ref,
52
- src: typeof avatar === 'string' ? /*#__PURE__*/_jsx(Img, {
52
+ src: typeof avatar === 'string' ? /*#__PURE__*/React.createElement(Img, {
53
53
  alt: avatarProps.alt || title,
54
54
  height: size,
55
55
  loading: 'lazy',
56
56
  src: avatar,
57
57
  width: size
58
58
  }) : avatar
59
- }, avatarProps)) : /*#__PURE__*/_jsx(AntAvatar, _objectSpread(_objectSpread({
59
+ }, avatarProps)) : /*#__PURE__*/React.createElement(AntAvatar, _extends({
60
60
  ref: ref
61
- }, avatarProps), {}, {
62
- children: emoji ? /*#__PURE__*/_jsx(FluentEmoji, {
63
- emoji: emoji,
64
- size: size * 0.8,
65
- type: animation ? 'anim' : '3d',
66
- unoptimized: unoptimized
67
- }) : text === null || text === void 0 ? void 0 : text.toUpperCase().slice(0, 2)
68
- }));
61
+ }, avatarProps), emoji ? /*#__PURE__*/React.createElement(FluentEmoji, {
62
+ emoji: emoji,
63
+ size: size * 0.8,
64
+ type: animation ? 'anim' : '3d',
65
+ unoptimized: unoptimized
66
+ }) : text === null || text === void 0 ? void 0 : text.toUpperCase().slice(0, 2));
69
67
  });
70
68
  export default Avatar;
@@ -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 = ["items", "openKeys", "selectedKeys", "opened", "setOpened", "className", "headerHeight", "onClick", "iconProps", "rootClassName", "fullscreen", "drawerProps"];
6
6
  import { Drawer, Menu } from 'antd';
@@ -9,8 +9,6 @@ import { memo } from 'react';
9
9
  import { Center } from 'react-layout-kit';
10
10
  import ActionIcon from "../ActionIcon";
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
  var Burger = /*#__PURE__*/memo(function (_ref) {
15
13
  var items = _ref.items,
16
14
  openKeys = _ref.openKeys,
@@ -32,42 +30,39 @@ var Burger = /*#__PURE__*/memo(function (_ref) {
32
30
  }),
33
31
  cx = _useStyles.cx,
34
32
  styles = _useStyles.styles;
35
- return /*#__PURE__*/_jsxs(Center, _objectSpread(_objectSpread({
33
+ return /*#__PURE__*/React.createElement(Center, _extends({
36
34
  className: cx(styles.container, className),
37
35
  onClick: function onClick() {
38
36
  setOpened(!opened);
39
37
  }
40
- }, rest), {}, {
41
- children: [/*#__PURE__*/_jsx(ActionIcon, _objectSpread({
42
- icon: opened ? X : MenuIcon,
43
- size: "site"
44
- }, iconProps)), /*#__PURE__*/_jsxs(Drawer, _objectSpread(_objectSpread({
45
- closeIcon: undefined,
46
- open: opened,
47
- placement: 'left',
48
- width: '100vw'
49
- }, drawerProps), {}, {
50
- className: styles.drawer,
51
- rootClassName: cx(styles.drawerRoot, rootClassName),
52
- styles: {
53
- body: {
54
- padding: 0
55
- },
56
- header: {
57
- display: 'none'
58
- }
38
+ }, rest), /*#__PURE__*/React.createElement(ActionIcon, _extends({
39
+ icon: opened ? X : MenuIcon,
40
+ size: "site"
41
+ }, iconProps)), /*#__PURE__*/React.createElement(Drawer, _extends({
42
+ closeIcon: undefined,
43
+ open: opened,
44
+ placement: 'left',
45
+ width: '100vw'
46
+ }, drawerProps, {
47
+ className: styles.drawer,
48
+ rootClassName: cx(styles.drawerRoot, rootClassName),
49
+ styles: {
50
+ body: {
51
+ padding: 0
59
52
  },
60
- children: [/*#__PURE__*/_jsx(Menu, {
61
- className: styles.menu,
62
- items: items,
63
- mode: 'inline',
64
- onClick: onClick,
65
- openKeys: openKeys,
66
- selectedKeys: selectedKeys
67
- }), /*#__PURE__*/_jsx("div", {
68
- className: styles.fillRect
69
- })]
70
- }))]
71
- }));
53
+ header: {
54
+ display: 'none'
55
+ }
56
+ }
57
+ }), /*#__PURE__*/React.createElement(Menu, {
58
+ className: styles.menu,
59
+ items: items,
60
+ mode: 'inline',
61
+ onClick: onClick,
62
+ openKeys: openKeys,
63
+ selectedKeys: selectedKeys
64
+ }), /*#__PURE__*/React.createElement("div", {
65
+ className: styles.fillRect
66
+ })));
72
67
  });
73
68
  export default Burger;
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
@@ -6,8 +7,6 @@ import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useSta
6
7
  import { Flexbox } from 'react-layout-kit';
7
8
  import { useStyles } from "./style";
8
9
  import SyntaxHighlighter from "../Highlighter/SyntaxHighlighter";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
10
  var KEYCODE_Y = 89;
12
11
  var KEYCODE_Z = 90;
13
12
  var KEYCODE_M = 77;
@@ -369,46 +368,44 @@ var Editor = /*#__PURE__*/forwardRef(function (_ref, ref) {
369
368
  }
370
369
  };
371
370
  }, []);
372
- return /*#__PURE__*/_jsx(Flexbox, _objectSpread(_objectSpread({
371
+ return /*#__PURE__*/React.createElement(Flexbox, _extends({
373
372
  className: cx(styles.container, className),
374
373
  style: style
375
- }, rest), {}, {
376
- children: /*#__PURE__*/_jsxs("div", {
377
- className: styles.editor,
378
- children: [/*#__PURE__*/_jsx(SyntaxHighlighter, {
379
- className: cx(styles.highlight, classNames === null || classNames === void 0 ? void 0 : classNames.highlight),
380
- language: language,
381
- style: s.highlight,
382
- children: value
383
- }), /*#__PURE__*/_jsx("textarea", {
384
- autoCapitalize: "off",
385
- autoComplete: "off",
386
- autoCorrect: "off",
387
- autoFocus: autoFocus,
388
- className: cx(styles.textarea, classNames === null || classNames === void 0 ? void 0 : classNames.textarea),
389
- "data-gramm": false,
390
- disabled: disabled,
391
- form: form,
392
- id: textareaId,
393
- maxLength: maxLength,
394
- minLength: minLength,
395
- onBlur: onBlur,
396
- onChange: handleChange,
397
- onClick: onClick,
398
- onFocus: onFocus,
399
- onKeyDown: handleKeyDown,
400
- onKeyUp: onKeyUp,
401
- placeholder: placeholder,
402
- readOnly: readOnly,
403
- ref: function ref(c) {
404
- return inputRef.current = c;
405
- },
406
- required: required,
407
- spellCheck: false,
408
- style: _objectSpread({}, s === null || s === void 0 ? void 0 : s.textarea),
409
- value: value
410
- })]
411
- })
412
- }));
374
+ }, rest), /*#__PURE__*/React.createElement("div", {
375
+ className: styles.editor
376
+ }, /*#__PURE__*/React.createElement(SyntaxHighlighter, {
377
+ className: cx(styles.highlight, classNames === null || classNames === void 0 ? void 0 : classNames.highlight),
378
+ language: language,
379
+ style: s.highlight
380
+ }, value), /*#__PURE__*/React.createElement("textarea", {
381
+ autoCapitalize: "off",
382
+ autoComplete: "off",
383
+ autoCorrect: "off",
384
+ autoFocus: autoFocus,
385
+ className: cx(styles.textarea, classNames === null || classNames === void 0 ? void 0 : classNames.textarea),
386
+ "data-gramm": false,
387
+ disabled: disabled,
388
+ form: form,
389
+ id: textareaId,
390
+ maxLength: maxLength,
391
+ minLength: minLength,
392
+ onBlur: onBlur,
393
+ onChange: handleChange,
394
+ onClick: onClick,
395
+ onFocus: onFocus,
396
+ onKeyDown: handleKeyDown,
397
+ onKeyUp: onKeyUp,
398
+ placeholder: placeholder,
399
+ readOnly: readOnly
400
+ // @ts-ignore
401
+ ,
402
+ ref: function ref(c) {
403
+ return inputRef.current = c;
404
+ },
405
+ required: required,
406
+ spellCheck: false,
407
+ style: _objectSpread({}, s === null || s === void 0 ? void 0 : s.textarea),
408
+ value: value
409
+ })));
413
410
  });
414
411
  export default Editor;
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _typeof from "@babel/runtime/helpers/esm/typeof";
3
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
@@ -7,7 +8,6 @@ import { ChevronDown } from 'lucide-react';
7
8
  import { memo } from 'react';
8
9
  import Icon from "../Icon";
9
10
  import { useStyles } from "./style";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
11
  var Collapse = /*#__PURE__*/memo(function (_ref) {
12
12
  var style = _ref.style,
13
13
  _ref$variant = _ref.variant,
@@ -29,13 +29,13 @@ var Collapse = /*#__PURE__*/memo(function (_ref) {
29
29
  cx = _useStyles.cx,
30
30
  styles = _useStyles.styles;
31
31
  var variantStyle = cx(variant === 'default' && styles.defaultStyle, variant === 'block' && styles.blockStyle, variant === 'ghost' && styles.ghostStyle, variant === 'pure' && styles.pureStyle);
32
- return /*#__PURE__*/_jsx(AntdCollapse, _objectSpread({
32
+ return /*#__PURE__*/React.createElement(AntdCollapse, _extends({
33
33
  bordered: !gap && (variant === 'default' || variant === 'ghost'),
34
34
  className: cx(styles.group, !collapsible && styles.hideCollapsibleIcon, variantStyle, className),
35
35
  collapsible: collapsible ? 'header' : 'icon',
36
36
  expandIcon: function expandIcon(_ref2) {
37
37
  var isActive = _ref2.isActive;
38
- return /*#__PURE__*/_jsx(Icon, {
38
+ return /*#__PURE__*/React.createElement(Icon, {
39
39
  className: styles.icon,
40
40
  icon: ChevronDown,
41
41
  size: {