@lobehub/ui 1.159.0 → 1.161.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 (154) hide show
  1. package/es/A/index.js +2 -2
  2. package/es/ActionIcon/index.d.ts +5 -2
  3. package/es/ActionIcon/index.js +25 -19
  4. package/es/ActionIconGroup/index.js +47 -45
  5. package/es/Alert/index.js +50 -43
  6. package/es/Avatar/index.js +12 -10
  7. package/es/Burger/index.js +35 -30
  8. package/es/CodeEditor/index.js +43 -38
  9. package/es/Collapse/index.js +3 -3
  10. package/es/ColorScales/ScaleRow.js +43 -39
  11. package/es/ColorScales/index.js +59 -57
  12. package/es/ConfigProvider/index.js +5 -3
  13. package/es/ContextMenu/index.js +3 -2
  14. package/es/CopyButton/index.js +4 -3
  15. package/es/DraggablePanel/components/DraggablePanelBody.js +3 -2
  16. package/es/DraggablePanel/components/DraggablePanelContainer.js +3 -2
  17. package/es/DraggablePanel/components/DraggablePanelFooter.js +3 -2
  18. package/es/DraggablePanel/components/DraggablePanelHeader.js +9 -5
  19. package/es/DraggablePanel/index.js +32 -25
  20. package/es/EditableText/index.js +16 -13
  21. package/es/EmojiPicker/AvatarUploader.js +71 -60
  22. package/es/EmojiPicker/index.js +110 -101
  23. package/es/EmptyCard/index.js +31 -23
  24. package/es/FileTypeIcon/index.js +55 -44
  25. package/es/FluentEmoji/index.js +6 -4
  26. package/es/Footer/index.js +10 -8
  27. package/es/Form/components/FormDivider.js +2 -2
  28. package/es/Form/components/FormFlatGroup.js +9 -4
  29. package/es/Form/components/FormFooter.js +6 -3
  30. package/es/Form/components/FormGroup.js +21 -15
  31. package/es/Form/components/FormItem.js +17 -10
  32. package/es/Form/components/FormTitle.js +23 -15
  33. package/es/Form/index.js +30 -26
  34. package/es/FormModal/index.js +34 -30
  35. package/es/Grid/index.js +6 -3
  36. package/es/Header/index.js +65 -49
  37. package/es/Highlighter/FullFeatured.js +51 -41
  38. package/es/Highlighter/SyntaxHighlighter/index.js +30 -19
  39. package/es/Highlighter/index.js +29 -19
  40. package/es/Icon/icons/DiscordIcon.js +3 -2
  41. package/es/Icon/index.js +16 -13
  42. package/es/Image/ImageGallery.js +5 -3
  43. package/es/Image/Preview.js +5 -3
  44. package/es/Image/index.js +38 -34
  45. package/es/Image/usePreview.js +37 -33
  46. package/es/Img/index.js +2 -2
  47. package/es/Input/index.js +3 -3
  48. package/es/Layout/index.js +63 -35
  49. package/es/List/ListItem/index.js +67 -53
  50. package/es/Markdown/CodeBlock.js +16 -10
  51. package/es/Markdown/Typography.js +6 -3
  52. package/es/Markdown/index.js +22 -18
  53. package/es/MaterialFileTypeIcon/index.js +20 -17
  54. package/es/MaterialFileTypeIcon/utils.d.ts +2 -2
  55. package/es/Mermaid/FullFeatured.js +45 -35
  56. package/es/Mermaid/index.js +26 -17
  57. package/es/Mermaid/useMermaid.d.ts +1 -2
  58. package/es/Mermaid/useMermaid.js +5 -3
  59. package/es/Modal/index.js +60 -48
  60. package/es/SearchBar/index.js +51 -47
  61. package/es/SelectWithImg/index.js +40 -34
  62. package/es/SideNav/index.js +22 -15
  63. package/es/SliderWithInput/index.js +38 -35
  64. package/es/Snippet/index.js +15 -10
  65. package/es/SortableList/DragHandle.js +3 -3
  66. package/es/SortableList/SortableItem.js +19 -16
  67. package/es/SortableList/SortableOverlay.js +5 -3
  68. package/es/SortableList/index.js +23 -15
  69. package/es/Swatches/index.js +20 -18
  70. package/es/TabsNav/index.js +3 -2
  71. package/es/Tag/index.js +12 -7
  72. package/es/ThemeProvider/Meta.js +58 -53
  73. package/es/ThemeProvider/index.js +23 -17
  74. package/es/ThemeSwitch/index.js +19 -15
  75. package/es/Toc/TocMobile.js +52 -47
  76. package/es/Toc/index.js +13 -8
  77. package/es/Tooltip/index.js +6 -3
  78. package/es/Video/index.js +47 -41
  79. package/es/awesome/AuroraBackground/index.js +18 -11
  80. package/es/awesome/Features/Item.js +45 -37
  81. package/es/awesome/Features/index.js +4 -5
  82. package/es/awesome/GaussianBackground/index.js +13 -8
  83. package/es/awesome/Giscus/index.js +15 -13
  84. package/es/awesome/GradientButton/index.js +9 -5
  85. package/es/awesome/GridBackground/Grid.js +61 -49
  86. package/es/awesome/GridBackground/GridShowcase.js +28 -24
  87. package/es/awesome/GridBackground/index.js +33 -27
  88. package/es/awesome/Hero/index.js +74 -63
  89. package/es/awesome/Spline/ParentSize.js +8 -7
  90. package/es/awesome/Spline/index.js +13 -10
  91. package/es/awesome/Spotlight/index.js +3 -2
  92. package/es/awesome/SpotlightCard/SpotlightCardItem.js +8 -5
  93. package/es/awesome/SpotlightCard/index.js +12 -9
  94. package/es/brand/BrandLoading/index.js +3 -2
  95. package/es/brand/LobeChat/index.js +38 -29
  96. package/es/brand/LobeChatText/index.js +13 -8
  97. package/es/brand/LobeHub/index.js +38 -29
  98. package/es/brand/LobeHubText/index.js +9 -4
  99. package/es/brand/Logo3d/index.js +3 -2
  100. package/es/brand/LogoFlat/index.js +49 -44
  101. package/es/brand/LogoMono/index.js +53 -48
  102. package/es/brand/LogoThree/Loading.js +11 -9
  103. package/es/brand/LogoThree/LogoSpline.js +12 -10
  104. package/es/brand/LogoThree/index.js +25 -23
  105. package/es/brand/components/Divider.js +6 -4
  106. package/es/chat/BackBottom/index.js +6 -4
  107. package/es/chat/ChatHeader/ChatHeaderTitle.js +31 -22
  108. package/es/chat/ChatHeader/index.js +42 -35
  109. package/es/chat/ChatInputArea/ChatInputActionBar.js +21 -16
  110. package/es/chat/ChatInputArea/ChatInputArea.js +23 -19
  111. package/es/chat/ChatInputArea/ChatInputAreaInner.js +3 -2
  112. package/es/chat/ChatInputArea/SendButton.js +51 -36
  113. package/es/chat/ChatItem/components/Actions.js +5 -3
  114. package/es/chat/ChatItem/components/Avatar.js +21 -17
  115. package/es/chat/ChatItem/components/BorderSpacing.js +2 -1
  116. package/es/chat/ChatItem/components/ErrorContent.js +11 -9
  117. package/es/chat/ChatItem/components/Loading.js +12 -10
  118. package/es/chat/ChatItem/components/MessageContent.js +10 -6
  119. package/es/chat/ChatItem/components/Title.js +8 -3
  120. package/es/chat/ChatItem/index.js +53 -47
  121. package/es/chat/ChatList/ActionsBar.js +3 -2
  122. package/es/chat/ChatList/HistoryDivider.js +11 -6
  123. package/es/chat/ChatList/Item.js +12 -14
  124. package/es/chat/ChatList/index.js +29 -25
  125. package/es/chat/EditableMessage/index.js +32 -26
  126. package/es/chat/EditableMessageList/index.js +76 -72
  127. package/es/chat/MessageInput/index.js +43 -35
  128. package/es/chat/MessageModal/index.js +51 -41
  129. package/es/chat/TokenTag/index.js +11 -7
  130. package/es/components/ControlInput.js +22 -18
  131. package/es/hooks/useHighlight.d.ts +1 -1
  132. package/es/mdx/Callout/index.js +19 -13
  133. package/es/mdx/Cards/Card.js +59 -46
  134. package/es/mdx/Cards/index.js +6 -3
  135. package/es/mdx/FileTree/File.js +11 -5
  136. package/es/mdx/FileTree/Folder.js +22 -13
  137. package/es/mdx/FileTree/index.js +6 -3
  138. package/es/mdx/Mdx/index.js +9 -7
  139. package/es/mdx/Steps/index.js +6 -3
  140. package/es/mdx/Tabs/Tab.js +8 -3
  141. package/es/mdx/Tabs/index.js +21 -17
  142. package/es/mdx/mdxComponents/CodeBlock.js +14 -9
  143. package/es/mdx/mdxComponents/Image.js +2 -2
  144. package/es/mdx/mdxComponents/Link.js +3 -2
  145. package/es/mdx/mdxComponents/Pre.js +14 -7
  146. package/es/mdx/mdxComponents/Video.js +2 -2
  147. package/es/mobile/MobileChatInputArea/SendButton.js +4 -3
  148. package/es/mobile/MobileChatInputArea/index.js +79 -69
  149. package/es/mobile/MobileNavBar/MobileNavBarTitle.js +37 -26
  150. package/es/mobile/MobileNavBar/index.js +48 -41
  151. package/es/mobile/MobileSafeArea/index.js +3 -2
  152. package/es/mobile/MobileTabBar/index.js +35 -29
  153. package/es/storybook/StoryBook/index.js +26 -19
  154. package/package.json +21 -22
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
@@ -10,6 +9,9 @@ import { memo, useState } from 'react';
10
9
  import { Flexbox } from 'react-layout-kit';
11
10
  import { TextArea } from "../../Input";
12
11
  import { useStyles } from "./style";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Fragment as _Fragment } from "react/jsx-runtime";
14
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
15
  var MessageInput = /*#__PURE__*/memo(function (_ref) {
14
16
  var text = _ref.text,
15
17
  _ref$type = _ref.type,
@@ -36,44 +38,50 @@ var MessageInput = /*#__PURE__*/memo(function (_ref) {
36
38
  cx = _useStyles.cx,
37
39
  styles = _useStyles.styles;
38
40
  var isAutoSize = height === 'auto';
39
- return /*#__PURE__*/React.createElement(Flexbox, _extends({
41
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
40
42
  gap: 16,
41
43
  style: _objectSpread({
42
44
  flex: 1,
43
45
  width: '100%'
44
46
  }, style)
45
- }, rest), /*#__PURE__*/React.createElement(TextArea, {
46
- autoSize: isAutoSize,
47
- className: cx(styles, textareaClassname),
48
- classNames: classNames,
49
- onBlur: function onBlur(e) {
50
- return setValue(e.target.value);
51
- },
52
- onChange: function onChange(e) {
53
- return setValue(e.target.value);
54
- },
55
- placeholder: placeholder,
56
- resize: false,
57
- style: textareaStyle,
58
- type: type,
59
- value: temporaryValue
60
- }), /*#__PURE__*/React.createElement(Flexbox, {
61
- direction: 'horizontal-reverse',
62
- gap: 8
63
- }, renderButtons ? renderButtons(temporaryValue).map(function (buttonProps, index) {
64
- return /*#__PURE__*/React.createElement(Button, _extends({
65
- key: index,
66
- size: "small"
67
- }, buttonProps));
68
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
69
- onClick: function onClick() {
70
- onConfirm === null || onConfirm === void 0 || onConfirm(temporaryValue);
71
- },
72
- size: editButtonSize,
73
- type: "primary"
74
- }, (text === null || text === void 0 ? void 0 : text.confirm) || 'Confirm'), /*#__PURE__*/React.createElement(Button, {
75
- onClick: onCancel,
76
- size: editButtonSize
77
- }, (text === null || text === void 0 ? void 0 : text.cancel) || 'Cancel'))));
47
+ }, rest), {}, {
48
+ children: [/*#__PURE__*/_jsx(TextArea, {
49
+ autoSize: isAutoSize,
50
+ className: cx(styles, textareaClassname),
51
+ classNames: classNames,
52
+ onBlur: function onBlur(e) {
53
+ return setValue(e.target.value);
54
+ },
55
+ onChange: function onChange(e) {
56
+ return setValue(e.target.value);
57
+ },
58
+ placeholder: placeholder,
59
+ resize: false,
60
+ style: textareaStyle,
61
+ type: type,
62
+ value: temporaryValue
63
+ }), /*#__PURE__*/_jsx(Flexbox, {
64
+ direction: 'horizontal-reverse',
65
+ gap: 8,
66
+ children: renderButtons ? renderButtons(temporaryValue).map(function (buttonProps, index) {
67
+ return /*#__PURE__*/_jsx(Button, _objectSpread({
68
+ size: "small"
69
+ }, buttonProps), index);
70
+ }) : /*#__PURE__*/_jsxs(_Fragment, {
71
+ children: [/*#__PURE__*/_jsx(Button, {
72
+ onClick: function onClick() {
73
+ onConfirm === null || onConfirm === void 0 || onConfirm(temporaryValue);
74
+ },
75
+ size: editButtonSize,
76
+ type: "primary",
77
+ children: (text === null || text === void 0 ? void 0 : text.confirm) || 'Confirm'
78
+ }), /*#__PURE__*/_jsx(Button, {
79
+ onClick: onCancel,
80
+ size: editButtonSize,
81
+ children: (text === null || text === void 0 ? void 0 : text.cancel) || 'Cancel'
82
+ })]
83
+ })
84
+ })]
85
+ }));
78
86
  });
79
87
  export default MessageInput;
@@ -11,6 +11,9 @@ import { TextArea } from "../../Input";
11
11
  import Markdown from "../../Markdown";
12
12
  import Modal from "../../Modal";
13
13
  import { useStyles as useTextStyles } from "../MessageInput/style";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ import { Fragment as _Fragment } from "react/jsx-runtime";
14
17
  var MessageModal = /*#__PURE__*/memo(function (_ref) {
15
18
  var editing = _ref.editing,
16
19
  open = _ref.open,
@@ -52,23 +55,26 @@ var MessageModal = /*#__PURE__*/memo(function (_ref) {
52
55
  overflowX: 'hidden',
53
56
  overflowY: 'auto'
54
57
  };
55
- var modalFooter = isEdit ? /*#__PURE__*/React.createElement(Flexbox, {
58
+ var modalFooter = isEdit ? /*#__PURE__*/_jsxs(Flexbox, {
56
59
  direction: 'horizontal-reverse',
57
- gap: 8
58
- }, /*#__PURE__*/React.createElement(Button, {
59
- onClick: function onClick() {
60
- setTyping(false);
61
- onChange === null || onChange === void 0 || onChange(temporaryValue);
62
- setValue(value);
63
- },
64
- type: "primary"
65
- }, (text === null || text === void 0 ? void 0 : text.confirm) || 'Confirm'), /*#__PURE__*/React.createElement(Button, {
66
- onClick: function onClick() {
67
- setTyping(false);
68
- setValue(value);
69
- }
70
- }, (text === null || text === void 0 ? void 0 : text.cancel) || 'Cancel')) : footer;
71
- return /*#__PURE__*/React.createElement(Modal, {
60
+ gap: 8,
61
+ children: [/*#__PURE__*/_jsx(Button, {
62
+ onClick: function onClick() {
63
+ setTyping(false);
64
+ onChange === null || onChange === void 0 || onChange(temporaryValue);
65
+ setValue(value);
66
+ },
67
+ type: "primary",
68
+ children: (text === null || text === void 0 ? void 0 : text.confirm) || 'Confirm'
69
+ }), /*#__PURE__*/_jsx(Button, {
70
+ onClick: function onClick() {
71
+ setTyping(false);
72
+ setValue(value);
73
+ },
74
+ children: (text === null || text === void 0 ? void 0 : text.cancel) || 'Cancel'
75
+ })]
76
+ }) : footer;
77
+ return /*#__PURE__*/_jsx(Modal, {
72
78
  allowFullscreen: true,
73
79
  cancelText: (text === null || text === void 0 ? void 0 : text.cancel) || 'Cancel',
74
80
  destroyOnClose: true,
@@ -83,30 +89,34 @@ var MessageModal = /*#__PURE__*/memo(function (_ref) {
83
89
  return setTyping(true);
84
90
  },
85
91
  open: showModal,
86
- title: text === null || text === void 0 ? void 0 : text.title
87
- }, isEdit ? /*#__PURE__*/React.createElement(TextArea, {
88
- autoSize: isAutoSize,
89
- className: textStyles,
90
- onBlur: function onBlur(e) {
91
- return setValue(e.target.value);
92
- },
93
- onChange: function onChange(e) {
94
- return setValue(e.target.value);
95
- },
96
- placeholder: placeholder,
97
- resize: false,
98
- style: {
99
- flex: mobile ? 1 : undefined,
100
- height: isAutoSize ? 'unset' : height,
101
- minHeight: mobile ? 'unset' : '100%'
102
- },
103
- type: mobile ? 'pure' : 'block',
104
- value: temporaryValue
105
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, extra, /*#__PURE__*/React.createElement(Markdown, {
106
- style: value ? markdownStyle : _objectSpread(_objectSpread({}, markdownStyle), {}, {
107
- opacity: 0.5
108
- }),
109
- variant: 'chat'
110
- }, String(value || placeholder))));
92
+ title: text === null || text === void 0 ? void 0 : text.title,
93
+ children: isEdit ? /*#__PURE__*/_jsx(TextArea, {
94
+ autoSize: isAutoSize,
95
+ className: textStyles,
96
+ onBlur: function onBlur(e) {
97
+ return setValue(e.target.value);
98
+ },
99
+ onChange: function onChange(e) {
100
+ return setValue(e.target.value);
101
+ },
102
+ placeholder: placeholder,
103
+ resize: false,
104
+ style: {
105
+ flex: mobile ? 1 : undefined,
106
+ height: isAutoSize ? 'unset' : height,
107
+ minHeight: mobile ? 'unset' : '100%'
108
+ },
109
+ type: mobile ? 'pure' : 'block',
110
+ value: temporaryValue
111
+ }) : /*#__PURE__*/_jsxs(_Fragment, {
112
+ children: [extra, /*#__PURE__*/_jsx(Markdown, {
113
+ style: value ? markdownStyle : _objectSpread(_objectSpread({}, markdownStyle), {}, {
114
+ opacity: 0.5
115
+ }),
116
+ variant: 'chat',
117
+ children: String(value || placeholder)
118
+ })]
119
+ })
120
+ });
111
121
  });
112
122
  export default MessageModal;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  var _excluded = ["className", "displayMode", "maxValue", "value", "text", "shape", "unoptimized"];
6
6
  import { useResponsive } from 'antd-style';
@@ -9,6 +9,8 @@ import { forwardRef } from 'react';
9
9
  import { Flexbox } from 'react-layout-kit';
10
10
  import FluentEmoji from "../../FluentEmoji";
11
11
  import { ICON_SIZE, useStyles } from "./style";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { jsxs as _jsxs } from "react/jsx-runtime";
12
14
  var format = function format(number) {
13
15
  return numeral(number).format('0,0');
14
16
  };
@@ -45,17 +47,19 @@ var TokenTag = /*#__PURE__*/forwardRef(function (_ref, ref) {
45
47
  }),
46
48
  styles = _useStyles.styles,
47
49
  cx = _useStyles.cx;
48
- return /*#__PURE__*/React.createElement(Flexbox, _extends({
50
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
49
51
  align: 'center',
50
52
  className: cx(styles.container, className),
51
53
  flex: 'none',
52
54
  gap: 4,
53
55
  horizontal: true,
54
56
  ref: ref
55
- }, rest), /*#__PURE__*/React.createElement(FluentEmoji, {
56
- emoji: emoji,
57
- size: ICON_SIZE,
58
- unoptimized: unoptimized
59
- }), valueLeft > 0 ? [mobile ? '' : displayMode === 'remained' ? (text === null || text === void 0 ? void 0 : text.remained) || 'Remained' : (text === null || text === void 0 ? void 0 : text.used) || 'Used', displayMode === 'remained' ? format(valueLeft) : format(value)].join(' ') : (text === null || text === void 0 ? void 0 : text.overload) || 'Overload');
57
+ }, rest), {}, {
58
+ children: [/*#__PURE__*/_jsx(FluentEmoji, {
59
+ emoji: emoji,
60
+ size: ICON_SIZE,
61
+ unoptimized: unoptimized
62
+ }), valueLeft > 0 ? [mobile ? '' : displayMode === 'remained' ? (text === null || text === void 0 ? void 0 : text.remained) || 'Remained' : (text === null || text === void 0 ? void 0 : text.used) || 'Used', displayMode === 'remained' ? format(valueLeft) : format(value)].join(' ') : (text === null || text === void 0 ? void 0 : text.overload) || 'Overload']
63
+ }));
60
64
  });
61
65
  export default TokenTag;
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  var _excluded = ["value", "onChange", "onValueChanging", "onChangeEnd"];
@@ -7,6 +7,8 @@ import { RotateCcw, Save } from 'lucide-react';
7
7
  import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
8
8
  import ActionIcon from "../ActionIcon";
9
9
  import { Input } from "../Input";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { jsxs as _jsxs } from "react/jsx-runtime";
10
12
  export var ControlInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
13
  var value = _ref.value,
12
14
  onChange = _ref.onChange,
@@ -25,7 +27,7 @@ export var ControlInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
25
27
  useEffect(function () {
26
28
  if (value !== undefined) setInput(value);
27
29
  }, [value]);
28
- return /*#__PURE__*/React.createElement(Input, _extends({
30
+ return /*#__PURE__*/_jsx(Input, _objectSpread({
29
31
  autoFocus: true,
30
32
  onBlur: function onBlur() {
31
33
  isFocusing.current = false;
@@ -53,27 +55,29 @@ export var ControlInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
53
55
  }
54
56
  },
55
57
  ref: ref,
56
- suffix: value === input ? /*#__PURE__*/React.createElement("span", null) : /*#__PURE__*/React.createElement(ConfigProvider, {
58
+ suffix: value === input ? /*#__PURE__*/_jsx("span", {}) : /*#__PURE__*/_jsx(ConfigProvider, {
57
59
  theme: {
58
60
  token: {
59
61
  fontSize: 14
60
62
  }
61
- }
62
- }, /*#__PURE__*/React.createElement(Space, {
63
- size: 2
64
- }, /*#__PURE__*/React.createElement(ActionIcon, {
65
- icon: RotateCcw,
66
- onClick: function onClick() {
67
- setInput(value);
68
63
  },
69
- size: "small",
70
- title: "Reset"
71
- }), /*#__PURE__*/React.createElement(ActionIcon, {
72
- icon: Save,
73
- onClick: updateValue,
74
- size: "small",
75
- title: "\u2705 Save"
76
- }))),
64
+ children: /*#__PURE__*/_jsxs(Space, {
65
+ size: 2,
66
+ children: [/*#__PURE__*/_jsx(ActionIcon, {
67
+ icon: RotateCcw,
68
+ onClick: function onClick() {
69
+ setInput(value);
70
+ },
71
+ size: "small",
72
+ title: "Reset"
73
+ }), /*#__PURE__*/_jsx(ActionIcon, {
74
+ icon: Save,
75
+ onClick: updateValue,
76
+ size: "small",
77
+ title: "\u2705 Save"
78
+ })]
79
+ })
80
+ }),
77
81
  value: input
78
82
  }, rest));
79
83
  });
@@ -1,3 +1,3 @@
1
1
  export declare const FALLBACK_LANG = "txt";
2
- export declare const useHighlight: (text: string, lang: string, isDarkMode: boolean) => import("swr/_internal").SWRResponse<string, any, any>;
2
+ export declare const useHighlight: (text: string, lang: string, isDarkMode: boolean) => import("swr/dist/_internal").SWRResponse<string, any, any>;
3
3
  export { default as languageMap } from './languageMap';
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
5
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
@@ -11,6 +10,8 @@ import { AlertOctagon, AlertTriangle, Info, Lightbulb, MessageSquareWarning } fr
11
10
  import { rgba } from 'polished';
12
11
  import { Flexbox } from 'react-layout-kit';
13
12
  import Icon from "../../Icon";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { jsxs as _jsxs } from "react/jsx-runtime";
14
15
  var useStyles = createStyles(function (_ref) {
15
16
  var css = _ref.css;
16
17
  return {
@@ -55,7 +56,7 @@ var Callout = function Callout(_ref2) {
55
56
  var selectedType = (typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig[type]) || typeConfig.info;
56
57
  var icon = selectedType.icon,
57
58
  color = selectedType.color;
58
- return /*#__PURE__*/React.createElement(Flexbox, _extends({
59
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
59
60
  align: 'flex-start',
60
61
  className: cx(styles.container, className),
61
62
  horizontal: true,
@@ -64,16 +65,21 @@ var Callout = function Callout(_ref2) {
64
65
  borderColor: rgba(color, 0.5),
65
66
  color: color
66
67
  }, style)
67
- }, rest), /*#__PURE__*/React.createElement(Icon, {
68
- icon: icon,
69
- size: {
70
- fontSize: '1.2em'
71
- },
72
- style: {
73
- marginBlock: '0.25em'
74
- }
75
- }), /*#__PURE__*/React.createElement("div", {
76
- className: cx(styles.content, type === 'info' && styles.underlineAnchor)
77
- }, /*#__PURE__*/React.createElement("div", null, children)));
68
+ }, rest), {}, {
69
+ children: [/*#__PURE__*/_jsx(Icon, {
70
+ icon: icon,
71
+ size: {
72
+ fontSize: '1.2em'
73
+ },
74
+ style: {
75
+ marginBlock: '0.25em'
76
+ }
77
+ }), /*#__PURE__*/_jsx("div", {
78
+ className: cx(styles.content, type === 'info' && styles.underlineAnchor),
79
+ children: /*#__PURE__*/_jsx("div", {
80
+ children: children
81
+ })
82
+ })]
83
+ }));
78
84
  };
79
85
  export default Callout;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
6
6
  var _excluded = ["tag", "tagColor", "icon", "title", "desc", "href", "iconProps", "className", "image"];
@@ -11,6 +11,8 @@ import { Flexbox } from 'react-layout-kit';
11
11
  import A from "../../A";
12
12
  import Icon from "../../Icon";
13
13
  import Img from "../../Img";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ import { jsxs as _jsxs } from "react/jsx-runtime";
14
16
  var useStyles = createStyles(function (_ref) {
15
17
  var css = _ref.css,
16
18
  cx = _ref.cx,
@@ -37,50 +39,61 @@ var Card = function Card(_ref2) {
37
39
  var _useStyles = useStyles(),
38
40
  cx = _useStyles.cx,
39
41
  styles = _useStyles.styles;
40
- return /*#__PURE__*/React.createElement(A, {
41
- href: href
42
- }, /*#__PURE__*/React.createElement(Flexbox, _extends({
43
- align: 'flex-start',
44
- className: cx(styles.card, className)
45
- }, rest), image && /*#__PURE__*/React.createElement(Img, {
46
- alt: title,
47
- height: 100,
48
- src: image,
49
- style: {
50
- height: 'auto',
51
- width: '100%'
52
- },
53
- width: 250
54
- }), tag && /*#__PURE__*/React.createElement(Flexbox, {
55
- align: 'flex-start',
56
- className: styles.content,
57
- style: {
58
- paddingBottom: '0.2em',
59
- paddingTop: '1.8em'
60
- }
61
- }, /*#__PURE__*/React.createElement(Tag, {
62
- bordered: false,
63
- color: tagColor,
64
- style: {
65
- borderRadius: '1em',
66
- fontSize: '0.8em',
67
- fontWeight: 500,
68
- paddingBlock: '0.1em',
69
- paddingInline: '0.6em'
70
- }
71
- }, tag)), /*#__PURE__*/React.createElement(Flexbox, {
72
- align: desc ? 'flex-start' : 'center',
73
- className: styles.content,
74
- gap: '0.75em',
75
- horizontal: true
76
- }, !image && icon && /*#__PURE__*/React.createElement(Icon, _extends({
77
- className: styles.icon,
78
- icon: icon,
79
- size: {
80
- fontSize: '1.5em'
81
- }
82
- }, iconProps)), /*#__PURE__*/React.createElement(Flexbox, {
83
- gap: '0.2em'
84
- }, /*#__PURE__*/React.createElement("h3", null, title), desc && /*#__PURE__*/React.createElement("p", null, desc)))));
42
+ return /*#__PURE__*/_jsx(A, {
43
+ href: href,
44
+ children: /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
45
+ align: 'flex-start',
46
+ className: cx(styles.card, className)
47
+ }, rest), {}, {
48
+ children: [image && /*#__PURE__*/_jsx(Img, {
49
+ alt: title,
50
+ height: 100,
51
+ src: image,
52
+ style: {
53
+ height: 'auto',
54
+ width: '100%'
55
+ },
56
+ width: 250
57
+ }), tag && /*#__PURE__*/_jsx(Flexbox, {
58
+ align: 'flex-start',
59
+ className: styles.content,
60
+ style: {
61
+ paddingBottom: '0.2em',
62
+ paddingTop: '1.8em'
63
+ },
64
+ children: /*#__PURE__*/_jsx(Tag, {
65
+ bordered: false,
66
+ color: tagColor,
67
+ style: {
68
+ borderRadius: '1em',
69
+ fontSize: '0.8em',
70
+ fontWeight: 500,
71
+ paddingBlock: '0.1em',
72
+ paddingInline: '0.6em'
73
+ },
74
+ children: tag
75
+ })
76
+ }), /*#__PURE__*/_jsxs(Flexbox, {
77
+ align: desc ? 'flex-start' : 'center',
78
+ className: styles.content,
79
+ gap: '0.75em',
80
+ horizontal: true,
81
+ children: [!image && icon && /*#__PURE__*/_jsx(Icon, _objectSpread({
82
+ className: styles.icon,
83
+ icon: icon,
84
+ size: {
85
+ fontSize: '1.5em'
86
+ }
87
+ }, iconProps)), /*#__PURE__*/_jsxs(Flexbox, {
88
+ gap: '0.2em',
89
+ children: [/*#__PURE__*/_jsx("h3", {
90
+ children: title
91
+ }), desc && /*#__PURE__*/_jsx("p", {
92
+ children: desc
93
+ })]
94
+ })]
95
+ })]
96
+ }))
97
+ });
85
98
  };
86
99
  export default Card;
@@ -1,12 +1,13 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
6
6
  var _excluded = ["children", "className", "maxItemWidth", "rows"];
7
7
  var _templateObject;
8
8
  import { createStyles } from 'antd-style';
9
9
  import Grid from "../../Grid";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
10
11
  var useStyles = createStyles(function (_ref) {
11
12
  var css = _ref.css;
12
13
  return {
@@ -24,10 +25,12 @@ var Cards = function Cards(_ref2) {
24
25
  var _useStyles = useStyles(),
25
26
  cx = _useStyles.cx,
26
27
  styles = _useStyles.styles;
27
- return /*#__PURE__*/React.createElement(Grid, _extends({
28
+ return /*#__PURE__*/_jsx(Grid, _objectSpread(_objectSpread({
28
29
  className: cx(styles.container, className),
29
30
  maxItemWidth: maxItemWidth,
30
31
  rows: rows
31
- }, rest), children);
32
+ }, rest), {}, {
33
+ children: children
34
+ }));
32
35
  };
33
36
  export default Cards;
@@ -1,22 +1,28 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  var _excluded = ["name", "icon"];
6
6
  import { FileIcon } from 'lucide-react';
7
7
  import { Flexbox } from 'react-layout-kit';
8
8
  import Icon from "../../Icon";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
9
11
  var File = function File(_ref) {
10
12
  var name = _ref.name,
11
13
  _ref$icon = _ref.icon,
12
14
  icon = _ref$icon === void 0 ? FileIcon : _ref$icon,
13
15
  rest = _objectWithoutProperties(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(Flexbox, _extends({
16
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
15
17
  align: 'center',
16
18
  gap: 4,
17
19
  horizontal: true
18
- }, rest), /*#__PURE__*/React.createElement(Icon, {
19
- icon: icon
20
- }), /*#__PURE__*/React.createElement("span", null, name));
20
+ }, rest), {}, {
21
+ children: [/*#__PURE__*/_jsx(Icon, {
22
+ icon: icon
23
+ }), /*#__PURE__*/_jsx("span", {
24
+ children: name
25
+ })]
26
+ }));
21
27
  };
22
28
  export default File;
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
6
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
@@ -10,6 +11,8 @@ import { FolderIcon, FolderOpen } from 'lucide-react';
10
11
  import { useState } from 'react';
11
12
  import { Flexbox } from 'react-layout-kit';
12
13
  import Icon from "../../Icon";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
16
  var useStyles = createStyles(function (_ref) {
14
17
  var css = _ref.css,
15
18
  token = _ref.token;
@@ -31,18 +34,24 @@ var Folder = function Folder(_ref2) {
31
34
  setOpen = _useState2[1];
32
35
  var _useStyles = useStyles(),
33
36
  styles = _useStyles.styles;
34
- return /*#__PURE__*/React.createElement(Flexbox, rest, /*#__PURE__*/React.createElement(Flexbox, {
35
- align: 'center',
36
- className: styles.folder,
37
- gap: 4,
38
- horizontal: true,
39
- onClick: function onClick() {
40
- return setOpen(!open);
41
- }
42
- }, /*#__PURE__*/React.createElement(Icon, {
43
- icon: open ? FolderOpen : icon
44
- }), /*#__PURE__*/React.createElement("span", null, name)), open && /*#__PURE__*/React.createElement(Flexbox, {
45
- className: styles.folderChildren
46
- }, children));
37
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({}, rest), {}, {
38
+ children: [/*#__PURE__*/_jsxs(Flexbox, {
39
+ align: 'center',
40
+ className: styles.folder,
41
+ gap: 4,
42
+ horizontal: true,
43
+ onClick: function onClick() {
44
+ return setOpen(!open);
45
+ },
46
+ children: [/*#__PURE__*/_jsx(Icon, {
47
+ icon: open ? FolderOpen : icon
48
+ }), /*#__PURE__*/_jsx("span", {
49
+ children: name
50
+ })]
51
+ }), open && /*#__PURE__*/_jsx(Flexbox, {
52
+ className: styles.folderChildren,
53
+ children: children
54
+ })]
55
+ }));
47
56
  };
48
57
  export default Folder;