@nightshadeui/core 2.0.14 → 2.0.15

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.
@@ -0,0 +1,26 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ to: {
3
+ required: true;
4
+ };
5
+ activeOverrides: {
6
+ type: ObjectConstructor;
7
+ };
8
+ exactActiveOverrides: {
9
+ type: ObjectConstructor;
10
+ };
11
+ }>, {}, {}, {}, {
12
+ actualAttrs(isActive: any, isExactActive: any): {
13
+ [x: string]: any;
14
+ };
15
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ to: {
17
+ required: true;
18
+ };
19
+ activeOverrides: {
20
+ type: ObjectConstructor;
21
+ };
22
+ exactActiveOverrides: {
23
+ type: ObjectConstructor;
24
+ };
25
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
@@ -6,8 +6,9 @@ import { default as InputGroup } from './InputGroup.vue';
6
6
  import { default as InputSelect } from './InputSelect.vue';
7
7
  import { default as InputText } from './InputText.vue';
8
8
  import { default as InputTextarea } from './InputTextarea.vue';
9
+ import { default as RouterBtn } from './RouterBtn.vue';
9
10
  import { default as Tab } from './Tab.vue';
10
11
  import { default as TabCap } from './TabCap.vue';
11
12
  import { default as Toggle } from './Toggle.vue';
12
13
  import { default as VGroup } from './VGroup.vue';
13
- export { Btn, Filler, HGroup, InputBase, InputGroup, InputSelect, InputText, InputTextarea, Tab, TabCap, Toggle, VGroup, };
14
+ export { Btn, Filler, HGroup, InputBase, InputGroup, InputSelect, InputText, InputTextarea, RouterBtn, Tab, TabCap, Toggle, VGroup, };
package/dist/core.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { createBlock as y, openBlock as u, resolveDynamicComponent as g, normalizeClass as p, withCtx as b, renderSlot as r, createElementBlock as d, createCommentVNode as c, toDisplayString as h, resolveComponent as m, createVNode as k, createElementVNode as v, Fragment as O, mergeProps as I } from "vue";
1
+ import { createBlock as p, openBlock as r, resolveDynamicComponent as S, normalizeClass as y, withCtx as v, renderSlot as u, createElementBlock as d, createCommentVNode as c, toDisplayString as g, resolveComponent as b, createVNode as O, createElementVNode as h, Fragment as V, mergeProps as B } from "vue";
2
2
  const f = (t, n) => {
3
3
  const e = t.__vccOpts || t;
4
- for (const [i, o] of n)
5
- e[i] = o;
4
+ for (const [i, l] of n)
5
+ e[i] = l;
6
6
  return e;
7
- }, V = {
7
+ }, $ = {
8
8
  props: {
9
9
  tagName: { type: String, default: "button" },
10
10
  href: { type: String },
@@ -55,89 +55,89 @@ const f = (t, n) => {
55
55
  hoverOverrides: n = {},
56
56
  activeOverrides: e = {},
57
57
  focusOverrides: i = {},
58
- active: o,
59
- hover: l,
58
+ active: l,
59
+ hover: o,
60
60
  focus: s,
61
61
  forceActive: a,
62
- forceHover: B,
63
- forceFocus: T
64
- } = this, S = Object.assign({}, t);
65
- return (o || a) && Object.assign(S, e), (l || B) && Object.assign(S, n), (s || T) && Object.assign(S, i), S;
62
+ forceHover: _,
63
+ forceFocus: k
64
+ } = this, m = Object.assign({}, t);
65
+ return (l || a) && Object.assign(m, e), (o || _) && Object.assign(m, n), (s || k) && Object.assign(m, i), m;
66
66
  }
67
67
  },
68
68
  methods: {
69
69
  // TODO add debounce
70
70
  }
71
- }, $ = {
71
+ }, j = {
72
72
  key: 0,
73
73
  class: "Label"
74
74
  };
75
- function j(t, n, e, i, o, l) {
76
- return u(), y(g(e.tagName), {
75
+ function C(t, n, e, i, l, o) {
76
+ return r(), p(S(e.tagName), {
77
77
  ref: "button",
78
- class: p(["Btn InputElement", [
79
- `Btn-${l.effectiveStyle.size}`,
80
- `Btn-${l.effectiveStyle.kind}`,
81
- `input-kind-${l.effectiveStyle.kind}`,
78
+ class: y(["Btn InputElement", [
79
+ `Btn-${o.effectiveStyle.size}`,
80
+ `Btn-${o.effectiveStyle.kind}`,
81
+ `input-kind-${o.effectiveStyle.kind}`,
82
82
  `Btn-iconPos-${e.iconPos}`,
83
83
  {
84
- "Btn-ghost": l.effectiveStyle.ghost,
85
- "Btn-round": l.effectiveStyle.round,
86
- "Btn-outline": l.effectiveStyle.outline,
87
- "Btn-flat": l.effectiveStyle.flat,
88
- "Btn-shadow": l.effectiveStyle.shadow,
84
+ "Btn-ghost": o.effectiveStyle.ghost,
85
+ "Btn-round": o.effectiveStyle.round,
86
+ "Btn-outline": o.effectiveStyle.outline,
87
+ "Btn-flat": o.effectiveStyle.flat,
88
+ "Btn-shadow": o.effectiveStyle.shadow,
89
89
  "Btn-square": e.square,
90
90
  "Btn-block": e.block,
91
- "Btn-disabled": e.disabled || o.blocked,
91
+ "Btn-disabled": e.disabled || l.blocked,
92
92
  "Btn-force-focus": e.forceFocus,
93
93
  "Btn-force-hover": e.forceHover,
94
94
  "Btn-force-active": e.forceActive
95
95
  }
96
96
  ]]),
97
- disabled: e.disabled || o.blocked,
97
+ disabled: e.disabled || l.blocked,
98
98
  title: e.title ?? e.label,
99
99
  href: e.href,
100
- onMouseenter: n[0] || (n[0] = (s) => o.hover = !0),
101
- onMouseleave: n[1] || (n[1] = (s) => o.hover = !1),
102
- onMousedown: n[2] || (n[2] = (s) => o.active = !0),
103
- onMouseup: n[3] || (n[3] = (s) => o.active = !1),
104
- onMouseout: n[4] || (n[4] = (s) => o.active = !1),
105
- onFocusin: n[5] || (n[5] = (s) => o.focus = !0),
106
- onFocusout: n[6] || (n[6] = (s) => o.focus = !1)
100
+ onMouseenter: n[0] || (n[0] = (s) => l.hover = !0),
101
+ onMouseleave: n[1] || (n[1] = (s) => l.hover = !1),
102
+ onMousedown: n[2] || (n[2] = (s) => l.active = !0),
103
+ onMouseup: n[3] || (n[3] = (s) => l.active = !1),
104
+ onMouseout: n[4] || (n[4] = (s) => l.active = !1),
105
+ onFocusin: n[5] || (n[5] = (s) => l.focus = !0),
106
+ onFocusout: n[6] || (n[6] = (s) => l.focus = !1)
107
107
  }, {
108
- default: b(() => [
109
- r(t.$slots, "icon", {
110
- hover: o.hover,
111
- blocked: o.blocked
108
+ default: v(() => [
109
+ u(t.$slots, "icon", {
110
+ hover: l.hover,
111
+ blocked: l.blocked
112
112
  }, () => [
113
- e.icon ? (u(), d("i", {
113
+ e.icon ? (r(), d("i", {
114
114
  key: 0,
115
- class: p([e.icon, "Icon"])
115
+ class: y([e.icon, "Icon"])
116
116
  }, null, 2)) : c("", !0)
117
117
  ], !0),
118
- e.label ? (u(), d("span", $, h(e.label), 1)) : c("", !0),
119
- r(t.$slots, "default", {
120
- hover: o.hover,
121
- active: o.active,
122
- blocked: o.blocked
118
+ e.label ? (r(), d("span", j, g(e.label), 1)) : c("", !0),
119
+ u(t.$slots, "default", {
120
+ hover: l.hover,
121
+ active: l.active,
122
+ blocked: l.blocked
123
123
  }, void 0, !0)
124
124
  ]),
125
125
  _: 3
126
126
  }, 40, ["class", "disabled", "title", "href"]);
127
127
  }
128
- const F = /* @__PURE__ */ f(V, [["render", j], ["__scopeId", "data-v-09d29421"]]), C = {
128
+ const F = /* @__PURE__ */ f($, [["render", C], ["__scopeId", "data-v-09d29421"]]), x = {
129
129
  props: {
130
130
  fill: { type: String, default: "none" }
131
131
  }
132
132
  };
133
- function H(t, n, e, i, o, l) {
134
- return u(), d("div", {
135
- class: p(["Filler", [
133
+ function H(t, n, e, i, l, o) {
134
+ return r(), d("div", {
135
+ class: y(["Filler", [
136
136
  `Filler-${e.fill}`
137
137
  ]])
138
138
  }, null, 2);
139
139
  }
140
- const z = /* @__PURE__ */ f(C, [["render", H], ["__scopeId", "data-v-a4c89219"]]), x = {
140
+ const z = /* @__PURE__ */ f(x, [["render", H], ["__scopeId", "data-v-a4c89219"]]), N = {
141
141
  props: {
142
142
  tagName: { type: String, default: "div" },
143
143
  align: { type: String, default: "center" },
@@ -146,9 +146,9 @@ const z = /* @__PURE__ */ f(C, [["render", H], ["__scopeId", "data-v-a4c89219"]]
146
146
  wrap: { type: Boolean, default: !1 }
147
147
  }
148
148
  };
149
- function N(t, n, e, i, o, l) {
150
- return u(), y(g(e.tagName), {
151
- class: p(["HGroup", [
149
+ function M(t, n, e, i, l, o) {
150
+ return r(), p(S(e.tagName), {
151
+ class: y(["HGroup", [
152
152
  `HGroup-align-${e.align}`,
153
153
  `HGroup-justify-${e.justify}`,
154
154
  `HGroup-gap-${e.gap}`,
@@ -157,13 +157,13 @@ function N(t, n, e, i, o, l) {
157
157
  }
158
158
  ]])
159
159
  }, {
160
- default: b(() => [
161
- r(t.$slots, "default", {}, void 0, !0)
160
+ default: v(() => [
161
+ u(t.$slots, "default", {}, void 0, !0)
162
162
  ]),
163
163
  _: 3
164
164
  }, 8, ["class"]);
165
165
  }
166
- const M = /* @__PURE__ */ f(x, [["render", N], ["__scopeId", "data-v-4afcf47f"]]), G = {
166
+ const G = /* @__PURE__ */ f(N, [["render", M], ["__scopeId", "data-v-4afcf47f"]]), A = {
167
167
  props: {
168
168
  dir: { type: String, default: "top" },
169
169
  label: { type: String }
@@ -173,37 +173,37 @@ const M = /* @__PURE__ */ f(x, [["render", N], ["__scopeId", "data-v-4afcf47f"]]
173
173
  return this.dir === "top" || this.dir === "bottom" ? "h" : "v";
174
174
  }
175
175
  }
176
- }, L = { class: "Content" }, A = ["title"];
177
- function D(t, n, e, i, o, l) {
178
- const s = m("TabCap");
179
- return u(), d("div", {
180
- class: p(["Tab", [
176
+ }, L = { class: "Content" }, D = ["title"];
177
+ function P(t, n, e, i, l, o) {
178
+ const s = b("TabCap");
179
+ return r(), d("div", {
180
+ class: y(["Tab", [
181
181
  `Tab-${e.dir}`,
182
- `Tab-${l.orientation}`
182
+ `Tab-${o.orientation}`
183
183
  ]])
184
184
  }, [
185
- k(s, {
185
+ O(s, {
186
186
  class: "TabCap",
187
187
  dir: e.dir,
188
188
  type: "start"
189
189
  }, null, 8, ["dir"]),
190
- v("div", L, [
191
- r(t.$slots, "default", {}, () => [
192
- e.label ? (u(), d("div", {
190
+ h("div", L, [
191
+ u(t.$slots, "default", {}, () => [
192
+ e.label ? (r(), d("div", {
193
193
  key: 0,
194
194
  class: "TabLabel",
195
195
  title: e.label
196
- }, h(e.label), 9, A)) : c("", !0)
196
+ }, g(e.label), 9, D)) : c("", !0)
197
197
  ], !0)
198
198
  ]),
199
- k(s, {
199
+ O(s, {
200
200
  class: "TabCap",
201
201
  dir: e.dir,
202
202
  type: "end"
203
203
  }, null, 8, ["dir"])
204
204
  ], 2);
205
205
  }
206
- const w = /* @__PURE__ */ f(G, [["render", D], ["__scopeId", "data-v-a4bb3614"]]), P = {
206
+ const w = /* @__PURE__ */ f(A, [["render", P], ["__scopeId", "data-v-a4bb3614"]]), E = {
207
207
  components: {
208
208
  Tab: w
209
209
  },
@@ -244,74 +244,74 @@ const w = /* @__PURE__ */ f(G, [["render", D], ["__scopeId", "data-v-a4bb3614"]]
244
244
  hoverOverrides: n = {},
245
245
  focusOverrides: e = {},
246
246
  hover: i,
247
- focus: o,
248
- forceHover: l,
247
+ focus: l,
248
+ forceHover: o,
249
249
  forceFocus: s
250
250
  } = this, a = Object.assign({}, t);
251
- return (i || l) && Object.assign(a, n), (o || s) && Object.assign(a, e), a;
251
+ return (i || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
252
252
  }
253
253
  }
254
- }, E = {
254
+ }, R = {
255
255
  key: 1,
256
256
  class: "Label TextLabel"
257
257
  }, q = {
258
258
  key: 2,
259
259
  class: "Label InlineLabel"
260
260
  }, K = { class: "InputElement Container" };
261
- function R(t, n, e, i, o, l) {
262
- const s = m("Tab");
263
- return u(), y(g(e.tagName), {
264
- class: p(["InputBase", [
265
- `InputBase-${l.effectiveStyle.kind}`,
266
- `input-kind-${l.effectiveStyle.kind}`,
267
- `InputBase-${l.effectiveStyle.size}`,
261
+ function Y(t, n, e, i, l, o) {
262
+ const s = b("Tab");
263
+ return r(), p(S(e.tagName), {
264
+ class: y(["InputBase", [
265
+ `InputBase-${o.effectiveStyle.kind}`,
266
+ `input-kind-${o.effectiveStyle.kind}`,
267
+ `InputBase-${o.effectiveStyle.size}`,
268
268
  {
269
269
  "InputBase-fixed-height": e.fixedHeight,
270
- "InputBase-shadow": l.effectiveStyle.shadow,
271
- "InputBase-round": l.effectiveStyle.round,
270
+ "InputBase-shadow": o.effectiveStyle.shadow,
271
+ "InputBase-round": o.effectiveStyle.round,
272
272
  "InputBase-disabled": e.disabled,
273
273
  "InputBase-force-focus": e.forceFocus,
274
274
  "InputBase-force-hover": e.forceHover
275
275
  }
276
276
  ]]),
277
- onMouseenter: n[0] || (n[0] = (a) => o.hover = !0),
278
- onMouseleave: n[1] || (n[1] = (a) => o.hover = !1),
279
- onFocusin: n[2] || (n[2] = (a) => o.focus = !0),
280
- onFocusout: n[3] || (n[3] = (a) => o.focus = !1)
277
+ onMouseenter: n[0] || (n[0] = (a) => l.hover = !0),
278
+ onMouseleave: n[1] || (n[1] = (a) => l.hover = !1),
279
+ onFocusin: n[2] || (n[2] = (a) => l.focus = !0),
280
+ onFocusout: n[3] || (n[3] = (a) => l.focus = !1)
281
281
  }, {
282
- default: b(() => [
283
- e.label ? (u(), d(O, { key: 0 }, [
284
- e.labelStyle === "tab" ? (u(), y(s, {
282
+ default: v(() => [
283
+ e.label ? (r(), d(V, { key: 0 }, [
284
+ e.labelStyle === "tab" ? (r(), p(s, {
285
285
  key: 0,
286
286
  class: "Label TabLabel",
287
287
  label: e.label
288
288
  }, null, 8, ["label"])) : c("", !0),
289
- e.labelStyle === "text" ? (u(), d("div", E, h(e.label), 1)) : c("", !0),
290
- e.labelStyle === "inline" ? (u(), d("div", q, h(e.label), 1)) : c("", !0)
289
+ e.labelStyle === "text" ? (r(), d("div", R, g(e.label), 1)) : c("", !0),
290
+ e.labelStyle === "inline" ? (r(), d("div", q, g(e.label), 1)) : c("", !0)
291
291
  ], 64)) : c("", !0),
292
- v("div", K, [
293
- r(t.$slots, "default", {}, void 0, !0)
292
+ h("div", K, [
293
+ u(t.$slots, "default", {}, void 0, !0)
294
294
  ])
295
295
  ]),
296
296
  _: 3
297
297
  }, 40, ["class"]);
298
298
  }
299
- const _ = /* @__PURE__ */ f(P, [["render", R], ["__scopeId", "data-v-408c1aa3"]]), Y = {
299
+ const I = /* @__PURE__ */ f(E, [["render", Y], ["__scopeId", "data-v-408c1aa3"]]), J = {
300
300
  props: {
301
301
  tagName: { type: String, default: "div" }
302
302
  }
303
303
  };
304
- function J(t, n, e, i, o, l) {
305
- return u(), y(g(e.tagName), { class: "InputGroup" }, {
306
- default: b(() => [
307
- r(t.$slots, "default", {}, void 0, !0)
304
+ function Q(t, n, e, i, l, o) {
305
+ return r(), p(S(e.tagName), { class: "InputGroup" }, {
306
+ default: v(() => [
307
+ u(t.$slots, "default", {}, void 0, !0)
308
308
  ]),
309
309
  _: 3
310
310
  });
311
311
  }
312
- const Q = /* @__PURE__ */ f(Y, [["render", J], ["__scopeId", "data-v-3d98e109"]]), U = {
312
+ const U = /* @__PURE__ */ f(J, [["render", Q], ["__scopeId", "data-v-3d98e109"]]), W = {
313
313
  props: {
314
- ..._.props,
314
+ ...I.props,
315
315
  modelValue: {},
316
316
  items: { type: Array, default: () => [] },
317
317
  placeholder: { type: String },
@@ -370,55 +370,55 @@ const Q = /* @__PURE__ */ f(Y, [["render", J], ["__scopeId", "data-v-3d98e109"]]
370
370
  this.disabled || (this.menuShown = !0);
371
371
  }
372
372
  }
373
- }, W = {
373
+ }, X = {
374
374
  key: 1,
375
375
  class: "Value"
376
- }, X = {
376
+ }, Z = {
377
377
  key: 2,
378
378
  class: "Placeholder"
379
- }, Z = {
379
+ }, ee = {
380
380
  ref: "icon",
381
381
  class: "DropdownIcon"
382
382
  };
383
- function ee(t, n, e, i, o, l) {
384
- const s = m("ContextMenu"), a = m("InputBase");
385
- return u(), y(a, I({ class: "InputSelect" }, {
383
+ function te(t, n, e, i, l, o) {
384
+ const s = b("ContextMenu"), a = b("InputBase");
385
+ return r(), p(a, B({ class: "InputSelect" }, {
386
386
  ...t.$props
387
387
  }, {
388
388
  tabindex: "0",
389
- onClick: n[1] || (n[1] = (B) => l.show())
389
+ onClick: n[1] || (n[1] = (_) => o.show())
390
390
  }), {
391
- default: b(() => [
392
- r(t.$slots, "before", {}, void 0, !0),
393
- l.itemIcon ? (u(), d("i", {
391
+ default: v(() => [
392
+ u(t.$slots, "before", {}, void 0, !0),
393
+ o.itemIcon ? (r(), d("i", {
394
394
  key: 0,
395
- class: p(["Icon", l.itemIcon])
395
+ class: y(["Icon", o.itemIcon])
396
396
  }, null, 2)) : c("", !0),
397
- l.selectedItem ? (u(), d("span", W, h(l.itemTitle), 1)) : c("", !0),
398
- l.selectedItem ? c("", !0) : (u(), d("span", X, h(e.placeholder), 1)),
399
- v("div", Z, [
400
- r(t.$slots, "iconDropdown", {}, () => [
401
- v("i", {
402
- class: p(l.iconDropdown)
397
+ o.selectedItem ? (r(), d("span", X, g(o.itemTitle), 1)) : c("", !0),
398
+ o.selectedItem ? c("", !0) : (r(), d("span", Z, g(e.placeholder), 1)),
399
+ h("div", ee, [
400
+ u(t.$slots, "iconDropdown", {}, () => [
401
+ h("i", {
402
+ class: y(o.iconDropdown)
403
403
  }, null, 2)
404
404
  ], !0)
405
405
  ], 512),
406
- !t.disabled && o.menuShown ? (u(), y(s, {
406
+ !t.disabled && l.menuShown ? (r(), p(s, {
407
407
  key: 3,
408
408
  anchorRef: "icon",
409
- items: l.getMenuItems(),
409
+ items: o.getMenuItems(),
410
410
  search: e.search,
411
411
  overlayShown: !1,
412
- onHide: n[0] || (n[0] = (B) => o.menuShown = !1)
412
+ onHide: n[0] || (n[0] = (_) => l.menuShown = !1)
413
413
  }, null, 8, ["items", "search"])) : c("", !0),
414
- r(t.$slots, "after", {}, void 0, !0)
414
+ u(t.$slots, "after", {}, void 0, !0)
415
415
  ]),
416
416
  _: 3
417
417
  }, 16);
418
418
  }
419
- const te = /* @__PURE__ */ f(U, [["render", ee], ["__scopeId", "data-v-2c4374be"]]), ne = {
419
+ const ne = /* @__PURE__ */ f(W, [["render", te], ["__scopeId", "data-v-2c4374be"]]), oe = {
420
420
  props: {
421
- ..._.props,
421
+ ...I.props,
422
422
  modelValue: { type: [String, Number] },
423
423
  type: { type: String },
424
424
  placeholder: { type: String },
@@ -443,14 +443,14 @@ const te = /* @__PURE__ */ f(U, [["render", ee], ["__scopeId", "data-v-2c4374be"
443
443
  }
444
444
  }
445
445
  }, le = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
446
- function oe(t, n, e, i, o, l) {
447
- const s = m("InputBase");
448
- return u(), y(s, I({ class: "InputText" }, {
446
+ function se(t, n, e, i, l, o) {
447
+ const s = b("InputBase");
448
+ return r(), p(s, B({ class: "InputText" }, {
449
449
  ...t.$props
450
450
  }), {
451
- default: b(() => [
452
- r(t.$slots, "before", {}, void 0, !0),
453
- v("input", {
451
+ default: v(() => [
452
+ u(t.$slots, "before", {}, void 0, !0),
453
+ h("input", {
454
454
  ref: "input",
455
455
  value: e.modelValue,
456
456
  type: e.type,
@@ -461,18 +461,18 @@ function oe(t, n, e, i, o, l) {
461
461
  max: e.max,
462
462
  step: e.step,
463
463
  autocomplete: "off",
464
- onInput: n[0] || (n[0] = (a) => l.onInput(a)),
464
+ onInput: n[0] || (n[0] = (a) => o.onInput(a)),
465
465
  onFocus: n[1] || (n[1] = (a) => t.$emit("focus", a)),
466
466
  onBlur: n[2] || (n[2] = (a) => t.$emit("blur", a))
467
467
  }, null, 40, le),
468
- r(t.$slots, "after", {}, void 0, !0)
468
+ u(t.$slots, "after", {}, void 0, !0)
469
469
  ]),
470
470
  _: 3
471
471
  }, 16);
472
472
  }
473
- const se = /* @__PURE__ */ f(ne, [["render", oe], ["__scopeId", "data-v-f0bca74d"]]), ae = {
473
+ const ae = /* @__PURE__ */ f(oe, [["render", se], ["__scopeId", "data-v-f0bca74d"]]), re = {
474
474
  props: {
475
- ..._.props,
475
+ ...I.props,
476
476
  modelValue: { type: String },
477
477
  placeholder: { type: String },
478
478
  rows: { type: Number },
@@ -505,15 +505,15 @@ const se = /* @__PURE__ */ f(ne, [["render", oe], ["__scopeId", "data-v-f0bca74d
505
505
  this.$emit("update:modelValue", t.target.value);
506
506
  }
507
507
  }
508
- }, ue = ["value", "placeholder", "readonly", "disabled", "rows"];
509
- function ie(t, n, e, i, o, l) {
510
- const s = m("InputBase");
511
- return u(), y(s, I({ class: "InputTextarea" }, {
508
+ }, ie = ["value", "placeholder", "readonly", "disabled", "rows"];
509
+ function ue(t, n, e, i, l, o) {
510
+ const s = b("InputBase");
511
+ return r(), p(s, B({ class: "InputTextarea" }, {
512
512
  ...t.$props
513
513
  }, { fixedHeight: !1 }), {
514
- default: b(() => [
515
- r(t.$slots, "before", {}, void 0, !0),
516
- v("textarea", {
514
+ default: v(() => [
515
+ u(t.$slots, "before", {}, void 0, !0),
516
+ h("textarea", {
517
517
  ref: "input",
518
518
  value: e.modelValue,
519
519
  placeholder: e.placeholder,
@@ -522,34 +522,65 @@ function ie(t, n, e, i, o, l) {
522
522
  rows: e.rows,
523
523
  resize: "none",
524
524
  autocomplete: "off",
525
- onInput: n[0] || (n[0] = (a) => l.onInput(a)),
525
+ onInput: n[0] || (n[0] = (a) => o.onInput(a)),
526
526
  onFocus: n[1] || (n[1] = (a) => t.$emit("focus", a)),
527
527
  onBlur: n[2] || (n[2] = (a) => t.$emit("blur", a))
528
- }, null, 40, ue),
529
- r(t.$slots, "after", {}, void 0, !0)
528
+ }, null, 40, ie),
529
+ u(t.$slots, "after", {}, void 0, !0)
530
530
  ]),
531
531
  _: 3
532
532
  }, 16);
533
533
  }
534
- const re = /* @__PURE__ */ f(ae, [["render", ie], ["__scopeId", "data-v-d1f75aa4"]]), de = {
534
+ const de = /* @__PURE__ */ f(re, [["render", ue], ["__scopeId", "data-v-d1f75aa4"]]), fe = {
535
+ props: {
536
+ to: { required: !0 },
537
+ activeOverrides: { type: Object },
538
+ exactActiveOverrides: { type: Object }
539
+ },
540
+ methods: {
541
+ actualAttrs(t, n) {
542
+ return {
543
+ ...this.$attrs,
544
+ ...t ? this.activeOverrides : {},
545
+ ...n ? this.exactActiveOverrides : {}
546
+ };
547
+ }
548
+ }
549
+ };
550
+ function ce(t, n, e, i, l, o) {
551
+ const s = b("Button"), a = b("RouterLink");
552
+ return r(), p(a, {
553
+ to: e.to,
554
+ custom: ""
555
+ }, {
556
+ default: v(({ href: _, navigate: k, isActive: m, isExactActive: T }) => [
557
+ O(s, B({
558
+ as: "a",
559
+ href: _
560
+ }, o.actualAttrs(m, T), { onClick: k }), null, 16, ["href", "onClick"])
561
+ ]),
562
+ _: 1
563
+ }, 8, ["to"]);
564
+ }
565
+ const pe = /* @__PURE__ */ f(fe, [["render", ce]]), ye = {
535
566
  props: {
536
567
  dir: { type: String, default: "top" },
537
568
  type: { type: String, default: "start" }
538
569
  }
539
570
  };
540
- function fe(t, n, e, i, o, l) {
541
- return u(), d("svg", {
542
- class: p(["TabCap", [
571
+ function ve(t, n, e, i, l, o) {
572
+ return r(), d("svg", {
573
+ class: y(["TabCap", [
543
574
  `TabCap-${e.dir}`,
544
575
  `TabCap-${e.type}`
545
576
  ]]),
546
577
  viewBox: "0 0 32 32",
547
578
  preserveAspectRatio: "none"
548
579
  }, [...n[0] || (n[0] = [
549
- v("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
580
+ h("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
550
581
  ])], 2);
551
582
  }
552
- const ce = /* @__PURE__ */ f(de, [["render", fe], ["__scopeId", "data-v-d898255a"]]), pe = {
583
+ const be = /* @__PURE__ */ f(ye, [["render", ve], ["__scopeId", "data-v-d898255a"]]), he = {
553
584
  props: {
554
585
  modelValue: { type: Boolean },
555
586
  disabled: { type: Boolean },
@@ -592,11 +623,11 @@ const ce = /* @__PURE__ */ f(de, [["render", fe], ["__scopeId", "data-v-d898255a
592
623
  hoverOverrides: n = {},
593
624
  focusOverrides: e = {},
594
625
  hover: i,
595
- focus: o,
596
- forceHover: l,
626
+ focus: l,
627
+ forceHover: o,
597
628
  forceFocus: s
598
629
  } = this, a = Object.assign({}, t);
599
- return (i || l) && Object.assign(a, n), (o || s) && Object.assign(a, e), a;
630
+ return (i || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
600
631
  }
601
632
  },
602
633
  methods: {
@@ -604,38 +635,38 @@ const ce = /* @__PURE__ */ f(de, [["render", fe], ["__scopeId", "data-v-d898255a
604
635
  this.$emit("update:modelValue", t.target.checked);
605
636
  }
606
637
  }
607
- }, ye = ["checked", "disabled"];
608
- function ve(t, n, e, i, o, l) {
609
- return u(), d("label", {
610
- class: p(["Toggle InputElement", [
611
- `Toggle-${l.effectiveStyle.kind}`,
612
- `input-kind-${l.effectiveStyle.kind}`,
613
- `Toggle-${l.effectiveStyle.size}`,
638
+ }, me = ["checked", "disabled"];
639
+ function ge(t, n, e, i, l, o) {
640
+ return r(), d("label", {
641
+ class: y(["Toggle InputElement", [
642
+ `Toggle-${o.effectiveStyle.kind}`,
643
+ `input-kind-${o.effectiveStyle.kind}`,
644
+ `Toggle-${o.effectiveStyle.size}`,
614
645
  {
615
646
  "Toggle-active": !!e.modelValue,
616
- "Toggle-outline": l.effectiveStyle.outline,
617
- "Toggle-round": l.effectiveStyle.round,
618
- "Toggle-flat": l.effectiveStyle.flat,
647
+ "Toggle-outline": o.effectiveStyle.outline,
648
+ "Toggle-round": o.effectiveStyle.round,
649
+ "Toggle-flat": o.effectiveStyle.flat,
619
650
  "Toggle-disabled": e.disabled,
620
651
  "Toggle-force-focus": e.forceFocus,
621
652
  "Toggle-force-hover": e.forceHover
622
653
  }
623
654
  ]]),
624
655
  tabindex: "0",
625
- onMouseenter: n[1] || (n[1] = (s) => o.hover = !0),
626
- onMouseleave: n[2] || (n[2] = (s) => o.hover = !1),
627
- onFocusin: n[3] || (n[3] = (s) => o.focus = !0),
628
- onFocusout: n[4] || (n[4] = (s) => o.focus = !1)
656
+ onMouseenter: n[1] || (n[1] = (s) => l.hover = !0),
657
+ onMouseleave: n[2] || (n[2] = (s) => l.hover = !1),
658
+ onFocusin: n[3] || (n[3] = (s) => l.focus = !0),
659
+ onFocusout: n[4] || (n[4] = (s) => l.focus = !1)
629
660
  }, [
630
- v("input", {
661
+ h("input", {
631
662
  type: "checkbox",
632
663
  checked: e.modelValue,
633
664
  disabled: e.disabled,
634
- onChange: n[0] || (n[0] = (...s) => l.onChange && l.onChange(...s))
635
- }, null, 40, ye)
665
+ onChange: n[0] || (n[0] = (...s) => o.onChange && o.onChange(...s))
666
+ }, null, 40, me)
636
667
  ], 34);
637
668
  }
638
- const be = /* @__PURE__ */ f(pe, [["render", ve], ["__scopeId", "data-v-c5f9a677"]]), he = {
669
+ const _e = /* @__PURE__ */ f(he, [["render", ge], ["__scopeId", "data-v-c5f9a677"]]), Se = {
639
670
  props: {
640
671
  tagName: { type: String, default: "div" },
641
672
  align: { type: String, default: "stretch" },
@@ -643,47 +674,49 @@ const be = /* @__PURE__ */ f(pe, [["render", ve], ["__scopeId", "data-v-c5f9a677
643
674
  gap: { type: String, default: "m" }
644
675
  }
645
676
  };
646
- function me(t, n, e, i, o, l) {
647
- return u(), y(g(e.tagName), {
648
- class: p(["VGroup", [
677
+ function Be(t, n, e, i, l, o) {
678
+ return r(), p(S(e.tagName), {
679
+ class: y(["VGroup", [
649
680
  `VGroup-align-${e.align}`,
650
681
  `VGroup-justify-${e.justify}`,
651
682
  `VGroup-gap-${e.gap}`
652
683
  ]])
653
684
  }, {
654
- default: b(() => [
655
- r(t.$slots, "default", {}, void 0, !0)
685
+ default: v(() => [
686
+ u(t.$slots, "default", {}, void 0, !0)
656
687
  ]),
657
688
  _: 3
658
689
  }, 8, ["class"]);
659
690
  }
660
- const ge = /* @__PURE__ */ f(he, [["render", me], ["__scopeId", "data-v-ada4a00f"]]), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
691
+ const Ie = /* @__PURE__ */ f(Se, [["render", Be], ["__scopeId", "data-v-ada4a00f"]]), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
661
692
  __proto__: null,
662
693
  Btn: F,
663
694
  Filler: z,
664
- HGroup: M,
665
- InputBase: _,
666
- InputGroup: Q,
667
- InputSelect: te,
668
- InputText: se,
669
- InputTextarea: re,
695
+ HGroup: G,
696
+ InputBase: I,
697
+ InputGroup: U,
698
+ InputSelect: ne,
699
+ InputText: ae,
700
+ InputTextarea: de,
701
+ RouterBtn: pe,
670
702
  Tab: w,
671
- TabCap: ce,
672
- Toggle: be,
673
- VGroup: ge
703
+ TabCap: be,
704
+ Toggle: _e,
705
+ VGroup: Ie
674
706
  }, Symbol.toStringTag, { value: "Module" }));
675
707
  export {
676
708
  F as Btn,
677
709
  z as Filler,
678
- M as HGroup,
679
- _ as InputBase,
680
- Q as InputGroup,
681
- te as InputSelect,
682
- se as InputText,
683
- re as InputTextarea,
710
+ G as HGroup,
711
+ I as InputBase,
712
+ U as InputGroup,
713
+ ne as InputSelect,
714
+ ae as InputText,
715
+ de as InputTextarea,
716
+ pe as RouterBtn,
684
717
  w as Tab,
685
- ce as TabCap,
686
- be as Toggle,
687
- ge as VGroup,
688
- _e as coreComponents
718
+ be as TabCap,
719
+ _e as Toggle,
720
+ Ie as VGroup,
721
+ Oe as coreComponents
689
722
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightshadeui/core",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "Core Nightshade UI components",
5
5
  "author": "Boris Okunskiy",
6
6
  "license": "ISC",