@vlalg-nimbus/nb-buttons 5.0.0 → 5.0.2

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,10 +1,10 @@
1
- import { useCssVars as fe, toRefs as ce, computed as t, openBlock as J, createElementBlock as Q, mergeProps as ie, withKeys as Y, withModifiers as z, unref as B, createElementVNode as P, normalizeClass as ue, normalizeStyle as M, renderSlot as oe, createTextVNode as re, createCommentVNode as te, onMounted as He, ref as me, watch as gt, toDisplayString as Se, nextTick as Ce, onUnmounted as xt, Fragment as Vt, renderList as Ct } from "vue";
2
- const ve = (e, b) => {
1
+ import { useCssVars as xe, toRefs as Be, computed as t, openBlock as fe, createElementBlock as ve, mergeProps as Se, withKeys as O, withModifiers as A, unref as o, createElementVNode as de, normalizeClass as pe, normalizeStyle as se, renderSlot as he, createTextVNode as Ce, createCommentVNode as ye, onMounted as Ee, ref as Te, watch as yt, toDisplayString as We, nextTick as Oe, onUnmounted as mt, Fragment as ht, renderList as Ct } from "vue";
2
+ const ke = (e, l) => {
3
3
  const X = e.__vccOpts || e;
4
- for (const [D, j] of b)
5
- X[D] = j;
4
+ for (const [ae, q] of l)
5
+ X[ae] = q;
6
6
  return X;
7
- }, St = ["tabIndex"], ht = ["id"], Bt = { class: "component-content__text" }, wt = /* @__PURE__ */ Object.assign({
7
+ }, St = ["tabIndex"], xt = ["id"], Bt = { class: "component-content__text" }, kt = /* @__PURE__ */ Object.assign({
8
8
  name: "NbButtonVavaGame",
9
9
  inheritAttrs: !1
10
10
  }, {
@@ -18,8 +18,8 @@ const ve = (e, b) => {
18
18
  type: String,
19
19
  default: "ib",
20
20
  validator: (e = "") => {
21
- const b = e.toLowerCase();
22
- return ["b", "ib"].includes(b);
21
+ const l = e.toLowerCase();
22
+ return ["b", "ib"].includes(l);
23
23
  }
24
24
  },
25
25
  tabIndex: {
@@ -42,25 +42,63 @@ const ve = (e, b) => {
42
42
  type: Object,
43
43
  default: () => ({})
44
44
  },
45
- textColor: {
45
+ theme: {
46
46
  type: String,
47
- default: "#ece8e1"
47
+ default: "light",
48
+ validator: (e) => {
49
+ const l = e ? e.toLowerCase() : "";
50
+ return ["light", "dark"].includes(l);
51
+ }
48
52
  },
49
- buttonColor: {
53
+ // Cores do tema light
54
+ lightTextColor: {
50
55
  type: String,
51
- default: "blue"
56
+ default: "#333333"
52
57
  },
53
- textColorHover: {
58
+ lightTextColorHover: {
54
59
  type: String,
55
- default: "gray"
60
+ default: "#000000"
56
61
  },
57
- buttonColorHover: {
62
+ lightButtonColor: {
58
63
  type: String,
59
- default: "cyan"
64
+ default: "#f5f5f5"
60
65
  },
61
- borderColor: {
66
+ lightButtonColorHover: {
67
+ type: String,
68
+ default: "#e0e0e0"
69
+ },
70
+ lightBorderColor: {
71
+ type: String,
72
+ default: "#333333"
73
+ },
74
+ lightDisabledBgColor: {
75
+ type: String,
76
+ default: "#dfdfd9"
77
+ },
78
+ // Cores do tema dark
79
+ darkTextColor: {
80
+ type: String,
81
+ default: "#e0e0e0"
82
+ },
83
+ darkTextColorHover: {
62
84
  type: String,
63
- default: "yellow"
85
+ default: "#ffffff"
86
+ },
87
+ darkButtonColor: {
88
+ type: String,
89
+ default: "#2d2d2d"
90
+ },
91
+ darkButtonColorHover: {
92
+ type: String,
93
+ default: "#3d3d3d"
94
+ },
95
+ darkBorderColor: {
96
+ type: String,
97
+ default: "#e0e0e0"
98
+ },
99
+ darkDisabledBgColor: {
100
+ type: String,
101
+ default: "rgba(40, 42, 54, 1)"
64
102
  },
65
103
  borderOpacity: {
66
104
  type: Number,
@@ -112,122 +150,131 @@ const ve = (e, b) => {
112
150
  }
113
151
  },
114
152
  emits: ["clicked"],
115
- setup(e, { emit: b }) {
116
- fe((n) => ({
117
- "046f6978": i.value,
118
- "583bd83a": o.value,
119
- dae1d5bc: d.value,
120
- "5d33bf9b": r.value,
121
- "5b215a43": a.value
153
+ setup(e, { emit: l }) {
154
+ xe(($) => ({
155
+ "1dd0577e": B.value,
156
+ b105ba7c: h.value,
157
+ "5ac1c0cc": r.value,
158
+ "3d66efba": n.value,
159
+ "71da78fd": E.value,
160
+ "4bcbc8dd": i.value,
161
+ "219b125f": u.value,
162
+ "1f7aebc4": H.value,
163
+ c5c01c84: oe.value,
164
+ "0e55887f": M.value,
165
+ "78d4c939": ie.value,
166
+ "4f2feb83": be.value,
167
+ "1ddc4b8e": c.value,
168
+ b914842c: v.value
122
169
  }));
123
- const X = b, D = e, {
124
- display: j,
125
- ariaLabel: E,
126
- ariaAttrs: C,
127
- textColor: H,
128
- textColorHover: A,
129
- buttonColor: O,
130
- buttonColorHover: N,
131
- uppercase: x,
132
- paddingXContent: V,
133
- paddingYContent: w,
134
- paddingXBorder: I,
135
- paddingYBorder: S,
136
- borderColor: T,
137
- borderOpacity: f,
138
- disabled: y,
139
- fontFamily: L,
140
- fontSize: W,
141
- fontWeight: m
142
- } = ce(D), h = t(() => {
143
- const n = y.value ? "component-disabled" : "", c = j.value !== "b" ? "inline-block" : "block", k = H.value ? H.value : "#ece8e1", F = O.value ? O.value : "green", G = A.value ? A.value : "#ece8e1", le = N.value ? N.value : "cyan", ae = T.value ? T.value : "#ffffff", K = !f.value || !(f.value >= 0 && f.value <= 1) ? "0.5" : f.value, ne = !I.value || I.value < 0 ? 0.3 : I.value, de = !S.value || S.value < 0 ? 0.3 : S.value, U = !V.value || V.value < 0 ? 0.5 : V.value, be = !w.value || w.value < 0 ? 0.5 : w.value, Z = x.value ? "uppercase" : "none", pe = L.value ? L.value : "'Lato', sans-serif", se = W.value ? W.value : "1.6em", ge = !m.value || m.value < 0 ? 100 : m.value;
170
+ const X = l, ae = e, {
171
+ display: q,
172
+ ariaLabel: Q,
173
+ ariaAttrs: y,
174
+ theme: Y,
175
+ lightTextColor: U,
176
+ lightTextColorHover: te,
177
+ lightButtonColor: j,
178
+ lightButtonColorHover: Z,
179
+ lightBorderColor: F,
180
+ lightDisabledBgColor: G,
181
+ darkTextColor: ee,
182
+ darkTextColorHover: W,
183
+ darkButtonColor: L,
184
+ darkButtonColorHover: V,
185
+ darkBorderColor: I,
186
+ darkDisabledBgColor: b,
187
+ uppercase: T,
188
+ paddingXContent: f,
189
+ paddingYContent: m,
190
+ paddingXBorder: d,
191
+ paddingYBorder: _,
192
+ borderOpacity: S,
193
+ disabled: D,
194
+ fontFamily: P,
195
+ fontSize: J,
196
+ fontWeight: w
197
+ } = Be(ae), x = t(() => {
198
+ const $ = D.value ? "component-disabled" : "", k = q.value !== "b" ? "inline-block" : "block", ue = !S.value || !(S.value >= 0 && S.value <= 1) ? "0.5" : S.value, ne = !d.value || d.value < 0 ? 0.3 : d.value, me = !_.value || _.value < 0 ? 0.3 : _.value, ge = !f.value || f.value < 0 ? 0.5 : f.value, Ie = !m.value || m.value < 0 ? 0.5 : m.value, _e = T.value ? "uppercase" : "none", De = P.value ? P.value : "'Lato', sans-serif", Ne = J.value ? J.value : "1.6em", Re = !w.value || w.value < 0 ? 100 : w.value;
144
199
  return {
145
- disabled: n,
146
- display: c,
147
- textColor: k,
148
- buttonColor: F,
149
- textColorHover: G,
150
- buttonColorHover: le,
151
- borderColor: ae,
152
- borderOpacity: K,
200
+ disabled: $,
201
+ display: k,
202
+ borderOpacity: ue,
153
203
  paddingXBorder: ne,
154
- paddingYBorder: de,
155
- paddingXContent: U,
156
- paddingYContent: be,
157
- uppercase: Z,
158
- font: pe,
159
- fontSize: se,
160
- fontWeight: ge
204
+ paddingYBorder: me,
205
+ paddingXContent: ge,
206
+ paddingYContent: Ie,
207
+ uppercase: _e,
208
+ font: De,
209
+ fontSize: Ne,
210
+ fontWeight: Re
161
211
  };
162
- }), R = t(() => h.value.disabled), s = t(() => ({
163
- display: h.value.display
164
- })), $ = t(() => {
165
- const n = h.value;
212
+ }), R = t(() => x.value.disabled), K = t(() => ({
213
+ display: x.value.display
214
+ })), p = t(() => {
215
+ const $ = x.value;
166
216
  return {
167
- padding: `${n.paddingYBorder}rem ${n.paddingXBorder}rem`,
168
- fontSize: n.fontSize,
169
- fontWeight: n.fontWeight
217
+ padding: `${$.paddingYBorder}rem ${$.paddingXBorder}rem`,
218
+ fontSize: $.fontSize,
219
+ fontWeight: $.fontWeight
170
220
  };
171
- }), g = t(() => {
172
- const n = h.value;
221
+ }), s = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), N = t(() => {
222
+ const $ = x.value;
173
223
  return {
174
- textTransform: n.uppercase,
175
- padding: `${n.paddingYContent}rem ${n.paddingXContent}rem`,
176
- backgroundColor: n.buttonColor
224
+ textTransform: $.uppercase,
225
+ padding: `${$.paddingYContent}rem ${$.paddingXContent}rem`
177
226
  };
178
- }), p = t(() => ({
179
- backgroundColor: h.value.buttonColorHover
180
- })), i = t(() => h.value.font), r = t(() => h.value.borderColor), a = t(() => h.value.borderOpacity), o = t(() => h.value.textColor), d = t(() => h.value.textColorHover), v = t(() => {
181
- const n = {};
182
- C.value && Object.keys(C.value).forEach((F) => n[`aria-${F}`] = C.value[F]);
183
- const c = {
184
- "aria-label": E.value,
185
- "aria-disabled": y.value,
186
- ...n
227
+ }), z = t(() => ({})), B = t(() => x.value.font), E = t(() => x.value.borderOpacity), h = t(() => U.value), r = t(() => te.value), i = t(() => j.value), u = t(() => Z.value), n = t(() => F.value), c = t(() => G.value), H = t(() => ee.value), oe = t(() => W.value), ie = t(() => L.value), be = t(() => V.value), M = t(() => I.value), v = t(() => b.value), g = t(() => {
228
+ const $ = {};
229
+ y.value && Object.keys(y.value).forEach((ne) => $[`aria-${ne}`] = y.value[ne]);
230
+ const k = {
231
+ "aria-label": Q.value,
232
+ "aria-disabled": D.value,
233
+ ...$
187
234
  };
188
235
  return Object.fromEntries(
189
- Object.entries(c).filter(([k, F]) => F != null)
236
+ Object.entries(k).filter(([ue, ne]) => ne != null)
190
237
  );
191
- }), u = () => {
238
+ }), le = () => {
192
239
  X("clicked");
193
240
  };
194
- return (n, c) => e.nbId ? (J(), Q("div", ie({
241
+ return ($, k) => e.nbId ? (fe(), ve("div", Se({
195
242
  key: 0,
196
243
  class: ["nb-wrapper", R.value],
197
- style: [s.value],
244
+ style: [K.value],
198
245
  tabIndex: e.tabIndex,
199
246
  role: "button"
200
- }, v.value, {
201
- onClick: u,
247
+ }, g.value, {
248
+ onClick: le,
202
249
  onKeydown: [
203
- c[0] || (c[0] = Y(z((k) => !B(y) && e.hasTabIndexEnter && u(), ["prevent"]), ["enter"])),
204
- c[1] || (c[1] = Y(z((k) => !B(y) && e.hasTabIndexSpace && u(), ["prevent"]), ["space"]))
250
+ k[0] || (k[0] = O(A((ue) => !o(D) && e.hasTabIndexEnter && le(), ["prevent"]), ["enter"])),
251
+ k[1] || (k[1] = O(A((ue) => !o(D) && e.hasTabIndexSpace && le(), ["prevent"]), ["space"]))
205
252
  ]
206
253
  }), [
207
- P("div", {
254
+ de("div", {
208
255
  id: e.nbId,
209
- class: ue(["nb-reset", "component"]),
210
- style: M([$.value])
256
+ class: pe(["nb-reset", "component", s.value]),
257
+ style: se([p.value])
211
258
  }, [
212
- P("div", {
259
+ de("div", {
213
260
  class: "component-content",
214
- style: M([g.value])
261
+ style: se([N.value])
215
262
  }, [
216
- P("span", Bt, [
217
- oe(n.$slots, "content", {}, () => [
218
- c[2] || (c[2] = re("Default Text"))
263
+ de("span", Bt, [
264
+ he($.$slots, "content", {}, () => [
265
+ k[2] || (k[2] = Ce("Default Text"))
219
266
  ], !0)
220
267
  ]),
221
- P("span", {
268
+ de("span", {
222
269
  class: "component-content__mask",
223
- style: M([p.value])
270
+ style: se([z.value])
224
271
  }, null, 4)
225
272
  ], 4)
226
- ], 12, ht)
227
- ], 16, St)) : te("", !0);
273
+ ], 14, xt)
274
+ ], 16, St)) : ye("", !0);
228
275
  }
229
- }), It = /* @__PURE__ */ ve(wt, [["__scopeId", "data-v-622d0a33"]]);
230
- const $t = ["tabIndex"], Nt = ["id"], Ht = /* @__PURE__ */ Object.assign({
276
+ }), Vt = /* @__PURE__ */ ke(kt, [["__scopeId", "data-v-eb3b20b1"]]);
277
+ const Tt = ["tabIndex"], wt = ["id"], $t = /* @__PURE__ */ Object.assign({
231
278
  name: "NbButtonShowHover",
232
279
  inheritAttrs: !1
233
280
  }, {
@@ -257,22 +304,56 @@ const $t = ["tabIndex"], Nt = ["id"], Ht = /* @__PURE__ */ Object.assign({
257
304
  type: Object,
258
305
  default: () => ({})
259
306
  },
260
- textColor: {
307
+ theme: {
308
+ type: String,
309
+ default: "light",
310
+ validator: (e) => {
311
+ const l = e ? e.toLowerCase() : "";
312
+ return ["light", "dark"].includes(l);
313
+ }
314
+ },
315
+ // Cores do tema light
316
+ lightTextColor: {
317
+ type: String,
318
+ default: "#333333"
319
+ },
320
+ lightTextColorHover: {
261
321
  type: String,
262
- default: "#145deb"
322
+ default: "#000000"
323
+ },
324
+ lightButtonColorHover: {
325
+ type: String,
326
+ default: "245, 245, 245"
327
+ },
328
+ lightButtonColorOpacityHover: {
329
+ type: Number,
330
+ default: 0.1
331
+ },
332
+ lightDisabledBgColor: {
333
+ type: String,
334
+ default: "#dfdfd9"
263
335
  },
264
- textColorHover: {
336
+ // Cores do tema dark
337
+ darkTextColor: {
265
338
  type: String,
266
- default: "#4bd6b5"
339
+ default: "#e0e0e0"
267
340
  },
268
- buttonColorHover: {
341
+ darkTextColorHover: {
269
342
  type: String,
270
- default: "10, 38, 184"
343
+ default: "#ffffff"
344
+ },
345
+ darkButtonColorHover: {
346
+ type: String,
347
+ default: "45, 45, 45"
271
348
  },
272
- buttonColorOpacityHover: {
349
+ darkButtonColorOpacityHover: {
273
350
  type: Number,
274
351
  default: 0.1
275
352
  },
353
+ darkDisabledBgColor: {
354
+ type: String,
355
+ default: "rgba(40, 42, 54, 1)"
356
+ },
276
357
  paddingX: {
277
358
  type: Number,
278
359
  default: 1,
@@ -313,102 +394,110 @@ const $t = ["tabIndex"], Nt = ["id"], Ht = /* @__PURE__ */ Object.assign({
313
394
  }
314
395
  },
315
396
  emits: ["clicked"],
316
- setup(e, { emit: b }) {
317
- fe((g) => ({
318
- "57de9d29": R.value,
319
- b22184b4: m.value,
320
- "05b72592": h.value,
321
- 66063600: e.textColorHover,
322
- "3387159c": B(C)
397
+ setup(e, { emit: l }) {
398
+ xe((r) => ({
399
+ "254fad7c": B.value,
400
+ "7a31df04": R.value,
401
+ "153f3e7f": x.value,
402
+ "640d0dba": p.value,
403
+ "1e30675e": K.value,
404
+ "7545f4e2": s.value,
405
+ "75c79c3f": z.value,
406
+ "1bb6bd0c": N.value
323
407
  }));
324
- const X = b, D = e, {
325
- ariaLabel: j,
326
- ariaAttrs: E,
327
- textColor: C,
328
- buttonColorHover: H,
329
- buttonColorOpacityHover: A,
330
- paddingX: O,
331
- paddingY: N,
332
- disabled: x,
333
- borderRadius: V,
334
- verticalAlign: w,
335
- fontFamily: I,
336
- fontSize: S,
337
- fontWeight: T
338
- } = ce(D), f = t(() => {
339
- const g = x.value ? "component-disabled" : "", p = w.value ? w.value : "middle", i = C ? C.value : "ffffff", r = !O.value || O.value < 0 ? 1 : O.value, a = !N.value || N.value < 0 ? 0.2 : N.value, o = !V.value || V.value < 0 ? 0 : V.value, d = H.value ? H.value : "10, 38, 184", v = !A.value || A.value < 0 ? 0.1 : A.value, u = I.value ? I.value : "'Lato', sans-serif", n = S.value ? S.value : "1.6rem", c = !T.value || T.value < 0 ? 100 : T.value;
408
+ const X = l, ae = e, {
409
+ ariaLabel: q,
410
+ ariaAttrs: Q,
411
+ theme: y,
412
+ lightTextColor: Y,
413
+ lightTextColorHover: U,
414
+ lightButtonColorHover: te,
415
+ lightButtonColorOpacityHover: j,
416
+ lightDisabledBgColor: Z,
417
+ darkTextColor: F,
418
+ darkTextColorHover: G,
419
+ darkButtonColorHover: ee,
420
+ darkButtonColorOpacityHover: W,
421
+ darkDisabledBgColor: L,
422
+ paddingX: V,
423
+ paddingY: I,
424
+ disabled: b,
425
+ borderRadius: T,
426
+ verticalAlign: f,
427
+ fontFamily: m,
428
+ fontSize: d,
429
+ fontWeight: _
430
+ } = Be(ae), S = t(() => {
431
+ const r = b.value ? "component-disabled" : "", i = f.value ? f.value : "middle", u = !V.value || V.value < 0 ? 1 : V.value, n = !I.value || I.value < 0 ? 0.2 : I.value, c = !T.value || T.value < 0 ? 0 : T.value, H = m.value ? m.value : "'Lato', sans-serif", oe = d.value ? d.value : "1.6rem", ie = !_.value || _.value < 0 ? 100 : _.value;
340
432
  return {
341
- disabled: g,
342
- borderRadius: o,
343
- textColor: i,
344
- paddingX: r,
345
- paddingY: a,
346
- buttonColorHover: d,
347
- buttonColorOpacityHover: v,
348
- font: u,
349
- fontSize: n,
350
- fontWeight: c,
351
- verticalAlign: p
433
+ disabled: r,
434
+ borderRadius: c,
435
+ paddingX: u,
436
+ paddingY: n,
437
+ font: H,
438
+ fontSize: oe,
439
+ fontWeight: ie,
440
+ verticalAlign: i
352
441
  };
353
- }), y = t(() => f.value.disabled), L = t(() => ({
354
- verticalAlign: f.value.verticalAlign
355
- })), W = t(() => {
356
- const g = f.value;
442
+ }), D = t(() => S.value.disabled), P = t(() => ({
443
+ verticalAlign: S.value.verticalAlign
444
+ })), J = t(() => y.value === "dark" ? "component__theme--dark" : "component__theme--light"), w = t(() => {
445
+ const r = S.value;
357
446
  return {
358
- color: g.textColor,
359
- padding: `${g.paddingY}rem 0`,
360
- borderRadius: `${g.borderRadius}rem`,
361
- fontSize: g.fontSize,
362
- fontWeight: g.fontWeight
447
+ padding: `${r.paddingY}rem 0`,
448
+ borderRadius: `${r.borderRadius}rem`,
449
+ fontSize: r.fontSize,
450
+ fontWeight: r.fontWeight
363
451
  };
364
- }), m = t(() => {
365
- const g = f.value;
366
- return `${g.paddingY}rem ${g.paddingX}rem`;
367
- }), h = t(() => {
368
- const g = f.value;
369
- return `rgba(${g.buttonColorHover}, ${g.buttonColorOpacityHover})`;
370
- }), R = t(() => f.value.font), s = t(() => {
371
- const g = {};
372
- E.value && Object.keys(E.value).forEach((r) => g[`aria-${r}`] = E.value[r]);
373
- const p = {
374
- "aria-label": j.value,
375
- "aria-disabled": x.value,
376
- ...g
452
+ }), x = t(() => {
453
+ const r = S.value;
454
+ return `${r.paddingY}rem ${r.paddingX}rem`;
455
+ }), R = t(() => Y.value), K = t(() => U.value), p = t(() => `rgba(${te.value}, ${j.value})`);
456
+ t(() => Z.value);
457
+ const s = t(() => F.value), N = t(() => G.value), z = t(() => `rgba(${ee.value}, ${W.value})`);
458
+ t(() => L.value);
459
+ const B = t(() => S.value.font), E = t(() => {
460
+ const r = {};
461
+ Q.value && Object.keys(Q.value).forEach((n) => r[`aria-${n}`] = Q.value[n]);
462
+ const i = {
463
+ "aria-label": q.value,
464
+ "aria-disabled": b.value,
465
+ ...r
377
466
  };
378
467
  return Object.fromEntries(
379
- Object.entries(p).filter(([i, r]) => r != null)
468
+ Object.entries(i).filter(([u, n]) => n != null)
380
469
  );
381
- }), $ = () => {
470
+ }), h = () => {
382
471
  X("clicked");
383
472
  };
384
- return (g, p) => e.nbId ? (J(), Q("div", ie({
473
+ return (r, i) => e.nbId ? (fe(), ve("div", Se({
385
474
  key: 0,
386
- class: ["nb-wrapper", y.value],
387
- style: [L.value],
475
+ class: ["nb-wrapper", D.value],
476
+ style: [P.value],
388
477
  tabIndex: e.tabIndex,
389
478
  role: "button"
390
- }, s.value, {
391
- onClick: $,
479
+ }, E.value, {
480
+ onClick: h,
392
481
  onKeydown: [
393
- p[1] || (p[1] = Y(z((i) => !B(x) && e.hasTabIndexEnter && $(), ["prevent"]), ["enter"])),
394
- p[2] || (p[2] = Y(z((i) => !B(x) && e.hasTabIndexSpace && $(), ["prevent"]), ["space"]))
482
+ i[1] || (i[1] = O(A((u) => !o(b) && e.hasTabIndexEnter && h(), ["prevent"]), ["enter"])),
483
+ i[2] || (i[2] = O(A((u) => !o(b) && e.hasTabIndexSpace && h(), ["prevent"]), ["space"]))
395
484
  ]
396
485
  }), [
397
- P("a", {
486
+ de("a", {
398
487
  id: e.nbId,
399
- class: "nb-reset component tertiary",
400
- style: M([W.value]),
401
- onClick: p[0] || (p[0] = z(() => {
488
+ class: pe(["nb-reset component tertiary", [J.value]]),
489
+ style: se([w.value]),
490
+ onClick: i[0] || (i[0] = A(() => {
402
491
  }, ["prevent"]))
403
492
  }, [
404
- oe(g.$slots, "content", {}, () => [
405
- p[3] || (p[3] = re("Default Text"))
493
+ he(r.$slots, "content", {}, () => [
494
+ i[3] || (i[3] = Ce("Default Text"))
406
495
  ], !0)
407
- ], 12, Nt)
408
- ], 16, $t)) : te("", !0);
496
+ ], 14, wt)
497
+ ], 16, Tt)) : ye("", !0);
409
498
  }
410
- }), At = /* @__PURE__ */ ve(Ht, [["__scopeId", "data-v-df41f6d9"]]);
411
- const Tt = ["id"], kt = ["tabIndex"], Ot = ["tabIndex"], Wt = /* @__PURE__ */ Object.assign({
499
+ }), It = /* @__PURE__ */ ke($t, [["__scopeId", "data-v-2816d105"]]);
500
+ const _t = ["id"], Dt = ["tabIndex"], Nt = ["tabIndex"], Ht = /* @__PURE__ */ Object.assign({
412
501
  name: "NbButtonPrevNext",
413
502
  inheritAttrs: !1
414
503
  }, {
@@ -450,21 +539,55 @@ const Tt = ["id"], kt = ["tabIndex"], Ot = ["tabIndex"], Wt = /* @__PURE__ */ Ob
450
539
  type: Object,
451
540
  default: () => ({})
452
541
  },
453
- colorPrimary: {
542
+ theme: {
454
543
  type: String,
455
- default: "tomato"
544
+ default: "light",
545
+ validator: (e) => {
546
+ const l = e ? e.toLowerCase() : "";
547
+ return ["light", "dark"].includes(l);
548
+ }
456
549
  },
457
- colorSecondary: {
550
+ // Cores do tema light
551
+ lightColorPrimary: {
458
552
  type: String,
459
- default: "blue"
553
+ default: "#f5f5f5"
460
554
  },
461
- textColor: {
555
+ lightColorSecondary: {
556
+ type: String,
557
+ default: "#e0e0e0"
558
+ },
559
+ lightTextColor: {
560
+ type: String,
561
+ default: "#333333"
562
+ },
563
+ lightTextColorHover: {
564
+ type: String,
565
+ default: "#000000"
566
+ },
567
+ lightDisabledBgColor: {
568
+ type: String,
569
+ default: "#dfdfd9"
570
+ },
571
+ // Cores do tema dark
572
+ darkColorPrimary: {
573
+ type: String,
574
+ default: "#2d2d2d"
575
+ },
576
+ darkColorSecondary: {
577
+ type: String,
578
+ default: "#3d3d3d"
579
+ },
580
+ darkTextColor: {
581
+ type: String,
582
+ default: "#e0e0e0"
583
+ },
584
+ darkTextColorHover: {
462
585
  type: String,
463
- default: "#fff"
586
+ default: "#ffffff"
464
587
  },
465
- textColorHover: {
588
+ darkDisabledBgColor: {
466
589
  type: String,
467
- default: "yellow"
590
+ default: "rgba(40, 42, 54, 1)"
468
591
  },
469
592
  paddingX: {
470
593
  type: Number,
@@ -527,138 +650,157 @@ const Tt = ["id"], kt = ["tabIndex"], Ot = ["tabIndex"], Wt = /* @__PURE__ */ Ob
527
650
  }
528
651
  },
529
652
  emits: ["clicked"],
530
- setup(e, { emit: b }) {
531
- fe((a) => ({
532
- "10e83d30": g.value,
533
- "71edb100": e.colorPrimary,
534
- "69193c16": e.textColor,
535
- "2b4f661c": e.colorSecondary,
536
- de812f72: e.textColorHover
653
+ setup(e, { emit: l }) {
654
+ xe((v) => ({
655
+ cf4bc708: oe.value,
656
+ "5116e291": E.value,
657
+ "266d0204": r.value,
658
+ b809437a: h.value,
659
+ "4a627998": i.value,
660
+ "7b7542f9": u.value,
661
+ "27ce8ac8": c.value,
662
+ "9f7976aa": n.value,
663
+ "56aa6000": H.value
537
664
  }));
538
- const X = b, D = e, {
539
- ariaLabelPrev: j,
540
- ariaAttrsPrev: E,
541
- ariaLabelNext: C,
542
- ariaAttrsNext: H,
543
- paddingX: A,
544
- paddingY: O,
545
- marginBetween: N,
546
- borderRadius: x,
547
- disabled: V,
548
- disabledPreview: w,
549
- disabledNext: I,
550
- fontFamily: S,
551
- fontSize: T,
552
- fontWeight: f
553
- } = ce(D), y = t(() => {
554
- const a = V.value ? "component-disabled" : "", o = w.value ? "component-disabled" : "", d = I.value ? "component-disabled" : "", v = !N.value || N.value < 0 ? 0 : N.value, u = !x.value || x.value < 0 ? 0 : x.value, n = !A.value || A.value < 0 ? 1 : A.value, c = !O.value || O.value < 0 ? 10 : O.value, k = T.value ? T.value : "1.6em", F = !f.value || f.value < 0 ? 100 : f.value;
665
+ const X = l, ae = e, {
666
+ ariaLabelPrev: q,
667
+ ariaAttrsPrev: Q,
668
+ ariaLabelNext: y,
669
+ ariaAttrsNext: Y,
670
+ theme: U,
671
+ lightColorPrimary: te,
672
+ lightColorSecondary: j,
673
+ lightTextColor: Z,
674
+ lightTextColorHover: F,
675
+ lightDisabledBgColor: G,
676
+ darkColorPrimary: ee,
677
+ darkColorSecondary: W,
678
+ darkTextColor: L,
679
+ darkTextColorHover: V,
680
+ darkDisabledBgColor: I,
681
+ paddingX: b,
682
+ paddingY: T,
683
+ marginBetween: f,
684
+ borderRadius: m,
685
+ disabled: d,
686
+ disabledPreview: _,
687
+ disabledNext: S,
688
+ fontFamily: D,
689
+ fontSize: P,
690
+ fontWeight: J
691
+ } = Be(ae), w = t(() => {
692
+ const v = d.value ? "component-disabled" : "", g = _.value ? "component-disabled" : "", le = S.value ? "component-disabled" : "", $ = !f.value || f.value < 0 ? 0 : f.value, k = !m.value || m.value < 0 ? 0 : m.value, ue = !b.value || b.value < 0 ? 1 : b.value, ne = !T.value || T.value < 0 ? 10 : T.value, me = P.value ? P.value : "1.6em", ge = !J.value || J.value < 0 ? 100 : J.value;
555
693
  return {
556
- disabled: a,
557
- disabledPreview: o,
558
- disabledNext: d,
559
- marginBetween: `${v}px`,
560
- borderRadius: `${u}px`,
561
- paddingX: `${n}px`,
562
- paddingY: `${c}px`,
563
- fontSize: k,
564
- fontWeight: F
694
+ disabled: v,
695
+ disabledPreview: g,
696
+ disabledNext: le,
697
+ marginBetween: `${$}px`,
698
+ borderRadius: `${k}px`,
699
+ paddingX: `${ue}px`,
700
+ paddingY: `${ne}px`,
701
+ fontSize: me,
702
+ fontWeight: ge
565
703
  };
566
- }), L = t(() => y.value.disabled), W = t(() => y.value.disabledPreview), m = t(() => y.value.disabledNext), h = t(() => ({
567
- display: y.value.display
568
- })), R = t(() => {
569
- const a = y.value;
704
+ }), x = t(() => w.value.disabled), R = t(() => w.value.disabledPreview), K = t(() => w.value.disabledNext), p = t(() => ({
705
+ display: w.value.display
706
+ })), s = t(() => {
707
+ const v = w.value;
570
708
  return {
571
- fontSize: a.fontSize,
572
- fontWeight: a.fontWeight
709
+ fontSize: v.fontSize,
710
+ fontWeight: v.fontWeight
573
711
  };
574
- }), s = t(() => {
575
- const a = y.value;
712
+ }), N = t(() => {
713
+ const v = w.value;
576
714
  return {
577
- borderRadius: `${a.borderRadius} 0px 0px ${a.borderRadius}`,
578
- marginRight: a.marginBetween,
579
- padding: `${a.paddingX} ${a.paddingY}`
715
+ borderRadius: `${v.borderRadius} 0px 0px ${v.borderRadius}`,
716
+ marginRight: v.marginBetween,
717
+ padding: `${v.paddingX} ${v.paddingY}`
580
718
  };
581
- }), $ = t(() => {
582
- const a = y.value;
719
+ }), z = t(() => {
720
+ const v = w.value;
583
721
  return {
584
- borderRadius: `0px ${a.borderRadius} ${a.borderRadius} 0px`,
585
- marginLeft: a.marginBetween,
586
- padding: `${a.paddingX} ${a.paddingY}`
722
+ borderRadius: `0px ${v.borderRadius} ${v.borderRadius} 0px`,
723
+ marginLeft: v.marginBetween,
724
+ padding: `${v.paddingX} ${v.paddingY}`
587
725
  };
588
- }), g = t(() => `'${S.value ? S.value : "'Lato', sans-serif"}'`), p = t(() => {
589
- const a = {};
590
- E.value && Object.keys(E.value).forEach((v) => a[`aria-${v}`] = E.value[v]);
591
- const o = {
592
- "aria-label": j.value,
593
- "aria-disabled": W.value,
594
- ...a
726
+ }), B = t(() => U.value === "dark" ? "component__theme--dark" : "component__theme--light"), E = t(() => te.value), h = t(() => j.value), r = t(() => Z.value), i = t(() => F.value);
727
+ t(() => G.value);
728
+ const u = t(() => ee.value), n = t(() => W.value), c = t(() => L.value), H = t(() => V.value);
729
+ t(() => I.value);
730
+ const oe = t(() => `'${D.value ? D.value : "'Lato', sans-serif"}'`), ie = t(() => {
731
+ const v = {};
732
+ Q.value && Object.keys(Q.value).forEach(($) => v[`aria-${$}`] = Q.value[$]);
733
+ const g = {
734
+ "aria-label": q.value,
735
+ "aria-disabled": R.value,
736
+ ...v
595
737
  };
596
738
  return Object.fromEntries(
597
- Object.entries(o).filter(([d, v]) => v != null)
739
+ Object.entries(g).filter(([le, $]) => $ != null)
598
740
  );
599
- }), i = t(() => {
600
- const a = {};
601
- H.value && Object.keys(H.value).forEach((v) => a[`aria-${v}`] = H.value[v]);
602
- const o = {
603
- "aria-label": C.value,
604
- "aria-disabled": m.value,
605
- ...a
741
+ }), be = t(() => {
742
+ const v = {};
743
+ Y.value && Object.keys(Y.value).forEach(($) => v[`aria-${$}`] = Y.value[$]);
744
+ const g = {
745
+ "aria-label": y.value,
746
+ "aria-disabled": K.value,
747
+ ...v
606
748
  };
607
749
  return Object.fromEntries(
608
- Object.entries(o).filter(([d, v]) => v != null)
750
+ Object.entries(g).filter(([le, $]) => $ != null)
609
751
  );
610
- }), r = (a) => {
611
- X("clicked", a);
752
+ }), M = (v) => {
753
+ X("clicked", v);
612
754
  };
613
- return (a, o) => e.nbId ? (J(), Q("div", {
755
+ return (v, g) => e.nbId ? (fe(), ve("div", {
614
756
  key: 0,
615
- class: ue(["nb-wrapper", L.value]),
616
- style: M([h.value])
757
+ class: pe(["nb-wrapper", x.value]),
758
+ style: se([p.value])
617
759
  }, [
618
- P("div", {
760
+ de("div", {
619
761
  id: e.nbId,
620
- class: ue(["nb-reset", "component"]),
621
- style: M(R.value)
762
+ class: pe(["nb-reset", "component", B.value]),
763
+ style: se(s.value)
622
764
  }, [
623
- e.showPreview ? (J(), Q("div", ie({
765
+ e.showPreview ? (fe(), ve("div", Se({
624
766
  key: 0,
625
- class: ["buttonNextPreview buttonPreview", W.value],
626
- style: s.value,
767
+ class: ["buttonNextPreview buttonPreview", R.value],
768
+ style: N.value,
627
769
  tabIndex: e.tabIndexPrev,
628
770
  role: "button"
629
- }, p.value, {
630
- onClick: o[0] || (o[0] = (d) => r("preview")),
771
+ }, ie.value, {
772
+ onClick: g[0] || (g[0] = (le) => M("preview")),
631
773
  onKeydown: [
632
- o[1] || (o[1] = Y(z((d) => !B(V) && e.hasTabIndexEnter && r("preview"), ["prevent"]), ["enter"])),
633
- o[2] || (o[2] = Y(z((d) => !B(V) && e.hasTabIndexSpace && r("preview"), ["prevent"]), ["space"]))
774
+ g[1] || (g[1] = O(A((le) => !o(d) && e.hasTabIndexEnter && M("preview"), ["prevent"]), ["enter"])),
775
+ g[2] || (g[2] = O(A((le) => !o(d) && e.hasTabIndexSpace && M("preview"), ["prevent"]), ["space"]))
634
776
  ]
635
777
  }), [
636
- oe(a.$slots, "prev", {}, () => [
637
- o[6] || (o[6] = re("← Preview"))
778
+ he(v.$slots, "prev", {}, () => [
779
+ g[6] || (g[6] = Ce("← Preview"))
638
780
  ], !0)
639
- ], 16, kt)) : te("", !0),
640
- e.showNext ? (J(), Q("div", ie({
781
+ ], 16, Dt)) : ye("", !0),
782
+ e.showNext ? (fe(), ve("div", Se({
641
783
  key: 1,
642
- class: ["buttonNextPreview buttonNext", m.value],
643
- style: $.value,
784
+ class: ["buttonNextPreview buttonNext", K.value],
785
+ style: z.value,
644
786
  tabIndex: e.tabIndexNext,
645
787
  role: "button"
646
- }, i.value, {
647
- onClick: o[3] || (o[3] = (d) => r("next")),
788
+ }, be.value, {
789
+ onClick: g[3] || (g[3] = (le) => M("next")),
648
790
  onKeydown: [
649
- o[4] || (o[4] = Y(z((d) => !B(V) && e.hasTabIndexEnter && r("next"), ["prevent"]), ["enter"])),
650
- o[5] || (o[5] = Y(z((d) => !B(V) && e.hasTabIndexSpace && r("next"), ["prevent"]), ["space"]))
791
+ g[4] || (g[4] = O(A((le) => !o(d) && e.hasTabIndexEnter && M("next"), ["prevent"]), ["enter"])),
792
+ g[5] || (g[5] = O(A((le) => !o(d) && e.hasTabIndexSpace && M("next"), ["prevent"]), ["space"]))
651
793
  ]
652
794
  }), [
653
- oe(a.$slots, "next", {}, () => [
654
- o[7] || (o[7] = re("Next →"))
795
+ he(v.$slots, "next", {}, () => [
796
+ g[7] || (g[7] = Ce("Next →"))
655
797
  ], !0)
656
- ], 16, Ot)) : te("", !0)
657
- ], 12, Tt)
658
- ], 6)) : te("", !0);
798
+ ], 16, Nt)) : ye("", !0)
799
+ ], 14, _t)
800
+ ], 6)) : ye("", !0);
659
801
  }
660
- }), _t = /* @__PURE__ */ ve(Wt, [["__scopeId", "data-v-26e28541"]]);
661
- const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
802
+ }), At = /* @__PURE__ */ ke(Ht, [["__scopeId", "data-v-a0020765"]]);
803
+ const Lt = ["tabIndex"], Ot = ["id"], Wt = /* @__PURE__ */ Object.assign({
662
804
  name: "NbButtonMechanical",
663
805
  inheritAttrs: !1
664
806
  }, {
@@ -672,8 +814,8 @@ const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
672
814
  type: String,
673
815
  default: "b",
674
816
  validator: (e = "b") => {
675
- const b = e ? e.toLowerCase() : "";
676
- return ["b", "ib"].includes(b);
817
+ const l = e ? e.toLowerCase() : "";
818
+ return ["b", "ib"].includes(l);
677
819
  }
678
820
  },
679
821
  tabIndex: {
@@ -696,17 +838,47 @@ const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
696
838
  type: Object,
697
839
  default: () => ({})
698
840
  },
699
- textColor: {
841
+ theme: {
700
842
  type: String,
701
- default: "#ffffff"
843
+ default: "light",
844
+ validator: (e) => {
845
+ const l = e ? e.toLowerCase() : "";
846
+ return ["light", "dark"].includes(l);
847
+ }
702
848
  },
703
- containerColor: {
849
+ // Cores do tema light
850
+ lightTextColor: {
704
851
  type: String,
705
- default: "#ffffff"
852
+ default: "#333333"
706
853
  },
707
- buttonColor: {
854
+ lightButtonColor: {
708
855
  type: String,
709
- default: "#bbbbbb"
856
+ default: "#f5f5f5"
857
+ },
858
+ lightContainerColor: {
859
+ type: String,
860
+ default: "#e0e0e0"
861
+ },
862
+ lightDisabledBgColor: {
863
+ type: String,
864
+ default: "#dfdfd9"
865
+ },
866
+ // Cores do tema dark
867
+ darkTextColor: {
868
+ type: String,
869
+ default: "#e0e0e0"
870
+ },
871
+ darkButtonColor: {
872
+ type: String,
873
+ default: "#2d2d2d"
874
+ },
875
+ darkContainerColor: {
876
+ type: String,
877
+ default: "#3d3d3d"
878
+ },
879
+ darkDisabledBgColor: {
880
+ type: String,
881
+ default: "rgba(40, 42, 54, 1)"
710
882
  },
711
883
  paddingX: {
712
884
  type: Number,
@@ -747,97 +919,104 @@ const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
747
919
  }
748
920
  },
749
921
  emits: ["clicked"],
750
- setup(e, { emit: b }) {
751
- fe((i) => ({
752
- "054e8c9a": R.value,
753
- "381e6ca6": B(H),
754
- "1ae3f0ab": $.value,
755
- "4678e610": s.value
922
+ setup(e, { emit: l }) {
923
+ xe((h) => ({
924
+ "448924c5": x.value,
925
+ "524d021d": p.value,
926
+ d03582ca: R.value,
927
+ "7ac75b14": K.value,
928
+ e834105a: z.value,
929
+ d629e1b6: s.value,
930
+ d51faf00: N.value
756
931
  }));
757
- const X = b, D = e, {
758
- display: j,
759
- ariaLabel: E,
760
- ariaAttrs: C,
761
- buttonColor: H,
762
- textColor: A,
763
- containerColor: O,
764
- paddingX: N,
765
- paddingY: x,
766
- borderRadius: V,
767
- disabled: w,
768
- animationSlow: I,
769
- fontFamily: S,
770
- fontSize: T,
771
- fontWeight: f
772
- } = ce(D), y = t(() => {
773
- const i = w.value ? "component-disabled" : "", r = j.value !== "b" ? "inline-block" : "block", a = O.value ? O.value : "#ffffff", o = H.value ? H.value : "#bbbbbb", d = A.value ? A.value : "#ffffff", v = !N.value || N.value < 0 ? 1 : N.value, u = !x.value || x.value < 0 ? 0.2 : x.value, n = !V.value || V.value < 0 ? 0 : V.value, c = I.value ? "" : "component-transition__no-slow", k = S.value ? S.value : "'Lato', sans-serif", F = T.value ? T.value : "1.6em", G = !f.value || f.value < 0 ? 100 : f.value;
932
+ const X = l, ae = e, {
933
+ display: q,
934
+ ariaLabel: Q,
935
+ ariaAttrs: y,
936
+ theme: Y,
937
+ lightTextColor: U,
938
+ lightButtonColor: te,
939
+ lightContainerColor: j,
940
+ lightDisabledBgColor: Z,
941
+ darkTextColor: F,
942
+ darkButtonColor: G,
943
+ darkContainerColor: ee,
944
+ darkDisabledBgColor: W,
945
+ paddingX: L,
946
+ paddingY: V,
947
+ borderRadius: I,
948
+ disabled: b,
949
+ animationSlow: T,
950
+ fontFamily: f,
951
+ fontSize: m,
952
+ fontWeight: d
953
+ } = Be(ae), _ = t(() => {
954
+ const h = b.value ? "component-disabled" : "", r = q.value !== "b" ? "inline-block" : "block", i = !L.value || L.value < 0 ? 1 : L.value, u = !V.value || V.value < 0 ? 0.2 : V.value, n = !I.value || I.value < 0 ? 0 : I.value, c = T.value ? "" : "component-transition__no-slow", H = f.value ? f.value : "'Lato', sans-serif", oe = m.value ? m.value : "1.6em", ie = !d.value || d.value < 0 ? 100 : d.value;
774
955
  return {
775
- disabled: i,
956
+ disabled: h,
776
957
  display: r,
777
- containerColor: a,
778
- buttonColor: o,
779
- textColor: d,
780
- paddingX: v,
958
+ paddingX: i,
781
959
  paddingY: u,
782
960
  borderRadius: n,
783
961
  animationSlow: c,
784
- font: k,
785
- fontSize: F,
786
- fontWeight: G
962
+ font: H,
963
+ fontSize: oe,
964
+ fontWeight: ie
787
965
  };
788
- }), L = t(() => y.value.disabled), W = t(() => ({
789
- display: y.value.display
790
- })), m = t(() => {
791
- const i = y.value;
966
+ }), S = t(() => _.value.disabled), D = t(() => ({
967
+ display: _.value.display
968
+ })), P = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), J = t(() => {
969
+ const h = _.value;
792
970
  return {
793
- border: `2px solid ${i.containerColor}`,
794
- color: i.textColor,
795
- backgroundColor: i.buttonColor,
796
- padding: `${i.paddingY}rem ${i.paddingX}rem`,
797
- borderRadius: `${i.borderRadius}rem`,
798
- fontSize: i.fontSize,
799
- fontWeight: i.fontWeight
971
+ padding: `${h.paddingY}rem ${h.paddingX}rem`,
972
+ borderRadius: `${h.borderRadius}rem`,
973
+ fontSize: h.fontSize,
974
+ fontWeight: h.fontWeight
800
975
  };
801
- }), h = t(() => y.value.animationSlow), R = t(() => y.value.font), s = t(() => y.value.textColor), $ = t(() => y.value.buttonColor), g = t(() => {
802
- const i = {};
803
- C.value && Object.keys(C.value).forEach((o) => i[`aria-${o}`] = C.value[o]);
976
+ }), w = t(() => _.value.animationSlow), x = t(() => _.value.font), R = t(() => U.value), K = t(() => te.value), p = t(() => j.value);
977
+ t(() => Z.value);
978
+ const s = t(() => F.value), N = t(() => G.value), z = t(() => ee.value);
979
+ t(() => W.value);
980
+ const B = t(() => {
981
+ const h = {};
982
+ y.value && Object.keys(y.value).forEach((u) => h[`aria-${u}`] = y.value[u]);
804
983
  const r = {
805
- "aria-label": E.value,
806
- "aria-disabled": w.value,
807
- ...i
984
+ "aria-label": Q.value,
985
+ "aria-disabled": b.value,
986
+ ...h
808
987
  };
809
988
  return Object.fromEntries(
810
- Object.entries(r).filter(([a, o]) => o != null)
989
+ Object.entries(r).filter(([i, u]) => u != null)
811
990
  );
812
- }), p = () => {
991
+ }), E = () => {
813
992
  X("clicked");
814
993
  };
815
- return (i, r) => e.nbId ? (J(), Q("div", ie({
994
+ return (h, r) => e.nbId ? (fe(), ve("div", Se({
816
995
  key: 0,
817
- class: ["nb-wrapper", L.value],
818
- style: [W.value],
996
+ class: ["nb-wrapper", S.value],
997
+ style: [D.value],
819
998
  tabIndex: e.tabIndex,
820
999
  role: "button"
821
- }, g.value, {
822
- onClick: p,
1000
+ }, B.value, {
1001
+ onClick: E,
823
1002
  onKeydown: [
824
- r[0] || (r[0] = Y(z((a) => !B(w) && e.hasTabIndexEnter && p(), ["prevent"]), ["enter"])),
825
- r[1] || (r[1] = Y(z((a) => !B(w) && e.hasTabIndexSpace && p(), ["prevent"]), ["space"]))
1003
+ r[0] || (r[0] = O(A((i) => !o(b) && e.hasTabIndexEnter && E(), ["prevent"]), ["enter"])),
1004
+ r[1] || (r[1] = O(A((i) => !o(b) && e.hasTabIndexSpace && E(), ["prevent"]), ["space"]))
826
1005
  ]
827
1006
  }), [
828
- P("div", {
1007
+ de("div", {
829
1008
  id: e.nbId,
830
- class: ue(["nb-reset", "component", "component-transition", h.value]),
831
- style: M([m.value])
1009
+ class: pe(["nb-reset", "component", "component-transition", w.value, P.value]),
1010
+ style: se([J.value])
832
1011
  }, [
833
- oe(i.$slots, "content", {}, () => [
834
- r[2] || (r[2] = re("Default Text"))
1012
+ he(h.$slots, "content", {}, () => [
1013
+ r[2] || (r[2] = Ce("Default Text"))
835
1014
  ], !0)
836
- ], 14, zt)
837
- ], 16, Rt)) : te("", !0);
1015
+ ], 14, Ot)
1016
+ ], 16, Lt)) : ye("", !0);
838
1017
  }
839
- }), Yt = /* @__PURE__ */ ve(Lt, [["__scopeId", "data-v-10b90c6b"]]);
840
- const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
1018
+ }), Rt = /* @__PURE__ */ ke(Wt, [["__scopeId", "data-v-5b33e712"]]);
1019
+ const zt = ["tabIndex"], Yt = ["id"], Xt = /* @__PURE__ */ Object.assign({
841
1020
  name: "NbButtonMechanical2",
842
1021
  inheritAttrs: !1
843
1022
  }, {
@@ -851,8 +1030,8 @@ const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
851
1030
  type: String,
852
1031
  default: "b",
853
1032
  validator: (e = "b") => {
854
- const b = e ? e.toLowerCase() : "";
855
- return ["b", "ib"].includes(b);
1033
+ const l = e ? e.toLowerCase() : "";
1034
+ return ["b", "ib"].includes(l);
856
1035
  }
857
1036
  },
858
1037
  tabIndex: {
@@ -875,17 +1054,47 @@ const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
875
1054
  type: Object,
876
1055
  default: () => ({})
877
1056
  },
878
- textColor: {
1057
+ theme: {
879
1058
  type: String,
880
- default: "#ffffff"
1059
+ default: "light",
1060
+ validator: (e) => {
1061
+ const l = e ? e.toLowerCase() : "";
1062
+ return ["light", "dark"].includes(l);
1063
+ }
881
1064
  },
882
- buttonColor: {
1065
+ // Cores do tema light
1066
+ lightTextColor: {
883
1067
  type: String,
884
- default: "#bbbbbb"
1068
+ default: "#333333"
1069
+ },
1070
+ lightButtonColor: {
1071
+ type: String,
1072
+ default: "#f5f5f5"
1073
+ },
1074
+ lightShadowColor: {
1075
+ type: String,
1076
+ default: "#e0e0e0"
1077
+ },
1078
+ lightDisabledBgColor: {
1079
+ type: String,
1080
+ default: "#dfdfd9"
1081
+ },
1082
+ // Cores do tema dark
1083
+ darkTextColor: {
1084
+ type: String,
1085
+ default: "#e0e0e0"
1086
+ },
1087
+ darkButtonColor: {
1088
+ type: String,
1089
+ default: "#2d2d2d"
1090
+ },
1091
+ darkShadowColor: {
1092
+ type: String,
1093
+ default: "#3d3d3d"
885
1094
  },
886
- shadowColor: {
1095
+ darkDisabledBgColor: {
887
1096
  type: String,
888
- default: "#002f3c"
1097
+ default: "rgba(40, 42, 54, 1)"
889
1098
  },
890
1099
  paddingX: {
891
1100
  type: Number,
@@ -922,93 +1131,102 @@ const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
922
1131
  }
923
1132
  },
924
1133
  emits: ["clicked"],
925
- setup(e, { emit: b }) {
926
- fe((s) => ({
927
- "636cd609": m.value
1134
+ setup(e, { emit: l }) {
1135
+ xe((B) => ({
1136
+ "5792e749": s.value,
1137
+ "69d4b8d2": J.value,
1138
+ "29712f1c": w.value,
1139
+ "121dc978": x.value,
1140
+ "8047caae": R.value,
1141
+ "6f6739f8": K.value,
1142
+ "5813d454": p.value
928
1143
  }));
929
- const X = b, D = e, {
930
- display: j,
931
- ariaLabel: E,
932
- ariaAttrs: C,
933
- buttonColor: H,
934
- textColor: A,
935
- paddingX: O,
936
- paddingY: N,
937
- borderRadius: x,
938
- shadowColor: V,
939
- disabled: w,
940
- fontFamily: I,
941
- fontSize: S,
942
- fontWeight: T
943
- } = ce(D), f = t(() => {
944
- const s = w.value ? "component-disabled" : "", $ = j.value !== "b" ? "inline-block" : "block", g = H.value ? H.value : "#bbbbbb", p = V.value ? V.value : "#002f3c", i = A.value ? A.value : "#ffffff", r = !O.value || O.value < 0 ? 1 : O.value, a = !N.value || N.value < 0 ? 1 : N.value, o = !x.value || x.value < 0 ? 0 : x.value, d = I.value ? I.value : "'Lato', sans-serif", v = S.value ? S.value : "1.6em", u = !T.value || T.value < 0 ? 100 : T.value;
1144
+ const X = l, ae = e, {
1145
+ display: q,
1146
+ ariaLabel: Q,
1147
+ ariaAttrs: y,
1148
+ theme: Y,
1149
+ lightTextColor: U,
1150
+ lightButtonColor: te,
1151
+ lightShadowColor: j,
1152
+ lightDisabledBgColor: Z,
1153
+ darkTextColor: F,
1154
+ darkButtonColor: G,
1155
+ darkShadowColor: ee,
1156
+ darkDisabledBgColor: W,
1157
+ paddingX: L,
1158
+ paddingY: V,
1159
+ borderRadius: I,
1160
+ disabled: b,
1161
+ fontFamily: T,
1162
+ fontSize: f,
1163
+ fontWeight: m
1164
+ } = Be(ae), d = t(() => {
1165
+ const B = b.value ? "component-disabled" : "", E = q.value !== "b" ? "inline-block" : "block", h = !L.value || L.value < 0 ? 1 : L.value, r = !V.value || V.value < 0 ? 1 : V.value, i = !I.value || I.value < 0 ? 0 : I.value, u = T.value ? T.value : "'Lato', sans-serif", n = f.value ? f.value : "1.6em", c = !m.value || m.value < 0 ? 100 : m.value;
945
1166
  return {
946
- disabled: s,
947
- display: $,
948
- buttonColor: g,
949
- shadowColor: p,
950
- textColor: i,
951
- paddingX: r,
952
- paddingY: a,
953
- borderRadius: o,
954
- font: d,
955
- fontSize: v,
956
- fontWeight: u
1167
+ disabled: B,
1168
+ display: E,
1169
+ paddingX: h,
1170
+ paddingY: r,
1171
+ borderRadius: i,
1172
+ font: u,
1173
+ fontSize: n,
1174
+ fontWeight: c
957
1175
  };
958
- }), y = t(() => f.value.disabled), L = t(() => ({
959
- display: f.value.display
960
- })), W = t(() => {
961
- const s = f.value;
1176
+ }), _ = t(() => d.value.disabled), S = t(() => ({
1177
+ display: d.value.display
1178
+ })), D = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), P = t(() => {
1179
+ const B = d.value;
962
1180
  return {
963
- color: s.textColor,
964
- backgroundColor: s.buttonColor,
965
- boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${s.shadowColor}`,
966
- padding: `${s.paddingY}rem ${s.paddingX}rem`,
967
- padding: `${s.paddingY}rem ${s.paddingX}rem`,
968
- borderRadius: `${s.borderRadius}rem`,
969
- fontSize: s.fontSize,
970
- fontWeight: s.fontWeight
1181
+ padding: `${B.paddingY}rem ${B.paddingX}rem`,
1182
+ borderRadius: `${B.borderRadius}rem`,
1183
+ fontSize: B.fontSize,
1184
+ fontWeight: B.fontWeight
971
1185
  };
972
- }), m = t(() => f.value.font), h = t(() => {
973
- const s = {};
974
- C.value && Object.keys(C.value).forEach((p) => s[`aria-${p}`] = C.value[p]);
975
- const $ = {
976
- "aria-label": E.value,
977
- "aria-disabled": w.value,
978
- ...s
1186
+ }), J = t(() => U.value), w = t(() => te.value), x = t(() => j.value);
1187
+ t(() => Z.value);
1188
+ const R = t(() => F.value), K = t(() => G.value), p = t(() => ee.value);
1189
+ t(() => W.value);
1190
+ const s = t(() => d.value.font), N = t(() => {
1191
+ const B = {};
1192
+ y.value && Object.keys(y.value).forEach((r) => B[`aria-${r}`] = y.value[r]);
1193
+ const E = {
1194
+ "aria-label": Q.value,
1195
+ "aria-disabled": b.value,
1196
+ ...B
979
1197
  };
980
1198
  return Object.fromEntries(
981
- Object.entries($).filter(([g, p]) => p != null)
1199
+ Object.entries(E).filter(([h, r]) => r != null)
982
1200
  );
983
- }), R = () => {
1201
+ }), z = () => {
984
1202
  X("clicked");
985
1203
  };
986
- return (s, $) => e.nbId ? (J(), Q("div", ie({
1204
+ return (B, E) => e.nbId ? (fe(), ve("div", Se({
987
1205
  key: 0,
988
- class: ["nb-wrapper", y.value],
989
- style: [L.value],
1206
+ class: ["nb-wrapper", _.value],
1207
+ style: [S.value],
990
1208
  tabIndex: e.tabIndex,
991
1209
  role: "button"
992
- }, h.value, {
993
- onClick: R,
1210
+ }, N.value, {
1211
+ onClick: z,
994
1212
  onKeydown: [
995
- $[0] || ($[0] = Y(z((g) => !B(w) && e.hasTabIndexEnter && R(), ["prevent"]), ["enter"])),
996
- $[1] || ($[1] = Y(z((g) => !B(w) && e.hasTabIndexSpace && R(), ["prevent"]), ["space"]))
1213
+ E[0] || (E[0] = O(A((h) => !o(b) && e.hasTabIndexEnter && z(), ["prevent"]), ["enter"])),
1214
+ E[1] || (E[1] = O(A((h) => !o(b) && e.hasTabIndexSpace && z(), ["prevent"]), ["space"]))
997
1215
  ]
998
1216
  }), [
999
- P("div", {
1217
+ de("div", {
1000
1218
  id: e.nbId,
1001
- class: ue(["nb-reset", "component", "component-transition"]),
1002
- style: M([W.value])
1219
+ class: pe(["nb-reset", "component", "component-transition", D.value]),
1220
+ style: se([P.value])
1003
1221
  }, [
1004
- oe(s.$slots, "content", {}, () => [
1005
- $[2] || ($[2] = re("Default Text"))
1222
+ he(B.$slots, "content", {}, () => [
1223
+ E[2] || (E[2] = Ce("Default Text"))
1006
1224
  ], !0)
1007
- ], 12, jt)
1008
- ], 16, Xt)) : te("", !0);
1225
+ ], 14, Yt)
1226
+ ], 16, zt)) : ye("", !0);
1009
1227
  }
1010
- }), Ft = /* @__PURE__ */ ve(Et, [["__scopeId", "data-v-03d1f538"]]);
1011
- const Dt = ["tabIndex"], Kt = ["id"], Pt = /* @__PURE__ */ Object.assign({
1228
+ }), jt = /* @__PURE__ */ ke(Xt, [["__scopeId", "data-v-2c06324b"]]);
1229
+ const Et = ["tabIndex"], Ft = ["id"], Pt = /* @__PURE__ */ Object.assign({
1012
1230
  name: "NbButtonHamburger",
1013
1231
  inheritAttrs: !1
1014
1232
  }, {
@@ -1038,26 +1256,60 @@ const Dt = ["tabIndex"], Kt = ["id"], Pt = /* @__PURE__ */ Object.assign({
1038
1256
  type: Object,
1039
1257
  default: () => ({})
1040
1258
  },
1259
+ theme: {
1260
+ type: String,
1261
+ default: "light",
1262
+ validator: (e) => {
1263
+ const l = e ? e.toLowerCase() : "";
1264
+ return ["light", "dark"].includes(l);
1265
+ }
1266
+ },
1041
1267
  status: {
1042
1268
  type: Boolean,
1043
1269
  default: !1,
1044
1270
  validator: (e) => [!1, !0].includes(e)
1045
1271
  },
1046
- color: {
1272
+ // Cores do tema light
1273
+ lightColor: {
1274
+ type: String,
1275
+ default: "#333333"
1276
+ },
1277
+ lightColorHover: {
1278
+ type: String,
1279
+ default: "#000000"
1280
+ },
1281
+ lightContainerColor: {
1282
+ type: String,
1283
+ default: "#f5f5f5"
1284
+ },
1285
+ lightContainerColorHover: {
1286
+ type: String,
1287
+ default: "#e0e0e0"
1288
+ },
1289
+ lightDisabledBgColor: {
1290
+ type: String,
1291
+ default: "#dfdfd9"
1292
+ },
1293
+ // Cores do tema dark
1294
+ darkColor: {
1295
+ type: String,
1296
+ default: "#e0e0e0"
1297
+ },
1298
+ darkColorHover: {
1047
1299
  type: String,
1048
1300
  default: "#ffffff"
1049
1301
  },
1050
- colorHover: {
1302
+ darkContainerColor: {
1051
1303
  type: String,
1052
- default: "yellow"
1304
+ default: "#2d2d2d"
1053
1305
  },
1054
- containerColor: {
1306
+ darkContainerColorHover: {
1055
1307
  type: String,
1056
- default: "#333333"
1308
+ default: "#3d3d3d"
1057
1309
  },
1058
- containerColorHover: {
1310
+ darkDisabledBgColor: {
1059
1311
  type: String,
1060
- default: "red"
1312
+ default: "rgba(40, 42, 54, 1)"
1061
1313
  },
1062
1314
  paddingX: {
1063
1315
  type: Number,
@@ -1076,97 +1328,105 @@ const Dt = ["tabIndex"], Kt = ["id"], Pt = /* @__PURE__ */ Object.assign({
1076
1328
  }
1077
1329
  },
1078
1330
  emits: ["clicked"],
1079
- setup(e, { emit: b }) {
1080
- fe((s) => ({
1081
- c02073b6: W.value,
1082
- "400bc80e": m.value
1331
+ setup(e, { emit: l }) {
1332
+ xe((r) => ({
1333
+ "00101ecc": x.value,
1334
+ bbf5ed78: N.value,
1335
+ "1b9a19d0": R.value,
1336
+ "51f8cffa": w.value,
1337
+ a6260b50: z.value,
1338
+ "47407e7b": s.value,
1339
+ "75874cb9": J.value,
1340
+ "6b023b41": p.value,
1341
+ "4a4cd9d8": K.value,
1342
+ 32158340: B.value
1083
1343
  }));
1084
- const X = b, D = e;
1085
- He(() => {
1086
- j.value = H.value;
1344
+ const X = l, ae = e;
1345
+ Ee(() => {
1346
+ q.value = U.value;
1087
1347
  });
1088
- const j = me(!1), {
1089
- ariaLabel: E,
1090
- ariaAttrs: C,
1091
- status: H,
1092
- color: A,
1093
- containerColor: O,
1094
- containerColorHover: N,
1095
- colorHover: x,
1096
- paddingX: V,
1097
- paddingY: w,
1098
- disabled: I
1099
- } = ce(D), S = t(() => {
1100
- const s = I.value ? "component-disabled" : "", $ = j.value ? "change" : "", g = O.value ? O.value : "#333333", p = A.value ? A.value : "#ffffff", i = !V.value || V.value < 0 ? 3 : V.value, r = !w.value || w.value < 0 ? 3 : w.value, a = N.value ? N.value : "yellow", o = x.value ? x.value : "red";
1348
+ const q = Te(!1), {
1349
+ ariaLabel: Q,
1350
+ ariaAttrs: y,
1351
+ theme: Y,
1352
+ status: U,
1353
+ lightColor: te,
1354
+ lightColorHover: j,
1355
+ lightContainerColor: Z,
1356
+ lightContainerColorHover: F,
1357
+ lightDisabledBgColor: G,
1358
+ darkColor: ee,
1359
+ darkColorHover: W,
1360
+ darkContainerColor: L,
1361
+ darkContainerColorHover: V,
1362
+ darkDisabledBgColor: I,
1363
+ paddingX: b,
1364
+ paddingY: T,
1365
+ disabled: f
1366
+ } = Be(ae), m = t(() => {
1367
+ const r = f.value ? "component-disabled" : "", i = q.value ? "change" : "", u = !b.value || b.value < 0 ? 3 : b.value, n = !T.value || T.value < 0 ? 3 : T.value;
1101
1368
  return {
1102
- disabled: s,
1103
- buttonStatus: $,
1104
- containerColor: g,
1105
- paddingX: i,
1106
- paddingY: r,
1107
- color: p,
1108
- containerColorHover: a,
1109
- colorHover: o
1369
+ disabled: r,
1370
+ buttonStatus: i,
1371
+ paddingX: u,
1372
+ paddingY: n
1110
1373
  };
1111
- }), T = t(() => S.value.disabled), f = t(() => {
1112
- const s = S.value;
1374
+ }), d = t(() => m.value.disabled), _ = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), S = t(() => {
1375
+ const r = m.value;
1113
1376
  return {
1114
- padding: `${s.paddingY}px ${s.paddingX}px`,
1115
- backgroundColor: s.containerColor
1377
+ padding: `${r.paddingY}px ${r.paddingX}px`
1116
1378
  };
1117
- }), y = t(() => ({
1118
- backgroundColor: S.value.color
1119
- })), L = t(() => S.value.buttonStatus), W = t(() => S.value.containerColorHover), m = t(() => S.value.colorHover), h = t(() => {
1120
- const s = {};
1121
- C.value && Object.keys(C.value).forEach((p) => s[`aria-${p}`] = C.value[p]);
1122
- const $ = {
1123
- "aria-label": E.value,
1124
- "aria-disabled": I.value,
1125
- ...s
1379
+ }), D = t(() => ({})), P = t(() => m.value.buttonStatus), J = t(() => te.value), w = t(() => j.value), x = t(() => Z.value), R = t(() => F.value), K = t(() => G.value), p = t(() => ee.value), s = t(() => W.value), N = t(() => L.value), z = t(() => V.value), B = t(() => I.value), E = t(() => {
1380
+ const r = {};
1381
+ y.value && Object.keys(y.value).forEach((n) => r[`aria-${n}`] = y.value[n]);
1382
+ const i = {
1383
+ "aria-label": Q.value,
1384
+ "aria-disabled": f.value,
1385
+ ...r
1126
1386
  };
1127
1387
  return Object.fromEntries(
1128
- Object.entries($).filter(([g, p]) => p != null)
1388
+ Object.entries(i).filter(([u, n]) => n != null)
1129
1389
  );
1130
- }), R = () => {
1131
- const s = !j.value;
1132
- j.value = s, X("clicked", s);
1390
+ }), h = () => {
1391
+ const r = !q.value;
1392
+ q.value = r, X("clicked", r);
1133
1393
  };
1134
- return gt(H, () => {
1135
- j.value = H.value;
1136
- }), (s, $) => e.nbId ? (J(), Q("div", ie({
1394
+ return yt(U, () => {
1395
+ q.value = U.value;
1396
+ }), (r, i) => e.nbId ? (fe(), ve("div", Se({
1137
1397
  key: 0,
1138
- class: ["nb-wrapper", T.value],
1139
- style: [f.value],
1398
+ class: ["nb-wrapper", d.value],
1399
+ style: [S.value],
1140
1400
  tabIndex: e.tabIndex,
1141
1401
  role: "button"
1142
- }, h.value, {
1143
- onClick: R,
1402
+ }, E.value, {
1403
+ onClick: h,
1144
1404
  onKeydown: [
1145
- $[0] || ($[0] = Y(z((g) => !B(I) && e.hasTabIndexEnter && R(), ["prevent"]), ["enter"])),
1146
- $[1] || ($[1] = Y(z((g) => !B(I) && e.hasTabIndexSpace && R(), ["prevent"]), ["space"]))
1405
+ i[0] || (i[0] = O(A((u) => !o(f) && e.hasTabIndexEnter && h(), ["prevent"]), ["enter"])),
1406
+ i[1] || (i[1] = O(A((u) => !o(f) && e.hasTabIndexSpace && h(), ["prevent"]), ["space"]))
1147
1407
  ]
1148
1408
  }), [
1149
- P("div", {
1409
+ de("div", {
1150
1410
  id: e.nbId,
1151
- class: ue(["nb-reset", "component", L.value])
1411
+ class: pe(["nb-reset", "component", P.value, _.value])
1152
1412
  }, [
1153
- P("div", {
1413
+ de("div", {
1154
1414
  class: "component__line-one",
1155
- style: M(y.value)
1415
+ style: se(D.value)
1156
1416
  }, null, 4),
1157
- P("div", {
1417
+ de("div", {
1158
1418
  class: "component__line-two",
1159
- style: M(y.value)
1419
+ style: se(D.value)
1160
1420
  }, null, 4),
1161
- P("div", {
1421
+ de("div", {
1162
1422
  class: "component__line-three",
1163
- style: M(y.value)
1423
+ style: se(D.value)
1164
1424
  }, null, 4)
1165
- ], 10, Kt)
1166
- ], 16, Dt)) : te("", !0);
1425
+ ], 10, Ft)
1426
+ ], 16, Et)) : ye("", !0);
1167
1427
  }
1168
- }), qt = /* @__PURE__ */ ve(Pt, [["__scopeId", "data-v-4f7a923d"]]);
1169
- const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
1428
+ }), Kt = /* @__PURE__ */ ke(Pt, [["__scopeId", "data-v-ff42dd2c"]]);
1429
+ const Mt = ["tabIndex"], qt = ["id"], Ut = /* @__PURE__ */ Object.assign({
1170
1430
  name: "NbButtonColorOutside",
1171
1431
  inheritAttrs: !1
1172
1432
  }, {
@@ -1180,8 +1440,8 @@ const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
1180
1440
  type: String,
1181
1441
  default: "b",
1182
1442
  validator: (e = "b") => {
1183
- const b = e ? e.toLowerCase() : "";
1184
- return ["b", "ib"].includes(b);
1443
+ const l = e ? e.toLowerCase() : "";
1444
+ return ["b", "ib"].includes(l);
1185
1445
  }
1186
1446
  },
1187
1447
  tabIndex: {
@@ -1204,17 +1464,47 @@ const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
1204
1464
  type: Object,
1205
1465
  default: () => ({})
1206
1466
  },
1207
- textColor: {
1467
+ theme: {
1208
1468
  type: String,
1209
- default: "#ffffff"
1469
+ default: "light",
1470
+ validator: (e) => {
1471
+ const l = e ? e.toLowerCase() : "";
1472
+ return ["light", "dark"].includes(l);
1473
+ }
1210
1474
  },
1211
- buttonColor: {
1475
+ // Cores do tema light
1476
+ lightTextColor: {
1212
1477
  type: String,
1213
- default: "#bbbbbb"
1478
+ default: "#333333"
1214
1479
  },
1215
- borderColor: {
1480
+ lightButtonColor: {
1216
1481
  type: String,
1217
- default: "#ffe54c"
1482
+ default: "#f5f5f5"
1483
+ },
1484
+ lightBorderColor: {
1485
+ type: String,
1486
+ default: "#cccccc"
1487
+ },
1488
+ lightDisabledBgColor: {
1489
+ type: String,
1490
+ default: "#dfdfd9"
1491
+ },
1492
+ // Cores do tema dark
1493
+ darkTextColor: {
1494
+ type: String,
1495
+ default: "#e0e0e0"
1496
+ },
1497
+ darkButtonColor: {
1498
+ type: String,
1499
+ default: "#2d2d2d"
1500
+ },
1501
+ darkBorderColor: {
1502
+ type: String,
1503
+ default: "#555555"
1504
+ },
1505
+ darkDisabledBgColor: {
1506
+ type: String,
1507
+ default: "rgba(40, 42, 54, 1)"
1218
1508
  },
1219
1509
  paddingX: {
1220
1510
  type: Number,
@@ -1251,104 +1541,111 @@ const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
1251
1541
  }
1252
1542
  },
1253
1543
  emits: ["clicked"],
1254
- setup(e, { emit: b }) {
1255
- fe((i) => ({
1256
- "69e1c3e4": R.value,
1257
- ea9c17c2: $.value,
1258
- "7c559d9c": h.value,
1259
- "45cd92f8": s.value
1544
+ setup(e, { emit: l }) {
1545
+ xe((i) => ({
1546
+ "3be64e20": w.value,
1547
+ "210653ca": J.value,
1548
+ "336a5840": R.value,
1549
+ b91b2c7e: p.value,
1550
+ "0df1aa7b": K.value,
1551
+ "0ae98580": N.value,
1552
+ ad8409be: B.value,
1553
+ "13bd3bdb": z.value,
1554
+ "9e47a3a8": s.value,
1555
+ "4c7fe0e8": E.value
1260
1556
  }));
1261
- const X = b, D = e, {
1262
- display: j,
1263
- ariaLabel: E,
1264
- ariaAttrs: C,
1265
- buttonColor: H,
1266
- borderColor: A,
1267
- textColor: O,
1268
- paddingX: N,
1269
- paddingY: x,
1270
- borderRadius: V,
1271
- disabled: w,
1272
- fontFamily: I,
1273
- fontSize: S,
1274
- fontWeight: T
1275
- } = ce(D), f = t(() => {
1276
- const i = w.value ? "component-disabled" : "", r = j.value !== "b" ? "inline-block" : "block", a = H.value ? H.value : "#bbbbbb", o = A.value ? A.value : "#ffe54c", d = O.value ? O.value : "#ffffff", v = !N.value || N.value < 0 ? 1 : N.value, u = !x.value || x.value < 0 ? 0.2 : x.value, n = !V.value || V.value < 0 ? 0 : V.value, c = I.value ? I.value : "'Lato', sans-serif", k = S.value ? S.value : "1.6em", F = !T.value || T.value < 0 ? 200 : T.value;
1557
+ const X = l, ae = e, {
1558
+ display: q,
1559
+ ariaLabel: Q,
1560
+ ariaAttrs: y,
1561
+ theme: Y,
1562
+ lightTextColor: U,
1563
+ lightButtonColor: te,
1564
+ lightBorderColor: j,
1565
+ lightDisabledBgColor: Z,
1566
+ darkTextColor: F,
1567
+ darkButtonColor: G,
1568
+ darkBorderColor: ee,
1569
+ darkDisabledBgColor: W,
1570
+ paddingX: L,
1571
+ paddingY: V,
1572
+ borderRadius: I,
1573
+ disabled: b,
1574
+ fontFamily: T,
1575
+ fontSize: f,
1576
+ fontWeight: m
1577
+ } = Be(ae), d = t(() => {
1578
+ const i = b.value ? "component-disabled" : "", u = q.value !== "b" ? "inline-block" : "block", n = !L.value || L.value < 0 ? 1 : L.value, c = !V.value || V.value < 0 ? 0.2 : V.value, H = !I.value || I.value < 0 ? 0 : I.value, oe = T.value ? T.value : "'Lato', sans-serif", ie = f.value ? f.value : "1.6em", be = !m.value || m.value < 0 ? 200 : m.value;
1277
1579
  return {
1278
1580
  disabled: i,
1279
- display: r,
1280
- buttonColor: a,
1281
- borderColor: o,
1282
- textColor: d,
1283
- paddingX: v,
1284
- paddingY: u,
1285
- borderRadius: n,
1286
- font: c,
1287
- fontSize: k,
1288
- fontWeight: F
1581
+ display: u,
1582
+ paddingX: n,
1583
+ paddingY: c,
1584
+ borderRadius: H,
1585
+ font: oe,
1586
+ fontSize: ie,
1587
+ fontWeight: be
1289
1588
  };
1290
- }), y = t(() => f.value.disabled), L = t(() => ({
1291
- display: f.value.display
1292
- })), W = t(() => {
1293
- const i = f.value;
1589
+ }), _ = t(() => d.value.disabled), S = t(() => ({
1590
+ display: d.value.display
1591
+ })), D = t(() => {
1592
+ const i = d.value;
1294
1593
  return {
1295
- color: i.textColor,
1296
1594
  fontSize: i.fontSize,
1297
1595
  fontWeight: i.fontWeight
1298
1596
  };
1299
- }), m = t(() => {
1300
- const i = f.value;
1597
+ }), P = t(() => {
1598
+ const i = d.value;
1301
1599
  return {
1302
1600
  padding: `${i.paddingY}rem ${i.paddingX}rem`,
1303
- border: `1px solid ${i.borderColor}`,
1304
- borderRadius: h.value
1601
+ borderRadius: J.value
1305
1602
  };
1306
- }), h = t(() => `${f.value.borderRadius}rem`), R = t(() => f.value.font), s = t(() => f.value.textColor), $ = t(() => f.value.buttonColor), g = t(() => {
1603
+ }), J = t(() => `${d.value.borderRadius}rem`), w = t(() => d.value.font), x = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), R = t(() => U.value), K = t(() => te.value), p = t(() => j.value), s = t(() => Z.value), N = t(() => F.value), z = t(() => G.value), B = t(() => ee.value), E = t(() => W.value), h = t(() => {
1307
1604
  const i = {};
1308
- C.value && Object.keys(C.value).forEach((o) => i[`aria-${o}`] = C.value[o]);
1309
- const r = {
1310
- "aria-label": E.value,
1311
- "aria-disabled": w.value,
1605
+ y.value && Object.keys(y.value).forEach((c) => i[`aria-${c}`] = y.value[c]);
1606
+ const u = {
1607
+ "aria-label": Q.value,
1608
+ "aria-disabled": b.value,
1312
1609
  ...i
1313
1610
  };
1314
1611
  return Object.fromEntries(
1315
- Object.entries(r).filter(([a, o]) => o != null)
1612
+ Object.entries(u).filter(([n, c]) => c != null)
1316
1613
  );
1317
- }), p = () => {
1614
+ }), r = () => {
1318
1615
  X("clicked");
1319
1616
  };
1320
- return (i, r) => e.nbId ? (J(), Q("div", ie({
1617
+ return (i, u) => e.nbId ? (fe(), ve("div", Se({
1321
1618
  key: 0,
1322
- class: ["nb-wrapper", y.value],
1323
- style: [L.value],
1619
+ class: ["nb-wrapper", _.value],
1620
+ style: [S.value],
1324
1621
  tabIndex: e.tabIndex,
1325
1622
  role: "button"
1326
- }, g.value, {
1327
- onClick: p,
1623
+ }, h.value, {
1624
+ onClick: r,
1328
1625
  onKeydown: [
1329
- r[0] || (r[0] = Y(z((a) => !B(w) && e.hasTabIndexEnter && p(), ["prevent"]), ["enter"])),
1330
- r[1] || (r[1] = Y(z((a) => !B(w) && e.hasTabIndexSpace && p(), ["prevent"]), ["space"]))
1626
+ u[0] || (u[0] = O(A((n) => !o(b) && e.hasTabIndexEnter && r(), ["prevent"]), ["enter"])),
1627
+ u[1] || (u[1] = O(A((n) => !o(b) && e.hasTabIndexSpace && r(), ["prevent"]), ["space"]))
1331
1628
  ]
1332
1629
  }), [
1333
- P("div", {
1630
+ de("div", {
1334
1631
  id: e.nbId,
1335
- class: ue(["nb-reset", "component"]),
1336
- style: M([W.value])
1632
+ class: pe(["nb-reset", "component", x.value]),
1633
+ style: se([D.value])
1337
1634
  }, [
1338
- P("div", {
1635
+ de("div", {
1339
1636
  class: "component-content",
1340
- style: M([m.value])
1637
+ style: se([P.value])
1341
1638
  }, [
1342
- oe(i.$slots, "content", {}, () => [
1343
- r[2] || (r[2] = re("Default Text"))
1639
+ he(i.$slots, "content", {}, () => [
1640
+ u[2] || (u[2] = Ce("Default Text"))
1344
1641
  ], !0)
1345
1642
  ], 4),
1346
- r[3] || (r[3] = P("div", { class: "component-shadow" }, null, -1))
1347
- ], 12, Ut)
1348
- ], 16, Mt)) : te("", !0);
1643
+ u[3] || (u[3] = de("div", { class: "component-shadow" }, null, -1))
1644
+ ], 14, qt)
1645
+ ], 16, Mt)) : ye("", !0);
1349
1646
  }
1350
- }), Jt = /* @__PURE__ */ ve(Gt, [["__scopeId", "data-v-6354933f"]]);
1351
- const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
1647
+ }), Gt = /* @__PURE__ */ ke(Ut, [["__scopeId", "data-v-81403966"]]);
1648
+ const Jt = ["tabIndex"], Qt = ["id"], Zt = /* @__PURE__ */ Object.assign({
1352
1649
  name: "NbButtonColorHover",
1353
1650
  inheritAttrs: !1
1354
1651
  }, {
@@ -1362,8 +1659,8 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
1362
1659
  type: String,
1363
1660
  default: "b",
1364
1661
  validator: (e = "b") => {
1365
- const b = e.toLowerCase();
1366
- return ["b", "ib"].includes(b);
1662
+ const l = e.toLowerCase();
1663
+ return ["b", "ib"].includes(l);
1367
1664
  }
1368
1665
  },
1369
1666
  tabIndex: {
@@ -1386,10 +1683,6 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
1386
1683
  type: Object,
1387
1684
  default: () => ({})
1388
1685
  },
1389
- textColor: {
1390
- type: String,
1391
- default: "#ffffff"
1392
- },
1393
1686
  paddingX: {
1394
1687
  type: Number,
1395
1688
  default: 1,
@@ -1404,18 +1697,6 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
1404
1697
  type: Number,
1405
1698
  default: 0.375
1406
1699
  },
1407
- textColorHover: {
1408
- type: String,
1409
- default: "#cccccc"
1410
- },
1411
- buttonColor: {
1412
- type: String,
1413
- default: "#bbbbbb"
1414
- },
1415
- buttonColorHover: {
1416
- type: String,
1417
- default: "#959595"
1418
- },
1419
1700
  disabled: {
1420
1701
  type: Boolean,
1421
1702
  default: !1,
@@ -1434,103 +1715,166 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
1434
1715
  type: Number,
1435
1716
  default: 400,
1436
1717
  validator: (e) => e || 700
1718
+ },
1719
+ theme: {
1720
+ type: String,
1721
+ default: "light",
1722
+ validator: (e) => ["dark", "light"].indexOf(e) !== -1
1723
+ },
1724
+ // Cores do tema light
1725
+ lightButtonColor: {
1726
+ type: String,
1727
+ default: "#f5f5f5"
1728
+ },
1729
+ lightButtonColorHover: {
1730
+ type: String,
1731
+ default: "#e0e0e0"
1732
+ },
1733
+ lightTextColor: {
1734
+ type: String,
1735
+ default: "#333333"
1736
+ },
1737
+ lightTextColorHover: {
1738
+ type: String,
1739
+ default: "#000000"
1740
+ },
1741
+ lightDisabledBgColor: {
1742
+ type: String,
1743
+ default: "#dfdfd9"
1744
+ },
1745
+ // Cores do tema dark
1746
+ darkButtonColor: {
1747
+ type: String,
1748
+ default: "#2d2d2d"
1749
+ },
1750
+ darkButtonColorHover: {
1751
+ type: String,
1752
+ default: "#3d3d3d"
1753
+ },
1754
+ darkTextColor: {
1755
+ type: String,
1756
+ default: "#e0e0e0"
1757
+ },
1758
+ darkTextColorHover: {
1759
+ type: String,
1760
+ default: "#ffffff"
1761
+ },
1762
+ darkDisabledBgColor: {
1763
+ type: String,
1764
+ default: "rgba(40, 42, 54, 1)"
1437
1765
  }
1438
1766
  },
1439
1767
  emits: ["clicked"],
1440
- setup(e, { emit: b }) {
1441
- fe((r) => ({
1442
- "7dc2cdce": h.value,
1443
- "160236aa": $.value,
1444
- f2da7aa6: s.value,
1445
- b19b869c: g.value,
1446
- "141e9fcf": R.value
1768
+ setup(e, { emit: l }) {
1769
+ xe((p) => ({
1770
+ "5def56df": w.value,
1771
+ "0338fad0": o(m),
1772
+ b01c552a: o(T),
1773
+ "426e204c": o(d),
1774
+ "4ca6a2de": o(f),
1775
+ "19566f60": o(V),
1776
+ "005042eb": o(W),
1777
+ "51d27a68": o(I),
1778
+ "32929dde": o(L),
1779
+ b0253dc8: o(_),
1780
+ af4de2c8: o(b)
1447
1781
  }));
1448
- const X = b, D = e, {
1449
- display: j,
1450
- ariaLabel: E,
1451
- ariaAttrs: C,
1452
- textColor: H,
1453
- paddingX: A,
1454
- paddingY: O,
1455
- borderRadius: N,
1456
- disabled: x,
1457
- fontFamily: V,
1458
- fontSize: w,
1459
- fontWeight: I,
1460
- textColorHover: S,
1461
- buttonColor: T,
1462
- buttonColorHover: f
1463
- } = ce(D), y = t(() => {
1464
- const r = x.value ? "component-disabled" : "", a = j.value !== "b" ? "inline-block" : "block", o = H ? H.value : "ffffff", d = !A.value || A.value < 0 ? 1 : A.value, v = !O.value || O.value < 0 ? 0.2 : O.value, u = !N.value || N.value < 0 ? 0 : N.value, n = V.value ? V.value : "'Lato', sans-serif", c = w.value ? w.value : "1.6rem", k = !I.value || I.value < 0 ? 100 : I.value, F = S.value ? S.value : "#cccccc", G = T.value ? T.value : "#bbbbbb", le = f.value ? f.value : "#959595";
1782
+ const X = l, ae = e, {
1783
+ display: q,
1784
+ ariaLabel: Q,
1785
+ ariaAttrs: y,
1786
+ paddingX: Y,
1787
+ paddingY: U,
1788
+ borderRadius: te,
1789
+ disabled: j,
1790
+ fontFamily: Z,
1791
+ fontSize: F,
1792
+ fontWeight: G,
1793
+ theme: ee,
1794
+ lightButtonColor: W,
1795
+ lightButtonColorHover: L,
1796
+ lightTextColor: V,
1797
+ lightTextColorHover: I,
1798
+ lightDisabledBgColor: b,
1799
+ darkButtonColor: T,
1800
+ darkButtonColorHover: f,
1801
+ darkTextColor: m,
1802
+ darkTextColorHover: d,
1803
+ darkDisabledBgColor: _
1804
+ } = Be(ae), S = t(() => {
1805
+ const p = j.value ? "component-disabled" : "", s = q.value !== "b" ? "inline-block" : "block", N = !Y.value || Y.value < 0 ? 1 : Y.value, z = !U.value || U.value < 0 ? 0.2 : U.value, B = !te.value || te.value < 0 ? 0 : te.value, E = Z.value ? Z.value : "'Lato', sans-serif", h = F.value ? F.value : "1.6rem", r = !G.value || G.value < 0 ? 100 : G.value, i = ee.value ? ee.value : "light";
1465
1806
  return {
1466
- disabled: r,
1467
- display: a,
1468
- font: n,
1469
- fontSize: c,
1470
- fontWeight: k,
1471
- textColor: o,
1472
- paddingX: d,
1473
- paddingY: v,
1474
- borderRadius: u,
1475
- textColorHover: F,
1476
- buttonColor: G,
1477
- buttonColorHover: le
1807
+ disabled: p,
1808
+ display: s,
1809
+ font: E,
1810
+ fontSize: h,
1811
+ fontWeight: r,
1812
+ paddingX: N,
1813
+ paddingY: z,
1814
+ borderRadius: B,
1815
+ theme: i
1478
1816
  };
1479
- }), L = t(() => y.value.disabled), W = t(() => {
1480
- const r = y.value;
1817
+ }), D = t(() => S.value.disabled), P = t(() => {
1818
+ const p = S.value;
1481
1819
  return {
1482
- display: r.display,
1483
- borderRadius: `${r.borderRadius}rem`
1820
+ display: p.display,
1821
+ borderRadius: `${p.borderRadius}rem`
1484
1822
  };
1485
- }), m = t(() => {
1486
- const r = y.value;
1823
+ }), J = t(() => {
1824
+ const p = S.value;
1487
1825
  return {
1488
- color: r.textColor,
1489
- padding: `${r.paddingY}rem ${r.paddingX}rem`,
1490
- borderRadius: `${r.borderRadius}rem`,
1491
- fontSize: r.fontSize,
1492
- fontWeight: r.fontWeight
1826
+ padding: `${p.paddingY}rem ${p.paddingX}rem`,
1827
+ borderRadius: `${p.borderRadius}rem`,
1828
+ fontSize: p.fontSize,
1829
+ fontWeight: p.fontWeight
1493
1830
  };
1494
- }), h = t(() => y.value.font), R = t(() => y.value.textColor), s = t(() => y.value.textColorHover), $ = t(() => y.value.buttonColor), g = t(() => y.value.buttonColorHover), p = t(() => {
1495
- const r = {};
1496
- C.value && Object.keys(C.value).forEach((d) => r[`aria-${d}`] = C.value[d]);
1497
- const a = {
1498
- "aria-label": E.value,
1499
- "aria-disabled": x.value,
1500
- ...r
1831
+ }), w = t(() => S.value.font), x = t(() => {
1832
+ switch (S.value.theme) {
1833
+ case "dark":
1834
+ return "component__theme--dark";
1835
+ default:
1836
+ return "component__theme--light";
1837
+ }
1838
+ }), R = t(() => {
1839
+ const p = {};
1840
+ y.value && Object.keys(y.value).forEach((z) => p[`aria-${z}`] = y.value[z]);
1841
+ const s = {
1842
+ "aria-label": Q.value,
1843
+ "aria-disabled": j.value,
1844
+ ...p
1501
1845
  };
1502
1846
  return Object.fromEntries(
1503
- Object.entries(a).filter(([o, d]) => d != null)
1847
+ Object.entries(s).filter(([N, z]) => z != null)
1504
1848
  );
1505
- }), i = () => {
1849
+ }), K = () => {
1506
1850
  X("clicked");
1507
1851
  };
1508
- return (r, a) => e.nbId ? (J(), Q("div", ie({
1852
+ return (p, s) => e.nbId ? (fe(), ve("div", Se({
1509
1853
  key: 0,
1510
- class: ["nb-wrapper", L.value],
1511
- style: [W.value],
1854
+ class: ["nb-wrapper", D.value],
1855
+ style: [P.value],
1512
1856
  tabIndex: e.tabIndex,
1513
1857
  role: "button"
1514
- }, p.value, {
1515
- onClick: i,
1858
+ }, R.value, {
1859
+ onClick: K,
1516
1860
  onKeydown: [
1517
- a[0] || (a[0] = Y(z((o) => !B(x) && e.hasTabIndexEnter && i(), ["prevent"]), ["enter"])),
1518
- a[1] || (a[1] = Y(z((o) => !B(x) && e.hasTabIndexSpace && i(), ["prevent"]), ["space"]))
1861
+ s[0] || (s[0] = O(A((N) => !o(j) && e.hasTabIndexEnter && K(), ["prevent"]), ["enter"])),
1862
+ s[1] || (s[1] = O(A((N) => !o(j) && e.hasTabIndexSpace && K(), ["prevent"]), ["space"]))
1519
1863
  ]
1520
1864
  }), [
1521
- P("div", {
1865
+ de("div", {
1522
1866
  id: e.nbId,
1523
- class: "nb-reset component component-transition",
1524
- style: M([m.value])
1867
+ class: pe(["nb-reset component component-transition", [x.value]]),
1868
+ style: se([J.value])
1525
1869
  }, [
1526
- oe(r.$slots, "content", {}, () => [
1527
- a[2] || (a[2] = re("Default Text"))
1870
+ he(p.$slots, "content", {}, () => [
1871
+ s[2] || (s[2] = Ce("Default Text"))
1528
1872
  ], !0)
1529
- ], 12, Zt)
1530
- ], 16, Qt)) : te("", !0);
1873
+ ], 14, Qt)
1874
+ ], 16, Jt)) : ye("", !0);
1531
1875
  }
1532
- }), ta = /* @__PURE__ */ ve(ea, [["__scopeId", "data-v-80478991"]]);
1533
- const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { class: "last-child" }, ua = /* @__PURE__ */ Object.assign({
1876
+ }), ea = /* @__PURE__ */ ke(Zt, [["__scopeId", "data-v-055e6db9"]]);
1877
+ const ta = ["tabIndex"], aa = ["id"], la = { class: "first-child" }, oa = { class: "last-child" }, na = /* @__PURE__ */ Object.assign({
1534
1878
  name: "NbButtonAlternateText",
1535
1879
  inheritAttrs: !1
1536
1880
  }, {
@@ -1544,8 +1888,8 @@ const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { clas
1544
1888
  type: String,
1545
1889
  default: "b",
1546
1890
  validator: (e = "b") => {
1547
- const b = e ? e.toLowerCase() : "";
1548
- return ["b", "ib"].includes(b);
1891
+ const l = e ? e.toLowerCase() : "";
1892
+ return ["b", "ib"].includes(l);
1549
1893
  }
1550
1894
  },
1551
1895
  tabIndex: {
@@ -1568,25 +1912,63 @@ const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { clas
1568
1912
  type: Object,
1569
1913
  default: () => ({})
1570
1914
  },
1571
- textColor: {
1915
+ theme: {
1572
1916
  type: String,
1573
- default: "#ffffff"
1917
+ default: "light",
1918
+ validator: (e) => {
1919
+ const l = e ? e.toLowerCase() : "";
1920
+ return ["light", "dark"].includes(l);
1921
+ }
1574
1922
  },
1575
- textHoverColor: {
1923
+ // Cores do tema light
1924
+ lightTextColor: {
1925
+ type: String,
1926
+ default: "#333333"
1927
+ },
1928
+ lightTextColorHover: {
1576
1929
  type: String,
1577
1930
  default: "#000000"
1578
1931
  },
1579
- buttonColor: {
1932
+ lightButtonColor: {
1933
+ type: String,
1934
+ default: "#f5f5f5"
1935
+ },
1936
+ lightButtonColorHover: {
1937
+ type: String,
1938
+ default: "#e0e0e0"
1939
+ },
1940
+ lightBorderColor: {
1941
+ type: String,
1942
+ default: "#cccccc"
1943
+ },
1944
+ lightDisabledBgColor: {
1945
+ type: String,
1946
+ default: "#dfdfd9"
1947
+ },
1948
+ // Cores do tema dark
1949
+ darkTextColor: {
1950
+ type: String,
1951
+ default: "#e0e0e0"
1952
+ },
1953
+ darkTextColorHover: {
1580
1954
  type: String,
1581
1955
  default: "#ffffff"
1582
1956
  },
1583
- buttonHoverColor: {
1957
+ darkButtonColor: {
1584
1958
  type: String,
1585
- default: "red"
1959
+ default: "#2d2d2d"
1586
1960
  },
1587
- borderColor: {
1961
+ darkButtonColorHover: {
1588
1962
  type: String,
1589
- default: "#ffe54c"
1963
+ default: "#3d3d3d"
1964
+ },
1965
+ darkBorderColor: {
1966
+ type: String,
1967
+ default: "#555555"
1968
+ },
1969
+ darkDisabledBgColor: {
1970
+ type: String,
1971
+ default: "rgba(40, 42, 54, 1)"
1590
1972
  },
1591
1973
  showBorder: {
1592
1974
  type: Boolean,
@@ -1633,112 +2015,122 @@ const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { clas
1633
2015
  }
1634
2016
  },
1635
2017
  emits: ["clicked"],
1636
- setup(e, { emit: b }) {
1637
- fe((o) => ({
1638
- a3f9134a: $.value,
1639
- "05495291": g.value,
1640
- e76cf5ce: p.value,
1641
- "674b40ec": i.value
2018
+ setup(e, { emit: l }) {
2019
+ xe((M) => ({
2020
+ "5956052a": p.value,
2021
+ da8cae9e: B.value,
2022
+ "283a67f7": h.value,
2023
+ "7248e796": N.value,
2024
+ "235d8174": z.value,
2025
+ "1943f70b": E.value,
2026
+ "07819ee5": n.value,
2027
+ c5fb43aa: H.value,
2028
+ "757e4a6c": i.value,
2029
+ "3fd5a6dc": u.value,
2030
+ ac7c7d52: c.value,
2031
+ "786e2162": r.value,
2032
+ "81b044d4": oe.value
1642
2033
  }));
1643
- const X = b, D = e, {
1644
- display: j,
1645
- ariaLabel: E,
1646
- ariaAttrs: C,
1647
- buttonColor: H,
1648
- borderColor: A,
1649
- buttonHoverColor: O,
1650
- showBorder: N,
1651
- borderRadius: x,
1652
- textColor: V,
1653
- textHoverColor: w,
1654
- width: I,
1655
- paddingX: S,
1656
- paddingY: T,
1657
- disabled: f,
1658
- fontFamily: y,
1659
- fontSize: L,
1660
- fontWeight: W
1661
- } = ce(D), m = t(() => {
1662
- const o = f.value ? "component-disabled" : "", d = j.value !== "b" ? "inline-block" : "block", v = H.value ? H.value : "#ffffff", u = O.value ? O.value : "#000000", n = A.value ? A.value : "#ffe54c", c = !x.value || x.value < 0 ? 0 : x.value, k = [!1, !0].includes(N.value) ? N.value : !0, F = V.value ? V.value : "#ffffff", G = w.value ? w.value : "#000000", le = !I.value || I.value < 86 ? 86 : I.value, ae = !S.value || S.value < 0 ? 1 : S.value, K = !T.value || T.value < 0 ? 0.4 : T.value, ne = y.value ? y.value : "'Lato', sans-serif", de = L.value ? L.value : "1.6em", U = !W.value || W.value < 0 ? 200 : W.value;
2034
+ const X = l, ae = e, {
2035
+ display: q,
2036
+ ariaLabel: Q,
2037
+ ariaAttrs: y,
2038
+ theme: Y,
2039
+ lightTextColor: U,
2040
+ lightTextColorHover: te,
2041
+ lightButtonColor: j,
2042
+ lightButtonColorHover: Z,
2043
+ lightBorderColor: F,
2044
+ lightDisabledBgColor: G,
2045
+ darkTextColor: ee,
2046
+ darkTextColorHover: W,
2047
+ darkButtonColor: L,
2048
+ darkButtonColorHover: V,
2049
+ darkBorderColor: I,
2050
+ darkDisabledBgColor: b,
2051
+ showBorder: T,
2052
+ borderRadius: f,
2053
+ width: m,
2054
+ paddingX: d,
2055
+ paddingY: _,
2056
+ disabled: S,
2057
+ fontFamily: D,
2058
+ fontSize: P,
2059
+ fontWeight: J
2060
+ } = Be(ae), w = t(() => {
2061
+ const M = S.value ? "component-disabled" : "", v = q.value !== "b" ? "inline-block" : "block", g = !f.value || f.value < 0 ? 0 : f.value, le = [!1, !0].includes(T.value) ? T.value : !0, $ = !m.value || m.value < 86 ? 86 : m.value, k = !d.value || d.value < 0 ? 1 : d.value, ue = !_.value || _.value < 0 ? 0.4 : _.value, ne = D.value ? D.value : "'Lato', sans-serif", me = P.value ? P.value : "1.6em", ge = !J.value || J.value < 0 ? 200 : J.value;
1663
2062
  return {
1664
- disabled: o,
1665
- display: d,
1666
- buttonColor: v,
1667
- buttonHoverColor: u,
1668
- borderColor: n,
1669
- showBorder: k,
1670
- borderRadius: c,
1671
- textColor: F,
1672
- textHoverColor: G,
1673
- width: le,
1674
- paddingX: ae,
1675
- paddingY: K,
2063
+ disabled: M,
2064
+ display: v,
2065
+ showBorder: le,
2066
+ borderRadius: g,
2067
+ width: $,
2068
+ paddingX: k,
2069
+ paddingY: ue,
1676
2070
  font: ne,
1677
- fontSize: de,
1678
- fontWeight: U
2071
+ fontSize: me,
2072
+ fontWeight: ge
1679
2073
  };
1680
- }), h = t(() => m.value.disabled), R = t(() => ({
1681
- display: m.value.display
1682
- })), s = t(() => {
1683
- const o = m.value, d = o.display === "block" ? "auto" : `${o.width}px`;
2074
+ }), x = t(() => w.value.disabled), R = t(() => ({
2075
+ display: w.value.display
2076
+ })), K = t(() => {
2077
+ const M = w.value, v = M.display === "block" ? "auto" : `${M.width}px`;
1684
2078
  return {
1685
- ...o.showBorder ? { border: `1px solid ${o.borderColor}` } : {},
1686
- borderRadius: `${o.borderRadius}rem`,
1687
- background: o.buttonColor,
2079
+ borderRadius: `${M.borderRadius}rem`,
1688
2080
  minWidth: "33px",
1689
- width: d,
1690
- padding: `${o.paddingY}rem ${o.paddingX}rem`,
2081
+ width: v,
2082
+ padding: `${M.paddingY}rem ${M.paddingX}rem`,
1691
2083
  lineHeight: "1.42857143",
1692
- fontSize: o.fontSize,
1693
- fontWeight: o.fontWeight
2084
+ fontSize: M.fontSize,
2085
+ fontWeight: M.fontWeight
1694
2086
  };
1695
- }), $ = t(() => m.value.font), g = t(() => m.value.textColor), p = t(() => m.value.textHoverColor), i = t(() => m.value.buttonHoverColor), r = t(() => {
1696
- const o = {};
1697
- C.value && Object.keys(C.value).forEach((u) => o[`aria-${u}`] = C.value[u]);
1698
- const d = {
1699
- "aria-label": E.value,
1700
- "aria-disabled": f.value,
1701
- ...o
2087
+ }), p = t(() => w.value.font), s = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), N = t(() => U.value), z = t(() => te.value), B = t(() => j.value), E = t(() => Z.value), h = t(() => F.value), r = t(() => G.value), i = t(() => ee.value), u = t(() => W.value), n = t(() => L.value), c = t(() => V.value), H = t(() => I.value), oe = t(() => b.value), ie = t(() => {
2088
+ const M = {};
2089
+ y.value && Object.keys(y.value).forEach((le) => M[`aria-${le}`] = y.value[le]);
2090
+ const v = {
2091
+ "aria-label": Q.value,
2092
+ "aria-disabled": S.value,
2093
+ ...M
1702
2094
  };
1703
2095
  return Object.fromEntries(
1704
- Object.entries(d).filter(([v, u]) => u != null)
2096
+ Object.entries(v).filter(([g, le]) => le != null)
1705
2097
  );
1706
- }), a = () => {
2098
+ }), be = () => {
1707
2099
  X("clicked");
1708
2100
  };
1709
- return (o, d) => e.nbId ? (J(), Q("div", ie({
2101
+ return (M, v) => e.nbId ? (fe(), ve("div", Se({
1710
2102
  key: 0,
1711
- class: ["nb-wrapper", h.value],
2103
+ class: ["nb-wrapper", x.value],
1712
2104
  style: [R.value],
1713
2105
  tabIndex: e.tabIndex,
1714
2106
  role: "button"
1715
- }, r.value, {
1716
- onClick: a,
2107
+ }, ie.value, {
2108
+ onClick: be,
1717
2109
  onKeydown: [
1718
- d[0] || (d[0] = Y(z((v) => !B(f) && e.hasTabIndexEnter && a(), ["prevent"]), ["enter"])),
1719
- d[1] || (d[1] = Y(z((v) => !B(f) && e.hasTabIndexSpace && a(), ["prevent"]), ["space"]))
2110
+ v[0] || (v[0] = O(A((g) => !o(S) && e.hasTabIndexEnter && be(), ["prevent"]), ["enter"])),
2111
+ v[1] || (v[1] = O(A((g) => !o(S) && e.hasTabIndexSpace && be(), ["prevent"]), ["space"]))
1720
2112
  ]
1721
2113
  }), [
1722
- P("div", {
2114
+ de("div", {
1723
2115
  id: e.nbId,
1724
- class: ue(["nb-reset", "component"]),
1725
- style: M([s.value])
2116
+ class: pe(["nb-reset", "component", s.value, { "component--no-border": !o(T) }]),
2117
+ style: se([K.value])
1726
2118
  }, [
1727
- P("div", la, [
1728
- oe(o.$slots, "content", {}, () => [
1729
- d[2] || (d[2] = re("Default Text"))
2119
+ de("div", la, [
2120
+ he(M.$slots, "content", {}, () => [
2121
+ v[2] || (v[2] = Ce("Default Text"))
1730
2122
  ], !0)
1731
2123
  ]),
1732
- P("div", na, [
1733
- oe(o.$slots, "content", {}, () => [
1734
- d[3] || (d[3] = re("Default Text"))
2124
+ de("div", oa, [
2125
+ he(M.$slots, "content", {}, () => [
2126
+ v[3] || (v[3] = Ce("Default Text"))
1735
2127
  ], !0)
1736
2128
  ])
1737
- ], 12, oa)
1738
- ], 16, aa)) : te("", !0);
2129
+ ], 14, aa)
2130
+ ], 16, ta)) : ye("", !0);
1739
2131
  }
1740
- }), ra = /* @__PURE__ */ ve(ua, [["__scopeId", "data-v-c9feddef"]]);
1741
- const da = ["tabIndex"], sa = ["id"], ia = /* @__PURE__ */ Object.assign({
2132
+ }), ra = /* @__PURE__ */ ke(na, [["__scopeId", "data-v-374312ab"]]);
2133
+ const ua = ["tabIndex"], da = ["id"], ia = /* @__PURE__ */ Object.assign({
1742
2134
  name: "NbButtonBack",
1743
2135
  inheritAttrs: !1
1744
2136
  }, {
@@ -1768,13 +2160,39 @@ const da = ["tabIndex"], sa = ["id"], ia = /* @__PURE__ */ Object.assign({
1768
2160
  type: Object,
1769
2161
  default: () => ({})
1770
2162
  },
1771
- color: {
2163
+ theme: {
1772
2164
  type: String,
1773
- default: "#477e99"
2165
+ default: "light",
2166
+ validator: (e) => {
2167
+ const l = e ? e.toLowerCase() : "";
2168
+ return ["light", "dark"].includes(l);
2169
+ }
1774
2170
  },
1775
- textColor: {
2171
+ // Cores do tema light
2172
+ lightColor: {
1776
2173
  type: String,
1777
- default: "#77d2ff"
2174
+ default: "#333333"
2175
+ },
2176
+ lightTextColor: {
2177
+ type: String,
2178
+ default: "#333333"
2179
+ },
2180
+ lightDisabledBgColor: {
2181
+ type: String,
2182
+ default: "#dfdfd9"
2183
+ },
2184
+ // Cores do tema dark
2185
+ darkColor: {
2186
+ type: String,
2187
+ default: "#ffffff"
2188
+ },
2189
+ darkTextColor: {
2190
+ type: String,
2191
+ default: "#ffffff"
2192
+ },
2193
+ darkDisabledBgColor: {
2194
+ type: String,
2195
+ default: "rgba(40, 42, 54, 1)"
1778
2196
  },
1779
2197
  text: {
1780
2198
  type: String,
@@ -1801,89 +2219,98 @@ const da = ["tabIndex"], sa = ["id"], ia = /* @__PURE__ */ Object.assign({
1801
2219
  }
1802
2220
  },
1803
2221
  emits: ["clicked"],
1804
- setup(e, { emit: b }) {
1805
- fe((h) => ({
1806
- "6c47e09f": f.value,
1807
- "055e9056": T.value,
1808
- "12af3efc": S.value
1809
- })), He(() => {
1810
- W();
2222
+ setup(e, { emit: l }) {
2223
+ xe((x) => ({
2224
+ "0236f7b6": S.value,
2225
+ "2ceb0b8a": m.value,
2226
+ bcfa5292: f.value,
2227
+ "16df2f54": _.value,
2228
+ "1ee30cfa": d.value
2229
+ })), Ee(() => {
2230
+ J();
1811
2231
  });
1812
- const X = b, D = e, {
1813
- ariaLabel: j,
1814
- ariaAttrs: E,
1815
- color: C,
1816
- textColor: H,
1817
- disabled: A,
1818
- fontFamily: O,
1819
- fontSize: N,
1820
- fontWeight: x
1821
- } = ce(D), V = t(() => {
1822
- const h = A.value ? "component-disabled" : "", R = C.value ? C.value : "#77d2ff", s = H.value ? H.value : "#6dc1ec", $ = O.value ? O.value : "'Lato', sans-serif", g = N.value ? N.value : "1.6em", p = !x.value || x.value < 0 ? 400 : x.value;
2232
+ const X = l, ae = e, {
2233
+ ariaLabel: q,
2234
+ ariaAttrs: Q,
2235
+ theme: y,
2236
+ lightColor: Y,
2237
+ lightTextColor: U,
2238
+ lightDisabledBgColor: te,
2239
+ darkColor: j,
2240
+ darkTextColor: Z,
2241
+ darkDisabledBgColor: F,
2242
+ disabled: G,
2243
+ fontFamily: ee,
2244
+ fontSize: W,
2245
+ fontWeight: L
2246
+ } = Be(ae), V = t(() => {
2247
+ const x = G.value ? "component-disabled" : "", R = ee.value ? ee.value : "'Lato', sans-serif", K = W.value ? W.value : "1.6em", p = !L.value || L.value < 0 ? 400 : L.value;
1823
2248
  return {
1824
- color: R,
1825
- textColor: s,
1826
- font: $,
1827
- fontSize: g,
2249
+ font: R,
2250
+ fontSize: K,
1828
2251
  fontWeight: p,
1829
- disabled: h
2252
+ disabled: x
1830
2253
  };
1831
- }), w = t(() => ({})), I = t(() => {
1832
- const h = V.value;
2254
+ }), I = t(() => ({})), b = t(() => {
2255
+ const x = V.value;
1833
2256
  return {
1834
- fontSize: h.fontSize,
1835
- fontWeight: h.fontWeight
2257
+ fontSize: x.fontSize,
2258
+ fontWeight: x.fontWeight
1836
2259
  };
1837
- }), S = t(() => V.value.color), T = t(() => V.value.textColor), f = t(() => V.value.font), y = t(() => V.value.disabled), L = t(() => {
1838
- const h = {};
1839
- E.value && Object.keys(E.value).forEach(($) => h[`aria-${$}`] = E.value[$]);
2260
+ }), T = t(() => y.value === "dark" ? "component__theme--dark" : "component__theme--light"), f = t(() => Y.value), m = t(() => U.value);
2261
+ t(() => te.value);
2262
+ const d = t(() => j.value), _ = t(() => Z.value);
2263
+ t(() => F.value);
2264
+ const S = t(() => V.value.font), D = t(() => V.value.disabled), P = t(() => {
2265
+ const x = {};
2266
+ Q.value && Object.keys(Q.value).forEach((p) => x[`aria-${p}`] = Q.value[p]);
1840
2267
  const R = {
1841
- "aria-label": j.value,
1842
- "aria-disabled": A.value,
1843
- ...h
2268
+ "aria-label": q.value,
2269
+ "aria-disabled": G.value,
2270
+ ...x
1844
2271
  };
1845
2272
  return Object.fromEntries(
1846
- Object.entries(R).filter(([s, $]) => $ != null)
2273
+ Object.entries(R).filter(([K, p]) => p != null)
1847
2274
  );
1848
- }), W = () => {
1849
- }, m = () => {
2275
+ }), J = () => {
2276
+ }, w = () => {
1850
2277
  X("clicked");
1851
2278
  };
1852
- return (h, R) => e.nbId ? (J(), Q("div", ie({
2279
+ return (x, R) => e.nbId ? (fe(), ve("div", Se({
1853
2280
  key: 0,
1854
- class: ["nb-wrapper", y.value],
1855
- style: [w.value],
2281
+ class: ["nb-wrapper", D.value],
2282
+ style: [I.value],
1856
2283
  tabIndex: e.tabIndex,
1857
2284
  role: "button"
1858
- }, L.value, {
1859
- onClick: m,
2285
+ }, P.value, {
2286
+ onClick: w,
1860
2287
  onKeydown: [
1861
- R[0] || (R[0] = Y(z((s) => !B(A) && e.hasTabIndexEnter && m(), ["prevent"]), ["enter"])),
1862
- R[1] || (R[1] = Y(z((s) => !B(A) && e.hasTabIndexSpace && m(), ["prevent"]), ["space"]))
2288
+ R[0] || (R[0] = O(A((K) => !o(G) && e.hasTabIndexEnter && w(), ["prevent"]), ["enter"])),
2289
+ R[1] || (R[1] = O(A((K) => !o(G) && e.hasTabIndexSpace && w(), ["prevent"]), ["space"]))
1863
2290
  ]
1864
2291
  }), [
1865
- P("div", {
2292
+ de("div", {
1866
2293
  id: e.nbId,
1867
- class: ue(["nb-reset", "component"]),
1868
- style: M([I.value])
2294
+ class: pe(["nb-reset", "component", T.value]),
2295
+ style: se([b.value])
1869
2296
  }, [
1870
- R[2] || (R[2] = P("svg", {
2297
+ R[2] || (R[2] = de("svg", {
1871
2298
  xmlns: "http://www.w3.org/2000/svg",
1872
2299
  width: "1em",
1873
2300
  height: "1em",
1874
2301
  viewBox: "0 0 16 16"
1875
2302
  }, [
1876
- P("path", {
2303
+ de("path", {
1877
2304
  d: "M14 8a.75.75 0 01-.75.75H4.56l1.22 1.22a.75.75 0 11-1.06 1.06l-2.5-2.5a.75.75 0 010-1.06l2.5-2.5a.75.75 0 111.06 1.06L4.56 7.25h8.69A.75.75 0 0114 8z",
1878
2305
  "clip-rule": "evenodd"
1879
2306
  })
1880
2307
  ], -1)),
1881
- P("span", null, Se(e.text), 1)
1882
- ], 12, sa)
1883
- ], 16, da)) : te("", !0);
2308
+ de("span", null, We(e.text), 1)
2309
+ ], 14, da)
2310
+ ], 16, ua)) : ye("", !0);
1884
2311
  }
1885
- }), fa = /* @__PURE__ */ ve(ia, [["__scopeId", "data-v-a3d16595"]]);
1886
- const ca = ["tabIndex"], va = ["id"], ba = /* @__PURE__ */ Object.assign({
2312
+ }), sa = /* @__PURE__ */ ke(ia, [["__scopeId", "data-v-88b676fd"]]);
2313
+ const ca = ["tabIndex"], fa = ["id"], va = /* @__PURE__ */ Object.assign({
1887
2314
  name: "NbButtonGradientBorderToBackground",
1888
2315
  inheritAttrs: !1
1889
2316
  }, {
@@ -1897,8 +2324,8 @@ const ca = ["tabIndex"], va = ["id"], ba = /* @__PURE__ */ Object.assign({
1897
2324
  type: String,
1898
2325
  default: "b",
1899
2326
  validator: (e = "b") => {
1900
- const b = e ? e.toLowerCase() : "";
1901
- return ["b", "ib"].includes(b);
2327
+ const l = e ? e.toLowerCase() : "";
2328
+ return ["b", "ib"].includes(l);
1902
2329
  }
1903
2330
  },
1904
2331
  tabIndex: {
@@ -1986,107 +2413,107 @@ const ca = ["tabIndex"], va = ["id"], ba = /* @__PURE__ */ Object.assign({
1986
2413
  }
1987
2414
  },
1988
2415
  emits: ["clicked"],
1989
- setup(e, { emit: b }) {
1990
- fe((u) => ({
1991
- "91fb25f6": $.value,
1992
- "2e8b8896": a.value,
1993
- "0c6b7cbb": i.value,
1994
- "5367398e": p.value,
1995
- "13c73054": g.value,
1996
- c4c5b5a2: r.value,
1997
- "478b3e46": o.value
2416
+ setup(e, { emit: l }) {
2417
+ xe((s) => ({
2418
+ "91fb25f6": S.value,
2419
+ "2e8b8896": x.value,
2420
+ "0c6b7cbb": J.value,
2421
+ "5367398e": P.value,
2422
+ "13c73054": D.value,
2423
+ c4c5b5a2: w.value,
2424
+ "478b3e46": R.value
1998
2425
  }));
1999
- const X = b, D = e, {
2000
- display: j,
2001
- ariaLabel: E,
2002
- ariaAttrs: C,
2003
- buttonColor: H,
2004
- borderColor: A,
2005
- buttonHoverColor: O,
2006
- showBorder: N,
2007
- borderRadius: x,
2008
- textColor: V,
2009
- textHoverColor: w,
2010
- width: I,
2011
- paddingX: S,
2012
- paddingY: T,
2013
- disabled: f,
2014
- fontFamily: y,
2015
- fontSize: L,
2016
- fontWeight: W
2017
- } = ce(D), m = t(() => {
2018
- const u = f.value ? "component-disabled" : "", n = j.value !== "b" ? "inline-block" : "block", c = H.value ? H.value : "#ffffff", k = O.value ? O.value : "#000000", F = A.value ? A.value : "#ffe54c", G = !x.value || x.value < 0 ? 0 : x.value, le = [!1, !0].includes(N.value) ? N.value : !0, ae = V.value ? V.value : "#ffffff", K = w.value ? w.value : "#000000", ne = !I.value || I.value < 86 ? 86 : I.value, de = !S.value || S.value < 0 ? 1 : S.value, U = !T.value || T.value < 0 ? 0.2 : T.value, be = y.value ? y.value : "'Lato', sans-serif", Z = L.value ? L.value : "1.6em", pe = !W.value || W.value < 0 ? 200 : W.value;
2426
+ const X = l, ae = e, {
2427
+ display: q,
2428
+ ariaLabel: Q,
2429
+ ariaAttrs: y,
2430
+ buttonColor: Y,
2431
+ borderColor: U,
2432
+ buttonHoverColor: te,
2433
+ showBorder: j,
2434
+ borderRadius: Z,
2435
+ textColor: F,
2436
+ textHoverColor: G,
2437
+ width: ee,
2438
+ paddingX: W,
2439
+ paddingY: L,
2440
+ disabled: V,
2441
+ fontFamily: I,
2442
+ fontSize: b,
2443
+ fontWeight: T
2444
+ } = Be(ae), f = t(() => {
2445
+ const s = V.value ? "component-disabled" : "", N = q.value !== "b" ? "inline-block" : "block", z = Y.value ? Y.value : "#ffffff", B = te.value ? te.value : "#000000", E = U.value ? U.value : "#ffe54c", h = !Z.value || Z.value < 0 ? 0 : Z.value, r = [!1, !0].includes(j.value) ? j.value : !0, i = F.value ? F.value : "#ffffff", u = G.value ? G.value : "#000000", n = !ee.value || ee.value < 86 ? 86 : ee.value, c = !W.value || W.value < 0 ? 1 : W.value, H = !L.value || L.value < 0 ? 0.2 : L.value, oe = I.value ? I.value : "'Lato', sans-serif", ie = b.value ? b.value : "1.6em", be = !T.value || T.value < 0 ? 200 : T.value;
2019
2446
  return {
2020
- disabled: u,
2021
- display: n,
2022
- buttonColor: c,
2023
- buttonHoverColor: k,
2024
- borderColor: F,
2025
- showBorder: le,
2026
- borderRadius: G,
2027
- textColor: ae,
2028
- textHoverColor: K,
2029
- width: ne,
2030
- paddingX: de,
2031
- paddingY: U,
2032
- font: be,
2033
- fontSize: Z,
2034
- fontWeight: pe
2447
+ disabled: s,
2448
+ display: N,
2449
+ buttonColor: z,
2450
+ buttonHoverColor: B,
2451
+ borderColor: E,
2452
+ showBorder: r,
2453
+ borderRadius: h,
2454
+ textColor: i,
2455
+ textHoverColor: u,
2456
+ width: n,
2457
+ paddingX: c,
2458
+ paddingY: H,
2459
+ font: oe,
2460
+ fontSize: ie,
2461
+ fontWeight: be
2035
2462
  };
2036
- }), h = t(() => m.value.disabled), R = t(() => ({
2037
- display: m.value.display
2038
- })), s = t(() => {
2039
- const u = m.value;
2463
+ }), m = t(() => f.value.disabled), d = t(() => ({
2464
+ display: f.value.display
2465
+ })), _ = t(() => {
2466
+ const s = f.value;
2040
2467
  return {
2041
2468
  minWidth: "33px",
2042
- width: u.display === "block" ? "auto" : `${u.width}px`,
2469
+ width: s.display === "block" ? "auto" : `${s.width}px`,
2043
2470
  lineHeight: "1.42857143",
2044
- fontSize: u.fontSize,
2045
- fontWeight: u.fontWeight
2471
+ fontSize: s.fontSize,
2472
+ fontWeight: s.fontWeight
2046
2473
  };
2047
- }), $ = t(() => m.value.font), g = t(() => {
2048
- const u = m.value;
2049
- return `${u.paddingY}rem ${u.paddingX}rem`;
2050
- }), p = t(() => `${m.value.borderRadius}rem`), i = t(() => m.value.textColor), r = t(() => m.value.textHoverColor), a = t(() => m.value.buttonColor), o = t(() => m.value.buttonHoverColor), d = t(() => {
2051
- const u = {};
2052
- C.value && Object.keys(C.value).forEach((k) => u[`aria-${k}`] = C.value[k]);
2053
- const n = {
2054
- "aria-label": E.value,
2055
- "aria-disabled": f.value,
2056
- ...u
2474
+ }), S = t(() => f.value.font), D = t(() => {
2475
+ const s = f.value;
2476
+ return `${s.paddingY}rem ${s.paddingX}rem`;
2477
+ }), P = t(() => `${f.value.borderRadius}rem`), J = t(() => f.value.textColor), w = t(() => f.value.textHoverColor), x = t(() => f.value.buttonColor), R = t(() => f.value.buttonHoverColor), K = t(() => {
2478
+ const s = {};
2479
+ y.value && Object.keys(y.value).forEach((B) => s[`aria-${B}`] = y.value[B]);
2480
+ const N = {
2481
+ "aria-label": Q.value,
2482
+ "aria-disabled": V.value,
2483
+ ...s
2057
2484
  };
2058
2485
  return Object.fromEntries(
2059
- Object.entries(n).filter(([c, k]) => k != null)
2486
+ Object.entries(N).filter(([z, B]) => B != null)
2060
2487
  );
2061
- }), v = () => {
2488
+ }), p = () => {
2062
2489
  X("clicked");
2063
2490
  };
2064
- return (u, n) => e.nbId ? (J(), Q("div", ie({
2491
+ return (s, N) => e.nbId ? (fe(), ve("div", Se({
2065
2492
  key: 0,
2066
- class: ["nb-wrapper", h.value],
2067
- style: [R.value],
2493
+ class: ["nb-wrapper", m.value],
2494
+ style: [d.value],
2068
2495
  tabIndex: e.tabIndex,
2069
2496
  role: "button"
2070
- }, d.value, {
2071
- onClick: v,
2497
+ }, K.value, {
2498
+ onClick: p,
2072
2499
  onKeydown: [
2073
- n[0] || (n[0] = Y(z((c) => !B(f) && e.hasTabIndexEnter && v(), ["prevent"]), ["enter"])),
2074
- n[1] || (n[1] = Y(z((c) => !B(f) && e.hasTabIndexSpace && v(), ["prevent"]), ["space"]))
2500
+ N[0] || (N[0] = O(A((z) => !o(V) && e.hasTabIndexEnter && p(), ["prevent"]), ["enter"])),
2501
+ N[1] || (N[1] = O(A((z) => !o(V) && e.hasTabIndexSpace && p(), ["prevent"]), ["space"]))
2075
2502
  ]
2076
2503
  }), [
2077
- P("div", {
2504
+ de("div", {
2078
2505
  id: e.nbId,
2079
2506
  class: "nb-reset component",
2080
- style: M([s.value])
2507
+ style: se([_.value])
2081
2508
  }, [
2082
- oe(u.$slots, "content", {}, () => [
2083
- n[2] || (n[2] = re("Default Text"))
2509
+ he(s.$slots, "content", {}, () => [
2510
+ N[2] || (N[2] = Ce("Default Text"))
2084
2511
  ], !0)
2085
- ], 12, va)
2086
- ], 16, ca)) : te("", !0);
2512
+ ], 12, fa)
2513
+ ], 16, ca)) : ye("", !0);
2087
2514
  }
2088
- }), pa = /* @__PURE__ */ ve(ba, [["__scopeId", "data-v-38279483"]]);
2089
- const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
2515
+ }), pa = /* @__PURE__ */ ke(va, [["__scopeId", "data-v-38279483"]]);
2516
+ const ba = ["tabIndex"], ga = ["id"], ya = /* @__PURE__ */ Object.assign({
2090
2517
  name: "NbButtonNormal",
2091
2518
  inheritAttrs: !1
2092
2519
  }, {
@@ -2100,8 +2527,8 @@ const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
2100
2527
  type: String,
2101
2528
  default: "b",
2102
2529
  validator: (e = "b") => {
2103
- const b = e ? e.toLowerCase() : "";
2104
- return ["b", "ib"].includes(b);
2530
+ const l = e ? e.toLowerCase() : "";
2531
+ return ["b", "ib"].includes(l);
2105
2532
  }
2106
2533
  },
2107
2534
  tabIndex: {
@@ -2124,26 +2551,6 @@ const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
2124
2551
  type: Object,
2125
2552
  default: () => ({})
2126
2553
  },
2127
- textColor: {
2128
- type: String,
2129
- default: "#ffffff"
2130
- },
2131
- textHoverColor: {
2132
- type: String,
2133
- default: "blue"
2134
- },
2135
- buttonColor: {
2136
- type: String,
2137
- default: "tomato"
2138
- },
2139
- buttonHoverColor: {
2140
- type: String,
2141
- default: "green"
2142
- },
2143
- borderColor: {
2144
- type: String,
2145
- default: "#ffe54c"
2146
- },
2147
2554
  showBorder: {
2148
2555
  type: Boolean,
2149
2556
  default: !0,
@@ -2200,118 +2607,203 @@ const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
2200
2607
  default: "s",
2201
2608
  // ms, s, etc.
2202
2609
  validator: (e) => ["ms", "s"].indexOf(e) !== -1
2610
+ },
2611
+ theme: {
2612
+ type: String,
2613
+ default: "light",
2614
+ validator: (e) => ["dark", "light"].indexOf(e) !== -1
2615
+ },
2616
+ // Cores do tema light
2617
+ lightButtonColor: {
2618
+ type: String,
2619
+ default: "#f5f5f5"
2620
+ },
2621
+ lightButtonColorHover: {
2622
+ type: String,
2623
+ default: "#e0e0e0"
2624
+ },
2625
+ lightTextColor: {
2626
+ type: String,
2627
+ default: "#333333"
2628
+ },
2629
+ lightTextColorHover: {
2630
+ type: String,
2631
+ default: "#000000"
2632
+ },
2633
+ lightBorderColor: {
2634
+ type: String,
2635
+ default: "#cccccc"
2636
+ },
2637
+ lightBorderColorHover: {
2638
+ type: String,
2639
+ default: "#bbbbbb"
2640
+ },
2641
+ lightDisabledBgColor: {
2642
+ type: String,
2643
+ default: "#dfdfd9"
2644
+ },
2645
+ // Cores do tema dark
2646
+ darkButtonColor: {
2647
+ type: String,
2648
+ default: "#2d2d2d"
2649
+ },
2650
+ darkButtonColorHover: {
2651
+ type: String,
2652
+ default: "#3d3d3d"
2653
+ },
2654
+ darkTextColor: {
2655
+ type: String,
2656
+ default: "#e0e0e0"
2657
+ },
2658
+ darkTextColorHover: {
2659
+ type: String,
2660
+ default: "#ffffff"
2661
+ },
2662
+ darkBorderColor: {
2663
+ type: String,
2664
+ default: "#555555"
2665
+ },
2666
+ darkBorderColorHover: {
2667
+ type: String,
2668
+ default: "#666666"
2669
+ },
2670
+ darkDisabledBgColor: {
2671
+ type: String,
2672
+ default: "rgba(40, 42, 54, 1)"
2203
2673
  }
2204
2674
  },
2205
2675
  emits: ["clicked"],
2206
- setup(e, { emit: b }) {
2207
- fe((c) => ({
2208
- "2e22e435": i.value,
2209
- "5584b7eb": r.value,
2210
- d37a9074: o.value,
2211
- "50d6b58e": v.value,
2212
- "1bf967ff": a.value,
2213
- c03be5d4: d.value
2676
+ setup(e, { emit: l }) {
2677
+ xe((n) => ({
2678
+ "7269af92": E.value,
2679
+ "6d2ea056": h.value,
2680
+ "663bbb7d": o(w),
2681
+ "55471ed8": o(P),
2682
+ "2a7043c4": o(R),
2683
+ "3a59c3bf": o(x),
2684
+ f5857d78: o(J),
2685
+ "7661c484": o(K),
2686
+ "1eabc57a": o(m),
2687
+ "04b7b1c4": o(T),
2688
+ d9b63338: o(_),
2689
+ "46c0e48e": o(d),
2690
+ a58f1684: o(f),
2691
+ "266b5d90": o(S),
2692
+ a513a7ee: o(p),
2693
+ "53e9a14f": o(D)
2214
2694
  }));
2215
- const X = b, D = e, {
2216
- display: j,
2217
- ariaLabel: E,
2218
- ariaAttrs: C,
2219
- buttonColor: H,
2220
- borderColor: A,
2221
- buttonHoverColor: O,
2222
- showBorder: N,
2223
- borderRadius: x,
2224
- textColor: V,
2225
- textHoverColor: w,
2226
- width: I,
2227
- paddingX: S,
2228
- paddingY: T,
2229
- disabled: f,
2230
- fontFamily: y,
2231
- fontSize: L,
2695
+ const X = l, ae = e, {
2696
+ display: q,
2697
+ ariaLabel: Q,
2698
+ ariaAttrs: y,
2699
+ showBorder: Y,
2700
+ borderRadius: U,
2701
+ width: te,
2702
+ paddingX: j,
2703
+ paddingY: Z,
2704
+ disabled: F,
2705
+ fontFamily: G,
2706
+ fontSize: ee,
2232
2707
  fontWeight: W,
2233
- hasAnimation: m,
2234
- animationDuration: h,
2235
- animationDurationType: R
2236
- } = ce(D), s = t(() => {
2237
- const c = f.value ? "component-disabled" : "", k = j.value !== "b" ? "inline-block" : "block", F = H.value ? H.value : "#ffffff", G = O.value ? O.value : "#000000", le = A.value ? A.value : "#ffe54c", ae = !x.value || x.value < 0 ? 0 : x.value, K = [!1, !0].includes(N.value) ? N.value : !0, ne = V.value ? V.value : "#ffffff", de = w.value ? w.value : "#000000", U = !I.value || I.value < 86 ? 86 : I.value, be = !S.value || S.value < 0 ? 1 : S.value, Z = !T.value || T.value < 0 ? 0.2 : T.value, pe = y.value ? y.value : "'Lato', sans-serif", se = L.value ? L.value : "1.6em", ge = !W.value || W.value < 0 ? 200 : W.value, he = m.value ? "component-transition" : "", Be = !h.value || h.value < 0 ? 0.3 : h.value, we = !R.value || R.value < 0 ? "ms" : R.value;
2708
+ hasAnimation: L,
2709
+ animationDuration: V,
2710
+ animationDurationType: I,
2711
+ theme: b,
2712
+ lightButtonColor: T,
2713
+ lightButtonColorHover: f,
2714
+ lightTextColor: m,
2715
+ lightTextColorHover: d,
2716
+ lightBorderColor: _,
2717
+ lightBorderColorHover: S,
2718
+ lightDisabledBgColor: D,
2719
+ darkButtonColor: P,
2720
+ darkButtonColorHover: J,
2721
+ darkTextColor: w,
2722
+ darkTextColorHover: x,
2723
+ darkBorderColor: R,
2724
+ darkBorderColorHover: K,
2725
+ darkDisabledBgColor: p
2726
+ } = Be(ae), s = t(() => {
2727
+ const n = F.value ? "component-disabled" : "", c = q.value !== "b" ? "inline-block" : "block", H = !U.value || U.value < 0 ? 0 : U.value, oe = [!1, !0].includes(Y.value) ? Y.value : !0, ie = !te.value || te.value < 86 ? 86 : te.value, be = !j.value || j.value < 0 ? 1 : j.value, M = !Z.value || Z.value < 0 ? 0.2 : Z.value, v = G.value ? G.value : "'Lato', sans-serif", g = ee.value ? ee.value : "1.6em", le = !W.value || W.value < 0 ? 200 : W.value, $ = L.value ? "component-transition" : "", k = !V.value || V.value < 0 ? 0.3 : V.value, ue = !I.value || I.value < 0 ? "ms" : I.value, ne = b.value ? b.value : "light";
2238
2728
  return {
2239
- disabled: c,
2240
- display: k,
2241
- buttonColor: F,
2242
- buttonHoverColor: G,
2243
- borderColor: le,
2244
- showBorder: K,
2245
- borderRadius: ae,
2246
- textColor: ne,
2247
- textHoverColor: de,
2248
- width: U,
2729
+ disabled: n,
2730
+ display: c,
2731
+ showBorder: oe,
2732
+ borderRadius: H,
2733
+ width: ie,
2249
2734
  paddingX: be,
2250
- paddingY: Z,
2251
- font: pe,
2252
- fontSize: se,
2253
- fontWeight: ge,
2254
- hasAnimation: he,
2255
- animationDuration: Be,
2256
- animationDurationType: we
2735
+ paddingY: M,
2736
+ font: v,
2737
+ fontSize: g,
2738
+ fontWeight: le,
2739
+ hasAnimation: $,
2740
+ animationDuration: k,
2741
+ animationDurationType: ue,
2742
+ theme: ne
2257
2743
  };
2258
- }), $ = t(() => s.value.disabled), g = t(() => ({
2744
+ }), N = t(() => s.value.disabled), z = t(() => ({
2259
2745
  display: s.value.display
2260
- })), p = t(() => {
2261
- const c = s.value, k = c.display === "block" ? "auto" : `${c.width}px`;
2746
+ })), B = t(() => {
2747
+ const n = s.value, c = n.display === "block" ? "auto" : `${n.width}px`;
2262
2748
  return {
2263
- ...c.showBorder ? { border: `1px solid ${c.borderColor}` } : {},
2264
- borderRadius: `${c.borderRadius}rem`,
2749
+ borderRadius: `${n.borderRadius}rem`,
2265
2750
  minWidth: "33px",
2266
- width: k,
2267
- padding: `${c.paddingY}rem ${c.paddingX}rem`,
2751
+ width: c,
2752
+ padding: `${n.paddingY}rem ${n.paddingX}rem`,
2268
2753
  lineHeight: "1.42857143",
2269
- fontSize: c.fontSize,
2270
- fontWeight: c.fontWeight
2754
+ fontSize: n.fontSize,
2755
+ fontWeight: n.fontWeight
2271
2756
  };
2272
- }), i = t(() => s.value.font), r = t(() => s.value.textColor), a = t(() => s.value.textHoverColor), o = t(() => s.value.buttonColor), d = t(() => s.value.buttonHoverColor), v = t(() => {
2273
- const c = s.value;
2274
- return c.hasAnimation ? `all ${c.animationDuration}${c.animationDurationType} ease-in-out` : "";
2275
- }), u = t(() => {
2276
- const c = {};
2277
- C.value && Object.keys(C.value).forEach((G) => c[`aria-${G}`] = C.value[G]);
2278
- const k = {
2279
- "aria-label": E.value,
2280
- "aria-disabled": f.value,
2281
- ...c
2757
+ }), E = t(() => s.value.font), h = t(() => {
2758
+ const n = s.value;
2759
+ return n.hasAnimation ? `all ${n.animationDuration}${n.animationDurationType} ease-in-out` : "";
2760
+ }), r = t(() => {
2761
+ switch (s.value.theme) {
2762
+ case "dark":
2763
+ return "component__theme--dark";
2764
+ default:
2765
+ return "component__theme--light";
2766
+ }
2767
+ }), i = t(() => {
2768
+ const n = {};
2769
+ y.value && Object.keys(y.value).forEach((oe) => n[`aria-${oe}`] = y.value[oe]);
2770
+ const c = {
2771
+ "aria-label": Q.value,
2772
+ "aria-disabled": F.value,
2773
+ ...n
2282
2774
  };
2283
2775
  return Object.fromEntries(
2284
- Object.entries(k).filter(([F, G]) => G != null)
2776
+ Object.entries(c).filter(([H, oe]) => oe != null)
2285
2777
  );
2286
- }), n = () => {
2778
+ }), u = () => {
2287
2779
  X("clicked");
2288
2780
  };
2289
- return (c, k) => e.nbId ? (J(), Q("div", ie({
2781
+ return (n, c) => e.nbId ? (fe(), ve("div", Se({
2290
2782
  key: 0,
2291
- class: ["nb-wrapper", $.value],
2292
- style: [g.value],
2783
+ class: ["nb-wrapper", N.value],
2784
+ style: [z.value],
2293
2785
  tabIndex: e.tabIndex,
2294
2786
  role: "button"
2295
- }, u.value, {
2296
- onClick: n,
2787
+ }, i.value, {
2788
+ onClick: u,
2297
2789
  onKeydown: [
2298
- k[0] || (k[0] = Y(z((F) => !B(f) && e.hasTabIndexEnter && n(), ["prevent"]), ["enter"])),
2299
- k[1] || (k[1] = Y(z((F) => !B(f) && e.hasTabIndexSpace && n(), ["prevent"]), ["space"]))
2790
+ c[0] || (c[0] = O(A((H) => !o(F) && e.hasTabIndexEnter && u(), ["prevent"]), ["enter"])),
2791
+ c[1] || (c[1] = O(A((H) => !o(F) && e.hasTabIndexSpace && u(), ["prevent"]), ["space"]))
2300
2792
  ]
2301
2793
  }), [
2302
- P("div", {
2794
+ de("div", {
2303
2795
  id: e.nbId,
2304
- class: ue(["nb-reset component", { "component-transition": B(m) }]),
2305
- style: M([p.value])
2796
+ class: pe(["nb-reset component", [{ "component-transition": o(L), "component--no-border": !o(Y) }, r.value]]),
2797
+ style: se([B.value])
2306
2798
  }, [
2307
- oe(c.$slots, "content", {}, () => [
2308
- k[2] || (k[2] = re("Default Text"))
2799
+ he(n.$slots, "content", {}, () => [
2800
+ c[2] || (c[2] = Ce("Default Text"))
2309
2801
  ], !0)
2310
- ], 14, ma)
2311
- ], 16, ya)) : te("", !0);
2802
+ ], 14, ga)
2803
+ ], 16, ba)) : ye("", !0);
2312
2804
  }
2313
- }), xa = /* @__PURE__ */ ve(ga, [["__scopeId", "data-v-1e13b914"]]);
2314
- const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
2805
+ }), ma = /* @__PURE__ */ ke(ya, [["__scopeId", "data-v-df95b133"]]);
2806
+ const ha = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
2315
2807
  name: "NbButtonShadow",
2316
2808
  inheritAttrs: !1
2317
2809
  }, {
@@ -2325,8 +2817,8 @@ const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
2325
2817
  type: String,
2326
2818
  default: "b",
2327
2819
  validator: (e = "b") => {
2328
- const b = e ? e.toLowerCase() : "";
2329
- return ["b", "ib"].includes(b);
2820
+ const l = e ? e.toLowerCase() : "";
2821
+ return ["b", "ib"].includes(l);
2330
2822
  }
2331
2823
  },
2332
2824
  tabIndex: {
@@ -2349,29 +2841,71 @@ const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
2349
2841
  type: Object,
2350
2842
  default: () => ({})
2351
2843
  },
2352
- textColor: {
2844
+ theme: {
2845
+ type: String,
2846
+ default: "light",
2847
+ validator: (e) => {
2848
+ const l = e ? e.toLowerCase() : "";
2849
+ return ["light", "dark"].includes(l);
2850
+ }
2851
+ },
2852
+ // Cores do tema light
2853
+ lightTextColor: {
2854
+ type: String,
2855
+ default: "#333333"
2856
+ },
2857
+ lightTextColorHover: {
2353
2858
  type: String,
2354
2859
  default: "#000000"
2355
2860
  },
2356
- textHoverColor: {
2861
+ lightButtonColor: {
2357
2862
  type: String,
2358
- default: "tomato"
2863
+ default: "#f5f5f5"
2359
2864
  },
2360
- buttonColor: {
2865
+ lightButtonColorHover: {
2361
2866
  type: String,
2362
- default: "#faf77d"
2867
+ default: "#e0e0e0"
2363
2868
  },
2364
- buttonHoverColor: {
2869
+ lightButtonShadowColor: {
2870
+ type: String,
2871
+ default: "#cccccc"
2872
+ },
2873
+ lightBorderColor: {
2365
2874
  type: String,
2366
- default: "#faf77d"
2875
+ default: "#cccccc"
2367
2876
  },
2368
- buttonShadowColor: {
2877
+ lightDisabledBgColor: {
2369
2878
  type: String,
2370
- default: "#01d7b0"
2879
+ default: "#dfdfd9"
2371
2880
  },
2372
- borderColor: {
2881
+ // Cores do tema dark
2882
+ darkTextColor: {
2373
2883
  type: String,
2374
- default: "#191a1b"
2884
+ default: "#ffffff"
2885
+ },
2886
+ darkTextColorHover: {
2887
+ type: String,
2888
+ default: "#ffffff"
2889
+ },
2890
+ darkButtonColor: {
2891
+ type: String,
2892
+ default: "#2d2d2d"
2893
+ },
2894
+ darkButtonColorHover: {
2895
+ type: String,
2896
+ default: "#3d3d3d"
2897
+ },
2898
+ darkButtonShadowColor: {
2899
+ type: String,
2900
+ default: "#555555"
2901
+ },
2902
+ darkBorderColor: {
2903
+ type: String,
2904
+ default: "#555555"
2905
+ },
2906
+ darkDisabledBgColor: {
2907
+ type: String,
2908
+ default: "rgba(40, 42, 54, 1)"
2375
2909
  },
2376
2910
  borderRadius: {
2377
2911
  type: Number,
@@ -2413,113 +2947,119 @@ const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
2413
2947
  }
2414
2948
  },
2415
2949
  emits: ["clicked"],
2416
- setup(e, { emit: b }) {
2417
- fe((u) => ({
2418
- "7864c805": $.value,
2419
- ff8538d4: i.value,
2420
- "46d817bb": g.value,
2421
- bd8907d4: a.value,
2422
- "11ca4346": r.value,
2423
- f44d2ba2: p.value,
2424
- a3710a74: o.value
2950
+ setup(e, { emit: l }) {
2951
+ xe((k) => ({
2952
+ "25941b92": s.value,
2953
+ "6279d744": E.value,
2954
+ "43599ee9": z.value,
2955
+ "100ad2ec": u.value,
2956
+ "4791f544": r.value,
2957
+ c96e2750: h.value,
2958
+ "1bbd23d3": B.value,
2959
+ "56938e58": i.value,
2960
+ "5887d1f2": oe.value,
2961
+ "58626d17": c.value,
2962
+ "23eedd90": v.value,
2963
+ eb8e951c: be.value,
2964
+ "29d26e6a": ie.value,
2965
+ "7ef7fb36": H.value,
2966
+ "86b88a2c": M.value,
2967
+ "0f026316": n.value,
2968
+ "26d87bba": g.value
2425
2969
  }));
2426
- const X = b, D = e, {
2427
- display: j,
2428
- ariaLabel: E,
2429
- ariaAttrs: C,
2430
- buttonColor: H,
2431
- borderColor: A,
2432
- buttonHoverColor: O,
2433
- buttonShadowColor: N,
2434
- borderRadius: x,
2435
- textColor: V,
2436
- textHoverColor: w,
2437
- width: I,
2438
- paddingX: S,
2439
- paddingY: T,
2440
- disabled: f,
2441
- fontFamily: y,
2442
- fontSize: L,
2443
- fontWeight: W
2444
- } = ce(D), m = t(() => {
2445
- const u = f.value ? "component-disabled" : "", n = j.value !== "b" ? "inline-block" : "block", c = H.value ? H.value : "#ffffff", k = O.value ? O.value : "#000000", F = N.value ? N.value : "#01d7b0", G = A.value ? A.value : "#ffe54c", le = !x.value || x.value < 0 ? 0 : x.value, ae = V.value ? V.value : "#ffffff", K = w.value ? w.value : "#000000", ne = !I.value || I.value < 86 ? 86 : I.value, de = !S.value || S.value < 0 ? 1 : S.value, U = !T.value || T.value < 0 ? 0.2 : T.value, be = y.value ? y.value : "'Lato', sans-serif", Z = L.value ? L.value : "1.6em", pe = !W.value || W.value < 0 ? 200 : W.value;
2970
+ const X = l, ae = e, {
2971
+ display: q,
2972
+ ariaLabel: Q,
2973
+ ariaAttrs: y,
2974
+ theme: Y,
2975
+ lightTextColor: U,
2976
+ lightTextColorHover: te,
2977
+ lightButtonColor: j,
2978
+ lightButtonColorHover: Z,
2979
+ lightButtonShadowColor: F,
2980
+ lightBorderColor: G,
2981
+ lightDisabledBgColor: ee,
2982
+ darkTextColor: W,
2983
+ darkTextColorHover: L,
2984
+ darkButtonColor: V,
2985
+ darkButtonColorHover: I,
2986
+ darkButtonShadowColor: b,
2987
+ darkBorderColor: T,
2988
+ darkDisabledBgColor: f,
2989
+ borderRadius: m,
2990
+ width: d,
2991
+ paddingX: _,
2992
+ paddingY: S,
2993
+ disabled: D,
2994
+ fontFamily: P,
2995
+ fontSize: J,
2996
+ fontWeight: w
2997
+ } = Be(ae), x = t(() => {
2998
+ const k = D.value ? "component-disabled" : "", ue = q.value !== "b" ? "inline-block" : "block", ne = !m.value || m.value < 0 ? 0 : m.value, me = !d.value || d.value < 86 ? 86 : d.value, ge = !_.value || _.value < 0 ? 1 : _.value, Ie = !S.value || S.value < 0 ? 0.2 : S.value, _e = P.value ? P.value : "'Lato', sans-serif", De = J.value ? J.value : "1.6em", Ne = !w.value || w.value < 0 ? 200 : w.value;
2446
2999
  return {
2447
- disabled: u,
2448
- display: n,
2449
- buttonColor: c,
2450
- buttonHoverColor: k,
2451
- buttonShadowColor: F,
2452
- borderColor: G,
2453
- borderRadius: le,
2454
- textColor: ae,
2455
- textHoverColor: K,
2456
- width: ne,
2457
- paddingX: de,
2458
- paddingY: U,
2459
- font: be,
2460
- fontSize: Z,
2461
- fontWeight: pe
3000
+ disabled: k,
3001
+ display: ue,
3002
+ borderRadius: ne,
3003
+ width: me,
3004
+ paddingX: ge,
3005
+ paddingY: Ie,
3006
+ font: _e,
3007
+ fontSize: De,
3008
+ fontWeight: Ne
2462
3009
  };
2463
- }), h = t(() => m.value.disabled), R = t(() => ({
2464
- display: m.value.display
2465
- })), s = t(() => {
2466
- const u = m.value, n = u.display === "block" ? "auto" : `${u.width}px`;
3010
+ }), R = t(() => x.value.disabled), K = t(() => ({
3011
+ display: x.value.display
3012
+ })), p = t(() => {
3013
+ const k = x.value, ue = k.display === "block" ? "auto" : `${k.width}px`;
2467
3014
  return {
2468
- border: `2px solid ${u.borderColor}`,
2469
- borderRadius: `${u.borderRadius}rem`,
3015
+ borderRadius: `${k.borderRadius}rem`,
2470
3016
  minWidth: "33px",
2471
- width: n,
2472
- padding: `${u.paddingY}rem ${u.paddingX}rem`,
3017
+ width: ue,
3018
+ padding: `${k.paddingY}rem ${k.paddingX}rem`,
2473
3019
  lineHeight: "1.42857143",
2474
- fontSize: u.fontSize,
2475
- fontWeight: u.fontWeight
3020
+ fontSize: k.fontSize,
3021
+ fontWeight: k.fontWeight
2476
3022
  };
2477
- }), $ = t(() => m.value.font), g = t(() => m.value.textColor), p = t(() => m.value.textHoverColor), i = t(() => m.value.buttonColor), r = t(() => m.value.buttonHoverColor), a = t(() => {
2478
- const u = m.value;
2479
- return `3px 3px 0 -1px ${u.buttonShadowColor}, 3px 3px 0 ${u.buttonShadowColor}`;
2480
- }), o = t(() => {
2481
- const u = m.value;
2482
- return `0 0 0 -1px ${u.buttonShadowColor}, 0 0 0 ${u.buttonShadowColor};`;
2483
- }), d = t(() => {
2484
- const u = {};
2485
- C.value && Object.keys(C.value).forEach((k) => u[`aria-${k}`] = C.value[k]);
2486
- const n = {
2487
- "aria-label": E.value,
2488
- "aria-disabled": f.value,
2489
- ...u
3023
+ }), s = t(() => x.value.font), N = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), z = t(() => U.value), B = t(() => te.value), E = t(() => j.value), h = t(() => Z.value), r = t(() => `3px 3px 0 -1px ${F.value}, 3px 3px 0 ${F.value}`), i = t(() => `0 0 0 -1px ${F.value}, 0 0 0 ${F.value}`), u = t(() => G.value), n = t(() => ee.value), c = t(() => W.value), H = t(() => L.value), oe = t(() => V.value), ie = t(() => I.value), be = t(() => `3px 3px 0 -1px ${b.value}, 3px 3px 0 ${b.value}`), M = t(() => `0 0 0 -1px ${b.value}, 0 0 0 ${b.value}`), v = t(() => T.value), g = t(() => f.value), le = t(() => {
3024
+ const k = {};
3025
+ y.value && Object.keys(y.value).forEach((me) => k[`aria-${me}`] = y.value[me]);
3026
+ const ue = {
3027
+ "aria-label": Q.value,
3028
+ "aria-disabled": D.value,
3029
+ ...k
2490
3030
  };
2491
3031
  return Object.fromEntries(
2492
- Object.entries(n).filter(([c, k]) => k != null)
3032
+ Object.entries(ue).filter(([ne, me]) => me != null)
2493
3033
  );
2494
- }), v = () => {
3034
+ }), $ = () => {
2495
3035
  X("clicked");
2496
3036
  };
2497
- return (u, n) => e.nbId ? (J(), Q("div", ie({
3037
+ return (k, ue) => e.nbId ? (fe(), ve("div", Se({
2498
3038
  key: 0,
2499
- class: ["nb-wrapper", h.value],
2500
- style: [R.value],
3039
+ class: ["nb-wrapper", R.value],
3040
+ style: [K.value],
2501
3041
  tabIndex: e.tabIndex,
2502
3042
  role: "button"
2503
- }, d.value, {
2504
- onClick: v,
3043
+ }, le.value, {
3044
+ onClick: $,
2505
3045
  onKeydown: [
2506
- n[0] || (n[0] = Y(z((c) => !B(f) && e.hasTabIndexEnter && v(), ["prevent"]), ["enter"])),
2507
- n[1] || (n[1] = Y(z((c) => !B(f) && e.hasTabIndexSpace && v(), ["prevent"]), ["space"]))
3046
+ ue[0] || (ue[0] = O(A((ne) => !o(D) && e.hasTabIndexEnter && $(), ["prevent"]), ["enter"])),
3047
+ ue[1] || (ue[1] = O(A((ne) => !o(D) && e.hasTabIndexSpace && $(), ["prevent"]), ["space"]))
2508
3048
  ]
2509
3049
  }), [
2510
- P("div", {
3050
+ de("div", {
2511
3051
  id: e.nbId,
2512
- class: "nb-reset component",
2513
- style: M([s.value])
3052
+ class: pe(["nb-reset component", [N.value]]),
3053
+ style: se([p.value])
2514
3054
  }, [
2515
- oe(u.$slots, "content", {}, () => [
2516
- n[2] || (n[2] = re("Default Text"))
3055
+ he(k.$slots, "content", {}, () => [
3056
+ ue[2] || (ue[2] = Ce("Default Text"))
2517
3057
  ], !0)
2518
- ], 12, Ca)
2519
- ], 16, Va)) : te("", !0);
3058
+ ], 14, Ca)
3059
+ ], 16, ha)) : ye("", !0);
2520
3060
  }
2521
- }), ha = /* @__PURE__ */ ve(Sa, [["__scopeId", "data-v-2fd5dcfb"]]);
2522
- const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
3061
+ }), xa = /* @__PURE__ */ ke(Sa, [["__scopeId", "data-v-4552bf5e"]]);
3062
+ const Ba = ["tabIndex"], ka = ["id"], Va = /* @__PURE__ */ Object.assign({
2523
3063
  name: "NbButtonUnderlineExpand",
2524
3064
  inheritAttrs: !1
2525
3065
  }, {
@@ -2533,8 +3073,8 @@ const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
2533
3073
  type: String,
2534
3074
  default: "b",
2535
3075
  validator: (e = "b") => {
2536
- const b = e ? e.toLowerCase() : "";
2537
- return ["b", "ib"].includes(b);
3076
+ const l = e ? e.toLowerCase() : "";
3077
+ return ["b", "ib"].includes(l);
2538
3078
  }
2539
3079
  },
2540
3080
  tabIndex: {
@@ -2557,21 +3097,55 @@ const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
2557
3097
  type: Object,
2558
3098
  default: () => ({})
2559
3099
  },
2560
- textColor: {
3100
+ theme: {
2561
3101
  type: String,
2562
- default: "rgb(0, 105, 255)"
3102
+ default: "light",
3103
+ validator: (e) => {
3104
+ const l = e ? e.toLowerCase() : "";
3105
+ return ["light", "dark"].includes(l);
3106
+ }
2563
3107
  },
2564
- textHoverColor: {
3108
+ // Cores do tema light
3109
+ lightTextColor: {
3110
+ type: String,
3111
+ default: "#333333"
3112
+ },
3113
+ lightTextColorHover: {
3114
+ type: String,
3115
+ default: "#000000"
3116
+ },
3117
+ lightBorderColor: {
3118
+ type: String,
3119
+ default: "#f5f5f5"
3120
+ },
3121
+ lightBorderColorHover: {
3122
+ type: String,
3123
+ default: "#e0e0e0"
3124
+ },
3125
+ lightDisabledBgColor: {
3126
+ type: String,
3127
+ default: "#dfdfd9"
3128
+ },
3129
+ // Cores do tema dark
3130
+ darkTextColor: {
3131
+ type: String,
3132
+ default: "#e0e0e0"
3133
+ },
3134
+ darkTextColorHover: {
2565
3135
  type: String,
2566
3136
  default: "#ffffff"
2567
3137
  },
2568
- borderColor: {
3138
+ darkBorderColor: {
3139
+ type: String,
3140
+ default: "#2d2d2d"
3141
+ },
3142
+ darkBorderColorHover: {
2569
3143
  type: String,
2570
- default: "rgb(0, 105, 255)"
3144
+ default: "#3d3d3d"
2571
3145
  },
2572
- borderHoverColor: {
3146
+ darkDisabledBgColor: {
2573
3147
  type: String,
2574
- default: "rgb(20, 51, 214)"
3148
+ default: "rgba(40, 42, 54, 1)"
2575
3149
  },
2576
3150
  borderHeight: {
2577
3151
  type: Number,
@@ -2619,106 +3193,117 @@ const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
2619
3193
  }
2620
3194
  },
2621
3195
  emits: ["clicked"],
2622
- setup(e, { emit: b }) {
2623
- fe((d) => ({
2624
- "0a4f3d6f": s.value,
2625
- "28a650a5": $.value,
2626
- "863c6d74": p.value,
2627
- "315d98b8": r.value,
2628
- "990798f6": g.value,
2629
- "6467f784": i.value
3196
+ setup(e, { emit: l }) {
3197
+ xe((c) => ({
3198
+ c721e4a2: R.value,
3199
+ aa546938: i.value,
3200
+ "39c72471": p.value,
3201
+ "091cda12": N.value,
3202
+ "03e4596a": s.value,
3203
+ "6bbd7a4a": z.value,
3204
+ "9a2bd2e2": B.value,
3205
+ "756886a0": h.value,
3206
+ "122383ed": E.value,
3207
+ "5daceb28": r.value
2630
3208
  }));
2631
- const X = b, D = e, {
2632
- display: j,
2633
- ariaLabel: E,
2634
- ariaAttrs: C,
2635
- borderColor: H,
2636
- borderHoverColor: A,
2637
- borderHeight: O,
2638
- textColor: N,
2639
- textHoverColor: x,
2640
- width: V,
2641
- paddingX: w,
2642
- paddingY: I,
2643
- disabled: S,
2644
- fontFamily: T,
2645
- fontSize: f,
2646
- fontWeight: y,
2647
- textAlign: L
2648
- } = ce(D), W = t(() => {
2649
- const d = S.value ? "component-disabled" : "", v = j.value !== "b" ? "inline-block" : "block", u = H.value ? H.value : "#ffffff", n = A.value ? A.value : "#000000", c = O.value ? O.value : 1.5, k = N.value ? N.value : "#ffffff", F = x.value ? x.value : "#000000", G = !V.value || V.value < 86 ? 86 : V.value, le = !w.value || w.value < 0 ? 1 : w.value, ae = !I.value || I.value < 0 ? 0.2 : I.value, K = T.value ? T.value : "'Lato', sans-serif", ne = f.value ? f.value : "1.6em", de = !y.value || y.value < 0 ? 200 : y.value, U = L.value ? L.value : "center";
3209
+ const X = l, ae = e, {
3210
+ display: q,
3211
+ ariaLabel: Q,
3212
+ ariaAttrs: y,
3213
+ theme: Y,
3214
+ lightTextColor: U,
3215
+ lightTextColorHover: te,
3216
+ lightBorderColor: j,
3217
+ lightBorderColorHover: Z,
3218
+ lightDisabledBgColor: F,
3219
+ darkTextColor: G,
3220
+ darkTextColorHover: ee,
3221
+ darkBorderColor: W,
3222
+ darkBorderColorHover: L,
3223
+ darkDisabledBgColor: V,
3224
+ borderHeight: I,
3225
+ width: b,
3226
+ paddingX: T,
3227
+ paddingY: f,
3228
+ disabled: m,
3229
+ fontFamily: d,
3230
+ fontSize: _,
3231
+ fontWeight: S,
3232
+ textAlign: D
3233
+ } = Be(ae), P = t(() => {
3234
+ const c = m.value ? "component-disabled" : "", H = q.value !== "b" ? "inline-block" : "block", oe = I.value ? I.value : 1.5, ie = !b.value || b.value < 86 ? 86 : b.value, be = !T.value || T.value < 0 ? 1 : T.value, M = !f.value || f.value < 0 ? 0.2 : f.value, v = d.value ? d.value : "'Lato', sans-serif", g = _.value ? _.value : "1.6em", le = !S.value || S.value < 0 ? 200 : S.value, $ = D.value ? D.value : "center";
2650
3235
  return {
2651
- disabled: d,
2652
- display: v,
2653
- borderColor: u,
2654
- borderHoverColor: n,
2655
- borderHeight: c,
2656
- textColor: k,
2657
- textHoverColor: F,
2658
- width: G,
2659
- paddingX: le,
2660
- paddingY: ae,
2661
- font: K,
2662
- fontSize: ne,
2663
- fontWeight: de,
2664
- textAlign: U
3236
+ disabled: c,
3237
+ display: H,
3238
+ borderHeight: oe,
3239
+ width: ie,
3240
+ paddingX: be,
3241
+ paddingY: M,
3242
+ font: v,
3243
+ fontSize: g,
3244
+ fontWeight: le,
3245
+ textAlign: $
2665
3246
  };
2666
- }), m = t(() => W.value.disabled), h = t(() => {
2667
- const d = W.value;
3247
+ }), J = t(() => P.value.disabled), w = t(() => {
3248
+ const c = P.value;
2668
3249
  return {
2669
- display: d.display,
2670
- textAlign: d.textAlign
3250
+ display: c.display,
3251
+ textAlign: c.textAlign
2671
3252
  };
2672
- }), R = t(() => {
2673
- const d = W.value;
3253
+ }), x = t(() => {
3254
+ const c = P.value;
2674
3255
  return {
2675
3256
  minWidth: "33px",
2676
- width: d.display === "block" ? "auto" : `${d.width}px`,
2677
- padding: `${d.paddingY}rem ${d.paddingX}rem`,
3257
+ width: c.display === "block" ? "auto" : `${c.width}px`,
3258
+ padding: `${c.paddingY}rem ${c.paddingX}rem`,
2678
3259
  lineHeight: "1.42857143",
2679
- fontSize: d.fontSize,
2680
- fontWeight: d.fontWeight
3260
+ fontSize: c.fontSize,
3261
+ fontWeight: c.fontWeight
2681
3262
  };
2682
- }), s = t(() => W.value.font), $ = t(() => W.value.textColor), g = t(() => W.value.textHoverColor), p = t(() => W.value.borderColor), i = t(() => W.value.borderHoverColor), r = t(() => `${W.value.borderHeight}px`), a = t(() => {
2683
- const d = {};
2684
- C.value && Object.keys(C.value).forEach((n) => d[`aria-${n}`] = C.value[n]);
2685
- const v = {
2686
- "aria-label": E.value,
2687
- "aria-disabled": S.value,
2688
- ...d
3263
+ }), R = t(() => P.value.font), K = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), p = t(() => U.value), s = t(() => te.value), N = t(() => j.value), z = t(() => Z.value);
3264
+ t(() => F.value);
3265
+ const B = t(() => G.value), E = t(() => ee.value), h = t(() => W.value), r = t(() => L.value);
3266
+ t(() => V.value);
3267
+ const i = t(() => `${P.value.borderHeight}px`), u = t(() => {
3268
+ const c = {};
3269
+ y.value && Object.keys(y.value).forEach((ie) => c[`aria-${ie}`] = y.value[ie]);
3270
+ const H = {
3271
+ "aria-label": Q.value,
3272
+ "aria-disabled": m.value,
3273
+ ...c
2689
3274
  };
2690
3275
  return Object.fromEntries(
2691
- Object.entries(v).filter(([u, n]) => n != null)
3276
+ Object.entries(H).filter(([oe, ie]) => ie != null)
2692
3277
  );
2693
- }), o = () => {
3278
+ }), n = () => {
2694
3279
  X("clicked");
2695
3280
  };
2696
- return (d, v) => e.nbId ? (J(), Q("div", ie({
3281
+ return (c, H) => e.nbId ? (fe(), ve("div", Se({
2697
3282
  key: 0,
2698
- class: ["nb-wrapper", m.value],
2699
- style: [h.value],
3283
+ class: ["nb-wrapper", J.value],
3284
+ style: [w.value],
2700
3285
  tabIndex: e.tabIndex,
2701
3286
  role: "button"
2702
- }, a.value, {
2703
- onClick: o,
3287
+ }, u.value, {
3288
+ onClick: n,
2704
3289
  onKeydown: [
2705
- v[0] || (v[0] = Y(z((u) => !B(S) && e.hasTabIndexEnter && o(), ["prevent"]), ["enter"])),
2706
- v[1] || (v[1] = Y(z((u) => !B(S) && e.hasTabIndexSpace && o(), ["prevent"]), ["space"]))
3290
+ H[0] || (H[0] = O(A((oe) => !o(m) && e.hasTabIndexEnter && n(), ["prevent"]), ["enter"])),
3291
+ H[1] || (H[1] = O(A((oe) => !o(m) && e.hasTabIndexSpace && n(), ["prevent"]), ["space"]))
2707
3292
  ]
2708
3293
  }), [
2709
- P("div", {
3294
+ de("div", {
2710
3295
  id: e.nbId,
2711
- class: "nb-reset component",
2712
- style: M([R.value])
3296
+ class: pe(["nb-reset component", [K.value]]),
3297
+ style: se([x.value])
2713
3298
  }, [
2714
- oe(d.$slots, "content", {}, () => [
2715
- v[2] || (v[2] = re("Default Text"))
3299
+ he(c.$slots, "content", {}, () => [
3300
+ H[2] || (H[2] = Ce("Default Text"))
2716
3301
  ], !0)
2717
- ], 12, wa)
2718
- ], 16, Ba)) : te("", !0);
3302
+ ], 14, ka)
3303
+ ], 16, Ba)) : ye("", !0);
2719
3304
  }
2720
- }), $a = /* @__PURE__ */ ve(Ia, [["__scopeId", "data-v-2ad5fc4a"]]);
2721
- const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
3305
+ }), Ta = /* @__PURE__ */ ke(Va, [["__scopeId", "data-v-e53b9a58"]]);
3306
+ const wa = ["tabIndex"], $a = ["id"], Ia = /* @__PURE__ */ Object.assign({
2722
3307
  name: "NbButtonUnderlineFill",
2723
3308
  inheritAttrs: !1
2724
3309
  }, {
@@ -2732,8 +3317,8 @@ const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
2732
3317
  type: String,
2733
3318
  default: "b",
2734
3319
  validator: (e = "b") => {
2735
- const b = e ? e.toLowerCase() : "";
2736
- return ["b", "ib"].includes(b);
3320
+ const l = e ? e.toLowerCase() : "";
3321
+ return ["b", "ib"].includes(l);
2737
3322
  }
2738
3323
  },
2739
3324
  tabIndex: {
@@ -2756,25 +3341,55 @@ const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
2756
3341
  type: Object,
2757
3342
  default: () => ({})
2758
3343
  },
2759
- textColor: {
3344
+ theme: {
2760
3345
  type: String,
2761
- default: "rgb(0, 105, 255)"
3346
+ default: "light",
3347
+ validator: (e) => {
3348
+ const l = e ? e.toLowerCase() : "";
3349
+ return ["light", "dark"].includes(l);
3350
+ }
2762
3351
  },
2763
- textHoverColor: {
3352
+ // Cores do tema light
3353
+ lightButtonColor: {
2764
3354
  type: String,
2765
- default: "#ffffff"
3355
+ default: "#f5f5f5"
2766
3356
  },
2767
- buttonColor: {
3357
+ lightButtonColorHover: {
2768
3358
  type: String,
2769
- default: "rgb(0, 105, 255)"
3359
+ default: "#e0e0e0"
2770
3360
  },
2771
- buttonHoverColor: {
3361
+ lightTextColor: {
2772
3362
  type: String,
2773
- default: "rgb(20, 51, 214)"
3363
+ default: "#333333"
2774
3364
  },
2775
- borderColor: {
3365
+ lightTextColorHover: {
2776
3366
  type: String,
2777
- default: "#ffe54c"
3367
+ default: "#000000"
3368
+ },
3369
+ lightDisabledBgColor: {
3370
+ type: String,
3371
+ default: "#dfdfd9"
3372
+ },
3373
+ // Cores do tema dark
3374
+ darkButtonColor: {
3375
+ type: String,
3376
+ default: "#2d2d2d"
3377
+ },
3378
+ darkButtonColorHover: {
3379
+ type: String,
3380
+ default: "#3d3d3d"
3381
+ },
3382
+ darkTextColor: {
3383
+ type: String,
3384
+ default: "#e0e0e0"
3385
+ },
3386
+ darkTextColorHover: {
3387
+ type: String,
3388
+ default: "#ffffff"
3389
+ },
3390
+ darkDisabledBgColor: {
3391
+ type: String,
3392
+ default: "rgba(40, 42, 54, 1)"
2778
3393
  },
2779
3394
  width: {
2780
3395
  type: Number,
@@ -2817,113 +3432,118 @@ const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
2817
3432
  }
2818
3433
  },
2819
3434
  emits: ["clicked"],
2820
- setup(e, { emit: b }) {
2821
- fe((a) => ({
2822
- "1b13bb01": R.value,
2823
- "330bbc92": g.value,
2824
- abbf0092: s.value,
2825
- "6f8fb06c": p.value,
2826
- "60be9fb3": $.value
3435
+ setup(e, { emit: l }) {
3436
+ xe((u) => ({
3437
+ a55578d4: x.value,
3438
+ "1ee98fc5": s.value,
3439
+ "3daf83aa": K.value,
3440
+ "240d5c77": N.value,
3441
+ ae65e09c: p.value,
3442
+ ae22f55e: E.value,
3443
+ 89672794: z.value,
3444
+ "3ebffe6b": h.value,
3445
+ "1fe79ea6": B.value
2827
3446
  }));
2828
- const X = b, D = e, {
2829
- display: j,
2830
- ariaLabel: E,
2831
- ariaAttrs: C,
2832
- buttonColor: H,
2833
- buttonHoverColor: A,
2834
- textColor: O,
2835
- textHoverColor: N,
2836
- width: x,
2837
- paddingX: V,
2838
- paddingY: w,
2839
- disabled: I,
2840
- fontFamily: S,
2841
- fontSize: T,
2842
- fontWeight: f,
2843
- textAlign: y
2844
- } = ce(D), L = t(() => {
2845
- const a = I.value ? "component-disabled" : "", o = j.value !== "b" ? "inline-block" : "block", d = H.value ? H.value : "#ffffff", v = A.value ? A.value : "#000000", u = O.value ? O.value : "#ffffff", n = N.value ? N.value : "#000000", c = !x.value || x.value < 86 ? 86 : x.value, k = !V.value || V.value < 0 ? 1 : V.value, F = !w.value || w.value < 0 ? 0.2 : w.value, G = S.value ? S.value : "'Lato', sans-serif", le = T.value ? T.value : "1.6em", ae = !f.value || f.value < 0 ? 200 : f.value, K = y.value ? y.value : "center";
3447
+ const X = l, ae = e, {
3448
+ display: q,
3449
+ ariaLabel: Q,
3450
+ ariaAttrs: y,
3451
+ theme: Y,
3452
+ lightTextColor: U,
3453
+ lightTextColorHover: te,
3454
+ lightButtonColor: j,
3455
+ lightButtonColorHover: Z,
3456
+ lightDisabledBgColor: F,
3457
+ darkTextColor: G,
3458
+ darkTextColorHover: ee,
3459
+ darkButtonColor: W,
3460
+ darkButtonColorHover: L,
3461
+ darkDisabledBgColor: V,
3462
+ width: I,
3463
+ paddingX: b,
3464
+ paddingY: T,
3465
+ disabled: f,
3466
+ fontFamily: m,
3467
+ fontSize: d,
3468
+ fontWeight: _,
3469
+ textAlign: S
3470
+ } = Be(ae), D = t(() => {
3471
+ const u = f.value ? "component-disabled" : "", n = q.value !== "b" ? "inline-block" : "block", c = !I.value || I.value < 86 ? 86 : I.value, H = !b.value || b.value < 0 ? 1 : b.value, oe = !T.value || T.value < 0 ? 0.2 : T.value, ie = m.value ? m.value : "'Lato', sans-serif", be = d.value ? d.value : "1.6em", M = !_.value || _.value < 0 ? 200 : _.value, v = S.value ? S.value : "center";
2846
3472
  return {
2847
- disabled: a,
2848
- display: o,
2849
- buttonColor: d,
2850
- buttonHoverColor: v,
2851
- textColor: u,
2852
- textHoverColor: n,
3473
+ disabled: u,
3474
+ display: n,
2853
3475
  width: c,
2854
- paddingX: k,
2855
- paddingY: F,
2856
- font: G,
2857
- fontSize: le,
2858
- fontWeight: ae,
2859
- textAlign: K
3476
+ paddingX: H,
3477
+ paddingY: oe,
3478
+ font: ie,
3479
+ fontSize: be,
3480
+ fontWeight: M,
3481
+ textAlign: v
2860
3482
  };
2861
- }), W = t(() => L.value.disabled), m = t(() => {
2862
- const a = L.value;
3483
+ }), P = t(() => D.value.disabled), J = t(() => {
3484
+ const u = D.value;
2863
3485
  return {
2864
- display: a.display,
2865
- textAlign: a.textAlign
3486
+ display: u.display,
3487
+ textAlign: u.textAlign
2866
3488
  };
2867
- }), h = t(() => {
2868
- const a = L.value;
3489
+ }), w = t(() => {
3490
+ const u = D.value;
2869
3491
  return {
2870
3492
  minWidth: "33px",
2871
- width: a.display === "block" ? "auto" : `${a.width}px`,
2872
- padding: `${a.paddingY}rem ${a.paddingX}rem`,
3493
+ width: u.display === "block" ? "auto" : `${u.width}px`,
3494
+ padding: `${u.paddingY}rem ${u.paddingX}rem`,
2873
3495
  lineHeight: "1.42857143",
2874
- fontSize: a.fontSize,
2875
- fontWeight: a.fontWeight
3496
+ fontSize: u.fontSize,
3497
+ fontWeight: u.fontWeight
2876
3498
  };
2877
- }), R = t(() => L.value.font), s = t(() => L.value.textColor), $ = t(() => L.value.textHoverColor), g = t(() => {
2878
- const a = L.value;
2879
- return `linear-gradient(${a.buttonColor}, ${a.buttonColor}) center bottom / 1px 1px repeat-x`;
2880
- }), p = t(() => {
2881
- const a = L.value;
2882
- return `linear-gradient(${a.buttonHoverColor}, ${a.buttonHoverColor}) center bottom / 100% 100% repeat-x`;
2883
- }), i = t(() => {
2884
- const a = {};
2885
- C.value && Object.keys(C.value).forEach((v) => a[`aria-${v}`] = C.value[v]);
2886
- const o = {
2887
- "aria-label": E.value,
2888
- "aria-disabled": I.value,
2889
- ...a
3499
+ }), x = t(() => D.value.font), R = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), K = t(() => U.value), p = t(() => te.value), s = t(() => `linear-gradient(${j.value}, ${j.value}) center bottom / 1px 1px repeat-x`), N = t(() => `linear-gradient(${Z.value}, ${Z.value}) center bottom / 100% 100% repeat-x`);
3500
+ t(() => F.value);
3501
+ const z = t(() => G.value), B = t(() => ee.value), E = t(() => `linear-gradient(${W.value}, ${W.value}) center bottom / 1px 1px repeat-x`), h = t(() => `linear-gradient(${L.value}, ${L.value}) center bottom / 100% 100% repeat-x`);
3502
+ t(() => V.value);
3503
+ const r = t(() => {
3504
+ const u = {};
3505
+ y.value && Object.keys(y.value).forEach((H) => u[`aria-${H}`] = y.value[H]);
3506
+ const n = {
3507
+ "aria-label": Q.value,
3508
+ "aria-disabled": f.value,
3509
+ ...u
2890
3510
  };
2891
3511
  return Object.fromEntries(
2892
- Object.entries(o).filter(([d, v]) => v != null)
3512
+ Object.entries(n).filter(([c, H]) => H != null)
2893
3513
  );
2894
- }), r = () => {
3514
+ }), i = () => {
2895
3515
  X("clicked");
2896
3516
  };
2897
- return (a, o) => e.nbId ? (J(), Q("div", ie({
3517
+ return (u, n) => e.nbId ? (fe(), ve("div", Se({
2898
3518
  key: 0,
2899
- class: ["nb-wrapper", W.value],
2900
- style: [m.value],
3519
+ class: ["nb-wrapper", P.value],
3520
+ style: [J.value],
2901
3521
  tabIndex: e.tabIndex,
2902
3522
  role: "button"
2903
- }, i.value, {
2904
- onClick: r,
3523
+ }, r.value, {
3524
+ onClick: i,
2905
3525
  onKeydown: [
2906
- o[0] || (o[0] = Y(z((d) => !B(I) && e.hasTabIndexEnter && r(), ["prevent"]), ["enter"])),
2907
- o[1] || (o[1] = Y(z((d) => !B(I) && e.hasTabIndexSpace && r(), ["prevent"]), ["space"]))
3526
+ n[0] || (n[0] = O(A((c) => !o(f) && e.hasTabIndexEnter && i(), ["prevent"]), ["enter"])),
3527
+ n[1] || (n[1] = O(A((c) => !o(f) && e.hasTabIndexSpace && i(), ["prevent"]), ["space"]))
2908
3528
  ]
2909
3529
  }), [
2910
- P("div", {
3530
+ de("div", {
2911
3531
  id: e.nbId,
2912
- class: "nb-reset component",
2913
- style: M([h.value])
3532
+ class: pe(["nb-reset component", [R.value]]),
3533
+ style: se([w.value])
2914
3534
  }, [
2915
- oe(a.$slots, "content", {}, () => [
2916
- o[2] || (o[2] = re("Default Text"))
3535
+ he(u.$slots, "content", {}, () => [
3536
+ n[2] || (n[2] = Ce("Default Text"))
2917
3537
  ], !0)
2918
- ], 12, Ha)
2919
- ], 16, Na)) : te("", !0);
3538
+ ], 14, $a)
3539
+ ], 16, wa)) : ye("", !0);
2920
3540
  }
2921
- }), Ta = /* @__PURE__ */ ve(Aa, [["__scopeId", "data-v-9169eb04"]]);
2922
- const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expanded", "tabindex"], Wa = ["aria-expanded", "title", "tabindex"], _a = ["disabled", "tabindex", "onClick", "onKeydown"], Ra = {
3541
+ }), _a = /* @__PURE__ */ ke(Ia, [["__scopeId", "data-v-d0591167"]]);
3542
+ const Da = ["id"], Na = ["disabled", "aria-label", "aria-haspopup", "aria-expanded", "tabindex"], Ha = ["aria-expanded", "title", "tabindex"], Aa = ["disabled", "tabindex", "onClick", "onKeydown"], La = {
2923
3543
  key: 0,
2924
3544
  class: "split-button__menu-item-icon"
2925
- }, za = { class: "split-button__menu-item-text" }, La = /* @__PURE__ */ Object.assign({
2926
- name: "NbButtonSplit",
3545
+ }, Oa = { class: "split-button__menu-item-text" }, Wa = /* @__PURE__ */ Object.assign({
3546
+ name: "NbButtonSplitDropdown",
2927
3547
  inheritAttrs: !1
2928
3548
  }, {
2929
3549
  __name: "NbButtonSplitDropdown",
@@ -2936,8 +3556,8 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
2936
3556
  type: String,
2937
3557
  default: "ib",
2938
3558
  validator: (e = "ib") => {
2939
- const b = e ? e.toLowerCase() : "";
2940
- return ["b", "ib"].includes(b);
3559
+ const l = e ? e.toLowerCase() : "";
3560
+ return ["b", "ib"].includes(l);
2941
3561
  }
2942
3562
  },
2943
3563
  mainButtonText: {
@@ -2952,7 +3572,7 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
2952
3572
  type: Array,
2953
3573
  default: () => [],
2954
3574
  validator: (e) => Array.isArray(e) && e.every(
2955
- (b) => typeof b == "object" && b !== null && "label" in b
3575
+ (l) => typeof l == "object" && l !== null && "label" in l
2956
3576
  )
2957
3577
  },
2958
3578
  popupButtonTitle: {
@@ -2979,54 +3599,6 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
2979
3599
  type: Object,
2980
3600
  default: () => ({})
2981
3601
  },
2982
- textColor: {
2983
- type: String,
2984
- default: "#ffffff"
2985
- },
2986
- textHoverColor: {
2987
- type: String,
2988
- default: "#ffffff"
2989
- },
2990
- buttonColor: {
2991
- type: String,
2992
- default: "hsl(220 75% 50%)"
2993
- },
2994
- buttonHoverColor: {
2995
- type: String,
2996
- default: "hsl(220 75% 45%)"
2997
- },
2998
- popupButtonHoverColor: {
2999
- type: String,
3000
- default: null
3001
- },
3002
- popupTextHoverColor: {
3003
- type: String,
3004
- default: "null"
3005
- },
3006
- buttonActiveColor: {
3007
- type: String,
3008
- default: "hsl(220 75% 40%)"
3009
- },
3010
- borderColor: {
3011
- type: String,
3012
- default: "hsl(220 50% 75%)"
3013
- },
3014
- borderHoverColor: {
3015
- type: String,
3016
- default: "tomato"
3017
- },
3018
- popupBgColor: {
3019
- type: String,
3020
- default: "#ffffff"
3021
- },
3022
- menuItemHoverColor: {
3023
- type: String,
3024
- default: "hsl(220 75% 95%)"
3025
- },
3026
- menuItemTextColor: {
3027
- type: String,
3028
- default: "#000000"
3029
- },
3030
3602
  menuItemFocusOutlineColor: {
3031
3603
  type: String,
3032
3604
  default: null
@@ -3107,376 +3679,474 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
3107
3679
  popupFontWeight: {
3108
3680
  type: Number,
3109
3681
  default: null
3682
+ },
3683
+ theme: {
3684
+ type: String,
3685
+ default: "light",
3686
+ validator: (e) => ["dark", "light"].indexOf(e) !== -1
3687
+ },
3688
+ // Cores do tema light
3689
+ lightButtonColor: {
3690
+ type: String,
3691
+ default: "#f5f5f5"
3692
+ },
3693
+ lightButtonColorHover: {
3694
+ type: String,
3695
+ default: "#e0e0e0"
3696
+ },
3697
+ lightTextColor: {
3698
+ type: String,
3699
+ default: "#333333"
3700
+ },
3701
+ lightTextColorHover: {
3702
+ type: String,
3703
+ default: "#000000"
3704
+ },
3705
+ lightBorderColor: {
3706
+ type: String,
3707
+ default: "#cccccc"
3708
+ },
3709
+ lightBorderColorHover: {
3710
+ type: String,
3711
+ default: "#bbbbbb"
3712
+ },
3713
+ lightPopupBgColor: {
3714
+ type: String,
3715
+ default: "#ffffff"
3716
+ },
3717
+ lightMenuItemHoverColor: {
3718
+ type: String,
3719
+ default: "#f5f5f5"
3720
+ },
3721
+ lightMenuItemTextColor: {
3722
+ type: String,
3723
+ default: "#333333"
3724
+ },
3725
+ lightDisabledBgColor: {
3726
+ type: String,
3727
+ default: "#dfdfd9"
3728
+ },
3729
+ // Cores do tema dark
3730
+ darkButtonColor: {
3731
+ type: String,
3732
+ default: "#2d2d2d"
3733
+ },
3734
+ darkButtonColorHover: {
3735
+ type: String,
3736
+ default: "#3d3d3d"
3737
+ },
3738
+ darkTextColor: {
3739
+ type: String,
3740
+ default: "#e0e0e0"
3741
+ },
3742
+ darkTextColorHover: {
3743
+ type: String,
3744
+ default: "#ffffff"
3745
+ },
3746
+ darkBorderColor: {
3747
+ type: String,
3748
+ default: "#555555"
3749
+ },
3750
+ darkBorderColorHover: {
3751
+ type: String,
3752
+ default: "#666666"
3753
+ },
3754
+ darkPopupBgColor: {
3755
+ type: String,
3756
+ default: "#2d2d2d"
3757
+ },
3758
+ darkMenuItemHoverColor: {
3759
+ type: String,
3760
+ default: "#3d3d3d"
3761
+ },
3762
+ darkMenuItemTextColor: {
3763
+ type: String,
3764
+ default: "#e0e0e0"
3765
+ },
3766
+ darkDisabledBgColor: {
3767
+ type: String,
3768
+ default: "rgba(40, 42, 54, 1)"
3110
3769
  }
3111
3770
  },
3112
3771
  emits: ["clicked", "main-clicked", "menu-item-clicked"],
3113
- setup(e, { emit: b }) {
3114
- fe((l) => ({
3115
- "59ec4fa0": se.value.font
3772
+ setup(e, { emit: l }) {
3773
+ xe((a) => ({
3774
+ a2b87d56: ge.value.font,
3775
+ "68e0aa8a": o(M),
3776
+ "230f2f9c": o(h),
3777
+ "48b2d97c": o(n),
3778
+ "60b88ec8": o(v),
3779
+ "5d16bf24": o(p),
3780
+ "08f39670": o(r)
3116
3781
  }));
3117
- const X = b, D = e, {
3118
- display: j,
3119
- mainButtonText: E,
3120
- mainButtonAriaLabel: C,
3121
- menuItems: H,
3122
- popupButtonTitle: A,
3123
- ariaLabel: O,
3124
- ariaAttrs: N,
3125
- textColor: x,
3126
- textHoverColor: V,
3127
- buttonColor: w,
3128
- buttonHoverColor: I,
3129
- popupButtonHoverColor: S,
3130
- popupTextHoverColor: T,
3131
- buttonActiveColor: f,
3132
- borderColor: y,
3133
- borderHoverColor: L,
3134
- popupBgColor: W,
3135
- menuItemHoverColor: m,
3136
- menuItemTextColor: h,
3137
- menuItemFocusOutlineColor: R,
3138
- menuItemFocusOutlineWidth: s,
3139
- menuItemFocusOutlineOffset: $,
3140
- showBorder: g,
3141
- showPopupButton: p,
3142
- borderRadius: i,
3143
- popupBorderRadius: r,
3144
- width: a,
3145
- paddingX: o,
3146
- paddingY: d,
3147
- popupPaddingX: v,
3148
- popupPaddingY: u,
3149
- disabled: n,
3150
- fontFamily: c,
3151
- fontSize: k,
3152
- fontWeight: F,
3153
- popupFontFamily: G,
3154
- popupFontSize: le,
3155
- popupFontWeight: ae
3156
- } = ce(D), K = me(!1), ne = me(null), de = me(null), U = me(null), be = me(null), Z = me(-1), pe = me(!1), se = t(() => {
3157
- const l = n.value ? "component-disabled" : "", _ = j.value !== "b" ? "inline-block" : "block", q = w.value ? w.value : "hsl(220 75% 50%)", ee = I.value ? I.value : "hsl(220 75% 45%)", ye = f.value ? f.value : "hsl(220 75% 40%)", ke = y.value ? y.value : "hsl(220 50% 75%)", et = L.value || ke, Oe = !i.value || i.value < 0 ? 0 : i.value, tt = r.value !== null && r.value !== void 0 ? r.value < 0 ? 0 : r.value : Oe, at = [!1, !0].includes(g.value) ? g.value : !0, ot = [!1, !0].includes(p.value) ? p.value : !0, lt = x.value ? x.value : "#ffffff", We = V.value ? V.value : "#ffffff", nt = S.value || ee, ut = T.value || We, rt = W.value ? W.value : "#ffffff", dt = m.value ? m.value : "hsl(220 75% 95%)", st = h.value ? h.value : "#000000", it = R.value || "currentColor", ft = s.value || "2px", ct = $.value || "-2px", _e = !o.value || o.value < 0 ? 1 : o.value, Re = !d.value || d.value < 0 ? 0.32 : d.value, vt = v.value !== null && v.value !== void 0 ? v.value < 0 ? 1 : v.value : _e, bt = u.value !== null && u.value !== void 0 ? u.value < 0 ? 0.2 : u.value : Re, ze = c.value ? c.value : "'Lato', sans-serif", Le = k.value ? k.value : "1.6em", Ye = !F.value || F.value < 0 ? 400 : F.value, pt = G.value || ze, yt = le.value || Le, mt = ae.value !== null && ae.value !== void 0 ? ae.value < 0 ? 400 : ae.value : Ye;
3782
+ const X = l, ae = e, {
3783
+ display: q,
3784
+ mainButtonText: Q,
3785
+ mainButtonAriaLabel: y,
3786
+ menuItems: Y,
3787
+ popupButtonTitle: U,
3788
+ ariaLabel: te,
3789
+ ariaAttrs: j,
3790
+ menuItemFocusOutlineColor: Z,
3791
+ menuItemFocusOutlineWidth: F,
3792
+ menuItemFocusOutlineOffset: G,
3793
+ showBorder: ee,
3794
+ showPopupButton: W,
3795
+ borderRadius: L,
3796
+ popupBorderRadius: V,
3797
+ width: I,
3798
+ paddingX: b,
3799
+ paddingY: T,
3800
+ popupPaddingX: f,
3801
+ popupPaddingY: m,
3802
+ disabled: d,
3803
+ fontFamily: _,
3804
+ fontSize: S,
3805
+ fontWeight: D,
3806
+ popupFontFamily: P,
3807
+ popupFontSize: J,
3808
+ popupFontWeight: w,
3809
+ theme: x,
3810
+ lightButtonColor: R,
3811
+ lightButtonColorHover: K,
3812
+ lightTextColor: p,
3813
+ lightTextColorHover: s,
3814
+ lightBorderColor: N,
3815
+ lightBorderColorHover: z,
3816
+ lightPopupBgColor: B,
3817
+ lightMenuItemHoverColor: E,
3818
+ lightMenuItemTextColor: h,
3819
+ lightDisabledBgColor: r,
3820
+ darkButtonColor: i,
3821
+ darkButtonColorHover: u,
3822
+ darkTextColor: n,
3823
+ darkTextColorHover: c,
3824
+ darkBorderColor: H,
3825
+ darkBorderColorHover: oe,
3826
+ darkPopupBgColor: ie,
3827
+ darkMenuItemHoverColor: be,
3828
+ darkMenuItemTextColor: M,
3829
+ darkDisabledBgColor: v
3830
+ } = Be(ae), g = Te(!1), le = Te(null), $ = Te(null), k = Te(null), ue = Te(null), ne = Te(-1), me = Te(!1), ge = t(() => {
3831
+ const a = d.value ? "component-disabled" : "", C = q.value !== "b" ? "inline-block" : "block", re = !L.value || L.value < 0 ? 0 : L.value, ce = V.value !== null && V.value !== void 0 ? V.value < 0 ? 0 : V.value : re, Ve = [!1, !0].includes(ee.value) ? ee.value : !0, we = [!1, !0].includes(W.value) ? W.value : !0, $e = Z.value || "currentColor", He = F.value || "2px", Xe = G.value || "-2px", Ke = !b.value || b.value < 0 ? 1 : b.value, Me = !T.value || T.value < 0 ? 0.32 : T.value, ct = f.value !== null && f.value !== void 0 ? f.value < 0 ? 1 : f.value : Ke, ft = m.value !== null && m.value !== void 0 ? m.value < 0 ? 0.2 : m.value : Me, qe = _.value ? _.value : "'Lato', sans-serif", Ue = S.value ? S.value : "1.6em", Ge = !D.value || D.value < 0 ? 400 : D.value, vt = P.value || qe, pt = J.value || Ue, bt = w.value !== null && w.value !== void 0 ? w.value < 0 ? 400 : w.value : Ge, gt = x.value ? x.value : "light";
3158
3832
  return {
3159
- disabled: l,
3160
- display: _,
3161
- buttonColor: q,
3162
- buttonHoverColor: ee,
3163
- popupButtonHoverColor: nt,
3164
- popupTextHoverColor: ut,
3165
- buttonActiveColor: ye,
3166
- borderColor: ke,
3167
- borderHoverColor: et,
3168
- showBorder: at,
3169
- showPopupButton: ot,
3170
- borderRadius: Oe,
3171
- popupBorderRadius: tt,
3172
- textColor: lt,
3173
- textHoverColor: We,
3174
- popupBgColor: rt,
3175
- menuItemHoverColor: dt,
3176
- menuItemTextColor: st,
3177
- menuItemFocusOutlineColor: it,
3178
- menuItemFocusOutlineWidth: ft,
3179
- menuItemFocusOutlineOffset: ct,
3180
- paddingX: _e,
3181
- paddingY: Re,
3182
- popupPaddingX: vt,
3183
- popupPaddingY: bt,
3184
- font: ze,
3185
- fontSize: Le,
3186
- fontWeight: Ye,
3187
- popupFont: pt,
3188
- popupFontSize: yt,
3189
- popupFontWeight: mt
3833
+ disabled: a,
3834
+ display: C,
3835
+ showBorder: Ve,
3836
+ showPopupButton: we,
3837
+ borderRadius: re,
3838
+ popupBorderRadius: ce,
3839
+ menuItemFocusOutlineColor: $e,
3840
+ menuItemFocusOutlineWidth: He,
3841
+ menuItemFocusOutlineOffset: Xe,
3842
+ paddingX: Ke,
3843
+ paddingY: Me,
3844
+ popupPaddingX: ct,
3845
+ popupPaddingY: ft,
3846
+ font: qe,
3847
+ fontSize: Ue,
3848
+ fontWeight: Ge,
3849
+ popupFont: vt,
3850
+ popupFontSize: pt,
3851
+ popupFontWeight: bt,
3852
+ theme: gt
3190
3853
  };
3191
- }), ge = t(() => se.value.disabled), he = t(() => ({
3192
- display: se.value.display
3193
- })), Be = t(() => {
3194
- const l = se.value, _ = l.display === "block" ? {} : { width: a.value ? `${a.value}px` : "auto" };
3854
+ }), Ie = t(() => {
3855
+ switch (ge.value.theme) {
3856
+ case "dark":
3857
+ return "component__theme--dark";
3858
+ default:
3859
+ return "component__theme--light";
3860
+ }
3861
+ }), _e = t(() => ge.value.disabled), De = t(() => ({
3862
+ display: ge.value.display
3863
+ })), Ne = t(() => {
3864
+ const a = ge.value, C = a.display === "block" ? {} : { width: I.value ? `${I.value}px` : "auto" };
3195
3865
  return {
3196
- borderRadius: `${l.borderRadius}rem`,
3866
+ borderRadius: `${a.borderRadius}rem`,
3197
3867
  overflow: "visible",
3198
3868
  position: "relative",
3199
- ..._
3869
+ ...C
3200
3870
  };
3201
- }), we = t(() => {
3202
- const l = se.value, _ = a.value ? `${a.value}px` : "auto", q = l.showPopupButton ? {
3203
- borderTopLeftRadius: `${l.borderRadius}rem`,
3204
- borderBottomLeftRadius: `${l.borderRadius}rem`,
3871
+ }), Re = t(() => {
3872
+ const a = ge.value, C = I.value ? `${I.value}px` : "auto", re = a.showPopupButton ? {
3873
+ borderTopLeftRadius: `${a.borderRadius}rem`,
3874
+ borderBottomLeftRadius: `${a.borderRadius}rem`,
3205
3875
  borderTopRightRadius: "0",
3206
3876
  borderBottomRightRadius: "0"
3207
3877
  } : {
3208
- borderRadius: `${l.borderRadius}rem`
3209
- }, ee = l.showBorder ? l.showPopupButton ? {
3210
- borderTop: `1px solid ${l.borderColor}`,
3211
- borderBottom: `1px solid ${l.borderColor}`,
3212
- borderLeft: `1px solid ${l.borderColor}`,
3878
+ borderRadius: `${a.borderRadius}rem`
3879
+ }, ce = a.showBorder ? a.showPopupButton ? {
3880
+ borderTop: `1px solid ${a.theme === "dark" ? H.value : N.value}`,
3881
+ borderBottom: `1px solid ${a.theme === "dark" ? H.value : N.value}`,
3882
+ borderLeft: `1px solid ${a.theme === "dark" ? H.value : N.value}`,
3213
3883
  borderRight: "none"
3214
3884
  } : {
3215
- border: `1px solid ${l.borderColor}`
3216
- } : { border: "none" };
3885
+ border: `1px solid ${a.theme === "dark" ? H.value : N.value}`
3886
+ } : { border: "none" }, Ve = a.theme === "dark" ? i.value : R.value, we = a.theme === "dark" ? n.value : p.value, $e = a.theme === "dark" ? u.value : K.value, He = a.theme === "dark" ? c.value : s.value, Xe = a.theme === "dark" ? oe.value : z.value;
3217
3887
  return {
3218
- color: l.textColor,
3219
- backgroundColor: l.buttonColor,
3220
- padding: `${l.paddingY}rem ${l.paddingX}rem`,
3888
+ color: we,
3889
+ backgroundColor: Ve,
3890
+ padding: `${a.paddingY}rem ${a.paddingX}rem`,
3221
3891
  lineHeight: "1.42857143",
3222
- fontSize: l.fontSize,
3223
- fontWeight: l.fontWeight,
3224
- fontFamily: l.font,
3225
- ...ee,
3226
- ...q,
3227
- minWidth: _ === "auto" ? "33px" : _,
3228
- "--main-button-hover-color": l.buttonHoverColor,
3229
- "--main-button-active-color": l.buttonActiveColor,
3230
- "--main-text-hover-color": l.textHoverColor,
3231
- "--main-border-hover-color": l.borderHoverColor
3892
+ fontSize: a.fontSize,
3893
+ fontWeight: a.fontWeight,
3894
+ fontFamily: a.font,
3895
+ ...ce,
3896
+ ...re,
3897
+ minWidth: C === "auto" ? "33px" : C,
3898
+ "--main-button-hover-color": $e,
3899
+ "--main-button-active-color": $e,
3900
+ "--main-text-hover-color": He,
3901
+ "--main-border-hover-color": Xe
3232
3902
  };
3233
- }), Xe = t(() => {
3234
- const l = se.value, _ = l.showBorder ? {
3235
- borderTop: `1px solid ${l.borderColor}`,
3236
- borderBottom: `1px solid ${l.borderColor}`,
3237
- borderRight: `1px solid ${l.borderColor}`,
3238
- borderLeft: `1px solid ${l.borderColor}`
3239
- } : { border: "none" };
3903
+ }), Je = t(() => {
3904
+ const a = ge.value, C = a.theme === "dark" ? H.value : N.value, re = a.showBorder ? {
3905
+ borderTop: `1px solid ${C}`,
3906
+ borderBottom: `1px solid ${C}`,
3907
+ borderRight: `1px solid ${C}`,
3908
+ borderLeft: `1px solid ${C}`
3909
+ } : { border: "none" }, ce = a.theme === "dark" ? i.value : R.value, Ve = a.theme === "dark" ? n.value : p.value, we = a.theme === "dark" ? u.value : K.value, $e = a.theme === "dark" ? c.value : s.value, He = a.theme === "dark" ? oe.value : z.value;
3240
3910
  return {
3241
- color: l.textColor,
3242
- backgroundColor: l.buttonColor,
3243
- padding: `${l.paddingY}rem ${l.paddingX * 0.5}rem`,
3244
- fontSize: l.fontSize,
3245
- fontWeight: l.fontWeight,
3246
- fontFamily: l.font,
3247
- ..._,
3248
- borderTopRightRadius: `${l.borderRadius}rem`,
3249
- borderBottomRightRadius: `${l.borderRadius}rem`,
3911
+ color: Ve,
3912
+ backgroundColor: ce,
3913
+ padding: `${a.paddingY}rem ${a.paddingX * 0.5}rem`,
3914
+ fontSize: a.fontSize,
3915
+ fontWeight: a.fontWeight,
3916
+ fontFamily: a.font,
3917
+ ...re,
3918
+ borderTopRightRadius: `${a.borderRadius}rem`,
3919
+ borderBottomRightRadius: `${a.borderRadius}rem`,
3250
3920
  borderTopLeftRadius: "0",
3251
3921
  borderBottomLeftRadius: "0",
3252
- "--popup-button-hover-color": l.popupButtonHoverColor,
3253
- "--popup-button-active-color": l.buttonActiveColor,
3254
- "--popup-text-hover-color": l.popupTextHoverColor,
3255
- "--popup-border-hover-color": l.borderHoverColor
3922
+ "--popup-button-hover-color": we,
3923
+ "--popup-button-active-color": we,
3924
+ "--popup-text-hover-color": $e,
3925
+ "--popup-border-hover-color": He
3256
3926
  };
3257
- }), je = t(() => {
3258
- const l = se.value;
3927
+ }), Qe = t(() => {
3928
+ const a = ge.value, C = a.theme === "dark" ? ie.value : B.value, re = a.theme === "dark" ? M.value : h.value, ce = a.theme === "dark" ? be.value : E.value;
3259
3929
  return {
3260
- backgroundColor: l.popupBgColor,
3261
- color: l.menuItemTextColor,
3262
- borderRadius: `${l.popupBorderRadius}rem`,
3930
+ backgroundColor: C,
3931
+ color: re,
3932
+ borderRadius: `${a.popupBorderRadius}rem`,
3263
3933
  boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
3264
- minHeight: H.value.length === 0 ? "40px" : "auto",
3265
- "--menu-item-hover-color": l.menuItemHoverColor,
3266
- "--menu-item-focus-outline-color": l.menuItemFocusOutlineColor,
3267
- "--menu-item-focus-outline-width": l.menuItemFocusOutlineWidth,
3268
- "--menu-item-focus-outline-offset": l.menuItemFocusOutlineOffset
3934
+ minHeight: Y.value.length === 0 ? "40px" : "auto",
3935
+ "--menu-item-hover-color": ce,
3936
+ "--menu-item-focus-outline-color": a.menuItemFocusOutlineColor,
3937
+ "--menu-item-focus-outline-width": a.menuItemFocusOutlineWidth,
3938
+ "--menu-item-focus-outline-offset": a.menuItemFocusOutlineOffset
3269
3939
  };
3270
- }), Ee = t(() => se.value.popupFont), Fe = t(() => se.value.popupFontSize), De = t(() => se.value.popupFontWeight), Ke = t(() => se.value.popupPaddingX), Pe = t(() => se.value.popupPaddingY), qe = t(() => ({
3271
- fontSize: Fe.value,
3272
- fontWeight: De.value,
3273
- fontFamily: Ee.value,
3274
- padding: `${Pe.value}rem ${Ke.value}rem`
3940
+ }), Ze = t(() => ge.value.popupFont), et = t(() => ge.value.popupFontSize), tt = t(() => ge.value.popupFontWeight), at = t(() => ge.value.popupPaddingX), lt = t(() => ge.value.popupPaddingY), ot = t(() => ({
3941
+ fontSize: et.value,
3942
+ fontWeight: tt.value,
3943
+ fontFamily: Ze.value,
3944
+ padding: `${lt.value}rem ${at.value}rem`
3275
3945
  }));
3276
3946
  t(() => {
3277
- const l = {};
3278
- N.value && Object.keys(N.value).forEach((ee) => l[`aria-${ee}`] = N.value[ee]);
3279
- const _ = {
3280
- "aria-label": O.value,
3281
- "aria-disabled": n.value,
3282
- ...l
3947
+ const a = {};
3948
+ j.value && Object.keys(j.value).forEach((ce) => a[`aria-${ce}`] = j.value[ce]);
3949
+ const C = {
3950
+ "aria-label": te.value,
3951
+ "aria-disabled": d.value,
3952
+ ...a
3283
3953
  };
3284
3954
  return Object.fromEntries(
3285
- Object.entries(_).filter(([q, ee]) => ee != null)
3955
+ Object.entries(C).filter(([re, ce]) => ce != null)
3286
3956
  );
3287
3957
  });
3288
- const Me = () => {
3958
+ const nt = () => {
3289
3959
  document.dispatchEvent(new CustomEvent("splitbutton:close-all", {
3290
- detail: { excludeId: D.nbId }
3960
+ detail: { excludeId: ae.nbId }
3291
3961
  }));
3292
- }, Ae = (l) => {
3293
- var _;
3294
- ((_ = l.detail) == null ? void 0 : _.excludeId) !== D.nbId && K.value && (K.value = !1, Z.value = -1, U.value && U.value.setAttribute("aria-expanded", "false"));
3295
- }, xe = () => {
3296
- n.value || (K.value || Me(), pe.value = !0, K.value = !K.value, K.value ? Ce(() => {
3297
- if (be.value) {
3298
- const l = be.value.querySelectorAll("button:not([disabled])");
3299
- if (l && l.length > 0) {
3300
- const _ = document.activeElement;
3301
- (_ === U.value || _ === de.value) && l[0].focus(), Z.value = 0;
3962
+ }, Fe = (a) => {
3963
+ var C;
3964
+ ((C = a.detail) == null ? void 0 : C.excludeId) !== ae.nbId && g.value && (g.value = !1, ne.value = -1, k.value && k.value.setAttribute("aria-expanded", "false"));
3965
+ }, Ae = () => {
3966
+ d.value || (g.value || nt(), me.value = !0, g.value = !g.value, g.value ? Oe(() => {
3967
+ if (ue.value) {
3968
+ const a = ue.value.querySelectorAll("button:not([disabled])");
3969
+ if (a && a.length > 0) {
3970
+ const C = document.activeElement;
3971
+ (C === k.value || C === $.value) && a[0].focus(), ne.value = 0;
3302
3972
  }
3303
3973
  }
3304
3974
  setTimeout(() => {
3305
- pe.value = !1;
3975
+ me.value = !1;
3306
3976
  }, 10);
3307
- }) : (Z.value = -1, pe.value = !1));
3308
- }, Ie = () => {
3309
- if (!n.value) {
3310
- if (!p.value && H.value.length > 0) {
3311
- xe();
3977
+ }) : (ne.value = -1, me.value = !1));
3978
+ }, ze = () => {
3979
+ if (!d.value) {
3980
+ if (!W.value && Y.value.length > 0) {
3981
+ Ae();
3312
3982
  return;
3313
3983
  }
3314
3984
  X("main-clicked"), X("clicked", { type: "main" });
3315
3985
  }
3316
- }, $e = (l, _) => {
3317
- l.disabled || n.value || (X("menu-item-clicked", { item: l, index: _ }), X("clicked", { type: "menu-item", item: l, index: _ }), K.value = !1, Z.value = -1);
3318
- }, Ue = () => {
3319
- U.value && U.value.setAttribute("aria-expanded", "true");
3320
- }, Ge = (l) => {
3321
- var _;
3322
- be.value && !be.value.contains(l.relatedTarget) && !((_ = ne.value) != null && _.contains(l.relatedTarget)) && (U.value && U.value.setAttribute("aria-expanded", "false"), K.value = !1, Z.value = -1);
3323
- }, Je = (l) => {
3324
- var _;
3325
- K.value && !((_ = ne.value) != null && _.contains(l.relatedTarget)) && (K.value = !1, Z.value = -1, U.value && U.value.setAttribute("aria-expanded", "false"));
3326
- }, Ve = (l) => {
3327
- (l.code === "Escape" || l.code === "Backspace") && K.value && (K.value = !1, Z.value = -1, !p.value && de.value ? de.value.focus() : U.value && U.value.focus());
3328
- }, Qe = (l) => {
3329
- l > 0 && (Z.value = l - 1, Ce(() => {
3330
- var q;
3331
- const _ = (q = be.value) == null ? void 0 : q.querySelectorAll("button:not([disabled])");
3332
- _ && _[Z.value] && _[Z.value].focus();
3986
+ }, Ye = (a, C) => {
3987
+ a.disabled || d.value || (X("menu-item-clicked", { item: a, index: C }), X("clicked", { type: "menu-item", item: a, index: C }), g.value = !1, ne.value = -1);
3988
+ }, rt = () => {
3989
+ k.value && k.value.setAttribute("aria-expanded", "true");
3990
+ }, ut = (a) => {
3991
+ var C;
3992
+ ue.value && !ue.value.contains(a.relatedTarget) && !((C = le.value) != null && C.contains(a.relatedTarget)) && (k.value && k.value.setAttribute("aria-expanded", "false"), g.value = !1, ne.value = -1);
3993
+ }, dt = (a) => {
3994
+ var C;
3995
+ g.value && !((C = le.value) != null && C.contains(a.relatedTarget)) && (g.value = !1, ne.value = -1, k.value && k.value.setAttribute("aria-expanded", "false"));
3996
+ }, Le = (a) => {
3997
+ (a.code === "Escape" || a.code === "Backspace") && g.value && (g.value = !1, ne.value = -1, !W.value && $.value ? $.value.focus() : k.value && k.value.focus());
3998
+ }, it = (a) => {
3999
+ a > 0 && (ne.value = a - 1, Oe(() => {
4000
+ var re;
4001
+ const C = (re = ue.value) == null ? void 0 : re.querySelectorAll("button:not([disabled])");
4002
+ C && C[ne.value] && C[ne.value].focus();
3333
4003
  }));
3334
- }, Ze = (l) => {
3335
- var q;
3336
- const _ = (q = be.value) == null ? void 0 : q.querySelectorAll("button:not([disabled])");
3337
- _ && l < _.length - 1 && (Z.value = l + 1, Ce(() => {
3338
- _[Z.value] && _[Z.value].focus();
4004
+ }, st = (a) => {
4005
+ var re;
4006
+ const C = (re = ue.value) == null ? void 0 : re.querySelectorAll("button:not([disabled])");
4007
+ C && a < C.length - 1 && (ne.value = a + 1, Oe(() => {
4008
+ C[ne.value] && C[ne.value].focus();
3339
4009
  }));
3340
- }, Te = (l) => {
3341
- var ee, ye;
3342
- if (pe.value || !K.value || (ee = ne.value) != null && ee.contains(l.target))
4010
+ }, Pe = (a) => {
4011
+ var ce, Ve;
4012
+ if (me.value || !g.value || (ce = le.value) != null && ce.contains(a.target))
3343
4013
  return;
3344
- const _ = l.target;
3345
- ((ye = _.closest) == null ? void 0 : ye.call(_, ".nb-split-button")) !== ne.value && (K.value = !1, Z.value = -1, U.value && U.value.setAttribute("aria-expanded", "false"));
4014
+ const C = a.target;
4015
+ ((Ve = C.closest) == null ? void 0 : Ve.call(C, ".nb-split-button")) !== le.value && (g.value = !1, ne.value = -1, k.value && k.value.setAttribute("aria-expanded", "false"));
3346
4016
  };
3347
- return He(() => {
3348
- Ce(() => {
3349
- document.addEventListener("click", Te, !1), document.addEventListener("splitbutton:close-all", Ae);
4017
+ return Ee(() => {
4018
+ Oe(() => {
4019
+ document.addEventListener("click", Pe, !1), document.addEventListener("splitbutton:close-all", Fe);
3350
4020
  });
3351
- }), xt(() => {
3352
- document.removeEventListener("click", Te, !1), document.removeEventListener("splitbutton:close-all", Ae);
3353
- }), (l, _) => e.nbId ? (J(), Q("div", {
4021
+ }), mt(() => {
4022
+ document.removeEventListener("click", Pe, !1), document.removeEventListener("splitbutton:close-all", Fe);
4023
+ }), (a, C) => e.nbId ? (fe(), ve("div", {
3354
4024
  key: 0,
3355
4025
  ref_key: "wrapperRef",
3356
- ref: ne,
3357
- class: ue(["nb-wrapper", "nb-split-button", ge.value]),
3358
- style: M([he.value]),
3359
- onFocusout: Je
4026
+ ref: le,
4027
+ class: pe(["nb-wrapper", "nb-split-button", _e.value]),
4028
+ style: se([De.value]),
4029
+ onFocusout: dt
3360
4030
  }, [
3361
- P("div", {
4031
+ de("div", {
3362
4032
  id: e.nbId,
3363
- class: ue(["nb-reset", "component", { "component--block": B(j) === "b" }]),
3364
- style: M([Be.value])
4033
+ class: pe(["nb-reset", "component", { "component--block": o(q) === "b" }, Ie.value]),
4034
+ style: se([Ne.value])
3365
4035
  }, [
3366
- P("button", {
4036
+ de("button", {
3367
4037
  ref_key: "mainButtonRef",
3368
- ref: de,
3369
- class: ue(["split-button__main", { "split-button__main--disabled": B(n) }]),
3370
- style: M([we.value]),
3371
- disabled: B(n),
3372
- "aria-label": B(C),
3373
- "aria-haspopup": !B(p) && B(H).length > 0,
3374
- "aria-expanded": B(p) ? void 0 : K.value,
3375
- tabindex: B(n) ? -1 : 0,
3376
- onClick: z(Ie, ["stop"]),
4038
+ ref: $,
4039
+ class: pe(["split-button__main", { "split-button__main--disabled": o(d) }]),
4040
+ style: se([Re.value]),
4041
+ disabled: o(d),
4042
+ "aria-label": o(y),
4043
+ "aria-haspopup": !o(W) && o(Y).length > 0,
4044
+ "aria-expanded": o(W) ? void 0 : g.value,
4045
+ tabindex: o(d) ? -1 : 0,
4046
+ onClick: A(ze, ["stop"]),
3377
4047
  onKeydown: [
3378
- _[0] || (_[0] = Y(z((q) => !B(n) && e.hasTabIndexEnter && Ie(), ["prevent"]), ["enter"])),
3379
- _[1] || (_[1] = Y(z((q) => !B(n) && e.hasTabIndexSpace && Ie(), ["prevent"]), ["space"]))
4048
+ C[0] || (C[0] = O(A((re) => !o(d) && e.hasTabIndexEnter && ze(), ["prevent"]), ["enter"])),
4049
+ C[1] || (C[1] = O(A((re) => !o(d) && e.hasTabIndexSpace && ze(), ["prevent"]), ["space"]))
3380
4050
  ]
3381
4051
  }, [
3382
- oe(l.$slots, "main-content", {}, () => [
3383
- re(Se(B(E)), 1)
4052
+ he(a.$slots, "main-content", {}, () => [
4053
+ Ce(We(o(Q)), 1)
3384
4054
  ], !0)
3385
- ], 46, Oa),
3386
- B(p) ? (J(), Q("span", {
4055
+ ], 46, Na),
4056
+ o(W) ? (fe(), ve("span", {
3387
4057
  key: 0,
3388
4058
  ref_key: "popupButtonRef",
3389
- ref: U,
3390
- class: ue(["split-button__popup-button", { "split-button__popup-button--open": K.value }]),
3391
- style: M([Xe.value]),
4059
+ ref: k,
4060
+ class: pe(["split-button__popup-button", { "split-button__popup-button--open": g.value }]),
4061
+ style: se([Je.value]),
3392
4062
  "aria-haspopup": !0,
3393
- "aria-expanded": K.value,
3394
- title: B(A),
3395
- tabindex: B(n) ? -1 : 0,
3396
- onClick: z(xe, ["stop"]),
3397
- onFocusin: Ue,
3398
- onFocusout: Ge,
4063
+ "aria-expanded": g.value,
4064
+ title: o(U),
4065
+ tabindex: o(d) ? -1 : 0,
4066
+ onClick: A(Ae, ["stop"]),
4067
+ onFocusin: rt,
4068
+ onFocusout: ut,
3399
4069
  onKeydown: [
3400
- _[2] || (_[2] = Y(z((q) => !B(n) && xe(), ["prevent"]), ["enter"])),
3401
- _[3] || (_[3] = Y(z((q) => !B(n) && xe(), ["prevent"]), ["space"]))
4070
+ C[2] || (C[2] = O(A((re) => !o(d) && Ae(), ["prevent"]), ["enter"])),
4071
+ C[3] || (C[3] = O(A((re) => !o(d) && Ae(), ["prevent"]), ["space"]))
3402
4072
  ],
3403
4073
  onKeyup: [
3404
- Y(Ve, ["escape"]),
3405
- Y(Ve, ["backspace"])
4074
+ O(Le, ["escape"]),
4075
+ O(Le, ["backspace"])
3406
4076
  ]
3407
4077
  }, [
3408
- oe(l.$slots, "popup-icon", {}, () => [
3409
- (J(), Q("svg", {
3410
- class: ue(["split-button__icon", { "split-button__icon--open": K.value }]),
4078
+ he(a.$slots, "popup-icon", {}, () => [
4079
+ (fe(), ve("svg", {
4080
+ class: pe(["split-button__icon", { "split-button__icon--open": g.value }]),
3411
4081
  viewBox: "0 0 24 24",
3412
4082
  fill: "none",
3413
4083
  stroke: "currentColor",
3414
4084
  "stroke-width": "2"
3415
- }, _[4] || (_[4] = [
3416
- P("polyline", { points: "6 9 12 15 18 9" }, null, -1)
4085
+ }, C[4] || (C[4] = [
4086
+ de("polyline", { points: "6 9 12 15 18 9" }, null, -1)
3417
4087
  ]), 2))
3418
4088
  ], !0)
3419
- ], 46, Wa)) : te("", !0),
3420
- K.value ? (J(), Q("div", {
4089
+ ], 46, Ha)) : ye("", !0),
4090
+ g.value ? (fe(), ve("div", {
3421
4091
  key: 1,
3422
4092
  ref_key: "popupRef",
3423
- ref: be,
3424
- class: ue(["split-button__popup", { "split-button__popup--open": K.value }]),
3425
- style: M([je.value])
4093
+ ref: ue,
4094
+ class: pe(["split-button__popup", { "split-button__popup--open": g.value }]),
4095
+ style: se([Qe.value])
3426
4096
  }, [
3427
- (J(!0), Q(Vt, null, Ct(B(H), (q, ee) => (J(), Q("button", {
3428
- key: ee,
3429
- class: ue(["split-button__menu-item", { "split-button__menu-item--disabled": q.disabled }]),
3430
- style: M([qe.value]),
3431
- disabled: q.disabled || B(n),
3432
- tabindex: q.disabled || B(n) ? -1 : 0,
3433
- onClick: z((ye) => $e(q, ee), ["stop"]),
4097
+ (fe(!0), ve(ht, null, Ct(o(Y), (re, ce) => (fe(), ve("button", {
4098
+ key: ce,
4099
+ class: pe(["split-button__menu-item", { "split-button__menu-item--disabled": re.disabled }]),
4100
+ style: se([ot.value]),
4101
+ disabled: re.disabled || o(d),
4102
+ tabindex: re.disabled || o(d) ? -1 : 0,
4103
+ onClick: A((Ve) => Ye(re, ce), ["stop"]),
3434
4104
  onKeydown: [
3435
- Y(z((ye) => !q.disabled && !B(n) && $e(q, ee), ["prevent"]), ["enter"]),
3436
- Y(z((ye) => !q.disabled && !B(n) && $e(q, ee), ["prevent"]), ["space"]),
3437
- Y(z((ye) => Qe(ee), ["prevent"]), ["arrow-up"]),
3438
- Y(z((ye) => Ze(ee), ["prevent"]), ["arrow-down"]),
3439
- Y(z(Ve, ["prevent"]), ["escape"]),
3440
- Y(z(Ve, ["prevent"]), ["backspace"])
4105
+ O(A((Ve) => !re.disabled && !o(d) && Ye(re, ce), ["prevent"]), ["enter"]),
4106
+ O(A((Ve) => !re.disabled && !o(d) && Ye(re, ce), ["prevent"]), ["space"]),
4107
+ O(A((Ve) => it(ce), ["prevent"]), ["arrow-up"]),
4108
+ O(A((Ve) => st(ce), ["prevent"]), ["arrow-down"]),
4109
+ O(A(Le, ["prevent"]), ["escape"]),
4110
+ O(A(Le, ["prevent"]), ["backspace"])
3441
4111
  ]
3442
4112
  }, [
3443
- q.icon ? (J(), Q("span", Ra, [
3444
- oe(l.$slots, `item-icon-${ee}`, { item: q }, () => [
3445
- re(Se(q.icon), 1)
4113
+ re.icon ? (fe(), ve("span", La, [
4114
+ he(a.$slots, `item-icon-${ce}`, { item: re }, () => [
4115
+ Ce(We(re.icon), 1)
3446
4116
  ], !0)
3447
- ])) : te("", !0),
3448
- P("span", za, Se(q.label), 1)
3449
- ], 46, _a))), 128))
3450
- ], 6)) : te("", !0)
3451
- ], 14, ka)
3452
- ], 38)) : te("", !0);
4117
+ ])) : ye("", !0),
4118
+ de("span", Oa, We(re.label), 1)
4119
+ ], 46, Aa))), 128))
4120
+ ], 6)) : ye("", !0)
4121
+ ], 14, Da)
4122
+ ], 38)) : ye("", !0);
3453
4123
  }
3454
- }), Ya = /* @__PURE__ */ ve(La, [["__scopeId", "data-v-75979bc7"]]), Ne = {
3455
- NbButtonVavaGame: It,
3456
- NbButtonShowHover: At,
3457
- NbButtonPrevNext: _t,
3458
- NbButtonMechanical: Yt,
3459
- NbButtonMechanical2: Ft,
3460
- NbButtonHamburger: qt,
3461
- NbButtonColorOutside: Jt,
3462
- NbButtonColorHover: ta,
4124
+ }), Ra = /* @__PURE__ */ ke(Wa, [["__scopeId", "data-v-2b74c5a0"]]), je = {
4125
+ NbButtonVavaGame: Vt,
4126
+ NbButtonShowHover: It,
4127
+ NbButtonPrevNext: At,
4128
+ NbButtonMechanical: Rt,
4129
+ NbButtonMechanical2: jt,
4130
+ NbButtonHamburger: Kt,
4131
+ NbButtonColorOutside: Gt,
4132
+ NbButtonColorHover: ea,
3463
4133
  NbButtonAlternateText: ra,
3464
- NbButtonBack: fa,
3465
- NbButtonNormal: xa,
3466
- NbButtonShadow: ha,
3467
- NbButtonUnderlineExpand: $a,
3468
- NbButtonUnderlineFill: Ta,
4134
+ NbButtonBack: sa,
4135
+ NbButtonNormal: ma,
4136
+ NbButtonShadow: xa,
4137
+ NbButtonUnderlineExpand: Ta,
4138
+ NbButtonUnderlineFill: _a,
3469
4139
  NbButtonGradientBorderToBackground: pa,
3470
- NbButtonSplitDropdown: Ya
3471
- }, ja = {
4140
+ NbButtonSplitDropdown: Ra
4141
+ }, Ya = {
3472
4142
  install(e) {
3473
- for (const b in Ne)
3474
- if (Object.prototype.hasOwnProperty.call(Ne, b)) {
3475
- const X = Ne[b];
4143
+ for (const l in je)
4144
+ if (Object.prototype.hasOwnProperty.call(je, l)) {
4145
+ const X = je[l];
3476
4146
  e.component(X.name, X);
3477
4147
  }
3478
4148
  }
3479
4149
  };
3480
4150
  export {
3481
- ja as default
4151
+ Ya as default
3482
4152
  };