@vlalg-nimbus/nb-buttons 2.0.7 → 2.0.8
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/README.md +51 -51
- package/dist/nb-buttons.js +342 -349
- package/dist/nb-buttons.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/nb-buttons.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
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 Y, renderSlot as A, createTextVNode as P, createCommentVNode as T, unref as ae, withModifiers as de, onMounted as se, ref as ie, watch as ce, pushScopeId as fe, popScopeId as ve } from "vue";
|
|
2
|
+
const G = (e, s) => {
|
|
3
3
|
const w = e.__vccOpts || e;
|
|
4
|
-
for (const [V
|
|
5
|
-
w[
|
|
4
|
+
for (const [$, V] of s)
|
|
5
|
+
w[$] = V;
|
|
6
6
|
return w;
|
|
7
|
-
},
|
|
7
|
+
}, be = ["id"], pe = { class: "component-content__text" }, ye = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbButtonVavaGame",
|
|
9
9
|
inheritAttrs: !1
|
|
10
10
|
}, {
|
|
@@ -93,52 +93,51 @@ const q = (e, s) => {
|
|
|
93
93
|
},
|
|
94
94
|
emits: ["clicked"],
|
|
95
95
|
setup(e, { emit: s }) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
33084168: r.value
|
|
96
|
+
j((c) => ({
|
|
97
|
+
"32e6be5f": n.value,
|
|
98
|
+
"9f7534d6": R.value,
|
|
99
|
+
"0ebea8a7": W.value,
|
|
100
|
+
"4de13b94": X.value,
|
|
101
|
+
"4e9ec21e": r.value
|
|
103
102
|
}));
|
|
104
|
-
const {
|
|
103
|
+
const w = s, $ = e, {
|
|
105
104
|
display: V,
|
|
106
|
-
textColor:
|
|
105
|
+
textColor: g,
|
|
107
106
|
textColorHover: m,
|
|
108
|
-
buttonColor:
|
|
109
|
-
buttonColorHover:
|
|
107
|
+
buttonColor: b,
|
|
108
|
+
buttonColorHover: p,
|
|
110
109
|
uppercase: _,
|
|
111
|
-
paddingXContent:
|
|
110
|
+
paddingXContent: y,
|
|
112
111
|
paddingYContent: x,
|
|
113
112
|
paddingXBorder: C,
|
|
114
113
|
paddingYBorder: f,
|
|
115
114
|
borderColor: i,
|
|
116
115
|
borderOpacity: u,
|
|
117
116
|
disabled: v,
|
|
118
|
-
fontFamily:
|
|
117
|
+
fontFamily: H,
|
|
119
118
|
fontSize: B,
|
|
120
119
|
fontWeight: h
|
|
121
|
-
} =
|
|
122
|
-
const c = v.value ? "component-disabled" : "",
|
|
120
|
+
} = q($), 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, oe = !x.value || x.value < 0 ? 0.5 : x.value, le = _.value ? "uppercase" : "none", ne = H.value ? H.value : "'Lato', sans-serif", ue = B.value ? B.value : "1.6em", re = !h.value || h.value < 0 ? 100 : h.value;
|
|
123
122
|
return {
|
|
124
123
|
disabled: c,
|
|
125
|
-
display:
|
|
126
|
-
textColor:
|
|
127
|
-
buttonColor:
|
|
128
|
-
textColorHover:
|
|
129
|
-
buttonColorHover:
|
|
130
|
-
borderColor:
|
|
131
|
-
borderOpacity:
|
|
132
|
-
paddingXBorder:
|
|
133
|
-
paddingYBorder:
|
|
134
|
-
paddingXContent:
|
|
135
|
-
paddingYContent:
|
|
136
|
-
uppercase:
|
|
137
|
-
font:
|
|
138
|
-
fontSize:
|
|
139
|
-
fontWeight:
|
|
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: oe,
|
|
135
|
+
uppercase: le,
|
|
136
|
+
font: ne,
|
|
137
|
+
fontSize: ue,
|
|
138
|
+
fontWeight: re
|
|
140
139
|
};
|
|
141
|
-
}), o = t(() => S.value.disabled),
|
|
140
|
+
}), o = t(() => S.value.disabled), k = t(() => ({
|
|
142
141
|
display: S.value.display
|
|
143
142
|
})), d = t(() => {
|
|
144
143
|
const c = S.value;
|
|
@@ -156,39 +155,39 @@ const q = (e, s) => {
|
|
|
156
155
|
};
|
|
157
156
|
}), a = t(() => ({
|
|
158
157
|
backgroundColor: S.value.buttonColorHover
|
|
159
|
-
})), n = t(() => S.value.font),
|
|
160
|
-
|
|
158
|
+
})), n = t(() => S.value.font), X = t(() => S.value.borderColor), r = t(() => S.value.borderOpacity), R = t(() => S.value.textColor), W = t(() => S.value.textColorHover), I = () => {
|
|
159
|
+
w("clicked");
|
|
161
160
|
};
|
|
162
|
-
return (c,
|
|
161
|
+
return (c, D) => e.nbId ? (O(), L("div", {
|
|
163
162
|
key: 0,
|
|
164
|
-
class:
|
|
165
|
-
style: N([
|
|
166
|
-
onClick:
|
|
163
|
+
class: z(["nb-wrapper", o.value]),
|
|
164
|
+
style: N([k.value]),
|
|
165
|
+
onClick: I
|
|
167
166
|
}, [
|
|
168
|
-
|
|
167
|
+
Y("div", {
|
|
169
168
|
id: e.nbId,
|
|
170
|
-
class:
|
|
169
|
+
class: z(["nb-reset", "component"]),
|
|
171
170
|
style: N([d.value])
|
|
172
171
|
}, [
|
|
173
|
-
|
|
172
|
+
Y("div", {
|
|
174
173
|
class: "component-content",
|
|
175
174
|
style: N([l.value])
|
|
176
175
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
Y("span", pe, [
|
|
177
|
+
A(c.$slots, "content", {}, () => [
|
|
178
|
+
P("Default Text")
|
|
180
179
|
], !0)
|
|
181
180
|
]),
|
|
182
|
-
|
|
181
|
+
Y("span", {
|
|
183
182
|
class: "component-content__mask",
|
|
184
183
|
style: N([a.value])
|
|
185
184
|
}, null, 4)
|
|
186
185
|
], 4)
|
|
187
|
-
], 12,
|
|
188
|
-
], 6)) :
|
|
186
|
+
], 12, be)
|
|
187
|
+
], 6)) : T("", !0);
|
|
189
188
|
}
|
|
190
|
-
}),
|
|
191
|
-
const
|
|
189
|
+
}), ge = /* @__PURE__ */ G(ye, [["__scopeId", "data-v-2854e208"]]);
|
|
190
|
+
const me = ["id"], Ve = /* @__PURE__ */ Object.assign({
|
|
192
191
|
name: "NbButtonShowHover",
|
|
193
192
|
inheritAttrs: !1
|
|
194
193
|
}, {
|
|
@@ -255,42 +254,41 @@ const ge = ["id"], me = /* @__PURE__ */ Object.assign({
|
|
|
255
254
|
},
|
|
256
255
|
emits: ["clicked"],
|
|
257
256
|
setup(e, { emit: s }) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
b18900c8: te(V)
|
|
257
|
+
j((d) => ({
|
|
258
|
+
ae2466b6: o.value,
|
|
259
|
+
"4cd64222": h.value,
|
|
260
|
+
"54f7cb8a": S.value,
|
|
261
|
+
"72e3e97c": e.textColorHover,
|
|
262
|
+
"3b3633a0": ae(V)
|
|
265
263
|
}));
|
|
266
|
-
const {
|
|
264
|
+
const w = s, $ = e, {
|
|
267
265
|
textColor: V,
|
|
268
|
-
buttonColorHover:
|
|
266
|
+
buttonColorHover: g,
|
|
269
267
|
buttonColorOpacityHover: m,
|
|
270
|
-
paddingX:
|
|
271
|
-
paddingY:
|
|
268
|
+
paddingX: b,
|
|
269
|
+
paddingY: p,
|
|
272
270
|
disabled: _,
|
|
273
|
-
borderRadius:
|
|
271
|
+
borderRadius: y,
|
|
274
272
|
verticalAlign: x,
|
|
275
273
|
fontFamily: C,
|
|
276
274
|
fontSize: f,
|
|
277
275
|
fontWeight: i
|
|
278
|
-
} =
|
|
279
|
-
const d = _.value ? "component-disabled" : "", l = x.value ? x.value : "middle", a = V ? V.value : "ffffff", n = !
|
|
276
|
+
} = q($), u = t(() => {
|
|
277
|
+
const d = _.value ? "component-disabled" : "", l = x.value ? x.value : "middle", a = V ? V.value : "ffffff", n = !b.value || b.value < 0 ? 1 : b.value, X = !p.value || p.value < 0 ? 0.2 : p.value, r = !y.value || y.value < 0 ? 0 : y.value, R = 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;
|
|
280
278
|
return {
|
|
281
279
|
disabled: d,
|
|
282
280
|
borderRadius: r,
|
|
283
281
|
textColor: a,
|
|
284
282
|
paddingX: n,
|
|
285
|
-
paddingY:
|
|
286
|
-
buttonColorHover:
|
|
287
|
-
buttonColorOpacityHover:
|
|
288
|
-
font:
|
|
283
|
+
paddingY: X,
|
|
284
|
+
buttonColorHover: R,
|
|
285
|
+
buttonColorOpacityHover: W,
|
|
286
|
+
font: I,
|
|
289
287
|
fontSize: c,
|
|
290
|
-
fontWeight:
|
|
288
|
+
fontWeight: D,
|
|
291
289
|
verticalAlign: l
|
|
292
290
|
};
|
|
293
|
-
}), v = t(() => u.value.disabled),
|
|
291
|
+
}), v = t(() => u.value.disabled), H = t(() => ({
|
|
294
292
|
verticalAlign: u.value.verticalAlign
|
|
295
293
|
})), B = t(() => {
|
|
296
294
|
const d = u.value;
|
|
@@ -307,30 +305,30 @@ const ge = ["id"], me = /* @__PURE__ */ Object.assign({
|
|
|
307
305
|
}), S = t(() => {
|
|
308
306
|
const d = u.value;
|
|
309
307
|
return `rgba(${d.buttonColorHover}, ${d.buttonColorOpacityHover})`;
|
|
310
|
-
}), o = t(() => u.value.font),
|
|
311
|
-
|
|
308
|
+
}), o = t(() => u.value.font), k = () => {
|
|
309
|
+
w("clicked");
|
|
312
310
|
};
|
|
313
|
-
return (d, l) => e.nbId ? (
|
|
311
|
+
return (d, l) => e.nbId ? (O(), L("div", {
|
|
314
312
|
key: 0,
|
|
315
|
-
class:
|
|
316
|
-
style: N([
|
|
317
|
-
onClick:
|
|
313
|
+
class: z(["nb-wrapper", v.value]),
|
|
314
|
+
style: N([H.value]),
|
|
315
|
+
onClick: k
|
|
318
316
|
}, [
|
|
319
|
-
|
|
317
|
+
Y("a", {
|
|
320
318
|
id: e.nbId,
|
|
321
319
|
class: "nb-reset component tertiary",
|
|
322
320
|
style: N([B.value]),
|
|
323
|
-
onClick: l[0] || (l[0] =
|
|
321
|
+
onClick: l[0] || (l[0] = de(() => {
|
|
324
322
|
}, ["prevent"]))
|
|
325
323
|
}, [
|
|
326
|
-
|
|
327
|
-
|
|
324
|
+
A(d.$slots, "content", {}, () => [
|
|
325
|
+
P("Default Text")
|
|
328
326
|
], !0)
|
|
329
|
-
], 12,
|
|
330
|
-
], 6)) :
|
|
327
|
+
], 12, me)
|
|
328
|
+
], 6)) : T("", !0);
|
|
331
329
|
}
|
|
332
|
-
}),
|
|
333
|
-
const
|
|
330
|
+
}), Ce = /* @__PURE__ */ G(Ve, [["__scopeId", "data-v-ac926913"]]);
|
|
331
|
+
const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
|
|
334
332
|
name: "NbButtonPrevNext",
|
|
335
333
|
inheritAttrs: !1
|
|
336
334
|
}, {
|
|
@@ -418,39 +416,38 @@ const Ce = ["id"], Se = /* @__PURE__ */ Object.assign({
|
|
|
418
416
|
},
|
|
419
417
|
emits: ["clicked"],
|
|
420
418
|
setup(e, { emit: s }) {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
"
|
|
424
|
-
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"1af3ef9e": e.textColorHover
|
|
419
|
+
j((l) => ({
|
|
420
|
+
ac33d4c4: k.value,
|
|
421
|
+
"30fb3b6e": e.colorPrimary,
|
|
422
|
+
c9dcc372: e.textColor,
|
|
423
|
+
"1c2cf3e0": e.colorSecondary,
|
|
424
|
+
"7ad7e196": e.textColorHover
|
|
428
425
|
}));
|
|
429
|
-
const {
|
|
426
|
+
const w = s, $ = e, {
|
|
430
427
|
paddingX: V,
|
|
431
|
-
paddingY:
|
|
428
|
+
paddingY: g,
|
|
432
429
|
marginBetween: m,
|
|
433
|
-
borderRadius:
|
|
434
|
-
disabled:
|
|
430
|
+
borderRadius: b,
|
|
431
|
+
disabled: p,
|
|
435
432
|
disabledPreview: _,
|
|
436
|
-
disabledNext:
|
|
433
|
+
disabledNext: y,
|
|
437
434
|
fontFamily: x,
|
|
438
435
|
fontSize: C,
|
|
439
436
|
fontWeight: f
|
|
440
|
-
} =
|
|
441
|
-
const l =
|
|
437
|
+
} = q($), i = t(() => {
|
|
438
|
+
const l = p.value ? "component-disabled" : "", a = _.value ? "component-disabled" : "", n = y.value ? "component-disabled" : "", X = !m.value || m.value < 0 ? 0 : m.value, r = !b.value || b.value < 0 ? 0 : b.value, R = !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;
|
|
442
439
|
return {
|
|
443
440
|
disabled: l,
|
|
444
441
|
disabledPreview: a,
|
|
445
442
|
disabledNext: n,
|
|
446
|
-
marginBetween: `${
|
|
443
|
+
marginBetween: `${X}px`,
|
|
447
444
|
borderRadius: `${r}px`,
|
|
448
|
-
paddingX: `${
|
|
449
|
-
paddingY: `${
|
|
450
|
-
fontSize:
|
|
445
|
+
paddingX: `${R}px`,
|
|
446
|
+
paddingY: `${W}px`,
|
|
447
|
+
fontSize: I,
|
|
451
448
|
fontWeight: c
|
|
452
449
|
};
|
|
453
|
-
}), u = t(() => i.value.disabled), v = t(() => i.value.disabledPreview),
|
|
450
|
+
}), u = t(() => i.value.disabled), v = t(() => i.value.disabledPreview), H = t(() => i.value.disabledNext), B = t(() => ({
|
|
454
451
|
display: i.value.display
|
|
455
452
|
})), h = t(() => {
|
|
456
453
|
const l = i.value;
|
|
@@ -472,44 +469,44 @@ const Ce = ["id"], Se = /* @__PURE__ */ Object.assign({
|
|
|
472
469
|
marginLeft: l.marginBetween,
|
|
473
470
|
padding: `${l.paddingX} ${l.paddingY}`
|
|
474
471
|
};
|
|
475
|
-
}),
|
|
476
|
-
|
|
472
|
+
}), k = t(() => `'${x.value ? x.value : "'Lato', sans-serif"}'`), d = (l) => {
|
|
473
|
+
w("clicked", l);
|
|
477
474
|
};
|
|
478
|
-
return (l, a) => e.nbId ? (
|
|
475
|
+
return (l, a) => e.nbId ? (O(), L("div", {
|
|
479
476
|
key: 0,
|
|
480
|
-
class:
|
|
477
|
+
class: z(["nb-wrapper", u.value]),
|
|
481
478
|
style: N([B.value])
|
|
482
479
|
}, [
|
|
483
|
-
|
|
480
|
+
Y("div", {
|
|
484
481
|
id: e.nbId,
|
|
485
|
-
class:
|
|
482
|
+
class: z(["nb-reset", "component"]),
|
|
486
483
|
style: N(h.value)
|
|
487
484
|
}, [
|
|
488
|
-
e.showPreview ? (
|
|
485
|
+
e.showPreview ? (O(), L("div", {
|
|
489
486
|
key: 0,
|
|
490
487
|
onClick: a[0] || (a[0] = (n) => d("preview")),
|
|
491
|
-
class:
|
|
488
|
+
class: z(["buttonNextPreview buttonPreview", v.value]),
|
|
492
489
|
style: N(S.value)
|
|
493
490
|
}, [
|
|
494
|
-
|
|
495
|
-
|
|
491
|
+
A(l.$slots, "prev", {}, () => [
|
|
492
|
+
P("← Preview")
|
|
496
493
|
], !0)
|
|
497
|
-
], 6)) :
|
|
498
|
-
e.showNext ? (
|
|
494
|
+
], 6)) : T("", !0),
|
|
495
|
+
e.showNext ? (O(), L("div", {
|
|
499
496
|
key: 1,
|
|
500
497
|
onClick: a[1] || (a[1] = (n) => d("next")),
|
|
501
|
-
class:
|
|
498
|
+
class: z(["buttonNextPreview buttonNext", H.value]),
|
|
502
499
|
style: N(o.value)
|
|
503
500
|
}, [
|
|
504
|
-
|
|
505
|
-
|
|
501
|
+
A(l.$slots, "next", {}, () => [
|
|
502
|
+
P("Next →")
|
|
506
503
|
], !0)
|
|
507
|
-
], 6)) :
|
|
508
|
-
], 12,
|
|
509
|
-
], 6)) :
|
|
504
|
+
], 6)) : T("", !0)
|
|
505
|
+
], 12, Se)
|
|
506
|
+
], 6)) : T("", !0);
|
|
510
507
|
}
|
|
511
|
-
}),
|
|
512
|
-
const
|
|
508
|
+
}), xe = /* @__PURE__ */ G(_e, [["__scopeId", "data-v-bce0a1da"]]);
|
|
509
|
+
const he = ["id"], Ne = /* @__PURE__ */ Object.assign({
|
|
513
510
|
name: "NbButtonMechanical",
|
|
514
511
|
inheritAttrs: !1
|
|
515
512
|
}, {
|
|
@@ -579,43 +576,42 @@ const xe = ["id"], he = /* @__PURE__ */ Object.assign({
|
|
|
579
576
|
},
|
|
580
577
|
emits: ["clicked"],
|
|
581
578
|
setup(e, { emit: s }) {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
"
|
|
585
|
-
"
|
|
586
|
-
"
|
|
587
|
-
"3eb45b5e": H.value
|
|
579
|
+
j((a) => ({
|
|
580
|
+
"4b1889ee": o.value,
|
|
581
|
+
"7fe81952": ae(g),
|
|
582
|
+
"5683f09a": d.value,
|
|
583
|
+
"58a615bf": k.value
|
|
588
584
|
}));
|
|
589
|
-
const {
|
|
585
|
+
const w = s, $ = e, {
|
|
590
586
|
display: V,
|
|
591
|
-
buttonColor:
|
|
587
|
+
buttonColor: g,
|
|
592
588
|
textColor: m,
|
|
593
|
-
containerColor:
|
|
594
|
-
paddingX:
|
|
589
|
+
containerColor: b,
|
|
590
|
+
paddingX: p,
|
|
595
591
|
paddingY: _,
|
|
596
|
-
borderRadius:
|
|
592
|
+
borderRadius: y,
|
|
597
593
|
disabled: x,
|
|
598
594
|
animationSlow: C,
|
|
599
595
|
fontFamily: f,
|
|
600
596
|
fontSize: i,
|
|
601
597
|
fontWeight: u
|
|
602
|
-
} =
|
|
603
|
-
const a = x.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block",
|
|
598
|
+
} = q($), v = t(() => {
|
|
599
|
+
const a = x.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block", X = b.value ? b.value : "#ffffff", r = g.value ? g.value : "#bbbbbb", R = m.value ? m.value : "#ffffff", W = !p.value || p.value < 0 ? 1 : p.value, I = !_.value || _.value < 0 ? 0.2 : _.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;
|
|
604
600
|
return {
|
|
605
601
|
disabled: a,
|
|
606
602
|
display: n,
|
|
607
|
-
containerColor:
|
|
603
|
+
containerColor: X,
|
|
608
604
|
buttonColor: r,
|
|
609
|
-
textColor:
|
|
610
|
-
paddingX:
|
|
611
|
-
paddingY:
|
|
605
|
+
textColor: R,
|
|
606
|
+
paddingX: W,
|
|
607
|
+
paddingY: I,
|
|
612
608
|
borderRadius: c,
|
|
613
|
-
animationSlow:
|
|
614
|
-
font:
|
|
615
|
-
fontSize:
|
|
616
|
-
fontWeight:
|
|
609
|
+
animationSlow: D,
|
|
610
|
+
font: F,
|
|
611
|
+
fontSize: M,
|
|
612
|
+
fontWeight: E
|
|
617
613
|
};
|
|
618
|
-
}),
|
|
614
|
+
}), H = t(() => v.value.disabled), B = t(() => ({
|
|
619
615
|
display: v.value.display
|
|
620
616
|
})), h = t(() => {
|
|
621
617
|
const a = v.value;
|
|
@@ -628,28 +624,28 @@ const xe = ["id"], he = /* @__PURE__ */ Object.assign({
|
|
|
628
624
|
fontSize: a.fontSize,
|
|
629
625
|
fontWeight: a.fontWeight
|
|
630
626
|
};
|
|
631
|
-
}), S = t(() => v.value.animationSlow), o = t(() => v.value.font),
|
|
632
|
-
|
|
627
|
+
}), S = t(() => v.value.animationSlow), o = t(() => v.value.font), k = t(() => v.value.textColor), d = t(() => v.value.buttonColor), l = () => {
|
|
628
|
+
w("clicked");
|
|
633
629
|
};
|
|
634
|
-
return (a, n) => e.nbId ? (
|
|
630
|
+
return (a, n) => e.nbId ? (O(), L("div", {
|
|
635
631
|
key: 0,
|
|
636
|
-
class:
|
|
632
|
+
class: z(["nb-wrapper", H.value]),
|
|
637
633
|
style: N([B.value]),
|
|
638
634
|
onClick: l
|
|
639
635
|
}, [
|
|
640
|
-
|
|
636
|
+
Y("div", {
|
|
641
637
|
id: e.nbId,
|
|
642
|
-
class:
|
|
638
|
+
class: z(["nb-reset", "component", "component-transition", S.value]),
|
|
643
639
|
style: N([h.value])
|
|
644
640
|
}, [
|
|
645
|
-
|
|
646
|
-
|
|
641
|
+
A(a.$slots, "content", {}, () => [
|
|
642
|
+
P("Default Text")
|
|
647
643
|
], !0)
|
|
648
|
-
], 14,
|
|
649
|
-
], 6)) :
|
|
644
|
+
], 14, he)
|
|
645
|
+
], 6)) : T("", !0);
|
|
650
646
|
}
|
|
651
|
-
}),
|
|
652
|
-
const
|
|
647
|
+
}), we = /* @__PURE__ */ G(Ne, [["__scopeId", "data-v-5cadef2d"]]);
|
|
648
|
+
const Be = ["id"], $e = /* @__PURE__ */ Object.assign({
|
|
653
649
|
name: "NbButtonMechanical2",
|
|
654
650
|
inheritAttrs: !1
|
|
655
651
|
}, {
|
|
@@ -715,38 +711,37 @@ const we = ["id"], Be = /* @__PURE__ */ Object.assign({
|
|
|
715
711
|
},
|
|
716
712
|
emits: ["clicked"],
|
|
717
713
|
setup(e, { emit: s }) {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
"143d0975": h.value
|
|
714
|
+
j((o) => ({
|
|
715
|
+
"7ab7e502": h.value
|
|
721
716
|
}));
|
|
722
|
-
const {
|
|
717
|
+
const w = s, $ = e, {
|
|
723
718
|
display: V,
|
|
724
|
-
buttonColor:
|
|
719
|
+
buttonColor: g,
|
|
725
720
|
textColor: m,
|
|
726
|
-
paddingX:
|
|
727
|
-
paddingY:
|
|
721
|
+
paddingX: b,
|
|
722
|
+
paddingY: p,
|
|
728
723
|
borderRadius: _,
|
|
729
|
-
shadowColor:
|
|
724
|
+
shadowColor: y,
|
|
730
725
|
disabled: x,
|
|
731
726
|
fontFamily: C,
|
|
732
727
|
fontSize: f,
|
|
733
728
|
fontWeight: i
|
|
734
|
-
} =
|
|
735
|
-
const o = x.value ? "component-disabled" : "",
|
|
729
|
+
} = q($), u = t(() => {
|
|
730
|
+
const o = x.value ? "component-disabled" : "", k = V.value !== "b" ? "inline-block" : "block", d = g.value ? g.value : "#bbbbbb", l = y.value ? y.value : "#002f3c", a = m.value ? m.value : "#ffffff", n = !b.value || b.value < 0 ? 1 : b.value, X = !p.value || p.value < 0 ? 1 : p.value, r = !_.value || _.value < 0 ? 0 : _.value, R = C.value ? C.value : "'Lato', sans-serif", W = f.value ? f.value : "1.6em", I = !i.value || i.value < 0 ? 100 : i.value;
|
|
736
731
|
return {
|
|
737
732
|
disabled: o,
|
|
738
|
-
display:
|
|
733
|
+
display: k,
|
|
739
734
|
buttonColor: d,
|
|
740
735
|
shadowColor: l,
|
|
741
736
|
textColor: a,
|
|
742
737
|
paddingX: n,
|
|
743
|
-
paddingY:
|
|
738
|
+
paddingY: X,
|
|
744
739
|
borderRadius: r,
|
|
745
|
-
font:
|
|
746
|
-
fontSize:
|
|
747
|
-
fontWeight:
|
|
740
|
+
font: R,
|
|
741
|
+
fontSize: W,
|
|
742
|
+
fontWeight: I
|
|
748
743
|
};
|
|
749
|
-
}), v = t(() => u.value.disabled),
|
|
744
|
+
}), v = t(() => u.value.disabled), H = t(() => ({
|
|
750
745
|
display: u.value.display
|
|
751
746
|
})), B = t(() => {
|
|
752
747
|
const o = u.value;
|
|
@@ -761,27 +756,27 @@ const we = ["id"], Be = /* @__PURE__ */ Object.assign({
|
|
|
761
756
|
fontWeight: o.fontWeight
|
|
762
757
|
};
|
|
763
758
|
}), h = t(() => u.value.font), S = () => {
|
|
764
|
-
|
|
759
|
+
w("clicked");
|
|
765
760
|
};
|
|
766
|
-
return (o,
|
|
761
|
+
return (o, k) => e.nbId ? (O(), L("div", {
|
|
767
762
|
key: 0,
|
|
768
|
-
class:
|
|
769
|
-
style: N([
|
|
763
|
+
class: z(["nb-wrapper", v.value]),
|
|
764
|
+
style: N([H.value]),
|
|
770
765
|
onClick: S
|
|
771
766
|
}, [
|
|
772
|
-
|
|
767
|
+
Y("div", {
|
|
773
768
|
id: e.nbId,
|
|
774
|
-
class:
|
|
769
|
+
class: z(["nb-reset", "component", "component-transition"]),
|
|
775
770
|
style: N([B.value])
|
|
776
771
|
}, [
|
|
777
|
-
|
|
778
|
-
|
|
772
|
+
A(o.$slots, "content", {}, () => [
|
|
773
|
+
P("Default Text")
|
|
779
774
|
], !0)
|
|
780
|
-
], 12,
|
|
781
|
-
], 6)) :
|
|
775
|
+
], 12, Be)
|
|
776
|
+
], 6)) : T("", !0);
|
|
782
777
|
}
|
|
783
|
-
}),
|
|
784
|
-
const
|
|
778
|
+
}), He = /* @__PURE__ */ G($e, [["__scopeId", "data-v-dc73d1b4"]]);
|
|
779
|
+
const ke = ["id"], Ye = /* @__PURE__ */ Object.assign({
|
|
785
780
|
name: "NbButtonHamburger",
|
|
786
781
|
inheritAttrs: !1
|
|
787
782
|
}, {
|
|
@@ -830,32 +825,33 @@ const He = ["id"], ke = /* @__PURE__ */ Object.assign({
|
|
|
830
825
|
},
|
|
831
826
|
emits: ["clicked"],
|
|
832
827
|
setup(e, { emit: s }) {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
"
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
828
|
+
j((o) => ({
|
|
829
|
+
f95b314e: B.value,
|
|
830
|
+
"30593c5a": h.value
|
|
831
|
+
}));
|
|
832
|
+
const w = s, $ = e;
|
|
833
|
+
se(() => {
|
|
834
|
+
V.value = g.value;
|
|
839
835
|
});
|
|
840
|
-
const V =
|
|
841
|
-
status:
|
|
836
|
+
const V = ie(!1), {
|
|
837
|
+
status: g,
|
|
842
838
|
color: m,
|
|
843
|
-
containerColor:
|
|
844
|
-
containerColorHover:
|
|
839
|
+
containerColor: b,
|
|
840
|
+
containerColorHover: p,
|
|
845
841
|
colorHover: _,
|
|
846
|
-
paddingX:
|
|
842
|
+
paddingX: y,
|
|
847
843
|
paddingY: x,
|
|
848
844
|
disabled: C
|
|
849
|
-
} =
|
|
850
|
-
const o = C.value ? "component-disabled" : "",
|
|
845
|
+
} = q($), f = t(() => {
|
|
846
|
+
const o = C.value ? "component-disabled" : "", k = V.value ? "change" : "", d = b.value ? b.value : "#333333", l = m.value ? m.value : "#ffffff", a = !y.value || y.value < 0 ? 3 : y.value, n = !x.value || x.value < 0 ? 3 : x.value, X = p.value ? p.value : "yellow", r = _.value ? _.value : "red";
|
|
851
847
|
return {
|
|
852
848
|
disabled: o,
|
|
853
|
-
buttonStatus:
|
|
849
|
+
buttonStatus: k,
|
|
854
850
|
containerColor: d,
|
|
855
851
|
paddingX: a,
|
|
856
852
|
paddingY: n,
|
|
857
853
|
color: l,
|
|
858
|
-
containerColorHover:
|
|
854
|
+
containerColorHover: X,
|
|
859
855
|
colorHover: r
|
|
860
856
|
};
|
|
861
857
|
}), i = t(() => f.value.disabled), u = t(() => {
|
|
@@ -866,39 +862,39 @@ const He = ["id"], ke = /* @__PURE__ */ Object.assign({
|
|
|
866
862
|
};
|
|
867
863
|
}), v = t(() => ({
|
|
868
864
|
backgroundColor: f.value.color
|
|
869
|
-
})),
|
|
865
|
+
})), H = t(() => f.value.buttonStatus), B = t(() => f.value.containerColorHover), h = t(() => f.value.colorHover), S = () => {
|
|
870
866
|
const o = !V.value;
|
|
871
|
-
V.value = o,
|
|
867
|
+
V.value = o, w("clicked", o);
|
|
872
868
|
};
|
|
873
|
-
return
|
|
874
|
-
V.value =
|
|
875
|
-
}), (o,
|
|
869
|
+
return ce(g, () => {
|
|
870
|
+
V.value = g.value;
|
|
871
|
+
}), (o, k) => e.nbId ? (O(), L("div", {
|
|
876
872
|
key: 0,
|
|
877
|
-
class:
|
|
873
|
+
class: z(["nb-wrapper", i.value]),
|
|
878
874
|
style: N([u.value]),
|
|
879
875
|
onClick: S
|
|
880
876
|
}, [
|
|
881
|
-
|
|
877
|
+
Y("div", {
|
|
882
878
|
id: e.nbId,
|
|
883
|
-
class:
|
|
879
|
+
class: z(["nb-reset", "component", H.value])
|
|
884
880
|
}, [
|
|
885
|
-
|
|
881
|
+
Y("div", {
|
|
886
882
|
class: "component__line-one",
|
|
887
883
|
style: N(v.value)
|
|
888
884
|
}, null, 4),
|
|
889
|
-
|
|
885
|
+
Y("div", {
|
|
890
886
|
class: "component__line-two",
|
|
891
887
|
style: N(v.value)
|
|
892
888
|
}, null, 4),
|
|
893
|
-
|
|
889
|
+
Y("div", {
|
|
894
890
|
class: "component__line-three",
|
|
895
891
|
style: N(v.value)
|
|
896
892
|
}, null, 4)
|
|
897
|
-
], 10,
|
|
898
|
-
], 6)) :
|
|
893
|
+
], 10, ke)
|
|
894
|
+
], 6)) : T("", !0);
|
|
899
895
|
}
|
|
900
|
-
}),
|
|
901
|
-
const
|
|
896
|
+
}), Xe = /* @__PURE__ */ G(Ye, [["__scopeId", "data-v-3ffd1dc9"]]);
|
|
897
|
+
const Re = (e) => (fe("data-v-e1da5764"), e = e(), ve(), e), ze = ["id"], We = /* @__PURE__ */ Re(() => /* @__PURE__ */ Y("div", { class: "component-shadow" }, null, -1)), Ie = /* @__PURE__ */ Object.assign({
|
|
902
898
|
name: "NbButtonColorOutside",
|
|
903
899
|
inheritAttrs: !1
|
|
904
900
|
}, {
|
|
@@ -964,41 +960,40 @@ const Xe = (e) => (ce("data-v-91c3c32d"), e = e(), fe(), e), Re = ["id"], ze = /
|
|
|
964
960
|
},
|
|
965
961
|
emits: ["clicked"],
|
|
966
962
|
setup(e, { emit: s }) {
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
"
|
|
970
|
-
|
|
971
|
-
"
|
|
972
|
-
"58edf536": H.value
|
|
963
|
+
j((a) => ({
|
|
964
|
+
"2ad8890e": o.value,
|
|
965
|
+
"48b2df1f": d.value,
|
|
966
|
+
fda0dac8: S.value,
|
|
967
|
+
"6c58e184": k.value
|
|
973
968
|
}));
|
|
974
|
-
const {
|
|
969
|
+
const w = s, $ = e, {
|
|
975
970
|
display: V,
|
|
976
|
-
buttonColor:
|
|
971
|
+
buttonColor: g,
|
|
977
972
|
borderColor: m,
|
|
978
|
-
textColor:
|
|
979
|
-
paddingX:
|
|
973
|
+
textColor: b,
|
|
974
|
+
paddingX: p,
|
|
980
975
|
paddingY: _,
|
|
981
|
-
borderRadius:
|
|
976
|
+
borderRadius: y,
|
|
982
977
|
disabled: x,
|
|
983
978
|
fontFamily: C,
|
|
984
979
|
fontSize: f,
|
|
985
980
|
fontWeight: i
|
|
986
|
-
} =
|
|
987
|
-
const a = x.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block",
|
|
981
|
+
} = q($), u = t(() => {
|
|
982
|
+
const a = x.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block", X = g.value ? g.value : "#bbbbbb", r = m.value ? m.value : "#ffe54c", R = b.value ? b.value : "#ffffff", W = !p.value || p.value < 0 ? 1 : p.value, I = !_.value || _.value < 0 ? 0.2 : _.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;
|
|
988
983
|
return {
|
|
989
984
|
disabled: a,
|
|
990
985
|
display: n,
|
|
991
|
-
buttonColor:
|
|
986
|
+
buttonColor: X,
|
|
992
987
|
borderColor: r,
|
|
993
|
-
textColor:
|
|
994
|
-
paddingX:
|
|
995
|
-
paddingY:
|
|
988
|
+
textColor: R,
|
|
989
|
+
paddingX: W,
|
|
990
|
+
paddingY: I,
|
|
996
991
|
borderRadius: c,
|
|
997
|
-
font:
|
|
998
|
-
fontSize:
|
|
999
|
-
fontWeight:
|
|
992
|
+
font: D,
|
|
993
|
+
fontSize: F,
|
|
994
|
+
fontWeight: M
|
|
1000
995
|
};
|
|
1001
|
-
}), v = t(() => u.value.disabled),
|
|
996
|
+
}), v = t(() => u.value.disabled), H = t(() => ({
|
|
1002
997
|
display: u.value.display
|
|
1003
998
|
})), B = t(() => {
|
|
1004
999
|
const a = u.value;
|
|
@@ -1014,34 +1009,34 @@ const Xe = (e) => (ce("data-v-91c3c32d"), e = e(), fe(), e), Re = ["id"], ze = /
|
|
|
1014
1009
|
border: `1px solid ${a.borderColor}`,
|
|
1015
1010
|
borderRadius: S.value
|
|
1016
1011
|
};
|
|
1017
|
-
}), S = t(() => `${u.value.borderRadius}rem`), o = t(() => u.value.font),
|
|
1018
|
-
|
|
1012
|
+
}), S = t(() => `${u.value.borderRadius}rem`), o = t(() => u.value.font), k = t(() => u.value.textColor), d = t(() => u.value.buttonColor), l = () => {
|
|
1013
|
+
w("clicked");
|
|
1019
1014
|
};
|
|
1020
|
-
return (a, n) => e.nbId ? (
|
|
1015
|
+
return (a, n) => e.nbId ? (O(), L("div", {
|
|
1021
1016
|
key: 0,
|
|
1022
|
-
class:
|
|
1023
|
-
style: N([
|
|
1017
|
+
class: z(["nb-wrapper", v.value]),
|
|
1018
|
+
style: N([H.value]),
|
|
1024
1019
|
onClick: l
|
|
1025
1020
|
}, [
|
|
1026
|
-
|
|
1021
|
+
Y("div", {
|
|
1027
1022
|
id: e.nbId,
|
|
1028
|
-
class:
|
|
1023
|
+
class: z(["nb-reset", "component"]),
|
|
1029
1024
|
style: N([B.value])
|
|
1030
1025
|
}, [
|
|
1031
|
-
|
|
1026
|
+
Y("div", {
|
|
1032
1027
|
class: "component-content",
|
|
1033
1028
|
style: N([h.value])
|
|
1034
1029
|
}, [
|
|
1035
|
-
|
|
1036
|
-
|
|
1030
|
+
A(a.$slots, "content", {}, () => [
|
|
1031
|
+
P("Default Text")
|
|
1037
1032
|
], !0)
|
|
1038
1033
|
], 4),
|
|
1039
|
-
|
|
1040
|
-
], 12,
|
|
1041
|
-
], 6)) :
|
|
1034
|
+
We
|
|
1035
|
+
], 12, ze)
|
|
1036
|
+
], 6)) : T("", !0);
|
|
1042
1037
|
}
|
|
1043
|
-
}),
|
|
1044
|
-
const
|
|
1038
|
+
}), De = /* @__PURE__ */ G(Ie, [["__scopeId", "data-v-e1da5764"]]);
|
|
1039
|
+
const Oe = ["id"], Le = /* @__PURE__ */ Object.assign({
|
|
1045
1040
|
name: "NbButtonColorHover",
|
|
1046
1041
|
inheritAttrs: !1
|
|
1047
1042
|
}, {
|
|
@@ -1111,44 +1106,43 @@ const De = ["id"], Oe = /* @__PURE__ */ Object.assign({
|
|
|
1111
1106
|
},
|
|
1112
1107
|
emits: ["clicked"],
|
|
1113
1108
|
setup(e, { emit: s }) {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1120
|
-
"7f8991ce": o.value
|
|
1109
|
+
j((n) => ({
|
|
1110
|
+
"1c06a74c": S.value,
|
|
1111
|
+
"32a0706b": d.value,
|
|
1112
|
+
"5114b568": k.value,
|
|
1113
|
+
"4ae6f391": l.value,
|
|
1114
|
+
"0ed255d0": o.value
|
|
1121
1115
|
}));
|
|
1122
|
-
const {
|
|
1116
|
+
const w = s, $ = e, {
|
|
1123
1117
|
display: V,
|
|
1124
|
-
textColor:
|
|
1118
|
+
textColor: g,
|
|
1125
1119
|
paddingX: m,
|
|
1126
|
-
paddingY:
|
|
1127
|
-
borderRadius:
|
|
1120
|
+
paddingY: b,
|
|
1121
|
+
borderRadius: p,
|
|
1128
1122
|
disabled: _,
|
|
1129
|
-
fontFamily:
|
|
1123
|
+
fontFamily: y,
|
|
1130
1124
|
fontSize: x,
|
|
1131
1125
|
fontWeight: C,
|
|
1132
1126
|
textColorHover: f,
|
|
1133
1127
|
buttonColor: i,
|
|
1134
1128
|
buttonColorHover: u
|
|
1135
|
-
} =
|
|
1136
|
-
const n = _.value ? "component-disabled" : "",
|
|
1129
|
+
} = q($), v = t(() => {
|
|
1130
|
+
const n = _.value ? "component-disabled" : "", X = V.value !== "b" ? "inline-block" : "block", r = g ? g.value : "ffffff", R = !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 = x.value ? x.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";
|
|
1137
1131
|
return {
|
|
1138
1132
|
disabled: n,
|
|
1139
|
-
display:
|
|
1133
|
+
display: X,
|
|
1140
1134
|
font: c,
|
|
1141
|
-
fontSize:
|
|
1142
|
-
fontWeight:
|
|
1135
|
+
fontSize: D,
|
|
1136
|
+
fontWeight: F,
|
|
1143
1137
|
textColor: r,
|
|
1144
|
-
paddingX:
|
|
1145
|
-
paddingY:
|
|
1146
|
-
borderRadius:
|
|
1147
|
-
textColorHover:
|
|
1148
|
-
buttonColor:
|
|
1149
|
-
buttonColorHover:
|
|
1138
|
+
paddingX: R,
|
|
1139
|
+
paddingY: W,
|
|
1140
|
+
borderRadius: I,
|
|
1141
|
+
textColorHover: M,
|
|
1142
|
+
buttonColor: E,
|
|
1143
|
+
buttonColorHover: J
|
|
1150
1144
|
};
|
|
1151
|
-
}),
|
|
1145
|
+
}), H = t(() => v.value.disabled), B = t(() => {
|
|
1152
1146
|
const n = v.value;
|
|
1153
1147
|
return {
|
|
1154
1148
|
display: n.display,
|
|
@@ -1163,27 +1157,27 @@ const De = ["id"], Oe = /* @__PURE__ */ Object.assign({
|
|
|
1163
1157
|
fontSize: n.fontSize,
|
|
1164
1158
|
fontWeight: n.fontWeight
|
|
1165
1159
|
};
|
|
1166
|
-
}), S = t(() => v.value.font), o = t(() => v.value.textColor),
|
|
1167
|
-
|
|
1160
|
+
}), S = t(() => v.value.font), o = t(() => v.value.textColor), k = t(() => v.value.textColorHover), d = t(() => v.value.buttonColor), l = t(() => v.value.buttonColorHover), a = () => {
|
|
1161
|
+
w("clicked");
|
|
1168
1162
|
};
|
|
1169
|
-
return (n,
|
|
1170
|
-
class:
|
|
1163
|
+
return (n, X) => (O(), L("div", {
|
|
1164
|
+
class: z(["nb-wrapper", H.value]),
|
|
1171
1165
|
style: N([B.value]),
|
|
1172
1166
|
onClick: a
|
|
1173
1167
|
}, [
|
|
1174
|
-
|
|
1168
|
+
Y("div", {
|
|
1175
1169
|
id: e.nbId,
|
|
1176
1170
|
class: "nb-reset component component-transition",
|
|
1177
1171
|
style: N([h.value])
|
|
1178
1172
|
}, [
|
|
1179
|
-
|
|
1180
|
-
|
|
1173
|
+
A(n.$slots, "content", {}, () => [
|
|
1174
|
+
P("Default Text")
|
|
1181
1175
|
], !0)
|
|
1182
|
-
], 12,
|
|
1176
|
+
], 12, Oe)
|
|
1183
1177
|
], 6));
|
|
1184
1178
|
}
|
|
1185
|
-
}),
|
|
1186
|
-
const
|
|
1179
|
+
}), Te = /* @__PURE__ */ G(Le, [["__scopeId", "data-v-fe69344f"]]);
|
|
1180
|
+
const Ae = ["id"], Pe = { class: "first-child" }, Fe = { class: "last-child" }, Me = /* @__PURE__ */ Object.assign({
|
|
1187
1181
|
name: "NbButtonAlternateText",
|
|
1188
1182
|
inheritAttrs: !1
|
|
1189
1183
|
}, {
|
|
@@ -1267,109 +1261,108 @@ const Te = ["id"], Ae = { class: "first-child" }, Pe = { class: "last-child" },
|
|
|
1267
1261
|
},
|
|
1268
1262
|
emits: ["clicked"],
|
|
1269
1263
|
setup(e, { emit: s }) {
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
"
|
|
1274
|
-
|
|
1275
|
-
"4dcaff7e": n.value
|
|
1264
|
+
j((r) => ({
|
|
1265
|
+
"42e9739f": d.value,
|
|
1266
|
+
"11568ad5": l.value,
|
|
1267
|
+
"03c8d755": a.value,
|
|
1268
|
+
b6290fa0: n.value
|
|
1276
1269
|
}));
|
|
1277
|
-
const {
|
|
1270
|
+
const w = s, $ = e, {
|
|
1278
1271
|
display: V,
|
|
1279
|
-
buttonColor:
|
|
1272
|
+
buttonColor: g,
|
|
1280
1273
|
borderColor: m,
|
|
1281
|
-
buttonHoverColor:
|
|
1282
|
-
showBorder:
|
|
1274
|
+
buttonHoverColor: b,
|
|
1275
|
+
showBorder: p,
|
|
1283
1276
|
borderRadius: _,
|
|
1284
|
-
textColor:
|
|
1277
|
+
textColor: y,
|
|
1285
1278
|
textHoverColor: x,
|
|
1286
1279
|
width: C,
|
|
1287
1280
|
paddingX: f,
|
|
1288
1281
|
paddingY: i,
|
|
1289
1282
|
disabled: u,
|
|
1290
1283
|
fontFamily: v,
|
|
1291
|
-
fontSize:
|
|
1284
|
+
fontSize: H,
|
|
1292
1285
|
fontWeight: B
|
|
1293
|
-
} =
|
|
1294
|
-
const r = u.value ? "component-disabled" : "",
|
|
1286
|
+
} = q($), h = t(() => {
|
|
1287
|
+
const r = u.value ? "component-disabled" : "", R = 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 = !_.value || _.value < 0 ? 0 : _.value, F = [!1, !0].includes(p.value) ? p.value : !0, M = y.value ? y.value : "#ffffff", E = x.value ? x.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 = H.value ? H.value : "1.6em", ee = !B.value || B.value < 0 ? 200 : B.value;
|
|
1295
1288
|
return {
|
|
1296
1289
|
disabled: r,
|
|
1297
|
-
display:
|
|
1298
|
-
buttonColor:
|
|
1299
|
-
buttonHoverColor:
|
|
1290
|
+
display: R,
|
|
1291
|
+
buttonColor: W,
|
|
1292
|
+
buttonHoverColor: I,
|
|
1300
1293
|
borderColor: c,
|
|
1301
|
-
showBorder:
|
|
1302
|
-
borderRadius:
|
|
1303
|
-
textColor:
|
|
1304
|
-
textHoverColor:
|
|
1305
|
-
width:
|
|
1306
|
-
paddingX:
|
|
1307
|
-
paddingY:
|
|
1308
|
-
font:
|
|
1309
|
-
fontSize:
|
|
1310
|
-
fontWeight:
|
|
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
|
|
1311
1304
|
};
|
|
1312
1305
|
}), S = t(() => h.value.disabled), o = t(() => ({
|
|
1313
1306
|
display: h.value.display
|
|
1314
|
-
})),
|
|
1315
|
-
const r = h.value,
|
|
1307
|
+
})), k = t(() => {
|
|
1308
|
+
const r = h.value, R = r.display === "block" ? "auto" : `${r.width}px`;
|
|
1316
1309
|
return {
|
|
1317
1310
|
...r.showBorder ? { border: `1px solid ${r.borderColor}` } : {},
|
|
1318
1311
|
borderRadius: `${r.borderRadius}rem`,
|
|
1319
1312
|
background: r.buttonColor,
|
|
1320
1313
|
minWidth: "33px",
|
|
1321
|
-
width:
|
|
1314
|
+
width: R,
|
|
1322
1315
|
padding: `${r.paddingY}rem ${r.paddingX}rem`,
|
|
1323
1316
|
lineHeight: "1.42857143",
|
|
1324
1317
|
fontSize: r.fontSize,
|
|
1325
1318
|
fontWeight: r.fontWeight
|
|
1326
1319
|
};
|
|
1327
|
-
}), d = t(() => h.value.font), l = t(() => h.value.textColor), a = t(() => h.value.textHoverColor), n = t(() => h.value.buttonHoverColor),
|
|
1328
|
-
|
|
1320
|
+
}), d = t(() => h.value.font), l = t(() => h.value.textColor), a = t(() => h.value.textHoverColor), n = t(() => h.value.buttonHoverColor), X = () => {
|
|
1321
|
+
w("clicked");
|
|
1329
1322
|
};
|
|
1330
|
-
return (r,
|
|
1323
|
+
return (r, R) => e.nbId ? (O(), L("div", {
|
|
1331
1324
|
key: 0,
|
|
1332
|
-
class:
|
|
1325
|
+
class: z(["nb-wrapper", S.value]),
|
|
1333
1326
|
style: N([o.value]),
|
|
1334
|
-
onClick:
|
|
1327
|
+
onClick: X
|
|
1335
1328
|
}, [
|
|
1336
|
-
|
|
1329
|
+
Y("div", {
|
|
1337
1330
|
id: e.nbId,
|
|
1338
|
-
class:
|
|
1339
|
-
style: N([
|
|
1331
|
+
class: z(["nb-reset", "component"]),
|
|
1332
|
+
style: N([k.value])
|
|
1340
1333
|
}, [
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1334
|
+
Y("div", Pe, [
|
|
1335
|
+
A(r.$slots, "content", {}, () => [
|
|
1336
|
+
P("Default Text")
|
|
1344
1337
|
], !0)
|
|
1345
1338
|
]),
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1339
|
+
Y("div", Fe, [
|
|
1340
|
+
A(r.$slots, "content", {}, () => [
|
|
1341
|
+
P("Default Text")
|
|
1349
1342
|
], !0)
|
|
1350
1343
|
])
|
|
1351
|
-
], 12,
|
|
1352
|
-
], 6)) :
|
|
1344
|
+
], 12, Ae)
|
|
1345
|
+
], 6)) : T("", !0);
|
|
1353
1346
|
}
|
|
1354
|
-
}),
|
|
1355
|
-
NbButtonVavaGame:
|
|
1356
|
-
NbButtonShowHover:
|
|
1357
|
-
NbButtonPrevNext:
|
|
1358
|
-
NbButtonMechanical:
|
|
1359
|
-
NbButtonMechanical2:
|
|
1360
|
-
NbButtonHamburger:
|
|
1361
|
-
NbButtonColorOutside:
|
|
1362
|
-
NbButtonColorHover:
|
|
1363
|
-
NbButtonAlternateText:
|
|
1364
|
-
},
|
|
1347
|
+
}), je = /* @__PURE__ */ G(Me, [["__scopeId", "data-v-e5288afa"]]), te = {
|
|
1348
|
+
NbButtonVavaGame: ge,
|
|
1349
|
+
NbButtonShowHover: Ce,
|
|
1350
|
+
NbButtonPrevNext: xe,
|
|
1351
|
+
NbButtonMechanical: we,
|
|
1352
|
+
NbButtonMechanical2: He,
|
|
1353
|
+
NbButtonHamburger: Xe,
|
|
1354
|
+
NbButtonColorOutside: De,
|
|
1355
|
+
NbButtonColorHover: Te,
|
|
1356
|
+
NbButtonAlternateText: je
|
|
1357
|
+
}, Ge = {
|
|
1365
1358
|
install(e) {
|
|
1366
|
-
for (const s in
|
|
1367
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1368
|
-
const w =
|
|
1359
|
+
for (const s in te)
|
|
1360
|
+
if (Object.prototype.hasOwnProperty.call(te, s)) {
|
|
1361
|
+
const w = te[s];
|
|
1369
1362
|
e.component(w.name, w);
|
|
1370
1363
|
}
|
|
1371
1364
|
}
|
|
1372
1365
|
};
|
|
1373
1366
|
export {
|
|
1374
|
-
|
|
1367
|
+
Ge as default
|
|
1375
1368
|
};
|