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