@lobehub/ui 1.115.0 → 1.115.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/es/ActionIcon/index.js +2 -2
  2. package/es/ActionIconGroup/index.js +2 -2
  3. package/es/Avatar/index.js +4 -6
  4. package/es/Burger/index.js +2 -2
  5. package/es/ChatInputArea/Desktop.js +2 -2
  6. package/es/ChatInputArea/Mobile.js +2 -2
  7. package/es/ChatItem/index.js +2 -2
  8. package/es/ChatList/ActionsBar.js +2 -2
  9. package/es/ChatList/index.js +2 -2
  10. package/es/CodeEditor/index.js +2 -2
  11. package/es/ContextMenu/index.js +2 -2
  12. package/es/CopyButton/index.js +2 -2
  13. package/es/DraggablePanel/components/DraggablePanelBody.js +2 -2
  14. package/es/DraggablePanel/components/DraggablePanelContainer.js +2 -2
  15. package/es/DraggablePanel/components/DraggablePanelFooter.js +2 -2
  16. package/es/DraggablePanel/components/DraggablePanelHeader.js +2 -2
  17. package/es/EditableText/index.js +2 -2
  18. package/es/EmptyCard/index.js +2 -2
  19. package/es/Features/Item.js +2 -2
  20. package/es/Features/index.js +2 -2
  21. package/es/Form/components/FormDivider.js +2 -2
  22. package/es/Form/components/FormFooter.js +2 -2
  23. package/es/Form/components/FormGroup.js +2 -2
  24. package/es/Form/components/FormItem.js +2 -2
  25. package/es/Form/index.js +2 -2
  26. package/es/Giscus/index.js +2 -2
  27. package/es/GradientButton/index.js +2 -2
  28. package/es/GridBackground/Grid.js +2 -2
  29. package/es/GridBackground/GridShowcase.js +2 -2
  30. package/es/GridBackground/index.js +2 -2
  31. package/es/Header/index.js +2 -2
  32. package/es/Highlighter/FullFeatured.js +2 -2
  33. package/es/Highlighter/index.js +3 -3
  34. package/es/Icon/index.js +2 -2
  35. package/es/Input/index.js +4 -4
  36. package/es/Layout/index.js +12 -12
  37. package/es/List/ListItem/index.js +2 -2
  38. package/es/Logo/Divider.js +2 -2
  39. package/es/Logo/LogoHighContrast.js +2 -2
  40. package/es/Logo/LogoText.js +2 -2
  41. package/es/Logo/index.js +5 -5
  42. package/es/LogoThree/Loading.d.ts +5 -0
  43. package/es/LogoThree/Loading.js +25 -0
  44. package/es/LogoThree/LogoSpline.js +31 -5
  45. package/es/LogoThree/index.js +26 -5
  46. package/es/Markdown/CodeBlock.js +5 -5
  47. package/es/Markdown/index.js +3 -3
  48. package/es/MessageInput/index.js +2 -2
  49. package/es/MobileSafeArea/index.js +2 -2
  50. package/es/Modal/index.js +4 -4
  51. package/es/SideNav/index.js +2 -2
  52. package/es/SliderWithInput/index.js +2 -2
  53. package/es/Snippet/index.js +2 -2
  54. package/es/SpotlightCard/SpotlightCardItem.js +2 -2
  55. package/es/SpotlightCard/index.js +2 -2
  56. package/es/StoryBook/index.js +2 -2
  57. package/es/TabsNav/index.js +2 -2
  58. package/es/Tag/index.js +2 -2
  59. package/es/TokenTag/index.js +2 -2
  60. package/es/Tooltip/index.js +2 -2
  61. package/es/components/ControlInput.js +2 -2
  62. package/es/styles/theme/customStylish.js +1 -1
  63. package/package.json +1 -1
@@ -72,7 +72,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
72
72
  loading = _ref.loading,
73
73
  _ref$tooltipDelay = _ref.tooltipDelay,
74
74
  tooltipDelay = _ref$tooltipDelay === void 0 ? 0.5 : _ref$tooltipDelay,
75
- props = _objectWithoutProperties(_ref, _excluded);
75
+ rest = _objectWithoutProperties(_ref, _excluded);
76
76
  var _useStyles = useStyles({
77
77
  active: Boolean(active),
78
78
  glass: Boolean(glass)
@@ -108,7 +108,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
108
108
  height: blockSize,
109
109
  width: blockSize
110
110
  }, style)
111
- }, props), {}, {
111
+ }, rest), {}, {
112
112
  children: [spotlight && /*#__PURE__*/_jsx(Spotlight, {}), loading ? spin : content]
113
113
  }));
114
114
  if (!title) return actionIconBlock;
@@ -23,7 +23,7 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
23
23
  _ref$dropdownMenu = _ref.dropdownMenu,
24
24
  dropdownMenu = _ref$dropdownMenu === void 0 ? [] : _ref$dropdownMenu,
25
25
  onActionClick = _ref.onActionClick,
26
- props = _objectWithoutProperties(_ref, _excluded);
26
+ rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var _useStyles = useStyles({
28
28
  direction: direction,
29
29
  type: type
@@ -32,7 +32,7 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
32
32
  var tooltipsPlacement = placement || (direction === 'column' ? 'right' : 'top');
33
33
  return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
34
34
  className: styles.container
35
- }, props), {}, {
35
+ }, rest), {}, {
36
36
  children: [spotlight && /*#__PURE__*/_jsx(Spotlight, {}), (items === null || items === void 0 ? void 0 : items.length) > 0 && items.map(function (item) {
37
37
  return /*#__PURE__*/_jsx(ActionIcon, {
38
38
  icon: item.icon,
@@ -21,11 +21,10 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
21
21
  _ref$background = _ref.background,
22
22
  background = _ref$background === void 0 ? 'rgba(0,0,0,0)' : _ref$background,
23
23
  style = _ref.style,
24
- props = _objectWithoutProperties(_ref, _excluded);
24
+ rest = _objectWithoutProperties(_ref, _excluded);
25
25
  var isImage = Boolean(avatar && ['/', 'http', 'data:'].some(function (index) {
26
26
  return avatar.startsWith(index);
27
27
  }));
28
- var isBase64 = Boolean(avatar === null || avatar === void 0 ? void 0 : avatar.startsWith('data'));
29
28
  var emoji = useMemo(function () {
30
29
  return avatar && !isImage && getEmoji(avatar);
31
30
  }, [avatar]);
@@ -41,13 +40,12 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
41
40
  className: cx(styles.avatar, className),
42
41
  shape: shape,
43
42
  size: size,
44
- style: props !== null && props !== void 0 && props.onClick ? style : _objectSpread({
43
+ style: rest !== null && rest !== void 0 && rest.onClick ? style : _objectSpread({
45
44
  cursor: 'default'
46
45
  }, style)
47
- }, props);
46
+ }, rest);
48
47
  return isImage ? /*#__PURE__*/_jsx(AntAvatar, _objectSpread({
49
- src: isBase64 ? avatar : undefined,
50
- srcSet: isBase64 ? undefined : avatar
48
+ src: avatar
51
49
  }, avatarProps)) : /*#__PURE__*/_jsx(AntAvatar, _objectSpread(_objectSpread({}, avatarProps), {}, {
52
50
  children: emoji ? /*#__PURE__*/_jsx(FluentEmoji, {
53
51
  emoji: emoji,
@@ -20,7 +20,7 @@ var Burger = /*#__PURE__*/memo(function (_ref) {
20
20
  className = _ref.className,
21
21
  _ref$headerHeight = _ref.headerHeight,
22
22
  headerHeight = _ref$headerHeight === void 0 ? 64 : _ref$headerHeight,
23
- props = _objectWithoutProperties(_ref, _excluded);
23
+ rest = _objectWithoutProperties(_ref, _excluded);
24
24
  var _useStyles = useStyles(headerHeight),
25
25
  cx = _useStyles.cx,
26
26
  styles = _useStyles.styles;
@@ -29,7 +29,7 @@ var Burger = /*#__PURE__*/memo(function (_ref) {
29
29
  onClick: function onClick() {
30
30
  setOpened(!opened);
31
31
  }
32
- }, props), {}, {
32
+ }, rest), {}, {
33
33
  children: [/*#__PURE__*/_jsx(ActionIcon, {
34
34
  icon: opened ? X : MenuIcon,
35
35
  size: "site"
@@ -44,7 +44,7 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
44
44
  actionsRight = _ref.actionsRight,
45
45
  onStop = _ref.onStop,
46
46
  value = _ref.value,
47
- props = _objectWithoutProperties(_ref, _excluded);
47
+ rest = _objectWithoutProperties(_ref, _excluded);
48
48
  var _useControlledState = useControlledState(defaultValue, {
49
49
  defaultValue: defaultValue,
50
50
  onChange: onInputChange,
@@ -80,7 +80,7 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
80
80
  id: textareaId,
81
81
  ref: ref,
82
82
  style: textareaStyle
83
- }, props), {}, {
83
+ }, rest), {}, {
84
84
  onBlur: function onBlur(e) {
85
85
  if (_onBlur) _onBlur(e);
86
86
  setCurrentValue(e.target.value);
@@ -45,7 +45,7 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
45
45
  actionsRight = _ref.actionsRight,
46
46
  onStop = _ref.onStop,
47
47
  value = _ref.value,
48
- props = _objectWithoutProperties(_ref, _excluded);
48
+ rest = _objectWithoutProperties(_ref, _excluded);
49
49
  var _useControlledState = useControlledState(defaultValue, {
50
50
  defaultValue: defaultValue,
51
51
  onChange: onInputChange,
@@ -84,7 +84,7 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
84
84
  id: inputId,
85
85
  ref: ref,
86
86
  style: inputStyle
87
- }, props), {}, {
87
+ }, rest), {}, {
88
88
  onBlur: function onBlur(e) {
89
89
  if (_onBlur) _onBlur(e);
90
90
  setCurrentValue(e.target.value);
@@ -40,7 +40,7 @@ var ChatItem = /*#__PURE__*/memo(function (_ref) {
40
40
  text = _ref.text,
41
41
  errorMessage = _ref.errorMessage,
42
42
  onDoubleClick = _ref.onDoubleClick,
43
- props = _objectWithoutProperties(_ref, _excluded);
43
+ rest = _objectWithoutProperties(_ref, _excluded);
44
44
  var _useResponsive = useResponsive(),
45
45
  mobile = _useResponsive.mobile;
46
46
  var _useStyles = useStyles({
@@ -57,7 +57,7 @@ var ChatItem = /*#__PURE__*/memo(function (_ref) {
57
57
  className: cx(styles.container, className),
58
58
  direction: placement === 'left' ? 'horizontal' : 'horizontal-reverse',
59
59
  gap: mobile ? 6 : 12
60
- }, props), {}, {
60
+ }, rest), {}, {
61
61
  children: [/*#__PURE__*/_jsx(Avatar, {
62
62
  addon: avatarAddon,
63
63
  avatar: avatar,
@@ -9,7 +9,7 @@ import { useChatListActionsBar } from "../hooks/useChatListActionsBar";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  var ActionsBar = /*#__PURE__*/memo(function (_ref) {
11
11
  var text = _ref.text,
12
- props = _objectWithoutProperties(_ref, _excluded);
12
+ rest = _objectWithoutProperties(_ref, _excluded);
13
13
  var _useChatListActionsBa = useChatListActionsBar(text),
14
14
  regenerate = _useChatListActionsBa.regenerate,
15
15
  edit = _useChatListActionsBa.edit,
@@ -20,6 +20,6 @@ var ActionsBar = /*#__PURE__*/memo(function (_ref) {
20
20
  dropdownMenu: [edit, copy, regenerate, divider, del],
21
21
  items: [regenerate, edit],
22
22
  type: "ghost"
23
- }, props));
23
+ }, rest));
24
24
  });
25
25
  export default ActionsBar;
@@ -28,13 +28,13 @@ var ChatList = /*#__PURE__*/memo(function (_ref) {
28
28
  renderActions = _ref.renderActions,
29
29
  _ref$historyCount = _ref.historyCount,
30
30
  historyCount = _ref$historyCount === void 0 ? 0 : _ref$historyCount,
31
- props = _objectWithoutProperties(_ref, _excluded);
31
+ rest = _objectWithoutProperties(_ref, _excluded);
32
32
  var _useStyles = useStyles(),
33
33
  cx = _useStyles.cx,
34
34
  styles = _useStyles.styles;
35
35
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
36
36
  className: cx(styles.container, className)
37
- }, props), {}, {
37
+ }, rest), {}, {
38
38
  children: data.map(function (item, index) {
39
39
  var itemProps = {
40
40
  loading: loadingId === item.id,
@@ -19,7 +19,7 @@ var CodeEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
19
19
  textareaClassName = _ref.textareaClassName,
20
20
  _ref$type = _ref.type,
21
21
  type = _ref$type === void 0 ? 'ghost' : _ref$type,
22
- props = _objectWithoutProperties(_ref, _excluded);
22
+ rest = _objectWithoutProperties(_ref, _excluded);
23
23
  var _useStyles = useStyles({
24
24
  resize: resize,
25
25
  type: type
@@ -42,7 +42,7 @@ var CodeEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
42
42
  ref: ref,
43
43
  textareaClassName: cx(styles.textarea, textareaClassName),
44
44
  value: value
45
- }, props))
45
+ }, rest))
46
46
  });
47
47
  });
48
48
  export default CodeEditor;
@@ -15,7 +15,7 @@ var MenuComponent = /*#__PURE__*/forwardRef(function (_ref, forwardedReference)
15
15
  var items = _ref.items,
16
16
  label = _ref.label,
17
17
  container = _ref.container,
18
- props = _objectWithoutProperties(_ref, _excluded);
18
+ rest = _objectWithoutProperties(_ref, _excluded);
19
19
  var _useStyles = useStyles(),
20
20
  styles = _useStyles.styles;
21
21
  var _useState = useState(false),
@@ -225,7 +225,7 @@ var MenuComponent = /*#__PURE__*/forwardRef(function (_ref, forwardedReference)
225
225
  nested: isNested,
226
226
  ref: referenceReference,
227
227
  role: isNested ? 'menuitem' : 'menu'
228
- }, props), getReferenceProps({
228
+ }, rest), getReferenceProps({
229
229
  onClick: function onClick(event) {
230
230
  event.stopPropagation();
231
231
  }
@@ -16,11 +16,11 @@ var CopyButton = /*#__PURE__*/memo(function (_ref) {
16
16
  placement = _ref$placement === void 0 ? 'right' : _ref$placement,
17
17
  _ref$size = _ref.size,
18
18
  size = _ref$size === void 0 ? 'site' : _ref$size,
19
- props = _objectWithoutProperties(_ref, _excluded);
19
+ rest = _objectWithoutProperties(_ref, _excluded);
20
20
  var _useCopied = useCopied(),
21
21
  copied = _useCopied.copied,
22
22
  setCopied = _useCopied.setCopied;
23
- return /*#__PURE__*/_jsx(ActionIcon, _objectSpread(_objectSpread({}, props), {}, {
23
+ return /*#__PURE__*/_jsx(ActionIcon, _objectSpread(_objectSpread({}, rest), {}, {
24
24
  className: className,
25
25
  glass: true,
26
26
  icon: Copy,
@@ -9,13 +9,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  var DraggablePanelBody = /*#__PURE__*/memo(function (_ref) {
10
10
  var className = _ref.className,
11
11
  children = _ref.children,
12
- props = _objectWithoutProperties(_ref, _excluded);
12
+ rest = _objectWithoutProperties(_ref, _excluded);
13
13
  var _useStyles = useStyles(),
14
14
  cx = _useStyles.cx,
15
15
  styles = _useStyles.styles;
16
16
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
17
17
  className: cx(styles.body, className)
18
- }, props), {}, {
18
+ }, rest), {}, {
19
19
  children: children
20
20
  }));
21
21
  });
@@ -9,13 +9,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  var DraggablePanelContainer = /*#__PURE__*/memo(function (_ref) {
10
10
  var className = _ref.className,
11
11
  children = _ref.children,
12
- props = _objectWithoutProperties(_ref, _excluded);
12
+ rest = _objectWithoutProperties(_ref, _excluded);
13
13
  var _useStyles = useStyles(),
14
14
  cx = _useStyles.cx,
15
15
  styles = _useStyles.styles;
16
16
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
17
17
  className: cx(styles.container, className)
18
- }, props), {}, {
18
+ }, rest), {}, {
19
19
  children: children
20
20
  }));
21
21
  });
@@ -9,13 +9,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  var DraggablePanelFooter = /*#__PURE__*/memo(function (_ref) {
10
10
  var className = _ref.className,
11
11
  children = _ref.children,
12
- props = _objectWithoutProperties(_ref, _excluded);
12
+ rest = _objectWithoutProperties(_ref, _excluded);
13
13
  var _useStyles = useStyles(),
14
14
  cx = _useStyles.cx,
15
15
  styles = _useStyles.styles;
16
16
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
17
17
  className: cx(styles.footer, className)
18
- }, props), {}, {
18
+ }, rest), {}, {
19
19
  children: children
20
20
  }));
21
21
  });
@@ -17,7 +17,7 @@ var DraggablePanelHeader = /*#__PURE__*/memo(function (_ref) {
17
17
  title = _ref.title,
18
18
  _ref$position = _ref.position,
19
19
  position = _ref$position === void 0 ? 'left' : _ref$position,
20
- props = _objectWithoutProperties(_ref, _excluded);
20
+ rest = _objectWithoutProperties(_ref, _excluded);
21
21
  var _useStyles = useStyles(),
22
22
  cx = _useStyles.cx,
23
23
  styles = _useStyles.styles;
@@ -44,7 +44,7 @@ var DraggablePanelHeader = /*#__PURE__*/memo(function (_ref) {
44
44
  });
45
45
  return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
46
46
  className: cx(styles.header, className)
47
- }, props), {}, {
47
+ }, rest), {}, {
48
48
  children: [position === 'left' ? panelIcon : pinIcon, title, position === 'left' ? pinIcon : panelIcon]
49
49
  }));
50
50
  });
@@ -19,7 +19,7 @@ var EditableText = /*#__PURE__*/memo(function (_ref) {
19
19
  onChange = _ref.onChange,
20
20
  editing = _ref.editing,
21
21
  onEditingChange = _ref.onEditingChange,
22
- props = _objectWithoutProperties(_ref, _excluded);
22
+ rest = _objectWithoutProperties(_ref, _excluded);
23
23
  var _useControlledState = useControlledState(false, {
24
24
  onChange: onEditingChange,
25
25
  value: editing
@@ -33,7 +33,7 @@ var EditableText = /*#__PURE__*/memo(function (_ref) {
33
33
  setEdited(false);
34
34
  },
35
35
  value: value
36
- }, props)) : /*#__PURE__*/_jsxs(Flexbox, {
36
+ }, rest)) : /*#__PURE__*/_jsxs(Flexbox, {
37
37
  gap: 8,
38
38
  horizontal: true,
39
39
  children: [value, showEditIcon && /*#__PURE__*/_jsx(ActionIcon, {
@@ -23,7 +23,7 @@ var EmptyCard = /*#__PURE__*/memo(function (_ref) {
23
23
  desc = _ref.desc,
24
24
  width = _ref.width,
25
25
  height = _ref.height,
26
- props = _objectWithoutProperties(_ref, _excluded);
26
+ rest = _objectWithoutProperties(_ref, _excluded);
27
27
  var _useMergeState = useMergeState(true, {
28
28
  defaultValue: defaultVisible,
29
29
  onChange: onVisibleChange,
@@ -37,7 +37,7 @@ var EmptyCard = /*#__PURE__*/memo(function (_ref) {
37
37
  if (!value) return null;
38
38
  return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
39
39
  className: styles.container
40
- }, props), {}, {
40
+ }, rest), {}, {
41
41
  children: [/*#__PURE__*/_jsx(ActionIcon, {
42
42
  className: styles.close,
43
43
  icon: X,
@@ -40,7 +40,7 @@ var Item = /*#__PURE__*/memo(function (_ref2) {
40
40
  icon = _ref2.icon,
41
41
  imageStyle = _ref2.imageStyle,
42
42
  openExternal = _ref2.openExternal,
43
- props = _objectWithoutProperties(_ref2, _excluded);
43
+ rest = _objectWithoutProperties(_ref2, _excluded);
44
44
  var rowNumber = row || 7;
45
45
  var _useStyles = useStyles({
46
46
  hasLink: Boolean(link),
@@ -54,7 +54,7 @@ var Item = /*#__PURE__*/memo(function (_ref2) {
54
54
  gridColumn: "span ".concat(column || 1),
55
55
  gridRow: "span ".concat(rowNumber)
56
56
  }, style)
57
- }, props), {}, {
57
+ }, rest), {}, {
58
58
  children: /*#__PURE__*/_jsxs("div", {
59
59
  className: styles.cell,
60
60
  children: [image || icon && /*#__PURE__*/_jsxs(Center, {
@@ -15,7 +15,7 @@ var Features = /*#__PURE__*/memo(function (_ref) {
15
15
  _ref$maxWidth = _ref.maxWidth,
16
16
  maxWidth = _ref$maxWidth === void 0 ? 960 : _ref$maxWidth,
17
17
  style = _ref.style,
18
- props = _objectWithoutProperties(_ref, _excluded);
18
+ rest = _objectWithoutProperties(_ref, _excluded);
19
19
  if (!(items !== null && items !== void 0 && items.length)) return;
20
20
  return /*#__PURE__*/_jsx(SpotlightCard, _objectSpread({
21
21
  className: className,
@@ -29,6 +29,6 @@ var Features = /*#__PURE__*/memo(function (_ref) {
29
29
  style: _objectSpread({
30
30
  maxWidth: maxWidth
31
31
  }, style)
32
- }, props));
32
+ }, rest));
33
33
  });
34
34
  export default Features;
@@ -8,12 +8,12 @@ import { memo } from 'react';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  var Divider = /*#__PURE__*/memo(function (_ref) {
10
10
  var style = _ref.style,
11
- props = _objectWithoutProperties(_ref, _excluded);
11
+ rest = _objectWithoutProperties(_ref, _excluded);
12
12
  return /*#__PURE__*/_jsx(AntDivider, _objectSpread({
13
13
  style: _objectSpread({
14
14
  margin: 0,
15
15
  opacity: 0.5
16
16
  }, style)
17
- }, props));
17
+ }, rest));
18
18
  });
19
19
  export default Divider;
@@ -9,13 +9,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  var FormFooter = /*#__PURE__*/memo(function (_ref) {
10
10
  var className = _ref.className,
11
11
  children = _ref.children,
12
- props = _objectWithoutProperties(_ref, _excluded);
12
+ rest = _objectWithoutProperties(_ref, _excluded);
13
13
  var _useStyles = useStyles(),
14
14
  cx = _useStyles.cx,
15
15
  styles = _useStyles.styles;
16
16
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
17
17
  className: cx(styles.footer, className)
18
- }, props), {}, {
18
+ }, rest), {}, {
19
19
  children: children
20
20
  }));
21
21
  });
@@ -18,7 +18,7 @@ var FormGroup = /*#__PURE__*/memo(function (_ref) {
18
18
  title = _ref.title,
19
19
  children = _ref.children,
20
20
  extra = _ref.extra,
21
- props = _objectWithoutProperties(_ref, _excluded);
21
+ rest = _objectWithoutProperties(_ref, _excluded);
22
22
  var _useResponsive = useResponsive(),
23
23
  mobile = _useResponsive.mobile;
24
24
  var _useStyles = useStyles(),
@@ -64,6 +64,6 @@ var FormGroup = /*#__PURE__*/memo(function (_ref) {
64
64
  key: 1,
65
65
  label: titleContent
66
66
  }]
67
- }, props), 1);
67
+ }, rest), 1);
68
68
  });
69
69
  export default FormGroup;
@@ -21,7 +21,7 @@ var FormItem = /*#__PURE__*/memo(function (_ref) {
21
21
  label = _ref.label,
22
22
  children = _ref.children,
23
23
  divider = _ref.divider,
24
- props = _objectWithoutProperties(_ref, _excluded);
24
+ rest = _objectWithoutProperties(_ref, _excluded);
25
25
  var _useStyles = useStyles(minWidth),
26
26
  cx = _useStyles.cx,
27
27
  styles = _useStyles.styles;
@@ -34,7 +34,7 @@ var FormItem = /*#__PURE__*/memo(function (_ref) {
34
34
  tag: tag,
35
35
  title: label
36
36
  })
37
- }, props), {}, {
37
+ }, rest), {}, {
38
38
  children: children
39
39
  }))]
40
40
  });
package/es/Form/index.js CHANGED
@@ -18,7 +18,7 @@ var FormParent = /*#__PURE__*/forwardRef(function (_ref, ref) {
18
18
  form = _ref.form,
19
19
  items = _ref.items,
20
20
  children = _ref.children,
21
- props = _objectWithoutProperties(_ref, _excluded);
21
+ rest = _objectWithoutProperties(_ref, _excluded);
22
22
  var _useStyles = useStyles(),
23
23
  cx = _useStyles.cx,
24
24
  styles = _useStyles.styles;
@@ -28,7 +28,7 @@ var FormParent = /*#__PURE__*/forwardRef(function (_ref, ref) {
28
28
  form: form,
29
29
  layout: "horizontal",
30
30
  ref: ref
31
- }, props), {}, {
31
+ }, rest), {}, {
32
32
  children: [items === null || items === void 0 ? void 0 : items.map(function (group, groupIndex) {
33
33
  return /*#__PURE__*/_jsx(FormGroup, {
34
34
  extra: group === null || group === void 0 ? void 0 : group.extra,
@@ -25,7 +25,7 @@ var Giscus = /*#__PURE__*/memo(function (_ref) {
25
25
  loading = _ref$loading === void 0 ? 'lazy' : _ref$loading,
26
26
  _ref$emitMetadata = _ref.emitMetadata,
27
27
  emitMetadata = _ref$emitMetadata === void 0 ? '0' : _ref$emitMetadata,
28
- props = _objectWithoutProperties(_ref, _excluded);
28
+ rest = _objectWithoutProperties(_ref, _excluded);
29
29
  var token = useTheme();
30
30
  var _useThemeMode = useThemeMode(),
31
31
  isDarkMode = _useThemeMode.isDarkMode;
@@ -44,7 +44,7 @@ var Giscus = /*#__PURE__*/memo(function (_ref) {
44
44
  mapping: mapping,
45
45
  reactionsEnabled: reactionsEnabled,
46
46
  theme: "data:text/css;base64,".concat(giscusTheme)
47
- }, props))
47
+ }, rest))
48
48
  });
49
49
  });
50
50
  export default Giscus;
@@ -15,14 +15,14 @@ var GradientButton = /*#__PURE__*/memo(function (_ref) {
15
15
  className = _ref.className,
16
16
  _ref$size = _ref.size,
17
17
  size = _ref$size === void 0 ? 'large' : _ref$size,
18
- props = _objectWithoutProperties(_ref, _excluded);
18
+ rest = _objectWithoutProperties(_ref, _excluded);
19
19
  var _useStyles = useStyles(size),
20
20
  styles = _useStyles.styles,
21
21
  cx = _useStyles.cx;
22
22
  return /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread({
23
23
  className: cx(styles.button, className),
24
24
  size: size
25
- }, props), {}, {
25
+ }, rest), {}, {
26
26
  children: [glow && /*#__PURE__*/_jsx("div", {
27
27
  className: styles.glow
28
28
  }), children]
@@ -32,7 +32,7 @@ var Grid = /*#__PURE__*/memo(function (_ref) {
32
32
  _ref$strokeWidth = _ref.strokeWidth,
33
33
  strokeWidth = _ref$strokeWidth === void 0 ? 3 : _ref$strokeWidth,
34
34
  linePick = _ref.linePick,
35
- props = _objectWithoutProperties(_ref, _excluded);
35
+ rest = _objectWithoutProperties(_ref, _excluded);
36
36
  var isUnpick = isUndefined(linePick);
37
37
  var showLine = useCallback(function (l) {
38
38
  return isUnpick || linePick === l;
@@ -79,7 +79,7 @@ var Grid = /*#__PURE__*/memo(function (_ref) {
79
79
  d: "M237 249h3254"
80
80
  })]
81
81
  });
82
- return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
82
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, rest), {}, {
83
83
  children: /*#__PURE__*/_jsx("svg", {
84
84
  style: {
85
85
  width: '100%'
@@ -15,13 +15,13 @@ var GridShowcase = /*#__PURE__*/memo(function (_ref) {
15
15
  children = _ref.children,
16
16
  _ref$backgroundColor = _ref.backgroundColor,
17
17
  backgroundColor = _ref$backgroundColor === void 0 ? '#001dff' : _ref$backgroundColor,
18
- props = _objectWithoutProperties(_ref, _excluded);
18
+ rest = _objectWithoutProperties(_ref, _excluded);
19
19
  var theme = useTheme();
20
20
  return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
21
21
  style: _objectSpread({
22
22
  position: 'relative'
23
23
  }, style)
24
- }, props), {}, {
24
+ }, rest), {}, {
25
25
  children: [/*#__PURE__*/_jsx(GridBackground, {
26
26
  animation: true,
27
27
  colorBack: rgba(theme.colorText, 0.12),
@@ -25,7 +25,7 @@ var GridBackground = /*#__PURE__*/memo(function (_ref) {
25
25
  strokeWidth = _ref.strokeWidth,
26
26
  style = _ref.style,
27
27
  animation = _ref.animation,
28
- props = _objectWithoutProperties(_ref, _excluded);
28
+ rest = _objectWithoutProperties(_ref, _excluded);
29
29
  var ref = useRef(null);
30
30
  var size = useSize(ref);
31
31
  var _useStyles = useStyles({
@@ -67,7 +67,7 @@ var GridBackground = /*#__PURE__*/memo(function (_ref) {
67
67
  style: flip ? _objectSpread({
68
68
  transform: 'scaleY(-1)'
69
69
  }, style) : style
70
- }, props), {}, {
70
+ }, rest), {}, {
71
71
  children: [/*#__PURE__*/_jsx(Grid, {
72
72
  color: colorBack || theme.colorBorder,
73
73
  strokeWidth: strokeWidth,
@@ -21,7 +21,7 @@ var Header = /*#__PURE__*/memo(function (_ref) {
21
21
  logoStyle = _ref.logoStyle,
22
22
  navStyle = _ref.navStyle,
23
23
  className = _ref.className,
24
- props = _objectWithoutProperties(_ref, _excluded);
24
+ rest = _objectWithoutProperties(_ref, _excluded);
25
25
  var _useResponsive = useResponsive(),
26
26
  mobile = _useResponsive.mobile;
27
27
  var _useStyles = useStyles(),
@@ -29,7 +29,7 @@ var Header = /*#__PURE__*/memo(function (_ref) {
29
29
  styles = _useStyles.styles;
30
30
  return /*#__PURE__*/_jsx("section", _objectSpread(_objectSpread({
31
31
  className: cx(styles.header, className)
32
- }, props), {}, {
32
+ }, rest), {}, {
33
33
  children: /*#__PURE__*/_jsx(Flexbox, {
34
34
  align: 'center',
35
35
  className: styles.content,
@@ -27,7 +27,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
27
27
  language = _ref$language === void 0 ? 'markdown' : _ref$language,
28
28
  className = _ref.className,
29
29
  style = _ref.style,
30
- props = _objectWithoutProperties(_ref, _excluded);
30
+ rest = _objectWithoutProperties(_ref, _excluded);
31
31
  var _useState = useState(true),
32
32
  _useState2 = _slicedToArray(_useState, 2),
33
33
  expand = _useState2[0],
@@ -44,7 +44,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
44
44
  className: container,
45
45
  "data-code-type": "highlighter",
46
46
  style: style
47
- }, props), {}, {
47
+ }, rest), {}, {
48
48
  children: [/*#__PURE__*/_jsxs(Flexbox, {
49
49
  align: 'center',
50
50
  className: styles.header,
@@ -27,7 +27,7 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
27
27
  _ref$type = _ref.type,
28
28
  type = _ref$type === void 0 ? 'block' : _ref$type,
29
29
  spotlight = _ref.spotlight,
30
- props = _objectWithoutProperties(_ref, _excluded);
30
+ rest = _objectWithoutProperties(_ref, _excluded);
31
31
  var _useStyles = useStyles(type),
32
32
  styles = _useStyles.styles,
33
33
  cx = _useStyles.cx;
@@ -36,14 +36,14 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
36
36
  className: className,
37
37
  language: language,
38
38
  style: style
39
- }, props), {}, {
39
+ }, rest), {}, {
40
40
  children: children
41
41
  }));
42
42
  return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
43
43
  className: container,
44
44
  "data-code-type": "highlighter",
45
45
  style: style
46
- }, props), {}, {
46
+ }, rest), {}, {
47
47
  children: [spotlight && /*#__PURE__*/_jsx(Spotlight, {
48
48
  size: 240
49
49
  }), copyable && /*#__PURE__*/_jsx(CopyButton, {
package/es/Icon/index.js CHANGED
@@ -52,7 +52,7 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
52
52
  fill = _ref.fill,
53
53
  className = _ref.className,
54
54
  spin = _ref.spin,
55
- props = _objectWithoutProperties(_ref, _excluded);
55
+ rest = _objectWithoutProperties(_ref, _excluded);
56
56
  var _useStyles = useStyles(),
57
57
  styles = _useStyles.styles,
58
58
  cx = _useStyles.cx;
@@ -65,7 +65,7 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
65
65
  return /*#__PURE__*/_jsx("span", _objectSpread(_objectSpread({
66
66
  className: cx('anticon', spin && styles.spin, className),
67
67
  role: "img"
68
- }, props), {}, {
68
+ }, rest), {}, {
69
69
  children: /*#__PURE__*/_jsx(SvgIcon, {
70
70
  color: color,
71
71
  fill: fill !== null && fill !== void 0 ? fill : 'transparent',