@vlalg-nimbus/nb-buttons 3.1.0 → 3.2.0

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 O, createElementBlock as L, normalizeClass as Y, normalizeStyle as N, createElementVNode as $, renderSlot as A, createTextVNode as P, createCommentVNode as T, unref as ae, withModifiers as se, onMounted as oe, ref as ie, watch as ce, toDisplayString as fe } from "vue";
2
- const j = (e, s) => {
3
- const w = e.__vccOpts || e;
4
- for (const [k, x] of s)
5
- w[k] = x;
6
- return w;
7
- }, be = ["tabIndex"], ve = ["id"], pe = { class: "component-content__text" }, ye = /* @__PURE__ */ Object.assign({
1
+ import { useCssVars as j, toRefs as q, computed as t, openBlock as O, createElementBlock as E, normalizeClass as R, normalizeStyle as w, unref as V, withKeys as W, withModifiers as F, createElementVNode as z, renderSlot as K, createTextVNode as M, createCommentVNode as P, onMounted as ne, ref as fe, watch as ce, toDisplayString as be } from "vue";
2
+ const G = (e, c) => {
3
+ const H = e.__vccOpts || e;
4
+ for (const [Y, N] of c)
5
+ H[Y] = N;
6
+ return H;
7
+ }, ve = ["tabIndex", "aria-label", "aria-disabled"], pe = ["id"], ye = { class: "component-content__text" }, ge = /* @__PURE__ */ Object.assign({
8
8
  name: "NbButtonVavaGame",
9
9
  inheritAttrs: !1
10
10
  }, {
@@ -18,14 +18,26 @@ const j = (e, s) => {
18
18
  type: String,
19
19
  default: "ib",
20
20
  validator: (e = "") => {
21
- const s = e.toLowerCase();
22
- return ["b", "ib"].includes(s);
21
+ const c = e.toLowerCase();
22
+ return ["b", "ib"].includes(c);
23
23
  }
24
24
  },
25
25
  tabIndex: {
26
26
  type: Number,
27
27
  default: 0
28
28
  },
29
+ hasTabIndexEnter: {
30
+ type: Boolean,
31
+ default: !0
32
+ },
33
+ hasTabIndexSpace: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ ariaLabel: {
38
+ type: String,
39
+ default: "Alternate Text Button"
40
+ },
29
41
  textColor: {
30
42
  type: String,
31
43
  default: "#ece8e1"
@@ -96,103 +108,110 @@ const j = (e, s) => {
96
108
  }
97
109
  },
98
110
  emits: ["clicked"],
99
- setup(e, { emit: s }) {
100
- F((p) => ({
101
- "546fa782": n.value,
102
- "09c37ef8": H.value,
103
- "4617f524": X.value,
104
- "6926a24e": W.value,
105
- "1edb7201": d.value
111
+ setup(e, { emit: c }) {
112
+ j((C) => ({
113
+ "3b94cba3": o.value,
114
+ "6146add9": T.value,
115
+ "2753eae3": L.value,
116
+ "4edfa97a": $.value,
117
+ dd0b6f3c: s.value
106
118
  }));
107
- const w = s, k = e, {
108
- display: x,
109
- textColor: m,
110
- textColorHover: C,
111
- buttonColor: y,
112
- buttonColorHover: g,
113
- uppercase: S,
114
- paddingXContent: i,
115
- paddingYContent: h,
116
- paddingXBorder: _,
117
- paddingYBorder: b,
118
- borderColor: c,
119
- borderOpacity: u,
120
- disabled: v,
121
- fontFamily: z,
122
- fontSize: I,
123
- fontWeight: f
124
- } = M(k), V = t(() => {
125
- const p = v.value ? "component-disabled" : "", D = x.value !== "b" ? "inline-block" : "block", q = m.value ? m.value : "#ece8e1", G = y.value ? y.value : "green", E = C.value ? C.value : "#ece8e1", J = g.value ? g.value : "cyan", K = c.value ? c.value : "#ffffff", Q = !u.value || !(u.value >= 0 && u.value <= 1) ? "0.5" : u.value, U = !_.value || _.value < 0 ? 0.3 : _.value, Z = !b.value || b.value < 0 ? 0.3 : b.value, ee = !i.value || i.value < 0 ? 0.5 : i.value, le = !h.value || h.value < 0 ? 0.5 : h.value, ne = S.value ? "uppercase" : "none", ue = z.value ? z.value : "'Lato', sans-serif", re = I.value ? I.value : "1.6em", de = !f.value || f.value < 0 ? 100 : f.value;
119
+ const H = c, Y = e, {
120
+ display: N,
121
+ textColor: B,
122
+ textColorHover: x,
123
+ buttonColor: S,
124
+ buttonColorHover: i,
125
+ uppercase: b,
126
+ paddingXContent: v,
127
+ paddingYContent: p,
128
+ paddingXBorder: h,
129
+ paddingYBorder: m,
130
+ borderColor: y,
131
+ borderOpacity: r,
132
+ disabled: f,
133
+ fontFamily: X,
134
+ fontSize: k,
135
+ fontWeight: g
136
+ } = q(Y), d = t(() => {
137
+ const C = f.value ? "component-disabled" : "", A = N.value !== "b" ? "inline-block" : "block", _ = B.value ? B.value : "#ece8e1", J = S.value ? S.value : "green", Q = x.value ? x.value : "#ece8e1", U = i.value ? i.value : "cyan", Z = y.value ? y.value : "#ffffff", ee = !r.value || !(r.value >= 0 && r.value <= 1) ? "0.5" : r.value, te = !h.value || h.value < 0 ? 0.3 : h.value, ae = !m.value || m.value < 0 ? 0.3 : m.value, le = !v.value || v.value < 0 ? 0.5 : v.value, ue = !p.value || p.value < 0 ? 0.5 : p.value, re = b.value ? "uppercase" : "none", de = X.value ? X.value : "'Lato', sans-serif", se = k.value ? k.value : "1.6em", ie = !g.value || g.value < 0 ? 100 : g.value;
126
138
  return {
127
- disabled: p,
128
- display: D,
129
- textColor: q,
130
- buttonColor: G,
131
- textColorHover: E,
132
- buttonColorHover: J,
133
- borderColor: K,
134
- borderOpacity: Q,
135
- paddingXBorder: U,
136
- paddingYBorder: Z,
137
- paddingXContent: ee,
138
- paddingYContent: le,
139
- uppercase: ne,
140
- font: ue,
141
- fontSize: re,
142
- fontWeight: de
139
+ disabled: C,
140
+ display: A,
141
+ textColor: _,
142
+ buttonColor: J,
143
+ textColorHover: Q,
144
+ buttonColorHover: U,
145
+ borderColor: Z,
146
+ borderOpacity: ee,
147
+ paddingXBorder: te,
148
+ paddingYBorder: ae,
149
+ paddingXContent: le,
150
+ paddingYContent: ue,
151
+ uppercase: re,
152
+ font: de,
153
+ fontSize: se,
154
+ fontWeight: ie
143
155
  };
144
- }), o = t(() => V.value.disabled), B = t(() => ({
145
- display: V.value.display
146
- })), r = t(() => {
147
- const p = V.value;
156
+ }), n = t(() => d.value.disabled), I = t(() => ({
157
+ display: d.value.display
158
+ })), u = t(() => {
159
+ const C = d.value;
148
160
  return {
149
- padding: `${p.paddingYBorder}rem ${p.paddingXBorder}rem`,
150
- fontSize: p.fontSize,
151
- fontWeight: p.fontWeight
161
+ padding: `${C.paddingYBorder}rem ${C.paddingXBorder}rem`,
162
+ fontSize: C.fontSize,
163
+ fontWeight: C.fontWeight
152
164
  };
153
165
  }), l = t(() => {
154
- const p = V.value;
166
+ const C = d.value;
155
167
  return {
156
- textTransform: p.uppercase,
157
- padding: `${p.paddingYContent}rem ${p.paddingXContent}rem`,
158
- backgroundColor: p.buttonColor
168
+ textTransform: C.uppercase,
169
+ padding: `${C.paddingYContent}rem ${C.paddingXContent}rem`,
170
+ backgroundColor: C.buttonColor
159
171
  };
160
172
  }), a = t(() => ({
161
- backgroundColor: V.value.buttonColorHover
162
- })), n = t(() => V.value.font), W = t(() => V.value.borderColor), d = t(() => V.value.borderOpacity), H = t(() => V.value.textColor), X = t(() => V.value.textColorHover), R = () => {
163
- w("clicked");
173
+ backgroundColor: d.value.buttonColorHover
174
+ })), o = t(() => d.value.font), $ = t(() => d.value.borderColor), s = t(() => d.value.borderOpacity), T = t(() => d.value.textColor), L = t(() => d.value.textColorHover), D = () => {
175
+ H("clicked");
164
176
  };
165
- return (p, D) => e.nbId ? (O(), L("div", {
177
+ return (C, A) => e.nbId ? (O(), E("div", {
166
178
  key: 0,
167
- class: Y(["nb-wrapper", o.value]),
168
- style: N([B.value]),
179
+ class: R(["nb-wrapper", n.value]),
180
+ style: w([I.value]),
169
181
  tabIndex: e.tabIndex,
170
- onClick: R
182
+ role: "button",
183
+ "aria-label": e.ariaLabel,
184
+ "aria-disabled": V(f),
185
+ onClick: D,
186
+ onKeydown: [
187
+ A[0] || (A[0] = W((_) => !V(f) && e.hasTabIndexEnter && D(), ["enter"])),
188
+ A[1] || (A[1] = W(F((_) => !V(f) && e.hasTabIndexSpace && D(), ["prevent"]), ["space"]))
189
+ ]
171
190
  }, [
172
- $("div", {
191
+ z("div", {
173
192
  id: e.nbId,
174
- class: Y(["nb-reset", "component"]),
175
- style: N([r.value])
193
+ class: R(["nb-reset", "component"]),
194
+ style: w([u.value])
176
195
  }, [
177
- $("div", {
196
+ z("div", {
178
197
  class: "component-content",
179
- style: N([l.value])
198
+ style: w([l.value])
180
199
  }, [
181
- $("span", pe, [
182
- A(p.$slots, "content", {}, () => [
183
- D[0] || (D[0] = P("Default Text"))
200
+ z("span", ye, [
201
+ K(C.$slots, "content", {}, () => [
202
+ A[2] || (A[2] = M("Default Text"))
184
203
  ], !0)
185
204
  ]),
186
- $("span", {
205
+ z("span", {
187
206
  class: "component-content__mask",
188
- style: N([a.value])
207
+ style: w([a.value])
189
208
  }, null, 4)
190
209
  ], 4)
191
- ], 12, ve)
192
- ], 14, be)) : T("", !0);
210
+ ], 12, pe)
211
+ ], 46, ve)) : P("", !0);
193
212
  }
194
- }), ge = /* @__PURE__ */ j(ye, [["__scopeId", "data-v-4c5461c7"]]);
195
- const me = ["tabIndex"], Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
213
+ }), me = /* @__PURE__ */ G(ge, [["__scopeId", "data-v-c8141ce9"]]);
214
+ const Ve = ["tabIndex", "aria-label", "aria-disabled"], xe = ["id"], Ce = /* @__PURE__ */ Object.assign({
196
215
  name: "NbButtonShowHover",
197
216
  inheritAttrs: !1
198
217
  }, {
@@ -206,6 +225,18 @@ const me = ["tabIndex"], Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
206
225
  type: Number,
207
226
  default: 0
208
227
  },
228
+ hasTabIndexEnter: {
229
+ type: Boolean,
230
+ default: !0
231
+ },
232
+ hasTabIndexSpace: {
233
+ type: Boolean,
234
+ default: !0
235
+ },
236
+ ariaLabel: {
237
+ type: String,
238
+ default: "Alternate Text Button"
239
+ },
209
240
  textColor: {
210
241
  type: String,
211
242
  default: "#145deb"
@@ -262,83 +293,90 @@ const me = ["tabIndex"], Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
262
293
  }
263
294
  },
264
295
  emits: ["clicked"],
265
- setup(e, { emit: s }) {
266
- F((r) => ({
267
- f362db14: o.value,
268
- "7e7ab6b3": f.value,
269
- "4281574a": V.value,
270
- b6ef43e6: e.textColorHover,
271
- "492d686f": ae(x)
296
+ setup(e, { emit: c }) {
297
+ j((u) => ({
298
+ "630b5d13": n.value,
299
+ "6584a110": g.value,
300
+ "3cc5d20d": d.value,
301
+ e8db6f2c: e.textColorHover,
302
+ "7e70901c": V(N)
272
303
  }));
273
- const w = s, k = e, {
274
- textColor: x,
275
- buttonColorHover: m,
276
- buttonColorOpacityHover: C,
277
- paddingX: y,
278
- paddingY: g,
279
- disabled: S,
280
- borderRadius: i,
281
- verticalAlign: h,
282
- fontFamily: _,
283
- fontSize: b,
284
- fontWeight: c
285
- } = M(k), u = t(() => {
286
- const r = S.value ? "component-disabled" : "", l = h.value ? h.value : "middle", a = x ? x.value : "ffffff", n = !y.value || y.value < 0 ? 1 : y.value, W = !g.value || g.value < 0 ? 0.2 : g.value, d = !i.value || i.value < 0 ? 0 : i.value, H = m.value ? m.value : "10, 38, 184", X = !C.value || C.value < 0 ? 0.1 : C.value, R = _.value ? _.value : "'Lato', sans-serif", p = b.value ? b.value : "1.6rem", D = !c.value || c.value < 0 ? 100 : c.value;
304
+ const H = c, Y = e, {
305
+ textColor: N,
306
+ buttonColorHover: B,
307
+ buttonColorOpacityHover: x,
308
+ paddingX: S,
309
+ paddingY: i,
310
+ disabled: b,
311
+ borderRadius: v,
312
+ verticalAlign: p,
313
+ fontFamily: h,
314
+ fontSize: m,
315
+ fontWeight: y
316
+ } = q(Y), r = t(() => {
317
+ const u = b.value ? "component-disabled" : "", l = p.value ? p.value : "middle", a = N ? N.value : "ffffff", o = !S.value || S.value < 0 ? 1 : S.value, $ = !i.value || i.value < 0 ? 0.2 : i.value, s = !v.value || v.value < 0 ? 0 : v.value, T = B.value ? B.value : "10, 38, 184", L = !x.value || x.value < 0 ? 0.1 : x.value, D = h.value ? h.value : "'Lato', sans-serif", C = m.value ? m.value : "1.6rem", A = !y.value || y.value < 0 ? 100 : y.value;
287
318
  return {
288
- disabled: r,
289
- borderRadius: d,
319
+ disabled: u,
320
+ borderRadius: s,
290
321
  textColor: a,
291
- paddingX: n,
292
- paddingY: W,
293
- buttonColorHover: H,
294
- buttonColorOpacityHover: X,
295
- font: R,
296
- fontSize: p,
297
- fontWeight: D,
322
+ paddingX: o,
323
+ paddingY: $,
324
+ buttonColorHover: T,
325
+ buttonColorOpacityHover: L,
326
+ font: D,
327
+ fontSize: C,
328
+ fontWeight: A,
298
329
  verticalAlign: l
299
330
  };
300
- }), v = t(() => u.value.disabled), z = t(() => ({
301
- verticalAlign: u.value.verticalAlign
302
- })), I = t(() => {
303
- const r = u.value;
331
+ }), f = t(() => r.value.disabled), X = t(() => ({
332
+ verticalAlign: r.value.verticalAlign
333
+ })), k = t(() => {
334
+ const u = r.value;
304
335
  return {
305
- color: r.textColor,
306
- padding: `${r.paddingY}rem 0`,
307
- borderRadius: `${r.borderRadius}rem`,
308
- fontSize: r.fontSize,
309
- fontWeight: r.fontWeight
336
+ color: u.textColor,
337
+ padding: `${u.paddingY}rem 0`,
338
+ borderRadius: `${u.borderRadius}rem`,
339
+ fontSize: u.fontSize,
340
+ fontWeight: u.fontWeight
310
341
  };
311
- }), f = t(() => {
312
- const r = u.value;
313
- return `${r.paddingY}rem ${r.paddingX}rem`;
314
- }), V = t(() => {
315
- const r = u.value;
316
- return `rgba(${r.buttonColorHover}, ${r.buttonColorOpacityHover})`;
317
- }), o = t(() => u.value.font), B = () => {
318
- w("clicked");
342
+ }), g = t(() => {
343
+ const u = r.value;
344
+ return `${u.paddingY}rem ${u.paddingX}rem`;
345
+ }), d = t(() => {
346
+ const u = r.value;
347
+ return `rgba(${u.buttonColorHover}, ${u.buttonColorOpacityHover})`;
348
+ }), n = t(() => r.value.font), I = () => {
349
+ H("clicked");
319
350
  };
320
- return (r, l) => e.nbId ? (O(), L("div", {
351
+ return (u, l) => e.nbId ? (O(), E("div", {
321
352
  key: 0,
322
- class: Y(["nb-wrapper", v.value]),
323
- style: N([z.value]),
353
+ class: R(["nb-wrapper", f.value]),
354
+ style: w([X.value]),
324
355
  tabIndex: e.tabIndex,
325
- onClick: B
356
+ role: "button",
357
+ "aria-label": e.ariaLabel,
358
+ "aria-disabled": V(b),
359
+ onClick: I,
360
+ onKeydown: [
361
+ l[1] || (l[1] = W((a) => !V(b) && e.hasTabIndexEnter && I(), ["enter"])),
362
+ l[2] || (l[2] = W(F((a) => !V(b) && e.hasTabIndexSpace && I(), ["prevent"]), ["space"]))
363
+ ]
326
364
  }, [
327
- $("a", {
365
+ z("a", {
328
366
  id: e.nbId,
329
367
  class: "nb-reset component tertiary",
330
- style: N([I.value]),
331
- onClick: l[0] || (l[0] = se(() => {
368
+ style: w([k.value]),
369
+ onClick: l[0] || (l[0] = F(() => {
332
370
  }, ["prevent"]))
333
371
  }, [
334
- A(r.$slots, "content", {}, () => [
335
- l[1] || (l[1] = P("Default Text"))
372
+ K(u.$slots, "content", {}, () => [
373
+ l[3] || (l[3] = M("Default Text"))
336
374
  ], !0)
337
- ], 12, Ve)
338
- ], 14, me)) : T("", !0);
375
+ ], 12, xe)
376
+ ], 46, Ve)) : P("", !0);
339
377
  }
340
- }), xe = /* @__PURE__ */ j(Ce, [["__scopeId", "data-v-42182b51"]]);
341
- const Se = ["id"], _e = ["tabIndex"], he = ["tabIndex"], Ne = /* @__PURE__ */ Object.assign({
378
+ }), Se = /* @__PURE__ */ G(Ce, [["__scopeId", "data-v-f844cd94"]]);
379
+ const Ie = ["id"], Be = ["tabIndex", "aria-label", "aria-disabled"], he = ["tabIndex", "aria-label", "aria-disabled"], Ne = /* @__PURE__ */ Object.assign({
342
380
  name: "NbButtonPrevNext",
343
381
  inheritAttrs: !1
344
382
  }, {
@@ -356,6 +394,22 @@ const Se = ["id"], _e = ["tabIndex"], he = ["tabIndex"], Ne = /* @__PURE__ */ Ob
356
394
  type: Number,
357
395
  default: 0
358
396
  },
397
+ hasTabIndexEnter: {
398
+ type: Boolean,
399
+ default: !0
400
+ },
401
+ hasTabIndexSpace: {
402
+ type: Boolean,
403
+ default: !0
404
+ },
405
+ ariaLabelPrev: {
406
+ type: String,
407
+ default: "Alternate Text Button"
408
+ },
409
+ ariaLabelNext: {
410
+ type: String,
411
+ default: "Alternate Text Button"
412
+ },
359
413
  colorPrimary: {
360
414
  type: String,
361
415
  default: "tomato"
@@ -433,100 +487,114 @@ const Se = ["id"], _e = ["tabIndex"], he = ["tabIndex"], Ne = /* @__PURE__ */ Ob
433
487
  }
434
488
  },
435
489
  emits: ["clicked"],
436
- setup(e, { emit: s }) {
437
- F((l) => ({
438
- "4b4228f2": B.value,
439
- "4c181857": e.colorPrimary,
440
- "0921dc04": e.textColor,
441
- "38f38aee": e.colorSecondary,
442
- ec255444: e.textColorHover
490
+ setup(e, { emit: c }) {
491
+ j((l) => ({
492
+ "16c88917": I.value,
493
+ "6e1325e7": e.colorPrimary,
494
+ "118d2324": e.textColor,
495
+ "72f42419": e.colorSecondary,
496
+ "195b3f6e": e.textColorHover
443
497
  }));
444
- const w = s, k = e, {
445
- paddingX: x,
446
- paddingY: m,
447
- marginBetween: C,
448
- borderRadius: y,
449
- disabled: g,
450
- disabledPreview: S,
451
- disabledNext: i,
452
- fontFamily: h,
453
- fontSize: _,
454
- fontWeight: b
455
- } = M(k), c = t(() => {
456
- const l = g.value ? "component-disabled" : "", a = S.value ? "component-disabled" : "", n = i.value ? "component-disabled" : "", W = !C.value || C.value < 0 ? 0 : C.value, d = !y.value || y.value < 0 ? 0 : y.value, H = !x.value || x.value < 0 ? 1 : x.value, X = !m.value || m.value < 0 ? 10 : m.value, R = _.value ? _.value : "1.6em", p = !b.value || b.value < 0 ? 100 : b.value;
498
+ const H = c, Y = e, {
499
+ paddingX: N,
500
+ paddingY: B,
501
+ marginBetween: x,
502
+ borderRadius: S,
503
+ disabled: i,
504
+ disabledPreview: b,
505
+ disabledNext: v,
506
+ fontFamily: p,
507
+ fontSize: h,
508
+ fontWeight: m
509
+ } = q(Y), y = t(() => {
510
+ const l = i.value ? "component-disabled" : "", a = b.value ? "component-disabled" : "", o = v.value ? "component-disabled" : "", $ = !x.value || x.value < 0 ? 0 : x.value, s = !S.value || S.value < 0 ? 0 : S.value, T = !N.value || N.value < 0 ? 1 : N.value, L = !B.value || B.value < 0 ? 10 : B.value, D = h.value ? h.value : "1.6em", C = !m.value || m.value < 0 ? 100 : m.value;
457
511
  return {
458
512
  disabled: l,
459
513
  disabledPreview: a,
460
- disabledNext: n,
461
- marginBetween: `${W}px`,
462
- borderRadius: `${d}px`,
463
- paddingX: `${H}px`,
464
- paddingY: `${X}px`,
465
- fontSize: R,
466
- fontWeight: p
514
+ disabledNext: o,
515
+ marginBetween: `${$}px`,
516
+ borderRadius: `${s}px`,
517
+ paddingX: `${T}px`,
518
+ paddingY: `${L}px`,
519
+ fontSize: D,
520
+ fontWeight: C
467
521
  };
468
- }), u = t(() => c.value.disabled), v = t(() => c.value.disabledPreview), z = t(() => c.value.disabledNext), I = t(() => ({
469
- display: c.value.display
470
- })), f = t(() => {
471
- const l = c.value;
522
+ }), r = t(() => y.value.disabled), f = t(() => y.value.disabledPreview), X = t(() => y.value.disabledNext), k = t(() => ({
523
+ display: y.value.display
524
+ })), g = t(() => {
525
+ const l = y.value;
472
526
  return {
473
527
  fontSize: l.fontSize,
474
528
  fontWeight: l.fontWeight
475
529
  };
476
- }), V = t(() => {
477
- const l = c.value;
530
+ }), d = t(() => {
531
+ const l = y.value;
478
532
  return {
479
533
  borderRadius: `${l.borderRadius} 0px 0px ${l.borderRadius}`,
480
534
  marginRight: l.marginBetween,
481
535
  padding: `${l.paddingX} ${l.paddingY}`
482
536
  };
483
- }), o = t(() => {
484
- const l = c.value;
537
+ }), n = t(() => {
538
+ const l = y.value;
485
539
  return {
486
540
  borderRadius: `0px ${l.borderRadius} ${l.borderRadius} 0px`,
487
541
  marginLeft: l.marginBetween,
488
542
  padding: `${l.paddingX} ${l.paddingY}`
489
543
  };
490
- }), B = t(() => `'${h.value ? h.value : "'Lato', sans-serif"}'`), r = (l) => {
491
- w("clicked", l);
544
+ }), I = t(() => `'${p.value ? p.value : "'Lato', sans-serif"}'`), u = (l) => {
545
+ H("clicked", l);
492
546
  };
493
- return (l, a) => e.nbId ? (O(), L("div", {
547
+ return (l, a) => e.nbId ? (O(), E("div", {
494
548
  key: 0,
495
- class: Y(["nb-wrapper", u.value]),
496
- style: N([I.value])
549
+ class: R(["nb-wrapper", r.value]),
550
+ style: w([k.value])
497
551
  }, [
498
- $("div", {
552
+ z("div", {
499
553
  id: e.nbId,
500
- class: Y(["nb-reset", "component"]),
501
- style: N(f.value)
554
+ class: R(["nb-reset", "component"]),
555
+ style: w(g.value)
502
556
  }, [
503
- e.showPreview ? (O(), L("div", {
557
+ e.showPreview ? (O(), E("div", {
504
558
  key: 0,
505
- class: Y(["buttonNextPreview buttonPreview", v.value]),
506
- style: N(V.value),
559
+ class: R(["buttonNextPreview buttonPreview", f.value]),
560
+ style: w(d.value),
507
561
  tabIndex: e.tabIndexPrev,
508
- onClick: a[0] || (a[0] = (n) => r("preview"))
562
+ role: "button",
563
+ "aria-label": e.ariaLabelPrev,
564
+ "aria-disabled": V(i),
565
+ onClick: a[0] || (a[0] = (o) => u("preview")),
566
+ onKeydown: [
567
+ a[1] || (a[1] = W((o) => !V(i) && e.hasTabIndexEnter && u("preview"), ["enter"])),
568
+ a[2] || (a[2] = W(F((o) => !V(i) && e.hasTabIndexSpace && u("preview"), ["prevent"]), ["space"]))
569
+ ]
509
570
  }, [
510
- A(l.$slots, "prev", {}, () => [
511
- a[2] || (a[2] = P("← Preview"))
571
+ K(l.$slots, "prev", {}, () => [
572
+ a[6] || (a[6] = M("← Preview"))
512
573
  ], !0)
513
- ], 14, _e)) : T("", !0),
514
- e.showNext ? (O(), L("div", {
574
+ ], 46, Be)) : P("", !0),
575
+ e.showNext ? (O(), E("div", {
515
576
  key: 1,
516
- class: Y(["buttonNextPreview buttonNext", z.value]),
517
- style: N(o.value),
577
+ class: R(["buttonNextPreview buttonNext", X.value]),
578
+ style: w(n.value),
518
579
  tabIndex: e.tabIndexNext,
519
- onClick: a[1] || (a[1] = (n) => r("next"))
580
+ role: "button",
581
+ "aria-label": e.ariaLabelNext,
582
+ "aria-disabled": V(i),
583
+ onClick: a[3] || (a[3] = (o) => u("next")),
584
+ onKeydown: [
585
+ a[4] || (a[4] = W((o) => !V(i) && e.hasTabIndexEnter && u("next"), ["enter"])),
586
+ a[5] || (a[5] = W(F((o) => !V(i) && e.hasTabIndexSpace && u("next"), ["prevent"]), ["space"]))
587
+ ]
520
588
  }, [
521
- A(l.$slots, "next", {}, () => [
522
- a[3] || (a[3] = P("Next →"))
589
+ K(l.$slots, "next", {}, () => [
590
+ a[7] || (a[7] = M("Next →"))
523
591
  ], !0)
524
- ], 14, he)) : T("", !0)
525
- ], 12, Se)
526
- ], 6)) : T("", !0);
592
+ ], 46, he)) : P("", !0)
593
+ ], 12, Ie)
594
+ ], 6)) : P("", !0);
527
595
  }
528
- }), we = /* @__PURE__ */ j(Ne, [["__scopeId", "data-v-c022e18a"]]);
529
- const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
596
+ }), $e = /* @__PURE__ */ G(Ne, [["__scopeId", "data-v-235db30a"]]);
597
+ const we = ["tabIndex", "aria-label", "aria-disabled"], Te = ["id"], He = /* @__PURE__ */ Object.assign({
530
598
  name: "NbButtonMechanical",
531
599
  inheritAttrs: !1
532
600
  }, {
@@ -540,14 +608,26 @@ const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
540
608
  type: String,
541
609
  default: "b",
542
610
  validator: (e = "b") => {
543
- const s = e ? e.toLowerCase() : "";
544
- return ["b", "ib"].includes(s);
611
+ const c = e ? e.toLowerCase() : "";
612
+ return ["b", "ib"].includes(c);
545
613
  }
546
614
  },
547
615
  tabIndex: {
548
616
  type: Number,
549
617
  default: 0
550
618
  },
619
+ hasTabIndexEnter: {
620
+ type: Boolean,
621
+ default: !0
622
+ },
623
+ hasTabIndexSpace: {
624
+ type: Boolean,
625
+ default: !0
626
+ },
627
+ ariaLabel: {
628
+ type: String,
629
+ default: "Alternate Text Button"
630
+ },
551
631
  textColor: {
552
632
  type: String,
553
633
  default: "#ffffff"
@@ -599,46 +679,46 @@ const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
599
679
  }
600
680
  },
601
681
  emits: ["clicked"],
602
- setup(e, { emit: s }) {
603
- F((a) => ({
604
- c1c6e3f2: o.value,
605
- "92c532ce": ae(m),
606
- fefb92d0: r.value,
607
- "7e4c7986": B.value
682
+ setup(e, { emit: c }) {
683
+ j((a) => ({
684
+ "75e08b28": n.value,
685
+ "38d76e94": V(B),
686
+ "1e761906": u.value,
687
+ 60007562: I.value
608
688
  }));
609
- const w = s, k = e, {
610
- display: x,
611
- buttonColor: m,
612
- textColor: C,
613
- containerColor: y,
614
- paddingX: g,
615
- paddingY: S,
616
- borderRadius: i,
617
- disabled: h,
618
- animationSlow: _,
619
- fontFamily: b,
620
- fontSize: c,
621
- fontWeight: u
622
- } = M(k), v = t(() => {
623
- const a = h.value ? "component-disabled" : "", n = x.value !== "b" ? "inline-block" : "block", W = y.value ? y.value : "#ffffff", d = m.value ? m.value : "#bbbbbb", H = C.value ? C.value : "#ffffff", X = !g.value || g.value < 0 ? 1 : g.value, R = !S.value || S.value < 0 ? 0.2 : S.value, p = !i.value || i.value < 0 ? 0 : i.value, D = _.value ? "" : "component-transition__no-slow", q = b.value ? b.value : "'Lato', sans-serif", G = c.value ? c.value : "1.6em", E = !u.value || u.value < 0 ? 100 : u.value;
689
+ const H = c, Y = e, {
690
+ display: N,
691
+ buttonColor: B,
692
+ textColor: x,
693
+ containerColor: S,
694
+ paddingX: i,
695
+ paddingY: b,
696
+ borderRadius: v,
697
+ disabled: p,
698
+ animationSlow: h,
699
+ fontFamily: m,
700
+ fontSize: y,
701
+ fontWeight: r
702
+ } = q(Y), f = t(() => {
703
+ const a = p.value ? "component-disabled" : "", o = N.value !== "b" ? "inline-block" : "block", $ = S.value ? S.value : "#ffffff", s = B.value ? B.value : "#bbbbbb", T = x.value ? x.value : "#ffffff", L = !i.value || i.value < 0 ? 1 : i.value, D = !b.value || b.value < 0 ? 0.2 : b.value, C = !v.value || v.value < 0 ? 0 : v.value, A = h.value ? "" : "component-transition__no-slow", _ = m.value ? m.value : "'Lato', sans-serif", J = y.value ? y.value : "1.6em", Q = !r.value || r.value < 0 ? 100 : r.value;
624
704
  return {
625
705
  disabled: a,
626
- display: n,
627
- containerColor: W,
628
- buttonColor: d,
629
- textColor: H,
630
- paddingX: X,
631
- paddingY: R,
632
- borderRadius: p,
633
- animationSlow: D,
634
- font: q,
635
- fontSize: G,
636
- fontWeight: E
706
+ display: o,
707
+ containerColor: $,
708
+ buttonColor: s,
709
+ textColor: T,
710
+ paddingX: L,
711
+ paddingY: D,
712
+ borderRadius: C,
713
+ animationSlow: A,
714
+ font: _,
715
+ fontSize: J,
716
+ fontWeight: Q
637
717
  };
638
- }), z = t(() => v.value.disabled), I = t(() => ({
639
- display: v.value.display
640
- })), f = t(() => {
641
- const a = v.value;
718
+ }), X = t(() => f.value.disabled), k = t(() => ({
719
+ display: f.value.display
720
+ })), g = t(() => {
721
+ const a = f.value;
642
722
  return {
643
723
  border: `2px solid ${a.containerColor}`,
644
724
  color: a.textColor,
@@ -648,29 +728,36 @@ const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
648
728
  fontSize: a.fontSize,
649
729
  fontWeight: a.fontWeight
650
730
  };
651
- }), V = t(() => v.value.animationSlow), o = t(() => v.value.font), B = t(() => v.value.textColor), r = t(() => v.value.buttonColor), l = () => {
652
- w("clicked");
731
+ }), d = t(() => f.value.animationSlow), n = t(() => f.value.font), I = t(() => f.value.textColor), u = t(() => f.value.buttonColor), l = () => {
732
+ H("clicked");
653
733
  };
654
- return (a, n) => e.nbId ? (O(), L("div", {
734
+ return (a, o) => e.nbId ? (O(), E("div", {
655
735
  key: 0,
656
- class: Y(["nb-wrapper", z.value]),
657
- style: N([I.value]),
736
+ class: R(["nb-wrapper", X.value]),
737
+ style: w([k.value]),
658
738
  tabIndex: e.tabIndex,
659
- onClick: l
739
+ role: "button",
740
+ "aria-label": e.ariaLabel,
741
+ "aria-disabled": V(p),
742
+ onClick: l,
743
+ onKeydown: [
744
+ o[0] || (o[0] = W(($) => !V(p) && e.hasTabIndexEnter && l(), ["enter"])),
745
+ o[1] || (o[1] = W(F(($) => !V(p) && e.hasTabIndexSpace && l(), ["prevent"]), ["space"]))
746
+ ]
660
747
  }, [
661
- $("div", {
748
+ z("div", {
662
749
  id: e.nbId,
663
- class: Y(["nb-reset", "component", "component-transition", V.value]),
664
- style: N([f.value])
750
+ class: R(["nb-reset", "component", "component-transition", d.value]),
751
+ style: w([g.value])
665
752
  }, [
666
- A(a.$slots, "content", {}, () => [
667
- n[0] || (n[0] = P("Default Text"))
753
+ K(a.$slots, "content", {}, () => [
754
+ o[2] || (o[2] = M("Default Text"))
668
755
  ], !0)
669
- ], 14, $e)
670
- ], 14, Be)) : T("", !0);
756
+ ], 14, Te)
757
+ ], 46, we)) : P("", !0);
671
758
  }
672
- }), He = /* @__PURE__ */ j(Ie, [["__scopeId", "data-v-be829b62"]]);
673
- const ke = ["tabIndex"], ze = ["id"], We = /* @__PURE__ */ Object.assign({
759
+ }), ke = /* @__PURE__ */ G(He, [["__scopeId", "data-v-cd185961"]]);
760
+ const ze = ["tabIndex", "aria-label", "aria-disabled"], We = ["id"], Ye = /* @__PURE__ */ Object.assign({
674
761
  name: "NbButtonMechanical2",
675
762
  inheritAttrs: !1
676
763
  }, {
@@ -684,14 +771,26 @@ const ke = ["tabIndex"], ze = ["id"], We = /* @__PURE__ */ Object.assign({
684
771
  type: String,
685
772
  default: "b",
686
773
  validator: (e = "b") => {
687
- const s = e ? e.toLowerCase() : "";
688
- return ["b", "ib"].includes(s);
774
+ const c = e ? e.toLowerCase() : "";
775
+ return ["b", "ib"].includes(c);
689
776
  }
690
777
  },
691
778
  tabIndex: {
692
779
  type: Number,
693
780
  default: 0
694
781
  },
782
+ hasTabIndexEnter: {
783
+ type: Boolean,
784
+ default: !0
785
+ },
786
+ hasTabIndexSpace: {
787
+ type: Boolean,
788
+ default: !0
789
+ },
790
+ ariaLabel: {
791
+ type: String,
792
+ default: "Alternate Text Button"
793
+ },
695
794
  textColor: {
696
795
  type: String,
697
796
  default: "#ffffff"
@@ -739,74 +838,81 @@ const ke = ["tabIndex"], ze = ["id"], We = /* @__PURE__ */ Object.assign({
739
838
  }
740
839
  },
741
840
  emits: ["clicked"],
742
- setup(e, { emit: s }) {
743
- F((o) => ({
744
- edd2a4d6: f.value
841
+ setup(e, { emit: c }) {
842
+ j((n) => ({
843
+ "41c9f13c": g.value
745
844
  }));
746
- const w = s, k = e, {
747
- display: x,
748
- buttonColor: m,
749
- textColor: C,
750
- paddingX: y,
751
- paddingY: g,
752
- borderRadius: S,
753
- shadowColor: i,
754
- disabled: h,
755
- fontFamily: _,
756
- fontSize: b,
757
- fontWeight: c
758
- } = M(k), u = t(() => {
759
- const o = h.value ? "component-disabled" : "", B = x.value !== "b" ? "inline-block" : "block", r = m.value ? m.value : "#bbbbbb", l = i.value ? i.value : "#002f3c", a = C.value ? C.value : "#ffffff", n = !y.value || y.value < 0 ? 1 : y.value, W = !g.value || g.value < 0 ? 1 : g.value, d = !S.value || S.value < 0 ? 0 : S.value, H = _.value ? _.value : "'Lato', sans-serif", X = b.value ? b.value : "1.6em", R = !c.value || c.value < 0 ? 100 : c.value;
845
+ const H = c, Y = e, {
846
+ display: N,
847
+ buttonColor: B,
848
+ textColor: x,
849
+ paddingX: S,
850
+ paddingY: i,
851
+ borderRadius: b,
852
+ shadowColor: v,
853
+ disabled: p,
854
+ fontFamily: h,
855
+ fontSize: m,
856
+ fontWeight: y
857
+ } = q(Y), r = t(() => {
858
+ const n = p.value ? "component-disabled" : "", I = N.value !== "b" ? "inline-block" : "block", u = B.value ? B.value : "#bbbbbb", l = v.value ? v.value : "#002f3c", a = x.value ? x.value : "#ffffff", o = !S.value || S.value < 0 ? 1 : S.value, $ = !i.value || i.value < 0 ? 1 : i.value, s = !b.value || b.value < 0 ? 0 : b.value, T = h.value ? h.value : "'Lato', sans-serif", L = m.value ? m.value : "1.6em", D = !y.value || y.value < 0 ? 100 : y.value;
760
859
  return {
761
- disabled: o,
762
- display: B,
763
- buttonColor: r,
860
+ disabled: n,
861
+ display: I,
862
+ buttonColor: u,
764
863
  shadowColor: l,
765
864
  textColor: a,
766
- paddingX: n,
767
- paddingY: W,
768
- borderRadius: d,
769
- font: H,
770
- fontSize: X,
771
- fontWeight: R
865
+ paddingX: o,
866
+ paddingY: $,
867
+ borderRadius: s,
868
+ font: T,
869
+ fontSize: L,
870
+ fontWeight: D
772
871
  };
773
- }), v = t(() => u.value.disabled), z = t(() => ({
774
- display: u.value.display
775
- })), I = t(() => {
776
- const o = u.value;
872
+ }), f = t(() => r.value.disabled), X = t(() => ({
873
+ display: r.value.display
874
+ })), k = t(() => {
875
+ const n = r.value;
777
876
  return {
778
- color: o.textColor,
779
- backgroundColor: o.buttonColor,
780
- boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${o.shadowColor}`,
781
- padding: `${o.paddingY}rem ${o.paddingX}rem`,
782
- padding: `${o.paddingY}rem ${o.paddingX}rem`,
783
- borderRadius: `${o.borderRadius}rem`,
784
- fontSize: o.fontSize,
785
- fontWeight: o.fontWeight
877
+ color: n.textColor,
878
+ backgroundColor: n.buttonColor,
879
+ boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${n.shadowColor}`,
880
+ padding: `${n.paddingY}rem ${n.paddingX}rem`,
881
+ padding: `${n.paddingY}rem ${n.paddingX}rem`,
882
+ borderRadius: `${n.borderRadius}rem`,
883
+ fontSize: n.fontSize,
884
+ fontWeight: n.fontWeight
786
885
  };
787
- }), f = t(() => u.value.font), V = () => {
788
- w("clicked");
886
+ }), g = t(() => r.value.font), d = () => {
887
+ H("clicked");
789
888
  };
790
- return (o, B) => e.nbId ? (O(), L("div", {
889
+ return (n, I) => e.nbId ? (O(), E("div", {
791
890
  key: 0,
792
- class: Y(["nb-wrapper", v.value]),
793
- style: N([z.value]),
891
+ class: R(["nb-wrapper", f.value]),
892
+ style: w([X.value]),
794
893
  tabIndex: e.tabIndex,
795
- onClick: V
894
+ role: "button",
895
+ "aria-label": e.ariaLabel,
896
+ "aria-disabled": V(p),
897
+ onClick: d,
898
+ onKeydown: [
899
+ I[0] || (I[0] = W((u) => !V(p) && e.hasTabIndexEnter && d(), ["enter"])),
900
+ I[1] || (I[1] = W(F((u) => !V(p) && e.hasTabIndexSpace && d(), ["prevent"]), ["space"]))
901
+ ]
796
902
  }, [
797
- $("div", {
903
+ z("div", {
798
904
  id: e.nbId,
799
- class: Y(["nb-reset", "component", "component-transition"]),
800
- style: N([I.value])
905
+ class: R(["nb-reset", "component", "component-transition"]),
906
+ style: w([k.value])
801
907
  }, [
802
- A(o.$slots, "content", {}, () => [
803
- B[0] || (B[0] = P("Default Text"))
908
+ K(n.$slots, "content", {}, () => [
909
+ I[2] || (I[2] = M("Default Text"))
804
910
  ], !0)
805
- ], 12, ze)
806
- ], 14, ke)) : T("", !0);
911
+ ], 12, We)
912
+ ], 46, ze)) : P("", !0);
807
913
  }
808
- }), Ye = /* @__PURE__ */ j(We, [["__scopeId", "data-v-5321163a"]]);
809
- const Xe = ["tabIndex"], Re = ["id"], De = /* @__PURE__ */ Object.assign({
914
+ }), Xe = /* @__PURE__ */ G(Ye, [["__scopeId", "data-v-d1239e03"]]);
915
+ const Re = ["tabIndex", "aria-label", "aria-disabled"], Le = ["id"], Ae = /* @__PURE__ */ Object.assign({
810
916
  name: "NbButtonHamburger",
811
917
  inheritAttrs: !1
812
918
  }, {
@@ -820,6 +926,18 @@ const Xe = ["tabIndex"], Re = ["id"], De = /* @__PURE__ */ Object.assign({
820
926
  type: Number,
821
927
  default: 0
822
928
  },
929
+ hasTabIndexEnter: {
930
+ type: Boolean,
931
+ default: !0
932
+ },
933
+ hasTabIndexSpace: {
934
+ type: Boolean,
935
+ default: !0
936
+ },
937
+ ariaLabel: {
938
+ type: String,
939
+ default: "Alternate Text Button"
940
+ },
823
941
  status: {
824
942
  type: Boolean,
825
943
  default: !1,
@@ -858,78 +976,85 @@ const Xe = ["tabIndex"], Re = ["id"], De = /* @__PURE__ */ Object.assign({
858
976
  }
859
977
  },
860
978
  emits: ["clicked"],
861
- setup(e, { emit: s }) {
862
- F((o) => ({
863
- "49b4686b": I.value,
864
- "61c85f08": f.value
979
+ setup(e, { emit: c }) {
980
+ j((n) => ({
981
+ "05489a45": k.value,
982
+ b1646024: g.value
865
983
  }));
866
- const w = s, k = e;
867
- oe(() => {
868
- x.value = m.value;
984
+ const H = c, Y = e;
985
+ ne(() => {
986
+ N.value = B.value;
869
987
  });
870
- const x = ie(!1), {
871
- status: m,
872
- color: C,
873
- containerColor: y,
874
- containerColorHover: g,
875
- colorHover: S,
876
- paddingX: i,
877
- paddingY: h,
878
- disabled: _
879
- } = M(k), b = t(() => {
880
- const o = _.value ? "component-disabled" : "", B = x.value ? "change" : "", r = y.value ? y.value : "#333333", l = C.value ? C.value : "#ffffff", a = !i.value || i.value < 0 ? 3 : i.value, n = !h.value || h.value < 0 ? 3 : h.value, W = g.value ? g.value : "yellow", d = S.value ? S.value : "red";
988
+ const N = fe(!1), {
989
+ status: B,
990
+ color: x,
991
+ containerColor: S,
992
+ containerColorHover: i,
993
+ colorHover: b,
994
+ paddingX: v,
995
+ paddingY: p,
996
+ disabled: h
997
+ } = q(Y), m = t(() => {
998
+ const n = h.value ? "component-disabled" : "", I = N.value ? "change" : "", u = S.value ? S.value : "#333333", l = x.value ? x.value : "#ffffff", a = !v.value || v.value < 0 ? 3 : v.value, o = !p.value || p.value < 0 ? 3 : p.value, $ = i.value ? i.value : "yellow", s = b.value ? b.value : "red";
881
999
  return {
882
- disabled: o,
883
- buttonStatus: B,
884
- containerColor: r,
1000
+ disabled: n,
1001
+ buttonStatus: I,
1002
+ containerColor: u,
885
1003
  paddingX: a,
886
- paddingY: n,
1004
+ paddingY: o,
887
1005
  color: l,
888
- containerColorHover: W,
889
- colorHover: d
1006
+ containerColorHover: $,
1007
+ colorHover: s
890
1008
  };
891
- }), c = t(() => b.value.disabled), u = t(() => {
892
- const o = b.value;
1009
+ }), y = t(() => m.value.disabled), r = t(() => {
1010
+ const n = m.value;
893
1011
  return {
894
- padding: `${o.paddingY}px ${o.paddingX}px`,
895
- backgroundColor: o.containerColor
1012
+ padding: `${n.paddingY}px ${n.paddingX}px`,
1013
+ backgroundColor: n.containerColor
896
1014
  };
897
- }), v = t(() => ({
898
- backgroundColor: b.value.color
899
- })), z = t(() => b.value.buttonStatus), I = t(() => b.value.containerColorHover), f = t(() => b.value.colorHover), V = () => {
900
- const o = !x.value;
901
- x.value = o, w("clicked", o);
1015
+ }), f = t(() => ({
1016
+ backgroundColor: m.value.color
1017
+ })), X = t(() => m.value.buttonStatus), k = t(() => m.value.containerColorHover), g = t(() => m.value.colorHover), d = () => {
1018
+ const n = !N.value;
1019
+ N.value = n, H("clicked", n);
902
1020
  };
903
- return ce(m, () => {
904
- x.value = m.value;
905
- }), (o, B) => e.nbId ? (O(), L("div", {
1021
+ return ce(B, () => {
1022
+ N.value = B.value;
1023
+ }), (n, I) => e.nbId ? (O(), E("div", {
906
1024
  key: 0,
907
- class: Y(["nb-wrapper", c.value]),
908
- style: N([u.value]),
1025
+ class: R(["nb-wrapper", y.value]),
1026
+ style: w([r.value]),
909
1027
  tabIndex: e.tabIndex,
910
- onClick: V
1028
+ role: "button",
1029
+ "aria-label": e.ariaLabel,
1030
+ "aria-disabled": V(h),
1031
+ onClick: d,
1032
+ onKeydown: [
1033
+ I[0] || (I[0] = W((u) => !V(h) && e.hasTabIndexEnter && d(), ["enter"])),
1034
+ I[1] || (I[1] = W(F((u) => !V(h) && e.hasTabIndexSpace && d(), ["prevent"]), ["space"]))
1035
+ ]
911
1036
  }, [
912
- $("div", {
1037
+ z("div", {
913
1038
  id: e.nbId,
914
- class: Y(["nb-reset", "component", z.value])
1039
+ class: R(["nb-reset", "component", X.value])
915
1040
  }, [
916
- $("div", {
1041
+ z("div", {
917
1042
  class: "component__line-one",
918
- style: N(v.value)
1043
+ style: w(f.value)
919
1044
  }, null, 4),
920
- $("div", {
1045
+ z("div", {
921
1046
  class: "component__line-two",
922
- style: N(v.value)
1047
+ style: w(f.value)
923
1048
  }, null, 4),
924
- $("div", {
1049
+ z("div", {
925
1050
  class: "component__line-three",
926
- style: N(v.value)
1051
+ style: w(f.value)
927
1052
  }, null, 4)
928
- ], 10, Re)
929
- ], 14, Xe)) : T("", !0);
1053
+ ], 10, Le)
1054
+ ], 46, Re)) : P("", !0);
930
1055
  }
931
- }), Oe = /* @__PURE__ */ j(De, [["__scopeId", "data-v-6bdc0122"]]);
932
- const Le = ["tabIndex"], Te = ["id"], Ae = /* @__PURE__ */ Object.assign({
1056
+ }), De = /* @__PURE__ */ G(Ae, [["__scopeId", "data-v-ee16aa34"]]);
1057
+ const Oe = ["tabIndex", "aria-label", "aria-disabled"], Ee = ["id"], Pe = /* @__PURE__ */ Object.assign({
933
1058
  name: "NbButtonColorOutside",
934
1059
  inheritAttrs: !1
935
1060
  }, {
@@ -943,14 +1068,26 @@ const Le = ["tabIndex"], Te = ["id"], Ae = /* @__PURE__ */ Object.assign({
943
1068
  type: String,
944
1069
  default: "b",
945
1070
  validator: (e = "b") => {
946
- const s = e ? e.toLowerCase() : "";
947
- return ["b", "ib"].includes(s);
1071
+ const c = e ? e.toLowerCase() : "";
1072
+ return ["b", "ib"].includes(c);
948
1073
  }
949
1074
  },
950
1075
  tabIndex: {
951
1076
  type: Number,
952
1077
  default: 0
953
1078
  },
1079
+ hasTabIndexEnter: {
1080
+ type: Boolean,
1081
+ default: !0
1082
+ },
1083
+ hasTabIndexSpace: {
1084
+ type: Boolean,
1085
+ default: !0
1086
+ },
1087
+ ariaLabel: {
1088
+ type: String,
1089
+ default: "Alternate Text Button"
1090
+ },
954
1091
  textColor: {
955
1092
  type: String,
956
1093
  default: "#ffffff"
@@ -998,85 +1135,92 @@ const Le = ["tabIndex"], Te = ["id"], Ae = /* @__PURE__ */ Object.assign({
998
1135
  }
999
1136
  },
1000
1137
  emits: ["clicked"],
1001
- setup(e, { emit: s }) {
1002
- F((a) => ({
1003
- "376a4432": o.value,
1004
- "43f10443": r.value,
1005
- "3d6f03f8": V.value,
1006
- "933400b0": B.value
1138
+ setup(e, { emit: c }) {
1139
+ j((a) => ({
1140
+ "1be7c59c": n.value,
1141
+ "25955d43": u.value,
1142
+ bccb6a10: d.value,
1143
+ "374c98a8": I.value
1007
1144
  }));
1008
- const w = s, k = e, {
1009
- display: x,
1010
- buttonColor: m,
1011
- borderColor: C,
1012
- textColor: y,
1013
- paddingX: g,
1014
- paddingY: S,
1015
- borderRadius: i,
1016
- disabled: h,
1017
- fontFamily: _,
1018
- fontSize: b,
1019
- fontWeight: c
1020
- } = M(k), u = t(() => {
1021
- const a = h.value ? "component-disabled" : "", n = x.value !== "b" ? "inline-block" : "block", W = m.value ? m.value : "#bbbbbb", d = C.value ? C.value : "#ffe54c", H = y.value ? y.value : "#ffffff", X = !g.value || g.value < 0 ? 1 : g.value, R = !S.value || S.value < 0 ? 0.2 : S.value, p = !i.value || i.value < 0 ? 0 : i.value, D = _.value ? _.value : "'Lato', sans-serif", q = b.value ? b.value : "1.6em", G = !c.value || c.value < 0 ? 200 : c.value;
1145
+ const H = c, Y = e, {
1146
+ display: N,
1147
+ buttonColor: B,
1148
+ borderColor: x,
1149
+ textColor: S,
1150
+ paddingX: i,
1151
+ paddingY: b,
1152
+ borderRadius: v,
1153
+ disabled: p,
1154
+ fontFamily: h,
1155
+ fontSize: m,
1156
+ fontWeight: y
1157
+ } = q(Y), r = t(() => {
1158
+ const a = p.value ? "component-disabled" : "", o = N.value !== "b" ? "inline-block" : "block", $ = B.value ? B.value : "#bbbbbb", s = x.value ? x.value : "#ffe54c", T = S.value ? S.value : "#ffffff", L = !i.value || i.value < 0 ? 1 : i.value, D = !b.value || b.value < 0 ? 0.2 : b.value, C = !v.value || v.value < 0 ? 0 : v.value, A = h.value ? h.value : "'Lato', sans-serif", _ = m.value ? m.value : "1.6em", J = !y.value || y.value < 0 ? 200 : y.value;
1022
1159
  return {
1023
1160
  disabled: a,
1024
- display: n,
1025
- buttonColor: W,
1026
- borderColor: d,
1027
- textColor: H,
1028
- paddingX: X,
1029
- paddingY: R,
1030
- borderRadius: p,
1031
- font: D,
1032
- fontSize: q,
1033
- fontWeight: G
1161
+ display: o,
1162
+ buttonColor: $,
1163
+ borderColor: s,
1164
+ textColor: T,
1165
+ paddingX: L,
1166
+ paddingY: D,
1167
+ borderRadius: C,
1168
+ font: A,
1169
+ fontSize: _,
1170
+ fontWeight: J
1034
1171
  };
1035
- }), v = t(() => u.value.disabled), z = t(() => ({
1036
- display: u.value.display
1037
- })), I = t(() => {
1038
- const a = u.value;
1172
+ }), f = t(() => r.value.disabled), X = t(() => ({
1173
+ display: r.value.display
1174
+ })), k = t(() => {
1175
+ const a = r.value;
1039
1176
  return {
1040
1177
  color: a.textColor,
1041
1178
  fontSize: a.fontSize,
1042
1179
  fontWeight: a.fontWeight
1043
1180
  };
1044
- }), f = t(() => {
1045
- const a = u.value;
1181
+ }), g = t(() => {
1182
+ const a = r.value;
1046
1183
  return {
1047
1184
  padding: `${a.paddingY}rem ${a.paddingX}rem`,
1048
1185
  border: `1px solid ${a.borderColor}`,
1049
- borderRadius: V.value
1186
+ borderRadius: d.value
1050
1187
  };
1051
- }), V = t(() => `${u.value.borderRadius}rem`), o = t(() => u.value.font), B = t(() => u.value.textColor), r = t(() => u.value.buttonColor), l = () => {
1052
- w("clicked");
1188
+ }), d = t(() => `${r.value.borderRadius}rem`), n = t(() => r.value.font), I = t(() => r.value.textColor), u = t(() => r.value.buttonColor), l = () => {
1189
+ H("clicked");
1053
1190
  };
1054
- return (a, n) => e.nbId ? (O(), L("div", {
1191
+ return (a, o) => e.nbId ? (O(), E("div", {
1055
1192
  key: 0,
1056
- class: Y(["nb-wrapper", v.value]),
1057
- style: N([z.value]),
1193
+ class: R(["nb-wrapper", f.value]),
1194
+ style: w([X.value]),
1058
1195
  tabIndex: e.tabIndex,
1059
- onClick: l
1196
+ role: "button",
1197
+ "aria-label": e.ariaLabel,
1198
+ "aria-disabled": V(p),
1199
+ onClick: l,
1200
+ onKeydown: [
1201
+ o[0] || (o[0] = W(($) => !V(p) && e.hasTabIndexEnter && l(), ["enter"])),
1202
+ o[1] || (o[1] = W(F(($) => !V(p) && e.hasTabIndexSpace && l(), ["prevent"]), ["space"]))
1203
+ ]
1060
1204
  }, [
1061
- $("div", {
1205
+ z("div", {
1062
1206
  id: e.nbId,
1063
- class: Y(["nb-reset", "component"]),
1064
- style: N([I.value])
1207
+ class: R(["nb-reset", "component"]),
1208
+ style: w([k.value])
1065
1209
  }, [
1066
- $("div", {
1210
+ z("div", {
1067
1211
  class: "component-content",
1068
- style: N([f.value])
1212
+ style: w([g.value])
1069
1213
  }, [
1070
- A(a.$slots, "content", {}, () => [
1071
- n[0] || (n[0] = P("Default Text"))
1214
+ K(a.$slots, "content", {}, () => [
1215
+ o[2] || (o[2] = M("Default Text"))
1072
1216
  ], !0)
1073
1217
  ], 4),
1074
- n[1] || (n[1] = $("div", { class: "component-shadow" }, null, -1))
1075
- ], 12, Te)
1076
- ], 14, Le)) : T("", !0);
1218
+ o[3] || (o[3] = z("div", { class: "component-shadow" }, null, -1))
1219
+ ], 12, Ee)
1220
+ ], 46, Oe)) : P("", !0);
1077
1221
  }
1078
- }), Pe = /* @__PURE__ */ j(Ae, [["__scopeId", "data-v-9e02fc57"]]);
1079
- const Fe = ["tabIndex"], Me = ["id"], je = /* @__PURE__ */ Object.assign({
1222
+ }), Fe = /* @__PURE__ */ G(Pe, [["__scopeId", "data-v-4ae432a3"]]);
1223
+ const _e = ["tabIndex", "aria-label", "aria-disabled"], Ke = ["id"], Me = /* @__PURE__ */ Object.assign({
1080
1224
  name: "NbButtonColorHover",
1081
1225
  inheritAttrs: !1
1082
1226
  }, {
@@ -1090,14 +1234,26 @@ const Fe = ["tabIndex"], Me = ["id"], je = /* @__PURE__ */ Object.assign({
1090
1234
  type: String,
1091
1235
  default: "b",
1092
1236
  validator: (e = "b") => {
1093
- const s = e.toLowerCase();
1094
- return ["b", "ib"].includes(s);
1237
+ const c = e.toLowerCase();
1238
+ return ["b", "ib"].includes(c);
1095
1239
  }
1096
1240
  },
1097
1241
  tabIndex: {
1098
1242
  type: Number,
1099
1243
  default: 0
1100
1244
  },
1245
+ hasTabIndexEnter: {
1246
+ type: Boolean,
1247
+ default: !0
1248
+ },
1249
+ hasTabIndexSpace: {
1250
+ type: Boolean,
1251
+ default: !0
1252
+ },
1253
+ ariaLabel: {
1254
+ type: String,
1255
+ default: "Alternate Text Button"
1256
+ },
1101
1257
  textColor: {
1102
1258
  type: String,
1103
1259
  default: "#ffffff"
@@ -1149,80 +1305,88 @@ const Fe = ["tabIndex"], Me = ["id"], je = /* @__PURE__ */ Object.assign({
1149
1305
  }
1150
1306
  },
1151
1307
  emits: ["clicked"],
1152
- setup(e, { emit: s }) {
1153
- F((n) => ({
1154
- "150d2f08": V.value,
1155
- "7b6bece6": r.value,
1156
- "00c8e0ea": B.value,
1157
- "6c59bfaf": l.value,
1158
- be18611c: o.value
1308
+ setup(e, { emit: c }) {
1309
+ j((o) => ({
1310
+ "37a8072e": d.value,
1311
+ "420521fa": u.value,
1312
+ "2e48555d": I.value,
1313
+ "37cde362": l.value,
1314
+ f8f7c1c2: n.value
1159
1315
  }));
1160
- const w = s, k = e, {
1161
- display: x,
1162
- textColor: m,
1163
- paddingX: C,
1164
- paddingY: y,
1165
- borderRadius: g,
1166
- disabled: S,
1167
- fontFamily: i,
1168
- fontSize: h,
1169
- fontWeight: _,
1170
- textColorHover: b,
1171
- buttonColor: c,
1172
- buttonColorHover: u
1173
- } = M(k), v = t(() => {
1174
- const n = S.value ? "component-disabled" : "", W = x.value !== "b" ? "inline-block" : "block", d = m ? m.value : "ffffff", H = !C.value || C.value < 0 ? 1 : C.value, X = !y.value || y.value < 0 ? 0.2 : y.value, R = !g.value || g.value < 0 ? 0 : g.value, p = i.value ? i.value : "'Lato', sans-serif", D = h.value ? h.value : "1.6rem", q = !_.value || _.value < 0 ? 100 : _.value, G = b.value ? b.value : "#cccccc", E = c.value ? c.value : "#bbbbbb", J = u.value ? u.value : "#959595";
1316
+ const H = c, Y = e, {
1317
+ display: N,
1318
+ textColor: B,
1319
+ paddingX: x,
1320
+ paddingY: S,
1321
+ borderRadius: i,
1322
+ disabled: b,
1323
+ fontFamily: v,
1324
+ fontSize: p,
1325
+ fontWeight: h,
1326
+ textColorHover: m,
1327
+ buttonColor: y,
1328
+ buttonColorHover: r
1329
+ } = q(Y), f = t(() => {
1330
+ const o = b.value ? "component-disabled" : "", $ = N.value !== "b" ? "inline-block" : "block", s = B ? B.value : "ffffff", T = !x.value || x.value < 0 ? 1 : x.value, L = !S.value || S.value < 0 ? 0.2 : S.value, D = !i.value || i.value < 0 ? 0 : i.value, C = v.value ? v.value : "'Lato', sans-serif", A = p.value ? p.value : "1.6rem", _ = !h.value || h.value < 0 ? 100 : h.value, J = m.value ? m.value : "#cccccc", Q = y.value ? y.value : "#bbbbbb", U = r.value ? r.value : "#959595";
1175
1331
  return {
1176
- disabled: n,
1177
- display: W,
1178
- font: p,
1179
- fontSize: D,
1180
- fontWeight: q,
1181
- textColor: d,
1182
- paddingX: H,
1183
- paddingY: X,
1184
- borderRadius: R,
1185
- textColorHover: G,
1186
- buttonColor: E,
1187
- buttonColorHover: J
1332
+ disabled: o,
1333
+ display: $,
1334
+ font: C,
1335
+ fontSize: A,
1336
+ fontWeight: _,
1337
+ textColor: s,
1338
+ paddingX: T,
1339
+ paddingY: L,
1340
+ borderRadius: D,
1341
+ textColorHover: J,
1342
+ buttonColor: Q,
1343
+ buttonColorHover: U
1188
1344
  };
1189
- }), z = t(() => v.value.disabled), I = t(() => {
1190
- const n = v.value;
1345
+ }), X = t(() => f.value.disabled), k = t(() => {
1346
+ const o = f.value;
1191
1347
  return {
1192
- display: n.display,
1193
- borderRadius: `${n.borderRadius}rem`
1348
+ display: o.display,
1349
+ borderRadius: `${o.borderRadius}rem`
1194
1350
  };
1195
- }), f = t(() => {
1196
- const n = v.value;
1351
+ }), g = t(() => {
1352
+ const o = f.value;
1197
1353
  return {
1198
- color: n.textColor,
1199
- padding: `${n.paddingY}rem ${n.paddingX}rem`,
1200
- borderRadius: `${n.borderRadius}rem`,
1201
- fontSize: n.fontSize,
1202
- fontWeight: n.fontWeight
1354
+ color: o.textColor,
1355
+ padding: `${o.paddingY}rem ${o.paddingX}rem`,
1356
+ borderRadius: `${o.borderRadius}rem`,
1357
+ fontSize: o.fontSize,
1358
+ fontWeight: o.fontWeight
1203
1359
  };
1204
- }), V = t(() => v.value.font), o = t(() => v.value.textColor), B = t(() => v.value.textColorHover), r = t(() => v.value.buttonColor), l = t(() => v.value.buttonColorHover), a = () => {
1205
- w("clicked");
1360
+ }), d = t(() => f.value.font), n = t(() => f.value.textColor), I = t(() => f.value.textColorHover), u = t(() => f.value.buttonColor), l = t(() => f.value.buttonColorHover), a = () => {
1361
+ H("clicked");
1206
1362
  };
1207
- return (n, W) => (O(), L("div", {
1208
- class: Y(["nb-wrapper", z.value]),
1209
- style: N([I.value]),
1363
+ return (o, $) => e.nbId ? (O(), E("div", {
1364
+ key: 0,
1365
+ class: R(["nb-wrapper", X.value]),
1366
+ style: w([k.value]),
1210
1367
  tabIndex: e.tabIndex,
1211
- onClick: a
1368
+ role: "button",
1369
+ "aria-label": e.ariaLabel,
1370
+ "aria-disabled": V(b),
1371
+ onClick: a,
1372
+ onKeydown: [
1373
+ $[0] || ($[0] = W((s) => !V(b) && e.hasTabIndexEnter && a(), ["enter"])),
1374
+ $[1] || ($[1] = W(F((s) => !V(b) && e.hasTabIndexSpace && a(), ["prevent"]), ["space"]))
1375
+ ]
1212
1376
  }, [
1213
- $("div", {
1377
+ z("div", {
1214
1378
  id: e.nbId,
1215
1379
  class: "nb-reset component component-transition",
1216
- style: N([f.value])
1380
+ style: w([g.value])
1217
1381
  }, [
1218
- A(n.$slots, "content", {}, () => [
1219
- W[0] || (W[0] = P("Default Text"))
1382
+ K(o.$slots, "content", {}, () => [
1383
+ $[2] || ($[2] = M("Default Text"))
1220
1384
  ], !0)
1221
- ], 12, Me)
1222
- ], 14, Fe));
1385
+ ], 12, Ke)
1386
+ ], 46, _e)) : P("", !0);
1223
1387
  }
1224
- }), qe = /* @__PURE__ */ j(je, [["__scopeId", "data-v-a503e43d"]]);
1225
- const Ge = ["tabIndex"], Ee = ["id"], Je = { class: "first-child" }, Ke = { class: "last-child" }, Qe = /* @__PURE__ */ Object.assign({
1388
+ }), je = /* @__PURE__ */ G(Me, [["__scopeId", "data-v-d083f1f8"]]);
1389
+ const qe = ["tabIndex", "aria-label", "aria-disabled"], Ge = ["id"], Je = { class: "first-child" }, Qe = { class: "last-child" }, Ue = /* @__PURE__ */ Object.assign({
1226
1390
  name: "NbButtonAlternateText",
1227
1391
  inheritAttrs: !1
1228
1392
  }, {
@@ -1236,14 +1400,26 @@ const Ge = ["tabIndex"], Ee = ["id"], Je = { class: "first-child" }, Ke = { clas
1236
1400
  type: String,
1237
1401
  default: "b",
1238
1402
  validator: (e = "b") => {
1239
- const s = e ? e.toLowerCase() : "";
1240
- return ["b", "ib"].includes(s);
1403
+ const c = e ? e.toLowerCase() : "";
1404
+ return ["b", "ib"].includes(c);
1241
1405
  }
1242
1406
  },
1243
1407
  tabIndex: {
1244
1408
  type: Number,
1245
1409
  default: 0
1246
1410
  },
1411
+ hasTabIndexEnter: {
1412
+ type: Boolean,
1413
+ default: !0
1414
+ },
1415
+ hasTabIndexSpace: {
1416
+ type: Boolean,
1417
+ default: !0
1418
+ },
1419
+ ariaLabel: {
1420
+ type: String,
1421
+ default: "Alternate Text Button"
1422
+ },
1247
1423
  textColor: {
1248
1424
  type: String,
1249
1425
  default: "#ffffff"
@@ -1309,93 +1485,100 @@ const Ge = ["tabIndex"], Ee = ["id"], Je = { class: "first-child" }, Ke = { clas
1309
1485
  }
1310
1486
  },
1311
1487
  emits: ["clicked"],
1312
- setup(e, { emit: s }) {
1313
- F((d) => ({
1314
- db8c30f0: r.value,
1315
- "85cc2104": l.value,
1316
- "02321768": a.value,
1317
- "6d685699": n.value
1488
+ setup(e, { emit: c }) {
1489
+ j((s) => ({
1490
+ "516e8559": u.value,
1491
+ "48b787e2": l.value,
1492
+ "0e5ada5b": a.value,
1493
+ "1291c2ea": o.value
1318
1494
  }));
1319
- const w = s, k = e, {
1320
- display: x,
1321
- buttonColor: m,
1322
- borderColor: C,
1323
- buttonHoverColor: y,
1324
- showBorder: g,
1325
- borderRadius: S,
1326
- textColor: i,
1327
- textHoverColor: h,
1328
- width: _,
1329
- paddingX: b,
1330
- paddingY: c,
1331
- disabled: u,
1332
- fontFamily: v,
1333
- fontSize: z,
1334
- fontWeight: I
1335
- } = M(k), f = t(() => {
1336
- const d = u.value ? "component-disabled" : "", H = x.value !== "b" ? "inline-block" : "block", X = m.value ? m.value : "#ffffff", R = y.value ? y.value : "#000000", p = C.value ? C.value : "#ffe54c", D = !S.value || S.value < 0 ? 0 : S.value, q = [!1, !0].includes(g.value) ? g.value : !0, G = i.value ? i.value : "#ffffff", E = h.value ? h.value : "#000000", J = !_.value || _.value < 86 ? 86 : _.value, K = !b.value || b.value < 0 ? 1 : b.value, Q = !c.value || c.value < 0 ? 0.4 : c.value, U = v.value ? v.value : "'Lato', sans-serif", Z = z.value ? z.value : "1.6em", ee = !I.value || I.value < 0 ? 200 : I.value;
1495
+ const H = c, Y = e, {
1496
+ display: N,
1497
+ buttonColor: B,
1498
+ borderColor: x,
1499
+ buttonHoverColor: S,
1500
+ showBorder: i,
1501
+ borderRadius: b,
1502
+ textColor: v,
1503
+ textHoverColor: p,
1504
+ width: h,
1505
+ paddingX: m,
1506
+ paddingY: y,
1507
+ disabled: r,
1508
+ fontFamily: f,
1509
+ fontSize: X,
1510
+ fontWeight: k
1511
+ } = q(Y), g = t(() => {
1512
+ const s = r.value ? "component-disabled" : "", T = N.value !== "b" ? "inline-block" : "block", L = B.value ? B.value : "#ffffff", D = S.value ? S.value : "#000000", C = x.value ? x.value : "#ffe54c", A = !b.value || b.value < 0 ? 0 : b.value, _ = [!1, !0].includes(i.value) ? i.value : !0, J = v.value ? v.value : "#ffffff", Q = p.value ? p.value : "#000000", U = !h.value || h.value < 86 ? 86 : h.value, Z = !m.value || m.value < 0 ? 1 : m.value, ee = !y.value || y.value < 0 ? 0.4 : y.value, te = f.value ? f.value : "'Lato', sans-serif", ae = X.value ? X.value : "1.6em", le = !k.value || k.value < 0 ? 200 : k.value;
1337
1513
  return {
1338
- disabled: d,
1339
- display: H,
1340
- buttonColor: X,
1341
- buttonHoverColor: R,
1342
- borderColor: p,
1343
- showBorder: q,
1344
- borderRadius: D,
1345
- textColor: G,
1346
- textHoverColor: E,
1347
- width: J,
1348
- paddingX: K,
1349
- paddingY: Q,
1350
- font: U,
1351
- fontSize: Z,
1352
- fontWeight: ee
1514
+ disabled: s,
1515
+ display: T,
1516
+ buttonColor: L,
1517
+ buttonHoverColor: D,
1518
+ borderColor: C,
1519
+ showBorder: _,
1520
+ borderRadius: A,
1521
+ textColor: J,
1522
+ textHoverColor: Q,
1523
+ width: U,
1524
+ paddingX: Z,
1525
+ paddingY: ee,
1526
+ font: te,
1527
+ fontSize: ae,
1528
+ fontWeight: le
1353
1529
  };
1354
- }), V = t(() => f.value.disabled), o = t(() => ({
1355
- display: f.value.display
1356
- })), B = t(() => {
1357
- const d = f.value, H = d.display === "block" ? "auto" : `${d.width}px`;
1530
+ }), d = t(() => g.value.disabled), n = t(() => ({
1531
+ display: g.value.display
1532
+ })), I = t(() => {
1533
+ const s = g.value, T = s.display === "block" ? "auto" : `${s.width}px`;
1358
1534
  return {
1359
- ...d.showBorder ? { border: `1px solid ${d.borderColor}` } : {},
1360
- borderRadius: `${d.borderRadius}rem`,
1361
- background: d.buttonColor,
1535
+ ...s.showBorder ? { border: `1px solid ${s.borderColor}` } : {},
1536
+ borderRadius: `${s.borderRadius}rem`,
1537
+ background: s.buttonColor,
1362
1538
  minWidth: "33px",
1363
- width: H,
1364
- padding: `${d.paddingY}rem ${d.paddingX}rem`,
1539
+ width: T,
1540
+ padding: `${s.paddingY}rem ${s.paddingX}rem`,
1365
1541
  lineHeight: "1.42857143",
1366
- fontSize: d.fontSize,
1367
- fontWeight: d.fontWeight
1542
+ fontSize: s.fontSize,
1543
+ fontWeight: s.fontWeight
1368
1544
  };
1369
- }), r = t(() => f.value.font), l = t(() => f.value.textColor), a = t(() => f.value.textHoverColor), n = t(() => f.value.buttonHoverColor), W = () => {
1370
- w("clicked");
1545
+ }), u = t(() => g.value.font), l = t(() => g.value.textColor), a = t(() => g.value.textHoverColor), o = t(() => g.value.buttonHoverColor), $ = () => {
1546
+ H("clicked");
1371
1547
  };
1372
- return (d, H) => e.nbId ? (O(), L("div", {
1548
+ return (s, T) => e.nbId ? (O(), E("div", {
1373
1549
  key: 0,
1374
- class: Y(["nb-wrapper", V.value]),
1375
- style: N([o.value]),
1550
+ class: R(["nb-wrapper", d.value]),
1551
+ style: w([n.value]),
1376
1552
  tabIndex: e.tabIndex,
1377
- onClick: W
1553
+ role: "button",
1554
+ "aria-label": e.ariaLabel,
1555
+ "aria-disabled": V(r),
1556
+ onClick: $,
1557
+ onKeydown: [
1558
+ T[0] || (T[0] = W((L) => !V(r) && e.hasTabIndexEnter && $(), ["enter"])),
1559
+ T[1] || (T[1] = W(F((L) => !V(r) && e.hasTabIndexSpace && $(), ["prevent"]), ["space"]))
1560
+ ]
1378
1561
  }, [
1379
- $("div", {
1562
+ z("div", {
1380
1563
  id: e.nbId,
1381
- class: Y(["nb-reset", "component"]),
1382
- style: N([B.value])
1564
+ class: R(["nb-reset", "component"]),
1565
+ style: w([I.value])
1383
1566
  }, [
1384
- $("div", Je, [
1385
- A(d.$slots, "content", {}, () => [
1386
- H[0] || (H[0] = P("Default Text"))
1567
+ z("div", Je, [
1568
+ K(s.$slots, "content", {}, () => [
1569
+ T[2] || (T[2] = M("Default Text"))
1387
1570
  ], !0)
1388
1571
  ]),
1389
- $("div", Ke, [
1390
- A(d.$slots, "content", {}, () => [
1391
- H[1] || (H[1] = P("Default Text"))
1572
+ z("div", Qe, [
1573
+ K(s.$slots, "content", {}, () => [
1574
+ T[3] || (T[3] = M("Default Text"))
1392
1575
  ], !0)
1393
1576
  ])
1394
- ], 12, Ee)
1395
- ], 14, Ge)) : T("", !0);
1577
+ ], 12, Ge)
1578
+ ], 46, qe)) : P("", !0);
1396
1579
  }
1397
- }), Ue = /* @__PURE__ */ j(Qe, [["__scopeId", "data-v-3ce7e9d1"]]);
1398
- const Ze = ["tabIndex"], et = ["id"], tt = /* @__PURE__ */ Object.assign({
1580
+ }), Ze = /* @__PURE__ */ G(Ue, [["__scopeId", "data-v-b10ffc3e"]]);
1581
+ const et = ["tabIndex", "aria-label", "aria-disabled"], tt = ["id"], at = /* @__PURE__ */ Object.assign({
1399
1582
  name: "NbButtonBack",
1400
1583
  inheritAttrs: !1
1401
1584
  }, {
@@ -1409,6 +1592,18 @@ const Ze = ["tabIndex"], et = ["id"], tt = /* @__PURE__ */ Object.assign({
1409
1592
  type: Number,
1410
1593
  default: 0
1411
1594
  },
1595
+ hasTabIndexEnter: {
1596
+ type: Boolean,
1597
+ default: !0
1598
+ },
1599
+ hasTabIndexSpace: {
1600
+ type: Boolean,
1601
+ default: !0
1602
+ },
1603
+ ariaLabel: {
1604
+ type: String,
1605
+ default: "Alternate Text Button"
1606
+ },
1412
1607
  color: {
1413
1608
  type: String,
1414
1609
  default: "#477e99"
@@ -1442,88 +1637,95 @@ const Ze = ["tabIndex"], et = ["id"], tt = /* @__PURE__ */ Object.assign({
1442
1637
  }
1443
1638
  },
1444
1639
  emits: ["clicked"],
1445
- setup(e, { emit: s }) {
1446
- F((f) => ({
1447
- "76ffedba": u.value,
1448
- "1d39e94e": c.value,
1449
- f64dd3f4: b.value
1450
- })), oe(() => {
1451
- z();
1640
+ setup(e, { emit: c }) {
1641
+ j((g) => ({
1642
+ aa62e326: r.value,
1643
+ adaa07ba: y.value,
1644
+ 40060860: m.value
1645
+ })), ne(() => {
1646
+ X();
1452
1647
  });
1453
- const w = s, k = e, {
1454
- color: x,
1455
- textColor: m,
1456
- disabled: C,
1457
- fontFamily: y,
1458
- fontSize: g,
1459
- fontWeight: S
1460
- } = M(k), i = t(() => {
1461
- const f = C.value ? "component-disabled" : "", V = x.value ? x.value : "#77d2ff", o = m.value ? m.value : "#6dc1ec", B = y.value ? y.value : "'Lato', sans-serif", r = g.value ? g.value : "1.6em", l = !S.value || S.value < 0 ? 400 : S.value;
1648
+ const H = c, Y = e, {
1649
+ color: N,
1650
+ textColor: B,
1651
+ disabled: x,
1652
+ fontFamily: S,
1653
+ fontSize: i,
1654
+ fontWeight: b
1655
+ } = q(Y), v = t(() => {
1656
+ const g = x.value ? "component-disabled" : "", d = N.value ? N.value : "#77d2ff", n = B.value ? B.value : "#6dc1ec", I = S.value ? S.value : "'Lato', sans-serif", u = i.value ? i.value : "1.6em", l = !b.value || b.value < 0 ? 400 : b.value;
1462
1657
  return {
1463
- color: V,
1464
- textColor: o,
1465
- font: B,
1466
- fontSize: r,
1658
+ color: d,
1659
+ textColor: n,
1660
+ font: I,
1661
+ fontSize: u,
1467
1662
  fontWeight: l,
1468
- disabled: f
1663
+ disabled: g
1469
1664
  };
1470
- }), h = t(() => ({})), _ = t(() => {
1471
- const f = i.value;
1665
+ }), p = t(() => ({})), h = t(() => {
1666
+ const g = v.value;
1472
1667
  return {
1473
- fontSize: f.fontSize,
1474
- fontWeight: f.fontWeight
1668
+ fontSize: g.fontSize,
1669
+ fontWeight: g.fontWeight
1475
1670
  };
1476
- }), b = t(() => i.value.color), c = t(() => i.value.textColor), u = t(() => i.value.font), v = t(() => i.value.disabled), z = () => {
1477
- }, I = () => {
1478
- w("clicked");
1671
+ }), m = t(() => v.value.color), y = t(() => v.value.textColor), r = t(() => v.value.font), f = t(() => v.value.disabled), X = () => {
1672
+ }, k = () => {
1673
+ H("clicked");
1479
1674
  };
1480
- return (f, V) => e.nbId ? (O(), L("div", {
1675
+ return (g, d) => e.nbId ? (O(), E("div", {
1481
1676
  key: 0,
1482
- class: Y(["nb-wrapper", v.value]),
1483
- style: N([h.value]),
1677
+ class: R(["nb-wrapper", f.value]),
1678
+ style: w([p.value]),
1484
1679
  tabIndex: e.tabIndex,
1485
- onClick: I
1680
+ role: "button",
1681
+ "aria-label": e.ariaLabel,
1682
+ "aria-disabled": V(x),
1683
+ onClick: k,
1684
+ onKeydown: [
1685
+ d[0] || (d[0] = W((n) => !V(x) && e.hasTabIndexEnter && k(), ["enter"])),
1686
+ d[1] || (d[1] = W(F((n) => !V(x) && e.hasTabIndexSpace && k(), ["prevent"]), ["space"]))
1687
+ ]
1486
1688
  }, [
1487
- $("div", {
1689
+ z("div", {
1488
1690
  id: e.nbId,
1489
- class: Y(["nb-reset", "component"]),
1490
- style: N([_.value])
1691
+ class: R(["nb-reset", "component"]),
1692
+ style: w([h.value])
1491
1693
  }, [
1492
- V[0] || (V[0] = $("svg", {
1694
+ d[2] || (d[2] = z("svg", {
1493
1695
  xmlns: "http://www.w3.org/2000/svg",
1494
1696
  width: "1em",
1495
1697
  height: "1em",
1496
1698
  viewBox: "0 0 16 16"
1497
1699
  }, [
1498
- $("path", {
1700
+ z("path", {
1499
1701
  d: "M14 8a.75.75 0 01-.75.75H4.56l1.22 1.22a.75.75 0 11-1.06 1.06l-2.5-2.5a.75.75 0 010-1.06l2.5-2.5a.75.75 0 111.06 1.06L4.56 7.25h8.69A.75.75 0 0114 8z",
1500
1702
  "clip-rule": "evenodd"
1501
1703
  })
1502
1704
  ], -1)),
1503
- $("span", null, fe(e.text), 1)
1504
- ], 12, et)
1505
- ], 14, Ze)) : T("", !0);
1705
+ z("span", null, be(e.text), 1)
1706
+ ], 12, tt)
1707
+ ], 46, et)) : P("", !0);
1506
1708
  }
1507
- }), at = /* @__PURE__ */ j(tt, [["__scopeId", "data-v-c0bdc145"]]), te = {
1508
- NbButtonVavaGame: ge,
1509
- NbButtonShowHover: xe,
1510
- NbButtonPrevNext: we,
1511
- NbButtonMechanical: He,
1512
- NbButtonMechanical2: Ye,
1513
- NbButtonHamburger: Oe,
1514
- NbButtonColorOutside: Pe,
1515
- NbButtonColorHover: qe,
1516
- NbButtonAlternateText: Ue,
1517
- NbButtonBack: at
1518
- }, lt = {
1709
+ }), lt = /* @__PURE__ */ G(at, [["__scopeId", "data-v-1df91d2a"]]), oe = {
1710
+ NbButtonVavaGame: me,
1711
+ NbButtonShowHover: Se,
1712
+ NbButtonPrevNext: $e,
1713
+ NbButtonMechanical: ke,
1714
+ NbButtonMechanical2: Xe,
1715
+ NbButtonHamburger: De,
1716
+ NbButtonColorOutside: Fe,
1717
+ NbButtonColorHover: je,
1718
+ NbButtonAlternateText: Ze,
1719
+ NbButtonBack: lt
1720
+ }, nt = {
1519
1721
  install(e) {
1520
- for (const s in te)
1521
- if (Object.prototype.hasOwnProperty.call(te, s)) {
1522
- const w = te[s];
1523
- e.component(w.name, w);
1722
+ for (const c in oe)
1723
+ if (Object.prototype.hasOwnProperty.call(oe, c)) {
1724
+ const H = oe[c];
1725
+ e.component(H.name, H);
1524
1726
  }
1525
1727
  }
1526
1728
  };
1527
1729
  export {
1528
- lt as default
1730
+ nt as default
1529
1731
  };