dsh-plugin-core-demo 0.35.22 → 0.35.23

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 (2) hide show
  1. package/dist/client.js +17 -8
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -8649,8 +8649,9 @@ function Input(props) {
8649
8649
  const locked = useOverlayLocked();
8650
8650
  const off = disabled === true || locked;
8651
8651
  const [focused, setFocused] = (0, import_react36.useState)(false);
8652
+ const [hovered, setHovered] = (0, import_react36.useState)(false);
8652
8653
  const search = type3 === "search";
8653
- const showClear = search && value !== "" && focused && !off;
8654
+ const showClear = search && value !== "" && (focused || hovered) && !off;
8654
8655
  const input = (0, import_react36.createElement)("input", {
8655
8656
  ref: props.inputRef,
8656
8657
  type: type3 ?? "text",
@@ -8678,7 +8679,15 @@ function Input(props) {
8678
8679
  return withHint(input, props.hint);
8679
8680
  return withHint((0, import_react36.createElement)(
8680
8681
  "span",
8681
- { className: `dshpc-iwrap dshpc-iwrap${sizeClass(size4)}${showClear ? " dshpc-iwrap--clear" : ""}` },
8682
+ {
8683
+ className: `dshpc-iwrap dshpc-iwrap${sizeClass(size4)}${showClear ? " dshpc-iwrap--clear" : ""}`,
8684
+ onMouseEnter: () => {
8685
+ setHovered(true);
8686
+ },
8687
+ onMouseLeave: () => {
8688
+ setHovered(false);
8689
+ }
8690
+ },
8682
8691
  hasIcon ? (0, import_react36.createElement)("span", { className: "dshpc-iwrap__icon" }, icon2) : null,
8683
8692
  input,
8684
8693
  // 只在 mousedown 上拦焦点:不拦的话 input 先 blur ⇒ 按钮被卸掉 ⇒ 随后的 click 落空。
@@ -71490,9 +71499,9 @@ function ReferencePage() {
71490
71499
  "tbody",
71491
71500
  null,
71492
71501
  [
71493
- [t3("buildCore"), `v${"0.35.22"}`],
71494
- [t3("buildDemo"), `v${"0.35.22"}`],
71495
- [t3("buildStamp"), "261111-055540-723"]
71502
+ [t3("buildCore"), `v${"0.35.23"}`],
71503
+ [t3("buildDemo"), `v${"0.35.23"}`],
71504
+ [t3("buildStamp"), "261111-095143-712"]
71496
71505
  ].map(
71497
71506
  ([label, value]) => (0, import_react99.createElement)(
71498
71507
  "tr",
@@ -71808,9 +71817,9 @@ function DemoPage() {
71808
71817
  lineHeight: "14px"
71809
71818
  }
71810
71819
  },
71811
- (0, import_react101.createElement)("span", null, `core v${"0.35.22"}`),
71812
- (0, import_react101.createElement)("span", null, `demo v${"0.35.22"}`),
71813
- (0, import_react101.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261111-055540-723")
71820
+ (0, import_react101.createElement)("span", null, `core v${"0.35.23"}`),
71821
+ (0, import_react101.createElement)("span", null, `demo v${"0.35.23"}`),
71822
+ (0, import_react101.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261111-095143-712")
71814
71823
  )
71815
71824
  )
71816
71825
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-core-demo",
3
- "version": "0.35.22",
3
+ "version": "0.35.23",
4
4
  "description": "The shared UI foundation for DSH plugins, with a live component preview: design tokens, common controls, workspace browsing and notifications maintained in one place — install it to preview every component in a real host.",
5
5
  "icon": "./assets/icon-components.svg",
6
6
  "keywords": [