@lobehub/editor 5.0.0 → 5.0.1

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.
@@ -48,7 +48,7 @@ const SendButton = ({ type = "primary", menu, className, style, loading, generat
48
48
  ...rest
49
49
  });
50
50
  if (!menu) return /* @__PURE__ */ jsx(Button, {
51
- className: cx(styles.button, disabled && styles.disabled, className),
51
+ className: cx(styles.button, className),
52
52
  disabled,
53
53
  icon: /* @__PURE__ */ jsx(SendIcon, {}),
54
54
  onClick: handleSend,
@@ -62,7 +62,7 @@ const SendButton = ({ type = "primary", menu, className, style, loading, generat
62
62
  ...rest
63
63
  });
64
64
  return /* @__PURE__ */ jsxs(SplitButton, {
65
- className: cx(styles.splitButton, disabled && styles.splitButtonDisabled, shape === "round" && styles.splitButtonRound, className),
65
+ className: cx(styles.splitButton, shape === "round" && styles.splitButtonRound, className),
66
66
  disabled,
67
67
  style: {
68
68
  ...cssVariables,
@@ -1,16 +1,11 @@
1
1
  import { createStaticStyles } from "@lobehub/ui";
2
2
  //#region src/react/SendButton/style.ts
3
- const styles = createStaticStyles(({ css, cssVar }) => ({
3
+ const styles = createStaticStyles(({ css }) => ({
4
4
  button: css`
5
5
  flex: none;
6
6
  width: var(--send-button-size, 32px) !important;
7
7
  height: var(--send-button-size, 32px) !important;
8
8
  padding-inline: 0 !important;
9
- `,
10
- disabled: css`
11
- cursor: default;
12
- border-color: ${cssVar.colorBorderSecondary};
13
- background: transparent;
14
9
  `,
15
10
  loadingButton: css`
16
11
  flex: none;
@@ -33,15 +28,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
33
28
  & > :where(button, a):last-of-type {
34
29
  width: calc(var(--send-button-size, 32px) * 0.8) !important;
35
30
  }
36
- `,
37
- splitButtonDisabled: css`
38
- opacity: 1;
39
-
40
- & > :where(button, a) {
41
- cursor: default;
42
- border-color: ${cssVar.colorBorderSecondary};
43
- background: transparent;
44
- }
45
31
  `,
46
32
  splitButtonRound: css`
47
33
  & > :where(button, a):first-of-type {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/editor",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.",
5
5
  "keywords": [
6
6
  "lobehub",