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