@vlalg-nimbus/nb-buttons 2.0.3 → 2.0.5

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