@brighterly/ui-kit 0.0.10 → 0.1.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.
package/dist/ui-kit.es.js CHANGED
@@ -1,861 +1,599 @@
1
- const G = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Pe = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], ue = () => {
2
- }, Ae = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
3
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, m = Array.isArray, Me = (e) => v(e) === "[object Map]", je = (e) => v(e) === "[object Set]", S = (e) => typeof e == "function", N = (e) => typeof e == "string", U = (e) => typeof e == "symbol", E = (e) => e !== null && typeof e == "object", ae = Object.prototype.toString, v = (e) => ae.call(e), ze = (e) => v(e) === "[object Object]";
4
- let se;
5
- const B = () => se || (se = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
6
- function ee(e) {
7
- if (m(e)) {
8
- const t = {};
9
- for (let n = 0; n < e.length; n++) {
10
- const o = e[n], s = N(o) ? Le(o) : ee(o);
11
- if (s)
12
- for (const r in s)
13
- t[r] = s[r];
14
- }
15
- return t;
16
- } else if (N(e) || E(e))
17
- return e;
18
- }
19
- const He = /;(?![^(]*\))/g, Ue = /:([^]+)/, Be = /\/\*[^]*?\*\//g;
20
- function Le(e) {
21
- const t = {};
22
- return e.replace(Be, "").split(He).forEach((n) => {
23
- if (n) {
24
- const o = n.split(Ue);
25
- o.length > 1 && (t[o[0].trim()] = o[1].trim());
26
- }
27
- }), t;
28
- }
29
- function L(e) {
30
- let t = "";
31
- if (N(e))
32
- t = e;
33
- else if (m(e))
34
- for (let n = 0; n < e.length; n++) {
35
- const o = L(e[n]);
36
- o && (t += o + " ");
37
- }
38
- else if (E(e))
39
- for (const n in e)
40
- e[n] && (t += n + " ");
41
- return t.trim();
42
- }
43
- const fe = (e) => !!(e && e.__v_isRef === !0), de = (e) => N(e) ? e : e == null ? "" : m(e) || E(e) && (e.toString === ae || !S(e.toString)) ? fe(e) ? de(e.value) : JSON.stringify(e, pe, 2) : String(e), pe = (e, t) => fe(t) ? pe(e, t.value) : Me(t) ? {
44
- [`Map(${t.size})`]: [...t.entries()].reduce(
45
- (n, [o, s], r) => (n[J(o, r) + " =>"] = s, n),
46
- {}
47
- )
48
- } : je(t) ? {
49
- [`Set(${t.size})`]: [...t.values()].map((n) => J(n))
50
- } : U(t) ? J(t) : E(t) && !m(t) && !ze(t) ? String(t) : t, J = (e, t = "") => {
51
- var n;
52
- return (
53
- // Symbol.description in es2019+ so we need to cast here to pass
54
- // the lib: es2016 check
55
- U(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
56
- );
57
- };
58
- process.env.NODE_ENV;
59
- process.env.NODE_ENV;
60
- process.env.NODE_ENV;
61
- new Set(
62
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(U)
63
- );
64
- // @__NO_SIDE_EFFECTS__
65
- function me(e) {
66
- return /* @__PURE__ */ Q(e) ? /* @__PURE__ */ me(e.__v_raw) : !!(e && e.__v_isReactive);
67
- }
68
- // @__NO_SIDE_EFFECTS__
69
- function Q(e) {
70
- return !!(e && e.__v_isReadonly);
71
- }
72
- // @__NO_SIDE_EFFECTS__
73
- function W(e) {
74
- return !!(e && e.__v_isShallow);
75
- }
76
- // @__NO_SIDE_EFFECTS__
77
- function X(e) {
78
- return e ? !!e.__v_raw : !1;
79
- }
80
- // @__NO_SIDE_EFFECTS__
81
- function w(e) {
82
- const t = e && e.__v_raw;
83
- return t ? /* @__PURE__ */ w(t) : e;
84
- }
85
- // @__NO_SIDE_EFFECTS__
86
- function te(e) {
87
- return e ? e.__v_isRef === !0 : !1;
88
- }
89
- const k = [];
90
- function Je(e) {
91
- k.push(e);
92
- }
93
- function We() {
94
- k.pop();
95
- }
96
- let q = !1;
97
- function V(e, ...t) {
98
- if (q) return;
99
- q = !0;
100
- const n = k.length ? k[k.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = qe();
101
- if (o)
102
- ne(
103
- o,
104
- n,
105
- 11,
106
- [
107
- // eslint-disable-next-line no-restricted-syntax
108
- e + t.map((r) => {
109
- var c, l;
110
- return (l = (c = r.toString) == null ? void 0 : c.call(r)) != null ? l : JSON.stringify(r);
111
- }).join(""),
112
- n && n.proxy,
113
- s.map(
114
- ({ vnode: r }) => `at <${Ie(n, r.type)}>`
115
- ).join(`
116
- `),
117
- s
118
- ]
119
- );
120
- else {
121
- const r = [`[Vue warn]: ${e}`, ...t];
122
- s.length && r.push(`
123
- `, ...Ke(s)), console.warn(...r);
124
- }
125
- q = !1;
126
- }
127
- function qe() {
128
- let e = k[k.length - 1];
129
- if (!e)
130
- return [];
131
- const t = [];
132
- for (; e; ) {
133
- const n = t[0];
134
- n && n.vnode === e ? n.recurseCount++ : t.push({
135
- vnode: e,
136
- recurseCount: 0
137
- });
138
- const o = e.component && e.component.parent;
139
- e = o && o.vnode;
140
- }
141
- return t;
142
- }
143
- function Ke(e) {
144
- const t = [];
145
- return e.forEach((n, o) => {
146
- t.push(...o === 0 ? [] : [`
147
- `], ...Ye(n));
148
- }), t;
149
- }
150
- function Ye({ vnode: e, recurseCount: t }) {
151
- const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Ie(
152
- e.component,
153
- e.type,
154
- o
155
- )}`, r = ">" + n;
156
- return e.props ? [s, ...Ge(e.props), r] : [s + r];
157
- }
158
- function Ge(e) {
159
- const t = [], n = Object.keys(e);
160
- return n.slice(0, 3).forEach((o) => {
161
- t.push(...he(o, e[o]));
162
- }), n.length > 3 && t.push(" ..."), t;
163
- }
164
- function he(e, t, n) {
165
- return N(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ te(t) ? (t = he(e, /* @__PURE__ */ w(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : S(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ w(t), n ? t : [`${e}=`, t]);
166
- }
167
- const _e = {
168
- sp: "serverPrefetch hook",
169
- bc: "beforeCreate hook",
170
- c: "created hook",
171
- bm: "beforeMount hook",
172
- m: "mounted hook",
173
- bu: "beforeUpdate hook",
174
- u: "updated",
175
- bum: "beforeUnmount hook",
176
- um: "unmounted hook",
177
- a: "activated hook",
178
- da: "deactivated hook",
179
- ec: "errorCaptured hook",
180
- rtc: "renderTracked hook",
181
- rtg: "renderTriggered hook",
182
- 0: "setup function",
183
- 1: "render function",
184
- 2: "watcher getter",
185
- 3: "watcher callback",
186
- 4: "watcher cleanup function",
187
- 5: "native event handler",
188
- 6: "component event handler",
189
- 7: "vnode hook",
190
- 8: "directive hook",
191
- 9: "transition hook",
192
- 10: "app errorHandler",
193
- 11: "app warnHandler",
194
- 12: "ref function",
195
- 13: "async component loader",
196
- 14: "scheduler flush",
197
- 15: "component update",
198
- 16: "app unmount cleanup function"
199
- };
200
- function ne(e, t, n, o) {
201
- try {
202
- return o ? e(...o) : e();
203
- } catch (s) {
204
- ge(s, t, n);
205
- }
206
- }
207
- function ge(e, t, n, o = !0) {
208
- const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: c } = t && t.appContext.config || G;
209
- if (t) {
210
- let l = t.parent;
211
- const u = t.proxy, f = process.env.NODE_ENV !== "production" ? _e[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
212
- for (; l; ) {
213
- const g = l.ec;
214
- if (g) {
215
- for (let i = 0; i < g.length; i++)
216
- if (g[i](e, u, f) === !1)
217
- return;
218
- }
219
- l = l.parent;
220
- }
221
- if (r) {
222
- ne(r, null, 10, [
223
- e,
224
- u,
225
- f
226
- ]);
227
- return;
228
- }
229
- }
230
- Qe(e, n, s, o, c);
231
- }
232
- function Qe(e, t, n, o = !0, s = !1) {
233
- if (process.env.NODE_ENV !== "production") {
234
- const r = _e[t];
235
- if (n && Je(n), V(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && We(), o)
236
- throw e;
237
- console.error(e);
238
- } else {
239
- if (s)
240
- throw e;
241
- console.error(e);
1
+ import { defineComponent as d, openBlock as c, createBlock as h, resolveDynamicComponent as T, withCtx as m, renderSlot as r, computed as p, createElementBlock as s, normalizeClass as o, createVNode as b, unref as y, createElementVNode as C, withModifiers as v, createCommentVNode as f, withDirectives as g, toDisplayString as $, createTextVNode as z } from "vue";
2
+ import { faSquare as S, faCircle as w } from "@fortawesome/pro-regular-svg-icons";
3
+ import { faSquareCheck as q, faXmark as Q, faEllipsisVertical as R, faScrubber as L } from "@fortawesome/pro-solid-svg-icons";
4
+ import { FontAwesomeIcon as _ } from "@fortawesome/vue-fontawesome";
5
+ import { vOnClickOutside as D } from "@vueuse/components";
6
+ const W = /* @__PURE__ */ d({
7
+ name: "IconContainer",
8
+ __name: "IconContainer",
9
+ props: {
10
+ is: { default: "span" }
11
+ },
12
+ setup(t) {
13
+ return (l, n) => (c(), h(T(t.is), { class: "icon-container" }, {
14
+ default: m(() => [
15
+ r(l.$slots, "default", {}, void 0, !0)
16
+ ]),
17
+ _: 3
18
+ }));
242
19
  }
243
- }
244
- const p = [];
245
- let y = -1;
246
- const D = [];
247
- let b = null, C = 0;
248
- const Xe = /* @__PURE__ */ Promise.resolve();
249
- let Z = null;
250
- const Ze = 100;
251
- function ve(e) {
252
- let t = y + 1, n = p.length;
253
- for (; t < n; ) {
254
- const o = t + n >>> 1, s = p[o], r = T(s);
255
- r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
20
+ }), u = (t, l) => {
21
+ const n = t.__vccOpts || t;
22
+ for (const [a, e] of l)
23
+ n[a] = e;
24
+ return n;
25
+ }, k = /* @__PURE__ */ u(W, [["__scopeId", "data-v-41c12e6f"]]), M = ["disabled"], V = /* @__PURE__ */ d({
26
+ name: "BtnCheckbox",
27
+ __name: "ButtonCheckbox",
28
+ props: {
29
+ checked: { type: Boolean, default: !1 },
30
+ disabled: { type: Boolean, default: !1 }
31
+ },
32
+ emits: ["click"],
33
+ setup(t, { emit: l }) {
34
+ const n = t, a = l, e = () => {
35
+ n.disabled || a("click");
36
+ }, i = p(() => n.checked ? q : S);
37
+ return (B, I) => (c(), s("button", {
38
+ class: o(["btn-checkbox", { checked: t.checked, disabled: t.disabled }]),
39
+ disabled: t.disabled,
40
+ onClick: e
41
+ }, [
42
+ b(k, { class: "medium" }, {
43
+ default: m(() => [
44
+ b(y(_), { icon: i.value }, null, 8, ["icon"])
45
+ ]),
46
+ _: 1
47
+ })
48
+ ], 10, M));
256
49
  }
257
- return t;
258
- }
259
- function et(e) {
260
- if (!(e.flags & 1)) {
261
- const t = T(e), n = p[p.length - 1];
262
- !n || // fast path when the job id is larger than the tail
263
- !(e.flags & 2) && t >= T(n) ? p.push(e) : p.splice(ve(t), 0, e), e.flags |= 1, ye();
50
+ }), Qt = /* @__PURE__ */ u(V, [["__scopeId", "data-v-df7a5c10"]]), j = ["disabled"], N = /* @__PURE__ */ d({
51
+ name: "BtnClose",
52
+ __name: "ButtonClose",
53
+ props: {
54
+ icon: { default: () => Q },
55
+ disabled: { type: Boolean, default: !1 },
56
+ color: { default: "gray" },
57
+ size: { default: "medium" }
58
+ },
59
+ emits: ["click"],
60
+ setup(t, { emit: l }) {
61
+ const n = l, a = () => {
62
+ n("click");
63
+ };
64
+ return (e, i) => (c(), s("button", {
65
+ type: "button",
66
+ class: o(["ui-btn-close", t.color, t.size]),
67
+ disabled: t.disabled,
68
+ onClick: a
69
+ }, [
70
+ b(k, {
71
+ class: o([`ui-btn-close__container container-${t.size}`])
72
+ }, {
73
+ default: m(() => [
74
+ b(y(_), { icon: t.icon }, null, 8, ["icon"])
75
+ ]),
76
+ _: 1
77
+ }, 8, ["class"])
78
+ ], 10, j));
264
79
  }
265
- }
266
- function ye() {
267
- Z || (Z = Xe.then(Ee));
268
- }
269
- function tt(e) {
270
- m(e) ? D.push(...e) : b && e.id === -1 ? b.splice(C + 1, 0, e) : e.flags & 1 || (D.push(e), e.flags |= 1), ye();
271
- }
272
- function nt(e) {
273
- if (D.length) {
274
- const t = [...new Set(D)].sort(
275
- (n, o) => T(n) - T(o)
276
- );
277
- if (D.length = 0, b) {
278
- b.push(...t);
279
- return;
280
- }
281
- for (b = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C = 0; C < b.length; C++) {
282
- const n = b[C];
283
- process.env.NODE_ENV !== "production" && Ne(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
284
- }
285
- b = null, C = 0;
80
+ }), Rt = /* @__PURE__ */ u(N, [["__scopeId", "data-v-e98c30ca"]]), O = { class: "tooltip__box" }, E = ["innerHTML"], K = /* @__PURE__ */ d({
81
+ name: "TooltipDefault",
82
+ __name: "TooltipDefault",
83
+ props: {
84
+ text: { default: "" },
85
+ size: { default: "default" },
86
+ placement: { default: "left" }
87
+ },
88
+ setup(t) {
89
+ return (l, n) => (c(), s("div", {
90
+ class: o(["tooltip", t.size, t.placement])
91
+ }, [
92
+ C("div", O, [
93
+ t.text ? (c(), s("span", {
94
+ key: 0,
95
+ class: "tooltip__text",
96
+ innerHTML: t.text
97
+ }, null, 8, E)) : r(l.$slots, "default", { key: 1 }, void 0, !0)
98
+ ])
99
+ ], 2));
286
100
  }
287
- }
288
- const T = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
289
- function Ee(e) {
290
- process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
291
- const t = process.env.NODE_ENV !== "production" ? (n) => Ne(e, n) : ue;
292
- try {
293
- for (y = 0; y < p.length; y++) {
294
- const n = p[y];
295
- if (n && !(n.flags & 8)) {
296
- if (process.env.NODE_ENV !== "production" && t(n))
297
- continue;
298
- n.flags & 4 && (n.flags &= -2), ne(
299
- n,
300
- n.i,
301
- n.i ? 15 : 14
302
- ), n.flags & 4 || (n.flags &= -2);
303
- }
304
- }
305
- } finally {
306
- for (; y < p.length; y++) {
307
- const n = p[y];
308
- n && (n.flags &= -2);
309
- }
310
- y = -1, p.length = 0, nt(e), Z = null, (p.length || D.length) && Ee(e);
101
+ }), x = /* @__PURE__ */ u(K, [["__scopeId", "data-v-ca5d60f0"]]), P = ["data-qa", "disabled"], H = /* @__PURE__ */ d({
102
+ name: "BtnIcon",
103
+ __name: "ButtonIcon",
104
+ props: {
105
+ icon: {},
106
+ disabled: { type: Boolean, default: !1 },
107
+ color: { default: "blue" },
108
+ size: { default: "big" },
109
+ tooltip: { default: null },
110
+ dataQa: { default: null }
111
+ },
112
+ emits: ["click", "click:close"],
113
+ setup(t, { emit: l }) {
114
+ const n = l, a = () => {
115
+ n("click");
116
+ }, e = (i) => {
117
+ n("click:close", i);
118
+ };
119
+ return (i, B) => (c(), s("button", {
120
+ type: "button",
121
+ class: o(["ui-btn-icon", t.color, t.size, { tooltip: t.tooltip }]),
122
+ "data-qa": t.dataQa,
123
+ disabled: t.disabled,
124
+ onClick: [
125
+ a,
126
+ v(e, ["stop"])
127
+ ]
128
+ }, [
129
+ b(k, { is: "span" }, {
130
+ default: m(() => [
131
+ b(y(_), { icon: t.icon }, null, 8, ["icon"])
132
+ ]),
133
+ _: 1
134
+ }),
135
+ t.tooltip ? (c(), h(x, {
136
+ key: 0,
137
+ text: t.tooltip
138
+ }, null, 8, ["text"])) : f("", !0)
139
+ ], 10, P));
311
140
  }
312
- }
313
- function Ne(e, t) {
314
- const n = e.get(t) || 0;
315
- if (n > Ze) {
316
- const o = t.i, s = o && Fe(o.type);
317
- return ge(
318
- `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
319
- null,
320
- 10
321
- ), !0;
141
+ }), Lt = /* @__PURE__ */ u(H, [["__scopeId", "data-v-11788724"]]), A = ["disabled"], F = /* @__PURE__ */ d({
142
+ name: "BtnKebab",
143
+ __name: "ButtonKebab",
144
+ props: {
145
+ size: { default: "medium" },
146
+ disabled: { type: Boolean }
147
+ },
148
+ emits: ["click", "click:outside"],
149
+ setup(t, { emit: l }) {
150
+ const n = l, a = () => {
151
+ n("click");
152
+ }, e = () => {
153
+ n("click:outside");
154
+ };
155
+ return (i, B) => g((c(), s("button", {
156
+ class: o(["btn-kebab", t.size]),
157
+ type: "button",
158
+ disabled: t.disabled,
159
+ onClick: a
160
+ }, [
161
+ b(k, null, {
162
+ default: m(() => [
163
+ b(y(_), { icon: y(R) }, null, 8, ["icon"])
164
+ ]),
165
+ _: 1
166
+ })
167
+ ], 10, A)), [
168
+ [y(D), e]
169
+ ]);
322
170
  }
323
- return e.set(t, n + 1), !1;
324
- }
325
- const K = /* @__PURE__ */ new Map();
326
- process.env.NODE_ENV !== "production" && (B().__VUE_HMR_RUNTIME__ = {
327
- createRecord: Y(ot),
328
- rerender: Y(rt),
329
- reload: Y(st)
330
- });
331
- const M = /* @__PURE__ */ new Map();
332
- function ot(e, t) {
333
- return M.has(e) ? !1 : (M.set(e, {
334
- initialDef: j(t),
335
- instances: /* @__PURE__ */ new Set()
336
- }), !0);
337
- }
338
- function j(e) {
339
- return $e(e) ? e.__vccOpts : e;
340
- }
341
- function rt(e, t) {
342
- const n = M.get(e);
343
- n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
344
- t && (o.render = t, j(o.type).render = t), o.renderCache = [], o.job.flags & 8 || o.update();
345
- }));
346
- }
347
- function st(e, t) {
348
- const n = M.get(e);
349
- if (!n) return;
350
- t = j(t), ie(n.initialDef, t);
351
- const o = [...n.instances];
352
- for (let s = 0; s < o.length; s++) {
353
- const r = o[s], c = j(r.type);
354
- let l = K.get(c);
355
- l || (c !== n.initialDef && ie(c, t), K.set(c, l = /* @__PURE__ */ new Set())), l.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (l.add(r), r.ceReload(t.styles), l.delete(r)) : r.parent ? et(() => {
356
- r.job.flags & 8 || (r.parent.update(), l.delete(r));
357
- }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
358
- "[HMR] Root or manually mounted instance modified. Full reload required."
359
- ), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(c);
171
+ }), Dt = /* @__PURE__ */ u(F, [["__scopeId", "data-v-d98b1fcd"]]), X = ["data-qa", "disabled"], G = {
172
+ key: 2,
173
+ class: "ui-btn-primary__text"
174
+ }, J = /* @__PURE__ */ d({
175
+ name: "BtnPrimary",
176
+ __name: "ButtonPrimary",
177
+ props: {
178
+ text: { default: "" },
179
+ disabled: { type: Boolean, default: !1 },
180
+ color: { default: "blue" },
181
+ size: { default: "medium" },
182
+ elementWidth: { default: "auto" },
183
+ tooltip: { default: null },
184
+ dataQa: { default: null }
185
+ },
186
+ emits: ["click"],
187
+ setup(t, { emit: l }) {
188
+ const n = l, a = () => {
189
+ n("click");
190
+ };
191
+ return (e, i) => (c(), s("button", {
192
+ type: "button",
193
+ class: o(["ui-btn-primary", t.color, t.size, t.elementWidth, { tooltip: t.tooltip }]),
194
+ "data-qa": t.dataQa,
195
+ disabled: t.disabled,
196
+ onClick: a
197
+ }, [
198
+ e.$slots.iconLeft ? (c(), h(k, {
199
+ key: 0,
200
+ class: o([t.size])
201
+ }, {
202
+ default: m(() => [
203
+ r(e.$slots, "iconLeft", {}, void 0, !0)
204
+ ]),
205
+ _: 3
206
+ }, 8, ["class"])) : f("", !0),
207
+ e.$slots.content ? r(e.$slots, "content", { key: 1 }, void 0, !0) : (c(), s("span", G, $(t.text), 1)),
208
+ e.$slots.iconRight ? (c(), h(k, {
209
+ key: 3,
210
+ class: o([`container-${t.size}`])
211
+ }, {
212
+ default: m(() => [
213
+ r(e.$slots, "iconRight", {}, void 0, !0)
214
+ ]),
215
+ _: 3
216
+ }, 8, ["class"])) : f("", !0),
217
+ t.tooltip ? (c(), h(x, {
218
+ key: 4,
219
+ class: "tooltip-default",
220
+ text: t.tooltip,
221
+ size: "small"
222
+ }, null, 8, ["text"])) : f("", !0)
223
+ ], 10, X));
360
224
  }
361
- tt(() => {
362
- K.clear();
363
- });
364
- }
365
- function ie(e, t) {
366
- I(e, t);
367
- for (const n in e)
368
- n !== "__file" && !(n in t) && delete e[n];
369
- }
370
- function Y(e) {
371
- return (t, n) => {
372
- try {
373
- return e(t, n);
374
- } catch (o) {
375
- console.error(o), console.warn(
376
- "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
377
- );
378
- }
379
- };
380
- }
381
- let R, $ = [];
382
- function Se(e, t) {
383
- var n, o;
384
- R = e, R ? (R.enabled = !0, $.forEach(({ event: s, args: r }) => R.emit(s, ...r)), $ = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
385
- window.HTMLElement && // also exclude jsdom
386
- // eslint-disable-next-line no-restricted-syntax
387
- !((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
388
- Se(r, t);
389
- }), setTimeout(() => {
390
- R || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, $ = []);
391
- }, 3e3)) : $ = [];
392
- }
393
- let O = null, it = null;
394
- const ct = (e) => e.__isTeleport;
395
- function be(e, t) {
396
- e.shapeFlag & 6 && e.component ? (e.transition = t, be(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
397
- }
398
- // @__NO_SIDE_EFFECTS__
399
- function lt(e, t) {
400
- return S(e) ? (
401
- // #8236: extend call and options.name access are considered side-effects
402
- // by Rollup, so we have to wrap it in a pure-annotated IIFE.
403
- I({ name: e.name }, t, { setup: e })
404
- ) : e;
405
- }
406
- B().requestIdleCallback;
407
- B().cancelIdleCallback;
408
- const ut = (e) => !!e.type.__asyncLoader, at = /* @__PURE__ */ Symbol.for("v-ndc");
409
- function ft(e, t, n = {}, o, s) {
410
- if (O.ce || O.parent && ut(O.parent) && O.parent.ce) {
411
- const f = Object.keys(n).length > 0;
412
- return n.name = t, z(), le(
413
- F,
414
- null,
415
- [oe("slot", n, o)],
416
- f ? -2 : 64
417
- );
225
+ }), Wt = /* @__PURE__ */ u(J, [["__scopeId", "data-v-706d9910"]]), U = ["disabled"], Y = /* @__PURE__ */ d({
226
+ name: "BtnRadio",
227
+ __name: "ButtonRadio",
228
+ props: {
229
+ checked: { type: Boolean, default: !1 },
230
+ disabled: { type: Boolean, default: !1 }
231
+ },
232
+ emits: ["click"],
233
+ setup(t, { emit: l }) {
234
+ const n = t, a = l, e = () => {
235
+ n.disabled || a("click");
236
+ }, i = p(() => n.checked ? L : w);
237
+ return (B, I) => (c(), s("button", {
238
+ class: o(["btn-radio", { checked: t.checked, disabled: t.disabled }]),
239
+ disabled: t.disabled,
240
+ onClick: e
241
+ }, [
242
+ b(k, { class: "medium" }, {
243
+ default: m(() => [
244
+ b(y(_), { icon: i.value }, null, 8, ["icon"])
245
+ ]),
246
+ _: 1
247
+ })
248
+ ], 10, U));
418
249
  }
419
- let r = e[t];
420
- process.env.NODE_ENV !== "production" && r && r.length > 1 && (V(
421
- "SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."
422
- ), r = () => []), r && r._c && (r._d = !1), z();
423
- const c = r && Oe(r(n)), l = n.key || // slot content array of a dynamic conditional slot may have a branch
424
- // key attached in the `createSlots` helper, respect that
425
- c && c.key, u = le(
426
- F,
427
- {
428
- key: (l && !U(l) ? l : `_${t}`) + // #7256 force differentiate fallback content from actual content
429
- (!c && o ? "_fb" : "")
430
- },
431
- c || [],
432
- c && e._ === 1 ? 64 : -2
433
- );
434
- return r && r._c && (r._d = !0), u;
435
- }
436
- function Oe(e) {
437
- return e.some((t) => Ce(t) ? !(t.type === ke || t.type === F && !Oe(t.children)) : !0) ? e : null;
438
- }
439
- const dt = {};
440
- process.env.NODE_ENV !== "production" && (dt.ownKeys = (e) => (V(
441
- "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
442
- ), Reflect.ownKeys(e)));
443
- const pt = {}, we = (e) => Object.getPrototypeOf(e) === pt, mt = (e) => e.__isSuspense, F = /* @__PURE__ */ Symbol.for("v-fgt"), ht = /* @__PURE__ */ Symbol.for("v-txt"), ke = /* @__PURE__ */ Symbol.for("v-cmt"), P = [];
444
- let h = null;
445
- function z(e = !1) {
446
- P.push(h = e ? null : []);
447
- }
448
- function _t() {
449
- P.pop(), h = P[P.length - 1] || null;
450
- }
451
- function Ve(e) {
452
- return e.dynamicChildren = h || Pe, _t(), h && h.push(e), e;
453
- }
454
- function ce(e, t, n, o, s, r) {
455
- return Ve(
456
- De(
457
- e,
458
- t,
459
- n,
460
- o,
461
- s,
462
- r,
463
- !0
464
- )
465
- );
466
- }
467
- function le(e, t, n, o, s) {
468
- return Ve(
469
- oe(
470
- e,
471
- t,
472
- n,
473
- o,
474
- s,
475
- !0
476
- )
477
- );
478
- }
479
- function Ce(e) {
480
- return e ? e.__v_isVNode === !0 : !1;
481
- }
482
- const gt = (...e) => xe(
483
- ...e
484
- ), Re = ({ key: e }) => e ?? null, A = ({
485
- ref: e,
486
- ref_key: t,
487
- ref_for: n
488
- }) => (typeof e == "number" && (e = "" + e), e != null ? N(e) || /* @__PURE__ */ te(e) || S(e) ? { i: O, r: e, k: t, f: !!n } : e : null);
489
- function De(e, t = null, n = null, o = 0, s = null, r = e === F ? 0 : 1, c = !1, l = !1) {
490
- const u = {
491
- __v_isVNode: !0,
492
- __v_skip: !0,
493
- type: e,
494
- props: t,
495
- key: t && Re(t),
496
- ref: t && A(t),
497
- scopeId: it,
498
- slotScopeIds: null,
499
- children: n,
500
- component: null,
501
- suspense: null,
502
- ssContent: null,
503
- ssFallback: null,
504
- dirs: null,
505
- transition: null,
506
- el: null,
507
- anchor: null,
508
- target: null,
509
- targetStart: null,
510
- targetAnchor: null,
511
- staticCount: 0,
512
- shapeFlag: r,
513
- patchFlag: o,
514
- dynamicProps: s,
515
- dynamicChildren: null,
516
- appContext: null,
517
- ctx: O
518
- };
519
- return l ? (re(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && V("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
520
- !c && // has current parent block
521
- h && // presence of a patch flag indicates this node needs patching on updates.
522
- // component nodes also should always be patched, because even if the
523
- // component doesn't need to update, it needs to persist the instance on to
524
- // the next vnode so that it can be properly unmounted later.
525
- (u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
526
- // vnode should not be considered dynamic due to handler caching.
527
- u.patchFlag !== 32 && h.push(u), u;
528
- }
529
- const oe = process.env.NODE_ENV !== "production" ? gt : xe;
530
- function xe(e, t = null, n = null, o = 0, s = null, r = !1) {
531
- if ((!e || e === at) && (process.env.NODE_ENV !== "production" && !e && V(`Invalid vnode type when creating vnode: ${e}.`), e = ke), Ce(e)) {
532
- const l = H(
533
- e,
534
- t,
535
- !0
536
- /* mergeRef: true */
537
- );
538
- return n && re(l, n), !r && h && (l.shapeFlag & 6 ? h[h.indexOf(e)] = l : h.push(l)), l.patchFlag = -2, l;
250
+ }), Mt = /* @__PURE__ */ u(Y, [["__scopeId", "data-v-23c610f4"]]), Z = ["disabled"], tt = { class: "ui-btn-secondary__text" }, et = /* @__PURE__ */ d({
251
+ name: "BtnSecondary",
252
+ __name: "ButtonSecondary",
253
+ props: {
254
+ text: { default: "" },
255
+ disabled: { type: Boolean, default: !1 },
256
+ size: { default: "medium" },
257
+ elementWidth: { default: "auto" },
258
+ selected: { type: Boolean, default: !1 },
259
+ color: { default: "blue" }
260
+ },
261
+ emits: ["click"],
262
+ setup(t, { emit: l }) {
263
+ const n = l, a = () => {
264
+ n("click");
265
+ };
266
+ return (e, i) => (c(), s("button", {
267
+ type: "button",
268
+ class: o(["ui-btn-secondary", t.size, t.elementWidth, t.color, { disabled: t.disabled }, { selected: t.selected }]),
269
+ disabled: t.disabled,
270
+ onClick: a
271
+ }, [
272
+ e.$slots.iconLeft ? (c(), h(k, {
273
+ key: 0,
274
+ class: o([`container-${t.size}`])
275
+ }, {
276
+ default: m(() => [
277
+ r(e.$slots, "iconLeft", {}, void 0, !0)
278
+ ]),
279
+ _: 3
280
+ }, 8, ["class"])) : f("", !0),
281
+ C("span", tt, $(t.text), 1),
282
+ e.$slots.iconRight ? (c(), h(k, {
283
+ key: 1,
284
+ class: o([`container-${t.size}`])
285
+ }, {
286
+ default: m(() => [
287
+ r(e.$slots, "iconRight", {}, void 0, !0)
288
+ ]),
289
+ _: 3
290
+ }, 8, ["class"])) : f("", !0),
291
+ r(e.$slots, "tooltip", {}, void 0, !0)
292
+ ], 10, Z));
539
293
  }
540
- if ($e(e) && (e = e.__vccOpts), t) {
541
- t = yt(t);
542
- let { class: l, style: u } = t;
543
- l && !N(l) && (t.class = L(l)), E(u) && (/* @__PURE__ */ X(u) && !m(u) && (u = I({}, u)), t.style = ee(u));
294
+ }), Vt = /* @__PURE__ */ u(et, [["__scopeId", "data-v-5945e6cf"]]), nt = ["disabled"], lt = /* @__PURE__ */ d({
295
+ name: "BtnSecondaryIcon",
296
+ __name: "ButtonSecondaryIcon",
297
+ props: {
298
+ icon: {},
299
+ disabled: { type: Boolean, default: !1 },
300
+ color: { default: "gray" }
301
+ },
302
+ emits: ["click"],
303
+ setup(t, { emit: l }) {
304
+ const n = l, a = () => {
305
+ n("click");
306
+ };
307
+ return (e, i) => (c(), s("button", {
308
+ type: "button",
309
+ class: o(["ui-btn-secondary-icon", t.color]),
310
+ disabled: t.disabled,
311
+ onClick: a
312
+ }, [
313
+ b(k, { is: "span" }, {
314
+ default: m(() => [
315
+ b(y(_), { icon: t.icon }, null, 8, ["icon"])
316
+ ]),
317
+ _: 1
318
+ })
319
+ ], 10, nt));
544
320
  }
545
- const c = N(e) ? 1 : mt(e) ? 128 : ct(e) ? 64 : E(e) ? 4 : S(e) ? 2 : 0;
546
- return process.env.NODE_ENV !== "production" && c & 4 && /* @__PURE__ */ X(e) && (e = /* @__PURE__ */ w(e), V(
547
- "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
548
- `
549
- Component that was made reactive: `,
550
- e
551
- )), De(
552
- e,
553
- t,
554
- n,
555
- o,
556
- s,
557
- c,
558
- r,
559
- !0
560
- );
561
- }
562
- function yt(e) {
563
- return e ? /* @__PURE__ */ X(e) || we(e) ? I({}, e) : e : null;
564
- }
565
- function H(e, t, n = !1, o = !1) {
566
- const { props: s, ref: r, patchFlag: c, children: l, transition: u } = e, f = t ? Nt(s || {}, t) : s, g = {
567
- __v_isVNode: !0,
568
- __v_skip: !0,
569
- type: e.type,
570
- props: f,
571
- key: f && Re(f),
572
- ref: t && t.ref ? (
573
- // #2078 in the case of <component :is="vnode" ref="extra"/>
574
- // if the vnode itself already has a ref, cloneVNode will need to merge
575
- // the refs so the single vnode can be set on multiple refs
576
- n && r ? m(r) ? r.concat(A(t)) : [r, A(t)] : A(t)
577
- ) : r,
578
- scopeId: e.scopeId,
579
- slotScopeIds: e.slotScopeIds,
580
- children: process.env.NODE_ENV !== "production" && c === -1 && m(l) ? l.map(Te) : l,
581
- target: e.target,
582
- targetStart: e.targetStart,
583
- targetAnchor: e.targetAnchor,
584
- staticCount: e.staticCount,
585
- shapeFlag: e.shapeFlag,
586
- // if the vnode is cloned with extra props, we can no longer assume its
587
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
588
- // note: preserve flag for fragments since they use the flag for children
589
- // fast paths only.
590
- patchFlag: t && e.type !== F ? c === -1 ? 16 : c | 16 : c,
591
- dynamicProps: e.dynamicProps,
592
- dynamicChildren: e.dynamicChildren,
593
- appContext: e.appContext,
594
- dirs: e.dirs,
595
- transition: u,
596
- // These should technically only be non-null on mounted VNodes. However,
597
- // they *should* be copied for kept-alive vnodes. So we just always copy
598
- // them since them being non-null during a mount doesn't affect the logic as
599
- // they will simply be overwritten.
600
- component: e.component,
601
- suspense: e.suspense,
602
- ssContent: e.ssContent && H(e.ssContent),
603
- ssFallback: e.ssFallback && H(e.ssFallback),
604
- placeholder: e.placeholder,
605
- el: e.el,
606
- anchor: e.anchor,
607
- ctx: e.ctx,
608
- ce: e.ce
609
- };
610
- return u && o && be(
611
- g,
612
- u.clone(g)
613
- ), g;
614
- }
615
- function Te(e) {
616
- const t = H(e);
617
- return m(e.children) && (t.children = e.children.map(Te)), t;
618
- }
619
- function Et(e = " ", t = 0) {
620
- return oe(ht, null, e, t);
621
- }
622
- function re(e, t) {
623
- let n = 0;
624
- const { shapeFlag: o } = e;
625
- if (t == null)
626
- t = null;
627
- else if (m(t))
628
- n = 16;
629
- else if (typeof t == "object")
630
- if (o & 65) {
631
- const s = t.default;
632
- s && (s._c && (s._d = !1), re(e, s()), s._c && (s._d = !0));
633
- return;
634
- } else
635
- n = 32, !t._ && !we(t) && (t._ctx = O);
636
- else S(t) ? (t = { default: t, _ctx: O }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Et(t)]) : n = 8);
637
- e.children = t, e.shapeFlag |= n;
638
- }
639
- function Nt(...e) {
640
- const t = {};
641
- for (let n = 0; n < e.length; n++) {
642
- const o = e[n];
643
- for (const s in o)
644
- if (s === "class")
645
- t.class !== o.class && (t.class = L([t.class, o.class]));
646
- else if (s === "style")
647
- t.style = ee([t.style, o.style]);
648
- else if (Ae(s)) {
649
- const r = t[s], c = o[s];
650
- c && r !== c && !(m(r) && r.includes(c)) && (t[s] = r ? [].concat(r, c) : c);
651
- } else s !== "" && (t[s] = o[s]);
321
+ }), jt = /* @__PURE__ */ u(lt, [["__scopeId", "data-v-5daf6b95"]]), at = ["disabled"], ct = { class: "btn-simple__text" }, ot = /* @__PURE__ */ d({
322
+ name: "BtnSimple",
323
+ __name: "ButtonSimple",
324
+ props: {
325
+ text: {},
326
+ disabled: { type: Boolean, default: !1 }
327
+ },
328
+ emits: ["click"],
329
+ setup(t, { emit: l }) {
330
+ const n = l, a = () => {
331
+ n("click");
332
+ };
333
+ return (e, i) => (c(), s("button", {
334
+ type: "button",
335
+ class: o(["btn-simple"]),
336
+ disabled: t.disabled,
337
+ onClick: a
338
+ }, [
339
+ e.$slots.leftIcon ? r(e.$slots, "leftIcon", { key: 0 }, void 0, !0) : f("", !0),
340
+ C("span", ct, $(t.text), 1),
341
+ e.$slots.rightIcon ? r(e.$slots, "rightIcon", { key: 1 }, void 0, !0) : f("", !0)
342
+ ], 8, at));
652
343
  }
653
- return t;
654
- }
655
- {
656
- const e = B(), t = (n, o) => {
657
- let s;
658
- return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
659
- s.length > 1 ? s.forEach((c) => c(r)) : s[0](r);
344
+ }), Nt = /* @__PURE__ */ u(ot, [["__scopeId", "data-v-0429e610"]]), st = ["disabled"], it = {
345
+ key: 0,
346
+ class: "btn-switcher__emoji"
347
+ }, dt = {
348
+ key: 1,
349
+ class: "btn-switcher__label"
350
+ }, ut = /* @__PURE__ */ d({
351
+ name: "BtnSwitcher",
352
+ __name: "ButtonSwitcher",
353
+ props: {
354
+ text: {},
355
+ emoji: { default: null },
356
+ label: { default: null },
357
+ tooltip: { default: null },
358
+ selected: { type: Boolean, default: !1 },
359
+ disabled: { type: Boolean, default: !1 }
360
+ },
361
+ emits: ["click"],
362
+ setup(t, { emit: l }) {
363
+ const n = l, a = () => {
364
+ n("click");
660
365
  };
661
- };
662
- t(
663
- "__VUE_INSTANCE_SETTERS__",
664
- (n) => n
665
- ), t(
666
- "__VUE_SSR_SETTERS__",
667
- (n) => n
668
- );
669
- }
670
- process.env.NODE_ENV;
671
- const St = /(?:^|[-_])\w/g, bt = (e) => e.replace(St, (t) => t.toUpperCase()).replace(/[-_]/g, "");
672
- function Fe(e, t = !0) {
673
- return S(e) ? e.displayName || e.name : e.name || t && e.__name;
674
- }
675
- function Ie(e, t, n = !1) {
676
- let o = Fe(t);
677
- if (!o && t.__file) {
678
- const s = t.__file.match(/([^/\\]+)\.\w+$/);
679
- s && (o = s[1]);
366
+ return (e, i) => (c(), s("div", {
367
+ class: o(["content-switcher", { selected: t.selected, disabled: t.disabled }])
368
+ }, [
369
+ C("button", {
370
+ type: "button",
371
+ class: o(["btn-switcher", { selected: t.selected }]),
372
+ disabled: t.disabled,
373
+ onClick: a
374
+ }, [
375
+ t.emoji ? (c(), s("span", it, $(t.emoji), 1)) : f("", !0),
376
+ z(" " + $(t.text) + " ", 1),
377
+ t.label ? (c(), s("span", dt, $(t.label), 1)) : f("", !0)
378
+ ], 10, st),
379
+ t.tooltip ? (c(), h(x, {
380
+ key: 0,
381
+ text: t.tooltip,
382
+ placement: "center",
383
+ size: "small"
384
+ }, null, 8, ["text"])) : f("", !0)
385
+ ], 2));
680
386
  }
681
- if (!o && e) {
682
- const s = (r) => {
683
- for (const c in r)
684
- if (r[c] === t)
685
- return c;
387
+ }), Ot = /* @__PURE__ */ u(ut, [["__scopeId", "data-v-b59270a4"]]), rt = ["disabled"], ft = {
388
+ key: 1,
389
+ class: "ui-btn-text__text"
390
+ }, mt = /* @__PURE__ */ d({
391
+ name: "BtnText",
392
+ __name: "ButtonText",
393
+ props: {
394
+ text: { default: "" },
395
+ disabled: { type: Boolean, default: !1 },
396
+ color: { default: "blue" },
397
+ size: { default: "medium" },
398
+ elementWidth: { default: "auto" }
399
+ },
400
+ emits: ["click"],
401
+ setup(t, { emit: l }) {
402
+ const n = l, a = () => {
403
+ n("click");
686
404
  };
687
- o = s(e.components) || e.parent && s(
688
- e.parent.type.components
689
- ) || s(e.appContext.components);
405
+ return (e, i) => (c(), s("button", {
406
+ type: "button",
407
+ class: o(["ui-btn-text", t.color, t.size, t.elementWidth]),
408
+ disabled: t.disabled,
409
+ onClick: a
410
+ }, [
411
+ e.$slots.iconLeft ? (c(), h(k, {
412
+ key: 0,
413
+ class: o([`container-${t.size}`])
414
+ }, {
415
+ default: m(() => [
416
+ r(e.$slots, "iconLeft", {}, void 0, !0)
417
+ ]),
418
+ _: 3
419
+ }, 8, ["class"])) : f("", !0),
420
+ t.text ? (c(), s("span", ft, $(t.text), 1)) : f("", !0),
421
+ e.$slots.iconRight ? (c(), h(k, {
422
+ key: 2,
423
+ class: o([`container-${t.size}`])
424
+ }, {
425
+ default: m(() => [
426
+ r(e.$slots, "iconRight", {}, void 0, !0)
427
+ ]),
428
+ _: 3
429
+ }, 8, ["class"])) : f("", !0)
430
+ ], 10, rt));
690
431
  }
691
- return o ? bt(o) : n ? "App" : "Anonymous";
692
- }
693
- function $e(e) {
694
- return S(e) && "__vccOpts" in e;
695
- }
696
- function Ot() {
697
- if (process.env.NODE_ENV === "production" || typeof window > "u")
698
- return;
699
- const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
700
- __vue_custom_formatter: !0,
701
- header(i) {
702
- if (!E(i))
703
- return null;
704
- if (i.__isVue)
705
- return ["div", e, "VueInstance"];
706
- if (/* @__PURE__ */ te(i)) {
707
- const a = i.value;
708
- return [
709
- "div",
710
- {},
711
- ["span", e, g(i)],
712
- "<",
713
- l(a),
714
- ">"
715
- ];
716
- } else {
717
- if (/* @__PURE__ */ me(i))
718
- return [
719
- "div",
720
- {},
721
- ["span", e, /* @__PURE__ */ W(i) ? "ShallowReactive" : "Reactive"],
722
- "<",
723
- l(i),
724
- `>${/* @__PURE__ */ Q(i) ? " (readonly)" : ""}`
725
- ];
726
- if (/* @__PURE__ */ Q(i))
727
- return [
728
- "div",
729
- {},
730
- ["span", e, /* @__PURE__ */ W(i) ? "ShallowReadonly" : "Readonly"],
731
- "<",
732
- l(i),
733
- ">"
734
- ];
735
- }
736
- return null;
737
- },
738
- hasBody(i) {
739
- return i && i.__isVue;
740
- },
741
- body(i) {
742
- if (i && i.__isVue)
743
- return [
744
- "div",
745
- {},
746
- ...r(i.$)
747
- ];
748
- }
749
- };
750
- function r(i) {
751
- const a = [];
752
- i.type.props && i.props && a.push(c("props", /* @__PURE__ */ w(i.props))), i.setupState !== G && a.push(c("setup", i.setupState)), i.data !== G && a.push(c("data", /* @__PURE__ */ w(i.data)));
753
- const d = u(i, "computed");
754
- d && a.push(c("computed", d));
755
- const _ = u(i, "inject");
756
- return _ && a.push(c("injected", _)), a.push([
757
- "div",
758
- {},
759
- [
760
- "span",
761
- {
762
- style: o.style + ";opacity:0.66"
763
- },
764
- "$ (internal): "
765
- ],
766
- ["object", { object: i }]
767
- ]), a;
432
+ }), Et = /* @__PURE__ */ u(mt, [["__scopeId", "data-v-8f62a933"]]), bt = ["disabled"], kt = /* @__PURE__ */ d({
433
+ name: "BtnToggle",
434
+ __name: "ButtonToggle",
435
+ props: {
436
+ checked: { type: Boolean, default: !1 },
437
+ disabled: { type: Boolean, default: !1 }
438
+ },
439
+ emits: ["click"],
440
+ setup(t, { emit: l }) {
441
+ const n = t, a = l, e = () => {
442
+ n.disabled || a("click");
443
+ };
444
+ return (i, B) => (c(), s("button", {
445
+ class: o(["btn-toggle", { checked: t.checked, disabled: t.disabled }]),
446
+ disabled: t.disabled,
447
+ onClick: e
448
+ }, [...B[0] || (B[0] = [
449
+ C("span", { class: "btn-toggle__circle" }, null, -1)
450
+ ])], 10, bt));
768
451
  }
769
- function c(i, a) {
770
- return a = I({}, a), Object.keys(a).length ? [
771
- "div",
772
- { style: "line-height:1.25em;margin-bottom:0.6em" },
773
- [
774
- "div",
775
- {
776
- style: "color:#476582"
777
- },
778
- i
779
- ],
780
- [
781
- "div",
782
- {
783
- style: "padding-left:1.25em"
784
- },
785
- ...Object.keys(a).map((d) => [
786
- "div",
787
- {},
788
- ["span", o, d + ": "],
789
- l(a[d], !1)
790
- ])
452
+ }), Kt = /* @__PURE__ */ u(kt, [["__scopeId", "data-v-ee7f505b"]]), ht = ["data-qa", "disabled"], yt = { class: "ui-btn-transparent-icon__wrap" }, Bt = /* @__PURE__ */ d({
453
+ name: "BtnTransparentIcon",
454
+ __name: "ButtonTransparentIcon",
455
+ props: {
456
+ icon: {},
457
+ disabled: { type: Boolean, default: !1 },
458
+ tooltip: { default: null },
459
+ dataQa: { default: null }
460
+ },
461
+ emits: ["click", "click:close"],
462
+ setup(t, { emit: l }) {
463
+ const n = l, a = () => {
464
+ n("click");
465
+ }, e = (i) => {
466
+ n("click:close", i);
467
+ };
468
+ return (i, B) => (c(), s("button", {
469
+ type: "button",
470
+ class: o(["ui-btn-transparent-icon", { tooltip: t.tooltip }]),
471
+ "data-qa": t.dataQa,
472
+ disabled: t.disabled,
473
+ onClick: [
474
+ a,
475
+ v(e, ["stop"])
791
476
  ]
792
- ] : ["span", {}];
793
- }
794
- function l(i, a = !0) {
795
- return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : E(i) ? ["object", { object: a ? /* @__PURE__ */ w(i) : i }] : ["span", n, String(i)];
477
+ }, [
478
+ C("span", yt, [
479
+ b(k, { is: "span" }, {
480
+ default: m(() => [
481
+ b(y(_), { icon: t.icon }, null, 8, ["icon"])
482
+ ]),
483
+ _: 1
484
+ })
485
+ ]),
486
+ t.tooltip ? (c(), h(x, {
487
+ key: 0,
488
+ text: t.tooltip
489
+ }, null, 8, ["text"])) : f("", !0)
490
+ ], 10, ht));
796
491
  }
797
- function u(i, a) {
798
- const d = i.type;
799
- if (S(d))
800
- return;
801
- const _ = {};
802
- for (const x in i.ctx)
803
- f(d, x, a) && (_[x] = i.ctx[x]);
804
- return _;
492
+ }), Pt = /* @__PURE__ */ u(Bt, [["__scopeId", "data-v-19c5f518"]]), $t = ["disabled"], _t = /* @__PURE__ */ d({
493
+ name: "BtnTextQuaternary",
494
+ __name: "ButtonTextQuaternary",
495
+ props: {
496
+ disabled: { type: Boolean, default: !1 },
497
+ underline: { type: Boolean, default: !1 },
498
+ color: { default: "default" }
499
+ },
500
+ emits: ["click"],
501
+ setup(t, { emit: l }) {
502
+ const n = l, a = () => {
503
+ n("click");
504
+ };
505
+ return (e, i) => (c(), s("button", {
506
+ type: "button",
507
+ class: o(["p-text-quaternary", { underline: t.underline }, t.color]),
508
+ disabled: t.disabled,
509
+ onClick: a
510
+ }, [
511
+ r(e.$slots, "default", {}, void 0, !0)
512
+ ], 10, $t));
805
513
  }
806
- function f(i, a, d) {
807
- const _ = i[d];
808
- if (m(_) && _.includes(a) || E(_) && a in _ || i.extends && f(i.extends, a, d) || i.mixins && i.mixins.some((x) => f(x, a, d)))
809
- return !0;
514
+ }), Ht = /* @__PURE__ */ u(_t, [["__scopeId", "data-v-789ddcd5"]]), Ct = ["disabled"], xt = /* @__PURE__ */ d({
515
+ name: "BtnTextSecondary",
516
+ __name: "ButtonTextSecondary",
517
+ props: {
518
+ disabled: { type: Boolean, default: !1 }
519
+ },
520
+ emits: ["click"],
521
+ setup(t, { emit: l }) {
522
+ const n = l, a = () => {
523
+ n("click");
524
+ };
525
+ return (e, i) => (c(), s("button", {
526
+ type: "button",
527
+ class: "p-text-secondary",
528
+ disabled: t.disabled,
529
+ onClick: a
530
+ }, [
531
+ r(e.$slots, "default", {}, void 0, !0)
532
+ ], 8, Ct));
810
533
  }
811
- function g(i) {
812
- return /* @__PURE__ */ W(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
534
+ }), At = /* @__PURE__ */ u(xt, [["__scopeId", "data-v-fbbc4516"]]), pt = ["disabled"], vt = /* @__PURE__ */ d({
535
+ name: "BtnTextTertiary",
536
+ __name: "ButtonTextTertiary",
537
+ props: {
538
+ disabled: { type: Boolean, default: !1 },
539
+ underline: { type: Boolean, default: !1 },
540
+ color: { default: "default" }
541
+ },
542
+ emits: ["click"],
543
+ setup(t, { emit: l }) {
544
+ const n = l, a = () => {
545
+ n("click");
546
+ };
547
+ return (e, i) => (c(), s("button", {
548
+ type: "button",
549
+ class: o(["p-text-tertiary", { underline: t.underline }, t.color]),
550
+ disabled: t.disabled,
551
+ onClick: a
552
+ }, [
553
+ r(e.$slots, "default", {}, void 0, !0)
554
+ ], 10, pt));
813
555
  }
814
- window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
815
- }
816
- process.env.NODE_ENV;
817
- process.env.NODE_ENV;
818
- process.env.NODE_ENV;
819
- function wt() {
820
- Ot();
821
- }
822
- process.env.NODE_ENV !== "production" && wt();
823
- const kt = ["data-qa", "disabled"], Vt = {
824
- key: 1,
825
- class: "ui-btn-primary__text"
826
- }, Ct = /* @__PURE__ */ lt({
827
- name: "BtnPrimary",
828
- __name: "ButtonPrimary",
556
+ }), Ft = /* @__PURE__ */ u(vt, [["__scopeId", "data-v-377f6ccc"]]), It = ["disabled"], Tt = /* @__PURE__ */ d({
557
+ name: "BtnTextTertiary",
558
+ __name: "ButtonTextTertiaryMedium",
829
559
  props: {
830
- text: { default: "" },
831
560
  disabled: { type: Boolean, default: !1 },
832
- color: { default: "blue" },
833
- size: { default: "medium" },
834
- elementWidth: { default: "auto" },
835
- tooltip: { default: null },
836
- dataQa: { default: null }
561
+ underline: { type: Boolean, default: !1 },
562
+ color: { default: "default" }
837
563
  },
838
564
  emits: ["click"],
839
- setup(e, { emit: t }) {
840
- const n = t, o = () => {
565
+ setup(t, { emit: l }) {
566
+ const n = l, a = () => {
841
567
  n("click");
842
568
  };
843
- return (s, r) => (z(), ce("button", {
569
+ return (e, i) => (c(), s("button", {
844
570
  type: "button",
845
- class: L(["ui-btn-primary", e.color, e.size, e.elementWidth, { tooltip: e.tooltip }]),
846
- "data-qa": e.dataQa,
847
- disabled: e.disabled,
848
- onClick: o
571
+ class: o(["p-text-tertiary-medium", { underline: t.underline }, t.color]),
572
+ disabled: t.disabled,
573
+ onClick: a
849
574
  }, [
850
- s.$slots.content ? ft(s.$slots, "content", { key: 0 }, void 0) : (z(), ce("span", Vt, de(e.text), 1))
851
- ], 10, kt));
575
+ r(e.$slots, "default", {}, void 0, !0)
576
+ ], 10, It));
852
577
  }
853
- }), Rt = (e, t) => {
854
- const n = e.__vccOpts || e;
855
- for (const [o, s] of t)
856
- n[o] = s;
857
- return n;
858
- }, Dt = /* @__PURE__ */ Rt(Ct, [["__scopeId", "data-v-fc505a5f"]]);
578
+ }), Xt = /* @__PURE__ */ u(Tt, [["__scopeId", "data-v-19ac5089"]]);
859
579
  export {
860
- Dt as ButtonPrimary
580
+ Qt as ButtonCheckbox,
581
+ Rt as ButtonClose,
582
+ Lt as ButtonIcon,
583
+ Dt as ButtonKebab,
584
+ Wt as ButtonPrimary,
585
+ Mt as ButtonRadio,
586
+ Vt as ButtonSecondary,
587
+ jt as ButtonSecondaryIcon,
588
+ Nt as ButtonSimple,
589
+ Ot as ButtonSwitcher,
590
+ Et as ButtonText,
591
+ Ht as ButtonTextQuaternary,
592
+ At as ButtonTextSecondary,
593
+ Ft as ButtonTextTertiary,
594
+ Xt as ButtonTextTertiaryMedium,
595
+ Kt as ButtonToggle,
596
+ Pt as ButtonTransparentIcon,
597
+ k as IconContainer,
598
+ x as TooltipDefault
861
599
  };