@baishuyun/ui-base 2.3.4 → 3.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.
Files changed (96) hide show
  1. package/dist/Amap/Amap-DL5dLiUm.js +77 -0
  2. package/dist/Amap/AmapCircle/index.js +4 -0
  3. package/dist/Amap/AmapCircle-BP187l-8.js +62 -0
  4. package/dist/Amap/AmapContext-JaYk1a3H.js +11 -0
  5. package/dist/Amap/AmapMarker/index.js +5 -0
  6. package/dist/Amap/AmapMarker-DYW0-8Hd.js +152 -0
  7. package/dist/Amap/AmapMarkerCluster/index.js +5 -0
  8. package/dist/Amap/AmapMarkerCluster-BRVHHMbi.js +241 -0
  9. package/dist/Amap/AmapProvider/index.js +5 -0
  10. package/dist/Amap/AmapProvider-CWbRK6QL.js +107 -0
  11. package/dist/Amap/hooks/index.js +3 -0
  12. package/dist/Amap/hooks-D1m8KgVM.js +121 -0
  13. package/dist/Amap/index.js +11 -0
  14. package/dist/Amap/useMarkerInfoWindowController-CRgf2I0Q.js +94 -0
  15. package/dist/Card/index.js +1 -1
  16. package/dist/CheckBox/{CheckBox-Cz6KW9Lw.js → CheckBox-B04hZKaC.js} +1 -1
  17. package/dist/CheckBox/index.js +2 -2
  18. package/dist/ColorPicker/{ColorPicker-C1kG_eI-.js → ColorPicker-B-KaMDAn.js} +3 -3
  19. package/dist/ColorPicker/index.js +4 -3
  20. package/dist/ConfigProvider/ConfigProvider-Bx-uxnns.js +159 -0
  21. package/dist/ConfigProvider/index.js +3 -0
  22. package/dist/DropDown/{DropDown-BAPBTglm.js → DropDown-CMKiQDrc.js} +5 -5
  23. package/dist/DropDown/index.js +6 -5
  24. package/dist/Editor/{Buttons-CsKKYGbV.js → Buttons-CZOTyAPL.js} +49 -49
  25. package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -11
  26. package/dist/Editor/index.js +12 -11
  27. package/dist/InputTag/index.js +1 -1
  28. package/dist/Loading/index.js +1 -1
  29. package/dist/Modal/index.js +1 -1
  30. package/dist/NotFoundContent/index.js +1 -1
  31. package/dist/Radio/index.js +1 -1
  32. package/dist/Segmented/index.js +1 -1
  33. package/dist/Select/{Select-BoNqxIRo.js → Select-xuQGK6It.js} +7 -7
  34. package/dist/Select/{SelectInputSearch-DMY6Y9B6.js → SelectInputSearch-Dm3CI_L4.js} +1 -1
  35. package/dist/Select/index.js +10 -9
  36. package/dist/Tabs/{Tabs-BqT-_eVo.js → Tabs-Cxf7jwys.js} +3 -3
  37. package/dist/Tabs/index.js +3 -3
  38. package/dist/Tree/index.js +3 -3
  39. package/dist/components/Amap/Amap.d.ts +3 -0
  40. package/dist/components/Amap/AmapCircle/AmapCircle.d.ts +3 -0
  41. package/dist/components/Amap/AmapCircle/__tests__/AmapCircle.test.d.ts +1 -0
  42. package/dist/components/Amap/AmapCircle/index.d.ts +1 -0
  43. package/dist/components/Amap/AmapMarker/AmapMarker.d.ts +3 -0
  44. package/dist/components/Amap/AmapMarker/__tests__/AmapMarker.test.d.ts +1 -0
  45. package/dist/components/Amap/AmapMarker/index.d.ts +1 -0
  46. package/dist/components/Amap/AmapMarker/useMarkerInfoWindow.d.ts +15 -0
  47. package/dist/components/Amap/AmapMarker/useMarkerInfoWindowController.d.ts +13 -0
  48. package/dist/components/Amap/AmapMarkerCluster/AmapMarkerCluster.d.ts +3 -0
  49. package/dist/components/Amap/AmapMarkerCluster/AmapMarkerCluster.type.d.ts +25 -0
  50. package/dist/components/Amap/AmapMarkerCluster/__tests__/AmapMarkerCluster.test.d.ts +1 -0
  51. package/dist/components/Amap/AmapMarkerCluster/index.d.ts +1 -0
  52. package/dist/components/Amap/AmapMarkerCluster/utils.d.ts +26 -0
  53. package/dist/components/Amap/AmapProvider/AmapProvider.d.ts +3 -0
  54. package/dist/components/Amap/AmapProvider/__tests__/AmapProvider.test.d.ts +1 -0
  55. package/dist/components/Amap/AmapProvider/index.d.ts +1 -0
  56. package/dist/components/Amap/__tests__/Amap.test.d.ts +1 -0
  57. package/dist/components/Amap/amap-types.d.ts +44 -0
  58. package/dist/components/Amap/context/AmapContext.d.ts +3 -0
  59. package/dist/components/Amap/hooks/__tests__/useCurrentLocation.test.d.ts +1 -0
  60. package/dist/components/Amap/hooks/index.d.ts +2 -0
  61. package/dist/components/Amap/hooks/useAmap.d.ts +2 -0
  62. package/dist/components/Amap/hooks/useCurrentLocation.d.ts +2 -0
  63. package/dist/components/Amap/index.d.ts +7 -0
  64. package/dist/components/Amap/interface.d.ts +142 -0
  65. package/dist/components/Amap/loader.d.ts +9 -0
  66. package/dist/components/Amap/utils/currentLocation.d.ts +18 -0
  67. package/dist/components/ConfigProvider/ConfigProvider.d.ts +3 -0
  68. package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +16 -0
  69. package/dist/components/ConfigProvider/__tests__/ConfigProvider.test.d.ts +1 -0
  70. package/dist/components/ConfigProvider/context.d.ts +3 -0
  71. package/dist/components/ConfigProvider/index.d.ts +3 -0
  72. package/dist/components/Tree/Tree.test.d.ts +1 -0
  73. package/dist/components/Tree/context/TreeContext.d.ts +1 -1
  74. package/dist/components/Tree/types/tree.d.ts +1 -1
  75. package/dist/components/index.d.ts +4 -0
  76. package/dist/index.js +49 -94
  77. package/dist/locale/LocaleProvider.d.ts +3 -0
  78. package/dist/locale/__tests__/LocaleProvider.test.d.ts +1 -0
  79. package/dist/locale/index.d.ts +1 -1
  80. package/dist/locale/lang/zh-TW.json.d.ts +64 -0
  81. package/dist/vendors/{useLocale-BXnqO-Ju.js → LocaleContext-Jj_JGgi2.js} +7 -7
  82. package/dist/vendors/{Tree-nIRgDY2s.js → Tree-Bg2UzLsC.js} +3 -3
  83. package/dist/vendors/useLocale-Mk0d7wNt.js +6 -0
  84. package/dist/vite-env.d.ts +7 -0
  85. package/package.json +4 -3
  86. /package/dist/Card/{Card-CaKTq_1y.js → Card-D__c94yx.js} +0 -0
  87. /package/dist/CheckBox/{CheckBox-l__wOnmH.js → CheckBox-DF201Nxg.js} +0 -0
  88. /package/dist/InputTag/{InputTag-V4UnUnGJ.js → InputTag-F2Dv-r56.js} +0 -0
  89. /package/dist/Loading/{Loading-Dy5A--HK.js → Loading-dsLWSWsE.js} +0 -0
  90. /package/dist/Modal/{Modal-DQ5bptu_.js → Modal-CuDbh_WD.js} +0 -0
  91. /package/dist/NotFoundContent/{NotFoundContent-1-41e1rN.js → NotFoundContent-DJUQ0_2D.js} +0 -0
  92. /package/dist/Radio/{Radio-CZOrtNyn.js → Radio-WNw-VqIS.js} +0 -0
  93. /package/dist/Segmented/{Segmented-DEGgLO-b.js → Segmented-Byw8j1hQ.js} +0 -0
  94. /package/dist/vendors/{animations-DvjIfVz9.js → animations-C2i5EijE.js} +0 -0
  95. /package/dist/vendors/{color-CyuNdAfc.js → color-CxdZwdYM.js} +0 -0
  96. /package/dist/vendors/{useFloatingPortal-W4pliYWU.js → useFloatingPortal-CDgiCnbb.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "../Icon/Icon-CTZCSuVg.js";
2
- import { t } from "../vendors/useLocale-BXnqO-Ju.js";
3
- import { t as n } from "../Modal/Modal-DQ5bptu_.js";
4
- import { t as r } from "../ColorPicker/ColorPicker-C1kG_eI-.js";
5
- import { t as i } from "../CheckBox/CheckBox-Cz6KW9Lw.js";
6
- import { t as a } from "../DropDown/DropDown-BAPBTglm.js";
2
+ import { t } from "../Modal/Modal-CuDbh_WD.js";
3
+ import { t as n } from "../ColorPicker/ColorPicker-B-KaMDAn.js";
4
+ import { t as r } from "../vendors/useLocale-Mk0d7wNt.js";
5
+ import { t as i } from "../CheckBox/CheckBox-B04hZKaC.js";
6
+ import { t as a } from "../DropDown/DropDown-CMKiQDrc.js";
7
7
  import { FONT_SIZES as o } from "./constants/index.js";
8
8
  import { AlignCenterOutlined as s, AlignLeftOutlined as c, AlignRightOutlined as l } from "@ant-design/icons";
9
9
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -37,30 +37,30 @@ var B = m(null), V = {
37
37
  if (!e) throw Error("useTextFormatsContext must be used within TextFormatsProvider");
38
38
  return e;
39
39
  }, W = () => {
40
- let [e] = F(), n = U(), { t: r } = t(), i = n.bold;
40
+ let [e] = F(), t = U(), { t: n } = r(), i = t.bold;
41
41
  return /* @__PURE__ */ d(H, {
42
42
  icon: "bold",
43
- tooltip: r("editor.bold"),
43
+ tooltip: n("editor.bold"),
44
44
  active: i,
45
45
  onClick: () => {
46
46
  e.dispatchCommand(N, "bold");
47
47
  }
48
48
  });
49
49
  }, re = () => {
50
- let [e] = F(), n = U(), { t: r } = t(), i = n.underline;
50
+ let [e] = F(), t = U(), { t: n } = r(), i = t.underline;
51
51
  return /* @__PURE__ */ d(H, {
52
52
  icon: "underline",
53
- tooltip: r("editor.underline"),
53
+ tooltip: n("editor.underline"),
54
54
  active: i,
55
55
  onClick: () => {
56
56
  e.dispatchCommand(N, "underline");
57
57
  }
58
58
  });
59
59
  }, ie = () => {
60
- let [e] = F(), n = U(), { t: r } = t(), i = n.italic;
60
+ let [e] = F(), t = U(), { t: n } = r(), i = t.italic;
61
61
  return /* @__PURE__ */ d(H, {
62
62
  icon: "italic",
63
- tooltip: r("editor.italic"),
63
+ tooltip: n("editor.italic"),
64
64
  active: i,
65
65
  onClick: () => {
66
66
  e.dispatchCommand(N, "italic");
@@ -100,14 +100,14 @@ var B = m(null), V = {
100
100
  if (!e) throw Error("useEditorContainer must be used within EditorContainerProvider");
101
101
  return e;
102
102
  }, oe = () => {
103
- let [e] = F(), n = U(), { t: i } = t(), { getPopupContainer: a } = K(), o = g((t) => {
103
+ let [e] = F(), t = U(), { t: i } = r(), { getPopupContainer: a } = K(), o = g((t) => {
104
104
  e.update(() => {
105
105
  let e = A();
106
106
  M(e) && I(e, { color: t });
107
107
  });
108
108
  }, [e]);
109
- return /* @__PURE__ */ d(r, {
110
- value: n.fontColor,
109
+ return /* @__PURE__ */ d(n, {
110
+ value: t.fontColor,
111
111
  onChange: o,
112
112
  placement: "bottom-start",
113
113
  getPopupContainer: a,
@@ -122,14 +122,14 @@ var B = m(null), V = {
122
122
  })
123
123
  });
124
124
  }, se = () => {
125
- let [e] = F(), n = U(), { t: i } = t(), { getPopupContainer: a } = K(), o = g((t) => {
125
+ let [e] = F(), t = U(), { t: i } = r(), { getPopupContainer: a } = K(), o = g((t) => {
126
126
  e.update(() => {
127
127
  let e = A();
128
128
  M(e) && I(e, { "background-color": t });
129
129
  });
130
130
  }, [e]);
131
- return /* @__PURE__ */ d(r, {
132
- value: n.backgroundColor,
131
+ return /* @__PURE__ */ d(n, {
132
+ value: t.backgroundColor,
133
133
  onChange: o,
134
134
  placement: "bottom-start",
135
135
  getPopupContainer: a,
@@ -144,20 +144,20 @@ var B = m(null), V = {
144
144
  })
145
145
  });
146
146
  }, ce = () => {
147
- let [e] = F(), { align: n } = U(), { t: r } = t(), i = [
147
+ let [e] = F(), { align: t } = U(), { t: n } = r(), i = [
148
148
  {
149
149
  key: "left",
150
- label: r("leftAlign"),
150
+ label: n("leftAlign"),
151
151
  icon: /* @__PURE__ */ d(c, {})
152
152
  },
153
153
  {
154
154
  key: "center",
155
- label: r("editor.centerAlign"),
155
+ label: n("editor.centerAlign"),
156
156
  icon: /* @__PURE__ */ d(s, {})
157
157
  },
158
158
  {
159
159
  key: "right",
160
- label: r("editor.rightAlign"),
160
+ label: n("editor.rightAlign"),
161
161
  icon: /* @__PURE__ */ d(l, {})
162
162
  }
163
163
  ], o = g((t) => {
@@ -170,12 +170,12 @@ var B = m(null), V = {
170
170
  })
171
171
  })), p = g((e) => {
172
172
  o(e.key);
173
- }, [o]), m = i.find((e) => e.key === n)?.icon || /* @__PURE__ */ d(c, {});
173
+ }, [o]), m = i.find((e) => e.key === t)?.icon || /* @__PURE__ */ d(c, {});
174
174
  return /* @__PURE__ */ d(a, {
175
175
  menus: u,
176
176
  onClick: p,
177
177
  showSearch: !1,
178
- activeKey: [n],
178
+ activeKey: [t],
179
179
  style: {
180
180
  width: "110px",
181
181
  minWidth: "110px"
@@ -184,14 +184,14 @@ var B = m(null), V = {
184
184
  className: "trigger-dropdown inline-flex text-sm",
185
185
  children: /* @__PURE__ */ d(H, {
186
186
  icon: m,
187
- tooltip: r("editor.alignment"),
187
+ tooltip: n("editor.alignment"),
188
188
  onClick: () => {},
189
189
  active: !1
190
190
  })
191
191
  })
192
192
  });
193
193
  }, le = () => {
194
- let [e] = F(), { link: r } = U(), { t: a } = t(), [o, s] = x(!1), [c, l] = x(""), [p, m] = x(""), [h, _] = x(!0), [v, y] = E.useMessage(), b = g((e) => e ? e.startsWith("@") ? "javascript:void(0);" : e.match(/^https?:\/\//) ? e : `http://${e}` : "", []), S = () => {
194
+ let [e] = F(), { link: n } = U(), { t: a } = r(), [o, s] = x(!1), [c, l] = x(""), [p, m] = x(""), [h, _] = x(!0), [v, y] = E.useMessage(), b = g((e) => e ? e.startsWith("@") ? "javascript:void(0);" : e.match(/^https?:\/\//) ? e : `http://${e}` : "", []), S = () => {
195
195
  if (!c) {
196
196
  v.warning(a("editor.linkAddressEmpty"));
197
197
  return;
@@ -215,17 +215,17 @@ var B = m(null), V = {
215
215
  }
216
216
  }), l(""), m(""), s(!1);
217
217
  }, w = g(() => {
218
- r ? (l(r.link === "javascript:void(0);" ? "" : r.link), m(r.linkText)) : (l(""), m("")), s(!0);
219
- }, [r]);
218
+ n ? (l(n.link === "javascript:void(0);" ? "" : n.link), m(n.linkText)) : (l(""), m("")), s(!0);
219
+ }, [n]);
220
220
  return /* @__PURE__ */ f(u, { children: [
221
221
  /* @__PURE__ */ d(H, {
222
222
  icon: "Insertlink",
223
223
  tooltip: a("link"),
224
224
  onClick: w,
225
- active: !!r?.link
225
+ active: !!n?.link
226
226
  }),
227
227
  y,
228
- /* @__PURE__ */ d(n, {
228
+ /* @__PURE__ */ d(t, {
229
229
  title: a("link"),
230
230
  open: o,
231
231
  onOpenChange: s,
@@ -282,12 +282,12 @@ var B = m(null), V = {
282
282
  })
283
283
  ] });
284
284
  }, ue = () => {
285
- let [e] = F(), { link: n } = U(), { t: r } = t();
285
+ let [e] = F(), { link: t } = U(), { t: n } = r();
286
286
  return /* @__PURE__ */ d(H, {
287
287
  icon: "cancellink",
288
- tooltip: r("cancelLink"),
288
+ tooltip: n("cancelLink"),
289
289
  onClick: () => {
290
- n && e.dispatchCommand(z, null);
290
+ t && e.dispatchCommand(z, null);
291
291
  }
292
292
  });
293
293
  }, q = {
@@ -311,11 +311,11 @@ var B = m(null), V = {
311
311
  "picture-modal__preview-delete": "_picture-modal__preview-delete_qyj1h_113",
312
312
  "picture-modal__upload-text": "_picture-modal__upload-text_qyj1h_121",
313
313
  "picture-modal__footer": "_picture-modal__footer_qyj1h_125"
314
- }, J = h((e, n) => {
315
- let [r] = w.useForm(), [i, a] = x(""), { t: o } = t(), s = (e) => /^https?:\/\/.+/i.test(e);
316
- return v(n, () => ({ getValue: async () => {
314
+ }, J = h((e, t) => {
315
+ let [n] = w.useForm(), [i, a] = x(""), { t: o } = r(), s = (e) => /^https?:\/\/.+/i.test(e);
316
+ return v(t, () => ({ getValue: async () => {
317
317
  try {
318
- return await r.validateFields(), i;
318
+ return await n.validateFields(), i;
319
319
  } catch {
320
320
  throw Error("URL validation failed");
321
321
  }
@@ -324,7 +324,7 @@ var B = m(null), V = {
324
324
  "data-title": o("editor.imageUrlNote"),
325
325
  children: o("editor.enterImageUrl")
326
326
  }), /* @__PURE__ */ d(w, {
327
- form: r,
327
+ form: n,
328
328
  children: /* @__PURE__ */ d(w.Item, {
329
329
  name: "url",
330
330
  rules: [{
@@ -342,8 +342,8 @@ var B = m(null), V = {
342
342
  J.displayName = "LinkInput";
343
343
  //#endregion
344
344
  //#region src/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.tsx
345
- var Y = h((n, r) => {
346
- let [i, a] = x(null), [o, s] = x(!1), [c, l] = x(null), u = b(null), [p, m] = E.useMessage(), { t: h } = t(), g = (e) => (e / 1024).toFixed(1) + "kb", _ = (e) => e.type.startsWith("image/") ? e.size > 1048576 ? (p.warning(h("editor.imageSizeNote")), !1) : !0 : (p.warning(h("editor.onlyImageFormatsSupported")), !1), y = (e) => {
345
+ var Y = h((t, n) => {
346
+ let [i, a] = x(null), [o, s] = x(!1), [c, l] = x(null), u = b(null), [p, m] = E.useMessage(), { t: h } = r(), g = (e) => (e / 1024).toFixed(1) + "kb", _ = (e) => e.type.startsWith("image/") ? e.size > 1048576 ? (p.warning(h("editor.imageSizeNote")), !1) : !0 : (p.warning(h("editor.onlyImageFormatsSupported")), !1), y = (e) => {
347
347
  _(e) && (a(URL.createObjectURL(e)), l(e));
348
348
  }, S = () => {
349
349
  u.current?.click();
@@ -351,7 +351,7 @@ var Y = h((n, r) => {
351
351
  let t = e.target.files?.[0];
352
352
  t && y(t);
353
353
  };
354
- return v(r, () => ({ getValue: async () => {
354
+ return v(n, () => ({ getValue: async () => {
355
355
  if (!c) throw p.warning(h("editor.pleaseUploadImageFirst")), Error(h("editor.pleaseUploadImageFirst"));
356
356
  return new Promise((e, t) => {
357
357
  let n = new FileReader();
@@ -505,13 +505,13 @@ Y.displayName = "UploadImage";
505
505
  //#endregion
506
506
  //#region src/components/Editor/commands/ImageCommands.ts
507
507
  var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
508
- let { t: r } = t(), [i] = F(), [a, o] = x(!1), s = b(null), c = b(null), l = [{
508
+ let { t: n } = r(), [i] = F(), [a, o] = x(!1), s = b(null), c = b(null), l = [{
509
509
  key: "upload",
510
- title: r("editor.uploadImage"),
510
+ title: n("editor.uploadImage"),
511
511
  icon: /* @__PURE__ */ d(e, { name: "picture" })
512
512
  }, {
513
513
  key: "url",
514
- title: r("editor.imageUrl"),
514
+ title: n("editor.imageUrl"),
515
515
  icon: /* @__PURE__ */ d(e, { name: "Insertlink" })
516
516
  }], [p, m] = x(l[0].key), h = () => l.findIndex((e) => e.key === p) * 40, g = async () => {
517
517
  try {
@@ -525,7 +525,7 @@ var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
525
525
  altText: t
526
526
  }), o(!1);
527
527
  } catch (e) {
528
- E.error(e instanceof Error ? e.message : r("editor.operationFailed"));
528
+ E.error(e instanceof Error ? e.message : n("editor.operationFailed"));
529
529
  }
530
530
  }, _ = {
531
531
  upload: /* @__PURE__ */ d(Y, { ref: c }),
@@ -533,10 +533,10 @@ var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
533
533
  };
534
534
  return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(H, {
535
535
  icon: "picture",
536
- tooltip: r("picture"),
536
+ tooltip: n("picture"),
537
537
  onClick: () => o(!0)
538
- }), /* @__PURE__ */ f(n, {
539
- title: r("addPicture"),
538
+ }), /* @__PURE__ */ f(t, {
539
+ title: n("addPicture"),
540
540
  open: a,
541
541
  onOpenChange: o,
542
542
  width: "620px",
@@ -566,11 +566,11 @@ var X = P("INSERT_INLINE_IMAGE_COMMAND"), de = () => {
566
566
  className: q["picture-modal__footer"],
567
567
  children: [/* @__PURE__ */ d(C, {
568
568
  onClick: () => o(!1),
569
- children: r("cancel")
569
+ children: n("cancel")
570
570
  }), /* @__PURE__ */ d(C, {
571
571
  type: "primary",
572
572
  onClick: g,
573
- children: r("confirm")
573
+ children: n("confirm")
574
574
  })]
575
575
  })]
576
576
  })] });
@@ -1,13 +1,14 @@
1
1
  import "../../../Icon/Icon-CTZCSuVg.js";
2
- import "../../../vendors/useLocale-BXnqO-Ju.js";
3
- import "../../../Modal/Modal-DQ5bptu_.js";
4
- import "../../../ColorPicker/ColorPicker-C1kG_eI-.js";
5
- import "../../../vendors/color-CyuNdAfc.js";
6
- import "../../../Select/SelectInputSearch-DMY6Y9B6.js";
7
- import "../../../CheckBox/CheckBox-l__wOnmH.js";
8
- import "../../../CheckBox/CheckBox-Cz6KW9Lw.js";
9
- import "../../../NotFoundContent/NotFoundContent-1-41e1rN.js";
10
- import "../../../vendors/useFloatingPortal-W4pliYWU.js";
11
- import "../../../DropDown/DropDown-BAPBTglm.js";
12
- import { a as e, i as t, n, r, t as i } from "../../Buttons-CsKKYGbV.js";
2
+ import "../../../vendors/LocaleContext-Jj_JGgi2.js";
3
+ import "../../../Modal/Modal-CuDbh_WD.js";
4
+ import "../../../ColorPicker/ColorPicker-B-KaMDAn.js";
5
+ import "../../../vendors/useLocale-Mk0d7wNt.js";
6
+ import "../../../vendors/color-CxdZwdYM.js";
7
+ import "../../../Select/SelectInputSearch-Dm3CI_L4.js";
8
+ import "../../../CheckBox/CheckBox-DF201Nxg.js";
9
+ import "../../../CheckBox/CheckBox-B04hZKaC.js";
10
+ import "../../../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
11
+ import "../../../vendors/useFloatingPortal-CDgiCnbb.js";
12
+ import "../../../DropDown/DropDown-CMKiQDrc.js";
13
+ import { a as e, i as t, n, r, t as i } from "../../Buttons-CZOTyAPL.js";
13
14
  export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
@@ -1,15 +1,16 @@
1
1
  import "../Icon/Icon-CTZCSuVg.js";
2
- import "../vendors/useLocale-BXnqO-Ju.js";
3
- import "../Modal/Modal-DQ5bptu_.js";
4
- import "../ColorPicker/ColorPicker-C1kG_eI-.js";
5
- import "../vendors/color-CyuNdAfc.js";
6
- import "../Select/SelectInputSearch-DMY6Y9B6.js";
7
- import "../CheckBox/CheckBox-l__wOnmH.js";
8
- import "../CheckBox/CheckBox-Cz6KW9Lw.js";
9
- import "../NotFoundContent/NotFoundContent-1-41e1rN.js";
10
- import "../vendors/useFloatingPortal-W4pliYWU.js";
11
- import "../DropDown/DropDown-BAPBTglm.js";
12
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-CsKKYGbV.js";
2
+ import "../vendors/LocaleContext-Jj_JGgi2.js";
3
+ import "../Modal/Modal-CuDbh_WD.js";
4
+ import "../ColorPicker/ColorPicker-B-KaMDAn.js";
5
+ import "../vendors/useLocale-Mk0d7wNt.js";
6
+ import "../vendors/color-CxdZwdYM.js";
7
+ import "../Select/SelectInputSearch-Dm3CI_L4.js";
8
+ import "../CheckBox/CheckBox-DF201Nxg.js";
9
+ import "../CheckBox/CheckBox-B04hZKaC.js";
10
+ import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
11
+ import "../vendors/useFloatingPortal-CDgiCnbb.js";
12
+ import "../DropDown/DropDown-CMKiQDrc.js";
13
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-CZOTyAPL.js";
13
14
  import { DEFAULT_BACKGROUND_COLOR as c, DEFAULT_FONT_COLOR as l, DEFAULT_FONT_SIZE as u } from "./constants/index.js";
14
15
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
15
16
  import m, { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
@@ -1,3 +1,3 @@
1
1
  import "../Icon/Icon-CTZCSuVg.js";
2
- import { t as e } from "./InputTag-V4UnUnGJ.js";
2
+ import { t as e } from "./InputTag-F2Dv-r56.js";
3
3
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Loading-Dy5A--HK.js";
1
+ import { t as e } from "./Loading-dsLWSWsE.js";
2
2
  export { e as default };
@@ -1,3 +1,3 @@
1
1
  import "../Icon/Icon-CTZCSuVg.js";
2
- import { t as e } from "./Modal-DQ5bptu_.js";
2
+ import { t as e } from "./Modal-CuDbh_WD.js";
3
3
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./NotFoundContent-1-41e1rN.js";
1
+ import { t as e } from "./NotFoundContent-DJUQ0_2D.js";
2
2
  export { e as NotFoundContent };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Radio-CZOrtNyn.js";
1
+ import { t as e } from "./Radio-WNw-VqIS.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Segmented-DEGgLO-b.js";
1
+ import { t as e } from "./Segmented-Byw8j1hQ.js";
2
2
  export { e as default };
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "../Icon/Icon-CTZCSuVg.js";
2
- import { t } from "../vendors/useLocale-BXnqO-Ju.js";
3
- import { n, t as r } from "../vendors/animations-DvjIfVz9.js";
4
- import { t as i } from "./SelectInputSearch-DMY6Y9B6.js";
5
- import { n as a, t as o } from "../vendors/Tree-nIRgDY2s.js";
6
- import { t as s } from "../CheckBox/CheckBox-Cz6KW9Lw.js";
7
- import { t as c } from "../NotFoundContent/NotFoundContent-1-41e1rN.js";
8
- import { t as l } from "../vendors/useFloatingPortal-W4pliYWU.js";
2
+ import { t } from "../vendors/useLocale-Mk0d7wNt.js";
3
+ import { n, t as r } from "../vendors/animations-C2i5EijE.js";
4
+ import { t as i } from "./SelectInputSearch-Dm3CI_L4.js";
5
+ import { n as a, t as o } from "../vendors/Tree-Bg2UzLsC.js";
6
+ import { t as s } from "../CheckBox/CheckBox-B04hZKaC.js";
7
+ import { t as c } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
8
+ import { t as l } from "../vendors/useFloatingPortal-CDgiCnbb.js";
9
9
  import { first as u, isArray as d, isEmpty as f, isNil as p, noop as m } from "lodash-es";
10
10
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
11
11
  import { Suspense as v, createContext as y, forwardRef as b, memo as x, useCallback as S, useContext as C, useDeferredValue as w, useId as T, useImperativeHandle as E, useLayoutEffect as D, useMemo as O, useRef as k, useState as A } from "react";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../Icon/Icon-CTZCSuVg.js";
2
- import { t } from "../vendors/useLocale-BXnqO-Ju.js";
2
+ import { t } from "../vendors/useLocale-Mk0d7wNt.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
5
5
  var i = (i) => {
@@ -1,11 +1,12 @@
1
1
  import "../Icon/Icon-CTZCSuVg.js";
2
- import "../vendors/useLocale-BXnqO-Ju.js";
3
- import { n as e, r as t, t as n } from "./Select-BoNqxIRo.js";
4
- import "./SelectInputSearch-DMY6Y9B6.js";
5
- import "../vendors/Tree-nIRgDY2s.js";
6
- import "../CheckBox/CheckBox-l__wOnmH.js";
7
- import "../CheckBox/CheckBox-Cz6KW9Lw.js";
8
- import "../Radio/Radio-CZOrtNyn.js";
9
- import "../NotFoundContent/NotFoundContent-1-41e1rN.js";
10
- import "../vendors/useFloatingPortal-W4pliYWU.js";
2
+ import "../vendors/LocaleContext-Jj_JGgi2.js";
3
+ import "../vendors/useLocale-Mk0d7wNt.js";
4
+ import { n as e, r as t, t as n } from "./Select-xuQGK6It.js";
5
+ import "./SelectInputSearch-Dm3CI_L4.js";
6
+ import "../vendors/Tree-Bg2UzLsC.js";
7
+ import "../CheckBox/CheckBox-DF201Nxg.js";
8
+ import "../CheckBox/CheckBox-B04hZKaC.js";
9
+ import "../Radio/Radio-WNw-VqIS.js";
10
+ import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
11
+ import "../vendors/useFloatingPortal-CDgiCnbb.js";
11
12
  export { e as Mode, n as Select, t as SelectType };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../Icon/Icon-CTZCSuVg.js";
2
- import { n as t } from "../vendors/color-CyuNdAfc.js";
3
- import { n } from "../vendors/animations-DvjIfVz9.js";
4
- import { t as r } from "../vendors/useFloatingPortal-W4pliYWU.js";
2
+ import { n as t } from "../vendors/color-CxdZwdYM.js";
3
+ import { n } from "../vendors/animations-C2i5EijE.js";
4
+ import { t as r } from "../vendors/useFloatingPortal-CDgiCnbb.js";
5
5
  import { isString as i } from "lodash-es";
6
6
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  import { createContext as c, useCallback as l, useContext as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
@@ -1,5 +1,5 @@
1
1
  import "../Icon/Icon-CTZCSuVg.js";
2
- import "../vendors/color-CyuNdAfc.js";
3
- import "../vendors/useFloatingPortal-W4pliYWU.js";
4
- import { i as e, n as t, r as n, t as r } from "./Tabs-BqT-_eVo.js";
2
+ import "../vendors/color-CxdZwdYM.js";
3
+ import "../vendors/useFloatingPortal-CDgiCnbb.js";
4
+ import { i as e, n as t, r as n, t as r } from "./Tabs-Cxf7jwys.js";
5
5
  export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
@@ -1,5 +1,5 @@
1
1
  import "../Icon/Icon-CTZCSuVg.js";
2
- import { t as e } from "../vendors/Tree-nIRgDY2s.js";
3
- import "../CheckBox/CheckBox-l__wOnmH.js";
4
- import "../Radio/Radio-CZOrtNyn.js";
2
+ import { t as e } from "../vendors/Tree-Bg2UzLsC.js";
3
+ import "../CheckBox/CheckBox-DF201Nxg.js";
4
+ import "../Radio/Radio-WNw-VqIS.js";
5
5
  export { e as Tree };
@@ -0,0 +1,3 @@
1
+ import { AmapProps } from './interface';
2
+ export declare function Amap(props: AmapProps): import("react/jsx-runtime").JSX.Element;
3
+ export default Amap;
@@ -0,0 +1,3 @@
1
+ import { AmapCircleProps } from '../interface';
2
+ export declare function AmapCircle(props: AmapCircleProps): null;
3
+ export default AmapCircle;
@@ -0,0 +1 @@
1
+ export { AmapCircle as default, AmapCircle } from './AmapCircle';
@@ -0,0 +1,3 @@
1
+ import { AmapMarkerProps } from '../interface';
2
+ export declare function AmapMarker(props: AmapMarkerProps): null;
3
+ export default AmapMarker;
@@ -0,0 +1 @@
1
+ export { AmapMarker, default } from './AmapMarker';
@@ -0,0 +1,15 @@
1
+ /// <reference path="../amap-types.d.ts" />
2
+ import { AmapMarkerInfoWindowOptions } from '../interface';
3
+ type UseMarkerInfoWindowOptions = {
4
+ AMap: typeof AMap;
5
+ map: AMap.Map;
6
+ mapReady: boolean;
7
+ markerRef: React.RefObject<AMap.Marker | null>;
8
+ infoWindow?: AmapMarkerInfoWindowOptions;
9
+ };
10
+ export declare const useMarkerInfoWindow: ({ AMap, map, mapReady, markerRef, infoWindow, }: UseMarkerInfoWindowOptions) => {
11
+ scheduleInfoWindowOpen: () => void;
12
+ scheduleInfoWindowClose: () => void;
13
+ closeInfoWindow: () => void;
14
+ };
15
+ export {};
@@ -0,0 +1,13 @@
1
+ /// <reference path="../amap-types.d.ts" />
2
+ import { AmapMarkerInfoWindowOptions } from '../interface';
3
+ type UseMarkerInfoWindowControllerOptions = {
4
+ AMap: typeof AMap;
5
+ map: AMap.Map;
6
+ mapReady: boolean;
7
+ };
8
+ export declare const useMarkerInfoWindowController: ({ AMap, map, mapReady, }: UseMarkerInfoWindowControllerOptions) => {
9
+ scheduleInfoWindowOpen: (marker: AMap.Marker, infoWindow: AmapMarkerInfoWindowOptions) => void;
10
+ scheduleInfoWindowClose: () => void;
11
+ closeInfoWindow: () => void;
12
+ };
13
+ export {};
@@ -0,0 +1,3 @@
1
+ import { AmapMarkerClusterProps } from '../interface';
2
+ export declare function AmapMarkerCluster<T>(props: AmapMarkerClusterProps<T>): null;
3
+ export default AmapMarkerCluster;
@@ -0,0 +1,25 @@
1
+ /// <reference path="../amap-types.d.ts" />
2
+ import { LngLat } from '../interface';
3
+ export type ClusterPoint<T> = {
4
+ lnglat: LngLat;
5
+ extData: {
6
+ item: T;
7
+ index: number;
8
+ key: string;
9
+ };
10
+ };
11
+ export type RenderContext<T> = {
12
+ marker?: AMap.Marker;
13
+ count?: number;
14
+ data?: Array<ClusterPoint<T>>;
15
+ };
16
+ export type MarkerRuntime = {
17
+ key?: string;
18
+ handleClick?: () => void;
19
+ handleMouseEnter?: () => void;
20
+ handleMouseLeave?: () => void;
21
+ };
22
+ export type ManagedMarker = AMap.Marker & {
23
+ __bsyAmapMarkerClusterRuntime?: MarkerRuntime | null;
24
+ __bsyAmapMarkerClusterContentSignature?: string;
25
+ };
@@ -0,0 +1 @@
1
+ export { AmapMarkerCluster, default } from './AmapMarkerCluster';
@@ -0,0 +1,26 @@
1
+ /// <reference path="../amap-types.d.ts" />
2
+ import { AmapMarkerClusterContent, AmapMarkerClusterMarkerOffset, AmapMarkerClusterRuntime, LngLat } from '../interface';
3
+ import { ClusterPoint, ManagedMarker } from './AmapMarkerCluster.type';
4
+ export declare const MARKER_CLUSTER_PLUGIN_ERROR = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please add \"AMap.MarkerCluster\" to AmapProvider plugins.";
5
+ export declare const EMPTY_CLUSTER_OPTIONS: Record<string, any>;
6
+ export declare const DEFAULT_MARKER_ANCHOR = "bottom-center";
7
+ export declare const isValidPosition: (position: unknown) => position is LngLat;
8
+ export declare const resolveClusterData: <T>(value: unknown) => Array<ClusterPoint<T>>;
9
+ export declare const resolveItemContext: <T>(point?: ClusterPoint<T>) => {
10
+ item: T;
11
+ index: number;
12
+ key: string;
13
+ } | undefined;
14
+ export declare const getSafeClusterOptions: (clusterOptions: Record<string, any>) => {
15
+ [x: string]: any;
16
+ };
17
+ export declare const getObjectIdentity: (value: object) => number;
18
+ export declare const getContentSignature: (content: AmapMarkerClusterContent | undefined) => string;
19
+ export declare const getRuntimeSignature: <T>(runtimes: Array<AmapMarkerClusterRuntime<T>>) => string;
20
+ export declare const getVisibleItemsSignature: <T>(runtimes: Array<AmapMarkerClusterRuntime<T>>) => string;
21
+ export declare const renderDefaultMarkerContent: () => string;
22
+ export declare const renderDefaultClusterContent: (count: number) => string;
23
+ export declare const setMarkerContent: (marker: ManagedMarker, content: AmapMarkerClusterContent | undefined, signature?: string) => void;
24
+ export declare const setMarkerAnchor: (marker: ManagedMarker) => void;
25
+ export declare const setMarkerOffset: (AMap: typeof globalThis.AMap, marker: ManagedMarker, offset: AmapMarkerClusterMarkerOffset | undefined) => void;
26
+ export declare const cleanupMarkerRuntime: (marker: ManagedMarker) => string | undefined;
@@ -0,0 +1,3 @@
1
+ import { AmapProviderProps } from '../interface';
2
+ export declare function AmapProvider(props: AmapProviderProps): import("react/jsx-runtime").JSX.Element | null;
3
+ export default AmapProvider;
@@ -0,0 +1 @@
1
+ export { AmapProvider, default } from './AmapProvider';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,44 @@
1
+ declare namespace AMap {
2
+ type LngLatLike = [number, number] | { lng: number; lat: number } | Record<string, any>;
3
+
4
+ class Map {
5
+ constructor(container: string | HTMLElement, options?: Record<string, any>);
6
+ [key: string]: any;
7
+ }
8
+
9
+ class Marker {
10
+ constructor(options?: MarkerOptions);
11
+ [key: string]: any;
12
+ }
13
+
14
+ class Circle {
15
+ constructor(options?: Record<string, any>);
16
+ [key: string]: any;
17
+ }
18
+
19
+ class Pixel {
20
+ constructor(x: number, y: number);
21
+ [key: string]: any;
22
+ }
23
+
24
+ class InfoWindow {
25
+ constructor(options?: InfoOptions);
26
+ [key: string]: any;
27
+ }
28
+
29
+ interface MarkerOptions {
30
+ [key: string]: any;
31
+ position?: LngLatLike;
32
+ map?: Map;
33
+ content?: string | HTMLElement;
34
+ offset?: Pixel;
35
+ }
36
+
37
+ interface InfoOptions {
38
+ [key: string]: any;
39
+ anchor?: string;
40
+ content?: string | HTMLElement;
41
+ position?: LngLatLike;
42
+ offset?: Pixel;
43
+ }
44
+ }