@opentiny/tiny-robot 0.3.0-alpha.19 → 0.3.0-alpha.20

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.
@@ -0,0 +1,4 @@
1
+ const l = "data:image/svg+xml,%3csvg%20width='120.000000'%20height='120.000000'%20viewBox='0%200%20120%20120'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs%20/%3e%3crect%20width='120.000000'%20height='120.000000'%20fill='%23FFFFFF'%20fill-opacity='0'%20/%3e%3cpath%20d='M18.75%2037.31L104.52%2037.31C107.68%2037.31%20110.25%2039.87%20110.25%2043.04L110.25%20105.15C110.25%20108.28%20107.71%20110.81%20104.59%20110.81L24.4%20110.81C21.28%20110.81%2018.75%20108.28%2018.75%20105.15L18.75%2037.31Z'%20fill='%23F0F0F0'%20fill-opacity='1.000000'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M13.22%2038.06L84.75%2038.06L84.75%20105.15C84.75%20108.28%2082.21%20110.81%2079.09%20110.81L16.9%20110.81C13.78%20110.81%2011.25%20108.12%2011.25%20105L11.25%2059.25L0.75%2059.25C0.75%2058.15%2012.13%2038.06%2013.22%2038.06Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M84.44%2038.06L105.13%2038.06C106.16%2038.06%20107.41%2037.86%20107.91%2038.76L118.07%2056.96C118.45%2057.64%20119.18%2058.68%20118.5%2059.06C118.28%2059.17%20117.08%2059.06%20116.84%2059.06L99.33%2059.06C97.21%2059.06%2095.27%2057.87%2094.3%2055.98L84.44%2038.06Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M110.42%2059.08L110.42%20105.09C110.42%20108.35%20107.78%20111%20104.51%20111L78.89%20111L78.89%20109.68L104.51%20109.68C107.05%20109.68%20109.11%20107.63%20109.11%20105.09L109.11%2059.08L110.42%2059.08Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3cpath%20d='M85.38%2037.5L85.38%20105.09C85.38%20108.35%2082.73%20111%2079.46%20111L16.42%20111C13.15%20111%2010.51%20108.35%2010.51%20105.09L10.51%2059.08L11.82%2059.08L11.82%20105.09C11.82%20107.63%2013.88%20109.68%2016.42%20109.68L79.46%20109.68C82%20109.68%2084.06%20107.63%2084.06%20105.09L84.06%2038.81L16%2038.81L16%2037.5L85.38%2037.5Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3cpath%20d='M14.14%2037.5C13.25%2037.5%2012.42%2037.96%2011.95%2038.74L0.19%2057.97C-0.19%2058.59%200%2059.41%200.6%2059.79C0.81%2059.92%201.05%2060%201.29%2060L68.53%2060C70.28%2060%2071.92%2059.08%2072.87%2057.58L85.56%2037.5L14.14%2037.5ZM14.47%2039L82.76%2039L71.48%2056.71C70.78%2057.82%2069.56%2058.5%2068.26%2058.5L1.76%2058.5L13.39%2039.61C13.62%2039.23%2014.03%2039%2014.47%2039Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3cpath%20d='M106.12%2037.5C106.97%2037.5%20107.75%2037.95%20108.21%2038.7L119.8%2057.79C120.17%2058.4%20120%2059.21%20119.43%2059.6C119.22%2059.74%20118.99%2059.81%20118.75%2059.81L99.22%2059.81C97.46%2059.81%2095.83%2058.82%2094.94%2057.22L83.97%2037.5L106.12%2037.5ZM106.09%2039L86.69%2039L96.27%2056.57C96.92%2057.76%2098.11%2058.5%2099.39%2058.5L118.35%2058.5L107.1%2039.59C106.88%2039.22%20106.5%2039%20106.09%2039Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3crect%20x='20.250000'%20y='84.000000'%20rx='1.886225'%20width='20.999998'%20height='6.000000'%20fill='%231476FF'%20fill-opacity='1.000000'%20/%3e%3cpath%20d='M35.34%2094.5C35.7%2094.5%2036%2094.83%2036%2095.25C36%2095.66%2035.7%2096%2035.34%2096L20.9%2096C20.54%2096%2020.25%2095.66%2020.25%2095.25C20.25%2094.83%2020.54%2094.5%2020.9%2094.5L35.34%2094.5Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3crect%20x='20.250000'%20y='99.000000'%20rx='0.750000'%20width='7.500000'%20height='1.500000'%20fill='%23808080'%20fill-opacity='1.000000'%20/%3e%3cpath%20d='M60%209C60.41%209%2060.75%209.29%2060.75%209.66L60.75%2018.91C60.75%2019.27%2060.41%2019.57%2060%2019.57C59.58%2019.57%2059.24%2019.27%2059.24%2018.91L59.24%209.66C59.24%209.29%2059.58%209%2060%209Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3cpath%20d='M84.83%2012.96C85.19%2013.17%2085.33%2013.59%2085.15%2013.91L80.52%2021.92C80.34%2022.24%2079.9%2022.33%2079.54%2022.12C79.18%2021.91%2079.03%2021.48%2079.21%2021.17L83.84%2013.16C84.02%2012.84%2084.46%2012.75%2084.83%2012.96Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3cpath%20d='M35.17%2012.96C35.53%2012.75%2035.97%2012.84%2036.15%2013.16L40.78%2021.17C40.96%2021.48%2040.81%2021.91%2040.45%2022.12C40.09%2022.33%2039.65%2022.24%2039.47%2021.92L34.84%2013.91C34.66%2013.59%2034.81%2013.17%2035.17%2012.96Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='nonzero'%20/%3e%3c/svg%3e";
2
+ export {
3
+ l as _
4
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as u, createElementBlock as c, openBlock as e, normalizeClass as m, createElementVNode as n, createBlock as d, resolveDynamicComponent as f, createCommentVNode as h, toDisplayString as l, Fragment as y, createTextVNode as P, renderSlot as B, renderList as w, mergeProps as x, toRaw as S } from "vue";
1
+ import { defineComponent as f, createElementBlock as r, openBlock as e, normalizeClass as y, createBlock as m, createElementVNode as i, resolveDynamicComponent as u, createCommentVNode as h, toDisplayString as l, Fragment as k, createTextVNode as P, renderSlot as B, renderList as w, mergeProps as x, toRaw as S } from "vue";
2
2
  import { _ as v } from "../_plugin-vue_export-helper.js";
3
- const N = { class: "tr-prompt__icon" }, T = { class: "tr-prompt__content" }, V = { class: "tr-prompt__content-label" }, $ = {
3
+ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-title" }, T = {
4
4
  key: 0,
5
5
  class: "tr-prompt__content-description"
6
- }, D = /* @__PURE__ */ u({
6
+ }, V = { class: "tr-prompt__badge" }, $ = /* @__PURE__ */ f({
7
7
  __name: "prompt",
8
8
  props: {
9
9
  label: {},
@@ -11,30 +11,27 @@ const N = { class: "tr-prompt__icon" }, T = { class: "tr-prompt__content" }, V =
11
11
  description: {},
12
12
  icon: {},
13
13
  disabled: { type: Boolean },
14
- badge: {}
14
+ badge: {},
15
+ size: { default: "medium" }
15
16
  },
16
17
  setup(o) {
17
18
  const t = o;
18
- return (s, _) => (e(), c("div", {
19
- class: m(["tr-prompt", { disabled: t.disabled }])
19
+ return (s, d) => (e(), r("div", {
20
+ class: y(["tr-prompt", { disabled: t.disabled }, t.size])
20
21
  }, [
21
- n("div", N, [
22
- (e(), d(f(t.icon)))
22
+ (e(), m(u(t.icon))),
23
+ i("div", z, [
24
+ i("h6", N, l(t.label), 1),
25
+ t.description ? (e(), r("p", T, l(t.description), 1)) : h("", !0)
23
26
  ]),
24
- n("div", T, [
25
- n("h6", V, l(t.label), 1),
26
- t.description ? (e(), c("p", $, l(t.description), 1)) : h("", !0)
27
- ]),
28
- n("div", {
29
- class: m(["tr-prompt__badge", { label: typeof t.badge == "string" }])
30
- }, [
31
- typeof t.badge == "string" ? (e(), c(y, { key: 0 }, [
27
+ i("div", V, [
28
+ typeof t.badge == "string" ? (e(), r(k, { key: 0 }, [
32
29
  P(l(t.badge), 1)
33
- ], 64)) : (e(), d(f(t.badge), { key: 1 }))
34
- ], 2)
30
+ ], 64)) : (e(), m(u(t.badge), { key: 1 }))
31
+ ])
35
32
  ], 2));
36
33
  }
37
- }), r = /* @__PURE__ */ v(D, [["__scopeId", "data-v-e04bfae3"]]), E = { class: "tr-prompts" }, I = /* @__PURE__ */ u({
34
+ }), n = /* @__PURE__ */ v($, [["__scopeId", "data-v-fdc72803"]]), D = { class: "tr-prompts" }, E = /* @__PURE__ */ f({
38
35
  __name: "prompts",
39
36
  props: {
40
37
  items: {},
@@ -45,37 +42,37 @@ const N = { class: "tr-prompt__icon" }, T = { class: "tr-prompt__content" }, V =
45
42
  },
46
43
  emits: ["item-click"],
47
44
  setup(o, { emit: t }) {
48
- const s = o, _ = t, k = (p, b) => {
49
- _("item-click", p, S(b));
45
+ const s = o, d = t, C = (a, _) => {
46
+ d("item-click", a, S(_));
50
47
  };
51
- return (p, b) => (e(), c("div", E, [
52
- n("div", {
53
- class: m(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
48
+ return (a, _) => (e(), r("div", D, [
49
+ i("div", {
50
+ class: y(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
54
51
  }, [
55
- (e(!0), c(y, null, w(s.items, (i, g) => (e(), d(r, x({
56
- key: i.id || g
57
- }, { ref_for: !0 }, i, {
52
+ (e(!0), r(k, null, w(s.items, (p, b) => (e(), m(n, x({
53
+ key: p.id || b
54
+ }, { ref_for: !0 }, p, {
58
55
  style: s.itemStyle,
59
56
  class: s.itemClass,
60
- onClick: (C) => k(C, i)
57
+ onClick: (g) => C(g, p)
61
58
  }), null, 16, ["style", "class", "onClick"]))), 128))
62
59
  ], 2),
63
- B(p.$slots, "footer", {}, void 0, !0)
60
+ B(a.$slots, "footer", {}, void 0, !0)
64
61
  ]));
65
62
  }
66
- }), a = /* @__PURE__ */ v(I, [["__scopeId", "data-v-a3ceb6f3"]]);
67
- r.name = "TrPrompt";
68
- const z = function(o) {
69
- o.component(r.name, r);
63
+ }), c = /* @__PURE__ */ v(E, [["__scopeId", "data-v-641a878e"]]);
64
+ n.name = "TrPrompt";
65
+ const I = function(o) {
66
+ o.component(n.name, n);
70
67
  };
71
- r.install = z;
72
- const j = r;
73
- a.name = "TrPrompts";
68
+ n.install = I;
69
+ const j = n;
70
+ c.name = "TrPrompts";
74
71
  const F = function(o) {
75
- o.component(a.name, a);
72
+ o.component(c.name, c);
76
73
  };
77
- a.install = F;
78
- const q = a;
74
+ c.install = F;
75
+ const q = c;
79
76
  export {
80
77
  j as Prompt,
81
78
  q as Prompts