onchain-uikit 3.9.4-alpha65 → 3.9.4-alpha67

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/index.es.js +9 -8
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -6667,13 +6667,14 @@ const AliIconFontFn = (h3 = "/font/iconfont.js") => create({
6667
6667
  var N8;
6668
6668
  const t3 = useContext(ModelContext), $3 = create({
6669
6669
  scriptUrl: t3 == null ? void 0 : t3.iconScriptUrl
6670
- }), [k3, A3] = useState(!1), [$8, S8] = useState(null), x8 = () => {
6671
- const V8 = setTimeout(() => {
6672
- A3(!0);
6670
+ }), [k3, A3] = useState(null), [$8, S8] = useState(null), x8 = (V8) => {
6671
+ $8 && clearTimeout($8);
6672
+ const W8 = setTimeout(() => {
6673
+ A3(V8);
6673
6674
  }, h3.isMouseHoldShowDeleteMode || 1e3);
6674
- S8(V8);
6675
+ S8(W8);
6675
6676
  }, R8 = () => {
6676
- $8 && (clearTimeout($8), S8(null));
6677
+ $8 && clearTimeout($8), A3(null);
6677
6678
  }, A8 = useMemo$1(() => h3.languageApicode, [h3.languageApicode]), I8 = useMemo$1(() => A8 && ["English"].includes(A8) ? "10px" : "12px", [A8]), T8 = useMemo$1(() => A8 && ["English"].includes(A8) ? "12px" : "14px", [A8]), O8 = useMemo$1(() => typeof h3.children == "string" && /[ \t\n\r]/.test(h3.children) ? "2" : "1", [h3.children]), M8 = h3.placement ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
6678
6679
  "div",
6679
6680
  {
@@ -6692,11 +6693,11 @@ const AliIconFontFn = (h3 = "/font/iconfont.js") => create({
6692
6693
  },
6693
6694
  onMouseEnter: (V8) => {
6694
6695
  var W8;
6695
- h3.isMouseHoldShowDeleteMode && x8(), (W8 = h3.onMouseEnter) == null || W8.call(h3, V8);
6696
+ x8(h3.id), (W8 = h3.onMouseEnter) == null || W8.call(h3, V8);
6696
6697
  },
6697
6698
  onMouseLeave: (V8) => {
6698
6699
  var W8;
6699
- A3(!1), h3.isMouseHoldShowDeleteMode && R8(), (W8 = h3.onMouseLeave) == null || W8.call(h3, V8);
6700
+ R8(), (W8 = h3.onMouseLeave) == null || W8.call(h3, V8);
6700
6701
  },
6701
6702
  children: [
6702
6703
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -6733,7 +6734,7 @@ const AliIconFontFn = (h3 = "/font/iconfont.js") => create({
6733
6734
  )
6734
6735
  }
6735
6736
  ),
6736
- h3.isMouseHoldShowDeleteMode && k3 && /* @__PURE__ */ jsxRuntimeExports.jsx(
6737
+ h3.isMouseHoldShowDeleteMode && k3 && h3.id == k3 && /* @__PURE__ */ jsxRuntimeExports.jsx(
6737
6738
  "div",
6738
6739
  {
6739
6740
  className: styles$j.holdDeleteIconDiv,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onchain-uikit",
3
3
  "private": false,
4
- "version": "3.9.4-alpha65",
4
+ "version": "3.9.4-alpha67",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite build",