@opentiny/tiny-robot 0.2.0-alpha.3 → 0.2.0-alpha.4

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.
@@ -1,20 +1,20 @@
1
- import { defineComponent as Q, ref as p, computed as P, watch as K, watchEffect as ne, onMounted as X, onBeforeUnmount as Z, createElementBlock as v, openBlock as g, normalizeClass as U, createElementVNode as u, withDirectives as oe, Fragment as M, renderList as N, createVNode as E, unref as w, toDisplayString as T, vShow as le, nextTick as ie, renderSlot as x, createCommentVNode as z, createBlock as L, normalizeStyle as ae, resolveComponent as ce, withCtx as O } from "vue";
2
- import { Y as G, Q as j, T as re, D as ue, x as ge } from "../tiny-robot-svgs.js";
1
+ import { defineComponent as U, ref as p, computed as P, watch as K, watchEffect as ne, onMounted as X, onBeforeUnmount as Z, createElementBlock as v, openBlock as g, normalizeClass as Y, createElementVNode as u, withDirectives as oe, Fragment as N, renderList as M, createVNode as E, unref as w, toDisplayString as T, vShow as le, nextTick as ie, renderSlot as $, createCommentVNode as q, createBlock as L, normalizeStyle as ae, resolveComponent as ce, withCtx as O } from "vue";
2
+ import { Y as J, q as F, y as re, T as ue, N as ge } from "../tiny-robot-svgs.js";
3
3
  function de(l, c = "") {
4
4
  const s = document.createElement("div");
5
5
  c && (s.className = c), s.style.visibility = "hidden", s.style.position = "absolute", s.style.whiteSpace = "nowrap", s.textContent = l, document.body.appendChild(s);
6
6
  const o = s.offsetWidth;
7
7
  return document.body.removeChild(s), o;
8
8
  }
9
- const Y = /* @__PURE__ */ new Map();
10
- function J(l, c = "") {
9
+ const j = /* @__PURE__ */ new Map();
10
+ function Q(l, c = "") {
11
11
  const s = `${l}::${c}`;
12
- if (Y.has(s))
13
- return Y.get(s);
12
+ if (j.has(s))
13
+ return j.get(s);
14
14
  const o = de(l, c);
15
- return Y.set(s, o), o;
15
+ return j.set(s, o), o;
16
16
  }
17
- const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-suggestions_expanded-wrapper" }, pe = { class: "tr-common-suggestions_expanded-area" }, he = ["onClick"], fe = { class: "tr-common-suggestions_item_icon" }, ye = { class: "tr-common-suggestions_item_text" }, _e = { class: "tr-common-suggestions_container" }, ke = ["onClick"], Ce = { class: "tr-common-suggestions_item_icon" }, xe = { class: "tr-common-suggestions_item_text" }, $e = /* @__PURE__ */ Q({
17
+ const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-suggestions_expanded-wrapper" }, pe = { class: "tr-common-suggestions_expanded-area" }, he = ["onClick"], fe = { class: "tr-common-suggestions_item_icon" }, ye = { class: "tr-common-suggestions_item_text" }, _e = { class: "tr-common-suggestions_container" }, ke = ["onClick"], Ce = { class: "tr-common-suggestions_item_icon" }, $e = { class: "tr-common-suggestions_item_text" }, xe = /* @__PURE__ */ U({
18
18
  __name: "SuggestionCapsule",
19
19
  props: {
20
20
  suggestions: {
@@ -46,13 +46,13 @@ const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-
46
46
  let k = 0;
47
47
  const B = Math.min(3, s.suggestions.length);
48
48
  for (let C = 0; C < B; C++) {
49
- const I = J(s.suggestions[C].text, "tr-common-suggestions_item") + _;
49
+ const I = Q(s.suggestions[C].text, "tr-common-suggestions_item") + _;
50
50
  k += I;
51
51
  }
52
- const q = k / B;
53
- h.value = Math.max(1, Math.floor(d / q));
52
+ const z = k / B;
53
+ h.value = Math.max(1, Math.floor(d / z));
54
54
  for (let C = 0; C < s.suggestions.length; C++) {
55
- const I = s.suggestions[C], V = J(I.text, "tr-common-suggestions_item") + _;
55
+ const I = s.suggestions[C], V = Q(I.text, "tr-common-suggestions_item") + _;
56
56
  r + V <= d ? (r += V, m.value.push(I)) : a.value.push(I);
57
57
  }
58
58
  f.value = a.value.length > 0, o("show-expand-button", f.value);
@@ -73,24 +73,24 @@ const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-
73
73
  }), Z(() => {
74
74
  S.value && S.value.disconnect();
75
75
  }), (i, d) => (g(), v("div", {
76
- class: U(["tr-common-suggestions", { expanded: t.value }]),
76
+ class: Y(["tr-common-suggestions", { expanded: t.value }]),
77
77
  ref_key: "capsuleRef",
78
78
  ref: n
79
79
  }, [
80
80
  u("div", ve, [
81
81
  u("div", me, [
82
82
  oe(u("div", pe, [
83
- (g(!0), v(M, null, N(R.value, (r, _) => (g(), v("div", {
83
+ (g(!0), v(N, null, M(R.value, (r, _) => (g(), v("div", {
84
84
  key: `row-${_}`,
85
85
  class: "tr-common-suggestions_row"
86
86
  }, [
87
- (g(!0), v(M, null, N(r, (k, B) => (g(), v("div", {
87
+ (g(!0), v(N, null, M(r, (k, B) => (g(), v("div", {
88
88
  key: `hidden-${k.id}-${B}`,
89
89
  class: "tr-common-suggestions_item",
90
- onClick: (q) => y(k)
90
+ onClick: (z) => y(k)
91
91
  }, [
92
92
  u("div", fe, [
93
- E(w(G))
93
+ E(w(J))
94
94
  ]),
95
95
  u("div", ye, T(k.text), 1)
96
96
  ], 8, he))), 128))
@@ -100,15 +100,15 @@ const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-
100
100
  ])
101
101
  ]),
102
102
  u("div", _e, [
103
- (g(!0), v(M, null, N(m.value, (r, _) => (g(), v("div", {
103
+ (g(!0), v(N, null, M(m.value, (r, _) => (g(), v("div", {
104
104
  key: `visible-${r.id}-${_}`,
105
105
  class: "tr-common-suggestions_item",
106
106
  onClick: (k) => y(r)
107
107
  }, [
108
108
  u("div", Ce, [
109
- E(w(G))
109
+ E(w(J))
110
110
  ]),
111
- u("div", xe, T(r.text), 1)
111
+ u("div", $e, T(r.text), 1)
112
112
  ], 8, ke))), 128))
113
113
  ])
114
114
  ])
@@ -117,7 +117,7 @@ const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-
117
117
  }), be = { class: "tr-suggestion-categories" }, we = ["onClick"], Se = {
118
118
  key: 0,
119
119
  class: "category-icon"
120
- }, Ie = /* @__PURE__ */ Q({
120
+ }, Ie = /* @__PURE__ */ U({
121
121
  __name: "CategoryNav",
122
122
  props: {
123
123
  categories: {
@@ -135,13 +135,13 @@ const ve = { class: "tr-common-suggestions_content" }, me = { class: "tr-common-
135
135
  s("category-select", n);
136
136
  };
137
137
  return (n, f) => (g(), v("div", be, [
138
- (g(!0), v(M, null, N(l.categories, (t) => (g(), v("div", {
138
+ (g(!0), v(N, null, M(l.categories, (t) => (g(), v("div", {
139
139
  key: t.id,
140
- class: U(["tr-suggestion-categories-item", { active: l.activeCategory === t.id }]),
140
+ class: Y(["tr-suggestion-categories-item", { active: l.activeCategory === t.id }]),
141
141
  onClick: (m) => o(t.id)
142
142
  }, [
143
- x(n.$slots, "category-label", { category: t }, () => [
144
- t.icon ? (g(), v("div", Se, T(t.icon), 1)) : z("", !0),
143
+ $(n.$slots, "category-label", { category: t }, () => [
144
+ t.icon ? (g(), v("div", Se, T(t.icon), 1)) : q("", !0),
145
145
  u("span", null, T(t.label), 1)
146
146
  ])
147
147
  ], 10, we))), 128))
@@ -192,13 +192,13 @@ function Ee(l, c = {}) {
192
192
  const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header" }, De = { class: "tr-suggestion-header-left" }, Oe = { class: "tr-suggestion-header-icon" }, Re = { class: "tr-suggestion-header-title" }, Ve = { class: "close-icon" }, We = {
193
193
  key: 0,
194
194
  class: "tr-suggestion-loading"
195
- }, Ae = { key: 1 }, Ke = ["onClick", "onMouseenter"], Me = { class: "item-content" }, Ne = { class: "item-label" }, ze = {
195
+ }, Ae = { key: 1 }, Ke = ["onClick", "onMouseenter"], Ne = { class: "item-content" }, Me = { class: "item-label" }, qe = {
196
196
  key: 0,
197
197
  class: "item-description"
198
- }, qe = {
198
+ }, ze = {
199
199
  key: 2,
200
200
  class: "tr-suggestion-empty"
201
- }, Le = /* @__PURE__ */ Q({
201
+ }, Le = /* @__PURE__ */ U({
202
202
  __name: "SuggestionPanel",
203
203
  props: {
204
204
  items: {
@@ -250,8 +250,8 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
250
250
  u("div", Be, [
251
251
  u("div", De, [
252
252
  u("div", Oe, [
253
- x(i.$slots, "title-icon", {}, () => [
254
- E(w(j))
253
+ $(i.$slots, "title-icon", {}, () => [
254
+ E(w(F))
255
255
  ])
256
256
  ]),
257
257
  u("div", Re, T(l.title), 1)
@@ -270,34 +270,34 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
270
270
  categories: l.categories,
271
271
  "active-category": a.value,
272
272
  onCategorySelect: S
273
- }, null, 8, ["categories", "active-category"])) : z("", !0),
273
+ }, null, 8, ["categories", "active-category"])) : q("", !0),
274
274
  u("div", {
275
275
  class: "tr-suggestion-content",
276
276
  style: ae({ "max-height": h.value.length > l.maxVisibleItems ? `${l.maxVisibleItems * 56}px` : "auto" })
277
277
  }, [
278
278
  l.loading ? (g(), v("div", We, [
279
- x(i.$slots, "loading-indicator", {}, () => [
279
+ $(i.$slots, "loading-indicator", {}, () => [
280
280
  d[0] || (d[0] = u("div", { class: "tr-suggestion-loading-spinner" }, null, -1))
281
281
  ])
282
282
  ])) : h.value.length > 0 ? (g(), v("ul", Ae, [
283
- (g(!0), v(M, null, N(h.value, (r, _) => (g(), v("li", {
283
+ (g(!0), v(N, null, M(h.value, (r, _) => (g(), v("li", {
284
284
  key: r.id,
285
- class: U(["tr-suggestion-list-item", { "tr-suggestion-item-active": _ === w(m) }]),
285
+ class: Y(["tr-suggestion-list-item", { "tr-suggestion-item-active": _ === w(m) }]),
286
286
  onClick: (k) => R(r),
287
287
  onMouseenter: (k) => y(_)
288
288
  }, [
289
- x(i.$slots, "item", {
289
+ $(i.$slots, "item", {
290
290
  item: r,
291
291
  active: _ === w(m)
292
292
  }, () => [
293
- u("div", Me, [
294
- u("div", Ne, T(r.text), 1),
295
- r.description ? (g(), v("div", ze, T(r.description), 1)) : z("", !0)
293
+ u("div", Ne, [
294
+ u("div", Me, T(r.text), 1),
295
+ r.description ? (g(), v("div", qe, T(r.description), 1)) : q("", !0)
296
296
  ])
297
297
  ])
298
298
  ], 42, Ke))), 128))
299
- ])) : (g(), v("div", qe, [
300
- x(i.$slots, "empty", {}, () => [
299
+ ])) : (g(), v("div", ze, [
300
+ $(i.$slots, "empty", {}, () => [
301
301
  d[1] || (d[1] = u("p", null, "无匹配结果", -1))
302
302
  ])
303
303
  ]))
@@ -317,7 +317,7 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
317
317
  } : null;
318
318
  }
319
319
  };
320
- }, He = { class: "tr-suggestion__header" }, H = /* @__PURE__ */ Q({
320
+ }, He = { class: "tr-suggestion__header" }, H = /* @__PURE__ */ U({
321
321
  __name: "index",
322
322
  props: {
323
323
  triggerKeys: { default: () => ["/"] },
@@ -344,7 +344,7 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
344
344
  }, b = p(""), y = p(-1), i = p(null), d = p(null), r = P(() => o.open !== void 0 ? o.open : f.value), _ = P(() => {
345
345
  if (o.categories.length === 0 || !b.value)
346
346
  return t.value;
347
- const e = o.categories.find(($) => $.id === b.value);
347
+ const e = o.categories.find((x) => x.id === b.value);
348
348
  return e ? e.items : [];
349
349
  });
350
350
  K(r, (e) => {
@@ -360,7 +360,7 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
360
360
  );
361
361
  const k = () => {
362
362
  t.value = [...o.items];
363
- }, { detectTrigger: B } = Pe(o), q = (e) => {
363
+ }, { detectTrigger: B } = Pe(o), z = (e) => {
364
364
  n("suggestion-select", e), n("select", e.value, {
365
365
  text: "",
366
366
  position: 0
@@ -370,9 +370,9 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
370
370
  text: e.text || "",
371
371
  position: e.position || 0
372
372
  }), k(), f.value = !0, n("update:open", !0));
373
- }, I = (e, $) => {
374
- const A = B(e, $);
375
- return A ? (m.value = A, C(A), !0) : r.value && $ === "" ? (C(!1), !0) : !1;
373
+ }, I = (e, x) => {
374
+ const A = B(e, x);
375
+ return A ? (m.value = A, C(A), !0) : r.value && x === "" ? (C(!1), !0) : !1;
376
376
  }, V = (e) => {
377
377
  if (r.value && d.value) {
378
378
  d.value.handleKeyDown(e);
@@ -382,44 +382,44 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
382
382
  o.open === void 0 && (f.value = !1), n("update:open", !1), n("close");
383
383
  }, ee = (e) => {
384
384
  b.value = e.id, y.value = 0, n("category-select", e);
385
- }, te = (e, $) => {
386
- n("select", e.text, $), e.template && n("fill-template", e.template), W();
387
- }, F = (e) => {
385
+ }, te = (e, x) => {
386
+ n("select", e.text, x), e.template && n("fill-template", e.template), W();
387
+ }, G = (e) => {
388
388
  o.closeOnOutsideClick && r.value && i.value && !i.value.contains(e.target) && W();
389
389
  }, se = () => {
390
390
  r.value ? W() : (k(), f.value = !0, n("update:open", !0));
391
391
  };
392
392
  return X(() => {
393
- o.closeOnOutsideClick && document.addEventListener("click", F);
393
+ o.closeOnOutsideClick && document.addEventListener("click", G);
394
394
  }), Z(() => {
395
- o.closeOnOutsideClick && document.removeEventListener("click", F);
395
+ o.closeOnOutsideClick && document.removeEventListener("click", G);
396
396
  }), c({
397
397
  trigger: C,
398
398
  keyDown: V,
399
399
  input: I,
400
400
  toggleExpand: S
401
- }), (e, $) => {
401
+ }), (e, x) => {
402
402
  const A = ce("IconEdit");
403
403
  return g(), v("div", {
404
404
  ref_key: "rootRef",
405
405
  ref: i,
406
- class: U(["tr-suggestion", e.className, { "tr-suggestion--dark": e.theme === "dark" }])
406
+ class: Y(["tr-suggestion", e.className, { "tr-suggestion--dark": e.theme === "dark" }])
407
407
  }, [
408
408
  u("div", He, [
409
409
  u("div", {
410
410
  class: "tr-suggestion__trigger",
411
411
  onClick: se
412
412
  }, [
413
- E(w(j))
413
+ E(w(F))
414
414
  ]),
415
- E($e, {
415
+ E(xe, {
416
416
  suggestions: e.items,
417
417
  isExpanded: a.value,
418
- onSuggestionClick: q,
418
+ onSuggestionClick: z,
419
419
  onShowExpandButton: R
420
420
  }, {
421
421
  "suggestion-icon": O((D) => [
422
- x(e.$slots, "capsule-icon", {
422
+ $(e.$slots, "capsule-icon", {
423
423
  suggestion: D.suggestion
424
424
  }, () => [
425
425
  E(A)
@@ -433,9 +433,9 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
433
433
  onClick: S
434
434
  }, [
435
435
  a.value ? (g(), L(w(ge), { key: 1 })) : (g(), L(w(ue), { key: 0 }))
436
- ])) : z("", !0)
436
+ ])) : q("", !0)
437
437
  ]),
438
- x(e.$slots, "trigger", {
438
+ $(e.$slots, "trigger", {
439
439
  onTrigger: C,
440
440
  onKeyDown: V,
441
441
  onInput: I
@@ -456,42 +456,42 @@ const Te = { class: "tr-suggestion-panel" }, Be = { class: "tr-suggestion-header
456
456
  onCategorySelect: ee
457
457
  }, {
458
458
  "title-icon": O(() => [
459
- x(e.$slots, "title-icon", {}, () => [
460
- E(w(j), { style: { "font-size": "36px" } })
459
+ $(e.$slots, "title-icon", {}, () => [
460
+ E(w(F), { style: { "font-size": "36px" } })
461
461
  ])
462
462
  ]),
463
463
  "category-label": O((D) => [
464
- x(e.$slots, "category-label", {
464
+ $(e.$slots, "category-label", {
465
465
  category: D.category
466
466
  })
467
467
  ]),
468
468
  item: O((D) => [
469
- x(e.$slots, "item", {
469
+ $(e.$slots, "item", {
470
470
  item: D.item,
471
471
  active: D.active
472
472
  })
473
473
  ]),
474
474
  "loading-indicator": O(() => [
475
- x(e.$slots, "loading-indicator", {}, () => [
476
- $[0] || ($[0] = u("div", { class: "tr-suggestion__loading-spinner" }, null, -1))
475
+ $(e.$slots, "loading-indicator", {}, () => [
476
+ x[0] || (x[0] = u("div", { class: "tr-suggestion__loading-spinner" }, null, -1))
477
477
  ])
478
478
  ]),
479
479
  empty: O(() => [
480
- x(e.$slots, "empty", {}, () => [
481
- $[1] || ($[1] = u("p", null, "无匹配结果", -1))
480
+ $(e.$slots, "empty", {}, () => [
481
+ x[1] || (x[1] = u("p", null, "无匹配结果", -1))
482
482
  ])
483
483
  ]),
484
484
  _: 3
485
- }, 8, ["items", "categories", "loading", "title", "maxVisibleItems", "triggerContext"])) : z("", !0)
485
+ }, 8, ["items", "categories", "loading", "title", "maxVisibleItems", "triggerContext"])) : q("", !0)
486
486
  ], 2);
487
487
  };
488
488
  }
489
489
  });
490
490
  H.name = "TrSuggestion";
491
- const Qe = function(l) {
491
+ const Ue = function(l) {
492
492
  l.component(H.name, H);
493
493
  };
494
- H.install = Qe;
494
+ H.install = Ue;
495
495
  export {
496
496
  H as default
497
497
  };
@@ -14,7 +14,7 @@ const r = (e, l) => {
14
14
  xmlns: "http://www.w3.org/2000/svg",
15
15
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
16
16
  };
17
- function s(e, l, t, n, C, h) {
17
+ function f(e, l, t, n, C, h) {
18
18
  return d(), o("svg", p, l[0] || (l[0] = [
19
19
  i("defs", null, null, -1),
20
20
  i("path", {
@@ -27,9 +27,9 @@ function s(e, l, t, n, C, h) {
27
27
  }, null, -1)
28
28
  ]));
29
29
  }
30
- const h1 = /* @__PURE__ */ r(L, [["render", s]]), f = {
30
+ const h1 = /* @__PURE__ */ r(L, [["render", f]]), w = {
31
31
  name: "IconArrowUp"
32
- }, w = {
32
+ }, a = {
33
33
  width: "1em",
34
34
  height: "1em",
35
35
  viewBox: "0 0 16 16",
@@ -37,8 +37,8 @@ const h1 = /* @__PURE__ */ r(L, [["render", s]]), f = {
37
37
  xmlns: "http://www.w3.org/2000/svg",
38
38
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
39
39
  };
40
- function a(e, l, t, n, C, h) {
41
- return d(), o("svg", w, l[0] || (l[0] = [
40
+ function s(e, l, t, n, C, h) {
41
+ return d(), o("svg", a, l[0] || (l[0] = [
42
42
  i("defs", null, null, -1),
43
43
  i("path", {
44
44
  id: "路径",
@@ -50,7 +50,7 @@ function a(e, l, t, n, C, h) {
50
50
  }, null, -1)
51
51
  ]));
52
52
  }
53
- const c1 = /* @__PURE__ */ r(f, [["render", a]]), u = {
53
+ const c1 = /* @__PURE__ */ r(w, [["render", s]]), u = {
54
54
  name: "IconCancelFullScreen"
55
55
  }, x = {
56
56
  width: "1em",
@@ -122,7 +122,7 @@ function M(e, l, t, n, C, h) {
122
122
  }, null, -1)
123
123
  ]));
124
124
  }
125
- const s1 = /* @__PURE__ */ r(y, [["render", M]]), Z = {
125
+ const f1 = /* @__PURE__ */ r(y, [["render", M]]), Z = {
126
126
  name: "IconDelete"
127
127
  }, A = {
128
128
  width: "1em",
@@ -132,7 +132,7 @@ const s1 = /* @__PURE__ */ r(y, [["render", M]]), Z = {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
134
134
  };
135
- function B(e, l, t, n, C, h) {
135
+ function _(e, l, t, n, C, h) {
136
136
  return d(), o("svg", A, l[0] || (l[0] = [
137
137
  i("desc", null, " Created with Pixso. ", -1),
138
138
  i("defs", null, null, -1),
@@ -160,9 +160,9 @@ function B(e, l, t, n, C, h) {
160
160
  }, null, -1)
161
161
  ]));
162
162
  }
163
- const f1 = /* @__PURE__ */ r(Z, [["render", B]]), I = {
163
+ const w1 = /* @__PURE__ */ r(Z, [["render", _]]), B = {
164
164
  name: "IconDislike"
165
- }, _ = {
165
+ }, I = {
166
166
  width: "1em",
167
167
  height: "1em",
168
168
  viewBox: "0 0 16 16",
@@ -170,8 +170,8 @@ const f1 = /* @__PURE__ */ r(Z, [["render", B]]), I = {
170
170
  xmlns: "http://www.w3.org/2000/svg",
171
171
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
172
172
  };
173
- function D(e, l, t, n, C, h) {
174
- return d(), o("svg", _, l[0] || (l[0] = [
173
+ function z(e, l, t, n, C, h) {
174
+ return d(), o("svg", I, l[0] || (l[0] = [
175
175
  i("defs", null, [
176
176
  i("clipPath", { id: "clip597_81528" }, [
177
177
  i("rect", {
@@ -195,9 +195,9 @@ function D(e, l, t, n, C, h) {
195
195
  ], -1)
196
196
  ]));
197
197
  }
198
- const w1 = /* @__PURE__ */ r(I, [["render", D]]), V = {
198
+ const a1 = /* @__PURE__ */ r(B, [["render", z]]), V = {
199
199
  name: "IconEditPen"
200
- }, z = {
200
+ }, E = {
201
201
  width: "1em",
202
202
  height: "1em",
203
203
  viewBox: "0 0 16 16",
@@ -205,8 +205,8 @@ const w1 = /* @__PURE__ */ r(I, [["render", D]]), V = {
205
205
  xmlns: "http://www.w3.org/2000/svg",
206
206
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
207
207
  };
208
- function E(e, l, t, n, C, h) {
209
- return d(), o("svg", z, l[0] || (l[0] = [
208
+ function D(e, l, t, n, C, h) {
209
+ return d(), o("svg", E, l[0] || (l[0] = [
210
210
  i("desc", null, " Created with Pixso. ", -1),
211
211
  i("defs", null, null, -1),
212
212
  i("path", {
@@ -218,7 +218,7 @@ function E(e, l, t, n, C, h) {
218
218
  }, null, -1)
219
219
  ]));
220
220
  }
221
- const a1 = /* @__PURE__ */ r(V, [["render", E]]), H = {
221
+ const s1 = /* @__PURE__ */ r(V, [["render", D]]), H = {
222
222
  name: "IconEdit"
223
223
  }, P = {
224
224
  width: "1em",
@@ -263,7 +263,7 @@ const x1 = /* @__PURE__ */ r(S, [["render", N]]), Q = {
263
263
  style: { "enable-background": "new 0 0 132 132" },
264
264
  "xml:space": "preserve"
265
265
  };
266
- function q(e, l, t, n, C, h) {
266
+ function U(e, l, t, n, C, h) {
267
267
  return d(), o("svg", T, l[0] || (l[0] = [
268
268
  i("rect", {
269
269
  style: { fill: "none" },
@@ -281,9 +281,9 @@ function q(e, l, t, n, C, h) {
281
281
  }, null, -1)
282
282
  ]));
283
283
  }
284
- const g1 = /* @__PURE__ */ r(Q, [["render", q]]), O = {
284
+ const g1 = /* @__PURE__ */ r(Q, [["render", U]]), q = {
285
285
  name: "IconHotQuestion"
286
- }, Y = {
286
+ }, R = {
287
287
  width: "1em",
288
288
  height: "1em",
289
289
  viewBox: "0 0 36 36",
@@ -291,14 +291,14 @@ const g1 = /* @__PURE__ */ r(Q, [["render", q]]), O = {
291
291
  xmlns: "http://www.w3.org/2000/svg",
292
292
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
293
293
  };
294
- function U(e, l, t, n, C, h) {
295
- return d(), o("svg", Y, l[0] || (l[0] = [
294
+ function W(e, l, t, n, C, h) {
295
+ return d(), o("svg", R, l[0] || (l[0] = [
296
296
  c('<defs></defs><rect id="矩形" width="36.000000" height="36.000000" fill="#D8D8D8" fill-opacity="0"></rect><rect id="矩形" x="0.500000" y="0.500000" width="35.000000" height="35.000000" stroke="#979797" stroke-opacity="0" stroke-width="1.000000"></rect><mask id="mask_558_34052" fill="white"><path id="形状结合" d="M24.8647 6.34033L24.8765 6.29529C24.978 5.90442 25.532 5.90161 25.6375 6.2915L25.655 6.35693C25.8301 6.96191 26.3176 7.43347 26.9287 7.5874C27.3254 7.68726 27.3254 8.25098 26.9287 8.35095C26.2969 8.51025 25.7986 9.00854 25.6394 9.64038C25.5396 10.0371 24.9758 10.0371 24.8757 9.64038C24.7166 9.00854 24.2183 8.51025 23.5864 8.3512C23.1897 8.25122 23.1897 7.6875 23.5864 7.58752C24.2053 7.43164 24.697 6.94995 24.8647 6.34033ZM15.3689 9.2561L15.4387 8.98706C15.6418 8.20508 16.75 8.19958 16.9609 8.97949L17.0735 9.39624C18.2734 13.547 21.615 16.7795 25.8079 17.8352C26.6016 18.035 26.6016 19.1625 25.8081 19.3624C21.4719 20.4552 18.0571 23.8704 16.9656 28.2061C16.7656 28.9995 15.6382 28.9996 15.4382 28.2062C14.3455 23.8701 10.9304 20.4552 6.59473 19.3635C5.80127 19.1637 5.80103 18.0363 6.59448 17.8363C10.8413 16.7661 14.2107 13.4655 15.3689 9.2561ZM25.418 24.1724L25.3992 24.2444C25.1309 25.2197 24.3442 25.9904 23.354 26.2399C22.7192 26.3998 22.7192 27.3019 23.354 27.4617C24.365 27.7162 25.1624 28.5134 25.417 29.5244C25.5769 30.1592 26.479 30.1591 26.6387 29.5243C26.8933 28.5134 27.6904 27.7161 28.7017 27.4613C29.3364 27.3014 29.3362 26.3994 28.7014 26.2396C27.7239 25.9934 26.9436 25.2388 26.6638 24.2709L26.6357 24.1663C26.467 23.5424 25.5803 23.5468 25.418 24.1724Z" clip-rule="evenodd" fill="" fill-opacity="1.000000" fill-rule="evenodd"></path></mask><path id="形状结合" d="M24.8647 6.34033L24.8765 6.29529C24.978 5.90442 25.532 5.90161 25.6375 6.2915L25.655 6.35693C25.8301 6.96191 26.3176 7.43347 26.9287 7.5874C27.3254 7.68726 27.3254 8.25098 26.9287 8.35095C26.2969 8.51025 25.7986 9.00854 25.6394 9.64038C25.5396 10.0371 24.9758 10.0371 24.8757 9.64038C24.7166 9.00854 24.2183 8.51025 23.5864 8.3512C23.1897 8.25122 23.1897 7.6875 23.5864 7.58752C24.2053 7.43164 24.697 6.94995 24.8647 6.34033ZM15.3689 9.2561L15.4387 8.98706C15.6418 8.20508 16.75 8.19958 16.9609 8.97949L17.0735 9.39624C18.2734 13.547 21.615 16.7795 25.8079 17.8352C26.6016 18.035 26.6016 19.1625 25.8081 19.3624C21.4719 20.4552 18.0571 23.8704 16.9656 28.2061C16.7656 28.9995 15.6382 28.9996 15.4382 28.2062C14.3455 23.8701 10.9304 20.4552 6.59473 19.3635C5.80127 19.1637 5.80103 18.0363 6.59448 17.8363C10.8413 16.7661 14.2107 13.4655 15.3689 9.2561ZM25.418 24.1724L25.3992 24.2444C25.1309 25.2197 24.3442 25.9904 23.354 26.2399C22.7192 26.3998 22.7192 27.3019 23.354 27.4617C24.365 27.7162 25.1624 28.5134 25.417 29.5244C25.5769 30.1592 26.479 30.1591 26.6387 29.5243C26.8933 28.5134 27.6904 27.7161 28.7017 27.4613C29.3364 27.3014 29.3362 26.3994 28.7014 26.2396C27.7239 25.9934 26.9436 25.2388 26.6638 24.2709L26.6357 24.1663C26.467 23.5424 25.5803 23.5468 25.418 24.1724Z" clip-rule="evenodd" fill="#1476FF" fill-opacity="1.000000" fill-rule="evenodd" mask="url(#mask_558_34052)"></path><path id="形状结合" d="" clip-rule="evenodd" fill="#979797" fill-opacity="0.000000" fill-rule="evenodd"></path>', 6)
297
297
  ]));
298
298
  }
299
- const v1 = /* @__PURE__ */ r(O, [["render", U]]), X = {
299
+ const v1 = /* @__PURE__ */ r(q, [["render", W]]), Y = {
300
300
  name: "IconLike"
301
- }, G = {
301
+ }, O = {
302
302
  width: "16",
303
303
  height: "16",
304
304
  viewBox: "0 0 16 16",
@@ -306,8 +306,8 @@ const v1 = /* @__PURE__ */ r(O, [["render", U]]), X = {
306
306
  xmlns: "http://www.w3.org/2000/svg",
307
307
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
308
308
  };
309
- function J(e, l, t, n, C, h) {
310
- return d(), o("svg", G, l[0] || (l[0] = [
309
+ function X(e, l, t, n, C, h) {
310
+ return d(), o("svg", O, l[0] || (l[0] = [
311
311
  i("defs", null, [
312
312
  i("clipPath", { id: "clip597_81525" }, [
313
313
  i("rect", {
@@ -330,9 +330,9 @@ function J(e, l, t, n, C, h) {
330
330
  ], -1)
331
331
  ]));
332
332
  }
333
- const m1 = /* @__PURE__ */ r(X, [["render", J]]), K = {
333
+ const m1 = /* @__PURE__ */ r(Y, [["render", X]]), G = {
334
334
  name: "IconMenu"
335
- }, R = {
335
+ }, J = {
336
336
  width: "1em",
337
337
  height: "1em",
338
338
  viewBox: "0 0 20 20",
@@ -340,12 +340,12 @@ const m1 = /* @__PURE__ */ r(X, [["render", J]]), K = {
340
340
  xmlns: "http://www.w3.org/2000/svg",
341
341
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
342
342
  };
343
- function W(e, l, t, n, C, h) {
344
- return d(), o("svg", R, l[0] || (l[0] = [
343
+ function K(e, l, t, n, C, h) {
344
+ return d(), o("svg", J, l[0] || (l[0] = [
345
345
  c('<defs><clipPath id="clip545_56691"><rect id="更多-more" width="20.000000" height="20.000000" fill="white" fill-opacity="0"></rect></clipPath></defs><rect id="组件集 2" width="20.000000" height="20.000000" fill="#FFFFFF" fill-opacity="0"></rect><g clip-path="url(#clip545_56691)"><path id="形状结合" d="M10 1.25C14.83 1.25 18.75 5.16 18.75 10C18.75 14.83 14.83 18.75 10 18.75C5.16 18.75 1.25 14.83 1.25 10C1.25 5.16 5.16 1.25 10 1.25ZM10 2.5C5.85 2.5 2.5 5.85 2.5 10C2.5 14.14 5.85 17.5 10 17.5C14.14 17.5 17.5 14.14 17.5 10C17.5 5.85 14.14 2.5 10 2.5ZM6.06 8.87C6.68 8.87 7.18 9.37 7.18 10C7.18 10.62 6.68 11.12 6.06 11.12C5.44 11.12 4.93 10.62 4.93 10C4.93 9.37 5.44 8.87 6.06 8.87ZM10 8.87C10.62 8.87 11.12 9.37 11.12 10C11.12 10.62 10.62 11.12 10 11.12C9.37 11.12 8.87 10.62 8.87 10C8.87 9.37 9.37 8.87 10 8.87ZM13.93 8.87C14.55 8.87 15.06 9.37 15.06 10C15.06 10.62 14.55 11.12 13.93 11.12C13.31 11.12 12.81 10.62 12.81 10C12.81 9.37 13.31 8.87 13.93 8.87Z" fill="#191919" fill-opacity="1.000000" fill-rule="nonzero"></path></g>', 3)
346
346
  ]));
347
347
  }
348
- const k1 = /* @__PURE__ */ r(K, [["render", W]]), $ = {
348
+ const k1 = /* @__PURE__ */ r(G, [["render", K]]), $ = {
349
349
  name: "IconRefresh"
350
350
  }, l1 = {
351
351
  width: "1em",
@@ -419,21 +419,21 @@ function d1(e, l, t, n, C, h) {
419
419
  }
420
420
  const M1 = /* @__PURE__ */ r(C1, [["render", d1]]);
421
421
  export {
422
- c1 as D,
423
- m1 as E,
424
- g1 as F,
425
- M1 as I,
426
- L1 as N,
427
- v1 as Q,
428
- F1 as S,
429
- p1 as T,
430
- y1 as V,
422
+ g1 as E,
423
+ w1 as F,
424
+ s1 as M,
425
+ h1 as N,
426
+ x1 as Q,
427
+ y1 as R,
428
+ c1 as T,
429
+ F1 as U,
430
+ k1 as V,
431
+ m1 as W,
431
432
  u1 as Y,
432
- w1 as Z,
433
- s1 as h,
433
+ L1 as Z,
434
+ M1 as _,
434
435
  f1 as j,
435
- x1 as k,
436
- k1 as q,
437
- h1 as x,
438
- a1 as y
436
+ a1 as k,
437
+ v1 as q,
438
+ p1 as y
439
439
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "0.2.0-alpha.3",
3
+ "version": "0.2.0-alpha.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,7 +20,7 @@
20
20
  "vue": "^3.3.11"
21
21
  },
22
22
  "dependencies": {
23
- "@opentiny/tiny-robot-svgs": "0.2.0-alpha.3",
23
+ "@opentiny/tiny-robot-svgs": "0.2.0-alpha.4",
24
24
  "@opentiny/vue": "^3.21.0",
25
25
  "@opentiny/vue-button": "^3.21.0",
26
26
  "@opentiny/vue-icon": "^3.22.0",
@@ -44,5 +44,5 @@
44
44
  "vue": "^3.3.11",
45
45
  "vue-tsc": "^2.2.8"
46
46
  },
47
- "gitHead": "078c2aef51bc9cc9167bb96fcc70700999bfd6b9"
47
+ "gitHead": "d902023a1d1f10c8b5d494701e140ede8aec693f"
48
48
  }