@vlalg-nimbus/nb-buttons 2.0.3 → 2.0.5
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 +511 -518
- 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,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as F, toRefs as M, computed as t, openBlock as
|
|
2
|
-
const j = (e,
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { useCssVars as F, toRefs as M, computed as t, openBlock as D, createElementBlock as O, normalizeClass as X, normalizeStyle as N, createElementVNode as R, renderSlot as T, createTextVNode as A, createCommentVNode as L, unref as te, withModifiers as re, onMounted as de, ref as se, watch as ie } from "vue";
|
|
2
|
+
const j = (e, s) => {
|
|
3
|
+
const w = e.__vccOpts || e;
|
|
4
|
+
for (const [V, b] of s)
|
|
5
|
+
w[V] = b;
|
|
6
|
+
return w;
|
|
7
|
+
}, ce = ["id"], fe = { class: "component-content__text" }, ve = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbButtonVavaGame",
|
|
9
9
|
inheritAttrs: !1
|
|
10
10
|
}, {
|
|
@@ -18,8 +18,8 @@ const j = (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,103 +92,103 @@ const j = (e, d) => {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
emits: ["clicked"],
|
|
95
|
-
setup(e, { emit:
|
|
96
|
-
const
|
|
97
|
-
F((
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
setup(e, { emit: s }) {
|
|
96
|
+
const w = e;
|
|
97
|
+
F((c) => ({
|
|
98
|
+
"859731ae": n.value,
|
|
99
|
+
"101619df": Y.value,
|
|
100
|
+
"90f5dac6": z.value,
|
|
101
|
+
f0f7a800: k.value,
|
|
102
|
+
33084168: u.value
|
|
103
103
|
}));
|
|
104
104
|
const {
|
|
105
|
-
display:
|
|
105
|
+
display: V,
|
|
106
106
|
textColor: b,
|
|
107
|
-
textColorHover:
|
|
107
|
+
textColorHover: m,
|
|
108
108
|
buttonColor: p,
|
|
109
109
|
buttonColorHover: y,
|
|
110
|
-
uppercase:
|
|
111
|
-
paddingXContent:
|
|
112
|
-
paddingYContent:
|
|
113
|
-
paddingXBorder:
|
|
114
|
-
paddingYBorder:
|
|
115
|
-
borderColor:
|
|
116
|
-
borderOpacity:
|
|
117
|
-
disabled:
|
|
118
|
-
fontFamily:
|
|
119
|
-
fontSize:
|
|
120
|
-
fontWeight:
|
|
121
|
-
} = M(
|
|
122
|
-
const
|
|
110
|
+
uppercase: S,
|
|
111
|
+
paddingXContent: g,
|
|
112
|
+
paddingYContent: h,
|
|
113
|
+
paddingXBorder: C,
|
|
114
|
+
paddingYBorder: f,
|
|
115
|
+
borderColor: i,
|
|
116
|
+
borderOpacity: r,
|
|
117
|
+
disabled: v,
|
|
118
|
+
fontFamily: $,
|
|
119
|
+
fontSize: B,
|
|
120
|
+
fontWeight: x
|
|
121
|
+
} = M(w), _ = t(() => {
|
|
122
|
+
const c = v.value ? "component-disabled" : "", I = V.value !== "b" ? "inline-block" : "block", P = b.value ? b.value : "#ece8e1", q = p.value ? p.value : "green", G = m.value ? m.value : "#ece8e1", E = y.value ? y.value : "cyan", J = i.value ? i.value : "#ffffff", K = !r.value || !(r.value >= 0 && r.value <= 1) ? "0.5" : r.value, Q = !C.value || C.value < 0 ? 0.3 : C.value, U = !f.value || f.value < 0 ? 0.3 : f.value, Z = !g.value || g.value < 0 ? 0.5 : g.value, ae = !h.value || h.value < 0 ? 0.5 : h.value, oe = S.value ? "uppercase" : "none", le = $.value ? $.value : "'Lato', sans-serif", ne = B.value ? B.value : "1.6em", ue = !x.value || x.value < 0 ? 100 : x.value;
|
|
123
123
|
return {
|
|
124
|
-
disabled:
|
|
124
|
+
disabled: c,
|
|
125
125
|
display: I,
|
|
126
|
-
textColor:
|
|
127
|
-
buttonColor:
|
|
128
|
-
textColorHover:
|
|
126
|
+
textColor: P,
|
|
127
|
+
buttonColor: q,
|
|
128
|
+
textColorHover: G,
|
|
129
129
|
buttonColorHover: E,
|
|
130
130
|
borderColor: J,
|
|
131
131
|
borderOpacity: K,
|
|
132
|
-
paddingXBorder:
|
|
133
|
-
paddingYBorder:
|
|
134
|
-
paddingXContent:
|
|
135
|
-
paddingYContent:
|
|
136
|
-
uppercase:
|
|
137
|
-
font:
|
|
138
|
-
fontSize:
|
|
139
|
-
fontWeight:
|
|
132
|
+
paddingXBorder: Q,
|
|
133
|
+
paddingYBorder: U,
|
|
134
|
+
paddingXContent: Z,
|
|
135
|
+
paddingYContent: ae,
|
|
136
|
+
uppercase: oe,
|
|
137
|
+
font: le,
|
|
138
|
+
fontSize: ne,
|
|
139
|
+
fontWeight: ue
|
|
140
140
|
};
|
|
141
|
-
}),
|
|
141
|
+
}), o = t(() => _.value.disabled), H = t(() => ({
|
|
142
142
|
display: _.value.display
|
|
143
|
-
})),
|
|
144
|
-
const
|
|
143
|
+
})), d = t(() => {
|
|
144
|
+
const c = _.value;
|
|
145
145
|
return {
|
|
146
|
-
padding: `${
|
|
147
|
-
fontSize:
|
|
148
|
-
fontWeight:
|
|
146
|
+
padding: `${c.paddingYBorder}rem ${c.paddingXBorder}rem`,
|
|
147
|
+
fontSize: c.fontSize,
|
|
148
|
+
fontWeight: c.fontWeight
|
|
149
149
|
};
|
|
150
150
|
}), a = t(() => {
|
|
151
|
-
const
|
|
151
|
+
const c = _.value;
|
|
152
152
|
return {
|
|
153
|
-
textTransform:
|
|
154
|
-
padding: `${
|
|
155
|
-
backgroundColor:
|
|
153
|
+
textTransform: c.uppercase,
|
|
154
|
+
padding: `${c.paddingYContent}rem ${c.paddingXContent}rem`,
|
|
155
|
+
backgroundColor: c.buttonColor
|
|
156
156
|
};
|
|
157
|
-
}),
|
|
157
|
+
}), l = t(() => ({
|
|
158
158
|
backgroundColor: _.value.buttonColorHover
|
|
159
|
-
})),
|
|
160
|
-
|
|
159
|
+
})), n = t(() => _.value.font), k = t(() => _.value.borderColor), u = t(() => _.value.borderOpacity), Y = t(() => _.value.textColor), z = t(() => _.value.textColorHover), W = () => {
|
|
160
|
+
s("clicked");
|
|
161
161
|
};
|
|
162
|
-
return (
|
|
162
|
+
return (c, I) => e.nbId ? (D(), O("div", {
|
|
163
163
|
key: 0,
|
|
164
|
-
class: X(["nb-wrapper",
|
|
165
|
-
style:
|
|
164
|
+
class: X(["nb-wrapper", o.value]),
|
|
165
|
+
style: N([H.value]),
|
|
166
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: N([d.value])
|
|
172
172
|
}, [
|
|
173
173
|
R("div", {
|
|
174
174
|
class: "component-content",
|
|
175
|
-
style:
|
|
175
|
+
style: N([a.value])
|
|
176
176
|
}, [
|
|
177
|
-
R("span",
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
R("span", fe, [
|
|
178
|
+
T(c.$slots, "content", {}, () => [
|
|
179
|
+
A("Default Text")
|
|
180
180
|
], !0)
|
|
181
181
|
]),
|
|
182
182
|
R("span", {
|
|
183
183
|
class: "component-content__mask",
|
|
184
|
-
style:
|
|
184
|
+
style: N([l.value])
|
|
185
185
|
}, null, 4)
|
|
186
186
|
], 4)
|
|
187
|
-
], 12,
|
|
188
|
-
], 6)) :
|
|
187
|
+
], 12, ce)
|
|
188
|
+
], 6)) : L("", !0);
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
191
|
-
const
|
|
190
|
+
}), be = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-4cddc525"]]);
|
|
191
|
+
const pe = ["id"], ye = /* @__PURE__ */ Object.assign({
|
|
192
192
|
name: "NbButtonShowHover",
|
|
193
193
|
inheritAttrs: !1
|
|
194
194
|
}, {
|
|
@@ -198,10 +198,6 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
|
|
|
198
198
|
type: String,
|
|
199
199
|
required: !0
|
|
200
200
|
},
|
|
201
|
-
text: {
|
|
202
|
-
type: String,
|
|
203
|
-
default: "Default Text"
|
|
204
|
-
},
|
|
205
201
|
textColor: {
|
|
206
202
|
type: String,
|
|
207
203
|
default: "#145deb"
|
|
@@ -258,81 +254,83 @@ const ye = ["id"], ge = /* @__PURE__ */ Object.assign({
|
|
|
258
254
|
}
|
|
259
255
|
},
|
|
260
256
|
emits: ["clicked"],
|
|
261
|
-
setup(e, { emit:
|
|
262
|
-
const
|
|
263
|
-
F((
|
|
264
|
-
|
|
265
|
-
"
|
|
266
|
-
|
|
267
|
-
"
|
|
268
|
-
|
|
257
|
+
setup(e, { emit: s }) {
|
|
258
|
+
const w = e;
|
|
259
|
+
F((d) => ({
|
|
260
|
+
"4b8ff329": o.value,
|
|
261
|
+
"456d13a6": x.value,
|
|
262
|
+
55665737: _.value,
|
|
263
|
+
"6b7abb00": e.textColorHover,
|
|
264
|
+
b18900c8: te(V)
|
|
269
265
|
}));
|
|
270
266
|
const {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
disabled: V,
|
|
267
|
+
textColor: V,
|
|
268
|
+
buttonColorHover: b,
|
|
269
|
+
buttonColorOpacityHover: m,
|
|
270
|
+
paddingX: p,
|
|
271
|
+
paddingY: y,
|
|
272
|
+
disabled: S,
|
|
278
273
|
borderRadius: g,
|
|
279
|
-
verticalAlign:
|
|
280
|
-
fontFamily:
|
|
281
|
-
fontSize:
|
|
282
|
-
fontWeight:
|
|
283
|
-
} = M(
|
|
284
|
-
const
|
|
274
|
+
verticalAlign: h,
|
|
275
|
+
fontFamily: C,
|
|
276
|
+
fontSize: f,
|
|
277
|
+
fontWeight: i
|
|
278
|
+
} = M(w), r = t(() => {
|
|
279
|
+
const d = S.value ? "component-disabled" : "", a = h.value ? h.value : "middle", l = V ? V.value : "ffffff", n = !p.value || p.value < 0 ? 1 : p.value, k = !y.value || y.value < 0 ? 0.2 : y.value, u = !g.value || g.value < 0 ? 0 : g.value, Y = b.value ? b.value : "10, 38, 184", z = !m.value || m.value < 0 ? 0.1 : m.value, W = C.value ? C.value : "'Lato', sans-serif", c = f.value ? f.value : "1.6rem", I = !i.value || i.value < 0 ? 100 : i.value;
|
|
285
280
|
return {
|
|
286
|
-
disabled:
|
|
287
|
-
borderRadius:
|
|
288
|
-
textColor:
|
|
281
|
+
disabled: d,
|
|
282
|
+
borderRadius: u,
|
|
283
|
+
textColor: l,
|
|
289
284
|
paddingX: n,
|
|
290
|
-
paddingY:
|
|
291
|
-
buttonColorHover:
|
|
292
|
-
buttonColorOpacityHover:
|
|
293
|
-
font:
|
|
294
|
-
fontSize:
|
|
295
|
-
fontWeight:
|
|
296
|
-
|
|
297
|
-
verticalAlign: H
|
|
285
|
+
paddingY: k,
|
|
286
|
+
buttonColorHover: Y,
|
|
287
|
+
buttonColorOpacityHover: z,
|
|
288
|
+
font: W,
|
|
289
|
+
fontSize: c,
|
|
290
|
+
fontWeight: I,
|
|
291
|
+
verticalAlign: a
|
|
298
292
|
};
|
|
299
|
-
}),
|
|
300
|
-
verticalAlign:
|
|
301
|
-
})),
|
|
302
|
-
const
|
|
293
|
+
}), v = t(() => r.value.disabled), $ = t(() => ({
|
|
294
|
+
verticalAlign: r.value.verticalAlign
|
|
295
|
+
})), B = t(() => {
|
|
296
|
+
const d = r.value;
|
|
303
297
|
return {
|
|
304
|
-
color:
|
|
305
|
-
padding: `${
|
|
306
|
-
borderRadius: `${
|
|
307
|
-
fontSize:
|
|
308
|
-
fontWeight:
|
|
298
|
+
color: d.textColor,
|
|
299
|
+
padding: `${d.paddingY}rem 0`,
|
|
300
|
+
borderRadius: `${d.borderRadius}rem`,
|
|
301
|
+
fontSize: d.fontSize,
|
|
302
|
+
fontWeight: d.fontWeight
|
|
309
303
|
};
|
|
304
|
+
}), x = t(() => {
|
|
305
|
+
const d = r.value;
|
|
306
|
+
return `${d.paddingY}rem ${d.paddingX}rem`;
|
|
310
307
|
}), _ = t(() => {
|
|
311
|
-
const
|
|
312
|
-
return
|
|
313
|
-
}),
|
|
314
|
-
|
|
315
|
-
return `rgba(${a.buttonColorHover}, ${a.buttonColorOpacityHover})`;
|
|
316
|
-
}), i = t(() => l.value.font), k = () => {
|
|
317
|
-
d("clicked");
|
|
308
|
+
const d = r.value;
|
|
309
|
+
return `rgba(${d.buttonColorHover}, ${d.buttonColorOpacityHover})`;
|
|
310
|
+
}), o = t(() => r.value.font), H = () => {
|
|
311
|
+
s("clicked");
|
|
318
312
|
};
|
|
319
|
-
return (
|
|
313
|
+
return (d, a) => e.nbId ? (D(), O("div", {
|
|
320
314
|
key: 0,
|
|
321
|
-
class: X(["nb-wrapper",
|
|
322
|
-
style:
|
|
323
|
-
onClick:
|
|
315
|
+
class: X(["nb-wrapper", v.value]),
|
|
316
|
+
style: N([$.value]),
|
|
317
|
+
onClick: H
|
|
324
318
|
}, [
|
|
325
319
|
R("a", {
|
|
326
320
|
id: e.nbId,
|
|
327
321
|
class: "nb-reset component tertiary",
|
|
328
|
-
style:
|
|
329
|
-
onClick:
|
|
322
|
+
style: N([B.value]),
|
|
323
|
+
onClick: a[0] || (a[0] = re(() => {
|
|
330
324
|
}, ["prevent"]))
|
|
331
|
-
},
|
|
332
|
-
|
|
325
|
+
}, [
|
|
326
|
+
T(d.$slots, "content", {}, () => [
|
|
327
|
+
A("Default Text")
|
|
328
|
+
], !0)
|
|
329
|
+
], 12, pe)
|
|
330
|
+
], 6)) : L("", !0);
|
|
333
331
|
}
|
|
334
|
-
}),
|
|
335
|
-
const
|
|
332
|
+
}), ge = /* @__PURE__ */ j(ye, [["__scopeId", "data-v-35424129"]]);
|
|
333
|
+
const me = ["id"], Ve = /* @__PURE__ */ Object.assign({
|
|
336
334
|
name: "NbButtonPrevNext",
|
|
337
335
|
inheritAttrs: !1
|
|
338
336
|
}, {
|
|
@@ -419,99 +417,99 @@ const Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
|
|
|
419
417
|
}
|
|
420
418
|
},
|
|
421
419
|
emits: ["clicked"],
|
|
422
|
-
setup(e, { emit:
|
|
423
|
-
const
|
|
420
|
+
setup(e, { emit: s }) {
|
|
421
|
+
const w = e;
|
|
424
422
|
F((a) => ({
|
|
425
|
-
"2446b547":
|
|
423
|
+
"2446b547": H.value,
|
|
426
424
|
a50bbbd2: e.colorPrimary,
|
|
427
425
|
"0f9f603e": e.textColor,
|
|
428
426
|
"748cd449": e.colorSecondary,
|
|
429
427
|
"1af3ef9e": e.textColorHover
|
|
430
428
|
}));
|
|
431
429
|
const {
|
|
432
|
-
paddingX:
|
|
430
|
+
paddingX: V,
|
|
433
431
|
paddingY: b,
|
|
434
|
-
marginBetween:
|
|
432
|
+
marginBetween: m,
|
|
435
433
|
borderRadius: p,
|
|
436
434
|
disabled: y,
|
|
437
|
-
disabledPreview:
|
|
438
|
-
disabledNext:
|
|
439
|
-
fontFamily:
|
|
440
|
-
fontSize:
|
|
441
|
-
fontWeight:
|
|
442
|
-
} = M(
|
|
443
|
-
const a = y.value ? "component-disabled" : "",
|
|
435
|
+
disabledPreview: S,
|
|
436
|
+
disabledNext: g,
|
|
437
|
+
fontFamily: h,
|
|
438
|
+
fontSize: C,
|
|
439
|
+
fontWeight: f
|
|
440
|
+
} = M(w), i = t(() => {
|
|
441
|
+
const a = y.value ? "component-disabled" : "", l = S.value ? "component-disabled" : "", n = g.value ? "component-disabled" : "", k = !m.value || m.value < 0 ? 0 : m.value, u = !p.value || p.value < 0 ? 0 : p.value, Y = !V.value || V.value < 0 ? 1 : V.value, z = !b.value || b.value < 0 ? 10 : b.value, W = C.value ? C.value : "1.6em", c = !f.value || f.value < 0 ? 100 : f.value;
|
|
444
442
|
return {
|
|
445
443
|
disabled: a,
|
|
446
|
-
disabledPreview:
|
|
447
|
-
disabledNext:
|
|
448
|
-
marginBetween: `${
|
|
449
|
-
borderRadius: `${
|
|
444
|
+
disabledPreview: l,
|
|
445
|
+
disabledNext: n,
|
|
446
|
+
marginBetween: `${k}px`,
|
|
447
|
+
borderRadius: `${u}px`,
|
|
450
448
|
paddingX: `${Y}px`,
|
|
451
449
|
paddingY: `${z}px`,
|
|
452
450
|
fontSize: W,
|
|
453
|
-
fontWeight:
|
|
451
|
+
fontWeight: c
|
|
454
452
|
};
|
|
455
|
-
}),
|
|
456
|
-
display:
|
|
457
|
-
})),
|
|
458
|
-
const a =
|
|
453
|
+
}), r = t(() => i.value.disabled), v = t(() => i.value.disabledPreview), $ = t(() => i.value.disabledNext), B = t(() => ({
|
|
454
|
+
display: i.value.display
|
|
455
|
+
})), x = t(() => {
|
|
456
|
+
const a = i.value;
|
|
459
457
|
return {
|
|
460
458
|
fontSize: a.fontSize,
|
|
461
459
|
fontWeight: a.fontWeight
|
|
462
460
|
};
|
|
463
461
|
}), _ = t(() => {
|
|
464
|
-
const a =
|
|
462
|
+
const a = i.value;
|
|
465
463
|
return {
|
|
466
464
|
borderRadius: `${a.borderRadius} 0px 0px ${a.borderRadius}`,
|
|
467
465
|
marginRight: a.marginBetween,
|
|
468
466
|
padding: `${a.paddingX} ${a.paddingY}`
|
|
469
467
|
};
|
|
470
|
-
}),
|
|
471
|
-
const a =
|
|
468
|
+
}), o = t(() => {
|
|
469
|
+
const a = i.value;
|
|
472
470
|
return {
|
|
473
471
|
borderRadius: `0px ${a.borderRadius} ${a.borderRadius} 0px`,
|
|
474
472
|
marginLeft: a.marginBetween,
|
|
475
473
|
padding: `${a.paddingX} ${a.paddingY}`
|
|
476
474
|
};
|
|
477
|
-
}),
|
|
478
|
-
|
|
475
|
+
}), H = t(() => `'${h.value ? h.value : "'Lato', sans-serif"}'`), d = (a) => {
|
|
476
|
+
s("clicked", a);
|
|
479
477
|
};
|
|
480
|
-
return (a,
|
|
478
|
+
return (a, l) => e.nbId ? (D(), O("div", {
|
|
481
479
|
key: 0,
|
|
482
|
-
class: X(["nb-wrapper",
|
|
483
|
-
style:
|
|
480
|
+
class: X(["nb-wrapper", r.value]),
|
|
481
|
+
style: N([B.value])
|
|
484
482
|
}, [
|
|
485
483
|
R("div", {
|
|
486
484
|
id: e.nbId,
|
|
487
485
|
class: X(["nb-reset", "component"]),
|
|
488
|
-
style:
|
|
486
|
+
style: N(x.value)
|
|
489
487
|
}, [
|
|
490
|
-
e.showPreview ? (
|
|
488
|
+
e.showPreview ? (D(), O("div", {
|
|
491
489
|
key: 0,
|
|
492
|
-
onClick:
|
|
493
|
-
class: X(["buttonNextPreview buttonPreview",
|
|
494
|
-
style:
|
|
490
|
+
onClick: l[0] || (l[0] = (n) => d("preview")),
|
|
491
|
+
class: X(["buttonNextPreview buttonPreview", v.value]),
|
|
492
|
+
style: N(_.value)
|
|
495
493
|
}, [
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
T(a.$slots, "prev", {}, () => [
|
|
495
|
+
A("← Preview")
|
|
498
496
|
], !0)
|
|
499
|
-
], 6)) :
|
|
500
|
-
e.showNext ? (
|
|
497
|
+
], 6)) : L("", !0),
|
|
498
|
+
e.showNext ? (D(), O("div", {
|
|
501
499
|
key: 1,
|
|
502
|
-
onClick:
|
|
503
|
-
class: X(["buttonNextPreview buttonNext",
|
|
504
|
-
style:
|
|
500
|
+
onClick: l[1] || (l[1] = (n) => d("next")),
|
|
501
|
+
class: X(["buttonNextPreview buttonNext", $.value]),
|
|
502
|
+
style: N(o.value)
|
|
505
503
|
}, [
|
|
506
|
-
|
|
507
|
-
|
|
504
|
+
T(a.$slots, "next", {}, () => [
|
|
505
|
+
A("Next →")
|
|
508
506
|
], !0)
|
|
509
|
-
], 6)) :
|
|
510
|
-
], 12,
|
|
511
|
-
], 6)) :
|
|
507
|
+
], 6)) : L("", !0)
|
|
508
|
+
], 12, me)
|
|
509
|
+
], 6)) : L("", !0);
|
|
512
510
|
}
|
|
513
|
-
}),
|
|
514
|
-
const Se = ["id"],
|
|
511
|
+
}), Ce = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-f26b5a64"]]);
|
|
512
|
+
const Se = ["id"], xe = /* @__PURE__ */ Object.assign({
|
|
515
513
|
name: "NbButtonMechanical",
|
|
516
514
|
inheritAttrs: !1
|
|
517
515
|
}, {
|
|
@@ -525,8 +523,8 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
|
|
|
525
523
|
type: String,
|
|
526
524
|
default: "b",
|
|
527
525
|
validator: (e = "b") => {
|
|
528
|
-
const
|
|
529
|
-
return ["b", "ib"].includes(
|
|
526
|
+
const s = e ? e.toLowerCase() : "";
|
|
527
|
+
return ["b", "ib"].includes(s);
|
|
530
528
|
}
|
|
531
529
|
},
|
|
532
530
|
textColor: {
|
|
@@ -580,78 +578,78 @@ const Se = ["id"], _e = /* @__PURE__ */ Object.assign({
|
|
|
580
578
|
}
|
|
581
579
|
},
|
|
582
580
|
emits: ["clicked"],
|
|
583
|
-
setup(e, { emit:
|
|
584
|
-
const
|
|
585
|
-
F((
|
|
586
|
-
"196eb3ca":
|
|
587
|
-
"5a845ff6":
|
|
588
|
-
"44f25ea8":
|
|
589
|
-
"3eb45b5e":
|
|
581
|
+
setup(e, { emit: s }) {
|
|
582
|
+
const w = e;
|
|
583
|
+
F((l) => ({
|
|
584
|
+
"196eb3ca": o.value,
|
|
585
|
+
"5a845ff6": te(b),
|
|
586
|
+
"44f25ea8": d.value,
|
|
587
|
+
"3eb45b5e": H.value
|
|
590
588
|
}));
|
|
591
589
|
const {
|
|
592
|
-
display:
|
|
590
|
+
display: V,
|
|
593
591
|
buttonColor: b,
|
|
594
|
-
textColor:
|
|
592
|
+
textColor: m,
|
|
595
593
|
containerColor: p,
|
|
596
594
|
paddingX: y,
|
|
597
|
-
paddingY:
|
|
598
|
-
borderRadius:
|
|
599
|
-
disabled:
|
|
600
|
-
animationSlow:
|
|
601
|
-
fontFamily:
|
|
602
|
-
fontSize:
|
|
603
|
-
fontWeight:
|
|
604
|
-
} = M(
|
|
605
|
-
const
|
|
595
|
+
paddingY: S,
|
|
596
|
+
borderRadius: g,
|
|
597
|
+
disabled: h,
|
|
598
|
+
animationSlow: C,
|
|
599
|
+
fontFamily: f,
|
|
600
|
+
fontSize: i,
|
|
601
|
+
fontWeight: r
|
|
602
|
+
} = M(w), v = t(() => {
|
|
603
|
+
const l = h.value ? "component-disabled" : "", n = V.value !== "b" ? "inline-block" : "block", k = p.value ? p.value : "#ffffff", u = b.value ? b.value : "#bbbbbb", Y = m.value ? m.value : "#ffffff", z = !y.value || y.value < 0 ? 1 : y.value, W = !S.value || S.value < 0 ? 0.2 : S.value, c = !g.value || g.value < 0 ? 0 : g.value, I = C.value ? "" : "component-transition__no-slow", P = f.value ? f.value : "'Lato', sans-serif", q = i.value ? i.value : "1.6em", G = !r.value || r.value < 0 ? 100 : r.value;
|
|
606
604
|
return {
|
|
607
|
-
disabled:
|
|
608
|
-
display:
|
|
609
|
-
containerColor:
|
|
610
|
-
buttonColor:
|
|
605
|
+
disabled: l,
|
|
606
|
+
display: n,
|
|
607
|
+
containerColor: k,
|
|
608
|
+
buttonColor: u,
|
|
611
609
|
textColor: Y,
|
|
612
610
|
paddingX: z,
|
|
613
611
|
paddingY: W,
|
|
614
|
-
borderRadius:
|
|
612
|
+
borderRadius: c,
|
|
615
613
|
animationSlow: I,
|
|
616
|
-
font:
|
|
617
|
-
fontSize:
|
|
618
|
-
fontWeight:
|
|
614
|
+
font: P,
|
|
615
|
+
fontSize: q,
|
|
616
|
+
fontWeight: G
|
|
619
617
|
};
|
|
620
|
-
}),
|
|
621
|
-
display:
|
|
622
|
-
})),
|
|
623
|
-
const
|
|
618
|
+
}), $ = t(() => v.value.disabled), B = t(() => ({
|
|
619
|
+
display: v.value.display
|
|
620
|
+
})), x = t(() => {
|
|
621
|
+
const l = v.value;
|
|
624
622
|
return {
|
|
625
|
-
border: `2px solid ${
|
|
626
|
-
color:
|
|
627
|
-
backgroundColor:
|
|
628
|
-
padding: `${
|
|
629
|
-
borderRadius: `${
|
|
630
|
-
fontSize:
|
|
631
|
-
fontWeight:
|
|
623
|
+
border: `2px solid ${l.containerColor}`,
|
|
624
|
+
color: l.textColor,
|
|
625
|
+
backgroundColor: l.buttonColor,
|
|
626
|
+
padding: `${l.paddingY}rem ${l.paddingX}rem`,
|
|
627
|
+
borderRadius: `${l.borderRadius}rem`,
|
|
628
|
+
fontSize: l.fontSize,
|
|
629
|
+
fontWeight: l.fontWeight
|
|
632
630
|
};
|
|
633
|
-
}), _ = t(() =>
|
|
634
|
-
|
|
631
|
+
}), _ = t(() => v.value.animationSlow), o = t(() => v.value.font), H = t(() => v.value.textColor), d = t(() => v.value.buttonColor), a = () => {
|
|
632
|
+
s("clicked");
|
|
635
633
|
};
|
|
636
|
-
return (
|
|
634
|
+
return (l, n) => e.nbId ? (D(), O("div", {
|
|
637
635
|
key: 0,
|
|
638
|
-
class: X(["nb-wrapper",
|
|
639
|
-
style:
|
|
636
|
+
class: X(["nb-wrapper", $.value]),
|
|
637
|
+
style: N([B.value]),
|
|
640
638
|
onClick: a
|
|
641
639
|
}, [
|
|
642
640
|
R("div", {
|
|
643
641
|
id: e.nbId,
|
|
644
642
|
class: X(["nb-reset", "component", "component-transition", _.value]),
|
|
645
|
-
style:
|
|
643
|
+
style: N([x.value])
|
|
646
644
|
}, [
|
|
647
|
-
|
|
648
|
-
|
|
645
|
+
T(l.$slots, "content", {}, () => [
|
|
646
|
+
A("Default Text")
|
|
649
647
|
], !0)
|
|
650
648
|
], 14, Se)
|
|
651
|
-
], 6)) :
|
|
649
|
+
], 6)) : L("", !0);
|
|
652
650
|
}
|
|
653
|
-
}),
|
|
654
|
-
const
|
|
651
|
+
}), _e = /* @__PURE__ */ j(xe, [["__scopeId", "data-v-11d6e180"]]);
|
|
652
|
+
const he = ["id"], Ne = /* @__PURE__ */ Object.assign({
|
|
655
653
|
name: "NbButtonMechanical2",
|
|
656
654
|
inheritAttrs: !1
|
|
657
655
|
}, {
|
|
@@ -661,16 +659,12 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
|
|
|
661
659
|
type: String,
|
|
662
660
|
required: !0
|
|
663
661
|
},
|
|
664
|
-
text: {
|
|
665
|
-
type: String,
|
|
666
|
-
default: "Default Text"
|
|
667
|
-
},
|
|
668
662
|
display: {
|
|
669
663
|
type: String,
|
|
670
664
|
default: "b",
|
|
671
665
|
validator: (e = "b") => {
|
|
672
|
-
const
|
|
673
|
-
return ["b", "ib"].includes(
|
|
666
|
+
const s = e ? e.toLowerCase() : "";
|
|
667
|
+
return ["b", "ib"].includes(s);
|
|
674
668
|
}
|
|
675
669
|
},
|
|
676
670
|
textColor: {
|
|
@@ -720,71 +714,74 @@ const Ne = ["id"], we = /* @__PURE__ */ Object.assign({
|
|
|
720
714
|
}
|
|
721
715
|
},
|
|
722
716
|
emits: ["clicked"],
|
|
723
|
-
setup(e, { emit:
|
|
724
|
-
const
|
|
725
|
-
F((
|
|
726
|
-
|
|
717
|
+
setup(e, { emit: s }) {
|
|
718
|
+
const w = e;
|
|
719
|
+
F((o) => ({
|
|
720
|
+
"143d0975": x.value
|
|
727
721
|
}));
|
|
728
722
|
const {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
borderRadius: V,
|
|
723
|
+
display: V,
|
|
724
|
+
buttonColor: b,
|
|
725
|
+
textColor: m,
|
|
726
|
+
paddingX: p,
|
|
727
|
+
paddingY: y,
|
|
728
|
+
borderRadius: S,
|
|
736
729
|
shadowColor: g,
|
|
737
|
-
disabled:
|
|
738
|
-
fontFamily:
|
|
739
|
-
fontSize:
|
|
740
|
-
fontWeight:
|
|
741
|
-
} = M(
|
|
742
|
-
const
|
|
730
|
+
disabled: h,
|
|
731
|
+
fontFamily: C,
|
|
732
|
+
fontSize: f,
|
|
733
|
+
fontWeight: i
|
|
734
|
+
} = M(w), r = t(() => {
|
|
735
|
+
const o = h.value ? "component-disabled" : "", H = V.value !== "b" ? "inline-block" : "block", d = b.value ? b.value : "#bbbbbb", a = g.value ? g.value : "#002f3c", l = m.value ? m.value : "#ffffff", n = !p.value || p.value < 0 ? 1 : p.value, k = !y.value || y.value < 0 ? 1 : y.value, u = !S.value || S.value < 0 ? 0 : S.value, Y = C.value ? C.value : "'Lato', sans-serif", z = f.value ? f.value : "1.6em", W = !i.value || i.value < 0 ? 100 : i.value;
|
|
743
736
|
return {
|
|
744
|
-
disabled:
|
|
745
|
-
display:
|
|
746
|
-
buttonColor:
|
|
747
|
-
shadowColor:
|
|
748
|
-
textColor:
|
|
749
|
-
paddingX:
|
|
750
|
-
paddingY:
|
|
751
|
-
borderRadius:
|
|
752
|
-
font:
|
|
753
|
-
fontSize:
|
|
754
|
-
fontWeight:
|
|
737
|
+
disabled: o,
|
|
738
|
+
display: H,
|
|
739
|
+
buttonColor: d,
|
|
740
|
+
shadowColor: a,
|
|
741
|
+
textColor: l,
|
|
742
|
+
paddingX: n,
|
|
743
|
+
paddingY: k,
|
|
744
|
+
borderRadius: u,
|
|
745
|
+
font: Y,
|
|
746
|
+
fontSize: z,
|
|
747
|
+
fontWeight: W
|
|
755
748
|
};
|
|
756
|
-
}),
|
|
757
|
-
display:
|
|
758
|
-
})),
|
|
759
|
-
const
|
|
749
|
+
}), v = t(() => r.value.disabled), $ = t(() => ({
|
|
750
|
+
display: r.value.display
|
|
751
|
+
})), B = t(() => {
|
|
752
|
+
const o = r.value;
|
|
760
753
|
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:
|
|
754
|
+
color: o.textColor,
|
|
755
|
+
backgroundColor: o.buttonColor,
|
|
756
|
+
boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${o.shadowColor}`,
|
|
757
|
+
padding: `${o.paddingY}rem ${o.paddingX}rem`,
|
|
758
|
+
padding: `${o.paddingY}rem ${o.paddingX}rem`,
|
|
759
|
+
borderRadius: `${o.borderRadius}rem`,
|
|
760
|
+
fontSize: o.fontSize,
|
|
761
|
+
fontWeight: o.fontWeight
|
|
769
762
|
};
|
|
770
|
-
}),
|
|
771
|
-
|
|
763
|
+
}), x = t(() => r.value.font), _ = () => {
|
|
764
|
+
s("clicked");
|
|
772
765
|
};
|
|
773
|
-
return (
|
|
766
|
+
return (o, H) => e.nbId ? (D(), O("div", {
|
|
774
767
|
key: 0,
|
|
775
|
-
class: X(["nb-wrapper",
|
|
776
|
-
style:
|
|
777
|
-
onClick:
|
|
768
|
+
class: X(["nb-wrapper", v.value]),
|
|
769
|
+
style: N([$.value]),
|
|
770
|
+
onClick: _
|
|
778
771
|
}, [
|
|
779
772
|
R("div", {
|
|
780
773
|
id: e.nbId,
|
|
781
774
|
class: X(["nb-reset", "component", "component-transition"]),
|
|
782
|
-
style:
|
|
783
|
-
},
|
|
784
|
-
|
|
775
|
+
style: N([B.value])
|
|
776
|
+
}, [
|
|
777
|
+
T(o.$slots, "content", {}, () => [
|
|
778
|
+
A("Default Text")
|
|
779
|
+
], !0)
|
|
780
|
+
], 12, he)
|
|
781
|
+
], 6)) : L("", !0);
|
|
785
782
|
}
|
|
786
|
-
}),
|
|
787
|
-
const
|
|
783
|
+
}), we = /* @__PURE__ */ j(Ne, [["__scopeId", "data-v-f22590f0"]]);
|
|
784
|
+
const Be = ["id"], $e = /* @__PURE__ */ Object.assign({
|
|
788
785
|
name: "NbButtonHamburger",
|
|
789
786
|
inheritAttrs: !1
|
|
790
787
|
}, {
|
|
@@ -832,76 +829,76 @@ const He = ["id"], $e = /* @__PURE__ */ Object.assign({
|
|
|
832
829
|
}
|
|
833
830
|
},
|
|
834
831
|
emits: ["clicked"],
|
|
835
|
-
setup(e, { emit:
|
|
836
|
-
const
|
|
837
|
-
F((
|
|
838
|
-
"4f0c7280":
|
|
839
|
-
"86dec5da":
|
|
840
|
-
})),
|
|
841
|
-
|
|
832
|
+
setup(e, { emit: s }) {
|
|
833
|
+
const w = e;
|
|
834
|
+
F((o) => ({
|
|
835
|
+
"4f0c7280": B.value,
|
|
836
|
+
"86dec5da": x.value
|
|
837
|
+
})), de(() => {
|
|
838
|
+
V.value = b.value;
|
|
842
839
|
});
|
|
843
|
-
const
|
|
840
|
+
const V = se(!1), {
|
|
844
841
|
status: b,
|
|
845
|
-
color:
|
|
842
|
+
color: m,
|
|
846
843
|
containerColor: p,
|
|
847
844
|
containerColorHover: y,
|
|
848
|
-
colorHover:
|
|
849
|
-
paddingX:
|
|
850
|
-
paddingY:
|
|
851
|
-
disabled:
|
|
852
|
-
} = M(
|
|
853
|
-
const
|
|
845
|
+
colorHover: S,
|
|
846
|
+
paddingX: g,
|
|
847
|
+
paddingY: h,
|
|
848
|
+
disabled: C
|
|
849
|
+
} = M(w), f = t(() => {
|
|
850
|
+
const o = C.value ? "component-disabled" : "", H = V.value ? "change" : "", d = p.value ? p.value : "#333333", a = m.value ? m.value : "#ffffff", l = !g.value || g.value < 0 ? 3 : g.value, n = !h.value || h.value < 0 ? 3 : h.value, k = y.value ? y.value : "yellow", u = S.value ? S.value : "red";
|
|
854
851
|
return {
|
|
855
|
-
disabled:
|
|
856
|
-
buttonStatus:
|
|
857
|
-
containerColor:
|
|
858
|
-
paddingX:
|
|
859
|
-
paddingY:
|
|
852
|
+
disabled: o,
|
|
853
|
+
buttonStatus: H,
|
|
854
|
+
containerColor: d,
|
|
855
|
+
paddingX: l,
|
|
856
|
+
paddingY: n,
|
|
860
857
|
color: a,
|
|
861
|
-
containerColorHover:
|
|
862
|
-
colorHover:
|
|
858
|
+
containerColorHover: k,
|
|
859
|
+
colorHover: u
|
|
863
860
|
};
|
|
864
|
-
}),
|
|
865
|
-
const
|
|
861
|
+
}), i = t(() => f.value.disabled), r = t(() => {
|
|
862
|
+
const o = f.value;
|
|
866
863
|
return {
|
|
867
|
-
padding: `${
|
|
868
|
-
backgroundColor:
|
|
864
|
+
padding: `${o.paddingY}px ${o.paddingX}px`,
|
|
865
|
+
backgroundColor: o.containerColor
|
|
869
866
|
};
|
|
870
|
-
}),
|
|
871
|
-
backgroundColor:
|
|
872
|
-
})),
|
|
873
|
-
const
|
|
874
|
-
|
|
867
|
+
}), v = t(() => ({
|
|
868
|
+
backgroundColor: f.value.color
|
|
869
|
+
})), $ = t(() => f.value.buttonStatus), B = t(() => f.value.containerColorHover), x = t(() => f.value.colorHover), _ = () => {
|
|
870
|
+
const o = !V.value;
|
|
871
|
+
V.value = o, s("clicked", o);
|
|
875
872
|
};
|
|
876
|
-
return
|
|
877
|
-
|
|
878
|
-
}), (
|
|
873
|
+
return ie(b, () => {
|
|
874
|
+
V.value = b.value;
|
|
875
|
+
}), (o, H) => e.nbId ? (D(), O("div", {
|
|
879
876
|
key: 0,
|
|
880
|
-
class: X(["nb-wrapper",
|
|
881
|
-
style:
|
|
877
|
+
class: X(["nb-wrapper", i.value]),
|
|
878
|
+
style: N([r.value]),
|
|
882
879
|
onClick: _
|
|
883
880
|
}, [
|
|
884
881
|
R("div", {
|
|
885
882
|
id: e.nbId,
|
|
886
|
-
class: X(["nb-reset", "component",
|
|
883
|
+
class: X(["nb-reset", "component", $.value])
|
|
887
884
|
}, [
|
|
888
885
|
R("div", {
|
|
889
886
|
class: "component__line-one",
|
|
890
|
-
style:
|
|
887
|
+
style: N(v.value)
|
|
891
888
|
}, null, 4),
|
|
892
889
|
R("div", {
|
|
893
890
|
class: "component__line-two",
|
|
894
|
-
style:
|
|
891
|
+
style: N(v.value)
|
|
895
892
|
}, null, 4),
|
|
896
893
|
R("div", {
|
|
897
894
|
class: "component__line-three",
|
|
898
|
-
style:
|
|
895
|
+
style: N(v.value)
|
|
899
896
|
}, null, 4)
|
|
900
|
-
], 10,
|
|
901
|
-
], 6)) :
|
|
897
|
+
], 10, Be)
|
|
898
|
+
], 6)) : L("", !0);
|
|
902
899
|
}
|
|
903
|
-
}),
|
|
904
|
-
const
|
|
900
|
+
}), He = /* @__PURE__ */ j($e, [["__scopeId", "data-v-37573ac0"]]);
|
|
901
|
+
const ke = ["id"], Ye = /* @__PURE__ */ Object.assign({
|
|
905
902
|
name: "NbButtonColorOutside",
|
|
906
903
|
inheritAttrs: !1
|
|
907
904
|
}, {
|
|
@@ -915,14 +912,10 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
|
|
|
915
912
|
type: String,
|
|
916
913
|
default: "b",
|
|
917
914
|
validator: (e = "b") => {
|
|
918
|
-
const
|
|
919
|
-
return ["b", "ib"].includes(
|
|
915
|
+
const s = e ? e.toLowerCase() : "";
|
|
916
|
+
return ["b", "ib"].includes(s);
|
|
920
917
|
}
|
|
921
918
|
},
|
|
922
|
-
text: {
|
|
923
|
-
type: String,
|
|
924
|
-
default: "Default Text"
|
|
925
|
-
},
|
|
926
919
|
textColor: {
|
|
927
920
|
type: String,
|
|
928
921
|
default: "#ffffff"
|
|
@@ -970,73 +963,75 @@ const Ye = ["id"], Xe = /* @__PURE__ */ Object.assign({
|
|
|
970
963
|
}
|
|
971
964
|
},
|
|
972
965
|
emits: ["clicked"],
|
|
973
|
-
setup(e, { emit:
|
|
974
|
-
const
|
|
975
|
-
F((
|
|
976
|
-
|
|
977
|
-
"
|
|
978
|
-
|
|
979
|
-
|
|
966
|
+
setup(e, { emit: s }) {
|
|
967
|
+
const w = e;
|
|
968
|
+
F((a) => ({
|
|
969
|
+
c461ea64: _.value,
|
|
970
|
+
"39967e42": H.value,
|
|
971
|
+
ed566e48: x.value,
|
|
972
|
+
"0d683344": o.value
|
|
980
973
|
}));
|
|
981
974
|
const {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
paddingY: V,
|
|
975
|
+
display: V,
|
|
976
|
+
buttonColor: b,
|
|
977
|
+
borderColor: m,
|
|
978
|
+
textColor: p,
|
|
979
|
+
paddingX: y,
|
|
980
|
+
paddingY: S,
|
|
989
981
|
borderRadius: g,
|
|
990
|
-
disabled:
|
|
991
|
-
fontFamily:
|
|
992
|
-
fontSize:
|
|
993
|
-
fontWeight:
|
|
994
|
-
} = M(
|
|
995
|
-
const
|
|
982
|
+
disabled: h,
|
|
983
|
+
fontFamily: C,
|
|
984
|
+
fontSize: f,
|
|
985
|
+
fontWeight: i
|
|
986
|
+
} = M(w), r = t(() => {
|
|
987
|
+
const a = h.value ? "component-disabled" : "", l = V.value !== "b" ? "inline-block" : "block", n = b.value ? b.value : "#bbbbbb", k = m.value ? m.value : "#ffe54c", u = p.value ? p.value : "#ffffff", Y = !y.value || y.value < 0 ? 1 : y.value, z = !S.value || S.value < 0 ? 0.2 : S.value, W = !g.value || g.value < 0 ? 0 : g.value, c = C.value ? C.value : "'Lato', sans-serif", I = f.value ? f.value : "1.6em", P = !i.value || i.value < 0 ? 200 : i.value;
|
|
996
988
|
return {
|
|
997
|
-
disabled:
|
|
998
|
-
display:
|
|
989
|
+
disabled: a,
|
|
990
|
+
display: l,
|
|
999
991
|
buttonColor: n,
|
|
1000
|
-
borderColor:
|
|
1001
|
-
textColor:
|
|
1002
|
-
paddingX:
|
|
1003
|
-
paddingY:
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
fontSize: O,
|
|
992
|
+
borderColor: k,
|
|
993
|
+
textColor: u,
|
|
994
|
+
paddingX: Y,
|
|
995
|
+
paddingY: z,
|
|
996
|
+
borderRadius: W,
|
|
997
|
+
font: c,
|
|
998
|
+
fontSize: I,
|
|
1008
999
|
fontWeight: P
|
|
1009
1000
|
};
|
|
1010
|
-
}),
|
|
1011
|
-
display:
|
|
1012
|
-
})),
|
|
1013
|
-
const
|
|
1001
|
+
}), v = t(() => r.value.disabled), $ = t(() => ({
|
|
1002
|
+
display: r.value.display
|
|
1003
|
+
})), B = t(() => {
|
|
1004
|
+
const a = r.value;
|
|
1014
1005
|
return {
|
|
1015
|
-
border: `1px solid ${
|
|
1016
|
-
color:
|
|
1017
|
-
padding: `${
|
|
1018
|
-
borderRadius:
|
|
1019
|
-
fontSize:
|
|
1020
|
-
fontWeight:
|
|
1006
|
+
border: `1px solid ${a.borderColor}`,
|
|
1007
|
+
color: a.textColor,
|
|
1008
|
+
padding: `${a.paddingY}rem ${a.paddingX}rem`,
|
|
1009
|
+
borderRadius: x.value,
|
|
1010
|
+
fontSize: a.fontSize,
|
|
1011
|
+
fontWeight: a.fontWeight
|
|
1021
1012
|
};
|
|
1022
|
-
}),
|
|
1023
|
-
|
|
1013
|
+
}), x = t(() => `${r.value.borderRadius}rem`), _ = t(() => r.value.font), o = t(() => r.value.textColor), H = t(() => r.value.buttonColor), d = () => {
|
|
1014
|
+
s("clicked");
|
|
1024
1015
|
};
|
|
1025
|
-
return (
|
|
1016
|
+
return (a, l) => e.nbId ? (D(), O("div", {
|
|
1026
1017
|
key: 0,
|
|
1027
|
-
class: X(["nb-wrapper",
|
|
1028
|
-
style:
|
|
1029
|
-
onClick:
|
|
1018
|
+
class: X(["nb-wrapper", v.value]),
|
|
1019
|
+
style: N([$.value]),
|
|
1020
|
+
onClick: d
|
|
1030
1021
|
}, [
|
|
1031
1022
|
R("div", {
|
|
1032
1023
|
id: e.nbId,
|
|
1033
1024
|
class: X(["nb-reset", "component"]),
|
|
1034
|
-
style:
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1025
|
+
style: N([B.value])
|
|
1026
|
+
}, [
|
|
1027
|
+
T(a.$slots, "content", {}, () => [
|
|
1028
|
+
A("Default Text")
|
|
1029
|
+
], !0)
|
|
1030
|
+
], 12, ke)
|
|
1031
|
+
], 6)) : L("", !0);
|
|
1037
1032
|
}
|
|
1038
|
-
}),
|
|
1039
|
-
const
|
|
1033
|
+
}), Xe = /* @__PURE__ */ j(Ye, [["__scopeId", "data-v-0201e93e"]]);
|
|
1034
|
+
const Re = ["id"], ze = /* @__PURE__ */ Object.assign({
|
|
1040
1035
|
name: "NbButtonColorHover",
|
|
1041
1036
|
inheritAttrs: !1
|
|
1042
1037
|
}, {
|
|
@@ -1046,16 +1041,12 @@ const ze = ["id"], We = /* @__PURE__ */ Object.assign({
|
|
|
1046
1041
|
type: String,
|
|
1047
1042
|
required: !0
|
|
1048
1043
|
},
|
|
1049
|
-
text: {
|
|
1050
|
-
type: String,
|
|
1051
|
-
default: "Default Text"
|
|
1052
|
-
},
|
|
1053
1044
|
display: {
|
|
1054
1045
|
type: String,
|
|
1055
1046
|
default: "b",
|
|
1056
1047
|
validator: (e = "b") => {
|
|
1057
|
-
const
|
|
1058
|
-
return ["b", "ib"].includes(
|
|
1048
|
+
const s = e.toLowerCase();
|
|
1049
|
+
return ["b", "ib"].includes(s);
|
|
1059
1050
|
}
|
|
1060
1051
|
},
|
|
1061
1052
|
textColor: {
|
|
@@ -1109,78 +1100,80 @@ const ze = ["id"], We = /* @__PURE__ */ Object.assign({
|
|
|
1109
1100
|
}
|
|
1110
1101
|
},
|
|
1111
1102
|
emits: ["clicked"],
|
|
1112
|
-
setup(e, { emit:
|
|
1113
|
-
const
|
|
1114
|
-
F((
|
|
1115
|
-
|
|
1116
|
-
"
|
|
1117
|
-
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1103
|
+
setup(e, { emit: s }) {
|
|
1104
|
+
const w = e;
|
|
1105
|
+
F((n) => ({
|
|
1106
|
+
"70b0363a": _.value,
|
|
1107
|
+
"2d562374": d.value,
|
|
1108
|
+
"360329a3": H.value,
|
|
1109
|
+
"3c24be28": a.value,
|
|
1110
|
+
"7f8991ce": o.value
|
|
1120
1111
|
}));
|
|
1121
1112
|
const {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
disabled: V,
|
|
1113
|
+
display: V,
|
|
1114
|
+
textColor: b,
|
|
1115
|
+
paddingX: m,
|
|
1116
|
+
paddingY: p,
|
|
1117
|
+
borderRadius: y,
|
|
1118
|
+
disabled: S,
|
|
1129
1119
|
fontFamily: g,
|
|
1130
|
-
fontSize:
|
|
1131
|
-
fontWeight:
|
|
1132
|
-
textColorHover:
|
|
1133
|
-
buttonColor:
|
|
1134
|
-
buttonColorHover:
|
|
1135
|
-
} = M(
|
|
1136
|
-
const
|
|
1120
|
+
fontSize: h,
|
|
1121
|
+
fontWeight: C,
|
|
1122
|
+
textColorHover: f,
|
|
1123
|
+
buttonColor: i,
|
|
1124
|
+
buttonColorHover: r
|
|
1125
|
+
} = M(w), v = t(() => {
|
|
1126
|
+
const n = S.value ? "component-disabled" : "", k = V.value !== "b" ? "inline-block" : "block", u = b ? b.value : "ffffff", Y = !m.value || m.value < 0 ? 1 : m.value, z = !p.value || p.value < 0 ? 0.2 : p.value, W = !y.value || y.value < 0 ? 0 : y.value, c = g.value ? g.value : "'Lato', sans-serif", I = h.value ? h.value : "1.6rem", P = !C.value || C.value < 0 ? 100 : C.value, q = f.value ? f.value : "#cccccc", G = i.value ? i.value : "#bbbbbb", E = r.value ? r.value : "#959595";
|
|
1137
1127
|
return {
|
|
1138
1128
|
disabled: n,
|
|
1139
|
-
display:
|
|
1140
|
-
font:
|
|
1141
|
-
fontSize:
|
|
1129
|
+
display: k,
|
|
1130
|
+
font: c,
|
|
1131
|
+
fontSize: I,
|
|
1142
1132
|
fontWeight: P,
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
buttonColorHover: K
|
|
1133
|
+
textColor: u,
|
|
1134
|
+
paddingX: Y,
|
|
1135
|
+
paddingY: z,
|
|
1136
|
+
borderRadius: W,
|
|
1137
|
+
textColorHover: q,
|
|
1138
|
+
buttonColor: G,
|
|
1139
|
+
buttonColorHover: E
|
|
1151
1140
|
};
|
|
1152
|
-
}), $ = t(() =>
|
|
1153
|
-
const
|
|
1141
|
+
}), $ = t(() => v.value.disabled), B = t(() => {
|
|
1142
|
+
const n = v.value;
|
|
1154
1143
|
return {
|
|
1155
|
-
display:
|
|
1156
|
-
borderRadius: `${
|
|
1144
|
+
display: n.display,
|
|
1145
|
+
borderRadius: `${n.borderRadius}rem`
|
|
1157
1146
|
};
|
|
1158
|
-
}),
|
|
1159
|
-
const
|
|
1147
|
+
}), x = t(() => {
|
|
1148
|
+
const n = v.value;
|
|
1160
1149
|
return {
|
|
1161
|
-
color:
|
|
1162
|
-
padding: `${
|
|
1163
|
-
borderRadius: `${
|
|
1164
|
-
fontSize:
|
|
1165
|
-
fontWeight:
|
|
1150
|
+
color: n.textColor,
|
|
1151
|
+
padding: `${n.paddingY}rem ${n.paddingX}rem`,
|
|
1152
|
+
borderRadius: `${n.borderRadius}rem`,
|
|
1153
|
+
fontSize: n.fontSize,
|
|
1154
|
+
fontWeight: n.fontWeight
|
|
1166
1155
|
};
|
|
1167
|
-
}),
|
|
1168
|
-
|
|
1156
|
+
}), _ = t(() => v.value.font), o = t(() => v.value.textColor), H = t(() => v.value.textColorHover), d = t(() => v.value.buttonColor), a = t(() => v.value.buttonColorHover), l = () => {
|
|
1157
|
+
s("clicked");
|
|
1169
1158
|
};
|
|
1170
|
-
return (
|
|
1159
|
+
return (n, k) => (D(), O("div", {
|
|
1171
1160
|
class: X(["nb-wrapper", $.value]),
|
|
1172
|
-
style:
|
|
1173
|
-
onClick:
|
|
1161
|
+
style: N([B.value]),
|
|
1162
|
+
onClick: l
|
|
1174
1163
|
}, [
|
|
1175
1164
|
R("div", {
|
|
1176
1165
|
id: e.nbId,
|
|
1177
1166
|
class: "nb-reset component component-transition",
|
|
1178
|
-
style:
|
|
1179
|
-
},
|
|
1167
|
+
style: N([x.value])
|
|
1168
|
+
}, [
|
|
1169
|
+
T(n.$slots, "content", {}, () => [
|
|
1170
|
+
A("Default Text")
|
|
1171
|
+
], !0)
|
|
1172
|
+
], 12, Re)
|
|
1180
1173
|
], 6));
|
|
1181
1174
|
}
|
|
1182
|
-
}),
|
|
1183
|
-
const
|
|
1175
|
+
}), We = /* @__PURE__ */ j(ze, [["__scopeId", "data-v-849fae4e"]]);
|
|
1176
|
+
const Ie = ["id"], De = { class: "first-child" }, Oe = { class: "last-child" }, Le = /* @__PURE__ */ Object.assign({
|
|
1184
1177
|
name: "NbButtonAlternateText",
|
|
1185
1178
|
inheritAttrs: !1
|
|
1186
1179
|
}, {
|
|
@@ -1194,8 +1187,8 @@ const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" },
|
|
|
1194
1187
|
type: String,
|
|
1195
1188
|
default: "b",
|
|
1196
1189
|
validator: (e = "b") => {
|
|
1197
|
-
const
|
|
1198
|
-
return ["b", "ib"].includes(
|
|
1190
|
+
const s = e ? e.toLowerCase() : "";
|
|
1191
|
+
return ["b", "ib"].includes(s);
|
|
1199
1192
|
}
|
|
1200
1193
|
},
|
|
1201
1194
|
textColor: {
|
|
@@ -1263,110 +1256,110 @@ const De = ["id"], Oe = { class: "first-child" }, Te = { class: "last-child" },
|
|
|
1263
1256
|
}
|
|
1264
1257
|
},
|
|
1265
1258
|
emits: ["clicked"],
|
|
1266
|
-
setup(e, { emit:
|
|
1267
|
-
const
|
|
1268
|
-
F((
|
|
1269
|
-
|
|
1270
|
-
"
|
|
1271
|
-
|
|
1272
|
-
|
|
1259
|
+
setup(e, { emit: s }) {
|
|
1260
|
+
const w = e;
|
|
1261
|
+
F((u) => ({
|
|
1262
|
+
70620026: d.value,
|
|
1263
|
+
"2928e4ba": a.value,
|
|
1264
|
+
"0fe93572": l.value,
|
|
1265
|
+
"4dcaff7e": n.value
|
|
1273
1266
|
}));
|
|
1274
1267
|
const {
|
|
1275
|
-
display:
|
|
1268
|
+
display: V,
|
|
1276
1269
|
buttonColor: b,
|
|
1277
|
-
borderColor:
|
|
1270
|
+
borderColor: m,
|
|
1278
1271
|
buttonHoverColor: p,
|
|
1279
1272
|
showBorder: y,
|
|
1280
|
-
borderRadius:
|
|
1281
|
-
textColor:
|
|
1282
|
-
textHoverColor:
|
|
1283
|
-
width:
|
|
1284
|
-
paddingX:
|
|
1285
|
-
paddingY:
|
|
1286
|
-
disabled:
|
|
1287
|
-
fontFamily:
|
|
1288
|
-
fontSize:
|
|
1289
|
-
fontWeight:
|
|
1290
|
-
} = M(
|
|
1291
|
-
const
|
|
1273
|
+
borderRadius: S,
|
|
1274
|
+
textColor: g,
|
|
1275
|
+
textHoverColor: h,
|
|
1276
|
+
width: C,
|
|
1277
|
+
paddingX: f,
|
|
1278
|
+
paddingY: i,
|
|
1279
|
+
disabled: r,
|
|
1280
|
+
fontFamily: v,
|
|
1281
|
+
fontSize: $,
|
|
1282
|
+
fontWeight: B
|
|
1283
|
+
} = M(w), x = t(() => {
|
|
1284
|
+
const u = r.value ? "component-disabled" : "", Y = V.value !== "b" ? "inline-block" : "block", z = b.value ? b.value : "#ffffff", W = p.value ? p.value : "#000000", c = m.value ? m.value : "#ffe54c", I = !S.value || S.value < 0 ? 0 : S.value, P = [!1, !0].includes(y.value) ? y.value : !0, q = g.value ? g.value : "#ffffff", G = h.value ? h.value : "#000000", E = !C.value || C.value < 86 ? 86 : C.value, J = !f.value || f.value < 0 ? 1 : f.value, K = !i.value || i.value < 0 ? 0.4 : i.value, Q = v.value ? v.value : "'Lato', sans-serif", U = $.value ? $.value : "1.6em", Z = !B.value || B.value < 0 ? 200 : B.value;
|
|
1292
1285
|
return {
|
|
1293
|
-
disabled:
|
|
1286
|
+
disabled: u,
|
|
1294
1287
|
display: Y,
|
|
1295
1288
|
buttonColor: z,
|
|
1296
1289
|
buttonHoverColor: W,
|
|
1297
|
-
borderColor:
|
|
1298
|
-
showBorder:
|
|
1290
|
+
borderColor: c,
|
|
1291
|
+
showBorder: P,
|
|
1299
1292
|
borderRadius: I,
|
|
1300
|
-
textColor:
|
|
1301
|
-
textHoverColor:
|
|
1293
|
+
textColor: q,
|
|
1294
|
+
textHoverColor: G,
|
|
1302
1295
|
width: E,
|
|
1303
1296
|
paddingX: J,
|
|
1304
1297
|
paddingY: K,
|
|
1305
|
-
font:
|
|
1306
|
-
fontSize:
|
|
1307
|
-
fontWeight:
|
|
1298
|
+
font: Q,
|
|
1299
|
+
fontSize: U,
|
|
1300
|
+
fontWeight: Z
|
|
1308
1301
|
};
|
|
1309
|
-
}), _ = t(() =>
|
|
1310
|
-
display:
|
|
1311
|
-
})),
|
|
1312
|
-
const
|
|
1302
|
+
}), _ = t(() => x.value.disabled), o = t(() => ({
|
|
1303
|
+
display: x.value.display
|
|
1304
|
+
})), H = t(() => {
|
|
1305
|
+
const u = x.value, Y = u.display === "block" ? "auto" : `${u.width}px`;
|
|
1313
1306
|
return {
|
|
1314
|
-
...
|
|
1315
|
-
borderRadius: `${
|
|
1316
|
-
background:
|
|
1307
|
+
...u.showBorder ? { border: `1px solid ${u.borderColor}` } : {},
|
|
1308
|
+
borderRadius: `${u.borderRadius}rem`,
|
|
1309
|
+
background: u.buttonColor,
|
|
1317
1310
|
minWidth: "33px",
|
|
1318
1311
|
width: Y,
|
|
1319
|
-
padding: `${
|
|
1312
|
+
padding: `${u.paddingY}rem ${u.paddingX}rem`,
|
|
1320
1313
|
lineHeight: "1.42857143",
|
|
1321
|
-
fontSize:
|
|
1322
|
-
fontWeight:
|
|
1314
|
+
fontSize: u.fontSize,
|
|
1315
|
+
fontWeight: u.fontWeight
|
|
1323
1316
|
};
|
|
1324
|
-
}),
|
|
1325
|
-
|
|
1317
|
+
}), d = t(() => x.value.font), a = t(() => x.value.textColor), l = t(() => x.value.textHoverColor), n = t(() => x.value.buttonHoverColor), k = () => {
|
|
1318
|
+
s("clicked");
|
|
1326
1319
|
};
|
|
1327
|
-
return (
|
|
1320
|
+
return (u, Y) => e.nbId ? (D(), O("div", {
|
|
1328
1321
|
key: 0,
|
|
1329
1322
|
class: X(["nb-wrapper", _.value]),
|
|
1330
|
-
style:
|
|
1331
|
-
onClick:
|
|
1323
|
+
style: N([o.value]),
|
|
1324
|
+
onClick: k
|
|
1332
1325
|
}, [
|
|
1333
1326
|
R("div", {
|
|
1334
1327
|
id: e.nbId,
|
|
1335
1328
|
class: X(["nb-reset", "component"]),
|
|
1336
|
-
style:
|
|
1329
|
+
style: N([H.value])
|
|
1337
1330
|
}, [
|
|
1338
|
-
R("div",
|
|
1339
|
-
|
|
1340
|
-
|
|
1331
|
+
R("div", De, [
|
|
1332
|
+
T(u.$slots, "content", {}, () => [
|
|
1333
|
+
A("Default Text")
|
|
1341
1334
|
], !0)
|
|
1342
1335
|
]),
|
|
1343
|
-
R("div",
|
|
1344
|
-
|
|
1345
|
-
|
|
1336
|
+
R("div", Oe, [
|
|
1337
|
+
T(u.$slots, "content", {}, () => [
|
|
1338
|
+
A("Default Text")
|
|
1346
1339
|
], !0)
|
|
1347
1340
|
])
|
|
1348
|
-
], 12,
|
|
1349
|
-
], 6)) :
|
|
1341
|
+
], 12, Ie)
|
|
1342
|
+
], 6)) : L("", !0);
|
|
1350
1343
|
}
|
|
1351
|
-
}),
|
|
1352
|
-
NbButtonVavaGame:
|
|
1353
|
-
NbButtonShowHover:
|
|
1354
|
-
NbButtonPrevNext:
|
|
1355
|
-
NbButtonMechanical:
|
|
1356
|
-
NbButtonMechanical2:
|
|
1357
|
-
NbButtonHamburger:
|
|
1358
|
-
NbButtonColorOutside:
|
|
1359
|
-
NbButtonColorHover:
|
|
1360
|
-
NbButtonAlternateText:
|
|
1361
|
-
},
|
|
1344
|
+
}), Te = /* @__PURE__ */ j(Le, [["__scopeId", "data-v-fe71a891"]]), ee = {
|
|
1345
|
+
NbButtonVavaGame: be,
|
|
1346
|
+
NbButtonShowHover: ge,
|
|
1347
|
+
NbButtonPrevNext: Ce,
|
|
1348
|
+
NbButtonMechanical: _e,
|
|
1349
|
+
NbButtonMechanical2: we,
|
|
1350
|
+
NbButtonHamburger: He,
|
|
1351
|
+
NbButtonColorOutside: Xe,
|
|
1352
|
+
NbButtonColorHover: We,
|
|
1353
|
+
NbButtonAlternateText: Te
|
|
1354
|
+
}, Pe = {
|
|
1362
1355
|
install(e) {
|
|
1363
|
-
for (const
|
|
1364
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1365
|
-
const
|
|
1366
|
-
e.component(
|
|
1356
|
+
for (const s in ee)
|
|
1357
|
+
if (Object.prototype.hasOwnProperty.call(ee, s)) {
|
|
1358
|
+
const w = ee[s];
|
|
1359
|
+
e.component(w.name, w);
|
|
1367
1360
|
}
|
|
1368
1361
|
}
|
|
1369
1362
|
};
|
|
1370
1363
|
export {
|
|
1371
|
-
|
|
1364
|
+
Pe as default
|
|
1372
1365
|
};
|