@vlalg-nimbus/nb-buttons 3.0.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 j, toRefs as q, computed as t, openBlock as O, createElementBlock as L, normalizeClass as z, normalizeStyle as N, createElementVNode as R, renderSlot as A, createTextVNode as P, createCommentVNode as T, unref as oe, withModifiers as de, onMounted as se, ref as ie, watch as ce } from "vue";
2
- const G = (e, s) => {
3
- const w = e.__vccOpts || e;
4
- for (const [Y, V] of s)
5
- w[Y] = V;
6
- return w;
7
- }, fe = ["id"], ve = { class: "component-content__text" }, be = /* @__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,10 +18,26 @@ const G = (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
+ tabIndex: {
26
+ type: Number,
27
+ default: 0
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
+ },
25
41
  textColor: {
26
42
  type: String,
27
43
  default: "#ece8e1"
@@ -92,102 +108,110 @@ const G = (e, s) => {
92
108
  }
93
109
  },
94
110
  emits: ["clicked"],
95
- setup(e, { emit: s }) {
96
- j((c) => ({
97
- "32e6be5f": n.value,
98
- "9f7534d6": B.value,
99
- "0ebea8a7": W.value,
100
- "4de13b94": k.value,
101
- "4e9ec21e": r.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
102
118
  }));
103
- const w = s, Y = e, {
104
- display: V,
105
- textColor: g,
106
- textColorHover: m,
107
- buttonColor: b,
108
- buttonColorHover: p,
109
- uppercase: x,
110
- paddingXContent: y,
111
- paddingYContent: _,
112
- paddingXBorder: C,
113
- paddingYBorder: f,
114
- borderColor: i,
115
- borderOpacity: u,
116
- disabled: v,
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,
117
133
  fontFamily: X,
118
- fontSize: H,
119
- fontWeight: h
120
- } = q(Y), S = t(() => {
121
- const c = v.value ? "component-disabled" : "", D = V.value !== "b" ? "inline-block" : "block", F = g.value ? g.value : "#ece8e1", M = b.value ? b.value : "green", E = m.value ? m.value : "#ece8e1", J = p.value ? p.value : "cyan", K = i.value ? i.value : "#ffffff", Q = !u.value || !(u.value >= 0 && u.value <= 1) ? "0.5" : u.value, U = !C.value || C.value < 0 ? 0.3 : C.value, Z = !f.value || f.value < 0 ? 0.3 : f.value, ee = !y.value || y.value < 0 ? 0.5 : y.value, ae = !_.value || _.value < 0 ? 0.5 : _.value, le = x.value ? "uppercase" : "none", ne = X.value ? X.value : "'Lato', sans-serif", ue = H.value ? H.value : "1.6em", re = !h.value || h.value < 0 ? 100 : h.value;
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;
122
138
  return {
123
- disabled: c,
124
- display: D,
125
- textColor: F,
126
- buttonColor: M,
127
- textColorHover: E,
128
- buttonColorHover: J,
129
- borderColor: K,
130
- borderOpacity: Q,
131
- paddingXBorder: U,
132
- paddingYBorder: Z,
133
- paddingXContent: ee,
134
- paddingYContent: ae,
135
- uppercase: le,
136
- font: ne,
137
- fontSize: ue,
138
- fontWeight: re
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
139
155
  };
140
- }), a = t(() => S.value.disabled), $ = t(() => ({
141
- display: S.value.display
142
- })), d = t(() => {
143
- const c = S.value;
156
+ }), n = t(() => d.value.disabled), I = t(() => ({
157
+ display: d.value.display
158
+ })), u = t(() => {
159
+ const C = d.value;
144
160
  return {
145
- padding: `${c.paddingYBorder}rem ${c.paddingXBorder}rem`,
146
- fontSize: c.fontSize,
147
- fontWeight: c.fontWeight
161
+ padding: `${C.paddingYBorder}rem ${C.paddingXBorder}rem`,
162
+ fontSize: C.fontSize,
163
+ fontWeight: C.fontWeight
148
164
  };
149
165
  }), l = t(() => {
150
- const c = S.value;
166
+ const C = d.value;
151
167
  return {
152
- textTransform: c.uppercase,
153
- padding: `${c.paddingYContent}rem ${c.paddingXContent}rem`,
154
- backgroundColor: c.buttonColor
168
+ textTransform: C.uppercase,
169
+ padding: `${C.paddingYContent}rem ${C.paddingXContent}rem`,
170
+ backgroundColor: C.buttonColor
155
171
  };
156
- }), o = t(() => ({
157
- backgroundColor: S.value.buttonColorHover
158
- })), n = t(() => S.value.font), k = t(() => S.value.borderColor), r = t(() => S.value.borderOpacity), B = t(() => S.value.textColor), W = t(() => S.value.textColorHover), I = () => {
159
- w("clicked");
172
+ }), a = t(() => ({
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");
160
176
  };
161
- return (c, D) => e.nbId ? (O(), L("div", {
177
+ return (C, A) => e.nbId ? (O(), E("div", {
162
178
  key: 0,
163
- class: z(["nb-wrapper", a.value]),
164
- style: N([$.value]),
165
- onClick: I
179
+ class: R(["nb-wrapper", n.value]),
180
+ style: w([I.value]),
181
+ tabIndex: e.tabIndex,
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
+ ]
166
190
  }, [
167
- R("div", {
191
+ z("div", {
168
192
  id: e.nbId,
169
- class: z(["nb-reset", "component"]),
170
- style: N([d.value])
193
+ class: R(["nb-reset", "component"]),
194
+ style: w([u.value])
171
195
  }, [
172
- R("div", {
196
+ z("div", {
173
197
  class: "component-content",
174
- style: N([l.value])
198
+ style: w([l.value])
175
199
  }, [
176
- R("span", ve, [
177
- A(c.$slots, "content", {}, () => [
178
- D[0] || (D[0] = P("Default Text"))
200
+ z("span", ye, [
201
+ K(C.$slots, "content", {}, () => [
202
+ A[2] || (A[2] = M("Default Text"))
179
203
  ], !0)
180
204
  ]),
181
- R("span", {
205
+ z("span", {
182
206
  class: "component-content__mask",
183
- style: N([o.value])
207
+ style: w([a.value])
184
208
  }, null, 4)
185
209
  ], 4)
186
- ], 12, fe)
187
- ], 6)) : T("", !0);
210
+ ], 12, pe)
211
+ ], 46, ve)) : P("", !0);
188
212
  }
189
- }), pe = /* @__PURE__ */ G(be, [["__scopeId", "data-v-2854e208"]]);
190
- const ye = ["id"], ge = /* @__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({
191
215
  name: "NbButtonShowHover",
192
216
  inheritAttrs: !1
193
217
  }, {
@@ -197,6 +221,22 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
197
221
  type: String,
198
222
  required: !0
199
223
  },
224
+ tabIndex: {
225
+ type: Number,
226
+ default: 0
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
+ },
200
240
  textColor: {
201
241
  type: String,
202
242
  default: "#145deb"
@@ -253,82 +293,90 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
253
293
  }
254
294
  },
255
295
  emits: ["clicked"],
256
- setup(e, { emit: s }) {
257
- j((d) => ({
258
- ae2466b6: a.value,
259
- "4cd64222": h.value,
260
- "54f7cb8a": S.value,
261
- "72e3e97c": e.textColorHover,
262
- "3b3633a0": oe(V)
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)
263
303
  }));
264
- const w = s, Y = e, {
265
- textColor: V,
266
- buttonColorHover: g,
267
- buttonColorOpacityHover: m,
268
- paddingX: b,
269
- paddingY: p,
270
- disabled: x,
271
- borderRadius: y,
272
- verticalAlign: _,
273
- fontFamily: C,
274
- fontSize: f,
275
- fontWeight: i
276
- } = q(Y), u = t(() => {
277
- const d = x.value ? "component-disabled" : "", l = _.value ? _.value : "middle", o = V ? V.value : "ffffff", n = !b.value || b.value < 0 ? 1 : b.value, k = !p.value || p.value < 0 ? 0.2 : p.value, r = !y.value || y.value < 0 ? 0 : y.value, B = g.value ? g.value : "10, 38, 184", W = !m.value || m.value < 0 ? 0.1 : m.value, I = C.value ? C.value : "'Lato', sans-serif", c = f.value ? f.value : "1.6rem", D = !i.value || i.value < 0 ? 100 : i.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;
278
318
  return {
279
- disabled: d,
280
- borderRadius: r,
281
- textColor: o,
282
- paddingX: n,
283
- paddingY: k,
284
- buttonColorHover: B,
285
- buttonColorOpacityHover: W,
286
- font: I,
287
- fontSize: c,
288
- fontWeight: D,
319
+ disabled: u,
320
+ borderRadius: s,
321
+ textColor: a,
322
+ paddingX: o,
323
+ paddingY: $,
324
+ buttonColorHover: T,
325
+ buttonColorOpacityHover: L,
326
+ font: D,
327
+ fontSize: C,
328
+ fontWeight: A,
289
329
  verticalAlign: l
290
330
  };
291
- }), v = t(() => u.value.disabled), X = t(() => ({
292
- verticalAlign: u.value.verticalAlign
293
- })), H = t(() => {
294
- const d = u.value;
331
+ }), f = t(() => r.value.disabled), X = t(() => ({
332
+ verticalAlign: r.value.verticalAlign
333
+ })), k = t(() => {
334
+ const u = r.value;
295
335
  return {
296
- color: d.textColor,
297
- padding: `${d.paddingY}rem 0`,
298
- borderRadius: `${d.borderRadius}rem`,
299
- fontSize: d.fontSize,
300
- fontWeight: d.fontWeight
336
+ color: u.textColor,
337
+ padding: `${u.paddingY}rem 0`,
338
+ borderRadius: `${u.borderRadius}rem`,
339
+ fontSize: u.fontSize,
340
+ fontWeight: u.fontWeight
301
341
  };
302
- }), h = t(() => {
303
- const d = u.value;
304
- return `${d.paddingY}rem ${d.paddingX}rem`;
305
- }), S = t(() => {
306
- const d = u.value;
307
- return `rgba(${d.buttonColorHover}, ${d.buttonColorOpacityHover})`;
308
- }), a = t(() => u.value.font), $ = () => {
309
- 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");
310
350
  };
311
- return (d, l) => e.nbId ? (O(), L("div", {
351
+ return (u, l) => e.nbId ? (O(), E("div", {
312
352
  key: 0,
313
- class: z(["nb-wrapper", v.value]),
314
- style: N([X.value]),
315
- onClick: $
353
+ class: R(["nb-wrapper", f.value]),
354
+ style: w([X.value]),
355
+ tabIndex: e.tabIndex,
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
+ ]
316
364
  }, [
317
- R("a", {
365
+ z("a", {
318
366
  id: e.nbId,
319
367
  class: "nb-reset component tertiary",
320
- style: N([H.value]),
321
- onClick: l[0] || (l[0] = de(() => {
368
+ style: w([k.value]),
369
+ onClick: l[0] || (l[0] = F(() => {
322
370
  }, ["prevent"]))
323
371
  }, [
324
- A(d.$slots, "content", {}, () => [
325
- l[1] || (l[1] = P("Default Text"))
372
+ K(u.$slots, "content", {}, () => [
373
+ l[3] || (l[3] = M("Default Text"))
326
374
  ], !0)
327
- ], 12, ye)
328
- ], 6)) : T("", !0);
375
+ ], 12, xe)
376
+ ], 46, Ve)) : P("", !0);
329
377
  }
330
- }), me = /* @__PURE__ */ G(ge, [["__scopeId", "data-v-ac926913"]]);
331
- const Ve = ["id"], Ce = /* @__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({
332
380
  name: "NbButtonPrevNext",
333
381
  inheritAttrs: !1
334
382
  }, {
@@ -338,6 +386,30 @@ const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
338
386
  type: String,
339
387
  required: !0
340
388
  },
389
+ tabIndexPrev: {
390
+ type: Number,
391
+ default: 0
392
+ },
393
+ tabIndexNext: {
394
+ type: Number,
395
+ default: 0
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
+ },
341
413
  colorPrimary: {
342
414
  type: String,
343
415
  default: "tomato"
@@ -415,98 +487,114 @@ const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
415
487
  }
416
488
  },
417
489
  emits: ["clicked"],
418
- setup(e, { emit: s }) {
490
+ setup(e, { emit: c }) {
419
491
  j((l) => ({
420
- ac33d4c4: $.value,
421
- "30fb3b6e": e.colorPrimary,
422
- c9dcc372: e.textColor,
423
- "1c2cf3e0": e.colorSecondary,
424
- "7ad7e196": e.textColorHover
492
+ "16c88917": I.value,
493
+ "6e1325e7": e.colorPrimary,
494
+ "118d2324": e.textColor,
495
+ "72f42419": e.colorSecondary,
496
+ "195b3f6e": e.textColorHover
425
497
  }));
426
- const w = s, Y = e, {
427
- paddingX: V,
428
- paddingY: g,
429
- marginBetween: m,
430
- borderRadius: b,
431
- disabled: p,
432
- disabledPreview: x,
433
- disabledNext: y,
434
- fontFamily: _,
435
- fontSize: C,
436
- fontWeight: f
437
- } = q(Y), i = t(() => {
438
- const l = p.value ? "component-disabled" : "", o = x.value ? "component-disabled" : "", n = y.value ? "component-disabled" : "", k = !m.value || m.value < 0 ? 0 : m.value, r = !b.value || b.value < 0 ? 0 : b.value, B = !V.value || V.value < 0 ? 1 : V.value, W = !g.value || g.value < 0 ? 10 : g.value, I = C.value ? C.value : "1.6em", c = !f.value || f.value < 0 ? 100 : f.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;
439
511
  return {
440
512
  disabled: l,
441
- disabledPreview: o,
442
- disabledNext: n,
443
- marginBetween: `${k}px`,
444
- borderRadius: `${r}px`,
445
- paddingX: `${B}px`,
446
- paddingY: `${W}px`,
447
- fontSize: I,
448
- fontWeight: c
513
+ disabledPreview: a,
514
+ disabledNext: o,
515
+ marginBetween: `${$}px`,
516
+ borderRadius: `${s}px`,
517
+ paddingX: `${T}px`,
518
+ paddingY: `${L}px`,
519
+ fontSize: D,
520
+ fontWeight: C
449
521
  };
450
- }), u = t(() => i.value.disabled), v = t(() => i.value.disabledPreview), X = t(() => i.value.disabledNext), H = t(() => ({
451
- display: i.value.display
452
- })), h = t(() => {
453
- const l = i.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;
454
526
  return {
455
527
  fontSize: l.fontSize,
456
528
  fontWeight: l.fontWeight
457
529
  };
458
- }), S = t(() => {
459
- const l = i.value;
530
+ }), d = t(() => {
531
+ const l = y.value;
460
532
  return {
461
533
  borderRadius: `${l.borderRadius} 0px 0px ${l.borderRadius}`,
462
534
  marginRight: l.marginBetween,
463
535
  padding: `${l.paddingX} ${l.paddingY}`
464
536
  };
465
- }), a = t(() => {
466
- const l = i.value;
537
+ }), n = t(() => {
538
+ const l = y.value;
467
539
  return {
468
540
  borderRadius: `0px ${l.borderRadius} ${l.borderRadius} 0px`,
469
541
  marginLeft: l.marginBetween,
470
542
  padding: `${l.paddingX} ${l.paddingY}`
471
543
  };
472
- }), $ = t(() => `'${_.value ? _.value : "'Lato', sans-serif"}'`), d = (l) => {
473
- w("clicked", l);
544
+ }), I = t(() => `'${p.value ? p.value : "'Lato', sans-serif"}'`), u = (l) => {
545
+ H("clicked", l);
474
546
  };
475
- return (l, o) => e.nbId ? (O(), L("div", {
547
+ return (l, a) => e.nbId ? (O(), E("div", {
476
548
  key: 0,
477
- class: z(["nb-wrapper", u.value]),
478
- style: N([H.value])
549
+ class: R(["nb-wrapper", r.value]),
550
+ style: w([k.value])
479
551
  }, [
480
- R("div", {
552
+ z("div", {
481
553
  id: e.nbId,
482
- class: z(["nb-reset", "component"]),
483
- style: N(h.value)
554
+ class: R(["nb-reset", "component"]),
555
+ style: w(g.value)
484
556
  }, [
485
- e.showPreview ? (O(), L("div", {
557
+ e.showPreview ? (O(), E("div", {
486
558
  key: 0,
487
- onClick: o[0] || (o[0] = (n) => d("preview")),
488
- class: z(["buttonNextPreview buttonPreview", v.value]),
489
- style: N(S.value)
559
+ class: R(["buttonNextPreview buttonPreview", f.value]),
560
+ style: w(d.value),
561
+ tabIndex: e.tabIndexPrev,
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
+ ]
490
570
  }, [
491
- A(l.$slots, "prev", {}, () => [
492
- o[2] || (o[2] = P("← Preview"))
571
+ K(l.$slots, "prev", {}, () => [
572
+ a[6] || (a[6] = M("← Preview"))
493
573
  ], !0)
494
- ], 6)) : T("", !0),
495
- e.showNext ? (O(), L("div", {
574
+ ], 46, Be)) : P("", !0),
575
+ e.showNext ? (O(), E("div", {
496
576
  key: 1,
497
- onClick: o[1] || (o[1] = (n) => d("next")),
498
- class: z(["buttonNextPreview buttonNext", X.value]),
499
- style: N(a.value)
577
+ class: R(["buttonNextPreview buttonNext", X.value]),
578
+ style: w(n.value),
579
+ tabIndex: e.tabIndexNext,
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
+ ]
500
588
  }, [
501
- A(l.$slots, "next", {}, () => [
502
- o[3] || (o[3] = P("Next →"))
589
+ K(l.$slots, "next", {}, () => [
590
+ a[7] || (a[7] = M("Next →"))
503
591
  ], !0)
504
- ], 6)) : T("", !0)
505
- ], 12, Ve)
506
- ], 6)) : T("", !0);
592
+ ], 46, he)) : P("", !0)
593
+ ], 12, Ie)
594
+ ], 6)) : P("", !0);
507
595
  }
508
- }), Se = /* @__PURE__ */ G(Ce, [["__scopeId", "data-v-bce0a1da"]]);
509
- const xe = ["id"], _e = /* @__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({
510
598
  name: "NbButtonMechanical",
511
599
  inheritAttrs: !1
512
600
  }, {
@@ -520,10 +608,26 @@ const xe = ["id"], _e = /* @__PURE__ */ Object.assign({
520
608
  type: String,
521
609
  default: "b",
522
610
  validator: (e = "b") => {
523
- const s = e ? e.toLowerCase() : "";
524
- return ["b", "ib"].includes(s);
611
+ const c = e ? e.toLowerCase() : "";
612
+ return ["b", "ib"].includes(c);
525
613
  }
526
614
  },
615
+ tabIndex: {
616
+ type: Number,
617
+ default: 0
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
+ },
527
631
  textColor: {
528
632
  type: String,
529
633
  default: "#ffffff"
@@ -575,77 +679,85 @@ const xe = ["id"], _e = /* @__PURE__ */ Object.assign({
575
679
  }
576
680
  },
577
681
  emits: ["clicked"],
578
- setup(e, { emit: s }) {
579
- j((o) => ({
580
- "4b1889ee": a.value,
581
- "7fe81952": oe(g),
582
- "5683f09a": d.value,
583
- "58a615bf": $.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
584
688
  }));
585
- const w = s, Y = e, {
586
- display: V,
587
- buttonColor: g,
588
- textColor: m,
589
- containerColor: b,
590
- paddingX: p,
591
- paddingY: x,
592
- borderRadius: y,
593
- disabled: _,
594
- animationSlow: C,
595
- fontFamily: f,
596
- fontSize: i,
597
- fontWeight: u
598
- } = q(Y), v = t(() => {
599
- const o = _.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block", k = b.value ? b.value : "#ffffff", r = g.value ? g.value : "#bbbbbb", B = m.value ? m.value : "#ffffff", W = !p.value || p.value < 0 ? 1 : p.value, I = !x.value || x.value < 0 ? 0.2 : x.value, c = !y.value || y.value < 0 ? 0 : y.value, D = C.value ? "" : "component-transition__no-slow", F = f.value ? f.value : "'Lato', sans-serif", M = i.value ? i.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;
600
704
  return {
601
- disabled: o,
602
- display: n,
603
- containerColor: k,
604
- buttonColor: r,
605
- textColor: B,
606
- paddingX: W,
607
- paddingY: I,
608
- borderRadius: c,
609
- animationSlow: D,
610
- font: F,
611
- fontSize: M,
612
- fontWeight: E
705
+ disabled: a,
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
613
717
  };
614
- }), X = t(() => v.value.disabled), H = t(() => ({
615
- display: v.value.display
616
- })), h = t(() => {
617
- const o = v.value;
718
+ }), X = t(() => f.value.disabled), k = t(() => ({
719
+ display: f.value.display
720
+ })), g = t(() => {
721
+ const a = f.value;
618
722
  return {
619
- border: `2px solid ${o.containerColor}`,
620
- color: o.textColor,
621
- backgroundColor: o.buttonColor,
622
- padding: `${o.paddingY}rem ${o.paddingX}rem`,
623
- borderRadius: `${o.borderRadius}rem`,
624
- fontSize: o.fontSize,
625
- fontWeight: o.fontWeight
723
+ border: `2px solid ${a.containerColor}`,
724
+ color: a.textColor,
725
+ backgroundColor: a.buttonColor,
726
+ padding: `${a.paddingY}rem ${a.paddingX}rem`,
727
+ borderRadius: `${a.borderRadius}rem`,
728
+ fontSize: a.fontSize,
729
+ fontWeight: a.fontWeight
626
730
  };
627
- }), S = t(() => v.value.animationSlow), a = t(() => v.value.font), $ = t(() => v.value.textColor), d = t(() => v.value.buttonColor), l = () => {
628
- 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");
629
733
  };
630
- return (o, n) => e.nbId ? (O(), L("div", {
734
+ return (a, o) => e.nbId ? (O(), E("div", {
631
735
  key: 0,
632
- class: z(["nb-wrapper", X.value]),
633
- style: N([H.value]),
634
- onClick: l
736
+ class: R(["nb-wrapper", X.value]),
737
+ style: w([k.value]),
738
+ tabIndex: e.tabIndex,
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
+ ]
635
747
  }, [
636
- R("div", {
748
+ z("div", {
637
749
  id: e.nbId,
638
- class: z(["nb-reset", "component", "component-transition", S.value]),
639
- style: N([h.value])
750
+ class: R(["nb-reset", "component", "component-transition", d.value]),
751
+ style: w([g.value])
640
752
  }, [
641
- A(o.$slots, "content", {}, () => [
642
- n[0] || (n[0] = P("Default Text"))
753
+ K(a.$slots, "content", {}, () => [
754
+ o[2] || (o[2] = M("Default Text"))
643
755
  ], !0)
644
- ], 14, xe)
645
- ], 6)) : T("", !0);
756
+ ], 14, Te)
757
+ ], 46, we)) : P("", !0);
646
758
  }
647
- }), he = /* @__PURE__ */ G(_e, [["__scopeId", "data-v-5cadef2d"]]);
648
- const Ne = ["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({
649
761
  name: "NbButtonMechanical2",
650
762
  inheritAttrs: !1
651
763
  }, {
@@ -659,10 +771,26 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
659
771
  type: String,
660
772
  default: "b",
661
773
  validator: (e = "b") => {
662
- const s = e ? e.toLowerCase() : "";
663
- return ["b", "ib"].includes(s);
774
+ const c = e ? e.toLowerCase() : "";
775
+ return ["b", "ib"].includes(c);
664
776
  }
665
777
  },
778
+ tabIndex: {
779
+ type: Number,
780
+ default: 0
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
+ },
666
794
  textColor: {
667
795
  type: String,
668
796
  default: "#ffffff"
@@ -710,73 +838,81 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
710
838
  }
711
839
  },
712
840
  emits: ["clicked"],
713
- setup(e, { emit: s }) {
714
- j((a) => ({
715
- "7ab7e502": h.value
841
+ setup(e, { emit: c }) {
842
+ j((n) => ({
843
+ "41c9f13c": g.value
716
844
  }));
717
- const w = s, Y = e, {
718
- display: V,
719
- buttonColor: g,
720
- textColor: m,
721
- paddingX: b,
722
- paddingY: p,
723
- borderRadius: x,
724
- shadowColor: y,
725
- disabled: _,
726
- fontFamily: C,
727
- fontSize: f,
728
- fontWeight: i
729
- } = q(Y), u = t(() => {
730
- const a = _.value ? "component-disabled" : "", $ = V.value !== "b" ? "inline-block" : "block", d = g.value ? g.value : "#bbbbbb", l = y.value ? y.value : "#002f3c", o = m.value ? m.value : "#ffffff", n = !b.value || b.value < 0 ? 1 : b.value, k = !p.value || p.value < 0 ? 1 : p.value, r = !x.value || x.value < 0 ? 0 : x.value, B = C.value ? C.value : "'Lato', sans-serif", W = f.value ? f.value : "1.6em", I = !i.value || i.value < 0 ? 100 : i.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;
731
859
  return {
732
- disabled: a,
733
- display: $,
734
- buttonColor: d,
860
+ disabled: n,
861
+ display: I,
862
+ buttonColor: u,
735
863
  shadowColor: l,
736
- textColor: o,
737
- paddingX: n,
738
- paddingY: k,
739
- borderRadius: r,
740
- font: B,
741
- fontSize: W,
742
- fontWeight: I
864
+ textColor: a,
865
+ paddingX: o,
866
+ paddingY: $,
867
+ borderRadius: s,
868
+ font: T,
869
+ fontSize: L,
870
+ fontWeight: D
743
871
  };
744
- }), v = t(() => u.value.disabled), X = t(() => ({
745
- display: u.value.display
746
- })), H = t(() => {
747
- const a = u.value;
872
+ }), f = t(() => r.value.disabled), X = t(() => ({
873
+ display: r.value.display
874
+ })), k = t(() => {
875
+ const n = r.value;
748
876
  return {
749
- color: a.textColor,
750
- backgroundColor: a.buttonColor,
751
- boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${a.shadowColor}`,
752
- padding: `${a.paddingY}rem ${a.paddingX}rem`,
753
- padding: `${a.paddingY}rem ${a.paddingX}rem`,
754
- borderRadius: `${a.borderRadius}rem`,
755
- fontSize: a.fontSize,
756
- fontWeight: a.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
757
885
  };
758
- }), h = t(() => u.value.font), S = () => {
759
- w("clicked");
886
+ }), g = t(() => r.value.font), d = () => {
887
+ H("clicked");
760
888
  };
761
- return (a, $) => e.nbId ? (O(), L("div", {
889
+ return (n, I) => e.nbId ? (O(), E("div", {
762
890
  key: 0,
763
- class: z(["nb-wrapper", v.value]),
764
- style: N([X.value]),
765
- onClick: S
891
+ class: R(["nb-wrapper", f.value]),
892
+ style: w([X.value]),
893
+ tabIndex: e.tabIndex,
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
+ ]
766
902
  }, [
767
- R("div", {
903
+ z("div", {
768
904
  id: e.nbId,
769
- class: z(["nb-reset", "component", "component-transition"]),
770
- style: N([H.value])
905
+ class: R(["nb-reset", "component", "component-transition"]),
906
+ style: w([k.value])
771
907
  }, [
772
- A(a.$slots, "content", {}, () => [
773
- $[0] || ($[0] = P("Default Text"))
908
+ K(n.$slots, "content", {}, () => [
909
+ I[2] || (I[2] = M("Default Text"))
774
910
  ], !0)
775
- ], 12, Ne)
776
- ], 6)) : T("", !0);
911
+ ], 12, We)
912
+ ], 46, ze)) : P("", !0);
777
913
  }
778
- }), Be = /* @__PURE__ */ G(we, [["__scopeId", "data-v-dc73d1b4"]]);
779
- const $e = ["id"], He = /* @__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({
780
916
  name: "NbButtonHamburger",
781
917
  inheritAttrs: !1
782
918
  }, {
@@ -786,6 +922,22 @@ const $e = ["id"], He = /* @__PURE__ */ Object.assign({
786
922
  type: String,
787
923
  required: !0
788
924
  },
925
+ tabIndex: {
926
+ type: Number,
927
+ default: 0
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
+ },
789
941
  status: {
790
942
  type: Boolean,
791
943
  default: !1,
@@ -824,77 +976,85 @@ const $e = ["id"], He = /* @__PURE__ */ Object.assign({
824
976
  }
825
977
  },
826
978
  emits: ["clicked"],
827
- setup(e, { emit: s }) {
828
- j((a) => ({
829
- f95b314e: H.value,
830
- "30593c5a": h.value
979
+ setup(e, { emit: c }) {
980
+ j((n) => ({
981
+ "05489a45": k.value,
982
+ b1646024: g.value
831
983
  }));
832
- const w = s, Y = e;
833
- se(() => {
834
- V.value = g.value;
984
+ const H = c, Y = e;
985
+ ne(() => {
986
+ N.value = B.value;
835
987
  });
836
- const V = ie(!1), {
837
- status: g,
838
- color: m,
839
- containerColor: b,
840
- containerColorHover: p,
841
- colorHover: x,
842
- paddingX: y,
843
- paddingY: _,
844
- disabled: C
845
- } = q(Y), f = t(() => {
846
- const a = C.value ? "component-disabled" : "", $ = V.value ? "change" : "", d = b.value ? b.value : "#333333", l = m.value ? m.value : "#ffffff", o = !y.value || y.value < 0 ? 3 : y.value, n = !_.value || _.value < 0 ? 3 : _.value, k = p.value ? p.value : "yellow", r = x.value ? x.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";
847
999
  return {
848
- disabled: a,
849
- buttonStatus: $,
850
- containerColor: d,
851
- paddingX: o,
852
- paddingY: n,
1000
+ disabled: n,
1001
+ buttonStatus: I,
1002
+ containerColor: u,
1003
+ paddingX: a,
1004
+ paddingY: o,
853
1005
  color: l,
854
- containerColorHover: k,
855
- colorHover: r
1006
+ containerColorHover: $,
1007
+ colorHover: s
856
1008
  };
857
- }), i = t(() => f.value.disabled), u = t(() => {
858
- const a = f.value;
1009
+ }), y = t(() => m.value.disabled), r = t(() => {
1010
+ const n = m.value;
859
1011
  return {
860
- padding: `${a.paddingY}px ${a.paddingX}px`,
861
- backgroundColor: a.containerColor
1012
+ padding: `${n.paddingY}px ${n.paddingX}px`,
1013
+ backgroundColor: n.containerColor
862
1014
  };
863
- }), v = t(() => ({
864
- backgroundColor: f.value.color
865
- })), X = t(() => f.value.buttonStatus), H = t(() => f.value.containerColorHover), h = t(() => f.value.colorHover), S = () => {
866
- const a = !V.value;
867
- V.value = a, w("clicked", a);
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);
868
1020
  };
869
- return ce(g, () => {
870
- V.value = g.value;
871
- }), (a, $) => e.nbId ? (O(), L("div", {
1021
+ return ce(B, () => {
1022
+ N.value = B.value;
1023
+ }), (n, I) => e.nbId ? (O(), E("div", {
872
1024
  key: 0,
873
- class: z(["nb-wrapper", i.value]),
874
- style: N([u.value]),
875
- onClick: S
1025
+ class: R(["nb-wrapper", y.value]),
1026
+ style: w([r.value]),
1027
+ tabIndex: e.tabIndex,
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
+ ]
876
1036
  }, [
877
- R("div", {
1037
+ z("div", {
878
1038
  id: e.nbId,
879
- class: z(["nb-reset", "component", X.value])
1039
+ class: R(["nb-reset", "component", X.value])
880
1040
  }, [
881
- R("div", {
1041
+ z("div", {
882
1042
  class: "component__line-one",
883
- style: N(v.value)
1043
+ style: w(f.value)
884
1044
  }, null, 4),
885
- R("div", {
1045
+ z("div", {
886
1046
  class: "component__line-two",
887
- style: N(v.value)
1047
+ style: w(f.value)
888
1048
  }, null, 4),
889
- R("div", {
1049
+ z("div", {
890
1050
  class: "component__line-three",
891
- style: N(v.value)
1051
+ style: w(f.value)
892
1052
  }, null, 4)
893
- ], 10, $e)
894
- ], 6)) : T("", !0);
1053
+ ], 10, Le)
1054
+ ], 46, Re)) : P("", !0);
895
1055
  }
896
- }), ke = /* @__PURE__ */ G(He, [["__scopeId", "data-v-3ffd1dc9"]]);
897
- const Ye = ["id"], Xe = /* @__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({
898
1058
  name: "NbButtonColorOutside",
899
1059
  inheritAttrs: !1
900
1060
  }, {
@@ -908,10 +1068,26 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
908
1068
  type: String,
909
1069
  default: "b",
910
1070
  validator: (e = "b") => {
911
- const s = e ? e.toLowerCase() : "";
912
- return ["b", "ib"].includes(s);
1071
+ const c = e ? e.toLowerCase() : "";
1072
+ return ["b", "ib"].includes(c);
913
1073
  }
914
1074
  },
1075
+ tabIndex: {
1076
+ type: Number,
1077
+ default: 0
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
+ },
915
1091
  textColor: {
916
1092
  type: String,
917
1093
  default: "#ffffff"
@@ -959,84 +1135,92 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
959
1135
  }
960
1136
  },
961
1137
  emits: ["clicked"],
962
- setup(e, { emit: s }) {
963
- j((o) => ({
964
- "2ad8890e": a.value,
965
- "48b2df1f": d.value,
966
- fda0dac8: S.value,
967
- "6c58e184": $.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
968
1144
  }));
969
- const w = s, Y = e, {
970
- display: V,
971
- buttonColor: g,
972
- borderColor: m,
973
- textColor: b,
974
- paddingX: p,
975
- paddingY: x,
976
- borderRadius: y,
977
- disabled: _,
978
- fontFamily: C,
979
- fontSize: f,
980
- fontWeight: i
981
- } = q(Y), u = t(() => {
982
- const o = _.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block", k = g.value ? g.value : "#bbbbbb", r = m.value ? m.value : "#ffe54c", B = b.value ? b.value : "#ffffff", W = !p.value || p.value < 0 ? 1 : p.value, I = !x.value || x.value < 0 ? 0.2 : x.value, c = !y.value || y.value < 0 ? 0 : y.value, D = C.value ? C.value : "'Lato', sans-serif", F = f.value ? f.value : "1.6em", M = !i.value || i.value < 0 ? 200 : i.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;
983
1159
  return {
984
- disabled: o,
985
- display: n,
986
- buttonColor: k,
987
- borderColor: r,
988
- textColor: B,
989
- paddingX: W,
990
- paddingY: I,
991
- borderRadius: c,
992
- font: D,
993
- fontSize: F,
994
- fontWeight: M
1160
+ disabled: a,
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
995
1171
  };
996
- }), v = t(() => u.value.disabled), X = t(() => ({
997
- display: u.value.display
998
- })), H = t(() => {
999
- const o = u.value;
1172
+ }), f = t(() => r.value.disabled), X = t(() => ({
1173
+ display: r.value.display
1174
+ })), k = t(() => {
1175
+ const a = r.value;
1000
1176
  return {
1001
- color: o.textColor,
1002
- fontSize: o.fontSize,
1003
- fontWeight: o.fontWeight
1177
+ color: a.textColor,
1178
+ fontSize: a.fontSize,
1179
+ fontWeight: a.fontWeight
1004
1180
  };
1005
- }), h = t(() => {
1006
- const o = u.value;
1181
+ }), g = t(() => {
1182
+ const a = r.value;
1007
1183
  return {
1008
- padding: `${o.paddingY}rem ${o.paddingX}rem`,
1009
- border: `1px solid ${o.borderColor}`,
1010
- borderRadius: S.value
1184
+ padding: `${a.paddingY}rem ${a.paddingX}rem`,
1185
+ border: `1px solid ${a.borderColor}`,
1186
+ borderRadius: d.value
1011
1187
  };
1012
- }), S = t(() => `${u.value.borderRadius}rem`), a = t(() => u.value.font), $ = t(() => u.value.textColor), d = t(() => u.value.buttonColor), l = () => {
1013
- 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");
1014
1190
  };
1015
- return (o, n) => e.nbId ? (O(), L("div", {
1191
+ return (a, o) => e.nbId ? (O(), E("div", {
1016
1192
  key: 0,
1017
- class: z(["nb-wrapper", v.value]),
1018
- style: N([X.value]),
1019
- onClick: l
1193
+ class: R(["nb-wrapper", f.value]),
1194
+ style: w([X.value]),
1195
+ tabIndex: e.tabIndex,
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
+ ]
1020
1204
  }, [
1021
- R("div", {
1205
+ z("div", {
1022
1206
  id: e.nbId,
1023
- class: z(["nb-reset", "component"]),
1024
- style: N([H.value])
1207
+ class: R(["nb-reset", "component"]),
1208
+ style: w([k.value])
1025
1209
  }, [
1026
- R("div", {
1210
+ z("div", {
1027
1211
  class: "component-content",
1028
- style: N([h.value])
1212
+ style: w([g.value])
1029
1213
  }, [
1030
- A(o.$slots, "content", {}, () => [
1031
- n[0] || (n[0] = P("Default Text"))
1214
+ K(a.$slots, "content", {}, () => [
1215
+ o[2] || (o[2] = M("Default Text"))
1032
1216
  ], !0)
1033
1217
  ], 4),
1034
- n[1] || (n[1] = R("div", { class: "component-shadow" }, null, -1))
1035
- ], 12, Ye)
1036
- ], 6)) : T("", !0);
1218
+ o[3] || (o[3] = z("div", { class: "component-shadow" }, null, -1))
1219
+ ], 12, Ee)
1220
+ ], 46, Oe)) : P("", !0);
1037
1221
  }
1038
- }), Re = /* @__PURE__ */ G(Xe, [["__scopeId", "data-v-e1da5764"]]);
1039
- const ze = ["id"], We = /* @__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({
1040
1224
  name: "NbButtonColorHover",
1041
1225
  inheritAttrs: !1
1042
1226
  }, {
@@ -1050,10 +1234,26 @@ const ze = ["id"], We = /* @__PURE__ */ Object.assign({
1050
1234
  type: String,
1051
1235
  default: "b",
1052
1236
  validator: (e = "b") => {
1053
- const s = e.toLowerCase();
1054
- return ["b", "ib"].includes(s);
1237
+ const c = e.toLowerCase();
1238
+ return ["b", "ib"].includes(c);
1055
1239
  }
1056
1240
  },
1241
+ tabIndex: {
1242
+ type: Number,
1243
+ default: 0
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
+ },
1057
1257
  textColor: {
1058
1258
  type: String,
1059
1259
  default: "#ffffff"
@@ -1105,79 +1305,88 @@ const ze = ["id"], We = /* @__PURE__ */ Object.assign({
1105
1305
  }
1106
1306
  },
1107
1307
  emits: ["clicked"],
1108
- setup(e, { emit: s }) {
1109
- j((n) => ({
1110
- "1c06a74c": S.value,
1111
- "32a0706b": d.value,
1112
- "5114b568": $.value,
1113
- "4ae6f391": l.value,
1114
- "0ed255d0": a.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
1115
1315
  }));
1116
- const w = s, Y = e, {
1117
- display: V,
1118
- textColor: g,
1119
- paddingX: m,
1120
- paddingY: b,
1121
- borderRadius: p,
1122
- disabled: x,
1123
- fontFamily: y,
1124
- fontSize: _,
1125
- fontWeight: C,
1126
- textColorHover: f,
1127
- buttonColor: i,
1128
- buttonColorHover: u
1129
- } = q(Y), v = t(() => {
1130
- const n = x.value ? "component-disabled" : "", k = V.value !== "b" ? "inline-block" : "block", r = g ? g.value : "ffffff", B = !m.value || m.value < 0 ? 1 : m.value, W = !b.value || b.value < 0 ? 0.2 : b.value, I = !p.value || p.value < 0 ? 0 : p.value, c = y.value ? y.value : "'Lato', sans-serif", D = _.value ? _.value : "1.6rem", F = !C.value || C.value < 0 ? 100 : C.value, M = f.value ? f.value : "#cccccc", E = i.value ? i.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";
1131
1331
  return {
1132
- disabled: n,
1133
- display: k,
1134
- font: c,
1135
- fontSize: D,
1136
- fontWeight: F,
1137
- textColor: r,
1138
- paddingX: B,
1139
- paddingY: W,
1140
- borderRadius: I,
1141
- textColorHover: M,
1142
- buttonColor: E,
1143
- 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
1144
1344
  };
1145
- }), X = t(() => v.value.disabled), H = t(() => {
1146
- const n = v.value;
1345
+ }), X = t(() => f.value.disabled), k = t(() => {
1346
+ const o = f.value;
1147
1347
  return {
1148
- display: n.display,
1149
- borderRadius: `${n.borderRadius}rem`
1348
+ display: o.display,
1349
+ borderRadius: `${o.borderRadius}rem`
1150
1350
  };
1151
- }), h = t(() => {
1152
- const n = v.value;
1351
+ }), g = t(() => {
1352
+ const o = f.value;
1153
1353
  return {
1154
- color: n.textColor,
1155
- padding: `${n.paddingY}rem ${n.paddingX}rem`,
1156
- borderRadius: `${n.borderRadius}rem`,
1157
- fontSize: n.fontSize,
1158
- 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
1159
1359
  };
1160
- }), S = t(() => v.value.font), a = t(() => v.value.textColor), $ = t(() => v.value.textColorHover), d = t(() => v.value.buttonColor), l = t(() => v.value.buttonColorHover), o = () => {
1161
- 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");
1162
1362
  };
1163
- return (n, k) => (O(), L("div", {
1164
- class: z(["nb-wrapper", X.value]),
1165
- style: N([H.value]),
1166
- onClick: o
1363
+ return (o, $) => e.nbId ? (O(), E("div", {
1364
+ key: 0,
1365
+ class: R(["nb-wrapper", X.value]),
1366
+ style: w([k.value]),
1367
+ tabIndex: e.tabIndex,
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
+ ]
1167
1376
  }, [
1168
- R("div", {
1377
+ z("div", {
1169
1378
  id: e.nbId,
1170
1379
  class: "nb-reset component component-transition",
1171
- style: N([h.value])
1380
+ style: w([g.value])
1172
1381
  }, [
1173
- A(n.$slots, "content", {}, () => [
1174
- k[0] || (k[0] = P("Default Text"))
1382
+ K(o.$slots, "content", {}, () => [
1383
+ $[2] || ($[2] = M("Default Text"))
1175
1384
  ], !0)
1176
- ], 12, ze)
1177
- ], 6));
1385
+ ], 12, Ke)
1386
+ ], 46, _e)) : P("", !0);
1178
1387
  }
1179
- }), Ie = /* @__PURE__ */ G(We, [["__scopeId", "data-v-fe69344f"]]);
1180
- const De = ["id"], Oe = { class: "first-child" }, Le = { class: "last-child" }, Te = /* @__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({
1181
1390
  name: "NbButtonAlternateText",
1182
1391
  inheritAttrs: !1
1183
1392
  }, {
@@ -1191,10 +1400,26 @@ const De = ["id"], Oe = { class: "first-child" }, Le = { class: "last-child" },
1191
1400
  type: String,
1192
1401
  default: "b",
1193
1402
  validator: (e = "b") => {
1194
- const s = e ? e.toLowerCase() : "";
1195
- return ["b", "ib"].includes(s);
1403
+ const c = e ? e.toLowerCase() : "";
1404
+ return ["b", "ib"].includes(c);
1196
1405
  }
1197
1406
  },
1407
+ tabIndex: {
1408
+ type: Number,
1409
+ default: 0
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
+ },
1198
1423
  textColor: {
1199
1424
  type: String,
1200
1425
  default: "#ffffff"
@@ -1260,109 +1485,247 @@ const De = ["id"], Oe = { class: "first-child" }, Le = { class: "last-child" },
1260
1485
  }
1261
1486
  },
1262
1487
  emits: ["clicked"],
1263
- setup(e, { emit: s }) {
1264
- j((r) => ({
1265
- "42e9739f": d.value,
1266
- "11568ad5": l.value,
1267
- "03c8d755": o.value,
1268
- b6290fa0: 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
1269
1494
  }));
1270
- const w = s, Y = e, {
1271
- display: V,
1272
- buttonColor: g,
1273
- borderColor: m,
1274
- buttonHoverColor: b,
1275
- showBorder: p,
1276
- borderRadius: x,
1277
- textColor: y,
1278
- textHoverColor: _,
1279
- width: C,
1280
- paddingX: f,
1281
- paddingY: i,
1282
- disabled: u,
1283
- fontFamily: v,
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,
1284
1509
  fontSize: X,
1285
- fontWeight: H
1286
- } = q(Y), h = t(() => {
1287
- const r = u.value ? "component-disabled" : "", B = V.value !== "b" ? "inline-block" : "block", W = g.value ? g.value : "#ffffff", I = b.value ? b.value : "#000000", c = m.value ? m.value : "#ffe54c", D = !x.value || x.value < 0 ? 0 : x.value, F = [!1, !0].includes(p.value) ? p.value : !0, M = y.value ? y.value : "#ffffff", E = _.value ? _.value : "#000000", J = !C.value || C.value < 86 ? 86 : C.value, K = !f.value || f.value < 0 ? 1 : f.value, Q = !i.value || i.value < 0 ? 0.4 : i.value, U = v.value ? v.value : "'Lato', sans-serif", Z = X.value ? X.value : "1.6em", ee = !H.value || H.value < 0 ? 200 : H.value;
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;
1288
1513
  return {
1289
- disabled: r,
1290
- display: B,
1291
- buttonColor: W,
1292
- buttonHoverColor: I,
1293
- borderColor: c,
1294
- showBorder: F,
1295
- borderRadius: D,
1296
- textColor: M,
1297
- textHoverColor: E,
1298
- width: J,
1299
- paddingX: K,
1300
- paddingY: Q,
1301
- font: U,
1302
- fontSize: Z,
1303
- 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
1304
1529
  };
1305
- }), S = t(() => h.value.disabled), a = t(() => ({
1306
- display: h.value.display
1307
- })), $ = t(() => {
1308
- const r = h.value, B = r.display === "block" ? "auto" : `${r.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`;
1309
1534
  return {
1310
- ...r.showBorder ? { border: `1px solid ${r.borderColor}` } : {},
1311
- borderRadius: `${r.borderRadius}rem`,
1312
- background: r.buttonColor,
1535
+ ...s.showBorder ? { border: `1px solid ${s.borderColor}` } : {},
1536
+ borderRadius: `${s.borderRadius}rem`,
1537
+ background: s.buttonColor,
1313
1538
  minWidth: "33px",
1314
- width: B,
1315
- padding: `${r.paddingY}rem ${r.paddingX}rem`,
1539
+ width: T,
1540
+ padding: `${s.paddingY}rem ${s.paddingX}rem`,
1316
1541
  lineHeight: "1.42857143",
1317
- fontSize: r.fontSize,
1318
- fontWeight: r.fontWeight
1542
+ fontSize: s.fontSize,
1543
+ fontWeight: s.fontWeight
1319
1544
  };
1320
- }), d = t(() => h.value.font), l = t(() => h.value.textColor), o = t(() => h.value.textHoverColor), n = t(() => h.value.buttonHoverColor), k = () => {
1321
- 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");
1322
1547
  };
1323
- return (r, B) => e.nbId ? (O(), L("div", {
1548
+ return (s, T) => e.nbId ? (O(), E("div", {
1324
1549
  key: 0,
1325
- class: z(["nb-wrapper", S.value]),
1326
- style: N([a.value]),
1327
- onClick: k
1550
+ class: R(["nb-wrapper", d.value]),
1551
+ style: w([n.value]),
1552
+ tabIndex: e.tabIndex,
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
+ ]
1328
1561
  }, [
1329
- R("div", {
1562
+ z("div", {
1330
1563
  id: e.nbId,
1331
- class: z(["nb-reset", "component"]),
1332
- style: N([$.value])
1564
+ class: R(["nb-reset", "component"]),
1565
+ style: w([I.value])
1333
1566
  }, [
1334
- R("div", Oe, [
1335
- A(r.$slots, "content", {}, () => [
1336
- B[0] || (B[0] = P("Default Text"))
1567
+ z("div", Je, [
1568
+ K(s.$slots, "content", {}, () => [
1569
+ T[2] || (T[2] = M("Default Text"))
1337
1570
  ], !0)
1338
1571
  ]),
1339
- R("div", Le, [
1340
- A(r.$slots, "content", {}, () => [
1341
- B[1] || (B[1] = P("Default Text"))
1572
+ z("div", Qe, [
1573
+ K(s.$slots, "content", {}, () => [
1574
+ T[3] || (T[3] = M("Default Text"))
1342
1575
  ], !0)
1343
1576
  ])
1344
- ], 12, De)
1345
- ], 6)) : T("", !0);
1577
+ ], 12, Ge)
1578
+ ], 46, qe)) : P("", !0);
1579
+ }
1580
+ }), Ze = /* @__PURE__ */ G(Ue, [["__scopeId", "data-v-b10ffc3e"]]);
1581
+ const et = ["tabIndex", "aria-label", "aria-disabled"], tt = ["id"], at = /* @__PURE__ */ Object.assign({
1582
+ name: "NbButtonBack",
1583
+ inheritAttrs: !1
1584
+ }, {
1585
+ __name: "NbButtonBack",
1586
+ props: {
1587
+ nbId: {
1588
+ type: String,
1589
+ required: !0
1590
+ },
1591
+ tabIndex: {
1592
+ type: Number,
1593
+ default: 0
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
+ },
1607
+ color: {
1608
+ type: String,
1609
+ default: "#477e99"
1610
+ },
1611
+ textColor: {
1612
+ type: String,
1613
+ default: "#77d2ff"
1614
+ },
1615
+ text: {
1616
+ type: String,
1617
+ default: "back"
1618
+ },
1619
+ disabled: {
1620
+ type: Boolean,
1621
+ default: !1,
1622
+ validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
1623
+ },
1624
+ fontFamily: {
1625
+ type: String,
1626
+ default: "'Lato', sans-serif"
1627
+ },
1628
+ fontSize: {
1629
+ type: String,
1630
+ default: "1.6em",
1631
+ validator: (e) => e || "1.6em"
1632
+ },
1633
+ fontWeight: {
1634
+ type: Number,
1635
+ default: 400,
1636
+ validator: (e) => e || 200
1637
+ }
1638
+ },
1639
+ emits: ["clicked"],
1640
+ setup(e, { emit: c }) {
1641
+ j((g) => ({
1642
+ aa62e326: r.value,
1643
+ adaa07ba: y.value,
1644
+ 40060860: m.value
1645
+ })), ne(() => {
1646
+ X();
1647
+ });
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;
1657
+ return {
1658
+ color: d,
1659
+ textColor: n,
1660
+ font: I,
1661
+ fontSize: u,
1662
+ fontWeight: l,
1663
+ disabled: g
1664
+ };
1665
+ }), p = t(() => ({})), h = t(() => {
1666
+ const g = v.value;
1667
+ return {
1668
+ fontSize: g.fontSize,
1669
+ fontWeight: g.fontWeight
1670
+ };
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");
1674
+ };
1675
+ return (g, d) => e.nbId ? (O(), E("div", {
1676
+ key: 0,
1677
+ class: R(["nb-wrapper", f.value]),
1678
+ style: w([p.value]),
1679
+ tabIndex: e.tabIndex,
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
+ ]
1688
+ }, [
1689
+ z("div", {
1690
+ id: e.nbId,
1691
+ class: R(["nb-reset", "component"]),
1692
+ style: w([h.value])
1693
+ }, [
1694
+ d[2] || (d[2] = z("svg", {
1695
+ xmlns: "http://www.w3.org/2000/svg",
1696
+ width: "1em",
1697
+ height: "1em",
1698
+ viewBox: "0 0 16 16"
1699
+ }, [
1700
+ z("path", {
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",
1702
+ "clip-rule": "evenodd"
1703
+ })
1704
+ ], -1)),
1705
+ z("span", null, be(e.text), 1)
1706
+ ], 12, tt)
1707
+ ], 46, et)) : P("", !0);
1346
1708
  }
1347
- }), Ae = /* @__PURE__ */ G(Te, [["__scopeId", "data-v-e5288afa"]]), te = {
1348
- NbButtonVavaGame: pe,
1349
- NbButtonShowHover: me,
1350
- NbButtonPrevNext: Se,
1351
- NbButtonMechanical: he,
1352
- NbButtonMechanical2: Be,
1353
- NbButtonHamburger: ke,
1354
- NbButtonColorOutside: Re,
1355
- NbButtonColorHover: Ie,
1356
- NbButtonAlternateText: Ae
1357
- }, Fe = {
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 = {
1358
1721
  install(e) {
1359
- for (const s in te)
1360
- if (Object.prototype.hasOwnProperty.call(te, s)) {
1361
- const w = te[s];
1362
- 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);
1363
1726
  }
1364
1727
  }
1365
1728
  };
1366
1729
  export {
1367
- Fe as default
1730
+ nt as default
1368
1731
  };