@opentiny/tiny-robot 0.3.0-rc.0 → 0.3.0-rc.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.
@@ -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