@brighterly/ui-kit 0.0.7 → 0.0.9

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,8 +1,829 @@
1
- import { defineComponent as c, openBlock as n, createElementBlock as i, normalizeClass as d, renderSlot as s, toDisplayString as r } from "vue";
2
- const u = ["data-qa", "disabled"], m = {
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);
242
+ }
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;
256
+ }
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();
264
+ }
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;
286
+ }
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);
311
+ }
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;
322
+ }
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);
360
+ }
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
+ );
418
+ }
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;
539
+ }
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));
544
+ }
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]);
652
+ }
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);
660
+ };
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]);
680
+ }
681
+ if (!o && e) {
682
+ const s = (r) => {
683
+ for (const c in r)
684
+ if (r[c] === t)
685
+ return c;
686
+ };
687
+ o = s(e.components) || e.parent && s(
688
+ e.parent.type.components
689
+ ) || s(e.appContext.components);
690
+ }
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;
768
+ }
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
+ ])
791
+ ]
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)];
796
+ }
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 _;
805
+ }
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;
810
+ }
811
+ function g(i) {
812
+ return /* @__PURE__ */ W(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
813
+ }
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 = {
3
824
  key: 1,
4
825
  class: "ui-btn-primary__text"
5
- }, f = /* @__PURE__ */ c({
826
+ }, Ct = /* @__PURE__ */ lt({
6
827
  name: "BtnPrimary",
7
828
  __name: "ButtonPrimary",
8
829
  props: {
@@ -15,26 +836,26 @@ const u = ["data-qa", "disabled"], m = {
15
836
  dataQa: { default: null }
16
837
  },
17
838
  emits: ["click"],
18
- setup(t, { emit: o }) {
19
- const e = o, l = () => {
20
- e("click");
839
+ setup(e, { emit: t }) {
840
+ const n = t, o = () => {
841
+ n("click");
21
842
  };
22
- return (a, b) => (n(), i("button", {
843
+ return (s, r) => (z(), ce("button", {
23
844
  type: "button",
24
- class: d(["ui-btn-primary", t.color, t.size, t.elementWidth, { tooltip: t.tooltip }]),
25
- "data-qa": t.dataQa,
26
- disabled: t.disabled,
27
- onClick: l
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
28
849
  }, [
29
- a.$slots.content ? s(a.$slots, "content", { key: 0 }, void 0, !0) : (n(), i("span", m, r(t.text), 1))
30
- ], 10, u));
31
- }
32
- }), y = (t, o) => {
33
- const e = t.__vccOpts || t;
34
- for (const [l, a] of o)
35
- e[l] = a;
36
- return e;
37
- }, p = /* @__PURE__ */ y(f, [["__scopeId", "data-v-fc505a5f"]]);
850
+ s.$slots.content ? ft(s.$slots, "content", { key: 0 }, void 0) : (z(), ce("span", Vt, de(e.text), 1))
851
+ ], 10, kt));
852
+ }
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"]]);
38
859
  export {
39
- p as ButtonPrimary
860
+ Dt as ButtonPrimary
40
861
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/ui-kit",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Official Brighterly ui-kit",
5
5
  "type": "module",
6
6
  "homepage": "https://gitlab.com/brighterly/libs/ui-kit#readme",
File without changes