@vlalg-nimbus/nb-buttons 2.0.2 → 2.0.4
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 +425 -417
- 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,8 +1,8 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
1
|
+
import { useCssVars as F, toRefs as M, computed as t, openBlock as T, createElementBlock as L, normalizeClass as X, normalizeStyle as w, createElementVNode as R, renderSlot as q, createTextVNode as G, createCommentVNode as A, unref as ae, withModifiers as de, toDisplayString as te, onMounted as se, ref as ie, watch as ce } from "vue";
|
|
2
|
+
const j = (e, s) => {
|
|
3
3
|
const B = e.__vccOpts || e;
|
|
4
|
-
for (const [C,
|
|
5
|
-
B[C] =
|
|
4
|
+
for (const [C, b] of s)
|
|
5
|
+
B[C] = b;
|
|
6
6
|
return B;
|
|
7
7
|
}, fe = ["id"], ve = { class: "component-content__text" }, be = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbButtonVavaGame",
|
|
@@ -18,8 +18,8 @@ const M = (e, d) => {
|
|
|
18
18
|
type: String,
|
|
19
19
|
default: "ib",
|
|
20
20
|
validator: (e = "") => {
|
|
21
|
-
const
|
|
22
|
-
return ["b", "ib"].includes(
|
|
21
|
+
const s = e.toLowerCase();
|
|
22
|
+
return ["b", "ib"].includes(s);
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
textColor: {
|
|
@@ -92,102 +92,102 @@ const M = (e, d) => {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
emits: ["clicked"],
|
|
95
|
-
setup(e, { emit:
|
|
95
|
+
setup(e, { emit: s }) {
|
|
96
96
|
const B = e;
|
|
97
|
-
|
|
98
|
-
"4348b976":
|
|
97
|
+
F((u) => ({
|
|
98
|
+
"4348b976": H.value,
|
|
99
99
|
"1735afec": Y.value,
|
|
100
|
-
"58e23cb0":
|
|
101
|
-
"451672cd":
|
|
102
|
-
"55b7ee16":
|
|
100
|
+
"58e23cb0": z.value,
|
|
101
|
+
"451672cd": d.value,
|
|
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:
|
|
112
|
+
paddingYContent: g,
|
|
113
113
|
paddingXBorder: N,
|
|
114
|
-
paddingYBorder:
|
|
115
|
-
borderColor:
|
|
116
|
-
borderOpacity:
|
|
117
|
-
disabled:
|
|
118
|
-
fontFamily:
|
|
114
|
+
paddingYBorder: i,
|
|
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(B), _ = t(() => {
|
|
122
|
+
const u = l.value ? "component-disabled" : "", I = C.value !== "b" ? "inline-block" : "block", D = b.value ? b.value : "#ece8e1", O = p.value ? p.value : "green", P = x.value ? x.value : "#ece8e1", E = y.value ? y.value : "cyan", J = c.value ? c.value : "#ffffff", K = !m.value || !(m.value >= 0 && m.value <= 1) ? "0.5" : m.value, Q = !N.value || N.value < 0 ? 0.3 : N.value, U = !i.value || i.value < 0 ? 0.3 : i.value, Z = !V.value || V.value < 0 ? 0.5 : V.value, oe = !g.value || g.value < 0 ? 0.5 : g.value, le = v.value ? "uppercase" : "none", ne = S.value ? S.value : "'Lato', sans-serif", ue = $.value ? $.value : "1.6em", re = !h.value || h.value < 0 ? 100 : h.value;
|
|
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,
|
|
132
|
-
paddingXBorder:
|
|
133
|
-
paddingYBorder:
|
|
134
|
-
paddingXContent:
|
|
132
|
+
paddingXBorder: Q,
|
|
133
|
+
paddingYBorder: U,
|
|
134
|
+
paddingXContent: Z,
|
|
135
135
|
paddingYContent: oe,
|
|
136
136
|
uppercase: le,
|
|
137
137
|
font: ne,
|
|
138
138
|
fontSize: ue,
|
|
139
139
|
fontWeight: re
|
|
140
140
|
};
|
|
141
|
-
}),
|
|
142
|
-
display:
|
|
143
|
-
})),
|
|
144
|
-
const u =
|
|
141
|
+
}), f = t(() => _.value.disabled), r = 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
|
-
})),
|
|
160
|
-
|
|
158
|
+
backgroundColor: _.value.buttonColorHover
|
|
159
|
+
})), H = t(() => _.value.font), d = t(() => _.value.borderColor), n = t(() => _.value.borderOpacity), Y = t(() => _.value.textColor), z = t(() => _.value.textColorHover), W = () => {
|
|
160
|
+
s("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: w([r.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: w([k.value])
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
R("div", {
|
|
174
174
|
class: "component-content",
|
|
175
|
-
style:
|
|
175
|
+
style: w([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: w([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
|
|
@@ -258,48 +258,48 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
|
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
emits: ["clicked"],
|
|
261
|
-
setup(e, { emit:
|
|
261
|
+
setup(e, { emit: s }) {
|
|
262
262
|
const B = e;
|
|
263
|
-
|
|
264
|
-
e35bf122:
|
|
265
|
-
"122f086c":
|
|
266
|
-
"590fef9e":
|
|
263
|
+
F((a) => ({
|
|
264
|
+
e35bf122: r.value,
|
|
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:
|
|
278
|
+
borderRadius: g,
|
|
279
279
|
verticalAlign: N,
|
|
280
|
-
fontFamily:
|
|
281
|
-
fontSize:
|
|
282
|
-
fontWeight:
|
|
283
|
-
} =
|
|
284
|
-
const a = C.value ? C.value : "Default Text", o = V.value ? "component-disabled" : "",
|
|
280
|
+
fontFamily: i,
|
|
281
|
+
fontSize: c,
|
|
282
|
+
fontWeight: m
|
|
283
|
+
} = M(B), l = t(() => {
|
|
284
|
+
const a = C.value ? C.value : "Default Text", o = V.value ? "component-disabled" : "", H = N.value ? N.value : "middle", d = b ? b.value : "ffffff", n = !y.value || y.value < 0 ? 1 : y.value, Y = !v.value || v.value < 0 ? 0.2 : v.value, z = !g.value || g.value < 0 ? 0 : g.value, W = x.value ? x.value : "10, 38, 184", u = !p.value || p.value < 0 ? 0.1 : p.value, I = i.value ? i.value : "'Lato', sans-serif", D = c.value ? c.value : "1.6rem", O = !m.value || m.value < 0 ? 100 : m.value;
|
|
285
285
|
return {
|
|
286
286
|
disabled: o,
|
|
287
|
-
borderRadius:
|
|
288
|
-
textColor:
|
|
289
|
-
paddingX:
|
|
287
|
+
borderRadius: z,
|
|
288
|
+
textColor: d,
|
|
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
|
-
}),
|
|
317
|
-
|
|
316
|
+
}), r = t(() => l.value.font), k = () => {
|
|
317
|
+
s("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: w([$.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: w([h.value]),
|
|
329
329
|
onClick: o[0] || (o[0] = de(() => {
|
|
330
330
|
}, ["prevent"]))
|
|
331
|
-
},
|
|
332
|
-
], 6)) :
|
|
331
|
+
}, te(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
|
|
@@ -419,10 +419,10 @@ const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
|
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
421
|
emits: ["clicked"],
|
|
422
|
-
setup(e, { emit:
|
|
422
|
+
setup(e, { emit: s }) {
|
|
423
423
|
const B = e;
|
|
424
|
-
|
|
425
|
-
"2446b547":
|
|
424
|
+
F((a) => ({
|
|
425
|
+
"2446b547": r.value,
|
|
426
426
|
a50bbbd2: e.colorPrimary,
|
|
427
427
|
"0f9f603e": e.textColor,
|
|
428
428
|
"748cd449": e.colorSecondary,
|
|
@@ -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:
|
|
439
|
+
fontFamily: g,
|
|
440
440
|
fontSize: N,
|
|
441
|
-
fontWeight:
|
|
442
|
-
} =
|
|
443
|
-
const a =
|
|
441
|
+
fontWeight: i
|
|
442
|
+
} = M(B), c = t(() => {
|
|
443
|
+
const a = y.value ? "component-disabled" : "", o = v.value ? "component-disabled" : "", H = V.value ? "component-disabled" : "", d = !x.value || x.value < 0 ? 0 : x.value, n = !p.value || p.value < 0 ? 0 : p.value, Y = !C.value || C.value < 0 ? 1 : C.value, z = !b.value || b.value < 0 ? 10 : b.value, W = N.value ? N.value : "1.6em", u = !i.value || i.value < 0 ? 100 : i.value;
|
|
444
444
|
return {
|
|
445
445
|
disabled: a,
|
|
446
446
|
disabledPreview: o,
|
|
447
|
-
disabledNext:
|
|
448
|
-
marginBetween: `${
|
|
449
|
-
borderRadius: `${
|
|
447
|
+
disabledNext: H,
|
|
448
|
+
marginBetween: `${d}px`,
|
|
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
|
-
}),
|
|
478
|
-
|
|
477
|
+
}), r = t(() => `'${g.value ? g.value : "'Lato', sans-serif"}'`), k = (a) => {
|
|
478
|
+
s("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: w([$.value])
|
|
484
484
|
}, [
|
|
485
|
-
|
|
485
|
+
R("div", {
|
|
486
486
|
id: e.nbId,
|
|
487
487
|
class: X(["nb-reset", "component"]),
|
|
488
|
-
style:
|
|
488
|
+
style: w(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: w(_.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: w(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
|
|
@@ -525,8 +525,8 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
|
|
|
525
525
|
type: String,
|
|
526
526
|
default: "b",
|
|
527
527
|
validator: (e = "b") => {
|
|
528
|
-
const
|
|
529
|
-
return ["b", "ib"].includes(
|
|
528
|
+
const s = e ? e.toLowerCase() : "";
|
|
529
|
+
return ["b", "ib"].includes(s);
|
|
530
530
|
}
|
|
531
531
|
},
|
|
532
532
|
textColor: {
|
|
@@ -580,47 +580,47 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
|
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
emits: ["clicked"],
|
|
583
|
-
setup(e, { emit:
|
|
583
|
+
setup(e, { emit: s }) {
|
|
584
584
|
const B = e;
|
|
585
|
-
|
|
586
|
-
"196eb3ca":
|
|
587
|
-
"5a845ff6": ae(
|
|
588
|
-
"44f25ea8":
|
|
589
|
-
"3eb45b5e":
|
|
585
|
+
F((o) => ({
|
|
586
|
+
"196eb3ca": f.value,
|
|
587
|
+
"5a845ff6": ae(b),
|
|
588
|
+
"44f25ea8": k.value,
|
|
589
|
+
"3eb45b5e": r.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:
|
|
599
|
+
disabled: g,
|
|
600
600
|
animationSlow: N,
|
|
601
|
-
fontFamily:
|
|
602
|
-
fontSize:
|
|
603
|
-
fontWeight:
|
|
604
|
-
} =
|
|
605
|
-
const o =
|
|
601
|
+
fontFamily: i,
|
|
602
|
+
fontSize: c,
|
|
603
|
+
fontWeight: m
|
|
604
|
+
} = M(B), l = t(() => {
|
|
605
|
+
const o = g.value ? "component-disabled" : "", H = C.value !== "b" ? "inline-block" : "block", d = p.value ? p.value : "#ffffff", n = b.value ? b.value : "#bbbbbb", Y = x.value ? x.value : "#ffffff", z = !y.value || y.value < 0 ? 1 : y.value, W = !v.value || v.value < 0 ? 0.2 : v.value, u = !V.value || V.value < 0 ? 0 : V.value, I = N.value ? "" : "component-transition__no-slow", D = i.value ? i.value : "'Lato', sans-serif", O = c.value ? c.value : "1.6em", P = !m.value || m.value < 0 ? 100 : m.value;
|
|
606
606
|
return {
|
|
607
607
|
disabled: o,
|
|
608
|
-
display:
|
|
609
|
-
containerColor:
|
|
610
|
-
buttonColor:
|
|
608
|
+
display: H,
|
|
609
|
+
containerColor: d,
|
|
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
|
-
}),
|
|
634
|
-
|
|
633
|
+
}), _ = t(() => l.value.animationSlow), f = t(() => l.value.font), r = t(() => l.value.textColor), k = t(() => l.value.buttonColor), a = () => {
|
|
634
|
+
s("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: w([$.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: w([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
|
|
@@ -661,16 +661,12 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
|
|
|
661
661
|
type: String,
|
|
662
662
|
required: !0
|
|
663
663
|
},
|
|
664
|
-
text: {
|
|
665
|
-
type: String,
|
|
666
|
-
default: "Default Text"
|
|
667
|
-
},
|
|
668
664
|
display: {
|
|
669
665
|
type: String,
|
|
670
666
|
default: "b",
|
|
671
667
|
validator: (e = "b") => {
|
|
672
|
-
const
|
|
673
|
-
return ["b", "ib"].includes(
|
|
668
|
+
const s = e ? e.toLowerCase() : "";
|
|
669
|
+
return ["b", "ib"].includes(s);
|
|
674
670
|
}
|
|
675
671
|
},
|
|
676
672
|
textColor: {
|
|
@@ -720,70 +716,74 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
|
|
|
720
716
|
}
|
|
721
717
|
},
|
|
722
718
|
emits: ["clicked"],
|
|
723
|
-
setup(e, { emit:
|
|
719
|
+
setup(e, { emit: s }) {
|
|
724
720
|
const B = e;
|
|
725
|
-
|
|
726
|
-
|
|
721
|
+
F((r) => ({
|
|
722
|
+
a193a08a: _.value
|
|
727
723
|
}));
|
|
728
724
|
const {
|
|
729
725
|
text: C,
|
|
730
|
-
display:
|
|
726
|
+
display: b,
|
|
731
727
|
buttonColor: x,
|
|
732
|
-
textColor:
|
|
733
|
-
paddingX:
|
|
734
|
-
paddingY:
|
|
728
|
+
textColor: p,
|
|
729
|
+
paddingX: y,
|
|
730
|
+
paddingY: v,
|
|
735
731
|
borderRadius: V,
|
|
736
|
-
shadowColor:
|
|
732
|
+
shadowColor: g,
|
|
737
733
|
disabled: N,
|
|
738
|
-
fontFamily:
|
|
739
|
-
fontSize:
|
|
740
|
-
fontWeight:
|
|
741
|
-
} =
|
|
742
|
-
const
|
|
734
|
+
fontFamily: i,
|
|
735
|
+
fontSize: c,
|
|
736
|
+
fontWeight: m
|
|
737
|
+
} = M(B), l = t(() => {
|
|
738
|
+
const r = N.value ? "component-disabled" : "", k = b.value !== "b" ? "inline-block" : "block", a = x.value ? x.value : "#bbbbbb", o = g.value ? g.value : "#002f3c", H = p.value ? p.value : "#ffffff", d = !y.value || y.value < 0 ? 1 : y.value, n = !v.value || v.value < 0 ? 1 : v.value, Y = !V.value || V.value < 0 ? 0 : V.value, z = i.value ? i.value : "'Lato', sans-serif", W = c.value ? c.value : "1.6em", u = !m.value || m.value < 0 ? 100 : m.value;
|
|
743
739
|
return {
|
|
744
|
-
disabled:
|
|
745
|
-
display:
|
|
740
|
+
disabled: r,
|
|
741
|
+
display: k,
|
|
746
742
|
buttonColor: a,
|
|
747
743
|
shadowColor: o,
|
|
748
|
-
textColor:
|
|
749
|
-
paddingX:
|
|
750
|
-
paddingY:
|
|
744
|
+
textColor: H,
|
|
745
|
+
paddingX: d,
|
|
746
|
+
paddingY: n,
|
|
751
747
|
borderRadius: Y,
|
|
752
|
-
font:
|
|
753
|
-
fontSize:
|
|
748
|
+
font: z,
|
|
749
|
+
fontSize: W,
|
|
754
750
|
fontWeight: u
|
|
755
751
|
};
|
|
756
|
-
}),
|
|
757
|
-
display:
|
|
758
|
-
})),
|
|
759
|
-
const
|
|
752
|
+
}), S = t(() => l.value.disabled), $ = t(() => ({
|
|
753
|
+
display: l.value.display
|
|
754
|
+
})), h = t(() => {
|
|
755
|
+
const r = l.value;
|
|
760
756
|
return {
|
|
761
|
-
color:
|
|
762
|
-
backgroundColor:
|
|
763
|
-
boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${
|
|
764
|
-
padding: `${
|
|
765
|
-
padding: `${
|
|
766
|
-
borderRadius: `${
|
|
767
|
-
fontSize:
|
|
768
|
-
fontWeight:
|
|
757
|
+
color: r.textColor,
|
|
758
|
+
backgroundColor: r.buttonColor,
|
|
759
|
+
boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${r.shadowColor}`,
|
|
760
|
+
padding: `${r.paddingY}rem ${r.paddingX}rem`,
|
|
761
|
+
padding: `${r.paddingY}rem ${r.paddingX}rem`,
|
|
762
|
+
borderRadius: `${r.borderRadius}rem`,
|
|
763
|
+
fontSize: r.fontSize,
|
|
764
|
+
fontWeight: r.fontWeight
|
|
769
765
|
};
|
|
770
|
-
}),
|
|
771
|
-
|
|
766
|
+
}), _ = t(() => l.value.font), f = () => {
|
|
767
|
+
s("clicked");
|
|
772
768
|
};
|
|
773
|
-
return (
|
|
769
|
+
return (r, k) => e.nbId ? (T(), L("div", {
|
|
774
770
|
key: 0,
|
|
775
|
-
class: X(["nb-wrapper",
|
|
776
|
-
style:
|
|
777
|
-
onClick:
|
|
771
|
+
class: X(["nb-wrapper", S.value]),
|
|
772
|
+
style: w([$.value]),
|
|
773
|
+
onClick: f
|
|
778
774
|
}, [
|
|
779
|
-
|
|
775
|
+
R("div", {
|
|
780
776
|
id: e.nbId,
|
|
781
777
|
class: X(["nb-reset", "component", "component-transition"]),
|
|
782
|
-
style:
|
|
783
|
-
},
|
|
784
|
-
|
|
778
|
+
style: w([h.value])
|
|
779
|
+
}, [
|
|
780
|
+
q(r.$slots, "content", {}, () => [
|
|
781
|
+
G("Default Text")
|
|
782
|
+
], !0)
|
|
783
|
+
], 12, Ne)
|
|
784
|
+
], 6)) : A("", !0);
|
|
785
785
|
}
|
|
786
|
-
}), Be = /* @__PURE__ */
|
|
786
|
+
}), Be = /* @__PURE__ */ j(we, [["__scopeId", "data-v-fec2a51e"]]);
|
|
787
787
|
const He = ["id"], $e = /* @__PURE__ */ Object.assign({
|
|
788
788
|
name: "NbButtonHamburger",
|
|
789
789
|
inheritAttrs: !1
|
|
@@ -832,75 +832,75 @@ const He = ["id"], $e = /* @__PURE__ */ Object.assign({
|
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
834
|
emits: ["clicked"],
|
|
835
|
-
setup(e, { emit:
|
|
835
|
+
setup(e, { emit: s }) {
|
|
836
836
|
const B = e;
|
|
837
|
-
|
|
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:
|
|
850
|
+
paddingY: g,
|
|
851
851
|
disabled: N
|
|
852
|
-
} =
|
|
853
|
-
const
|
|
852
|
+
} = M(B), i = t(() => {
|
|
853
|
+
const f = N.value ? "component-disabled" : "", r = C.value ? "change" : "", k = p.value ? p.value : "#333333", a = x.value ? x.value : "#ffffff", o = !V.value || V.value < 0 ? 3 : V.value, H = !g.value || g.value < 0 ? 3 : g.value, d = y.value ? y.value : "yellow", n = v.value ? v.value : "red";
|
|
854
854
|
return {
|
|
855
|
-
disabled:
|
|
856
|
-
buttonStatus:
|
|
857
|
-
containerColor:
|
|
855
|
+
disabled: f,
|
|
856
|
+
buttonStatus: r,
|
|
857
|
+
containerColor: k,
|
|
858
858
|
paddingX: o,
|
|
859
|
-
paddingY:
|
|
859
|
+
paddingY: H,
|
|
860
860
|
color: a,
|
|
861
|
-
containerColorHover:
|
|
862
|
-
colorHover:
|
|
861
|
+
containerColorHover: d,
|
|
862
|
+
colorHover: n
|
|
863
863
|
};
|
|
864
|
-
}),
|
|
865
|
-
const
|
|
864
|
+
}), c = t(() => i.value.disabled), m = t(() => {
|
|
865
|
+
const f = i.value;
|
|
866
866
|
return {
|
|
867
|
-
padding: `${
|
|
868
|
-
backgroundColor:
|
|
867
|
+
padding: `${f.paddingY}px ${f.paddingX}px`,
|
|
868
|
+
backgroundColor: f.containerColor
|
|
869
869
|
};
|
|
870
|
-
}),
|
|
871
|
-
backgroundColor:
|
|
872
|
-
})),
|
|
873
|
-
const
|
|
874
|
-
C.value =
|
|
870
|
+
}), l = t(() => ({
|
|
871
|
+
backgroundColor: i.value.color
|
|
872
|
+
})), S = t(() => i.value.buttonStatus), $ = t(() => i.value.containerColorHover), h = t(() => i.value.colorHover), _ = () => {
|
|
873
|
+
const f = !C.value;
|
|
874
|
+
C.value = f, s("clicked", f);
|
|
875
875
|
};
|
|
876
|
-
return ce(
|
|
877
|
-
C.value =
|
|
878
|
-
}), (
|
|
876
|
+
return ce(b, () => {
|
|
877
|
+
C.value = b.value;
|
|
878
|
+
}), (f, r) => 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: w([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: w(l.value)
|
|
891
891
|
}, null, 4),
|
|
892
|
-
|
|
892
|
+
R("div", {
|
|
893
893
|
class: "component__line-two",
|
|
894
|
-
style:
|
|
894
|
+
style: w(l.value)
|
|
895
895
|
}, null, 4),
|
|
896
|
-
|
|
896
|
+
R("div", {
|
|
897
897
|
class: "component__line-three",
|
|
898
|
-
style:
|
|
898
|
+
style: w(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
|
|
@@ -915,8 +915,8 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
|
|
|
915
915
|
type: String,
|
|
916
916
|
default: "b",
|
|
917
917
|
validator: (e = "b") => {
|
|
918
|
-
const
|
|
919
|
-
return ["b", "ib"].includes(
|
|
918
|
+
const s = e ? e.toLowerCase() : "";
|
|
919
|
+
return ["b", "ib"].includes(s);
|
|
920
920
|
}
|
|
921
921
|
},
|
|
922
922
|
text: {
|
|
@@ -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"
|
|
@@ -966,69 +970,73 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
|
|
|
966
970
|
}
|
|
967
971
|
},
|
|
968
972
|
emits: ["clicked"],
|
|
969
|
-
setup(e, { emit:
|
|
973
|
+
setup(e, { emit: s }) {
|
|
970
974
|
const B = e;
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
+
F((o) => ({
|
|
976
|
+
bf6244be: f.value,
|
|
977
|
+
"3087ef32": k.value,
|
|
978
|
+
b71ed32e: _.value,
|
|
979
|
+
df6e4b52: r.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: N,
|
|
991
|
+
fontFamily: i,
|
|
992
|
+
fontSize: c,
|
|
993
|
+
fontWeight: m
|
|
994
|
+
} = M(B), l = t(() => {
|
|
995
|
+
const o = C.value ? C.value : "Default Text", H = N.value ? "component-disabled" : "", d = b.value !== "b" ? "inline-block" : "block", n = x.value ? x.value : "#bbbbbb", Y = p.value ? p.value : "#ffe54c", z = y.value ? y.value : "#ffffff", W = !v.value || v.value < 0 ? 1 : v.value, u = !V.value || V.value < 0 ? 0.2 : V.value, I = !g.value || g.value < 0 ? 0 : g.value, D = i.value ? i.value : "'Lato', sans-serif", O = c.value ? c.value : "1.6em", P = !m.value || m.value < 0 ? 200 : m.value;
|
|
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: d,
|
|
999
|
+
buttonColor: n,
|
|
1000
|
+
borderColor: Y,
|
|
1001
|
+
textColor: z,
|
|
1002
|
+
paddingX: W,
|
|
1003
|
+
paddingY: u,
|
|
1004
|
+
text: o,
|
|
1005
|
+
borderRadius: I,
|
|
1006
|
+
font: D,
|
|
1007
|
+
fontSize: O,
|
|
1008
|
+
fontWeight: P
|
|
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
|
-
}),
|
|
1015
|
-
|
|
1022
|
+
}), _ = t(() => `${l.value.borderRadius}rem`), f = t(() => l.value.font), r = t(() => l.value.textColor), k = t(() => l.value.buttonColor), a = () => {
|
|
1023
|
+
s("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: w([$.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
|
-
},
|
|
1028
|
-
], 6)) :
|
|
1034
|
+
style: w([h.value])
|
|
1035
|
+
}, te(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
|
}, {
|
|
@@ -1046,8 +1054,8 @@ const We = ["id"], Re = /* @__PURE__ */ Object.assign({
|
|
|
1046
1054
|
type: String,
|
|
1047
1055
|
default: "b",
|
|
1048
1056
|
validator: (e = "b") => {
|
|
1049
|
-
const
|
|
1050
|
-
return ["b", "ib"].includes(
|
|
1057
|
+
const s = e.toLowerCase();
|
|
1058
|
+
return ["b", "ib"].includes(s);
|
|
1051
1059
|
}
|
|
1052
1060
|
},
|
|
1053
1061
|
textColor: {
|
|
@@ -1101,77 +1109,77 @@ const We = ["id"], Re = /* @__PURE__ */ Object.assign({
|
|
|
1101
1109
|
}
|
|
1102
1110
|
},
|
|
1103
1111
|
emits: ["clicked"],
|
|
1104
|
-
setup(e, { emit:
|
|
1112
|
+
setup(e, { emit: s }) {
|
|
1105
1113
|
const B = e;
|
|
1106
|
-
|
|
1107
|
-
ea8f1624:
|
|
1114
|
+
F((d) => ({
|
|
1115
|
+
ea8f1624: f.value,
|
|
1108
1116
|
"68a00a02": a.value,
|
|
1109
|
-
a1f5bb90:
|
|
1117
|
+
a1f5bb90: k.value,
|
|
1110
1118
|
"7c8ae57d": o.value,
|
|
1111
|
-
"0ca91538":
|
|
1119
|
+
"0ca91538": r.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:
|
|
1129
|
+
fontFamily: g,
|
|
1122
1130
|
fontSize: N,
|
|
1123
|
-
fontWeight:
|
|
1124
|
-
textColorHover:
|
|
1125
|
-
buttonColor:
|
|
1126
|
-
buttonColorHover:
|
|
1127
|
-
} =
|
|
1128
|
-
const
|
|
1131
|
+
fontWeight: i,
|
|
1132
|
+
textColorHover: c,
|
|
1133
|
+
buttonColor: m,
|
|
1134
|
+
buttonColorHover: l
|
|
1135
|
+
} = M(B), S = t(() => {
|
|
1136
|
+
const d = C.value ? C.value : "Default Text", n = V.value ? "component-disabled" : "", Y = b.value !== "b" ? "inline-block" : "block", z = x ? x.value : "ffffff", W = !p.value || p.value < 0 ? 1 : p.value, u = !y.value || y.value < 0 ? 0.2 : y.value, I = !v.value || v.value < 0 ? 0 : v.value, D = g.value ? g.value : "'Lato', sans-serif", O = N.value ? N.value : "1.6rem", P = !i.value || i.value < 0 ? 100 : i.value, E = c.value ? c.value : "#cccccc", J = m.value ? m.value : "#bbbbbb", K = l.value ? l.value : "#959595";
|
|
1129
1137
|
return {
|
|
1130
|
-
disabled:
|
|
1138
|
+
disabled: n,
|
|
1131
1139
|
display: Y,
|
|
1132
|
-
font:
|
|
1133
|
-
fontSize:
|
|
1134
|
-
fontWeight:
|
|
1135
|
-
text:
|
|
1136
|
-
textColor:
|
|
1137
|
-
paddingX:
|
|
1140
|
+
font: D,
|
|
1141
|
+
fontSize: O,
|
|
1142
|
+
fontWeight: P,
|
|
1143
|
+
text: d,
|
|
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
|
|
1152
|
+
}), $ = t(() => S.value.disabled), h = t(() => {
|
|
1153
|
+
const d = S.value;
|
|
1146
1154
|
return {
|
|
1147
|
-
display:
|
|
1148
|
-
borderRadius: `${
|
|
1155
|
+
display: d.display,
|
|
1156
|
+
borderRadius: `${d.borderRadius}rem`
|
|
1149
1157
|
};
|
|
1150
|
-
}),
|
|
1151
|
-
const
|
|
1158
|
+
}), _ = t(() => {
|
|
1159
|
+
const d = S.value;
|
|
1152
1160
|
return {
|
|
1153
|
-
color:
|
|
1154
|
-
padding: `${
|
|
1155
|
-
borderRadius: `${
|
|
1156
|
-
fontSize:
|
|
1157
|
-
fontWeight:
|
|
1161
|
+
color: d.textColor,
|
|
1162
|
+
padding: `${d.paddingY}rem ${d.paddingX}rem`,
|
|
1163
|
+
borderRadius: `${d.borderRadius}rem`,
|
|
1164
|
+
fontSize: d.fontSize,
|
|
1165
|
+
fontWeight: d.fontWeight
|
|
1158
1166
|
};
|
|
1159
|
-
}),
|
|
1160
|
-
|
|
1167
|
+
}), f = t(() => S.value.font), r = t(() => S.value.textColor), k = t(() => S.value.textColorHover), a = t(() => S.value.buttonColor), o = t(() => S.value.buttonColorHover), H = () => {
|
|
1168
|
+
s("clicked");
|
|
1161
1169
|
};
|
|
1162
|
-
return (
|
|
1170
|
+
return (d, n) => (T(), L("div", {
|
|
1163
1171
|
class: X(["nb-wrapper", $.value]),
|
|
1164
|
-
style:
|
|
1165
|
-
onClick:
|
|
1172
|
+
style: w([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
|
-
},
|
|
1178
|
+
style: w([_.value])
|
|
1179
|
+
}, te(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
|
|
@@ -1186,8 +1194,8 @@ const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" },
|
|
|
1186
1194
|
type: String,
|
|
1187
1195
|
default: "b",
|
|
1188
1196
|
validator: (e = "b") => {
|
|
1189
|
-
const
|
|
1190
|
-
return ["b", "ib"].includes(
|
|
1197
|
+
const s = e ? e.toLowerCase() : "";
|
|
1198
|
+
return ["b", "ib"].includes(s);
|
|
1191
1199
|
}
|
|
1192
1200
|
},
|
|
1193
1201
|
textColor: {
|
|
@@ -1255,106 +1263,106 @@ const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" },
|
|
|
1255
1263
|
}
|
|
1256
1264
|
},
|
|
1257
1265
|
emits: ["clicked"],
|
|
1258
|
-
setup(e, { emit:
|
|
1266
|
+
setup(e, { emit: s }) {
|
|
1259
1267
|
const B = e;
|
|
1260
|
-
|
|
1261
|
-
"17a23bbc":
|
|
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:
|
|
1282
|
+
textHoverColor: g,
|
|
1275
1283
|
width: N,
|
|
1276
|
-
paddingX:
|
|
1277
|
-
paddingY:
|
|
1278
|
-
disabled:
|
|
1279
|
-
fontFamily:
|
|
1280
|
-
fontSize:
|
|
1284
|
+
paddingX: i,
|
|
1285
|
+
paddingY: c,
|
|
1286
|
+
disabled: m,
|
|
1287
|
+
fontFamily: l,
|
|
1288
|
+
fontSize: S,
|
|
1281
1289
|
fontWeight: $
|
|
1282
|
-
} =
|
|
1283
|
-
const
|
|
1290
|
+
} = M(B), h = t(() => {
|
|
1291
|
+
const n = m.value ? "component-disabled" : "", Y = C.value !== "b" ? "inline-block" : "block", z = b.value ? b.value : "#ffffff", W = p.value ? p.value : "#000000", u = x.value ? x.value : "#ffe54c", I = !v.value || v.value < 0 ? 0 : v.value, D = [!1, !0].includes(y.value) ? y.value : !0, O = V.value ? V.value : "#ffffff", P = g.value ? g.value : "#000000", E = !N.value || N.value < 86 ? 86 : N.value, J = !i.value || i.value < 0 ? 1 : i.value, K = !c.value || c.value < 0 ? 0.4 : c.value, Q = l.value ? l.value : "'Lato', sans-serif", U = S.value ? S.value : "1.6em", Z = !$.value || $.value < 0 ? 200 : $.value;
|
|
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,
|
|
1297
|
-
font:
|
|
1298
|
-
fontSize:
|
|
1299
|
-
fontWeight:
|
|
1305
|
+
font: Q,
|
|
1306
|
+
fontSize: U,
|
|
1307
|
+
fontWeight: Z
|
|
1300
1308
|
};
|
|
1301
|
-
}),
|
|
1302
|
-
display:
|
|
1303
|
-
})),
|
|
1304
|
-
const
|
|
1309
|
+
}), _ = t(() => h.value.disabled), f = t(() => ({
|
|
1310
|
+
display: h.value.display
|
|
1311
|
+
})), r = t(() => {
|
|
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
|
-
}),
|
|
1317
|
-
|
|
1324
|
+
}), k = t(() => h.value.font), a = t(() => h.value.textColor), o = t(() => h.value.textHoverColor), H = t(() => h.value.buttonHoverColor), d = () => {
|
|
1325
|
+
s("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:
|
|
1323
|
-
onClick:
|
|
1329
|
+
class: X(["nb-wrapper", _.value]),
|
|
1330
|
+
style: w([f.value]),
|
|
1331
|
+
onClick: d
|
|
1324
1332
|
}, [
|
|
1325
|
-
|
|
1333
|
+
R("div", {
|
|
1326
1334
|
id: e.nbId,
|
|
1327
1335
|
class: X(["nb-reset", "component"]),
|
|
1328
|
-
style:
|
|
1336
|
+
style: w([r.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"]]), ee = {
|
|
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
|
-
for (const
|
|
1356
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1357
|
-
const B =
|
|
1363
|
+
for (const s in ee)
|
|
1364
|
+
if (Object.prototype.hasOwnProperty.call(ee, s)) {
|
|
1365
|
+
const B = ee[s];
|
|
1358
1366
|
e.component(B.name, B);
|
|
1359
1367
|
}
|
|
1360
1368
|
}
|