@vlalg-nimbus/nb-buttons 2.0.4 → 2.0.6

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