@vlalg-nimbus/nb-buttons 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { useCssVars as P, toRefs as F, computed as t, openBlock as D, createElementBlock as O, normalizeClass as X, normalizeStyle as H, createElementVNode as z, renderSlot as q, createTextVNode as G, createCommentVNode as T, unref as ae, withModifiers as de, toDisplayString as Q, onMounted as se, ref as ie, watch as ce } from "vue";
2
- const M = (e, d) => {
1
+ import { useCssVars as F, toRefs as M, computed as t, openBlock as T, createElementBlock as L, normalizeClass as X, normalizeStyle as w, createElementVNode as R, renderSlot as q, createTextVNode as G, createCommentVNode as A, unref as ae, withModifiers as de, toDisplayString as te, onMounted as se, ref as ie, watch as ce } from "vue";
2
+ const j = (e, s) => {
3
3
  const B = e.__vccOpts || e;
4
- for (const [C, y] of d)
5
- B[C] = y;
4
+ for (const [C, b] of s)
5
+ B[C] = b;
6
6
  return B;
7
7
  }, fe = ["id"], ve = { class: "component-content__text" }, be = /* @__PURE__ */ Object.assign({
8
8
  name: "NbButtonVavaGame",
@@ -18,8 +18,8 @@ const M = (e, d) => {
18
18
  type: String,
19
19
  default: "ib",
20
20
  validator: (e = "") => {
21
- const d = e.toLowerCase();
22
- return ["b", "ib"].includes(d);
21
+ const s = e.toLowerCase();
22
+ return ["b", "ib"].includes(s);
23
23
  }
24
24
  },
25
25
  textColor: {
@@ -92,102 +92,102 @@ const M = (e, d) => {
92
92
  }
93
93
  },
94
94
  emits: ["clicked"],
95
- setup(e, { emit: d }) {
95
+ setup(e, { emit: s }) {
96
96
  const B = e;
97
- P((u) => ({
98
- "4348b976": k.value,
97
+ F((u) => ({
98
+ "4348b976": H.value,
99
99
  "1735afec": Y.value,
100
- "58e23cb0": W.value,
101
- "451672cd": r.value,
102
- "55b7ee16": l.value
100
+ "58e23cb0": z.value,
101
+ "451672cd": d.value,
102
+ "55b7ee16": n.value
103
103
  }));
104
104
  const {
105
105
  display: C,
106
- textColor: y,
106
+ textColor: b,
107
107
  textColorHover: x,
108
- buttonColor: g,
109
- buttonColorHover: m,
110
- uppercase: p,
108
+ buttonColor: p,
109
+ buttonColorHover: y,
110
+ uppercase: v,
111
111
  paddingXContent: V,
112
- paddingYContent: S,
112
+ paddingYContent: g,
113
113
  paddingXBorder: N,
114
- paddingYBorder: s,
115
- borderColor: v,
116
- borderOpacity: c,
117
- disabled: n,
118
- fontFamily: _,
114
+ paddingYBorder: i,
115
+ borderColor: c,
116
+ borderOpacity: m,
117
+ disabled: l,
118
+ fontFamily: S,
119
119
  fontSize: $,
120
- fontWeight: w
121
- } = F(B), h = t(() => {
122
- const u = n.value ? "component-disabled" : "", I = C.value !== "b" ? "inline-block" : "block", L = y.value ? y.value : "#ece8e1", A = g.value ? g.value : "green", j = x.value ? x.value : "#ece8e1", E = m.value ? m.value : "cyan", J = v.value ? v.value : "#ffffff", K = !c.value || !(c.value >= 0 && c.value <= 1) ? "0.5" : c.value, U = !N.value || N.value < 0 ? 0.3 : N.value, Z = !s.value || s.value < 0 ? 0.3 : s.value, ee = !V.value || V.value < 0 ? 0.5 : V.value, oe = !S.value || S.value < 0 ? 0.5 : S.value, le = p.value ? "uppercase" : "none", ne = _.value ? _.value : "'Lato', sans-serif", ue = $.value ? $.value : "1.6em", re = !w.value || w.value < 0 ? 100 : w.value;
120
+ fontWeight: h
121
+ } = M(B), _ = t(() => {
122
+ const u = l.value ? "component-disabled" : "", I = C.value !== "b" ? "inline-block" : "block", D = b.value ? b.value : "#ece8e1", O = p.value ? p.value : "green", P = x.value ? x.value : "#ece8e1", E = y.value ? y.value : "cyan", J = c.value ? c.value : "#ffffff", K = !m.value || !(m.value >= 0 && m.value <= 1) ? "0.5" : m.value, Q = !N.value || N.value < 0 ? 0.3 : N.value, U = !i.value || i.value < 0 ? 0.3 : i.value, Z = !V.value || V.value < 0 ? 0.5 : V.value, oe = !g.value || g.value < 0 ? 0.5 : g.value, le = v.value ? "uppercase" : "none", ne = S.value ? S.value : "'Lato', sans-serif", ue = $.value ? $.value : "1.6em", re = !h.value || h.value < 0 ? 100 : h.value;
123
123
  return {
124
124
  disabled: u,
125
125
  display: I,
126
- textColor: L,
127
- buttonColor: A,
128
- textColorHover: j,
126
+ textColor: D,
127
+ buttonColor: O,
128
+ textColorHover: P,
129
129
  buttonColorHover: E,
130
130
  borderColor: J,
131
131
  borderOpacity: K,
132
- paddingXBorder: U,
133
- paddingYBorder: Z,
134
- paddingXContent: ee,
132
+ paddingXBorder: Q,
133
+ paddingYBorder: U,
134
+ paddingXContent: Z,
135
135
  paddingYContent: oe,
136
136
  uppercase: le,
137
137
  font: ne,
138
138
  fontSize: ue,
139
139
  fontWeight: re
140
140
  };
141
- }), b = t(() => h.value.disabled), i = t(() => ({
142
- display: h.value.display
143
- })), f = t(() => {
144
- const u = h.value;
141
+ }), f = t(() => _.value.disabled), r = t(() => ({
142
+ display: _.value.display
143
+ })), k = t(() => {
144
+ const u = _.value;
145
145
  return {
146
146
  padding: `${u.paddingYBorder}rem ${u.paddingXBorder}rem`,
147
147
  fontSize: u.fontSize,
148
148
  fontWeight: u.fontWeight
149
149
  };
150
150
  }), a = t(() => {
151
- const u = h.value;
151
+ const u = _.value;
152
152
  return {
153
153
  textTransform: u.uppercase,
154
154
  padding: `${u.paddingYContent}rem ${u.paddingXContent}rem`,
155
155
  backgroundColor: u.buttonColor
156
156
  };
157
157
  }), o = t(() => ({
158
- backgroundColor: h.value.buttonColorHover
159
- })), k = t(() => h.value.font), r = t(() => h.value.borderColor), l = t(() => h.value.borderOpacity), Y = t(() => h.value.textColor), W = t(() => h.value.textColorHover), R = () => {
160
- d("clicked");
158
+ backgroundColor: _.value.buttonColorHover
159
+ })), H = t(() => _.value.font), d = t(() => _.value.borderColor), n = t(() => _.value.borderOpacity), Y = t(() => _.value.textColor), z = t(() => _.value.textColorHover), W = () => {
160
+ s("clicked");
161
161
  };
162
- return (u, I) => e.nbId ? (D(), O("div", {
162
+ return (u, I) => e.nbId ? (T(), L("div", {
163
163
  key: 0,
164
- class: X(["nb-wrapper", b.value]),
165
- style: H([i.value]),
166
- onClick: R
164
+ class: X(["nb-wrapper", f.value]),
165
+ style: w([r.value]),
166
+ onClick: W
167
167
  }, [
168
- z("div", {
168
+ R("div", {
169
169
  id: e.nbId,
170
170
  class: X(["nb-reset", "component"]),
171
- style: H([f.value])
171
+ style: w([k.value])
172
172
  }, [
173
- z("div", {
173
+ R("div", {
174
174
  class: "component-content",
175
- style: H([a.value])
175
+ style: w([a.value])
176
176
  }, [
177
- z("span", ve, [
177
+ R("span", ve, [
178
178
  q(u.$slots, "text", {}, () => [
179
179
  G("Default Text")
180
180
  ], !0)
181
181
  ]),
182
- z("span", {
182
+ R("span", {
183
183
  class: "component-content__mask",
184
- style: H([o.value])
184
+ style: w([o.value])
185
185
  }, null, 4)
186
186
  ], 4)
187
187
  ], 12, fe)
188
- ], 6)) : T("", !0);
188
+ ], 6)) : A("", !0);
189
189
  }
190
- }), pe = /* @__PURE__ */ M(be, [["__scopeId", "data-v-09b2bb91"]]);
190
+ }), pe = /* @__PURE__ */ j(be, [["__scopeId", "data-v-09b2bb91"]]);
191
191
  const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
192
192
  name: "NbButtonShowHover",
193
193
  inheritAttrs: !1
@@ -258,48 +258,48 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
258
258
  }
259
259
  },
260
260
  emits: ["clicked"],
261
- setup(e, { emit: d }) {
261
+ setup(e, { emit: s }) {
262
262
  const B = e;
263
- P((a) => ({
264
- e35bf122: i.value,
265
- "122f086c": h.value,
266
- "590fef9e": b.value,
263
+ F((a) => ({
264
+ e35bf122: r.value,
265
+ "122f086c": _.value,
266
+ "590fef9e": f.value,
267
267
  "383cafc6": e.textColorHover,
268
- 66192716: ae(y)
268
+ 66192716: ae(b)
269
269
  }));
270
270
  const {
271
271
  text: C,
272
- textColor: y,
272
+ textColor: b,
273
273
  buttonColorHover: x,
274
- buttonColorOpacityHover: g,
275
- paddingX: m,
276
- paddingY: p,
274
+ buttonColorOpacityHover: p,
275
+ paddingX: y,
276
+ paddingY: v,
277
277
  disabled: V,
278
- borderRadius: S,
278
+ borderRadius: g,
279
279
  verticalAlign: N,
280
- fontFamily: s,
281
- fontSize: v,
282
- fontWeight: c
283
- } = F(B), n = t(() => {
284
- const a = C.value ? C.value : "Default Text", o = V.value ? "component-disabled" : "", k = N.value ? N.value : "middle", r = y ? y.value : "ffffff", l = !m.value || m.value < 0 ? 1 : m.value, Y = !p.value || p.value < 0 ? 0.2 : p.value, W = !S.value || S.value < 0 ? 0 : S.value, R = x.value ? x.value : "10, 38, 184", u = !g.value || g.value < 0 ? 0.1 : g.value, I = s.value ? s.value : "'Lato', sans-serif", L = v.value ? v.value : "1.6rem", A = !c.value || c.value < 0 ? 100 : c.value;
280
+ fontFamily: i,
281
+ fontSize: c,
282
+ fontWeight: m
283
+ } = M(B), l = t(() => {
284
+ const a = C.value ? C.value : "Default Text", o = V.value ? "component-disabled" : "", H = N.value ? N.value : "middle", d = b ? b.value : "ffffff", n = !y.value || y.value < 0 ? 1 : y.value, Y = !v.value || v.value < 0 ? 0.2 : v.value, z = !g.value || g.value < 0 ? 0 : g.value, W = x.value ? x.value : "10, 38, 184", u = !p.value || p.value < 0 ? 0.1 : p.value, I = i.value ? i.value : "'Lato', sans-serif", D = c.value ? c.value : "1.6rem", O = !m.value || m.value < 0 ? 100 : m.value;
285
285
  return {
286
286
  disabled: o,
287
- borderRadius: W,
288
- textColor: r,
289
- paddingX: l,
287
+ borderRadius: z,
288
+ textColor: d,
289
+ paddingX: n,
290
290
  paddingY: Y,
291
- buttonColorHover: R,
291
+ buttonColorHover: W,
292
292
  buttonColorOpacityHover: u,
293
293
  font: I,
294
- fontSize: L,
295
- fontWeight: A,
294
+ fontSize: D,
295
+ fontWeight: O,
296
296
  text: a,
297
- verticalAlign: k
297
+ verticalAlign: H
298
298
  };
299
- }), _ = t(() => n.value.disabled), $ = t(() => ({
300
- verticalAlign: n.value.verticalAlign
301
- })), w = t(() => {
302
- const a = n.value;
299
+ }), S = t(() => l.value.disabled), $ = t(() => ({
300
+ verticalAlign: l.value.verticalAlign
301
+ })), h = t(() => {
302
+ const a = l.value;
303
303
  return {
304
304
  color: a.textColor,
305
305
  padding: `${a.paddingY}rem 0`,
@@ -307,31 +307,31 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
307
307
  fontSize: a.fontSize,
308
308
  fontWeight: a.fontWeight
309
309
  };
310
- }), h = t(() => {
311
- const a = n.value;
310
+ }), _ = t(() => {
311
+ const a = l.value;
312
312
  return `${a.paddingY}rem ${a.paddingX}rem`;
313
- }), b = t(() => {
314
- const a = n.value;
313
+ }), f = t(() => {
314
+ const a = l.value;
315
315
  return `rgba(${a.buttonColorHover}, ${a.buttonColorOpacityHover})`;
316
- }), i = t(() => n.value.font), f = () => {
317
- d("clicked");
316
+ }), r = t(() => l.value.font), k = () => {
317
+ s("clicked");
318
318
  };
319
- return (a, o) => e.nbId ? (D(), O("div", {
319
+ return (a, o) => e.nbId ? (T(), L("div", {
320
320
  key: 0,
321
- class: X(["nb-wrapper", _.value]),
322
- style: H([$.value]),
323
- onClick: f
321
+ class: X(["nb-wrapper", S.value]),
322
+ style: w([$.value]),
323
+ onClick: k
324
324
  }, [
325
- z("a", {
325
+ R("a", {
326
326
  id: e.nbId,
327
327
  class: "nb-reset component tertiary",
328
- style: H([w.value]),
328
+ style: w([h.value]),
329
329
  onClick: o[0] || (o[0] = de(() => {
330
330
  }, ["prevent"]))
331
- }, Q(n.value.text), 13, ye)
332
- ], 6)) : T("", !0);
331
+ }, te(l.value.text), 13, ye)
332
+ ], 6)) : A("", !0);
333
333
  }
334
- }), me = /* @__PURE__ */ M(ge, [["__scopeId", "data-v-7f17ac3f"]]);
334
+ }), me = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-7f17ac3f"]]);
335
335
  const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
336
336
  name: "NbButtonPrevNext",
337
337
  inheritAttrs: !1
@@ -419,10 +419,10 @@ const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
419
419
  }
420
420
  },
421
421
  emits: ["clicked"],
422
- setup(e, { emit: d }) {
422
+ setup(e, { emit: s }) {
423
423
  const B = e;
424
- P((a) => ({
425
- "2446b547": i.value,
424
+ F((a) => ({
425
+ "2446b547": r.value,
426
426
  a50bbbd2: e.colorPrimary,
427
427
  "0f9f603e": e.textColor,
428
428
  "748cd449": e.colorSecondary,
@@ -430,87 +430,87 @@ const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
430
430
  }));
431
431
  const {
432
432
  paddingX: C,
433
- paddingY: y,
433
+ paddingY: b,
434
434
  marginBetween: x,
435
- borderRadius: g,
436
- disabled: m,
437
- disabledPreview: p,
435
+ borderRadius: p,
436
+ disabled: y,
437
+ disabledPreview: v,
438
438
  disabledNext: V,
439
- fontFamily: S,
439
+ fontFamily: g,
440
440
  fontSize: N,
441
- fontWeight: s
442
- } = F(B), v = t(() => {
443
- const a = m.value ? "component-disabled" : "", o = p.value ? "component-disabled" : "", k = V.value ? "component-disabled" : "", r = !x.value || x.value < 0 ? 0 : x.value, l = !g.value || g.value < 0 ? 0 : g.value, Y = !C.value || C.value < 0 ? 1 : C.value, W = !y.value || y.value < 0 ? 10 : y.value, R = N.value ? N.value : "1.6em", u = !s.value || s.value < 0 ? 100 : s.value;
441
+ fontWeight: i
442
+ } = M(B), c = t(() => {
443
+ const a = y.value ? "component-disabled" : "", o = v.value ? "component-disabled" : "", H = V.value ? "component-disabled" : "", d = !x.value || x.value < 0 ? 0 : x.value, n = !p.value || p.value < 0 ? 0 : p.value, Y = !C.value || C.value < 0 ? 1 : C.value, z = !b.value || b.value < 0 ? 10 : b.value, W = N.value ? N.value : "1.6em", u = !i.value || i.value < 0 ? 100 : i.value;
444
444
  return {
445
445
  disabled: a,
446
446
  disabledPreview: o,
447
- disabledNext: k,
448
- marginBetween: `${r}px`,
449
- borderRadius: `${l}px`,
447
+ disabledNext: H,
448
+ marginBetween: `${d}px`,
449
+ borderRadius: `${n}px`,
450
450
  paddingX: `${Y}px`,
451
- paddingY: `${W}px`,
452
- fontSize: R,
451
+ paddingY: `${z}px`,
452
+ fontSize: W,
453
453
  fontWeight: u
454
454
  };
455
- }), c = t(() => v.value.disabled), n = t(() => v.value.disabledPreview), _ = t(() => v.value.disabledNext), $ = t(() => ({
456
- display: v.value.display
457
- })), w = t(() => {
458
- const a = v.value;
455
+ }), m = t(() => c.value.disabled), l = t(() => c.value.disabledPreview), S = t(() => c.value.disabledNext), $ = t(() => ({
456
+ display: c.value.display
457
+ })), h = t(() => {
458
+ const a = c.value;
459
459
  return {
460
460
  fontSize: a.fontSize,
461
461
  fontWeight: a.fontWeight
462
462
  };
463
- }), h = t(() => {
464
- const a = v.value;
463
+ }), _ = t(() => {
464
+ const a = c.value;
465
465
  return {
466
466
  borderRadius: `${a.borderRadius} 0px 0px ${a.borderRadius}`,
467
467
  marginRight: a.marginBetween,
468
468
  padding: `${a.paddingX} ${a.paddingY}`
469
469
  };
470
- }), b = t(() => {
471
- const a = v.value;
470
+ }), f = t(() => {
471
+ const a = c.value;
472
472
  return {
473
473
  borderRadius: `0px ${a.borderRadius} ${a.borderRadius} 0px`,
474
474
  marginLeft: a.marginBetween,
475
475
  padding: `${a.paddingX} ${a.paddingY}`
476
476
  };
477
- }), i = t(() => `'${S.value ? S.value : "'Lato', sans-serif"}'`), f = (a) => {
478
- d("clicked", a);
477
+ }), r = t(() => `'${g.value ? g.value : "'Lato', sans-serif"}'`), k = (a) => {
478
+ s("clicked", a);
479
479
  };
480
- return (a, o) => e.nbId ? (D(), O("div", {
480
+ return (a, o) => e.nbId ? (T(), L("div", {
481
481
  key: 0,
482
- class: X(["nb-wrapper", c.value]),
483
- style: H([$.value])
482
+ class: X(["nb-wrapper", m.value]),
483
+ style: w([$.value])
484
484
  }, [
485
- z("div", {
485
+ R("div", {
486
486
  id: e.nbId,
487
487
  class: X(["nb-reset", "component"]),
488
- style: H(w.value)
488
+ style: w(h.value)
489
489
  }, [
490
- e.showPreview ? (D(), O("div", {
490
+ e.showPreview ? (T(), L("div", {
491
491
  key: 0,
492
- onClick: o[0] || (o[0] = (k) => f("preview")),
493
- class: X(["buttonNextPreview buttonPreview", n.value]),
494
- style: H(h.value)
492
+ onClick: o[0] || (o[0] = (H) => k("preview")),
493
+ class: X(["buttonNextPreview buttonPreview", l.value]),
494
+ style: w(_.value)
495
495
  }, [
496
496
  q(a.$slots, "prev", {}, () => [
497
497
  G("← Preview")
498
498
  ], !0)
499
- ], 6)) : T("", !0),
500
- e.showNext ? (D(), O("div", {
499
+ ], 6)) : A("", !0),
500
+ e.showNext ? (T(), L("div", {
501
501
  key: 1,
502
- onClick: o[1] || (o[1] = (k) => f("next")),
503
- class: X(["buttonNextPreview buttonNext", _.value]),
504
- style: H(b.value)
502
+ onClick: o[1] || (o[1] = (H) => k("next")),
503
+ class: X(["buttonNextPreview buttonNext", S.value]),
504
+ style: w(f.value)
505
505
  }, [
506
506
  q(a.$slots, "next", {}, () => [
507
507
  G("Next →")
508
508
  ], !0)
509
- ], 6)) : T("", !0)
509
+ ], 6)) : A("", !0)
510
510
  ], 12, Ve)
511
- ], 6)) : T("", !0);
511
+ ], 6)) : A("", !0);
512
512
  }
513
- }), xe = /* @__PURE__ */ M(Ce, [["__scopeId", "data-v-f26b5a64"]]);
513
+ }), xe = /* @__PURE__ */ j(Ce, [["__scopeId", "data-v-f26b5a64"]]);
514
514
  const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
515
515
  name: "NbButtonMechanical",
516
516
  inheritAttrs: !1
@@ -525,8 +525,8 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
525
525
  type: String,
526
526
  default: "b",
527
527
  validator: (e = "b") => {
528
- const d = e ? e.toLowerCase() : "";
529
- return ["b", "ib"].includes(d);
528
+ const s = e ? e.toLowerCase() : "";
529
+ return ["b", "ib"].includes(s);
530
530
  }
531
531
  },
532
532
  textColor: {
@@ -580,47 +580,47 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
580
580
  }
581
581
  },
582
582
  emits: ["clicked"],
583
- setup(e, { emit: d }) {
583
+ setup(e, { emit: s }) {
584
584
  const B = e;
585
- P((o) => ({
586
- "196eb3ca": b.value,
587
- "5a845ff6": ae(y),
588
- "44f25ea8": f.value,
589
- "3eb45b5e": i.value
585
+ F((o) => ({
586
+ "196eb3ca": f.value,
587
+ "5a845ff6": ae(b),
588
+ "44f25ea8": k.value,
589
+ "3eb45b5e": r.value
590
590
  }));
591
591
  const {
592
592
  display: C,
593
- buttonColor: y,
593
+ buttonColor: b,
594
594
  textColor: x,
595
- containerColor: g,
596
- paddingX: m,
597
- paddingY: p,
595
+ containerColor: p,
596
+ paddingX: y,
597
+ paddingY: v,
598
598
  borderRadius: V,
599
- disabled: S,
599
+ disabled: g,
600
600
  animationSlow: N,
601
- fontFamily: s,
602
- fontSize: v,
603
- fontWeight: c
604
- } = F(B), n = t(() => {
605
- const o = S.value ? "component-disabled" : "", k = C.value !== "b" ? "inline-block" : "block", r = g.value ? g.value : "#ffffff", l = y.value ? y.value : "#bbbbbb", Y = x.value ? x.value : "#ffffff", W = !m.value || m.value < 0 ? 1 : m.value, R = !p.value || p.value < 0 ? 0.2 : p.value, u = !V.value || V.value < 0 ? 0 : V.value, I = N.value ? "" : "component-transition__no-slow", L = s.value ? s.value : "'Lato', sans-serif", A = v.value ? v.value : "1.6em", j = !c.value || c.value < 0 ? 100 : c.value;
601
+ fontFamily: i,
602
+ fontSize: c,
603
+ fontWeight: m
604
+ } = M(B), l = t(() => {
605
+ const o = g.value ? "component-disabled" : "", H = C.value !== "b" ? "inline-block" : "block", d = p.value ? p.value : "#ffffff", n = b.value ? b.value : "#bbbbbb", Y = x.value ? x.value : "#ffffff", z = !y.value || y.value < 0 ? 1 : y.value, W = !v.value || v.value < 0 ? 0.2 : v.value, u = !V.value || V.value < 0 ? 0 : V.value, I = N.value ? "" : "component-transition__no-slow", D = i.value ? i.value : "'Lato', sans-serif", O = c.value ? c.value : "1.6em", P = !m.value || m.value < 0 ? 100 : m.value;
606
606
  return {
607
607
  disabled: o,
608
- display: k,
609
- containerColor: r,
610
- buttonColor: l,
608
+ display: H,
609
+ containerColor: d,
610
+ buttonColor: n,
611
611
  textColor: Y,
612
- paddingX: W,
613
- paddingY: R,
612
+ paddingX: z,
613
+ paddingY: W,
614
614
  borderRadius: u,
615
615
  animationSlow: I,
616
- font: L,
617
- fontSize: A,
618
- fontWeight: j
616
+ font: D,
617
+ fontSize: O,
618
+ fontWeight: P
619
619
  };
620
- }), _ = t(() => n.value.disabled), $ = t(() => ({
621
- display: n.value.display
622
- })), w = t(() => {
623
- const o = n.value;
620
+ }), S = t(() => l.value.disabled), $ = t(() => ({
621
+ display: l.value.display
622
+ })), h = t(() => {
623
+ const o = l.value;
624
624
  return {
625
625
  border: `2px solid ${o.containerColor}`,
626
626
  color: o.textColor,
@@ -630,27 +630,27 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
630
630
  fontSize: o.fontSize,
631
631
  fontWeight: o.fontWeight
632
632
  };
633
- }), h = t(() => n.value.animationSlow), b = t(() => n.value.font), i = t(() => n.value.textColor), f = t(() => n.value.buttonColor), a = () => {
634
- d("clicked");
633
+ }), _ = t(() => l.value.animationSlow), f = t(() => l.value.font), r = t(() => l.value.textColor), k = t(() => l.value.buttonColor), a = () => {
634
+ s("clicked");
635
635
  };
636
- return (o, k) => e.nbId ? (D(), O("div", {
636
+ return (o, H) => e.nbId ? (T(), L("div", {
637
637
  key: 0,
638
- class: X(["nb-wrapper", _.value]),
639
- style: H([$.value]),
638
+ class: X(["nb-wrapper", S.value]),
639
+ style: w([$.value]),
640
640
  onClick: a
641
641
  }, [
642
- z("div", {
642
+ R("div", {
643
643
  id: e.nbId,
644
- class: X(["nb-reset", "component", "component-transition", h.value]),
645
- style: H([w.value])
644
+ class: X(["nb-reset", "component", "component-transition", _.value]),
645
+ style: w([h.value])
646
646
  }, [
647
647
  q(o.$slots, "content", {}, () => [
648
648
  G("Default Text")
649
649
  ], !0)
650
650
  ], 14, Se)
651
- ], 6)) : T("", !0);
651
+ ], 6)) : A("", !0);
652
652
  }
653
- }), he = /* @__PURE__ */ M(_e, [["__scopeId", "data-v-11d6e180"]]);
653
+ }), he = /* @__PURE__ */ j(_e, [["__scopeId", "data-v-11d6e180"]]);
654
654
  const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
655
655
  name: "NbButtonMechanical2",
656
656
  inheritAttrs: !1
@@ -661,16 +661,12 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
661
661
  type: String,
662
662
  required: !0
663
663
  },
664
- text: {
665
- type: String,
666
- default: "Default Text"
667
- },
668
664
  display: {
669
665
  type: String,
670
666
  default: "b",
671
667
  validator: (e = "b") => {
672
- const d = e ? e.toLowerCase() : "";
673
- return ["b", "ib"].includes(d);
668
+ const s = e ? e.toLowerCase() : "";
669
+ return ["b", "ib"].includes(s);
674
670
  }
675
671
  },
676
672
  textColor: {
@@ -720,70 +716,74 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
720
716
  }
721
717
  },
722
718
  emits: ["clicked"],
723
- setup(e, { emit: d }) {
719
+ setup(e, { emit: s }) {
724
720
  const B = e;
725
- P((i) => ({
726
- ba36237e: h.value
721
+ F((r) => ({
722
+ a193a08a: _.value
727
723
  }));
728
724
  const {
729
725
  text: C,
730
- display: y,
726
+ display: b,
731
727
  buttonColor: x,
732
- textColor: g,
733
- paddingX: m,
734
- paddingY: p,
728
+ textColor: p,
729
+ paddingX: y,
730
+ paddingY: v,
735
731
  borderRadius: V,
736
- shadowColor: S,
732
+ shadowColor: g,
737
733
  disabled: N,
738
- fontFamily: s,
739
- fontSize: v,
740
- fontWeight: c
741
- } = F(B), n = t(() => {
742
- const i = N.value ? "component-disabled" : "", f = y.value !== "b" ? "inline-block" : "block", a = x.value ? x.value : "#bbbbbb", o = S.value ? S.value : "#002f3c", k = g.value ? g.value : "#ffffff", r = !m.value || m.value < 0 ? 1 : m.value, l = !p.value || p.value < 0 ? 1 : p.value, Y = !V.value || V.value < 0 ? 0 : V.value, W = s.value ? s.value : "'Lato', sans-serif", R = v.value ? v.value : "1.6em", u = !c.value || c.value < 0 ? 100 : c.value;
734
+ fontFamily: i,
735
+ fontSize: c,
736
+ fontWeight: m
737
+ } = M(B), l = t(() => {
738
+ const r = N.value ? "component-disabled" : "", k = b.value !== "b" ? "inline-block" : "block", a = x.value ? x.value : "#bbbbbb", o = g.value ? g.value : "#002f3c", H = p.value ? p.value : "#ffffff", d = !y.value || y.value < 0 ? 1 : y.value, n = !v.value || v.value < 0 ? 1 : v.value, Y = !V.value || V.value < 0 ? 0 : V.value, z = i.value ? i.value : "'Lato', sans-serif", W = c.value ? c.value : "1.6em", u = !m.value || m.value < 0 ? 100 : m.value;
743
739
  return {
744
- disabled: i,
745
- display: f,
740
+ disabled: r,
741
+ display: k,
746
742
  buttonColor: a,
747
743
  shadowColor: o,
748
- textColor: k,
749
- paddingX: r,
750
- paddingY: l,
744
+ textColor: H,
745
+ paddingX: d,
746
+ paddingY: n,
751
747
  borderRadius: Y,
752
- font: W,
753
- fontSize: R,
748
+ font: z,
749
+ fontSize: W,
754
750
  fontWeight: u
755
751
  };
756
- }), _ = t(() => n.value.disabled), $ = t(() => ({
757
- display: n.value.display
758
- })), w = t(() => {
759
- const i = n.value;
752
+ }), S = t(() => l.value.disabled), $ = t(() => ({
753
+ display: l.value.display
754
+ })), h = t(() => {
755
+ const r = l.value;
760
756
  return {
761
- color: i.textColor,
762
- backgroundColor: i.buttonColor,
763
- boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${i.shadowColor}`,
764
- padding: `${i.paddingY}rem ${i.paddingX}rem`,
765
- padding: `${i.paddingY}rem ${i.paddingX}rem`,
766
- borderRadius: `${i.borderRadius}rem`,
767
- fontSize: i.fontSize,
768
- fontWeight: i.fontWeight
757
+ color: r.textColor,
758
+ backgroundColor: r.buttonColor,
759
+ boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${r.shadowColor}`,
760
+ padding: `${r.paddingY}rem ${r.paddingX}rem`,
761
+ padding: `${r.paddingY}rem ${r.paddingX}rem`,
762
+ borderRadius: `${r.borderRadius}rem`,
763
+ fontSize: r.fontSize,
764
+ fontWeight: r.fontWeight
769
765
  };
770
- }), h = t(() => n.value.font), b = () => {
771
- d("clicked");
766
+ }), _ = t(() => l.value.font), f = () => {
767
+ s("clicked");
772
768
  };
773
- return (i, f) => e.nbId ? (D(), O("div", {
769
+ return (r, k) => e.nbId ? (T(), L("div", {
774
770
  key: 0,
775
- class: X(["nb-wrapper", _.value]),
776
- style: H([$.value]),
777
- onClick: b
771
+ class: X(["nb-wrapper", S.value]),
772
+ style: w([$.value]),
773
+ onClick: f
778
774
  }, [
779
- z("div", {
775
+ R("div", {
780
776
  id: e.nbId,
781
777
  class: X(["nb-reset", "component", "component-transition"]),
782
- style: H([w.value])
783
- }, Q(B.text), 13, Ne)
784
- ], 6)) : T("", !0);
778
+ style: w([h.value])
779
+ }, [
780
+ q(r.$slots, "content", {}, () => [
781
+ G("Default Text")
782
+ ], !0)
783
+ ], 12, Ne)
784
+ ], 6)) : A("", !0);
785
785
  }
786
- }), Be = /* @__PURE__ */ M(we, [["__scopeId", "data-v-20a2a691"]]);
786
+ }), Be = /* @__PURE__ */ j(we, [["__scopeId", "data-v-fec2a51e"]]);
787
787
  const He = ["id"], $e = /* @__PURE__ */ Object.assign({
788
788
  name: "NbButtonHamburger",
789
789
  inheritAttrs: !1
@@ -832,75 +832,75 @@ const He = ["id"], $e = /* @__PURE__ */ Object.assign({
832
832
  }
833
833
  },
834
834
  emits: ["clicked"],
835
- setup(e, { emit: d }) {
835
+ setup(e, { emit: s }) {
836
836
  const B = e;
837
- P((b) => ({
837
+ F((f) => ({
838
838
  "4f0c7280": $.value,
839
- "86dec5da": w.value
839
+ "86dec5da": h.value
840
840
  })), se(() => {
841
- C.value = y.value;
841
+ C.value = b.value;
842
842
  });
843
843
  const C = ie(!1), {
844
- status: y,
844
+ status: b,
845
845
  color: x,
846
- containerColor: g,
847
- containerColorHover: m,
848
- colorHover: p,
846
+ containerColor: p,
847
+ containerColorHover: y,
848
+ colorHover: v,
849
849
  paddingX: V,
850
- paddingY: S,
850
+ paddingY: g,
851
851
  disabled: N
852
- } = F(B), s = t(() => {
853
- const b = N.value ? "component-disabled" : "", i = C.value ? "change" : "", f = g.value ? g.value : "#333333", a = x.value ? x.value : "#ffffff", o = !V.value || V.value < 0 ? 3 : V.value, k = !S.value || S.value < 0 ? 3 : S.value, r = m.value ? m.value : "yellow", l = p.value ? p.value : "red";
852
+ } = M(B), i = t(() => {
853
+ const f = N.value ? "component-disabled" : "", r = C.value ? "change" : "", k = p.value ? p.value : "#333333", a = x.value ? x.value : "#ffffff", o = !V.value || V.value < 0 ? 3 : V.value, H = !g.value || g.value < 0 ? 3 : g.value, d = y.value ? y.value : "yellow", n = v.value ? v.value : "red";
854
854
  return {
855
- disabled: b,
856
- buttonStatus: i,
857
- containerColor: f,
855
+ disabled: f,
856
+ buttonStatus: r,
857
+ containerColor: k,
858
858
  paddingX: o,
859
- paddingY: k,
859
+ paddingY: H,
860
860
  color: a,
861
- containerColorHover: r,
862
- colorHover: l
861
+ containerColorHover: d,
862
+ colorHover: n
863
863
  };
864
- }), v = t(() => s.value.disabled), c = t(() => {
865
- const b = s.value;
864
+ }), c = t(() => i.value.disabled), m = t(() => {
865
+ const f = i.value;
866
866
  return {
867
- padding: `${b.paddingY}px ${b.paddingX}px`,
868
- backgroundColor: b.containerColor
867
+ padding: `${f.paddingY}px ${f.paddingX}px`,
868
+ backgroundColor: f.containerColor
869
869
  };
870
- }), n = t(() => ({
871
- backgroundColor: s.value.color
872
- })), _ = t(() => s.value.buttonStatus), $ = t(() => s.value.containerColorHover), w = t(() => s.value.colorHover), h = () => {
873
- const b = !C.value;
874
- C.value = b, d("clicked", b);
870
+ }), l = t(() => ({
871
+ backgroundColor: i.value.color
872
+ })), S = t(() => i.value.buttonStatus), $ = t(() => i.value.containerColorHover), h = t(() => i.value.colorHover), _ = () => {
873
+ const f = !C.value;
874
+ C.value = f, s("clicked", f);
875
875
  };
876
- return ce(y, () => {
877
- C.value = y.value;
878
- }), (b, i) => e.nbId ? (D(), O("div", {
876
+ return ce(b, () => {
877
+ C.value = b.value;
878
+ }), (f, r) => e.nbId ? (T(), L("div", {
879
879
  key: 0,
880
- class: X(["nb-wrapper", v.value]),
881
- style: H([c.value]),
882
- onClick: h
880
+ class: X(["nb-wrapper", c.value]),
881
+ style: w([m.value]),
882
+ onClick: _
883
883
  }, [
884
- z("div", {
884
+ R("div", {
885
885
  id: e.nbId,
886
- class: X(["nb-reset", "component", _.value])
886
+ class: X(["nb-reset", "component", S.value])
887
887
  }, [
888
- z("div", {
888
+ R("div", {
889
889
  class: "component__line-one",
890
- style: H(n.value)
890
+ style: w(l.value)
891
891
  }, null, 4),
892
- z("div", {
892
+ R("div", {
893
893
  class: "component__line-two",
894
- style: H(n.value)
894
+ style: w(l.value)
895
895
  }, null, 4),
896
- z("div", {
896
+ R("div", {
897
897
  class: "component__line-three",
898
- style: H(n.value)
898
+ style: w(l.value)
899
899
  }, null, 4)
900
900
  ], 10, He)
901
- ], 6)) : T("", !0);
901
+ ], 6)) : A("", !0);
902
902
  }
903
- }), ke = /* @__PURE__ */ M($e, [["__scopeId", "data-v-37573ac0"]]);
903
+ }), ke = /* @__PURE__ */ j($e, [["__scopeId", "data-v-37573ac0"]]);
904
904
  const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
905
905
  name: "NbButtonColorOutside",
906
906
  inheritAttrs: !1
@@ -915,8 +915,8 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
915
915
  type: String,
916
916
  default: "b",
917
917
  validator: (e = "b") => {
918
- const d = e ? e.toLowerCase() : "";
919
- return ["b", "ib"].includes(d);
918
+ const s = e ? e.toLowerCase() : "";
919
+ return ["b", "ib"].includes(s);
920
920
  }
921
921
  },
922
922
  text: {
@@ -950,6 +950,10 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
950
950
  default: !1,
951
951
  validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
952
952
  },
953
+ borderRadius: {
954
+ type: Number,
955
+ default: 0.25
956
+ },
953
957
  fontFamily: {
954
958
  type: String,
955
959
  default: "'Lato', sans-serif"
@@ -966,69 +970,73 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
966
970
  }
967
971
  },
968
972
  emits: ["clicked"],
969
- setup(e, { emit: d }) {
973
+ setup(e, { emit: s }) {
970
974
  const B = e;
971
- P((f) => ({
972
- "5c58593c": w.value,
973
- f6f44b66: b.value,
974
- c5265f9c: h.value
975
+ F((o) => ({
976
+ bf6244be: f.value,
977
+ "3087ef32": k.value,
978
+ b71ed32e: _.value,
979
+ df6e4b52: r.value
975
980
  }));
976
981
  const {
977
982
  text: C,
978
- display: y,
983
+ display: b,
979
984
  buttonColor: x,
980
- borderColor: g,
981
- textColor: m,
982
- paddingX: p,
985
+ borderColor: p,
986
+ textColor: y,
987
+ paddingX: v,
983
988
  paddingY: V,
984
- disabled: S,
985
- fontFamily: N,
986
- fontSize: s,
987
- fontWeight: v
988
- } = F(B), c = t(() => {
989
- const f = C.value ? C.value : "Default Text", a = S.value ? "component-disabled" : "", o = y.value !== "b" ? "inline-block" : "block", k = x.value ? x.value : "#bbbbbb", r = g.value ? g.value : "#ffe54c", l = m.value ? m.value : "#ffffff", Y = !p.value || p.value < 0 ? 1 : p.value, W = !V.value || V.value < 0 ? 0.2 : V.value, R = N.value ? N.value : "'Lato', sans-serif", u = s.value ? s.value : "1.6em", I = !v.value || v.value < 0 ? 200 : v.value;
989
+ borderRadius: g,
990
+ disabled: N,
991
+ fontFamily: i,
992
+ fontSize: c,
993
+ fontWeight: m
994
+ } = M(B), l = t(() => {
995
+ const o = C.value ? C.value : "Default Text", H = N.value ? "component-disabled" : "", d = b.value !== "b" ? "inline-block" : "block", n = x.value ? x.value : "#bbbbbb", Y = p.value ? p.value : "#ffe54c", z = y.value ? y.value : "#ffffff", W = !v.value || v.value < 0 ? 1 : v.value, u = !V.value || V.value < 0 ? 0.2 : V.value, I = !g.value || g.value < 0 ? 0 : g.value, D = i.value ? i.value : "'Lato', sans-serif", O = c.value ? c.value : "1.6em", P = !m.value || m.value < 0 ? 200 : m.value;
990
996
  return {
991
- disabled: a,
992
- display: o,
993
- buttonColor: k,
994
- borderColor: r,
995
- textColor: l,
996
- paddingX: Y,
997
- paddingY: W,
998
- text: f,
999
- font: R,
1000
- fontSize: u,
1001
- fontWeight: I
997
+ disabled: H,
998
+ display: d,
999
+ buttonColor: n,
1000
+ borderColor: Y,
1001
+ textColor: z,
1002
+ paddingX: W,
1003
+ paddingY: u,
1004
+ text: o,
1005
+ borderRadius: I,
1006
+ font: D,
1007
+ fontSize: O,
1008
+ fontWeight: P
1002
1009
  };
1003
- }), n = t(() => c.value.disabled), _ = t(() => ({
1004
- display: c.value.display
1005
- })), $ = t(() => {
1006
- const f = c.value;
1010
+ }), S = t(() => l.value.disabled), $ = t(() => ({
1011
+ display: l.value.display
1012
+ })), h = t(() => {
1013
+ const o = l.value;
1007
1014
  return {
1008
- border: `1px solid ${f.borderColor}`,
1009
- color: f.textColor,
1010
- padding: `${f.paddingY}rem ${f.paddingX}rem`,
1011
- fontSize: f.fontSize,
1012
- fontWeight: f.fontWeight
1015
+ border: `1px solid ${o.borderColor}`,
1016
+ color: o.textColor,
1017
+ padding: `${o.paddingY}rem ${o.paddingX}rem`,
1018
+ borderRadius: _.value,
1019
+ fontSize: o.fontSize,
1020
+ fontWeight: o.fontWeight
1013
1021
  };
1014
- }), w = t(() => c.value.font), h = t(() => c.value.textColor), b = t(() => c.value.buttonColor), i = () => {
1015
- d("clicked");
1022
+ }), _ = t(() => `${l.value.borderRadius}rem`), f = t(() => l.value.font), r = t(() => l.value.textColor), k = t(() => l.value.buttonColor), a = () => {
1023
+ s("clicked");
1016
1024
  };
1017
- return (f, a) => e.nbId ? (D(), O("div", {
1025
+ return (o, H) => e.nbId ? (T(), L("div", {
1018
1026
  key: 0,
1019
- class: X(["nb-wrapper", n.value]),
1020
- style: H([_.value]),
1021
- onClick: i
1027
+ class: X(["nb-wrapper", S.value]),
1028
+ style: w([$.value]),
1029
+ onClick: a
1022
1030
  }, [
1023
- z("div", {
1031
+ R("div", {
1024
1032
  id: e.nbId,
1025
1033
  class: X(["nb-reset", "component"]),
1026
- style: H([$.value])
1027
- }, Q(c.value.text), 13, Ye)
1028
- ], 6)) : T("", !0);
1034
+ style: w([h.value])
1035
+ }, te(l.value.text), 13, Ye)
1036
+ ], 6)) : A("", !0);
1029
1037
  }
1030
- }), ze = /* @__PURE__ */ M(Xe, [["__scopeId", "data-v-b0bef095"]]);
1031
- const We = ["id"], Re = /* @__PURE__ */ Object.assign({
1038
+ }), Re = /* @__PURE__ */ j(Xe, [["__scopeId", "data-v-34a3b3a9"]]);
1039
+ const ze = ["id"], We = /* @__PURE__ */ Object.assign({
1032
1040
  name: "NbButtonColorHover",
1033
1041
  inheritAttrs: !1
1034
1042
  }, {
@@ -1046,8 +1054,8 @@ const We = ["id"], Re = /* @__PURE__ */ Object.assign({
1046
1054
  type: String,
1047
1055
  default: "b",
1048
1056
  validator: (e = "b") => {
1049
- const d = e.toLowerCase();
1050
- return ["b", "ib"].includes(d);
1057
+ const s = e.toLowerCase();
1058
+ return ["b", "ib"].includes(s);
1051
1059
  }
1052
1060
  },
1053
1061
  textColor: {
@@ -1101,77 +1109,77 @@ const We = ["id"], Re = /* @__PURE__ */ Object.assign({
1101
1109
  }
1102
1110
  },
1103
1111
  emits: ["clicked"],
1104
- setup(e, { emit: d }) {
1112
+ setup(e, { emit: s }) {
1105
1113
  const B = e;
1106
- P((r) => ({
1107
- ea8f1624: b.value,
1114
+ F((d) => ({
1115
+ ea8f1624: f.value,
1108
1116
  "68a00a02": a.value,
1109
- a1f5bb90: f.value,
1117
+ a1f5bb90: k.value,
1110
1118
  "7c8ae57d": o.value,
1111
- "0ca91538": i.value
1119
+ "0ca91538": r.value
1112
1120
  }));
1113
1121
  const {
1114
1122
  text: C,
1115
- display: y,
1123
+ display: b,
1116
1124
  textColor: x,
1117
- paddingX: g,
1118
- paddingY: m,
1119
- borderRadius: p,
1125
+ paddingX: p,
1126
+ paddingY: y,
1127
+ borderRadius: v,
1120
1128
  disabled: V,
1121
- fontFamily: S,
1129
+ fontFamily: g,
1122
1130
  fontSize: N,
1123
- fontWeight: s,
1124
- textColorHover: v,
1125
- buttonColor: c,
1126
- buttonColorHover: n
1127
- } = F(B), _ = t(() => {
1128
- const r = C.value ? C.value : "Default Text", l = V.value ? "component-disabled" : "", Y = y.value !== "b" ? "inline-block" : "block", W = x ? x.value : "ffffff", R = !g.value || g.value < 0 ? 1 : g.value, u = !m.value || m.value < 0 ? 0.2 : m.value, I = !p.value || p.value < 0 ? 0 : p.value, L = S.value ? S.value : "'Lato', sans-serif", A = N.value ? N.value : "1.6rem", j = !s.value || s.value < 0 ? 100 : s.value, E = v.value ? v.value : "#cccccc", J = c.value ? c.value : "#bbbbbb", K = n.value ? n.value : "#959595";
1131
+ fontWeight: i,
1132
+ textColorHover: c,
1133
+ buttonColor: m,
1134
+ buttonColorHover: l
1135
+ } = M(B), S = t(() => {
1136
+ const d = C.value ? C.value : "Default Text", n = V.value ? "component-disabled" : "", Y = b.value !== "b" ? "inline-block" : "block", z = x ? x.value : "ffffff", W = !p.value || p.value < 0 ? 1 : p.value, u = !y.value || y.value < 0 ? 0.2 : y.value, I = !v.value || v.value < 0 ? 0 : v.value, D = g.value ? g.value : "'Lato', sans-serif", O = N.value ? N.value : "1.6rem", P = !i.value || i.value < 0 ? 100 : i.value, E = c.value ? c.value : "#cccccc", J = m.value ? m.value : "#bbbbbb", K = l.value ? l.value : "#959595";
1129
1137
  return {
1130
- disabled: l,
1138
+ disabled: n,
1131
1139
  display: Y,
1132
- font: L,
1133
- fontSize: A,
1134
- fontWeight: j,
1135
- text: r,
1136
- textColor: W,
1137
- paddingX: R,
1140
+ font: D,
1141
+ fontSize: O,
1142
+ fontWeight: P,
1143
+ text: d,
1144
+ textColor: z,
1145
+ paddingX: W,
1138
1146
  paddingY: u,
1139
1147
  borderRadius: I,
1140
1148
  textColorHover: E,
1141
1149
  buttonColor: J,
1142
1150
  buttonColorHover: K
1143
1151
  };
1144
- }), $ = t(() => _.value.disabled), w = t(() => {
1145
- const r = _.value;
1152
+ }), $ = t(() => S.value.disabled), h = t(() => {
1153
+ const d = S.value;
1146
1154
  return {
1147
- display: r.display,
1148
- borderRadius: `${r.borderRadius}rem`
1155
+ display: d.display,
1156
+ borderRadius: `${d.borderRadius}rem`
1149
1157
  };
1150
- }), h = t(() => {
1151
- const r = _.value;
1158
+ }), _ = t(() => {
1159
+ const d = S.value;
1152
1160
  return {
1153
- color: r.textColor,
1154
- padding: `${r.paddingY}rem ${r.paddingX}rem`,
1155
- borderRadius: `${r.borderRadius}rem`,
1156
- fontSize: r.fontSize,
1157
- fontWeight: r.fontWeight
1161
+ color: d.textColor,
1162
+ padding: `${d.paddingY}rem ${d.paddingX}rem`,
1163
+ borderRadius: `${d.borderRadius}rem`,
1164
+ fontSize: d.fontSize,
1165
+ fontWeight: d.fontWeight
1158
1166
  };
1159
- }), b = t(() => _.value.font), i = t(() => _.value.textColor), f = t(() => _.value.textColorHover), a = t(() => _.value.buttonColor), o = t(() => _.value.buttonColorHover), k = () => {
1160
- d("clicked");
1167
+ }), f = t(() => S.value.font), r = t(() => S.value.textColor), k = t(() => S.value.textColorHover), a = t(() => S.value.buttonColor), o = t(() => S.value.buttonColorHover), H = () => {
1168
+ s("clicked");
1161
1169
  };
1162
- return (r, l) => (D(), O("div", {
1170
+ return (d, n) => (T(), L("div", {
1163
1171
  class: X(["nb-wrapper", $.value]),
1164
- style: H([w.value]),
1165
- onClick: k
1172
+ style: w([h.value]),
1173
+ onClick: H
1166
1174
  }, [
1167
- z("div", {
1175
+ R("div", {
1168
1176
  id: e.nbId,
1169
1177
  class: "nb-reset component component-transition",
1170
- style: H([h.value])
1171
- }, Q(_.value.text), 13, We)
1178
+ style: w([_.value])
1179
+ }, te(S.value.text), 13, ze)
1172
1180
  ], 6));
1173
1181
  }
1174
- }), Ie = /* @__PURE__ */ M(Re, [["__scopeId", "data-v-14a4a2ac"]]);
1182
+ }), Ie = /* @__PURE__ */ j(We, [["__scopeId", "data-v-14a4a2ac"]]);
1175
1183
  const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" }, Le = /* @__PURE__ */ Object.assign({
1176
1184
  name: "NbButtonAlternateText",
1177
1185
  inheritAttrs: !1
@@ -1186,8 +1194,8 @@ const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" },
1186
1194
  type: String,
1187
1195
  default: "b",
1188
1196
  validator: (e = "b") => {
1189
- const d = e ? e.toLowerCase() : "";
1190
- return ["b", "ib"].includes(d);
1197
+ const s = e ? e.toLowerCase() : "";
1198
+ return ["b", "ib"].includes(s);
1191
1199
  }
1192
1200
  },
1193
1201
  textColor: {
@@ -1255,106 +1263,106 @@ const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" },
1255
1263
  }
1256
1264
  },
1257
1265
  emits: ["clicked"],
1258
- setup(e, { emit: d }) {
1266
+ setup(e, { emit: s }) {
1259
1267
  const B = e;
1260
- P((l) => ({
1261
- "17a23bbc": f.value,
1268
+ F((n) => ({
1269
+ "17a23bbc": k.value,
1262
1270
  "2cc4da9c": a.value,
1263
1271
  aa259cd0: o.value,
1264
- f0e00666: k.value
1272
+ f0e00666: H.value
1265
1273
  }));
1266
1274
  const {
1267
1275
  display: C,
1268
- buttonColor: y,
1276
+ buttonColor: b,
1269
1277
  borderColor: x,
1270
- buttonHoverColor: g,
1271
- showBorder: m,
1272
- borderRadius: p,
1278
+ buttonHoverColor: p,
1279
+ showBorder: y,
1280
+ borderRadius: v,
1273
1281
  textColor: V,
1274
- textHoverColor: S,
1282
+ textHoverColor: g,
1275
1283
  width: N,
1276
- paddingX: s,
1277
- paddingY: v,
1278
- disabled: c,
1279
- fontFamily: n,
1280
- fontSize: _,
1284
+ paddingX: i,
1285
+ paddingY: c,
1286
+ disabled: m,
1287
+ fontFamily: l,
1288
+ fontSize: S,
1281
1289
  fontWeight: $
1282
- } = F(B), w = t(() => {
1283
- const l = c.value ? "component-disabled" : "", Y = C.value !== "b" ? "inline-block" : "block", W = y.value ? y.value : "#ffffff", R = g.value ? g.value : "#000000", u = x.value ? x.value : "#ffe54c", I = !p.value || p.value < 0 ? 0 : p.value, L = [!1, !0].includes(m.value) ? m.value : !0, A = V.value ? V.value : "#ffffff", j = S.value ? S.value : "#000000", E = !N.value || N.value < 86 ? 86 : N.value, J = !s.value || s.value < 0 ? 1 : s.value, K = !v.value || v.value < 0 ? 0.4 : v.value, U = n.value ? n.value : "'Lato', sans-serif", Z = _.value ? _.value : "1.6em", ee = !$.value || $.value < 0 ? 200 : $.value;
1290
+ } = M(B), h = t(() => {
1291
+ const n = m.value ? "component-disabled" : "", Y = C.value !== "b" ? "inline-block" : "block", z = b.value ? b.value : "#ffffff", W = p.value ? p.value : "#000000", u = x.value ? x.value : "#ffe54c", I = !v.value || v.value < 0 ? 0 : v.value, D = [!1, !0].includes(y.value) ? y.value : !0, O = V.value ? V.value : "#ffffff", P = g.value ? g.value : "#000000", E = !N.value || N.value < 86 ? 86 : N.value, J = !i.value || i.value < 0 ? 1 : i.value, K = !c.value || c.value < 0 ? 0.4 : c.value, Q = l.value ? l.value : "'Lato', sans-serif", U = S.value ? S.value : "1.6em", Z = !$.value || $.value < 0 ? 200 : $.value;
1284
1292
  return {
1285
- disabled: l,
1293
+ disabled: n,
1286
1294
  display: Y,
1287
- buttonColor: W,
1288
- buttonHoverColor: R,
1295
+ buttonColor: z,
1296
+ buttonHoverColor: W,
1289
1297
  borderColor: u,
1290
- showBorder: L,
1298
+ showBorder: D,
1291
1299
  borderRadius: I,
1292
- textColor: A,
1293
- textHoverColor: j,
1300
+ textColor: O,
1301
+ textHoverColor: P,
1294
1302
  width: E,
1295
1303
  paddingX: J,
1296
1304
  paddingY: K,
1297
- font: U,
1298
- fontSize: Z,
1299
- fontWeight: ee
1305
+ font: Q,
1306
+ fontSize: U,
1307
+ fontWeight: Z
1300
1308
  };
1301
- }), h = t(() => w.value.disabled), b = t(() => ({
1302
- display: w.value.display
1303
- })), i = t(() => {
1304
- const l = w.value, Y = l.display === "block" ? "auto" : `${l.width}px`;
1309
+ }), _ = t(() => h.value.disabled), f = t(() => ({
1310
+ display: h.value.display
1311
+ })), r = t(() => {
1312
+ const n = h.value, Y = n.display === "block" ? "auto" : `${n.width}px`;
1305
1313
  return {
1306
- ...l.showBorder ? { border: `1px solid ${l.borderColor}` } : {},
1307
- borderRadius: `${l.borderRadius}rem`,
1308
- background: l.buttonColor,
1314
+ ...n.showBorder ? { border: `1px solid ${n.borderColor}` } : {},
1315
+ borderRadius: `${n.borderRadius}rem`,
1316
+ background: n.buttonColor,
1309
1317
  minWidth: "33px",
1310
1318
  width: Y,
1311
- padding: `${l.paddingY}rem ${l.paddingX}rem`,
1319
+ padding: `${n.paddingY}rem ${n.paddingX}rem`,
1312
1320
  lineHeight: "1.42857143",
1313
- fontSize: l.fontSize,
1314
- fontWeight: l.fontWeight
1321
+ fontSize: n.fontSize,
1322
+ fontWeight: n.fontWeight
1315
1323
  };
1316
- }), f = t(() => w.value.font), a = t(() => w.value.textColor), o = t(() => w.value.textHoverColor), k = t(() => w.value.buttonHoverColor), r = () => {
1317
- d("clicked");
1324
+ }), k = t(() => h.value.font), a = t(() => h.value.textColor), o = t(() => h.value.textHoverColor), H = t(() => h.value.buttonHoverColor), d = () => {
1325
+ s("clicked");
1318
1326
  };
1319
- return (l, Y) => e.nbId ? (D(), O("div", {
1327
+ return (n, Y) => e.nbId ? (T(), L("div", {
1320
1328
  key: 0,
1321
- class: X(["nb-wrapper", h.value]),
1322
- style: H([b.value]),
1323
- onClick: r
1329
+ class: X(["nb-wrapper", _.value]),
1330
+ style: w([f.value]),
1331
+ onClick: d
1324
1332
  }, [
1325
- z("div", {
1333
+ R("div", {
1326
1334
  id: e.nbId,
1327
1335
  class: X(["nb-reset", "component"]),
1328
- style: H([i.value])
1336
+ style: w([r.value])
1329
1337
  }, [
1330
- z("div", Oe, [
1331
- q(l.$slots, "content", {}, () => [
1338
+ R("div", Oe, [
1339
+ q(n.$slots, "content", {}, () => [
1332
1340
  G("Default Text")
1333
1341
  ], !0)
1334
1342
  ]),
1335
- z("div", Te, [
1336
- q(l.$slots, "content-alternate", {}, () => [
1343
+ R("div", Te, [
1344
+ q(n.$slots, "content-alternate", {}, () => [
1337
1345
  G("Default Alternate Text")
1338
1346
  ], !0)
1339
1347
  ])
1340
1348
  ], 12, De)
1341
- ], 6)) : T("", !0);
1349
+ ], 6)) : A("", !0);
1342
1350
  }
1343
- }), Ae = /* @__PURE__ */ M(Le, [["__scopeId", "data-v-e0ed856f"]]), te = {
1351
+ }), Ae = /* @__PURE__ */ j(Le, [["__scopeId", "data-v-e0ed856f"]]), ee = {
1344
1352
  NbButtonVavaGame: pe,
1345
1353
  NbButtonShowHover: me,
1346
1354
  NbButtonPrevNext: xe,
1347
1355
  NbButtonMechanical: he,
1348
1356
  NbButtonMechanical2: Be,
1349
1357
  NbButtonHamburger: ke,
1350
- NbButtonColorOutside: ze,
1358
+ NbButtonColorOutside: Re,
1351
1359
  NbButtonColorHover: Ie,
1352
1360
  NbButtonAlternateText: Ae
1353
1361
  }, Fe = {
1354
1362
  install(e) {
1355
- for (const d in te)
1356
- if (Object.prototype.hasOwnProperty.call(te, d)) {
1357
- const B = te[d];
1363
+ for (const s in ee)
1364
+ if (Object.prototype.hasOwnProperty.call(ee, s)) {
1365
+ const B = ee[s];
1358
1366
  e.component(B.name, B);
1359
1367
  }
1360
1368
  }