@nightshadeui/core 2.0.15 → 2.0.16

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.
@@ -22,5 +22,211 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
22
22
  exactActiveOverrides: {
23
23
  type: ObjectConstructor;
24
24
  };
25
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ }>> & Readonly<{}>, {}, {}, {
26
+ Btn: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
27
+ tagName: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ href: {
32
+ type: StringConstructor;
33
+ };
34
+ label: {
35
+ type: StringConstructor;
36
+ };
37
+ title: {
38
+ type: StringConstructor;
39
+ };
40
+ kind: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ size: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ flat: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ shadow: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ outline: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ round: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ ghost: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ block: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ square: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ disabled: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ forceFocus: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ forceHover: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ forceActive: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ icon: {
93
+ type: StringConstructor;
94
+ };
95
+ iconPos: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ hoverOverrides: {
100
+ type: ObjectConstructor;
101
+ };
102
+ activeOverrides: {
103
+ type: ObjectConstructor;
104
+ };
105
+ focusOverrides: {
106
+ type: ObjectConstructor;
107
+ };
108
+ }>, {}, {
109
+ hover: boolean;
110
+ active: boolean;
111
+ focus: boolean;
112
+ blocked: boolean;
113
+ }, {
114
+ baseStyle(): {
115
+ kind: string;
116
+ size: string;
117
+ flat: boolean;
118
+ shadow: boolean;
119
+ outline: boolean;
120
+ round: boolean;
121
+ ghost: boolean;
122
+ };
123
+ effectiveStyle(): {
124
+ kind: string;
125
+ size: string;
126
+ flat: boolean;
127
+ shadow: boolean;
128
+ outline: boolean;
129
+ round: boolean;
130
+ ghost: boolean;
131
+ };
132
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
133
+ tagName: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ href: {
138
+ type: StringConstructor;
139
+ };
140
+ label: {
141
+ type: StringConstructor;
142
+ };
143
+ title: {
144
+ type: StringConstructor;
145
+ };
146
+ kind: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
150
+ size: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ flat: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ shadow: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ };
162
+ outline: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ round: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ ghost: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ block: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ square: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ disabled: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
186
+ forceFocus: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
190
+ forceHover: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ forceActive: {
195
+ type: BooleanConstructor;
196
+ default: boolean;
197
+ };
198
+ icon: {
199
+ type: StringConstructor;
200
+ };
201
+ iconPos: {
202
+ type: StringConstructor;
203
+ default: string;
204
+ };
205
+ hoverOverrides: {
206
+ type: ObjectConstructor;
207
+ };
208
+ activeOverrides: {
209
+ type: ObjectConstructor;
210
+ };
211
+ focusOverrides: {
212
+ type: ObjectConstructor;
213
+ };
214
+ }>> & Readonly<{}>, {
215
+ tagName: string;
216
+ kind: string;
217
+ size: string;
218
+ flat: boolean;
219
+ shadow: boolean;
220
+ outline: boolean;
221
+ round: boolean;
222
+ ghost: boolean;
223
+ block: boolean;
224
+ square: boolean;
225
+ disabled: boolean;
226
+ forceFocus: boolean;
227
+ forceHover: boolean;
228
+ forceActive: boolean;
229
+ iconPos: string;
230
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
231
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
232
  export default _default;
package/dist/core.mjs CHANGED
@@ -1,10 +1,10 @@
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";
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 $, mergeProps as B } from "vue";
2
2
  const f = (t, n) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [i, l] of n)
5
5
  e[i] = l;
6
6
  return e;
7
- }, $ = {
7
+ }, j = {
8
8
  props: {
9
9
  tagName: { type: String, default: "button" },
10
10
  href: { type: String },
@@ -68,11 +68,11 @@ const f = (t, n) => {
68
68
  methods: {
69
69
  // TODO add debounce
70
70
  }
71
- }, j = {
71
+ }, C = {
72
72
  key: 0,
73
73
  class: "Label"
74
74
  };
75
- function C(t, n, e, i, l, o) {
75
+ function F(t, n, e, i, l, o) {
76
76
  return r(), p(S(e.tagName), {
77
77
  ref: "button",
78
78
  class: y(["Btn InputElement", [
@@ -115,7 +115,7 @@ function C(t, n, e, i, l, o) {
115
115
  class: y([e.icon, "Icon"])
116
116
  }, null, 2)) : c("", !0)
117
117
  ], !0),
118
- e.label ? (r(), d("span", j, g(e.label), 1)) : c("", !0),
118
+ e.label ? (r(), d("span", C, g(e.label), 1)) : c("", !0),
119
119
  u(t.$slots, "default", {
120
120
  hover: l.hover,
121
121
  active: l.active,
@@ -125,7 +125,7 @@ function C(t, n, e, i, l, o) {
125
125
  _: 3
126
126
  }, 40, ["class", "disabled", "title", "href"]);
127
127
  }
128
- const F = /* @__PURE__ */ f($, [["render", C], ["__scopeId", "data-v-09d29421"]]), x = {
128
+ const w = /* @__PURE__ */ f(j, [["render", F], ["__scopeId", "data-v-09d29421"]]), x = {
129
129
  props: {
130
130
  fill: { type: String, default: "none" }
131
131
  }
@@ -203,9 +203,9 @@ function P(t, n, e, i, l, o) {
203
203
  }, null, 8, ["dir"])
204
204
  ], 2);
205
205
  }
206
- const w = /* @__PURE__ */ f(A, [["render", P], ["__scopeId", "data-v-a4bb3614"]]), E = {
206
+ const T = /* @__PURE__ */ f(A, [["render", P], ["__scopeId", "data-v-a4bb3614"]]), E = {
207
207
  components: {
208
- Tab: w
208
+ Tab: T
209
209
  },
210
210
  props: {
211
211
  tagName: { default: "label" },
@@ -280,7 +280,7 @@ function Y(t, n, e, i, l, o) {
280
280
  onFocusout: n[3] || (n[3] = (a) => l.focus = !1)
281
281
  }, {
282
282
  default: v(() => [
283
- e.label ? (r(), d(V, { key: 0 }, [
283
+ e.label ? (r(), d($, { key: 0 }, [
284
284
  e.labelStyle === "tab" ? (r(), p(s, {
285
285
  key: 0,
286
286
  class: "Label TabLabel",
@@ -532,6 +532,9 @@ function ue(t, n, e, i, l, o) {
532
532
  }, 16);
533
533
  }
534
534
  const de = /* @__PURE__ */ f(re, [["render", ue], ["__scopeId", "data-v-d1f75aa4"]]), fe = {
535
+ components: {
536
+ Btn: w
537
+ },
535
538
  props: {
536
539
  to: { required: !0 },
537
540
  activeOverrides: { type: Object },
@@ -548,16 +551,16 @@ const de = /* @__PURE__ */ f(re, [["render", ue], ["__scopeId", "data-v-d1f75aa4
548
551
  }
549
552
  };
550
553
  function ce(t, n, e, i, l, o) {
551
- const s = b("Button"), a = b("RouterLink");
554
+ const s = b("Btn"), a = b("RouterLink");
552
555
  return r(), p(a, {
553
556
  to: e.to,
554
557
  custom: ""
555
558
  }, {
556
- default: v(({ href: _, navigate: k, isActive: m, isExactActive: T }) => [
559
+ default: v(({ href: _, navigate: k, isActive: m, isExactActive: V }) => [
557
560
  O(s, B({
558
561
  as: "a",
559
562
  href: _
560
- }, o.actualAttrs(m, T), { onClick: k }), null, 16, ["href", "onClick"])
563
+ }, o.actualAttrs(m, V), { onClick: k }), null, 16, ["href", "onClick"])
561
564
  ]),
562
565
  _: 1
563
566
  }, 8, ["to"]);
@@ -690,7 +693,7 @@ function Be(t, n, e, i, l, o) {
690
693
  }
691
694
  const Ie = /* @__PURE__ */ f(Se, [["render", Be], ["__scopeId", "data-v-ada4a00f"]]), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
692
695
  __proto__: null,
693
- Btn: F,
696
+ Btn: w,
694
697
  Filler: z,
695
698
  HGroup: G,
696
699
  InputBase: I,
@@ -699,13 +702,13 @@ const Ie = /* @__PURE__ */ f(Se, [["render", Be], ["__scopeId", "data-v-ada4a00f
699
702
  InputText: ae,
700
703
  InputTextarea: de,
701
704
  RouterBtn: pe,
702
- Tab: w,
705
+ Tab: T,
703
706
  TabCap: be,
704
707
  Toggle: _e,
705
708
  VGroup: Ie
706
709
  }, Symbol.toStringTag, { value: "Module" }));
707
710
  export {
708
- F as Btn,
711
+ w as Btn,
709
712
  z as Filler,
710
713
  G as HGroup,
711
714
  I as InputBase,
@@ -714,7 +717,7 @@ export {
714
717
  ae as InputText,
715
718
  de as InputTextarea,
716
719
  pe as RouterBtn,
717
- w as Tab,
720
+ T as Tab,
718
721
  be as TabCap,
719
722
  _e as Toggle,
720
723
  Ie as VGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightshadeui/core",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "Core Nightshade UI components",
5
5
  "author": "Boris Okunskiy",
6
6
  "license": "ISC",