sm-click-library-ui 0.0.21 → 0.0.23

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,188 +1,320 @@
1
- import { getCurrentScope as V, onScopeDispose as j, unref as L, watch as F, ref as S, computed as b, openBlock as v, createElementBlock as g, createElementVNode as f, toDisplayString as A, normalizeClass as C, renderSlot as W, createCommentVNode as w, pushScopeId as B, popScopeId as H } from "vue";
2
- function M(e) {
3
- return V() ? (j(e), !0) : !1;
1
+ import { getCurrentScope as T, onScopeDispose as V, unref as z, watch as D, ref as S, computed as k, openBlock as f, createElementBlock as p, createElementVNode as o, toDisplayString as x, normalizeClass as L, renderSlot as g, createCommentVNode as m, pushScopeId as M, popScopeId as O } from "vue";
2
+ function G(e) {
3
+ return T() ? (V(e), !0) : !1;
4
4
  }
5
- function O(e) {
6
- return typeof e == "function" ? e() : L(e);
5
+ function E(e) {
6
+ return typeof e == "function" ? e() : z(e);
7
7
  }
8
- const I = typeof window < "u" && typeof document < "u";
8
+ const A = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const D = Object.prototype.toString, N = (e) => D.call(e) === "[object Object]", y = () => {
11
- }, T = /* @__PURE__ */ G();
12
- function G() {
10
+ const N = Object.prototype.toString, q = (e) => N.call(e) === "[object Object]", b = () => {
11
+ }, H = /* @__PURE__ */ F();
12
+ function F() {
13
13
  var e, l;
14
- return I && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((l = window == null ? void 0 : window.navigator) == null ? void 0 : l.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
14
+ return A && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((l = window == null ? void 0 : window.navigator) == null ? void 0 : l.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
15
15
  }
16
- function _(e) {
16
+ function v(e) {
17
17
  var l;
18
- const s = O(e);
19
- return (l = s == null ? void 0 : s.$el) != null ? l : s;
18
+ const n = E(e);
19
+ return (l = n == null ? void 0 : n.$el) != null ? l : n;
20
20
  }
21
- const z = I ? window : void 0;
22
- function k(...e) {
23
- let l, s, n, r;
24
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, n, r] = e, l = z) : [l, s, n, r] = e, !l)
25
- return y;
26
- Array.isArray(s) || (s = [s]), Array.isArray(n) || (n = [n]);
27
- const a = [], p = () => {
28
- a.forEach((c) => c()), a.length = 0;
29
- }, d = (c, u, o, t) => (c.addEventListener(u, o, t), () => c.removeEventListener(u, o, t)), m = F(
30
- () => [_(l), O(r)],
31
- ([c, u]) => {
32
- if (p(), !c)
21
+ const B = A ? window : void 0;
22
+ function y(...e) {
23
+ let l, n, t, r;
24
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, t, r] = e, l = B) : [l, n, t, r] = e, !l)
25
+ return b;
26
+ Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
27
+ const c = [], _ = () => {
28
+ c.forEach((u) => u()), c.length = 0;
29
+ }, d = (u, h, s, i) => (u.addEventListener(h, s, i), () => u.removeEventListener(h, s, i)), w = D(
30
+ () => [v(l), E(r)],
31
+ ([u, h]) => {
32
+ if (_(), !u)
33
33
  return;
34
- const o = N(u) ? { ...u } : u;
35
- a.push(
36
- ...s.flatMap((t) => n.map((i) => d(c, t, i, o)))
34
+ const s = q(h) ? { ...h } : h;
35
+ c.push(
36
+ ...n.flatMap((i) => t.map((a) => d(u, i, a, s)))
37
37
  );
38
38
  },
39
39
  { immediate: !0, flush: "post" }
40
- ), h = () => {
41
- m(), p();
40
+ ), C = () => {
41
+ w(), _();
42
42
  };
43
- return M(h), h;
43
+ return G(C), C;
44
44
  }
45
- let E = !1;
46
- function $(e, l, s = {}) {
47
- const { window: n = z, ignore: r = [], capture: a = !0, detectIframe: p = !1 } = s;
48
- if (!n)
49
- return y;
50
- T && !E && (E = !0, Array.from(n.document.body.children).forEach((o) => o.addEventListener("click", y)), n.document.documentElement.addEventListener("click", y));
45
+ let $ = !1;
46
+ function R(e, l, n = {}) {
47
+ const { window: t = B, ignore: r = [], capture: c = !0, detectIframe: _ = !1 } = n;
48
+ if (!t)
49
+ return b;
50
+ H && !$ && ($ = !0, Array.from(t.document.body.children).forEach((s) => s.addEventListener("click", b)), t.document.documentElement.addEventListener("click", b));
51
51
  let d = !0;
52
- const m = (o) => r.some((t) => {
53
- if (typeof t == "string")
54
- return Array.from(n.document.querySelectorAll(t)).some((i) => i === o.target || o.composedPath().includes(i));
52
+ const w = (s) => r.some((i) => {
53
+ if (typeof i == "string")
54
+ return Array.from(t.document.querySelectorAll(i)).some((a) => a === s.target || s.composedPath().includes(a));
55
55
  {
56
- const i = _(t);
57
- return i && (o.target === i || o.composedPath().includes(i));
56
+ const a = v(i);
57
+ return a && (s.target === a || s.composedPath().includes(a));
58
58
  }
59
- }), c = [
60
- k(n, "click", (o) => {
61
- const t = _(e);
62
- if (!(!t || t === o.target || o.composedPath().includes(t))) {
63
- if (o.detail === 0 && (d = !m(o)), !d) {
59
+ }), u = [
60
+ y(t, "click", (s) => {
61
+ const i = v(e);
62
+ if (!(!i || i === s.target || s.composedPath().includes(i))) {
63
+ if (s.detail === 0 && (d = !w(s)), !d) {
64
64
  d = !0;
65
65
  return;
66
66
  }
67
- l(o);
67
+ l(s);
68
68
  }
69
- }, { passive: !0, capture: a }),
70
- k(n, "pointerdown", (o) => {
71
- const t = _(e);
72
- d = !m(o) && !!(t && !o.composedPath().includes(t));
69
+ }, { passive: !0, capture: c }),
70
+ y(t, "pointerdown", (s) => {
71
+ const i = v(e);
72
+ d = !w(s) && !!(i && !s.composedPath().includes(i));
73
73
  }, { passive: !0 }),
74
- p && k(n, "blur", (o) => {
74
+ _ && y(t, "blur", (s) => {
75
75
  setTimeout(() => {
76
- var t;
77
- const i = _(e);
78
- ((t = n.document.activeElement) == null ? void 0 : t.tagName) === "IFRAME" && !(i != null && i.contains(n.document.activeElement)) && l(o);
76
+ var i;
77
+ const a = v(e);
78
+ ((i = t.document.activeElement) == null ? void 0 : i.tagName) === "IFRAME" && !(a != null && a.contains(t.document.activeElement)) && l(s);
79
79
  }, 0);
80
80
  })
81
81
  ].filter(Boolean);
82
- return () => c.forEach((o) => o());
82
+ return () => u.forEach((s) => s());
83
83
  }
84
- const q = (e, l) => {
85
- const s = e.__vccOpts || e;
86
- for (const [n, r] of l)
87
- s[n] = r;
88
- return s;
89
- }, x = (e) => (B("data-v-a8f8c201"), e = e(), H(), e), R = {
90
- key: 0,
91
- class: "line-clamp-2 uppercase text-xs truncate text-white"
92
- }, Z = {
93
- key: 1,
94
- class: "line-clamp-2 uppercase text-xs truncate text-white"
95
- }, J = /* @__PURE__ */ x(() => /* @__PURE__ */ f("path", {
84
+ const I = (e, l) => {
85
+ const n = e.__vccOpts || e;
86
+ for (const [t, r] of l)
87
+ n[t] = r;
88
+ return n;
89
+ }, U = (e) => (M("data-v-af0111a4"), e = e(), O(), e), J = { class: "line-clamp-2 uppercase text-xs truncate text-white" }, K = /* @__PURE__ */ U(() => /* @__PURE__ */ o("path", {
96
90
  "fill-rule": "evenodd",
97
91
  d: "M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z",
98
92
  "clip-rule": "evenodd"
99
- }, null, -1)), K = [
100
- J
101
- ], Q = {
93
+ }, null, -1)), Q = [
94
+ K
95
+ ], X = {
102
96
  key: 0,
103
97
  class: "select_widget_lib"
104
- }, U = { key: 0 }, X = {
105
- key: 1,
106
- class: "space-y-2"
107
- }, Y = /* @__PURE__ */ x(() => /* @__PURE__ */ f("p", { class: "line-clamp-2 uppercase text-xs truncate" }, "Vertical", -1)), ee = [
108
- Y
109
- ], te = /* @__PURE__ */ x(() => /* @__PURE__ */ f("p", { class: "line-clamp-2 uppercase text-xs truncate" }, "Horizontal", -1)), oe = [
110
- te
111
- ], ne = {
98
+ }, Y = {
112
99
  __name: "primary_select",
113
100
  props: {
114
- titleFreeSlot: {
115
- type: String,
116
- default: "Free Slot"
117
- },
118
- selectConfig: {
101
+ config: {
119
102
  type: Object,
120
- default: () => ({
121
- chartsConfig: !1,
122
- freeSlot: !1
123
- })
103
+ default: {
104
+ title: "select_primary"
105
+ }
124
106
  }
125
107
  },
126
108
  emits: ["closeSelect"],
127
109
  setup(e, { emit: l }) {
128
- const s = e, n = l, r = S(!1), a = S("Horizontal"), p = S(null), d = b(() => s.selectConfig.length > 0), m = b(
129
- () => s.selectConfig.some((t) => t.chartsConfig)
130
- ), h = b(
131
- () => s.selectConfig.some((t) => t.freeSlot)
132
- ), c = () => {
133
- r.value = !r.value;
134
- }, u = (t) => {
135
- r.value = !1, a.value = t === "horizontal" ? "Vertical" : "Horizontal", n("closeSelect", t);
110
+ const n = e, t = S(!1), r = S(null);
111
+ k(
112
+ () => n.selectConfig.some((d) => d.freeSlot)
113
+ );
114
+ const c = () => {
115
+ t.value = !t.value;
136
116
  };
137
- return $(p, () => {
138
- r.value && (r.value = !1);
139
- }), (t, i) => d.value ? (v(), g("div", {
140
- key: 0,
117
+ return R(r, () => {
118
+ t.value && (t.value = !1);
119
+ }), (d, w) => (f(), p("div", {
141
120
  ref_key: "target",
142
- ref: p,
121
+ ref: r,
143
122
  class: "relative w-full"
144
123
  }, [
145
- f("button", {
124
+ o("button", {
146
125
  onClick: c,
147
126
  class: "bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"
148
127
  }, [
149
- f("div", null, [
150
- m.value ? (v(), g("p", R, A(a.value), 1)) : (v(), g("p", Z, A(e.titleFreeSlot), 1))
128
+ o("div", null, [
129
+ o("p", J, x(e.config.title), 1)
151
130
  ]),
152
- f("div", null, [
153
- (v(), g("svg", {
154
- class: C([r.value ? "rotate-180 transition-transform ease-in-out" : "", "w-3 h-3 text-white"]),
131
+ o("div", null, [
132
+ (f(), p("svg", {
133
+ class: L([t.value ? "rotate-180 transition-transform ease-in-out" : "", "w-3 h-3 text-white"]),
155
134
  xmlns: "http://www.w3.org/2000/svg",
156
135
  fill: "currentColor",
157
136
  viewBox: "0 0 24 24"
158
- }, K, 2))
137
+ }, Q, 2))
138
+ ])
139
+ ]),
140
+ t.value ? (f(), p("section", X, [
141
+ o("div", null, [
142
+ g(d.$slots, "free-slot", {}, void 0, !0)
143
+ ])
144
+ ])) : m("", !0)
145
+ ], 512));
146
+ }
147
+ }, Z = /* @__PURE__ */ I(Y, [["__scopeId", "data-v-af0111a4"]]), j = (e) => (M("data-v-4c81a5bf"), e = e(), O(), e), ee = {
148
+ key: 0,
149
+ class: "modal_head_lib"
150
+ }, te = /* @__PURE__ */ j(() => /* @__PURE__ */ o("div", { class: "modal-overlay_lib absolute h-full bg-gray-600 w-full opacity-70" }, null, -1)), oe = { class: "modal_responsive_lib" }, se = { class: "flex min-h-full items-center justify-center text-center sm:p-0" }, le = { class: "modal_size_lib lg:w-2/6" }, ne = { class: "modal_background_lib" }, ie = { class: "modal_tittle_lib text-current" }, re = /* @__PURE__ */ j(() => /* @__PURE__ */ o("svg", {
151
+ class: "h-5 w-5",
152
+ fill: "currentColor",
153
+ viewBox: "0 0 20 20",
154
+ xmlns: "http://www.w3.org/2000/svg"
155
+ }, [
156
+ /* @__PURE__ */ o("path", {
157
+ "fill-rule": "evenodd",
158
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
159
+ "clip-rule": "evenodd"
160
+ })
161
+ ], -1)), ce = [
162
+ re
163
+ ], ae = { class: "p-4" }, de = { class: "w-full" }, ue = { class: "block" }, fe = { class: "modal_end_button_lib sm" }, pe = {
164
+ __name: "simple_modal",
165
+ props: {
166
+ isOpen: Boolean,
167
+ default: !1
168
+ },
169
+ emits: ["update:isOpen"],
170
+ setup(e, { emit: l }) {
171
+ const n = e, t = l, r = () => {
172
+ t("update:isOpen", !n.isOpen);
173
+ };
174
+ return (c, _) => e.isOpen ? (f(), p("div", ee, [
175
+ te,
176
+ o("div", oe, [
177
+ o("div", se, [
178
+ o("div", le, [
179
+ o("div", ne, [
180
+ o("div", ie, [
181
+ g(c.$slots, "header", {}, void 0, !0),
182
+ o("button", {
183
+ onClick: r,
184
+ class: "modal_close_button_lib",
185
+ "data-modal-toggle": "editUserModal"
186
+ }, ce)
187
+ ]),
188
+ o("div", ae, [
189
+ o("div", de, [
190
+ o("label", ue, [
191
+ g(c.$slots, "body", {}, void 0, !0)
192
+ ])
193
+ ])
194
+ ]),
195
+ o("div", fe, [
196
+ g(c.$slots, "footer", {}, void 0, !0)
197
+ ])
198
+ ])
199
+ ])
200
+ ])
201
+ ])
202
+ ])) : m("", !0);
203
+ }
204
+ }, P = /* @__PURE__ */ I(pe, [["__scopeId", "data-v-4c81a5bf"]]), he = { class: "flex items-center gap-3 mb-2" }, _e = {
205
+ key: 0,
206
+ class: "text-green-500",
207
+ xmlns: "http://www.w3.org/2000/svg",
208
+ width: "20",
209
+ height: "20",
210
+ viewBox: "0 0 20 20",
211
+ fill: "none"
212
+ }, me = /* @__PURE__ */ o("path", {
213
+ "fill-rule": "evenodd",
214
+ "clip-rule": "evenodd",
215
+ d: "M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",
216
+ fill: "currentColor"
217
+ }, null, -1), we = [
218
+ me
219
+ ], ve = {
220
+ key: 1,
221
+ class: "text-blue-400",
222
+ xmlns: "http://www.w3.org/2000/svg",
223
+ width: "20",
224
+ height: "20",
225
+ viewBox: "0 0 20 20",
226
+ fill: "none"
227
+ }, ge = /* @__PURE__ */ o("path", {
228
+ "fill-rule": "evenodd",
229
+ "clip-rule": "evenodd",
230
+ d: "M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",
231
+ fill: "currentColor"
232
+ }, null, -1), be = [
233
+ ge
234
+ ], Ce = {
235
+ key: 2,
236
+ class: "text-yellow-400",
237
+ xmlns: "http://www.w3.org/2000/svg",
238
+ width: "22",
239
+ height: "20",
240
+ viewBox: "0 0 22 20",
241
+ fill: "none"
242
+ }, ye = /* @__PURE__ */ o("path", {
243
+ "fill-rule": "evenodd",
244
+ "clip-rule": "evenodd",
245
+ d: "M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",
246
+ fill: "currentColor"
247
+ }, null, -1), xe = [
248
+ ye
249
+ ], Se = {
250
+ key: 3,
251
+ class: "w-6 h-6 text-red-500",
252
+ "aria-hidden": "true",
253
+ xmlns: "http://www.w3.org/2000/svg",
254
+ width: "24",
255
+ height: "24",
256
+ fill: "currentColor",
257
+ viewBox: "0 0 24 24"
258
+ }, $e = /* @__PURE__ */ o("path", {
259
+ "fill-rule": "evenodd",
260
+ d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z",
261
+ "clip-rule": "evenodd"
262
+ }, null, -1), ke = [
263
+ $e
264
+ ], Le = { class: "font-bold" }, Me = { class: "text-white flex text-left" }, W = {
265
+ __name: "simple_card",
266
+ props: {
267
+ content: {
268
+ type: Object,
269
+ default: {
270
+ title: "Title",
271
+ description: "Garanta que essas informações acima esteja configuradas no Webhook do seu aplicativo META."
272
+ }
273
+ },
274
+ success: {
275
+ type: Boolean,
276
+ default: !1
277
+ },
278
+ info: {
279
+ type: Boolean,
280
+ default: !1
281
+ },
282
+ alert: {
283
+ type: Boolean,
284
+ default: !1
285
+ },
286
+ error: {
287
+ type: Boolean,
288
+ default: !1
289
+ }
290
+ },
291
+ setup(e) {
292
+ const l = e, n = k(() => l.success ? "border-green-500 text-green-500 shadow-md shadow-green-700" : l.info ? "border-blue-400 text-blue-400 shadow-md shadow-blue-700" : l.alert ? "border-yellow-400 text-yellow-400 shadow-md shadow-yellow-700" : l.error ? "border-red-500 text-red-500 shadow-md shadow-red-700" : "border-white text-white");
293
+ return (t, r) => (f(), p("div", {
294
+ class: L([n.value, "bg-base-300 border-2 p-2 rounded-lg flex-col items-center"])
295
+ }, [
296
+ o("div", he, [
297
+ e.success ? (f(), p("svg", _e, we)) : m("", !0),
298
+ e.info ? (f(), p("svg", ve, be)) : m("", !0),
299
+ e.alert ? (f(), p("svg", Ce, xe)) : m("", !0),
300
+ e.error ? (f(), p("svg", Se, ke)) : m("", !0),
301
+ o("span", null, [
302
+ o("p", Le, x(e.content.title), 1)
159
303
  ])
160
304
  ]),
161
- r.value ? (v(), g("section", Q, [
162
- h.value ? (v(), g("div", U, [
163
- W(t.$slots, "free-slot", {}, void 0, !0)
164
- ])) : w("", !0),
165
- m.value ? (v(), g("div", X, [
166
- f("button", {
167
- class: C([a.value === "Vertical" ? "bg-green-500" : "", "btn_select_widget_lib"]),
168
- onClick: i[0] || (i[0] = () => u("horizontal"))
169
- }, ee, 2),
170
- f("button", {
171
- class: C([a.value !== "Vertical" ? "bg-green-500" : "", "btn_select_widget_lib"]),
172
- onClick: i[1] || (i[1] = () => u("vertical"))
173
- }, oe, 2)
174
- ])) : w("", !0)
175
- ])) : w("", !0)
176
- ], 512)) : w("", !0);
305
+ o("section", Me, x(e.content.description), 1)
306
+ ], 2));
177
307
  }
178
- }, P = /* @__PURE__ */ q(ne, [["__scopeId", "data-v-a8f8c201"]]);
179
- function se(e) {
180
- e.component("primarySelect", P);
308
+ };
309
+ function Oe(e) {
310
+ e.component("primarySelect", Z), e.component("simpleModal", P), e.component("simpleCard", W);
181
311
  }
182
- const ie = {
183
- install: se,
184
- primarySelect: P
312
+ const Ae = {
313
+ install: Oe,
314
+ primarySelect: Z,
315
+ simpleModal: P,
316
+ simpleCard: W
185
317
  };
186
318
  export {
187
- ie as default
319
+ Ae as default
188
320
  };
@@ -1 +1 @@
1
- (function(e,h){typeof exports=="object"&&typeof module<"u"?module.exports=h(require("vue")):typeof define=="function"&&define.amd?define(["vue"],h):(e=typeof globalThis<"u"?globalThis:e||self,e["sm-click-library-ui"]=h(e.Vue))})(this,function(e){"use strict";function h(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function S(t){return typeof t=="function"?t():e.unref(t)}const E=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const V=Object.prototype.toString,B=t=>V.call(t)==="[object Object]",w=()=>{},A=N();function N(){var t,c;return E&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((c=window==null?void 0:window.navigator)==null?void 0:c.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function _(t){var c;const s=S(t);return(c=s==null?void 0:s.$el)!=null?c:s}const b=E?window:void 0;function y(...t){let c,s,l,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,l,i]=t,c=b):[c,s,l,i]=t,!c)return w;Array.isArray(s)||(s=[s]),Array.isArray(l)||(l=[l]);const d=[],p=()=>{d.forEach(a=>a()),d.length=0},f=(a,u,n,o)=>(a.addEventListener(u,n,o),()=>a.removeEventListener(u,n,o)),m=e.watch(()=>[_(c),S(i)],([a,u])=>{if(p(),!a)return;const n=B(u)?{...u}:u;d.push(...s.flatMap(o=>l.map(r=>f(a,o,r,n))))},{immediate:!0,flush:"post"}),g=()=>{m(),p()};return h(g),g}let C=!1;function O(t,c,s={}){const{window:l=b,ignore:i=[],capture:d=!0,detectIframe:p=!1}=s;if(!l)return w;A&&!C&&(C=!0,Array.from(l.document.body.children).forEach(n=>n.addEventListener("click",w)),l.document.documentElement.addEventListener("click",w));let f=!0;const m=n=>i.some(o=>{if(typeof o=="string")return Array.from(l.document.querySelectorAll(o)).some(r=>r===n.target||n.composedPath().includes(r));{const r=_(o);return r&&(n.target===r||n.composedPath().includes(r))}}),a=[y(l,"click",n=>{const o=_(t);if(!(!o||o===n.target||n.composedPath().includes(o))){if(n.detail===0&&(f=!m(n)),!f){f=!0;return}c(n)}},{passive:!0,capture:d}),y(l,"pointerdown",n=>{const o=_(t);f=!m(n)&&!!(o&&!n.composedPath().includes(o))},{passive:!0}),p&&y(l,"blur",n=>{setTimeout(()=>{var o;const r=_(t);((o=l.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(r!=null&&r.contains(l.document.activeElement))&&c(n)},0)})].filter(Boolean);return()=>a.forEach(n=>n())}const v=(t,c)=>{const s=t.__vccOpts||t;for(const[l,i]of c)s[l]=i;return s},k=t=>(e.pushScopeId("data-v-a8f8c201"),t=t(),e.popScopeId(),t),I={key:0,class:"line-clamp-2 uppercase text-xs truncate text-white"},z={key:1,class:"line-clamp-2 uppercase text-xs truncate text-white"},j=[k(()=>e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1))],P={key:0,class:"select_widget_lib"},L={key:0},F={key:1,class:"space-y-2"},T=[k(()=>e.createElementVNode("p",{class:"line-clamp-2 uppercase text-xs truncate"},"Vertical",-1))],W=[k(()=>e.createElementVNode("p",{class:"line-clamp-2 uppercase text-xs truncate"},"Horizontal",-1))],x=v({__name:"primary_select",props:{titleFreeSlot:{type:String,default:"Free Slot"},selectConfig:{type:Object,default:()=>({chartsConfig:!1,freeSlot:!1})}},emits:["closeSelect"],setup(t,{emit:c}){const s=t,l=c,i=e.ref(!1),d=e.ref("Horizontal"),p=e.ref(null),f=e.computed(()=>s.selectConfig.length>0),m=e.computed(()=>s.selectConfig.some(o=>o.chartsConfig)),g=e.computed(()=>s.selectConfig.some(o=>o.freeSlot)),a=()=>{i.value=!i.value},u=o=>{i.value=!1,d.value=o==="horizontal"?"Vertical":"Horizontal",l("closeSelect",o)};return O(p,()=>{i.value&&(i.value=!1)}),(o,r)=>f.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"target",ref:p,class:"relative w-full"},[e.createElementVNode("button",{onClick:a,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e.createElementVNode("div",null,[m.value?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(d.value),1)):(e.openBlock(),e.createElementBlock("p",z,e.toDisplayString(t.titleFreeSlot),1))]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([i.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},j,2))])]),i.value?(e.openBlock(),e.createElementBlock("section",P,[g.value?(e.openBlock(),e.createElementBlock("div",L,[e.renderSlot(o.$slots,"free-slot",{},void 0,!0)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("button",{class:e.normalizeClass([d.value==="Vertical"?"bg-green-500":"","btn_select_widget_lib"]),onClick:r[0]||(r[0]=()=>u("horizontal"))},T,2),e.createElementVNode("button",{class:e.normalizeClass([d.value!=="Vertical"?"bg-green-500":"","btn_select_widget_lib"]),onClick:r[1]||(r[1]=()=>u("vertical"))},W,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)}},[["__scopeId","data-v-a8f8c201"]]);function D(t){t.component("primarySelect",x)}return{install:D,primarySelect:x}});
1
+ (function(e,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("vue")):typeof define=="function"&&define.amd?define(["vue"],u):(e=typeof globalThis<"u"?globalThis:e||self,e["sm-click-library-ui"]=u(e.Vue))})(this,function(e){"use strict";function u(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function b(t){return typeof t=="function"?t():e.unref(t)}const y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $=Object.prototype.toString,L=t=>$.call(t)==="[object Object]",w=()=>{},M=O();function O(){var t,l;return y&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((l=window==null?void 0:window.navigator)==null?void 0:l.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function _(t){var l;const s=b(t);return(l=s==null?void 0:s.$el)!=null?l:s}const E=y?window:void 0;function g(...t){let l,s,o,c;if(typeof t[0]=="string"||Array.isArray(t[0])?([s,o,c]=t,l=E):[l,s,o,c]=t,!l)return w;Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]);const i=[],p=()=>{i.forEach(m=>m()),i.length=0},a=(m,f,n,r)=>(m.addEventListener(f,n,r),()=>m.removeEventListener(f,n,r)),h=e.watch(()=>[_(l),b(c)],([m,f])=>{if(p(),!m)return;const n=L(f)?{...f}:f;i.push(...s.flatMap(r=>o.map(d=>a(m,r,d,n))))},{immediate:!0,flush:"post"}),C=()=>{h(),p()};return u(C),C}let k=!1;function A(t,l,s={}){const{window:o=E,ignore:c=[],capture:i=!0,detectIframe:p=!1}=s;if(!o)return w;M&&!k&&(k=!0,Array.from(o.document.body.children).forEach(n=>n.addEventListener("click",w)),o.document.documentElement.addEventListener("click",w));let a=!0;const h=n=>c.some(r=>{if(typeof r=="string")return Array.from(o.document.querySelectorAll(r)).some(d=>d===n.target||n.composedPath().includes(d));{const d=_(r);return d&&(n.target===d||n.composedPath().includes(d))}}),m=[g(o,"click",n=>{const r=_(t);if(!(!r||r===n.target||n.composedPath().includes(r))){if(n.detail===0&&(a=!h(n)),!a){a=!0;return}l(n)}},{passive:!0,capture:i}),g(o,"pointerdown",n=>{const r=_(t);a=!h(n)&&!!(r&&!n.composedPath().includes(r))},{passive:!0}),p&&g(o,"blur",n=>{setTimeout(()=>{var r;const d=_(t);((r=o.document.activeElement)==null?void 0:r.tagName)==="IFRAME"&&!(d!=null&&d.contains(o.document.activeElement))&&l(n)},0)})].filter(Boolean);return()=>m.forEach(n=>n())}const x=(t,l)=>{const s=t.__vccOpts||t;for(const[o,c]of l)s[o]=c;return s},I=t=>(e.pushScopeId("data-v-af0111a4"),t=t(),e.popScopeId(),t),v={class:"line-clamp-2 uppercase text-xs truncate text-white"},Z=[I(()=>e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1))],j={key:0,class:"select_widget_lib"},V=x({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(t,{emit:l}){const s=t,o=e.ref(!1),c=e.ref(null);e.computed(()=>s.selectConfig.some(a=>a.freeSlot));const i=()=>{o.value=!o.value};return A(c,()=>{o.value&&(o.value=!1)}),(a,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"target",ref:c,class:"relative w-full"},[e.createElementVNode("button",{onClick:i,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e.createElementVNode("div",null,[e.createElementVNode("p",v,e.toDisplayString(t.config.title),1)]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([o.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},Z,2))])]),o.value?(e.openBlock(),e.createElementBlock("section",j,[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"free-slot",{},void 0,!0)])])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-af0111a4"]]),N=t=>(e.pushScopeId("data-v-4c81a5bf"),t=t(),e.popScopeId(),t),P={key:0,class:"modal_head_lib"},T=N(()=>e.createElementVNode("div",{class:"modal-overlay_lib absolute h-full bg-gray-600 w-full opacity-70"},null,-1)),W={class:"modal_responsive_lib"},z={class:"flex min-h-full items-center justify-center text-center sm:p-0"},D={class:"modal_size_lib lg:w-2/6"},q={class:"modal_background_lib"},G={class:"modal_tittle_lib text-current"},H=[N(()=>e.createElementVNode("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))],F={class:"p-4"},R={class:"w-full"},U={class:"block"},J={class:"modal_end_button_lib sm"},S=x({__name:"simple_modal",props:{isOpen:Boolean,default:!1},emits:["update:isOpen"],setup(t,{emit:l}){const s=t,o=l,c=()=>{o("update:isOpen",!s.isOpen)};return(i,p)=>t.isOpen?(e.openBlock(),e.createElementBlock("div",P,[T,e.createElementVNode("div",W,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[e.createElementVNode("div",q,[e.createElementVNode("div",G,[e.renderSlot(i.$slots,"header",{},void 0,!0),e.createElementVNode("button",{onClick:c,class:"modal_close_button_lib","data-modal-toggle":"editUserModal"},H)]),e.createElementVNode("div",F,[e.createElementVNode("div",R,[e.createElementVNode("label",U,[e.renderSlot(i.$slots,"body",{},void 0,!0)])])]),e.createElementVNode("div",J,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])])])])])])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-4c81a5bf"]]),K={class:"flex items-center gap-3 mb-2"},Q={key:0,class:"text-green-500",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},X=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)],Y={key:1,class:"text-blue-400",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},ee=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)],te={key:2,class:"text-yellow-400",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},oe=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)],ne={key:3,class:"w-6 h-6 text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},le=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)],se={class:"font-bold"},re={class:"text-white flex text-left"},B={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Garanta que essas informações acima esteja configuradas no Webhook do seu aplicativo META."}},success:{type:Boolean,default:!1},info:{type:Boolean,default:!1},alert:{type:Boolean,default:!1},error:{type:Boolean,default:!1}},setup(t){const l=t,s=e.computed(()=>l.success?"border-green-500 text-green-500 shadow-md shadow-green-700":l.info?"border-blue-400 text-blue-400 shadow-md shadow-blue-700":l.alert?"border-yellow-400 text-yellow-400 shadow-md shadow-yellow-700":l.error?"border-red-500 text-red-500 shadow-md shadow-red-700":"border-white text-white");return(o,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([s.value,"bg-base-300 border-2 p-2 rounded-lg flex-col items-center"])},[e.createElementVNode("div",K,[t.success?(e.openBlock(),e.createElementBlock("svg",Q,X)):e.createCommentVNode("",!0),t.info?(e.openBlock(),e.createElementBlock("svg",Y,ee)):e.createCommentVNode("",!0),t.alert?(e.openBlock(),e.createElementBlock("svg",te,oe)):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createElementBlock("svg",ne,le)):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.createElementVNode("p",se,e.toDisplayString(t.content.title),1)])]),e.createElementVNode("section",re,e.toDisplayString(t.content.description),1)],2))}};function ce(t){t.component("primarySelect",V),t.component("simpleModal",S),t.component("simpleCard",B)}return{install:ce,primarySelect:V,simpleModal:S,simpleCard:B}});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .btn_select_widget_lib[data-v-a8f8c201]{width:100%;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(38 52 61 / var(--tw-bg-opacity));padding:.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #111B21;--tw-shadow: var(--tw-shadow-colored) }.btn_select_widget_lib[data-v-a8f8c201]:hover{background-color:#26343d99}.select_widget_lib[data-v-a8f8c201]{position:absolute;z-index:30;margin-top:.5rem;width:100%;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(75 99 116 / var(--tw-bg-opacity));padding:.375rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #111B21;--tw-shadow: var(--tw-shadow-colored) }
1
+ .select_widget_lib[data-v-af0111a4]{position:absolute;z-index:30;margin-top:.5rem;width:100%;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(75 99 116 / var(--tw-bg-opacity));padding:.375rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #111B21;--tw-shadow: var(--tw-shadow-colored) }.modal_head_lib[data-v-4c81a5bf]{position:fixed;top:0;left:0;z-index:50;display:flex;height:100%;width:100%;align-items:center;justify-content:center;--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);animation:.1s ease-out 0s 1 modalani;transition:opacity .2s ease-in-out}.my_modal_lib[data-v-4c81a5bf]{animation:.1s ease-out 0s 1 modalani;transition:opacity .2s ease-in-out}.modal-overlay_lib[data-v-4c81a5bf]{position:absolute;height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));opacity:.2}.modal_responsive_lib[data-v-4c81a5bf]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;overflow-y:auto}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.modal_responsive_lib[data-v-4c81a5bf]{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.modal_responsive_lib[data-v-4c81a5bf]::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.modal_responsive_lib[data-v-4c81a5bf]{--scrollbar-track: #d1d5db;--scrollbar-thumb: #111827}.modal_size_lib[data-v-4c81a5bf]{z-index:50;width:100%;border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #000;--tw-shadow: var(--tw-shadow-colored)}@media (min-width: 864px){.modal_size_lib[data-v-4c81a5bf]{width:50%}}@media (min-width: 1512px){.modal_size_lib[data-v-4c81a5bf]{width:33.333333%}}.modal_background_lib[data-v-4c81a5bf]{position:relative;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(38 52 61 / var(--tw-bg-opacity));--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal_tittle_lib[data-v-4c81a5bf]{display:flex;align-items:center;justify-content:space-between;border-top-left-radius:1rem;border-top-right-radius:1rem;--tw-border-opacity: 1;border-color:rgb(17 27 33 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(17 27 33 / var(--tw-bg-opacity));padding:.75rem;text-transform:uppercase;color:currentColor}.modal_end_button_lib[data-v-4c81a5bf]{display:flex;justify-content:flex-end}.modal_end_button_lib[data-v-4c81a5bf]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.modal_end_button_lib[data-v-4c81a5bf]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem;--tw-border-opacity: 1;border-color:rgb(17 27 33 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(17 27 33 / var(--tw-bg-opacity));padding:.5rem}.modal_close_button_lib[data-v-4c81a5bf]{margin-left:auto;display:inline-flex;align-items:center;border-radius:.5rem;background-color:#26343d66;padding:.375rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-duration:.3s}.modal_close_button_lib[data-v-4c81a5bf]:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:rgb(75 99 116 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}
@@ -533,6 +533,9 @@ video {
533
533
  .z-50 {
534
534
  z-index: 50;
535
535
  }
536
+ .mb-2 {
537
+ margin-bottom: 0.5rem;
538
+ }
536
539
  .ml-auto {
537
540
  margin-left: auto;
538
541
  }
@@ -560,6 +563,9 @@ video {
560
563
  .h-5 {
561
564
  height: 1.25rem;
562
565
  }
566
+ .h-6 {
567
+ height: 1.5rem;
568
+ }
563
569
  .h-full {
564
570
  height: 100%;
565
571
  }
@@ -575,6 +581,9 @@ video {
575
581
  .w-5 {
576
582
  width: 1.25rem;
577
583
  }
584
+ .w-6 {
585
+ width: 1.5rem;
586
+ }
578
587
  .w-full {
579
588
  width: 100%;
580
589
  }
@@ -597,6 +606,9 @@ video {
597
606
  .justify-between {
598
607
  justify-content: space-between;
599
608
  }
609
+ .gap-3 {
610
+ gap: 0.75rem;
611
+ }
600
612
  .gap-6 {
601
613
  gap: 1.5rem;
602
614
  }
@@ -635,6 +647,33 @@ video {
635
647
  border-top-left-radius: 1rem;
636
648
  border-top-right-radius: 1rem;
637
649
  }
650
+ .border-2 {
651
+ border-width: 2px;
652
+ }
653
+ .border-base-300 {
654
+ --tw-border-opacity: 1;
655
+ border-color: rgb(17 27 33 / var(--tw-border-opacity));
656
+ }
657
+ .border-blue-400 {
658
+ --tw-border-opacity: 1;
659
+ border-color: rgb(96 165 250 / var(--tw-border-opacity));
660
+ }
661
+ .border-green-500 {
662
+ --tw-border-opacity: 1;
663
+ border-color: rgb(34 197 94 / var(--tw-border-opacity));
664
+ }
665
+ .border-red-500 {
666
+ --tw-border-opacity: 1;
667
+ border-color: rgb(239 68 68 / var(--tw-border-opacity));
668
+ }
669
+ .border-white {
670
+ --tw-border-opacity: 1;
671
+ border-color: rgb(255 255 255 / var(--tw-border-opacity));
672
+ }
673
+ .border-yellow-400 {
674
+ --tw-border-opacity: 1;
675
+ border-color: rgb(250 204 21 / var(--tw-border-opacity));
676
+ }
638
677
  .bg-base-100 {
639
678
  --tw-bg-opacity: 1;
640
679
  background-color: rgb(75 99 116 / var(--tw-bg-opacity));
@@ -643,13 +682,16 @@ video {
643
682
  --tw-bg-opacity: 1;
644
683
  background-color: rgb(38 52 61 / var(--tw-bg-opacity));
645
684
  }
646
- .bg-black {
685
+ .bg-base-200\/40 {
686
+ background-color: rgb(38 52 61 / 0.4);
687
+ }
688
+ .bg-base-300 {
647
689
  --tw-bg-opacity: 1;
648
- background-color: rgb(0 0 0 / var(--tw-bg-opacity));
690
+ background-color: rgb(17 27 33 / var(--tw-bg-opacity));
649
691
  }
650
- .bg-blue-900 {
692
+ .bg-black {
651
693
  --tw-bg-opacity: 1;
652
- background-color: rgb(30 58 138 / var(--tw-bg-opacity));
694
+ background-color: rgb(0 0 0 / var(--tw-bg-opacity));
653
695
  }
654
696
  .bg-gray-600 {
655
697
  --tw-bg-opacity: 1;
@@ -659,10 +701,6 @@ video {
659
701
  --tw-bg-opacity: 1;
660
702
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
661
703
  }
662
- .bg-red-200 {
663
- --tw-bg-opacity: 1;
664
- background-color: rgb(254 202 202 / var(--tw-bg-opacity));
665
- }
666
704
  .p-1 {
667
705
  padding: 0.25rem;
668
706
  }
@@ -682,6 +720,9 @@ video {
682
720
  padding-top: 0.75rem;
683
721
  padding-bottom: 0.75rem;
684
722
  }
723
+ .text-left {
724
+ text-align: left;
725
+ }
685
726
  .text-center {
686
727
  text-align: center;
687
728
  }
@@ -693,16 +734,35 @@ video {
693
734
  font-size: 0.75rem;
694
735
  line-height: 1rem;
695
736
  }
737
+ .font-bold {
738
+ font-weight: 700;
739
+ }
696
740
  .uppercase {
697
741
  text-transform: uppercase;
698
742
  }
743
+ .text-blue-400 {
744
+ --tw-text-opacity: 1;
745
+ color: rgb(96 165 250 / var(--tw-text-opacity));
746
+ }
699
747
  .text-current {
700
748
  color: currentColor;
701
749
  }
750
+ .text-green-500 {
751
+ --tw-text-opacity: 1;
752
+ color: rgb(34 197 94 / var(--tw-text-opacity));
753
+ }
754
+ .text-red-500 {
755
+ --tw-text-opacity: 1;
756
+ color: rgb(239 68 68 / var(--tw-text-opacity));
757
+ }
702
758
  .text-white {
703
759
  --tw-text-opacity: 1;
704
760
  color: rgb(255 255 255 / var(--tw-text-opacity));
705
761
  }
762
+ .text-yellow-400 {
763
+ --tw-text-opacity: 1;
764
+ color: rgb(250 204 21 / var(--tw-text-opacity));
765
+ }
706
766
  .opacity-70 {
707
767
  opacity: 0.7;
708
768
  }
@@ -723,6 +783,22 @@ video {
723
783
  --tw-shadow-color: #111B21;
724
784
  --tw-shadow: var(--tw-shadow-colored);
725
785
  }
786
+ .shadow-blue-700 {
787
+ --tw-shadow-color: #1d4ed8;
788
+ --tw-shadow: var(--tw-shadow-colored);
789
+ }
790
+ .shadow-green-700 {
791
+ --tw-shadow-color: #15803d;
792
+ --tw-shadow: var(--tw-shadow-colored);
793
+ }
794
+ .shadow-red-700 {
795
+ --tw-shadow-color: #b91c1c;
796
+ --tw-shadow: var(--tw-shadow-colored);
797
+ }
798
+ .shadow-yellow-700 {
799
+ --tw-shadow-color: #a16207;
800
+ --tw-shadow: var(--tw-shadow-colored);
801
+ }
726
802
  .backdrop-blur-\[2px\] {
727
803
  --tw-backdrop-blur: blur(2px);
728
804
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
@@ -796,6 +872,22 @@ video {
796
872
  --tw-scale-y: 1.05;
797
873
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
798
874
  }
875
+ .hover\:bg-base-100:hover {
876
+ --tw-bg-opacity: 1;
877
+ background-color: rgb(75 99 116 / var(--tw-bg-opacity));
878
+ }
879
+ @media (min-width: 640px) {
880
+
881
+ .sm\:p-0 {
882
+ padding: 0px;
883
+ }
884
+ }
885
+ @media (min-width: 864px) {
886
+
887
+ .md\:w-1\/2 {
888
+ width: 50%;
889
+ }
890
+ }
799
891
  @media (min-width: 1280px) {
800
892
 
801
893
  .lg\:mt-0 {
@@ -806,4 +898,10 @@ video {
806
898
  width: 33.333333%;
807
899
  }
808
900
  }
901
+ @media (min-width: 1512px) {
902
+
903
+ .xl\:w-1\/3 {
904
+ width: 33.333333%;
905
+ }
906
+ }
809
907
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "dist"
6
6
  ],
7
- "version": "0.0.21",
7
+ "version": "0.0.23",
8
8
  "main": "dist/sm-click-library-ui.es.js",
9
9
  "module": "dist/sm-click-library-ui.umd.js",
10
10
  "private": false,
@@ -16,11 +16,23 @@
16
16
  "vue": "^3.4.29"
17
17
  },
18
18
  "devDependencies": {
19
+ "@chromatic-com/storybook": "1.6.1",
20
+ "@storybook/addon-essentials": "^8.2.3",
21
+ "@storybook/addon-interactions": "^8.2.3",
22
+ "@storybook/addon-links": "^8.2.3",
23
+ "@storybook/addon-onboarding": "^8.2.3",
24
+ "@storybook/addon-themes": "8.2.3",
25
+ "@storybook/blocks": "^8.2.3",
26
+ "@storybook/test": "^8.2.3",
27
+ "@storybook/vue3": "^8.2.3",
28
+ "@storybook/vue3-vite": "^8.2.3",
19
29
  "@vitejs/plugin-vue": "^5.0.5",
20
30
  "autoprefixer": "^10.4.19",
21
31
  "postcss": "^8.4.39",
22
32
  "postcss-cli": "^11.0.0",
23
33
  "rollup-plugin-css-only": "^4.5.2",
34
+ "storybook": "^8.2.3",
35
+ "storybook-dark-mode": "^4.0.2",
24
36
  "tailwindcss": "^3.4.4",
25
37
  "vite": "^5.3.1"
26
38
  },
@@ -28,7 +40,9 @@
28
40
  "dev": "vite",
29
41
  "build": "pnpm run build:lib && pnpm run build:style",
30
42
  "build:lib": "vite build",
31
- "build:style": "postcss src/styles/styleSmClick.css -o dist/styleSmClick.css",
32
- "preview": "vite preview"
43
+ "build:style": "postcss src/styles/tailwind.css -o dist/tailwind.css",
44
+ "preview": "vite preview",
45
+ "storybook": "storybook dev -p 6006",
46
+ "build-storybook": "storybook build"
33
47
  }
34
48
  }