golden-logic-ui 1.3.11 → 1.3.12

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,8 +1,8 @@
1
- import { ref as b, computed as g, createElementBlock as a, openBlock as s, createElementVNode as e, toDisplayString as l, createCommentVNode as i } from "vue";
2
- const m = { class: "w-full" }, f = { class: "flex justify-between items-center" }, h = { class: "gl-label-form" }, p = { class: "flex items-center" }, x = { class: "shrink-0 z-10 inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 rounded-s-lg dark:bg-gray-600 dark:text-white dark:border-gray-600" }, y = { class: "relative w-full" }, v = ["value"], k = { key: 0 }, w = {
1
+ import { ref as m, computed as p, createElementBlock as o, openBlock as s, createElementVNode as e, toDisplayString as n, createCommentVNode as d } from "vue";
2
+ const g = { class: "w-full" }, y = { class: "flex justify-between items-center" }, b = { class: "gl-label-form" }, f = { class: "flex items-center" }, h = { class: "shrink-0 z-10 inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 rounded-s-lg dark:bg-gray-600 dark:text-white dark:border-gray-600" }, k = { class: "relative w-full" }, x = ["value"], v = { key: 0 }, w = {
3
3
  key: 1,
4
4
  class: "inline-flex items-center"
5
- }, _ = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, S = {
5
+ }, _ = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, H = {
6
6
  __name: "GlTextCopy",
7
7
  props: {
8
8
  label_name: {
@@ -22,39 +22,39 @@ const m = { class: "w-full" }, f = { class: "flex justify-between items-center"
22
22
  default: ""
23
23
  }
24
24
  },
25
- setup(r) {
26
- const u = r, o = b(!1), c = (d) => {
27
- navigator.clipboard.writeText(d).then(function() {
28
- o.value = !0, setTimeout(() => {
29
- o.value = !1;
25
+ setup(t) {
26
+ const c = t, a = m(!1), u = (l) => {
27
+ navigator.clipboard.writeText(l).then(function() {
28
+ a.value = !0, setTimeout(() => {
29
+ a.value = !1;
30
30
  }, 2e3);
31
- }).catch(function(t) {
32
- console.error("Error copying to clipboard: ", t);
31
+ }).catch(function(r) {
32
+ console.error("Error copying to clipboard: ", r);
33
33
  });
34
- }, n = g(() => u.code);
35
- return (d, t) => (s(), a("div", m, [
36
- e("div", f, [
37
- e("label", h, l(r.label_name), 1)
34
+ }, i = p(() => c.code);
35
+ return (l, r) => (s(), o("div", g, [
36
+ e("div", y, [
37
+ e("label", b, n(t.label_name), 1)
38
38
  ]),
39
- e("div", p, [
40
- e("span", x, l(r.text_name), 1),
41
- e("div", y, [
39
+ e("div", f, [
40
+ e("span", h, n(t.text_name), 1),
41
+ e("div", k, [
42
42
  e("input", {
43
43
  type: "text",
44
44
  "aria-describedby": "helper-text-explanation",
45
- class: "bg-gray-50 border border-e-0 border-gray-300 text-gray-500 dark:text-gray-400 text-sm border-s-0 focus:ring-blue-500 focus:border-blue-500 block w-full p-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500",
46
- value: n.value,
45
+ class: "bg-gray-50 border border-e-0 border-gray-300 text-gray-500 dark:text-gray-400 text-sm border-s-0 focus:ring-primary focus:border-primary block w-full p-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-primaryDark dark:focus:border-primaryDark",
46
+ value: i.value,
47
47
  readonly: "",
48
48
  disabled: ""
49
- }, null, 8, v)
49
+ }, null, 8, x)
50
50
  ]),
51
51
  e("button", {
52
52
  style: { padding: ".61rem" },
53
- onClick: t[0] || (t[0] = (C) => c(n.value)),
54
- class: "shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
53
+ onClick: r[0] || (r[0] = (D) => u(i.value)),
54
+ class: "shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-primary rounded-e-lg hover:bg-primary/90 focus:ring-4 focus:outline-hidden focus:ring-primary/30 dark:bg-primaryDark dark:hover:bg-primaryDark/90 dark:focus:ring-primaryDark/30 border border-primary dark:border-primaryDark hover:border-primary/90 dark:hover:border-primaryDark/90",
55
55
  type: "button"
56
56
  }, [
57
- o.value ? i("", !0) : (s(), a("span", k, t[1] || (t[1] = [
57
+ a.value ? d("", !0) : (s(), o("span", v, r[1] || (r[1] = [
58
58
  e("svg", {
59
59
  class: "w-4 h-4",
60
60
  "aria-hidden": "true",
@@ -65,7 +65,7 @@ const m = { class: "w-full" }, f = { class: "flex justify-between items-center"
65
65
  e("path", { d: "M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z" })
66
66
  ], -1)
67
67
  ]))),
68
- o.value ? (s(), a("span", w, t[2] || (t[2] = [
68
+ a.value ? (s(), o("span", w, r[2] || (r[2] = [
69
69
  e("svg", {
70
70
  class: "w-4 h-4",
71
71
  "aria-hidden": "true",
@@ -81,13 +81,13 @@ const m = { class: "w-full" }, f = { class: "flex justify-between items-center"
81
81
  d: "M1 5.917 5.724 10.5 15 1.5"
82
82
  })
83
83
  ], -1)
84
- ]))) : i("", !0)
84
+ ]))) : d("", !0)
85
85
  ])
86
86
  ]),
87
- e("p", _, l(r.description), 1)
87
+ e("p", _, n(t.description), 1)
88
88
  ]));
89
89
  }
90
90
  };
91
91
  export {
92
- S as default
92
+ H as default
93
93
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "The most popular library of interactive components built with Vuejs && Tailwind CSS",
4
4
  "type": "module",
5
5
  "private": false,
6
- "version": "1.3.11",
6
+ "version": "1.3.12",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/mrgiant/GoldenLogicUi.git"