@neobrut-vue/core 0.2.0 → 0.3.0

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +37 -2
  3. package/dist/components/NbAlertDialog/NbAlertDialog.vue.d.ts +40 -0
  4. package/dist/components/NbAlertDialog/index.d.ts +1 -0
  5. package/dist/components/NbCommand/NbCommand.vue.d.ts +44 -0
  6. package/dist/components/NbCommand/NbCommandPanel.vue.d.ts +18 -0
  7. package/dist/components/NbCommand/index.d.ts +2 -0
  8. package/dist/components/NbCommand/types.d.ts +8 -0
  9. package/dist/components/NbContextMenu/NbContextMenu.vue.d.ts +29 -0
  10. package/dist/components/NbContextMenu/NbContextMenuCheckboxItem.vue.d.ts +28 -0
  11. package/dist/components/NbContextMenu/NbContextMenuItem.vue.d.ts +28 -0
  12. package/dist/components/NbContextMenu/NbContextMenuLabel.vue.d.ts +17 -0
  13. package/dist/components/NbContextMenu/NbContextMenuRadioGroup.vue.d.ts +24 -0
  14. package/dist/components/NbContextMenu/NbContextMenuRadioItem.vue.d.ts +23 -0
  15. package/dist/components/NbContextMenu/NbContextMenuSeparator.vue.d.ts +2 -0
  16. package/dist/components/NbContextMenu/NbContextMenuShortcut.vue.d.ts +17 -0
  17. package/dist/components/NbContextMenu/NbContextMenuSub.vue.d.ts +23 -0
  18. package/dist/components/NbContextMenu/index.d.ts +9 -0
  19. package/dist/components/NbHoverCard/NbHoverCard.vue.d.ts +37 -0
  20. package/dist/components/NbHoverCard/index.d.ts +1 -0
  21. package/dist/components/NbNavigationMenu/NbNavigationMenu.vue.d.ts +25 -0
  22. package/dist/components/NbNavigationMenu/index.d.ts +2 -0
  23. package/dist/components/NbSheet/NbSheet.vue.d.ts +35 -0
  24. package/dist/components/NbSheet/index.d.ts +2 -0
  25. package/dist/index.d.ts +10 -1
  26. package/dist/neobrut-vue.css +1 -1
  27. package/dist/neobrut-vue.js +1427 -700
  28. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { defineComponent as v, openBlock as o, createBlock as N, unref as a, withCtx as u, renderSlot as _, createVNode as m, createElementVNode as c, toDisplayString as p, computed as $, createElementBlock as i, normalizeClass as B, createCommentVNode as h, createTextVNode as V, Fragment as P, renderList as D, mergeProps as k, ref as x, watch as M, onBeforeUnmount as F, withModifiers as K, nextTick as j, useSlots as H, resolveDynamicComponent as J, normalizeStyle as O, inject as X, provide as Q, withDirectives as W, vShow as Y } from "vue";
2
- import { AccordionRoot as Z, AccordionItem as ee, AccordionHeader as te, AccordionTrigger as ae, AccordionContent as le, AspectRatio as ne, AvatarRoot as oe, AvatarImage as se, AvatarFallback as ie, ComboboxRoot as de, ComboboxAnchor as re, ComboboxInput as ue, ComboboxTrigger as ce, ComboboxPortal as be, ComboboxContent as fe, ComboboxViewport as me, ComboboxEmpty as pe, ComboboxItem as he, ComboboxItemIndicator as ve, DropdownMenuRoot as ge, DropdownMenuTrigger as _e, DropdownMenuPortal as ye, DropdownMenuContent as $e, DropdownMenuItem as Ne, DropdownMenuSeparator as ke, NumberFieldRoot as Ie, NumberFieldDecrement as Be, NumberFieldInput as Ve, NumberFieldIncrement as we, PaginationRoot as xe, PaginationPrev as Se, PaginationList as Te, PaginationListItem as Ae, PaginationEllipsis as Ce, PaginationNext as Pe, PopoverRoot as De, PopoverTrigger as Me, PopoverPortal as Re, PopoverContent as qe, PopoverClose as Oe, ProgressRoot as Ee, ProgressIndicator as Ge, ScrollAreaRoot as ze, ScrollAreaViewport as Le, ScrollAreaScrollbar as Ue, ScrollAreaThumb as Fe, SelectRoot as Ke, SelectTrigger as je, SelectValue as He, SelectIcon as Je, SelectPortal as Xe, SelectContent as Qe, SelectScrollUpButton as We, SelectViewport as Ye, SelectScrollDownButton as Ze, SelectItem as et, SelectItemText as tt, SelectItemIndicator as at, Separator as lt, SliderRoot as nt, SliderTrack as ot, SliderRange as st, SliderThumb as it, ToastProvider as dt, ToastRoot as rt, ToastTitle as ut, ToastDescription as ct, ToastClose as bt, ToastViewport as ft, Toggle as mt, ToggleGroupRoot as pt, ToggleGroupItem as ht } from "reka-ui";
3
- function vt(e) {
1
+ import { defineComponent as _, openBlock as o, createBlock as y, unref as a, withCtx as d, renderSlot as h, createVNode as c, createElementVNode as f, toDisplayString as p, computed as N, createElementBlock as u, normalizeClass as I, createCommentVNode as g, createTextVNode as k, Fragment as B, renderList as T, mergeProps as x, ref as V, watch as w, onBeforeUnmount as ie, withModifiers as de, nextTick as re, useSlots as ue, resolveDynamicComponent as ce, normalizeStyle as L, inject as be, provide as fe, withDirectives as me, vShow as pe } from "vue";
2
+ import { AccordionRoot as _e, AccordionItem as ve, AccordionHeader as he, AccordionTrigger as ge, AccordionContent as ye, AspectRatio as $e, AvatarRoot as Ne, AvatarImage as ke, AvatarFallback as xe, ComboboxRoot as H, ComboboxAnchor as K, ComboboxInput as j, ComboboxTrigger as Ie, ComboboxPortal as Ce, ComboboxContent as X, ComboboxViewport as J, ComboboxEmpty as Q, ComboboxItem as W, ComboboxItemIndicator as Ve, ComboboxGroup as Be, ComboboxLabel as we, DialogRoot as Y, DialogTrigger as Z, DialogPortal as ee, DialogOverlay as te, DialogContent as ae, DialogTitle as le, DialogClose as ne, ContextMenuRoot as Se, ContextMenuTrigger as Te, ContextMenuPortal as Me, ContextMenuContent as Ae, ContextMenuCheckboxItem as De, ContextMenuItemIndicator as oe, ContextMenuItem as Oe, ContextMenuLabel as Pe, ContextMenuRadioGroup as Re, ContextMenuRadioItem as Le, ContextMenuSeparator as Ue, ContextMenuSub as Ge, ContextMenuSubTrigger as qe, ContextMenuSubContent as Ee, AlertDialogRoot as ze, AlertDialogTrigger as Fe, AlertDialogPortal as He, AlertDialogOverlay as Ke, AlertDialogContent as je, AlertDialogTitle as Xe, AlertDialogDescription as Je, AlertDialogCancel as Qe, AlertDialogAction as We, DropdownMenuRoot as Ye, DropdownMenuTrigger as Ze, DropdownMenuPortal as et, DropdownMenuContent as tt, DropdownMenuItem as at, DropdownMenuSeparator as lt, HoverCardRoot as nt, HoverCardTrigger as ot, HoverCardPortal as st, HoverCardContent as it, NavigationMenuRoot as dt, NavigationMenuList as rt, NavigationMenuItem as ut, NavigationMenuTrigger as ct, NavigationMenuContent as bt, NavigationMenuLink as E, NumberFieldRoot as ft, NumberFieldDecrement as mt, NumberFieldInput as pt, NumberFieldIncrement as _t, PaginationRoot as vt, PaginationPrev as ht, PaginationList as gt, PaginationListItem as yt, PaginationEllipsis as $t, PaginationNext as Nt, PopoverRoot as kt, PopoverTrigger as xt, PopoverPortal as It, PopoverContent as Ct, PopoverClose as Vt, ProgressRoot as Bt, ProgressIndicator as wt, ScrollAreaRoot as St, ScrollAreaViewport as Tt, ScrollAreaScrollbar as Mt, ScrollAreaThumb as At, DialogDescription as Dt, SelectRoot as Ot, SelectTrigger as Pt, SelectValue as Rt, SelectIcon as Lt, SelectPortal as Ut, SelectContent as Gt, SelectScrollUpButton as qt, SelectViewport as Et, SelectScrollDownButton as zt, SelectItem as Ft, SelectItemText as Ht, SelectItemIndicator as Kt, Separator as jt, SliderRoot as Xt, SliderTrack as Jt, SliderRange as Qt, SliderThumb as Wt, ToastProvider as Yt, ToastRoot as Zt, ToastTitle as ea, ToastDescription as ta, ToastClose as aa, ToastViewport as la, Toggle as na, ToggleGroupRoot as oa, ToggleGroupItem as sa } from "reka-ui";
3
+ function ia(e) {
4
4
  return {
5
5
  install(n) {
6
6
  Object.entries(e).forEach(([t, s]) => n.component(t, s));
7
7
  }
8
8
  };
9
9
  }
10
- const gt = /* @__PURE__ */ v({
10
+ const da = /* @__PURE__ */ _({
11
11
  __name: "NbAccordion",
12
12
  props: {
13
13
  modelValue: {},
@@ -18,7 +18,7 @@ const gt = /* @__PURE__ */ v({
18
18
  emits: ["update:modelValue"],
19
19
  setup(e, { emit: n }) {
20
20
  const t = n;
21
- return (s, l) => (o(), N(a(Z), {
21
+ return (s, l) => (o(), y(a(_e), {
22
22
  class: "nb-root nb-accordion",
23
23
  type: "single",
24
24
  "model-value": e.modelValue,
@@ -27,13 +27,13 @@ const gt = /* @__PURE__ */ v({
27
27
  disabled: e.disabled,
28
28
  "onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
29
29
  }, {
30
- default: u(() => [
31
- _(s.$slots, "default")
30
+ default: d(() => [
31
+ h(s.$slots, "default")
32
32
  ]),
33
33
  _: 3
34
34
  }, 8, ["model-value", "default-value", "collapsible", "disabled"]));
35
35
  }
36
- }), _t = { class: "nb-accordion__body" }, yt = /* @__PURE__ */ v({
36
+ }), ra = { class: "nb-accordion__body" }, ua = /* @__PURE__ */ _({
37
37
  __name: "NbAccordionItem",
38
38
  props: {
39
39
  value: {},
@@ -41,24 +41,24 @@ const gt = /* @__PURE__ */ v({
41
41
  disabled: { type: Boolean, default: !1 }
42
42
  },
43
43
  setup(e) {
44
- return (n, t) => (o(), N(a(ee), {
44
+ return (n, t) => (o(), y(a(ve), {
45
45
  class: "nb-accordion__item",
46
46
  value: e.value,
47
47
  disabled: e.disabled
48
48
  }, {
49
- default: u(() => [
50
- m(a(te), { class: "nb-accordion__header" }, {
51
- default: u(() => [
52
- m(a(ae), { class: "nb-accordion__trigger" }, {
53
- default: u(() => [
54
- c("span", null, p(e.title), 1),
55
- t[0] || (t[0] = c("svg", {
49
+ default: d(() => [
50
+ c(a(he), { class: "nb-accordion__header" }, {
51
+ default: d(() => [
52
+ c(a(ge), { class: "nb-accordion__trigger" }, {
53
+ default: d(() => [
54
+ f("span", null, p(e.title), 1),
55
+ t[0] || (t[0] = f("svg", {
56
56
  class: "nb-accordion__icon",
57
57
  viewBox: "0 0 16 16",
58
58
  "aria-hidden": "true",
59
59
  focusable: "false"
60
60
  }, [
61
- c("path", { d: "m3 6 5 5 5-5" })
61
+ f("path", { d: "m3 6 5 5 5-5" })
62
62
  ], -1))
63
63
  ]),
64
64
  _: 1
@@ -66,10 +66,10 @@ const gt = /* @__PURE__ */ v({
66
66
  ]),
67
67
  _: 1
68
68
  }),
69
- m(a(le), { class: "nb-accordion__content" }, {
70
- default: u(() => [
71
- c("div", _t, [
72
- _(n.$slots, "default")
69
+ c(a(ye), { class: "nb-accordion__content" }, {
70
+ default: d(() => [
71
+ f("div", ra, [
72
+ h(n.$slots, "default")
73
73
  ])
74
74
  ]),
75
75
  _: 3
@@ -78,41 +78,41 @@ const gt = /* @__PURE__ */ v({
78
78
  _: 3
79
79
  }, 8, ["value", "disabled"]));
80
80
  }
81
- }), $t = /* @__PURE__ */ v({
81
+ }), ca = /* @__PURE__ */ _({
82
82
  __name: "NbAspectRatio",
83
83
  props: {
84
84
  ratio: { default: 1 }
85
85
  },
86
86
  setup(e) {
87
- return (n, t) => (o(), N(a(ne), {
87
+ return (n, t) => (o(), y(a($e), {
88
88
  class: "nb-root nb-aspect-ratio",
89
89
  ratio: e.ratio
90
90
  }, {
91
- default: u(() => [
92
- _(n.$slots, "default")
91
+ default: d(() => [
92
+ h(n.$slots, "default")
93
93
  ]),
94
94
  _: 3
95
95
  }, 8, ["ratio"]));
96
96
  }
97
97
  });
98
- function C(...e) {
98
+ function O(...e) {
99
99
  return e.filter(Boolean).join(" ");
100
100
  }
101
- const Nt = /* @__PURE__ */ v({
101
+ const ba = /* @__PURE__ */ _({
102
102
  __name: "NbBadge",
103
103
  props: {
104
104
  tone: { default: "primary" },
105
105
  size: { default: "md" }
106
106
  },
107
107
  setup(e) {
108
- const n = e, t = $(() => C(`nb-badge--${n.tone}`, `nb-badge--${n.size}`));
109
- return (s, l) => (o(), i("span", {
110
- class: B(["nb-root nb-badge", t.value])
108
+ const n = e, t = N(() => O(`nb-badge--${n.tone}`, `nb-badge--${n.size}`));
109
+ return (s, l) => (o(), u("span", {
110
+ class: I(["nb-root nb-badge", t.value])
111
111
  }, [
112
- _(s.$slots, "default")
112
+ h(s.$slots, "default")
113
113
  ], 2));
114
114
  }
115
- }), kt = /* @__PURE__ */ v({
115
+ }), fa = /* @__PURE__ */ _({
116
116
  __name: "NbAvatar",
117
117
  props: {
118
118
  name: {},
@@ -121,26 +121,26 @@ const Nt = /* @__PURE__ */ v({
121
121
  tone: { default: "primary" }
122
122
  },
123
123
  setup(e) {
124
- const n = e, t = $(() => n.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
125
- return (s, l) => (o(), N(a(oe), {
126
- class: B(["nb-root nb-avatar", [`nb-avatar--${e.size}`, `nb-avatar--${e.tone}`]]),
124
+ const n = e, t = N(() => n.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
125
+ return (s, l) => (o(), y(a(Ne), {
126
+ class: I(["nb-root nb-avatar", [`nb-avatar--${e.size}`, `nb-avatar--${e.tone}`]]),
127
127
  role: "img",
128
128
  "aria-label": e.name
129
129
  }, {
130
- default: u(() => [
131
- e.src ? (o(), N(a(se), {
130
+ default: d(() => [
131
+ e.src ? (o(), y(a(ke), {
132
132
  key: 0,
133
133
  class: "nb-avatar__image",
134
134
  src: e.src,
135
135
  alt: "",
136
136
  "aria-hidden": "true"
137
- }, null, 8, ["src"])) : h("", !0),
138
- m(a(ie), {
137
+ }, null, 8, ["src"])) : g("", !0),
138
+ c(a(xe), {
139
139
  class: "nb-avatar__fallback",
140
140
  "aria-hidden": "true"
141
141
  }, {
142
- default: u(() => [
143
- V(p(t.value), 1)
142
+ default: d(() => [
143
+ k(p(t.value), 1)
144
144
  ]),
145
145
  _: 1
146
146
  })
@@ -148,46 +148,46 @@ const Nt = /* @__PURE__ */ v({
148
148
  _: 1
149
149
  }, 8, ["class", "aria-label"]));
150
150
  }
151
- }), It = ["aria-label"], Bt = ["href"], Vt = ["aria-current"], wt = {
151
+ }), ma = ["aria-label"], pa = ["href"], _a = ["aria-current"], va = {
152
152
  key: 2,
153
153
  class: "nb-breadcrumbs__separator",
154
154
  viewBox: "0 0 16 16",
155
155
  "aria-hidden": "true",
156
156
  focusable: "false"
157
- }, xt = /* @__PURE__ */ v({
157
+ }, ha = /* @__PURE__ */ _({
158
158
  __name: "NbBreadcrumbs",
159
159
  props: {
160
160
  items: {},
161
161
  label: { default: "Breadcrumb" }
162
162
  },
163
163
  setup(e) {
164
- return (n, t) => (o(), i("nav", {
164
+ return (n, t) => (o(), u("nav", {
165
165
  class: "nb-root nb-breadcrumbs",
166
166
  "aria-label": e.label
167
167
  }, [
168
- c("ol", null, [
169
- (o(!0), i(P, null, D(e.items, (s, l) => (o(), i("li", {
168
+ f("ol", null, [
169
+ (o(!0), u(B, null, T(e.items, (s, l) => (o(), u("li", {
170
170
  key: `${s.label}-${l}`
171
171
  }, [
172
- s.href && l < e.items.length - 1 ? (o(), i("a", {
172
+ s.href && l < e.items.length - 1 ? (o(), u("a", {
173
173
  key: 0,
174
174
  href: s.href
175
- }, p(s.label), 9, Bt)) : (o(), i("span", {
175
+ }, p(s.label), 9, pa)) : (o(), u("span", {
176
176
  key: 1,
177
177
  "aria-current": l === e.items.length - 1 ? "page" : void 0
178
- }, p(s.label), 9, Vt)),
179
- l < e.items.length - 1 ? (o(), i("svg", wt, [...t[0] || (t[0] = [
180
- c("path", { d: "m6 3 5 5-5 5" }, null, -1)
181
- ])])) : h("", !0)
178
+ }, p(s.label), 9, _a)),
179
+ l < e.items.length - 1 ? (o(), u("svg", va, [...t[0] || (t[0] = [
180
+ f("path", { d: "m6 3 5 5-5 5" }, null, -1)
181
+ ])])) : g("", !0)
182
182
  ]))), 128))
183
183
  ])
184
- ], 8, It));
184
+ ], 8, ma));
185
185
  }
186
- }), St = ["type", "disabled", "aria-busy"], Tt = {
186
+ }), ga = ["type", "disabled", "aria-busy"], ya = {
187
187
  key: 0,
188
188
  class: "nb-button__loader",
189
189
  "aria-hidden": "true"
190
- }, At = /* @__PURE__ */ v({
190
+ }, $a = /* @__PURE__ */ _({
191
191
  inheritAttrs: !1,
192
192
  __name: "NbButton",
193
193
  props: {
@@ -198,46 +198,46 @@ const Nt = /* @__PURE__ */ v({
198
198
  disabled: { type: Boolean, default: !1 }
199
199
  },
200
200
  setup(e) {
201
- const n = e, t = $(() => C(
201
+ const n = e, t = N(() => O(
202
202
  `nb-button--${n.variant}`,
203
203
  `nb-button--${n.size}`,
204
204
  n.loading && "is-loading"
205
205
  ));
206
- return (s, l) => (o(), i("button", k(s.$attrs, {
206
+ return (s, l) => (o(), u("button", x(s.$attrs, {
207
207
  class: ["nb-root nb-button", t.value],
208
208
  type: e.type,
209
209
  disabled: e.disabled || e.loading,
210
210
  "aria-busy": e.loading || void 0
211
211
  }), [
212
- e.loading ? (o(), i("span", Tt, "✦")) : h("", !0),
213
- c("span", null, [
214
- _(s.$slots, "default")
212
+ e.loading ? (o(), u("span", ya, "✦")) : g("", !0),
213
+ f("span", null, [
214
+ h(s.$slots, "default")
215
215
  ])
216
- ], 16, St));
216
+ ], 16, ga));
217
217
  }
218
- }), Ct = ["aria-label", "data-orientation"], Pt = /* @__PURE__ */ v({
218
+ }), Na = ["aria-label", "data-orientation"], ka = /* @__PURE__ */ _({
219
219
  __name: "NbButtonGroup",
220
220
  props: {
221
221
  orientation: { default: "horizontal" },
222
222
  label: {}
223
223
  },
224
224
  setup(e) {
225
- return (n, t) => (o(), i("div", {
225
+ return (n, t) => (o(), u("div", {
226
226
  class: "nb-root nb-button-group",
227
227
  role: "group",
228
228
  "aria-label": e.label,
229
229
  "data-orientation": e.orientation
230
230
  }, [
231
- _(n.$slots, "default")
232
- ], 8, Ct));
231
+ h(n.$slots, "default")
232
+ ], 8, Na));
233
233
  }
234
- }), Dt = {
234
+ }), xa = {
235
235
  key: 0,
236
236
  class: "nb-card__header"
237
- }, Mt = { class: "nb-card__body" }, Rt = {
237
+ }, Ia = { class: "nb-card__body" }, Ca = {
238
238
  key: 1,
239
239
  class: "nb-card__footer"
240
- }, qt = /* @__PURE__ */ v({
240
+ }, Va = /* @__PURE__ */ _({
241
241
  inheritAttrs: !1,
242
242
  __name: "NbCard",
243
243
  props: {
@@ -245,41 +245,41 @@ const Nt = /* @__PURE__ */ v({
245
245
  interactive: { type: Boolean, default: !1 }
246
246
  },
247
247
  setup(e) {
248
- const n = e, t = $(() => C(
248
+ const n = e, t = N(() => O(
249
249
  `nb-card--${n.tone}`,
250
250
  n.interactive && "nb-card--interactive"
251
251
  ));
252
- return (s, l) => (o(), i("article", k(s.$attrs, {
252
+ return (s, l) => (o(), u("article", x(s.$attrs, {
253
253
  class: ["nb-root nb-card", t.value]
254
254
  }), [
255
- s.$slots.header ? (o(), i("header", Dt, [
256
- _(s.$slots, "header")
257
- ])) : h("", !0),
258
- c("div", Mt, [
259
- _(s.$slots, "default")
255
+ s.$slots.header ? (o(), u("header", xa, [
256
+ h(s.$slots, "header")
257
+ ])) : g("", !0),
258
+ f("div", Ia, [
259
+ h(s.$slots, "default")
260
260
  ]),
261
- s.$slots.footer ? (o(), i("footer", Rt, [
262
- _(s.$slots, "footer")
263
- ])) : h("", !0)
261
+ s.$slots.footer ? (o(), u("footer", Ca, [
262
+ h(s.$slots, "footer")
263
+ ])) : g("", !0)
264
264
  ], 16));
265
265
  }
266
266
  });
267
- let L = 0;
268
- function S(e = "nb") {
269
- return L += 1, `${e}-${L}`;
267
+ let z = 0;
268
+ function M(e = "nb") {
269
+ return z += 1, `${e}-${z}`;
270
270
  }
271
- function w(e, n) {
272
- const t = n ?? S(e);
271
+ function S(e, n) {
272
+ const t = n ?? M(e);
273
273
  return {
274
274
  inputId: t,
275
275
  hintId: `${t}-hint`,
276
276
  errorId: `${t}-error`
277
277
  };
278
278
  }
279
- function A(e, n, t, s) {
279
+ function D(e, n, t, s) {
280
280
  return [e && t, n && s].filter(Boolean).join(" ") || void 0;
281
281
  }
282
- const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkbox__label" }, zt = /* @__PURE__ */ v({
282
+ const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkbox__label" }, Ta = /* @__PURE__ */ _({
283
283
  inheritAttrs: !1,
284
284
  __name: "NbCheckbox",
285
285
  props: {
@@ -290,27 +290,27 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
290
290
  },
291
291
  emits: ["update:modelValue"],
292
292
  setup(e, { emit: n }) {
293
- const t = e, s = n, l = w("checkbox", t.id);
294
- return (b, f) => (o(), i("label", {
293
+ const t = e, s = n, l = S("checkbox", t.id);
294
+ return (b, m) => (o(), u("label", {
295
295
  class: "nb-root nb-checkbox",
296
296
  for: a(l).inputId
297
297
  }, [
298
- c("input", k(b.$attrs, {
298
+ f("input", x(b.$attrs, {
299
299
  id: a(l).inputId,
300
300
  class: "nb-checkbox__input",
301
301
  type: "checkbox",
302
302
  checked: e.modelValue,
303
303
  disabled: e.disabled,
304
- onChange: f[0] || (f[0] = (d) => s("update:modelValue", d.target.checked))
305
- }), null, 16, Et),
306
- f[1] || (f[1] = c("span", {
304
+ onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
305
+ }), null, 16, wa),
306
+ m[1] || (m[1] = f("span", {
307
307
  class: "nb-checkbox__box",
308
308
  "aria-hidden": "true"
309
309
  }, "✓", -1)),
310
- c("span", Gt, p(e.label), 1)
311
- ], 8, Ot));
310
+ f("span", Sa, p(e.label), 1)
311
+ ], 8, Ba));
312
312
  }
313
- }), Lt = { class: "nb-root nb-field" }, Ut = ["for"], Ft = ["id"], Kt = ["id"], jt = /* @__PURE__ */ v({
313
+ }), Ma = { class: "nb-root nb-field" }, Aa = ["for"], Da = ["id"], Oa = ["id"], Pa = /* @__PURE__ */ _({
314
314
  inheritAttrs: !1,
315
315
  __name: "NbCombobox",
316
316
  props: {
@@ -328,49 +328,49 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
328
328
  },
329
329
  emits: ["update:modelValue"],
330
330
  setup(e, { emit: n }) {
331
- const t = e, s = n, l = w("combobox", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
332
- function f(r) {
333
- return t.options.find((g) => g.value === r)?.label ?? "";
331
+ const t = e, s = n, l = S("combobox", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
332
+ function m(r) {
333
+ return t.options.find((v) => v.value === r)?.label ?? "";
334
334
  }
335
- function d(r) {
335
+ function i(r) {
336
336
  typeof r == "string" && s("update:modelValue", r);
337
337
  }
338
- return (r, g) => (o(), i("div", Lt, [
339
- e.label ? (o(), i("label", {
338
+ return (r, v) => (o(), u("div", Ma, [
339
+ e.label ? (o(), u("label", {
340
340
  key: 0,
341
341
  class: "nb-field__label",
342
342
  for: a(l).inputId
343
- }, p(e.label), 9, Ut)) : h("", !0),
344
- m(a(de), {
343
+ }, p(e.label), 9, Aa)) : g("", !0),
344
+ c(a(H), {
345
345
  "model-value": e.modelValue,
346
346
  disabled: e.disabled,
347
347
  required: e.required,
348
348
  name: e.name,
349
349
  "open-on-click": "",
350
- "onUpdate:modelValue": d
350
+ "onUpdate:modelValue": i
351
351
  }, {
352
- default: u(() => [
353
- m(a(re), { class: "nb-combobox__anchor" }, {
354
- default: u(() => [
355
- m(a(ue), k(r.$attrs, {
352
+ default: d(() => [
353
+ c(a(K), { class: "nb-combobox__anchor" }, {
354
+ default: d(() => [
355
+ c(a(j), x(r.$attrs, {
356
356
  id: a(l).inputId,
357
357
  class: "nb-combobox__input",
358
- "display-value": f,
358
+ "display-value": m,
359
359
  placeholder: e.placeholder,
360
360
  "aria-invalid": e.error ? "true" : void 0,
361
361
  "aria-describedby": b.value
362
362
  }), null, 16, ["id", "placeholder", "aria-invalid", "aria-describedby"]),
363
- m(a(ce), {
363
+ c(a(Ie), {
364
364
  class: "nb-combobox__trigger",
365
365
  "aria-label": "Show options"
366
366
  }, {
367
- default: u(() => [...g[0] || (g[0] = [
368
- c("svg", {
367
+ default: d(() => [...v[0] || (v[0] = [
368
+ f("svg", {
369
369
  viewBox: "0 0 16 16",
370
370
  "aria-hidden": "true",
371
371
  focusable: "false"
372
372
  }, [
373
- c("path", { d: "m3 6 5 5 5-5" })
373
+ f("path", { d: "m3 6 5 5 5-5" })
374
374
  ], -1)
375
375
  ])]),
376
376
  _: 1
@@ -378,43 +378,43 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
378
378
  ]),
379
379
  _: 1
380
380
  }),
381
- m(a(be), null, {
382
- default: u(() => [
383
- m(a(fe), {
381
+ c(a(Ce), null, {
382
+ default: d(() => [
383
+ c(a(X), {
384
384
  class: "nb-root nb-combobox__content",
385
385
  position: "popper",
386
386
  align: "start",
387
387
  "side-offset": 5
388
388
  }, {
389
- default: u(() => [
390
- m(a(me), { class: "nb-combobox__viewport" }, {
391
- default: u(() => [
392
- m(a(pe), { class: "nb-combobox__empty" }, {
393
- default: u(() => [
394
- V(p(e.emptyText), 1)
389
+ default: d(() => [
390
+ c(a(J), { class: "nb-combobox__viewport" }, {
391
+ default: d(() => [
392
+ c(a(Q), { class: "nb-combobox__empty" }, {
393
+ default: d(() => [
394
+ k(p(e.emptyText), 1)
395
395
  ]),
396
396
  _: 1
397
397
  }),
398
- (o(!0), i(P, null, D(e.options, (y) => (o(), N(a(he), {
399
- key: y.value,
398
+ (o(!0), u(B, null, T(e.options, ($) => (o(), y(a(W), {
399
+ key: $.value,
400
400
  class: "nb-combobox__item",
401
- value: y.value,
402
- "text-value": y.label,
403
- disabled: y.disabled,
404
- "data-value": y.value
401
+ value: $.value,
402
+ "text-value": $.label,
403
+ disabled: $.disabled,
404
+ "data-value": $.value
405
405
  }, {
406
- default: u(() => [
407
- c("span", null, p(y.label), 1),
408
- m(a(ve), {
406
+ default: d(() => [
407
+ f("span", null, p($.label), 1),
408
+ c(a(Ve), {
409
409
  class: "nb-combobox__indicator",
410
410
  "aria-hidden": "true"
411
411
  }, {
412
- default: u(() => [...g[1] || (g[1] = [
413
- c("svg", {
412
+ default: d(() => [...v[1] || (v[1] = [
413
+ f("svg", {
414
414
  viewBox: "0 0 16 16",
415
415
  focusable: "false"
416
416
  }, [
417
- c("path", { d: "m3 8 3 3 7-7" })
417
+ f("path", { d: "m3 8 3 3 7-7" })
418
418
  ], -1)
419
419
  ])]),
420
420
  _: 1
@@ -434,19 +434,425 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
434
434
  ]),
435
435
  _: 1
436
436
  }, 8, ["model-value", "disabled", "required", "name"]),
437
- e.hint ? (o(), i("span", {
437
+ e.hint ? (o(), u("span", {
438
438
  key: 1,
439
439
  id: a(l).hintId,
440
440
  class: "nb-field__hint"
441
- }, p(e.hint), 9, Ft)) : h("", !0),
442
- e.error ? (o(), i("span", {
441
+ }, p(e.hint), 9, Da)) : g("", !0),
442
+ e.error ? (o(), u("span", {
443
443
  key: 2,
444
444
  id: a(l).errorId,
445
445
  class: "nb-field__error"
446
- }, p(e.error), 9, Kt)) : h("", !0)
446
+ }, p(e.error), 9, Oa)) : g("", !0)
447
447
  ]));
448
448
  }
449
- }), Ht = { class: "nb-alert__content" }, Jt = { key: 0 }, Xt = /* @__PURE__ */ v({
449
+ }), Ra = {
450
+ key: 0,
451
+ class: "nb-command__shortcut",
452
+ "aria-hidden": "true"
453
+ }, F = /* @__PURE__ */ _({
454
+ __name: "NbCommandPanel",
455
+ props: {
456
+ modelValue: { default: "" },
457
+ options: {},
458
+ label: {},
459
+ placeholder: {},
460
+ emptyText: {}
461
+ },
462
+ emits: ["update:modelValue", "select"],
463
+ setup(e, { emit: n }) {
464
+ const t = e, s = n, l = N(() => {
465
+ const m = /* @__PURE__ */ new Map();
466
+ for (const i of t.options) {
467
+ const r = i.group ?? "";
468
+ m.set(r, [...m.get(r) ?? [], i]);
469
+ }
470
+ return Array.from(m, ([i, r]) => ({ label: i, options: r }));
471
+ });
472
+ function b(m) {
473
+ if (typeof m != "string") return;
474
+ const i = t.options.find((r) => r.value === m);
475
+ i && (s("update:modelValue", m), s("select", i));
476
+ }
477
+ return (m, i) => (o(), y(a(H), {
478
+ class: "nb-command",
479
+ "model-value": e.modelValue,
480
+ open: !0,
481
+ "reset-search-term-on-select": !1,
482
+ "onUpdate:modelValue": b
483
+ }, {
484
+ default: d(() => [
485
+ c(a(K), { class: "nb-command__search" }, {
486
+ default: d(() => [
487
+ i[0] || (i[0] = f("svg", {
488
+ viewBox: "0 0 20 20",
489
+ "aria-hidden": "true",
490
+ focusable: "false"
491
+ }, [
492
+ f("circle", {
493
+ cx: "8.5",
494
+ cy: "8.5",
495
+ r: "5.5"
496
+ }),
497
+ f("path", { d: "m13 13 4 4" })
498
+ ], -1)),
499
+ c(a(j), {
500
+ class: "nb-command__input",
501
+ "aria-label": e.label,
502
+ placeholder: e.placeholder,
503
+ "display-value": () => ""
504
+ }, null, 8, ["aria-label", "placeholder"])
505
+ ]),
506
+ _: 1
507
+ }),
508
+ c(a(X), { class: "nb-command__content" }, {
509
+ default: d(() => [
510
+ c(a(J), { class: "nb-command__viewport" }, {
511
+ default: d(() => [
512
+ c(a(Q), { class: "nb-command__empty" }, {
513
+ default: d(() => [
514
+ k(p(e.emptyText), 1)
515
+ ]),
516
+ _: 1
517
+ }),
518
+ (o(!0), u(B, null, T(l.value, (r) => (o(), y(a(Be), {
519
+ key: r.label || "default",
520
+ class: "nb-command__group"
521
+ }, {
522
+ default: d(() => [
523
+ r.label ? (o(), y(a(we), {
524
+ key: 0,
525
+ class: "nb-command__group-label"
526
+ }, {
527
+ default: d(() => [
528
+ k(p(r.label), 1)
529
+ ]),
530
+ _: 2
531
+ }, 1024)) : g("", !0),
532
+ (o(!0), u(B, null, T(r.options, (v) => (o(), y(a(W), {
533
+ key: v.value,
534
+ class: "nb-command__item",
535
+ value: v.value,
536
+ "text-value": [v.label, ...v.keywords ?? []].join(" "),
537
+ disabled: v.disabled,
538
+ "data-value": v.value
539
+ }, {
540
+ default: d(() => [
541
+ f("span", null, p(v.label), 1),
542
+ v.shortcut ? (o(), u("span", Ra, p(v.shortcut), 1)) : g("", !0)
543
+ ]),
544
+ _: 2
545
+ }, 1032, ["value", "text-value", "disabled", "data-value"]))), 128))
546
+ ]),
547
+ _: 2
548
+ }, 1024))), 128))
549
+ ]),
550
+ _: 1
551
+ })
552
+ ]),
553
+ _: 1
554
+ })
555
+ ]),
556
+ _: 1
557
+ }, 8, ["model-value"]));
558
+ }
559
+ }), La = { class: "nb-command-dialog__header" }, Ua = /* @__PURE__ */ _({
560
+ __name: "NbCommand",
561
+ props: {
562
+ modelValue: { default: "" },
563
+ options: {},
564
+ label: { default: "Command menu" },
565
+ placeholder: { default: "Type a command or search…" },
566
+ emptyText: { default: "No commands found" },
567
+ dialog: { type: Boolean, default: !1 },
568
+ open: { type: Boolean, default: void 0 },
569
+ defaultOpen: { type: Boolean, default: !1 }
570
+ },
571
+ emits: ["update:modelValue", "update:open", "select"],
572
+ setup(e, { emit: n }) {
573
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
574
+ w(() => t.open, (r) => {
575
+ r !== void 0 && (l.value = r);
576
+ });
577
+ function m(r) {
578
+ l.value = r, s("update:open", r);
579
+ }
580
+ function i(r) {
581
+ s("select", r), t.dialog && m(!1);
582
+ }
583
+ return (r, v) => e.dialog ? (o(), y(a(Y), {
584
+ key: 0,
585
+ open: b.value,
586
+ "onUpdate:open": m
587
+ }, {
588
+ default: d(() => [
589
+ c(a(Z), { class: "nb-root nb-overlay-trigger" }, {
590
+ default: d(() => [
591
+ h(r.$slots, "trigger")
592
+ ]),
593
+ _: 3
594
+ }),
595
+ c(a(ee), null, {
596
+ default: d(() => [
597
+ c(a(te), { class: "nb-root nb-command-dialog__overlay" }),
598
+ c(a(ae), {
599
+ "aria-describedby": void 0,
600
+ class: "nb-root nb-command-dialog"
601
+ }, {
602
+ default: d(() => [
603
+ f("header", La, [
604
+ c(a(le), { class: "nb-command-dialog__title" }, {
605
+ default: d(() => [
606
+ k(p(e.label), 1)
607
+ ]),
608
+ _: 1
609
+ }),
610
+ c(a(ne), {
611
+ class: "nb-overlay-close",
612
+ "aria-label": "Close command menu"
613
+ }, {
614
+ default: d(() => [...v[2] || (v[2] = [
615
+ k("×", -1)
616
+ ])]),
617
+ _: 1
618
+ })
619
+ ]),
620
+ c(F, {
621
+ "model-value": e.modelValue,
622
+ options: e.options,
623
+ label: e.label,
624
+ placeholder: e.placeholder,
625
+ "empty-text": e.emptyText,
626
+ "onUpdate:modelValue": v[0] || (v[0] = ($) => s("update:modelValue", $)),
627
+ onSelect: i
628
+ }, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"])
629
+ ]),
630
+ _: 1
631
+ })
632
+ ]),
633
+ _: 1
634
+ })
635
+ ]),
636
+ _: 3
637
+ }, 8, ["open"])) : (o(), y(F, {
638
+ key: 1,
639
+ class: "nb-root",
640
+ "model-value": e.modelValue,
641
+ options: e.options,
642
+ label: e.label,
643
+ placeholder: e.placeholder,
644
+ "empty-text": e.emptyText,
645
+ "onUpdate:modelValue": v[1] || (v[1] = ($) => s("update:modelValue", $)),
646
+ onSelect: i
647
+ }, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"]));
648
+ }
649
+ }), Ga = /* @__PURE__ */ _({
650
+ __name: "NbContextMenu",
651
+ props: {
652
+ open: { type: Boolean, default: void 0 },
653
+ defaultOpen: { type: Boolean, default: !1 }
654
+ },
655
+ emits: ["update:open"],
656
+ setup(e, { emit: n }) {
657
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
658
+ w(() => t.open, (i) => {
659
+ i !== void 0 && (l.value = i);
660
+ });
661
+ function m(i) {
662
+ l.value = i, s("update:open", i);
663
+ }
664
+ return (i, r) => (o(), y(a(Se), {
665
+ open: b.value,
666
+ "onUpdate:open": m
667
+ }, {
668
+ default: d(() => [
669
+ c(a(Te), { "as-child": "" }, {
670
+ default: d(() => [
671
+ h(i.$slots, "trigger")
672
+ ]),
673
+ _: 3
674
+ }),
675
+ c(a(Me), null, {
676
+ default: d(() => [
677
+ c(a(Ae), {
678
+ class: "nb-root nb-context-menu",
679
+ "side-offset": 6
680
+ }, {
681
+ default: d(() => [
682
+ h(i.$slots, "default")
683
+ ]),
684
+ _: 3
685
+ })
686
+ ]),
687
+ _: 3
688
+ })
689
+ ]),
690
+ _: 3
691
+ }, 8, ["open"]));
692
+ }
693
+ }), qa = /* @__PURE__ */ _({
694
+ __name: "NbContextMenuCheckboxItem",
695
+ props: {
696
+ modelValue: { type: Boolean, default: !1 },
697
+ disabled: { type: Boolean, default: !1 }
698
+ },
699
+ emits: ["update:modelValue"],
700
+ setup(e, { emit: n }) {
701
+ const t = n;
702
+ return (s, l) => (o(), y(a(De), {
703
+ class: "nb-context-menu__item nb-context-menu__item--choice",
704
+ "model-value": e.modelValue,
705
+ disabled: e.disabled,
706
+ "onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
707
+ }, {
708
+ default: d(() => [
709
+ c(a(oe), {
710
+ class: "nb-context-menu__indicator",
711
+ "aria-hidden": "true"
712
+ }, {
713
+ default: d(() => [...l[1] || (l[1] = [
714
+ k("✓", -1)
715
+ ])]),
716
+ _: 1
717
+ }),
718
+ h(s.$slots, "default")
719
+ ]),
720
+ _: 3
721
+ }, 8, ["model-value", "disabled"]));
722
+ }
723
+ }), Ea = /* @__PURE__ */ _({
724
+ __name: "NbContextMenuItem",
725
+ props: {
726
+ disabled: { type: Boolean, default: !1 },
727
+ destructive: { type: Boolean, default: !1 }
728
+ },
729
+ emits: ["select"],
730
+ setup(e, { emit: n }) {
731
+ const t = n;
732
+ return (s, l) => (o(), y(a(Oe), {
733
+ class: I(["nb-context-menu__item", { "nb-context-menu__item--destructive": e.destructive }]),
734
+ disabled: e.disabled,
735
+ onSelect: l[0] || (l[0] = (b) => t("select", b))
736
+ }, {
737
+ default: d(() => [
738
+ h(s.$slots, "default")
739
+ ]),
740
+ _: 3
741
+ }, 8, ["class", "disabled"]));
742
+ }
743
+ }), za = /* @__PURE__ */ _({
744
+ __name: "NbContextMenuLabel",
745
+ setup(e) {
746
+ return (n, t) => (o(), y(a(Pe), { class: "nb-context-menu__label" }, {
747
+ default: d(() => [
748
+ h(n.$slots, "default")
749
+ ]),
750
+ _: 3
751
+ }));
752
+ }
753
+ }), Fa = /* @__PURE__ */ _({
754
+ __name: "NbContextMenuRadioGroup",
755
+ props: {
756
+ modelValue: {}
757
+ },
758
+ emits: ["update:modelValue"],
759
+ setup(e, { emit: n }) {
760
+ const t = n;
761
+ function s(l) {
762
+ typeof l == "string" && t("update:modelValue", l);
763
+ }
764
+ return (l, b) => (o(), y(a(Re), {
765
+ "model-value": e.modelValue,
766
+ "onUpdate:modelValue": s
767
+ }, {
768
+ default: d(() => [
769
+ h(l.$slots, "default")
770
+ ]),
771
+ _: 3
772
+ }, 8, ["model-value"]));
773
+ }
774
+ }), Ha = /* @__PURE__ */ _({
775
+ __name: "NbContextMenuRadioItem",
776
+ props: {
777
+ value: {},
778
+ disabled: { type: Boolean, default: !1 }
779
+ },
780
+ setup(e) {
781
+ return (n, t) => (o(), y(a(Le), {
782
+ class: "nb-context-menu__item nb-context-menu__item--choice",
783
+ value: e.value,
784
+ disabled: e.disabled
785
+ }, {
786
+ default: d(() => [
787
+ c(a(oe), {
788
+ class: "nb-context-menu__indicator",
789
+ "aria-hidden": "true"
790
+ }, {
791
+ default: d(() => [...t[0] || (t[0] = [
792
+ k("●", -1)
793
+ ])]),
794
+ _: 1
795
+ }),
796
+ h(n.$slots, "default")
797
+ ]),
798
+ _: 3
799
+ }, 8, ["value", "disabled"]));
800
+ }
801
+ }), Ka = /* @__PURE__ */ _({
802
+ __name: "NbContextMenuSeparator",
803
+ setup(e) {
804
+ return (n, t) => (o(), y(a(Ue), { class: "nb-context-menu__separator" }));
805
+ }
806
+ }), ja = (e, n) => {
807
+ const t = e.__vccOpts || e;
808
+ for (const [s, l] of n)
809
+ t[s] = l;
810
+ return t;
811
+ }, Xa = {}, Ja = {
812
+ class: "nb-context-menu__shortcut",
813
+ "aria-hidden": "true"
814
+ };
815
+ function Qa(e, n) {
816
+ return o(), u("span", Ja, [
817
+ h(e.$slots, "default")
818
+ ]);
819
+ }
820
+ const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
821
+ __name: "NbContextMenuSub",
822
+ props: {
823
+ label: {},
824
+ disabled: { type: Boolean, default: !1 }
825
+ },
826
+ setup(e) {
827
+ return (n, t) => (o(), y(a(Ge), null, {
828
+ default: d(() => [
829
+ c(a(qe), {
830
+ class: "nb-context-menu__item",
831
+ disabled: e.disabled
832
+ }, {
833
+ default: d(() => [
834
+ k(p(e.label) + " ", 1),
835
+ t[0] || (t[0] = f("span", {
836
+ class: "nb-context-menu__shortcut",
837
+ "aria-hidden": "true"
838
+ }, "›", -1))
839
+ ]),
840
+ _: 1
841
+ }, 8, ["disabled"]),
842
+ c(a(Ee), {
843
+ class: "nb-root nb-context-menu",
844
+ "side-offset": 6
845
+ }, {
846
+ default: d(() => [
847
+ h(n.$slots, "default")
848
+ ]),
849
+ _: 3
850
+ })
851
+ ]),
852
+ _: 3
853
+ }));
854
+ }
855
+ }), Za = { class: "nb-alert__content" }, el = { key: 0 }, tl = /* @__PURE__ */ _({
450
856
  __name: "NbAlert",
451
857
  props: {
452
858
  tone: { default: "info" },
@@ -455,34 +861,112 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
455
861
  },
456
862
  emits: ["dismiss"],
457
863
  setup(e, { emit: n }) {
458
- const t = e, s = n, l = x(!1), b = $(() => C(`nb-alert--${t.tone}`));
459
- function f() {
864
+ const t = e, s = n, l = V(!1), b = N(() => O(`nb-alert--${t.tone}`));
865
+ function m() {
460
866
  l.value = !0, s("dismiss");
461
867
  }
462
- return (d, r) => l.value ? h("", !0) : (o(), i("div", {
868
+ return (i, r) => l.value ? g("", !0) : (o(), u("div", {
463
869
  key: 0,
464
- class: B(["nb-root nb-alert", b.value]),
870
+ class: I(["nb-root nb-alert", b.value]),
465
871
  role: "alert"
466
872
  }, [
467
- c("div", Ht, [
468
- e.title ? (o(), i("strong", Jt, p(e.title), 1)) : h("", !0),
469
- c("span", null, [
470
- _(d.$slots, "default")
873
+ f("div", Za, [
874
+ e.title ? (o(), u("strong", el, p(e.title), 1)) : g("", !0),
875
+ f("span", null, [
876
+ h(i.$slots, "default")
471
877
  ])
472
878
  ]),
473
- e.dismissible ? (o(), i("button", {
879
+ e.dismissible ? (o(), u("button", {
474
880
  key: 0,
475
881
  class: "nb-alert__close",
476
882
  type: "button",
477
883
  "aria-label": "Dismiss",
478
- onClick: f
479
- }, "×")) : h("", !0)
884
+ onClick: m
885
+ }, "×")) : g("", !0)
480
886
  ], 2));
481
887
  }
482
- }), Qt = { class: "nb-dialog__header" }, Wt = { class: "nb-dialog__body" }, Yt = {
888
+ }), al = { class: "nb-alert-dialog__actions" }, ll = /* @__PURE__ */ _({
889
+ __name: "NbAlertDialog",
890
+ props: {
891
+ open: { type: Boolean, default: void 0 },
892
+ defaultOpen: { type: Boolean, default: !1 },
893
+ title: {},
894
+ description: {},
895
+ actionLabel: { default: "Continue" },
896
+ cancelLabel: { default: "Cancel" },
897
+ destructive: { type: Boolean, default: !1 }
898
+ },
899
+ emits: ["update:open", "action", "cancel"],
900
+ setup(e, { emit: n }) {
901
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
902
+ w(() => t.open, (i) => {
903
+ i !== void 0 && (l.value = i);
904
+ });
905
+ function m(i) {
906
+ l.value = i, s("update:open", i);
907
+ }
908
+ return (i, r) => (o(), y(a(ze), {
909
+ open: b.value,
910
+ "onUpdate:open": m
911
+ }, {
912
+ default: d(() => [
913
+ c(a(Fe), { class: "nb-root nb-overlay-trigger" }, {
914
+ default: d(() => [
915
+ h(i.$slots, "trigger")
916
+ ]),
917
+ _: 3
918
+ }),
919
+ c(a(He), null, {
920
+ default: d(() => [
921
+ c(a(Ke), { class: "nb-root nb-alert-dialog__overlay" }),
922
+ c(a(je), { class: "nb-root nb-alert-dialog" }, {
923
+ default: d(() => [
924
+ c(a(Xe), { class: "nb-alert-dialog__title" }, {
925
+ default: d(() => [
926
+ k(p(e.title), 1)
927
+ ]),
928
+ _: 1
929
+ }),
930
+ c(a(Je), { class: "nb-alert-dialog__description" }, {
931
+ default: d(() => [
932
+ k(p(e.description), 1)
933
+ ]),
934
+ _: 1
935
+ }),
936
+ f("div", al, [
937
+ c(a(Qe), {
938
+ class: "nb-alert-dialog__button nb-alert-dialog__button--cancel",
939
+ onClick: r[0] || (r[0] = (v) => s("cancel"))
940
+ }, {
941
+ default: d(() => [
942
+ k(p(e.cancelLabel), 1)
943
+ ]),
944
+ _: 1
945
+ }),
946
+ c(a(We), {
947
+ class: I(["nb-alert-dialog__button", { "nb-alert-dialog__button--destructive": e.destructive }]),
948
+ onClick: r[1] || (r[1] = (v) => s("action"))
949
+ }, {
950
+ default: d(() => [
951
+ k(p(e.actionLabel), 1)
952
+ ]),
953
+ _: 1
954
+ }, 8, ["class"])
955
+ ])
956
+ ]),
957
+ _: 1
958
+ })
959
+ ]),
960
+ _: 1
961
+ })
962
+ ]),
963
+ _: 3
964
+ }, 8, ["open"]));
965
+ }
966
+ }), nl = { class: "nb-dialog__header" }, ol = { class: "nb-dialog__body" }, sl = {
483
967
  key: 0,
484
968
  class: "nb-dialog__footer"
485
- }, Zt = /* @__PURE__ */ v({
969
+ }, il = /* @__PURE__ */ _({
486
970
  inheritAttrs: !1,
487
971
  __name: "NbDialog",
488
972
  props: {
@@ -492,67 +976,67 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
492
976
  },
493
977
  emits: ["update:open", "close"],
494
978
  setup(e, { emit: n }) {
495
- const t = e, s = n, b = `${S("dialog")}-title`, f = x(null), d = x(null);
979
+ const t = e, s = n, b = `${M("dialog")}-title`, m = V(null), i = V(null);
496
980
  function r() {
497
981
  s("update:open", !1), s("close");
498
982
  }
499
- function g() {
500
- return Array.from(f.value?.querySelectorAll(
983
+ function v() {
984
+ return Array.from(m.value?.querySelectorAll(
501
985
  'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
502
986
  ) ?? []);
503
987
  }
504
- function y(I) {
505
- if (I.key === "Escape") {
506
- I.preventDefault(), r();
988
+ function $(C) {
989
+ if (C.key === "Escape") {
990
+ C.preventDefault(), r();
507
991
  return;
508
992
  }
509
- if (I.key !== "Tab") return;
510
- const T = g();
511
- if (!T.length) return;
512
- const q = T[0], z = T[T.length - 1];
513
- I.shiftKey && document.activeElement === q ? (I.preventDefault(), z.focus()) : !I.shiftKey && document.activeElement === z && (I.preventDefault(), q.focus());
993
+ if (C.key !== "Tab") return;
994
+ const A = v();
995
+ if (!A.length) return;
996
+ const R = A[0], q = A[A.length - 1];
997
+ C.shiftKey && document.activeElement === R ? (C.preventDefault(), q.focus()) : !C.shiftKey && document.activeElement === q && (C.preventDefault(), R.focus());
514
998
  }
515
- function R() {
516
- d.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", y), j(() => (g()[0] ?? f.value)?.focus());
999
+ function P() {
1000
+ i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $), re(() => (v()[0] ?? m.value)?.focus());
517
1001
  }
518
1002
  function G() {
519
- document.removeEventListener("keydown", y), d.value?.focus(), d.value = null;
1003
+ document.removeEventListener("keydown", $), i.value?.focus(), i.value = null;
520
1004
  }
521
- return M(() => t.open, (I) => {
522
- I ? R() : G();
523
- }, { immediate: !0 }), F(G), (I, T) => e.open ? (o(), i("div", {
1005
+ return w(() => t.open, (C) => {
1006
+ C ? P() : G();
1007
+ }, { immediate: !0 }), ie(G), (C, A) => e.open ? (o(), u("div", {
524
1008
  key: 0,
525
1009
  class: "nb-root nb-dialog-layer",
526
- onMousedown: T[0] || (T[0] = K((q) => e.closeOnBackdrop && r(), ["self"]))
1010
+ onMousedown: A[0] || (A[0] = de((R) => e.closeOnBackdrop && r(), ["self"]))
527
1011
  }, [
528
- c("section", k(I.$attrs, {
1012
+ f("section", x(C.$attrs, {
529
1013
  ref_key: "dialogRef",
530
- ref: f,
1014
+ ref: m,
531
1015
  class: "nb-dialog",
532
1016
  role: "dialog",
533
1017
  "aria-modal": "true",
534
1018
  "aria-labelledby": b,
535
1019
  tabindex: "-1"
536
1020
  }), [
537
- c("header", Qt, [
538
- c("h2", { id: b }, p(e.title), 1),
539
- c("button", {
1021
+ f("header", nl, [
1022
+ f("h2", { id: b }, p(e.title), 1),
1023
+ f("button", {
540
1024
  class: "nb-dialog__close",
541
1025
  type: "button",
542
1026
  "aria-label": "Close dialog",
543
1027
  onClick: r
544
1028
  }, "×")
545
1029
  ]),
546
- c("div", Wt, [
547
- _(I.$slots, "default")
1030
+ f("div", ol, [
1031
+ h(C.$slots, "default")
548
1032
  ]),
549
- I.$slots.footer ? (o(), i("footer", Yt, [
550
- _(I.$slots, "footer")
551
- ])) : h("", !0)
1033
+ C.$slots.footer ? (o(), u("footer", sl, [
1034
+ h(C.$slots, "footer")
1035
+ ])) : g("", !0)
552
1036
  ], 16)
553
- ], 32)) : h("", !0);
1037
+ ], 32)) : g("", !0);
554
1038
  }
555
- }), ea = /* @__PURE__ */ v({
1039
+ }), dl = /* @__PURE__ */ _({
556
1040
  __name: "NbDropdownMenu",
557
1041
  props: {
558
1042
  open: { type: Boolean, default: void 0 },
@@ -563,46 +1047,46 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
563
1047
  },
564
1048
  emits: ["update:open"],
565
1049
  setup(e, { emit: n }) {
566
- const t = e, s = n, l = x(t.open ?? t.defaultOpen), b = $(() => t.open ?? l.value);
567
- M(() => t.open, (d) => {
568
- d !== void 0 && (l.value = d);
1050
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1051
+ w(() => t.open, (i) => {
1052
+ i !== void 0 && (l.value = i);
569
1053
  });
570
- function f(d) {
571
- l.value = d, s("update:open", d);
1054
+ function m(i) {
1055
+ l.value = i, s("update:open", i);
572
1056
  }
573
- return (d, r) => (o(), N(a(ge), {
1057
+ return (i, r) => (o(), y(a(Ye), {
574
1058
  open: b.value,
575
1059
  "default-open": e.defaultOpen,
576
- "onUpdate:open": f
1060
+ "onUpdate:open": m
577
1061
  }, {
578
- default: u(() => [
579
- m(a(_e), {
1062
+ default: d(() => [
1063
+ c(a(Ze), {
580
1064
  class: "nb-root nb-overlay-trigger",
581
1065
  "aria-label": e.label,
582
1066
  disabled: e.disabled
583
1067
  }, {
584
- default: u(() => [
585
- _(d.$slots, "trigger"),
586
- r[0] || (r[0] = c("svg", {
1068
+ default: d(() => [
1069
+ h(i.$slots, "trigger"),
1070
+ r[0] || (r[0] = f("svg", {
587
1071
  class: "nb-overlay-trigger__icon",
588
1072
  viewBox: "0 0 16 16",
589
1073
  "aria-hidden": "true",
590
1074
  focusable: "false"
591
1075
  }, [
592
- c("path", { d: "m3 6 5 5 5-5" })
1076
+ f("path", { d: "m3 6 5 5 5-5" })
593
1077
  ], -1))
594
1078
  ]),
595
1079
  _: 3
596
1080
  }, 8, ["aria-label", "disabled"]),
597
- m(a(ye), null, {
598
- default: u(() => [
599
- m(a($e), {
1081
+ c(a(et), null, {
1082
+ default: d(() => [
1083
+ c(a(tt), {
600
1084
  class: "nb-root nb-dropdown-menu",
601
1085
  align: e.align,
602
1086
  "side-offset": 8
603
1087
  }, {
604
- default: u(() => [
605
- _(d.$slots, "default")
1088
+ default: d(() => [
1089
+ h(i.$slots, "default")
606
1090
  ]),
607
1091
  _: 3
608
1092
  }, 8, ["align"])
@@ -613,7 +1097,7 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
613
1097
  _: 3
614
1098
  }, 8, ["open", "default-open"]));
615
1099
  }
616
- }), ta = /* @__PURE__ */ v({
1100
+ }), rl = /* @__PURE__ */ _({
617
1101
  __name: "NbDropdownMenuItem",
618
1102
  props: {
619
1103
  disabled: { type: Boolean, default: !1 },
@@ -622,56 +1106,56 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
622
1106
  emits: ["select"],
623
1107
  setup(e, { emit: n }) {
624
1108
  const t = n;
625
- return (s, l) => (o(), N(a(Ne), {
626
- class: B(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
1109
+ return (s, l) => (o(), y(a(at), {
1110
+ class: I(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
627
1111
  disabled: e.disabled,
628
1112
  onSelect: l[0] || (l[0] = (b) => t("select", b))
629
1113
  }, {
630
- default: u(() => [
631
- _(s.$slots, "default")
1114
+ default: d(() => [
1115
+ h(s.$slots, "default")
632
1116
  ]),
633
1117
  _: 3
634
1118
  }, 8, ["class", "disabled"]));
635
1119
  }
636
- }), aa = /* @__PURE__ */ v({
1120
+ }), ul = /* @__PURE__ */ _({
637
1121
  __name: "NbDropdownMenuSeparator",
638
1122
  setup(e) {
639
- return (n, t) => (o(), N(a(ke), { class: "nb-dropdown-menu__separator" }));
1123
+ return (n, t) => (o(), y(a(lt), { class: "nb-dropdown-menu__separator" }));
640
1124
  }
641
- }), la = ["aria-labelledby"], na = {
1125
+ }), cl = ["aria-labelledby"], bl = {
642
1126
  key: 0,
643
1127
  class: "nb-empty-state__icon",
644
1128
  "aria-hidden": "true"
645
- }, oa = ["id"], sa = { key: 1 }, ia = {
1129
+ }, fl = ["id"], ml = { key: 1 }, pl = {
646
1130
  key: 2,
647
1131
  class: "nb-empty-state__action"
648
- }, da = /* @__PURE__ */ v({
1132
+ }, _l = /* @__PURE__ */ _({
649
1133
  __name: "NbEmptyState",
650
1134
  props: {
651
1135
  title: {},
652
1136
  description: {}
653
1137
  },
654
1138
  setup(e) {
655
- const n = S("empty-state-title");
656
- return (t, s) => (o(), i("section", {
1139
+ const n = M("empty-state-title");
1140
+ return (t, s) => (o(), u("section", {
657
1141
  class: "nb-root nb-empty-state",
658
1142
  role: "region",
659
1143
  "aria-labelledby": a(n)
660
1144
  }, [
661
- t.$slots.icon ? (o(), i("div", na, [
662
- _(t.$slots, "icon")
663
- ])) : h("", !0),
664
- c("h2", { id: a(n) }, p(e.title), 9, oa),
665
- e.description ? (o(), i("p", sa, p(e.description), 1)) : h("", !0),
666
- t.$slots.default ? (o(), i("div", ia, [
667
- _(t.$slots, "default")
668
- ])) : h("", !0)
669
- ], 8, la));
1145
+ t.$slots.icon ? (o(), u("div", bl, [
1146
+ h(t.$slots, "icon")
1147
+ ])) : g("", !0),
1148
+ f("h2", { id: a(n) }, p(e.title), 9, fl),
1149
+ e.description ? (o(), u("p", ml, p(e.description), 1)) : g("", !0),
1150
+ t.$slots.default ? (o(), u("div", pl, [
1151
+ h(t.$slots, "default")
1152
+ ])) : g("", !0)
1153
+ ], 8, cl));
670
1154
  }
671
- }), ra = ["disabled", "aria-describedby"], ua = {
1155
+ }), vl = ["disabled", "aria-describedby"], hl = {
672
1156
  key: 0,
673
1157
  class: "nb-fieldset__legend"
674
- }, ca = { class: "nb-fieldset__content" }, ba = /* @__PURE__ */ v({
1158
+ }, gl = { class: "nb-fieldset__content" }, yl = /* @__PURE__ */ _({
675
1159
  __name: "NbFieldset",
676
1160
  props: {
677
1161
  legend: {},
@@ -679,24 +1163,24 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
679
1163
  disabled: { type: Boolean, default: !1 }
680
1164
  },
681
1165
  setup(e) {
682
- const n = `${S("fieldset")}-description`;
683
- return (t, s) => (o(), i("fieldset", {
1166
+ const n = `${M("fieldset")}-description`;
1167
+ return (t, s) => (o(), u("fieldset", {
684
1168
  class: "nb-root nb-fieldset",
685
1169
  disabled: e.disabled,
686
1170
  "aria-describedby": e.description ? n : void 0
687
1171
  }, [
688
- e.legend ? (o(), i("legend", ua, p(e.legend), 1)) : h("", !0),
689
- e.description ? (o(), i("p", {
1172
+ e.legend ? (o(), u("legend", hl, p(e.legend), 1)) : g("", !0),
1173
+ e.description ? (o(), u("p", {
690
1174
  key: 1,
691
1175
  id: n,
692
1176
  class: "nb-fieldset__description"
693
- }, p(e.description), 1)) : h("", !0),
694
- c("div", ca, [
695
- _(t.$slots, "default")
1177
+ }, p(e.description), 1)) : g("", !0),
1178
+ f("div", gl, [
1179
+ h(t.$slots, "default")
696
1180
  ])
697
- ], 8, ra));
1181
+ ], 8, vl));
698
1182
  }
699
- }), fa = { class: "nb-root nb-field" }, ma = ["for"], pa = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], ha = ["id"], va = ["id"], ga = /* @__PURE__ */ v({
1183
+ }), $l = { class: "nb-root nb-field" }, Nl = ["for"], kl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], xl = ["id"], Il = ["id"], Cl = /* @__PURE__ */ _({
700
1184
  inheritAttrs: !1,
701
1185
  __name: "NbInput",
702
1186
  props: {
@@ -709,69 +1193,121 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
709
1193
  },
710
1194
  emits: ["update:modelValue"],
711
1195
  setup(e, { emit: n }) {
712
- const t = e, s = n, l = w("input", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
713
- return (f, d) => (o(), i("div", fa, [
714
- e.label ? (o(), i("label", {
1196
+ const t = e, s = n, l = S("input", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
1197
+ return (m, i) => (o(), u("div", $l, [
1198
+ e.label ? (o(), u("label", {
715
1199
  key: 0,
716
1200
  class: "nb-field__label",
717
1201
  for: a(l).inputId
718
- }, p(e.label), 9, ma)) : h("", !0),
719
- c("input", k(f.$attrs, {
1202
+ }, p(e.label), 9, Nl)) : g("", !0),
1203
+ f("input", x(m.$attrs, {
720
1204
  id: a(l).inputId,
721
1205
  class: "nb-field__control",
722
1206
  value: e.modelValue,
723
1207
  disabled: e.disabled,
724
1208
  "aria-invalid": e.error ? "true" : void 0,
725
1209
  "aria-describedby": b.value,
726
- onInput: d[0] || (d[0] = (r) => s("update:modelValue", r.target.value))
727
- }), null, 16, pa),
728
- e.hint ? (o(), i("span", {
1210
+ onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
1211
+ }), null, 16, kl),
1212
+ e.hint ? (o(), u("span", {
729
1213
  key: 1,
730
1214
  id: a(l).hintId,
731
1215
  class: "nb-field__hint"
732
- }, p(e.hint), 9, ha)) : h("", !0),
733
- e.error ? (o(), i("span", {
1216
+ }, p(e.hint), 9, xl)) : g("", !0),
1217
+ e.error ? (o(), u("span", {
734
1218
  key: 2,
735
1219
  id: a(l).errorId,
736
1220
  class: "nb-field__error"
737
- }, p(e.error), 9, va)) : h("", !0)
1221
+ }, p(e.error), 9, Il)) : g("", !0)
738
1222
  ]));
739
1223
  }
740
- }), _a = { class: "nb-root nb-input-group" }, ya = {
1224
+ }), Vl = { class: "nb-root nb-input-group" }, Bl = {
741
1225
  key: 0,
742
1226
  class: "nb-input-group__addon"
743
- }, $a = { class: "nb-input-group__control" }, Na = {
1227
+ }, wl = { class: "nb-input-group__control" }, Sl = {
744
1228
  key: 1,
745
1229
  class: "nb-input-group__addon"
746
- }, ka = /* @__PURE__ */ v({
1230
+ }, Tl = /* @__PURE__ */ _({
747
1231
  __name: "NbInputGroup",
748
1232
  setup(e) {
749
- const n = H();
750
- return (t, s) => (o(), i("div", _a, [
751
- a(n).start ? (o(), i("span", ya, [
752
- _(t.$slots, "start")
753
- ])) : h("", !0),
754
- c("div", $a, [
755
- _(t.$slots, "default")
1233
+ const n = ue();
1234
+ return (t, s) => (o(), u("div", Vl, [
1235
+ a(n).start ? (o(), u("span", Bl, [
1236
+ h(t.$slots, "start")
1237
+ ])) : g("", !0),
1238
+ f("div", wl, [
1239
+ h(t.$slots, "default")
756
1240
  ]),
757
- a(n).end ? (o(), i("span", Na, [
758
- _(t.$slots, "end")
759
- ])) : h("", !0)
1241
+ a(n).end ? (o(), u("span", Sl, [
1242
+ h(t.$slots, "end")
1243
+ ])) : g("", !0)
760
1244
  ]));
761
1245
  }
762
- }), Ia = /* @__PURE__ */ v({
1246
+ }), Ml = /* @__PURE__ */ _({
1247
+ __name: "NbHoverCard",
1248
+ props: {
1249
+ open: { type: Boolean, default: void 0 },
1250
+ defaultOpen: { type: Boolean, default: !1 },
1251
+ openDelay: { default: 300 },
1252
+ closeDelay: { default: 150 },
1253
+ align: { default: "center" },
1254
+ side: { default: "bottom" }
1255
+ },
1256
+ emits: ["update:open"],
1257
+ setup(e, { emit: n }) {
1258
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1259
+ w(() => t.open, (i) => {
1260
+ i !== void 0 && (l.value = i);
1261
+ });
1262
+ function m(i) {
1263
+ l.value = i, s("update:open", i);
1264
+ }
1265
+ return (i, r) => (o(), y(a(nt), {
1266
+ open: b.value,
1267
+ "open-delay": e.openDelay,
1268
+ "close-delay": e.closeDelay,
1269
+ "onUpdate:open": m
1270
+ }, {
1271
+ default: d(() => [
1272
+ c(a(ot), { "as-child": "" }, {
1273
+ default: d(() => [
1274
+ h(i.$slots, "trigger")
1275
+ ]),
1276
+ _: 3
1277
+ }),
1278
+ c(a(st), null, {
1279
+ default: d(() => [
1280
+ c(a(it), {
1281
+ class: "nb-root nb-hover-card",
1282
+ align: e.align,
1283
+ side: e.side,
1284
+ "side-offset": 8
1285
+ }, {
1286
+ default: d(() => [
1287
+ h(i.$slots, "default")
1288
+ ]),
1289
+ _: 3
1290
+ }, 8, ["align", "side"])
1291
+ ]),
1292
+ _: 3
1293
+ })
1294
+ ]),
1295
+ _: 3
1296
+ }, 8, ["open", "open-delay", "close-delay"]));
1297
+ }
1298
+ }), Al = /* @__PURE__ */ _({
763
1299
  __name: "NbKbd",
764
1300
  props: {
765
1301
  size: { default: "md" }
766
1302
  },
767
1303
  setup(e) {
768
- return (n, t) => (o(), i("kbd", {
769
- class: B(["nb-root nb-kbd", `nb-kbd--${e.size}`])
1304
+ return (n, t) => (o(), u("kbd", {
1305
+ class: I(["nb-root nb-kbd", `nb-kbd--${e.size}`])
770
1306
  }, [
771
- _(n.$slots, "default")
1307
+ h(n.$slots, "default")
772
1308
  ], 2));
773
1309
  }
774
- }), Ba = /* @__PURE__ */ v({
1310
+ }), Dl = /* @__PURE__ */ _({
775
1311
  inheritAttrs: !1,
776
1312
  __name: "NbLink",
777
1313
  props: {
@@ -779,29 +1315,109 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
779
1315
  tone: { default: "primary" }
780
1316
  },
781
1317
  setup(e) {
782
- const n = e, t = $(() => C(`nb-link--${n.tone}`));
783
- return (s, l) => (o(), N(J(e.as), k(s.$attrs, {
1318
+ const n = e, t = N(() => O(`nb-link--${n.tone}`));
1319
+ return (s, l) => (o(), y(ce(e.as), x(s.$attrs, {
784
1320
  class: ["nb-root nb-link", t.value]
785
1321
  }), {
786
- default: u(() => [
787
- _(s.$slots, "default")
1322
+ default: d(() => [
1323
+ h(s.$slots, "default")
788
1324
  ]),
789
1325
  _: 3
790
1326
  }, 16, ["class"]));
791
1327
  }
792
- }), Va = /* @__PURE__ */ v({
1328
+ }), Ol = /* @__PURE__ */ _({
793
1329
  __name: "NbMarker",
794
1330
  props: {
795
1331
  tone: { default: "primary" }
796
1332
  },
797
1333
  setup(e) {
798
- return (n, t) => (o(), i("mark", {
799
- class: B(["nb-root nb-marker", `nb-marker--${e.tone}`])
1334
+ return (n, t) => (o(), u("mark", {
1335
+ class: I(["nb-root nb-marker", `nb-marker--${e.tone}`])
800
1336
  }, [
801
- _(n.$slots, "default")
1337
+ h(n.$slots, "default")
802
1338
  ], 2));
803
1339
  }
804
- }), wa = { class: "nb-root nb-field" }, xa = ["for"], Sa = ["id"], Ta = ["id"], Aa = /* @__PURE__ */ v({
1340
+ }), Pl = ["href", "target"], Rl = { key: 0 }, Ll = ["href", "target"], Ul = /* @__PURE__ */ _({
1341
+ __name: "NbNavigationMenu",
1342
+ props: {
1343
+ items: {},
1344
+ label: { default: "Main navigation" }
1345
+ },
1346
+ setup(e) {
1347
+ return (n, t) => (o(), y(a(dt), {
1348
+ class: "nb-root nb-navigation-menu",
1349
+ "aria-label": e.label
1350
+ }, {
1351
+ default: d(() => [
1352
+ c(a(rt), { class: "nb-navigation-menu__list" }, {
1353
+ default: d(() => [
1354
+ (o(!0), u(B, null, T(e.items, (s, l) => (o(), y(a(ut), {
1355
+ key: `${l}-${s.label}`,
1356
+ value: `${l}-${s.label}`,
1357
+ class: "nb-navigation-menu__item"
1358
+ }, {
1359
+ default: d(() => [
1360
+ s.children?.length ? (o(), u(B, { key: 0 }, [
1361
+ c(a(ct), { class: "nb-navigation-menu__trigger" }, {
1362
+ default: d(() => [
1363
+ k(p(s.label) + " ", 1),
1364
+ t[0] || (t[0] = f("svg", {
1365
+ viewBox: "0 0 16 16",
1366
+ "aria-hidden": "true",
1367
+ focusable: "false"
1368
+ }, [
1369
+ f("path", { d: "m3 6 5 5 5-5" })
1370
+ ], -1))
1371
+ ]),
1372
+ _: 2
1373
+ }, 1024),
1374
+ c(a(bt), { class: "nb-navigation-menu__content" }, {
1375
+ default: d(() => [
1376
+ (o(!0), u(B, null, T(s.children, (b) => (o(), y(a(E), {
1377
+ key: b.label,
1378
+ "as-child": "",
1379
+ active: b.active
1380
+ }, {
1381
+ default: d(() => [
1382
+ f("a", {
1383
+ class: "nb-navigation-menu__link nb-navigation-menu__link--panel",
1384
+ href: b.href,
1385
+ target: b.target
1386
+ }, [
1387
+ f("strong", null, p(b.label), 1),
1388
+ b.description ? (o(), u("span", Rl, p(b.description), 1)) : g("", !0)
1389
+ ], 8, Pl)
1390
+ ]),
1391
+ _: 2
1392
+ }, 1032, ["active"]))), 128))
1393
+ ]),
1394
+ _: 2
1395
+ }, 1024)
1396
+ ], 64)) : (o(), y(a(E), {
1397
+ key: 1,
1398
+ "as-child": "",
1399
+ active: s.active
1400
+ }, {
1401
+ default: d(() => [
1402
+ f("a", {
1403
+ class: "nb-navigation-menu__link",
1404
+ href: s.href,
1405
+ target: s.target
1406
+ }, p(s.label), 9, Ll)
1407
+ ]),
1408
+ _: 2
1409
+ }, 1032, ["active"]))
1410
+ ]),
1411
+ _: 2
1412
+ }, 1032, ["value"]))), 128))
1413
+ ]),
1414
+ _: 1
1415
+ })
1416
+ ]),
1417
+ _: 1
1418
+ }, 8, ["aria-label"]));
1419
+ }
1420
+ }), Gl = { class: "nb-root nb-field" }, ql = ["for"], El = ["id"], zl = ["id"], Fl = /* @__PURE__ */ _({
805
1421
  inheritAttrs: !1,
806
1422
  __name: "NbNumberInput",
807
1423
  props: {
@@ -820,14 +1436,14 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
820
1436
  },
821
1437
  emits: ["update:modelValue"],
822
1438
  setup(e, { emit: n }) {
823
- const t = e, s = n, l = w("number-input", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId)), f = $(() => t.label ?? "value");
824
- return (d, r) => (o(), i("div", wa, [
825
- e.label ? (o(), i("label", {
1439
+ const t = e, s = n, l = S("number-input", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId)), m = N(() => t.label ?? "value");
1440
+ return (i, r) => (o(), u("div", Gl, [
1441
+ e.label ? (o(), u("label", {
826
1442
  key: 0,
827
1443
  class: "nb-field__label",
828
1444
  for: a(l).inputId
829
- }, p(e.label), 9, xa)) : h("", !0),
830
- m(a(Ie), {
1445
+ }, p(e.label), 9, ql)) : g("", !0),
1446
+ c(a(ft), {
831
1447
  class: "nb-number-input",
832
1448
  "model-value": e.modelValue,
833
1449
  min: e.min,
@@ -837,49 +1453,49 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
837
1453
  readonly: e.readonly,
838
1454
  required: e.required,
839
1455
  name: e.name,
840
- "onUpdate:modelValue": r[0] || (r[0] = (g) => s("update:modelValue", g))
1456
+ "onUpdate:modelValue": r[0] || (r[0] = (v) => s("update:modelValue", v))
841
1457
  }, {
842
- default: u(() => [
843
- m(a(Be), {
1458
+ default: d(() => [
1459
+ c(a(mt), {
844
1460
  class: "nb-number-input__button",
845
- "aria-label": `Decrease ${f.value}`
1461
+ "aria-label": `Decrease ${m.value}`
846
1462
  }, {
847
- default: u(() => [...r[1] || (r[1] = [
848
- V("−", -1)
1463
+ default: d(() => [...r[1] || (r[1] = [
1464
+ k("−", -1)
849
1465
  ])]),
850
1466
  _: 1
851
1467
  }, 8, ["aria-label"]),
852
- m(a(Ve), k(d.$attrs, {
1468
+ c(a(pt), x(i.$attrs, {
853
1469
  id: a(l).inputId,
854
1470
  class: "nb-number-input__input",
855
1471
  "aria-invalid": e.error ? "true" : void 0,
856
1472
  "aria-describedby": b.value
857
1473
  }), null, 16, ["id", "aria-invalid", "aria-describedby"]),
858
- m(a(we), {
1474
+ c(a(_t), {
859
1475
  class: "nb-number-input__button",
860
- "aria-label": `Increase ${f.value}`
1476
+ "aria-label": `Increase ${m.value}`
861
1477
  }, {
862
- default: u(() => [...r[2] || (r[2] = [
863
- V("+", -1)
1478
+ default: d(() => [...r[2] || (r[2] = [
1479
+ k("+", -1)
864
1480
  ])]),
865
1481
  _: 1
866
1482
  }, 8, ["aria-label"])
867
1483
  ]),
868
1484
  _: 1
869
1485
  }, 8, ["model-value", "min", "max", "step", "disabled", "readonly", "required", "name"]),
870
- e.hint ? (o(), i("span", {
1486
+ e.hint ? (o(), u("span", {
871
1487
  key: 1,
872
1488
  id: a(l).hintId,
873
1489
  class: "nb-field__hint"
874
- }, p(e.hint), 9, Sa)) : h("", !0),
875
- e.error ? (o(), i("span", {
1490
+ }, p(e.hint), 9, El)) : g("", !0),
1491
+ e.error ? (o(), u("span", {
876
1492
  key: 2,
877
1493
  id: a(l).errorId,
878
1494
  class: "nb-field__error"
879
- }, p(e.error), 9, Ta)) : h("", !0)
1495
+ }, p(e.error), 9, zl)) : g("", !0)
880
1496
  ]));
881
1497
  }
882
- }), Ca = /* @__PURE__ */ v({
1498
+ }), Hl = /* @__PURE__ */ _({
883
1499
  __name: "NbPagination",
884
1500
  props: {
885
1501
  page: {},
@@ -893,7 +1509,7 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
893
1509
  emits: ["update:page"],
894
1510
  setup(e, { emit: n }) {
895
1511
  const t = n;
896
- return (s, l) => (o(), N(a(xe), {
1512
+ return (s, l) => (o(), y(a(vt), {
897
1513
  class: "nb-root nb-pagination",
898
1514
  page: e.page,
899
1515
  "default-page": e.defaultPage,
@@ -905,42 +1521,42 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
905
1521
  "aria-label": e.label,
906
1522
  "onUpdate:page": l[0] || (l[0] = (b) => t("update:page", b))
907
1523
  }, {
908
- default: u(() => [
909
- m(a(Se), {
1524
+ default: d(() => [
1525
+ c(a(ht), {
910
1526
  class: "nb-pagination__button",
911
1527
  "aria-label": "Go to previous page"
912
1528
  }, {
913
- default: u(() => [...l[1] || (l[1] = [
914
- c("svg", {
1529
+ default: d(() => [...l[1] || (l[1] = [
1530
+ f("svg", {
915
1531
  viewBox: "0 0 16 16",
916
1532
  "aria-hidden": "true",
917
1533
  focusable: "false"
918
1534
  }, [
919
- c("path", { d: "m10 3-5 5 5 5" })
1535
+ f("path", { d: "m10 3-5 5 5 5" })
920
1536
  ], -1)
921
1537
  ])]),
922
1538
  _: 1
923
1539
  }),
924
- m(a(Te), { class: "nb-pagination__list" }, {
925
- default: u(({ items: b }) => [
926
- (o(!0), i(P, null, D(b, (f, d) => (o(), i(P, {
927
- key: f.type === "page" ? f.value : `ellipsis-${d}`
1540
+ c(a(gt), { class: "nb-pagination__list" }, {
1541
+ default: d(({ items: b }) => [
1542
+ (o(!0), u(B, null, T(b, (m, i) => (o(), u(B, {
1543
+ key: m.type === "page" ? m.value : `ellipsis-${i}`
928
1544
  }, [
929
- f.type === "page" ? (o(), N(a(Ae), {
1545
+ m.type === "page" ? (o(), y(a(yt), {
930
1546
  key: 0,
931
1547
  class: "nb-pagination__button",
932
- value: f.value
1548
+ value: m.value
933
1549
  }, {
934
- default: u(() => [
935
- V(p(f.value), 1)
1550
+ default: d(() => [
1551
+ k(p(m.value), 1)
936
1552
  ]),
937
1553
  _: 2
938
- }, 1032, ["value"])) : (o(), N(a(Ce), {
1554
+ }, 1032, ["value"])) : (o(), y(a($t), {
939
1555
  key: 1,
940
1556
  class: "nb-pagination__ellipsis"
941
1557
  }, {
942
- default: u(() => [...l[2] || (l[2] = [
943
- V("…", -1)
1558
+ default: d(() => [...l[2] || (l[2] = [
1559
+ k("…", -1)
944
1560
  ])]),
945
1561
  _: 1
946
1562
  }))
@@ -948,17 +1564,17 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
948
1564
  ]),
949
1565
  _: 1
950
1566
  }),
951
- m(a(Pe), {
1567
+ c(a(Nt), {
952
1568
  class: "nb-pagination__button",
953
1569
  "aria-label": "Go to next page"
954
1570
  }, {
955
- default: u(() => [...l[3] || (l[3] = [
956
- c("svg", {
1571
+ default: d(() => [...l[3] || (l[3] = [
1572
+ f("svg", {
957
1573
  viewBox: "0 0 16 16",
958
1574
  "aria-hidden": "true",
959
1575
  focusable: "false"
960
1576
  }, [
961
- c("path", { d: "m6 3 5 5-5 5" })
1577
+ f("path", { d: "m6 3 5 5-5 5" })
962
1578
  ], -1)
963
1579
  ])]),
964
1580
  _: 1
@@ -967,10 +1583,10 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
967
1583
  _: 1
968
1584
  }, 8, ["page", "default-page", "total", "items-per-page", "sibling-count", "disabled", "aria-label"]));
969
1585
  }
970
- }), Pa = {
1586
+ }), Kl = {
971
1587
  key: 0,
972
1588
  class: "nb-popover__header"
973
- }, Da = ["id"], Ma = { class: "nb-popover__body" }, Ra = /* @__PURE__ */ v({
1589
+ }, jl = ["id"], Xl = { class: "nb-popover__body" }, Jl = /* @__PURE__ */ _({
974
1590
  __name: "NbPopover",
975
1591
  props: {
976
1592
  open: { type: Boolean, default: void 0 },
@@ -982,52 +1598,52 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
982
1598
  },
983
1599
  emits: ["update:open"],
984
1600
  setup(e, { emit: n }) {
985
- const t = e, s = n, l = S("popover-title"), b = x(t.open ?? t.defaultOpen), f = $(() => t.open ?? b.value);
986
- M(() => t.open, (r) => {
1601
+ const t = e, s = n, l = M("popover-title"), b = V(t.open ?? t.defaultOpen), m = N(() => t.open ?? b.value);
1602
+ w(() => t.open, (r) => {
987
1603
  r !== void 0 && (b.value = r);
988
1604
  });
989
- function d(r) {
1605
+ function i(r) {
990
1606
  b.value = r, s("update:open", r);
991
1607
  }
992
- return (r, g) => (o(), N(a(De), {
993
- open: f.value,
1608
+ return (r, v) => (o(), y(a(kt), {
1609
+ open: m.value,
994
1610
  "default-open": e.defaultOpen,
995
- "onUpdate:open": d
1611
+ "onUpdate:open": i
996
1612
  }, {
997
- default: u(() => [
998
- m(a(Me), {
1613
+ default: d(() => [
1614
+ c(a(xt), {
999
1615
  class: "nb-root nb-overlay-trigger",
1000
1616
  disabled: e.disabled
1001
1617
  }, {
1002
- default: u(() => [
1003
- _(r.$slots, "trigger")
1618
+ default: d(() => [
1619
+ h(r.$slots, "trigger")
1004
1620
  ]),
1005
1621
  _: 3
1006
1622
  }, 8, ["disabled"]),
1007
- m(a(Re), null, {
1008
- default: u(() => [
1009
- m(a(qe), {
1623
+ c(a(It), null, {
1624
+ default: d(() => [
1625
+ c(a(Ct), {
1010
1626
  class: "nb-root nb-popover",
1011
1627
  align: e.align,
1012
1628
  side: e.side,
1013
1629
  "side-offset": 8,
1014
1630
  "aria-labelledby": e.title ? a(l) : void 0
1015
1631
  }, {
1016
- default: u(() => [
1017
- e.title ? (o(), i("header", Pa, [
1018
- c("h2", { id: a(l) }, p(e.title), 9, Da),
1019
- m(a(Oe), {
1632
+ default: d(() => [
1633
+ e.title ? (o(), u("header", Kl, [
1634
+ f("h2", { id: a(l) }, p(e.title), 9, jl),
1635
+ c(a(Vt), {
1020
1636
  class: "nb-overlay-close",
1021
1637
  "aria-label": "Close popover"
1022
1638
  }, {
1023
- default: u(() => [...g[0] || (g[0] = [
1024
- V("×", -1)
1639
+ default: d(() => [...v[0] || (v[0] = [
1640
+ k("×", -1)
1025
1641
  ])]),
1026
1642
  _: 1
1027
1643
  })
1028
- ])) : h("", !0),
1029
- c("div", Ma, [
1030
- _(r.$slots, "default")
1644
+ ])) : g("", !0),
1645
+ f("div", Xl, [
1646
+ h(r.$slots, "default")
1031
1647
  ])
1032
1648
  ]),
1033
1649
  _: 3
@@ -1039,10 +1655,10 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1039
1655
  _: 3
1040
1656
  }, 8, ["open", "default-open"]));
1041
1657
  }
1042
- }), qa = { class: "nb-root nb-progress-wrap" }, Oa = {
1658
+ }), Ql = { class: "nb-root nb-progress-wrap" }, Wl = {
1043
1659
  key: 0,
1044
1660
  class: "nb-progress__header"
1045
- }, Ea = /* @__PURE__ */ v({
1661
+ }, Yl = /* @__PURE__ */ _({
1046
1662
  __name: "NbProgress",
1047
1663
  props: {
1048
1664
  value: { default: null },
@@ -1051,35 +1667,35 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1051
1667
  showValue: { type: Boolean, default: !1 }
1052
1668
  },
1053
1669
  setup(e) {
1054
- const n = e, t = $(() => n.value === null ? 0 : Math.min(100, Math.max(0, n.value / n.max * 100)));
1055
- return (s, l) => (o(), i("div", qa, [
1056
- e.showValue ? (o(), i("div", Oa, [
1057
- c("span", null, p(e.label), 1),
1058
- c("span", null, p(Math.round(t.value)) + "%", 1)
1059
- ])) : h("", !0),
1060
- m(a(Ee), {
1670
+ const n = e, t = N(() => n.value === null ? 0 : Math.min(100, Math.max(0, n.value / n.max * 100)));
1671
+ return (s, l) => (o(), u("div", Ql, [
1672
+ e.showValue ? (o(), u("div", Wl, [
1673
+ f("span", null, p(e.label), 1),
1674
+ f("span", null, p(Math.round(t.value)) + "%", 1)
1675
+ ])) : g("", !0),
1676
+ c(a(Bt), {
1061
1677
  class: "nb-progress",
1062
1678
  "model-value": e.value,
1063
1679
  max: e.max,
1064
1680
  "get-value-label": () => e.label
1065
1681
  }, {
1066
- default: u(() => [
1067
- m(a(Ge), {
1682
+ default: d(() => [
1683
+ c(a(wt), {
1068
1684
  class: "nb-progress__indicator",
1069
- style: O(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
1685
+ style: L(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
1070
1686
  }, null, 8, ["style"])
1071
1687
  ]),
1072
1688
  _: 1
1073
1689
  }, 8, ["model-value", "max", "get-value-label"])
1074
1690
  ]));
1075
1691
  }
1076
- }), Ga = ["disabled", "aria-describedby"], za = {
1692
+ }), Zl = ["disabled", "aria-describedby"], en = {
1077
1693
  key: 0,
1078
1694
  class: "nb-radio-group__legend"
1079
- }, La = { class: "nb-radio-group__options" }, Ua = ["for"], Fa = ["id", "name", "value", "checked", "disabled", "onChange"], Ka = { class: "nb-radio__content" }, ja = { class: "nb-radio__label" }, Ha = {
1695
+ }, tn = { class: "nb-radio-group__options" }, an = ["for"], ln = ["id", "name", "value", "checked", "disabled", "onChange"], nn = { class: "nb-radio__content" }, on = { class: "nb-radio__label" }, sn = {
1080
1696
  key: 0,
1081
1697
  class: "nb-radio__description"
1082
- }, Ja = /* @__PURE__ */ v({
1698
+ }, dn = /* @__PURE__ */ _({
1083
1699
  __name: "NbRadioGroup",
1084
1700
  props: {
1085
1701
  modelValue: { default: "" },
@@ -1091,47 +1707,47 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1091
1707
  },
1092
1708
  emits: ["update:modelValue"],
1093
1709
  setup(e, { emit: n }) {
1094
- const t = e, s = n, l = S("radio-group"), b = t.name ?? l, f = `${l}-hint`;
1095
- return (d, r) => (o(), i("fieldset", {
1710
+ const t = e, s = n, l = M("radio-group"), b = t.name ?? l, m = `${l}-hint`;
1711
+ return (i, r) => (o(), u("fieldset", {
1096
1712
  class: "nb-root nb-radio-group",
1097
1713
  disabled: e.disabled,
1098
- "aria-describedby": e.hint ? f : void 0
1714
+ "aria-describedby": e.hint ? m : void 0
1099
1715
  }, [
1100
- e.label ? (o(), i("legend", za, p(e.label), 1)) : h("", !0),
1101
- e.hint ? (o(), i("p", {
1716
+ e.label ? (o(), u("legend", en, p(e.label), 1)) : g("", !0),
1717
+ e.hint ? (o(), u("p", {
1102
1718
  key: 1,
1103
- id: f,
1719
+ id: m,
1104
1720
  class: "nb-field__hint nb-radio-group__hint"
1105
- }, p(e.hint), 1)) : h("", !0),
1106
- c("div", La, [
1107
- (o(!0), i(P, null, D(e.options, (g, y) => (o(), i("label", {
1108
- key: g.value,
1109
- class: B(["nb-radio", { "is-checked": e.modelValue === g.value }]),
1110
- for: `${a(l)}-${y}`
1721
+ }, p(e.hint), 1)) : g("", !0),
1722
+ f("div", tn, [
1723
+ (o(!0), u(B, null, T(e.options, (v, $) => (o(), u("label", {
1724
+ key: v.value,
1725
+ class: I(["nb-radio", { "is-checked": e.modelValue === v.value }]),
1726
+ for: `${a(l)}-${$}`
1111
1727
  }, [
1112
- c("input", {
1113
- id: `${a(l)}-${y}`,
1728
+ f("input", {
1729
+ id: `${a(l)}-${$}`,
1114
1730
  class: "nb-radio__input",
1115
1731
  type: "radio",
1116
1732
  name: a(b),
1117
- value: g.value,
1118
- checked: e.modelValue === g.value,
1119
- disabled: e.disabled || g.disabled,
1120
- onChange: (R) => s("update:modelValue", g.value)
1121
- }, null, 40, Fa),
1122
- r[0] || (r[0] = c("span", {
1733
+ value: v.value,
1734
+ checked: e.modelValue === v.value,
1735
+ disabled: e.disabled || v.disabled,
1736
+ onChange: (P) => s("update:modelValue", v.value)
1737
+ }, null, 40, ln),
1738
+ r[0] || (r[0] = f("span", {
1123
1739
  class: "nb-radio__mark",
1124
1740
  "aria-hidden": "true"
1125
1741
  }, null, -1)),
1126
- c("span", Ka, [
1127
- c("span", ja, p(g.label), 1),
1128
- g.description ? (o(), i("span", Ha, p(g.description), 1)) : h("", !0)
1742
+ f("span", nn, [
1743
+ f("span", on, p(v.label), 1),
1744
+ v.description ? (o(), u("span", sn, p(v.description), 1)) : g("", !0)
1129
1745
  ])
1130
- ], 10, Ua))), 128))
1746
+ ], 10, an))), 128))
1131
1747
  ])
1132
- ], 8, Ga));
1748
+ ], 8, Zl));
1133
1749
  }
1134
- }), Xa = /* @__PURE__ */ v({
1750
+ }), rn = /* @__PURE__ */ _({
1135
1751
  __name: "NbScrollArea",
1136
1752
  props: {
1137
1753
  label: { default: "Scrollable content" },
@@ -1139,27 +1755,27 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1139
1755
  type: { default: "hover" }
1140
1756
  },
1141
1757
  setup(e) {
1142
- return (n, t) => (o(), N(a(ze), {
1758
+ return (n, t) => (o(), y(a(St), {
1143
1759
  class: "nb-root nb-scroll-area",
1144
1760
  type: e.type,
1145
- style: O({ height: e.height })
1761
+ style: L({ height: e.height })
1146
1762
  }, {
1147
- default: u(() => [
1148
- m(a(Le), {
1763
+ default: d(() => [
1764
+ c(a(Tt), {
1149
1765
  class: "nb-scroll-area__viewport",
1150
1766
  "aria-label": e.label
1151
1767
  }, {
1152
- default: u(() => [
1153
- _(n.$slots, "default")
1768
+ default: d(() => [
1769
+ h(n.$slots, "default")
1154
1770
  ]),
1155
1771
  _: 3
1156
1772
  }, 8, ["aria-label"]),
1157
- m(a(Ue), {
1773
+ c(a(Mt), {
1158
1774
  class: "nb-scroll-area__scrollbar",
1159
1775
  orientation: "vertical"
1160
1776
  }, {
1161
- default: u(() => [
1162
- m(a(Fe), { class: "nb-scroll-area__thumb" })
1777
+ default: d(() => [
1778
+ c(a(At), { class: "nb-scroll-area__thumb" })
1163
1779
  ]),
1164
1780
  _: 1
1165
1781
  })
@@ -1167,7 +1783,90 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1167
1783
  _: 3
1168
1784
  }, 8, ["type", "style"]));
1169
1785
  }
1170
- }), Qa = { class: "nb-root nb-field" }, Wa = ["for"], Ya = ["id"], Za = ["id"], el = /* @__PURE__ */ v({
1786
+ }), un = { class: "nb-sheet__header" }, cn = { class: "nb-sheet__body" }, bn = {
1787
+ key: 0,
1788
+ class: "nb-sheet__footer"
1789
+ }, fn = /* @__PURE__ */ _({
1790
+ __name: "NbSheet",
1791
+ props: {
1792
+ open: { type: Boolean, default: void 0 },
1793
+ defaultOpen: { type: Boolean, default: !1 },
1794
+ title: {},
1795
+ description: {},
1796
+ side: { default: "right" }
1797
+ },
1798
+ emits: ["update:open"],
1799
+ setup(e, { emit: n }) {
1800
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
1801
+ w(() => t.open, (i) => {
1802
+ i !== void 0 && (l.value = i);
1803
+ });
1804
+ function m(i) {
1805
+ l.value = i, s("update:open", i);
1806
+ }
1807
+ return (i, r) => (o(), y(a(Y), {
1808
+ open: b.value,
1809
+ "onUpdate:open": m
1810
+ }, {
1811
+ default: d(() => [
1812
+ c(a(Z), { class: "nb-root nb-overlay-trigger" }, {
1813
+ default: d(() => [
1814
+ h(i.$slots, "trigger")
1815
+ ]),
1816
+ _: 3
1817
+ }),
1818
+ c(a(ee), null, {
1819
+ default: d(() => [
1820
+ c(a(te), { class: "nb-root nb-sheet__overlay" }),
1821
+ c(a(ae), x(e.description ? {} : { "aria-describedby": void 0 }, {
1822
+ class: ["nb-root nb-sheet", `nb-sheet--${e.side}`]
1823
+ }), {
1824
+ default: d(() => [
1825
+ f("header", un, [
1826
+ f("div", null, [
1827
+ c(a(le), { class: "nb-sheet__title" }, {
1828
+ default: d(() => [
1829
+ k(p(e.title), 1)
1830
+ ]),
1831
+ _: 1
1832
+ }),
1833
+ e.description ? (o(), y(a(Dt), {
1834
+ key: 0,
1835
+ class: "nb-sheet__description"
1836
+ }, {
1837
+ default: d(() => [
1838
+ k(p(e.description), 1)
1839
+ ]),
1840
+ _: 1
1841
+ })) : g("", !0)
1842
+ ]),
1843
+ c(a(ne), {
1844
+ class: "nb-overlay-close",
1845
+ "aria-label": "Close sheet"
1846
+ }, {
1847
+ default: d(() => [...r[0] || (r[0] = [
1848
+ k("×", -1)
1849
+ ])]),
1850
+ _: 1
1851
+ })
1852
+ ]),
1853
+ f("div", cn, [
1854
+ h(i.$slots, "default")
1855
+ ]),
1856
+ i.$slots.footer ? (o(), u("footer", bn, [
1857
+ h(i.$slots, "footer")
1858
+ ])) : g("", !0)
1859
+ ]),
1860
+ _: 3
1861
+ }, 16, ["class"])
1862
+ ]),
1863
+ _: 3
1864
+ })
1865
+ ]),
1866
+ _: 3
1867
+ }, 8, ["open"]));
1868
+ }
1869
+ }), mn = { class: "nb-root nb-field" }, pn = ["for"], _n = ["id"], vn = ["id"], hn = /* @__PURE__ */ _({
1171
1870
  inheritAttrs: !1,
1172
1871
  __name: "NbSelect",
1173
1872
  props: {
@@ -1183,42 +1882,42 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1183
1882
  },
1184
1883
  emits: ["update:modelValue"],
1185
1884
  setup(e, { emit: n }) {
1186
- const t = e, s = n, l = w("select", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
1187
- function f(d) {
1188
- typeof d == "string" && s("update:modelValue", d);
1885
+ const t = e, s = n, l = S("select", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
1886
+ function m(i) {
1887
+ typeof i == "string" && s("update:modelValue", i);
1189
1888
  }
1190
- return (d, r) => (o(), i("div", Qa, [
1191
- e.label ? (o(), i("label", {
1889
+ return (i, r) => (o(), u("div", mn, [
1890
+ e.label ? (o(), u("label", {
1192
1891
  key: 0,
1193
1892
  class: "nb-field__label",
1194
1893
  for: a(l).inputId
1195
- }, p(e.label), 9, Wa)) : h("", !0),
1196
- m(a(Ke), {
1894
+ }, p(e.label), 9, pn)) : g("", !0),
1895
+ c(a(Ot), {
1197
1896
  "model-value": e.modelValue,
1198
1897
  disabled: e.disabled,
1199
1898
  required: e.required,
1200
1899
  name: e.name,
1201
- "onUpdate:modelValue": f
1900
+ "onUpdate:modelValue": m
1202
1901
  }, {
1203
- default: u(() => [
1204
- m(a(je), k(d.$attrs, {
1902
+ default: d(() => [
1903
+ c(a(Pt), x(i.$attrs, {
1205
1904
  id: a(l).inputId,
1206
1905
  class: "nb-select__trigger",
1207
1906
  "aria-invalid": e.error ? "true" : void 0,
1208
1907
  "aria-describedby": b.value
1209
1908
  }), {
1210
- default: u(() => [
1211
- m(a(He), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
1212
- m(a(Je), {
1909
+ default: d(() => [
1910
+ c(a(Rt), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
1911
+ c(a(Lt), {
1213
1912
  class: "nb-select__icon",
1214
1913
  "aria-hidden": "true"
1215
1914
  }, {
1216
- default: u(() => [...r[0] || (r[0] = [
1217
- c("svg", {
1915
+ default: d(() => [...r[0] || (r[0] = [
1916
+ f("svg", {
1218
1917
  viewBox: "0 0 16 16",
1219
1918
  focusable: "false"
1220
1919
  }, [
1221
- c("path", { d: "m3 6 5 5 5-5" })
1920
+ f("path", { d: "m3 6 5 5 5-5" })
1222
1921
  ], -1)
1223
1922
  ])]),
1224
1923
  _: 1
@@ -1226,46 +1925,46 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1226
1925
  ]),
1227
1926
  _: 1
1228
1927
  }, 16, ["id", "aria-invalid", "aria-describedby"]),
1229
- m(a(Xe), null, {
1230
- default: u(() => [
1231
- m(a(Qe), {
1928
+ c(a(Ut), null, {
1929
+ default: d(() => [
1930
+ c(a(Gt), {
1232
1931
  class: "nb-root nb-select__content",
1233
1932
  position: "popper",
1234
1933
  "side-offset": 5
1235
1934
  }, {
1236
- default: u(() => [
1237
- m(a(We), {
1935
+ default: d(() => [
1936
+ c(a(qt), {
1238
1937
  class: "nb-select__scroll-button",
1239
1938
  "aria-label": "Scroll up"
1240
1939
  }, {
1241
- default: u(() => [...r[1] || (r[1] = [
1242
- c("svg", {
1940
+ default: d(() => [...r[1] || (r[1] = [
1941
+ f("svg", {
1243
1942
  viewBox: "0 0 16 16",
1244
1943
  "aria-hidden": "true",
1245
1944
  focusable: "false"
1246
1945
  }, [
1247
- c("path", { d: "m3 10 5-5 5 5" })
1946
+ f("path", { d: "m3 10 5-5 5 5" })
1248
1947
  ], -1)
1249
1948
  ])]),
1250
1949
  _: 1
1251
1950
  }),
1252
- m(a(Ye), { class: "nb-select__viewport" }, {
1253
- default: u(() => [
1254
- _(d.$slots, "default")
1951
+ c(a(Et), { class: "nb-select__viewport" }, {
1952
+ default: d(() => [
1953
+ h(i.$slots, "default")
1255
1954
  ]),
1256
1955
  _: 3
1257
1956
  }),
1258
- m(a(Ze), {
1957
+ c(a(zt), {
1259
1958
  class: "nb-select__scroll-button",
1260
1959
  "aria-label": "Scroll down"
1261
1960
  }, {
1262
- default: u(() => [...r[2] || (r[2] = [
1263
- c("svg", {
1961
+ default: d(() => [...r[2] || (r[2] = [
1962
+ f("svg", {
1264
1963
  viewBox: "0 0 16 16",
1265
1964
  "aria-hidden": "true",
1266
1965
  focusable: "false"
1267
1966
  }, [
1268
- c("path", { d: "m3 6 5 5 5-5" })
1967
+ f("path", { d: "m3 6 5 5 5-5" })
1269
1968
  ], -1)
1270
1969
  ])]),
1271
1970
  _: 1
@@ -1279,48 +1978,48 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1279
1978
  ]),
1280
1979
  _: 3
1281
1980
  }, 8, ["model-value", "disabled", "required", "name"]),
1282
- e.hint ? (o(), i("span", {
1981
+ e.hint ? (o(), u("span", {
1283
1982
  key: 1,
1284
1983
  id: a(l).hintId,
1285
1984
  class: "nb-field__hint"
1286
- }, p(e.hint), 9, Ya)) : h("", !0),
1287
- e.error ? (o(), i("span", {
1985
+ }, p(e.hint), 9, _n)) : g("", !0),
1986
+ e.error ? (o(), u("span", {
1288
1987
  key: 2,
1289
1988
  id: a(l).errorId,
1290
1989
  class: "nb-field__error"
1291
- }, p(e.error), 9, Za)) : h("", !0)
1990
+ }, p(e.error), 9, vn)) : g("", !0)
1292
1991
  ]));
1293
1992
  }
1294
- }), tl = /* @__PURE__ */ v({
1993
+ }), gn = /* @__PURE__ */ _({
1295
1994
  __name: "NbSelectItem",
1296
1995
  props: {
1297
1996
  value: {},
1298
1997
  disabled: { type: Boolean, default: !1 }
1299
1998
  },
1300
1999
  setup(e) {
1301
- return (n, t) => (o(), N(a(et), {
2000
+ return (n, t) => (o(), y(a(Ft), {
1302
2001
  class: "nb-select__item",
1303
2002
  value: e.value,
1304
2003
  disabled: e.disabled,
1305
2004
  "data-value": e.value
1306
2005
  }, {
1307
- default: u(() => [
1308
- m(a(tt), null, {
1309
- default: u(() => [
1310
- _(n.$slots, "default")
2006
+ default: d(() => [
2007
+ c(a(Ht), null, {
2008
+ default: d(() => [
2009
+ h(n.$slots, "default")
1311
2010
  ]),
1312
2011
  _: 3
1313
2012
  }),
1314
- m(a(at), {
2013
+ c(a(Kt), {
1315
2014
  class: "nb-select__indicator",
1316
2015
  "aria-hidden": "true"
1317
2016
  }, {
1318
- default: u(() => [...t[0] || (t[0] = [
1319
- c("svg", {
2017
+ default: d(() => [...t[0] || (t[0] = [
2018
+ f("svg", {
1320
2019
  viewBox: "0 0 16 16",
1321
2020
  focusable: "false"
1322
2021
  }, [
1323
- c("path", { d: "m2.5 8.5 3.5 3.5 7.5-8" })
2022
+ f("path", { d: "m2.5 8.5 3.5 3.5 7.5-8" })
1324
2023
  ], -1)
1325
2024
  ])]),
1326
2025
  _: 1
@@ -1329,26 +2028,26 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1329
2028
  _: 3
1330
2029
  }, 8, ["value", "disabled", "data-value"]));
1331
2030
  }
1332
- }), al = /* @__PURE__ */ v({
2031
+ }), yn = /* @__PURE__ */ _({
1333
2032
  __name: "NbSeparator",
1334
2033
  props: {
1335
2034
  orientation: { default: "horizontal" },
1336
2035
  decorative: { type: Boolean, default: !0 }
1337
2036
  },
1338
2037
  setup(e) {
1339
- return (n, t) => (o(), N(a(lt), {
2038
+ return (n, t) => (o(), y(a(jt), {
1340
2039
  class: "nb-root nb-separator",
1341
2040
  orientation: e.orientation,
1342
2041
  decorative: e.decorative
1343
2042
  }, null, 8, ["orientation", "decorative"]));
1344
2043
  }
1345
- }), ll = { class: "nb-root nb-field" }, nl = {
2044
+ }), $n = { class: "nb-root nb-field" }, Nn = {
1346
2045
  key: 0,
1347
2046
  class: "nb-slider__header"
1348
- }, ol = {
2047
+ }, kn = {
1349
2048
  key: 1,
1350
2049
  class: "nb-slider__value"
1351
- }, sl = ["id"], il = ["id"], dl = /* @__PURE__ */ v({
2050
+ }, xn = ["id"], In = ["id"], Cn = /* @__PURE__ */ _({
1352
2051
  inheritAttrs: !1,
1353
2052
  __name: "NbSlider",
1354
2053
  props: {
@@ -1367,23 +2066,23 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1367
2066
  },
1368
2067
  emits: ["update:modelValue", "change"],
1369
2068
  setup(e, { emit: n }) {
1370
- const t = e, s = n, l = w("slider", t.id), b = `${l.inputId}-label`, f = $(() => A(t.hint, t.error, l.hintId, l.errorId));
1371
- function d(g) {
1372
- g?.[0] !== void 0 && s("update:modelValue", g[0]);
2069
+ const t = e, s = n, l = S("slider", t.id), b = `${l.inputId}-label`, m = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2070
+ function i(v) {
2071
+ v?.[0] !== void 0 && s("update:modelValue", v[0]);
1373
2072
  }
1374
- function r(g) {
1375
- g[0] !== void 0 && s("change", g[0]);
2073
+ function r(v) {
2074
+ v[0] !== void 0 && s("change", v[0]);
1376
2075
  }
1377
- return (g, y) => (o(), i("div", ll, [
1378
- e.label || e.showValue ? (o(), i("div", nl, [
1379
- e.label ? (o(), i("span", {
2076
+ return (v, $) => (o(), u("div", $n, [
2077
+ e.label || e.showValue ? (o(), u("div", Nn, [
2078
+ e.label ? (o(), u("span", {
1380
2079
  key: 0,
1381
2080
  id: b,
1382
2081
  class: "nb-field__label"
1383
- }, p(e.label), 1)) : h("", !0),
1384
- e.showValue ? (o(), i("output", ol, p(e.modelValue), 1)) : h("", !0)
1385
- ])) : h("", !0),
1386
- m(a(nt), {
2082
+ }, p(e.label), 1)) : g("", !0),
2083
+ e.showValue ? (o(), u("output", kn, p(e.modelValue), 1)) : g("", !0)
2084
+ ])) : g("", !0),
2085
+ c(a(Xt), {
1387
2086
  class: "nb-slider",
1388
2087
  "model-value": [e.modelValue],
1389
2088
  min: e.min,
@@ -1392,39 +2091,39 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1392
2091
  disabled: e.disabled,
1393
2092
  required: e.required,
1394
2093
  name: e.name,
1395
- "onUpdate:modelValue": d,
2094
+ "onUpdate:modelValue": i,
1396
2095
  onValueCommit: r
1397
2096
  }, {
1398
- default: u(() => [
1399
- m(a(ot), { class: "nb-slider__track" }, {
1400
- default: u(() => [
1401
- m(a(st), { class: "nb-slider__range" })
2097
+ default: d(() => [
2098
+ c(a(Jt), { class: "nb-slider__track" }, {
2099
+ default: d(() => [
2100
+ c(a(Qt), { class: "nb-slider__range" })
1402
2101
  ]),
1403
2102
  _: 1
1404
2103
  }),
1405
- m(a(it), k(g.$attrs, {
2104
+ c(a(Wt), x(v.$attrs, {
1406
2105
  id: a(l).inputId,
1407
2106
  class: "nb-slider__thumb",
1408
2107
  "aria-labelledby": e.label ? b : void 0,
1409
2108
  "aria-invalid": e.error ? "true" : void 0,
1410
- "aria-describedby": f.value
2109
+ "aria-describedby": m.value
1411
2110
  }), null, 16, ["id", "aria-labelledby", "aria-invalid", "aria-describedby"])
1412
2111
  ]),
1413
2112
  _: 1
1414
2113
  }, 8, ["model-value", "min", "max", "step", "disabled", "required", "name"]),
1415
- e.hint ? (o(), i("span", {
2114
+ e.hint ? (o(), u("span", {
1416
2115
  key: 1,
1417
2116
  id: a(l).hintId,
1418
2117
  class: "nb-field__hint"
1419
- }, p(e.hint), 9, sl)) : h("", !0),
1420
- e.error ? (o(), i("span", {
2118
+ }, p(e.hint), 9, xn)) : g("", !0),
2119
+ e.error ? (o(), u("span", {
1421
2120
  key: 2,
1422
2121
  id: a(l).errorId,
1423
2122
  class: "nb-field__error"
1424
- }, p(e.error), 9, il)) : h("", !0)
2123
+ }, p(e.error), 9, In)) : g("", !0)
1425
2124
  ]));
1426
2125
  }
1427
- }), rl = /* @__PURE__ */ v({
2126
+ }), Vn = /* @__PURE__ */ _({
1428
2127
  __name: "NbSkeleton",
1429
2128
  props: {
1430
2129
  width: { default: "100%" },
@@ -1432,32 +2131,32 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1432
2131
  rounded: { type: Boolean, default: !1 }
1433
2132
  },
1434
2133
  setup(e) {
1435
- const n = e, t = $(() => ({ width: n.width, height: n.height }));
1436
- return (s, l) => (o(), i("div", {
1437
- class: B(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
1438
- style: O(t.value),
2134
+ const n = e, t = N(() => ({ width: n.width, height: n.height }));
2135
+ return (s, l) => (o(), u("div", {
2136
+ class: I(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
2137
+ style: L(t.value),
1439
2138
  "aria-hidden": "true"
1440
2139
  }, null, 6));
1441
2140
  }
1442
- }), ul = ["aria-label"], cl = /* @__PURE__ */ v({
2141
+ }), Bn = ["aria-label"], wn = /* @__PURE__ */ _({
1443
2142
  __name: "NbSpinner",
1444
2143
  props: {
1445
2144
  label: { default: "Loading" },
1446
2145
  size: { default: "md" }
1447
2146
  },
1448
2147
  setup(e) {
1449
- return (n, t) => (o(), i("span", {
2148
+ return (n, t) => (o(), u("span", {
1450
2149
  class: "nb-root nb-spinner-wrap",
1451
2150
  role: "status",
1452
2151
  "aria-label": e.label
1453
2152
  }, [
1454
- c("span", {
1455
- class: B(["nb-spinner", `nb-spinner--${e.size}`]),
2153
+ f("span", {
2154
+ class: I(["nb-spinner", `nb-spinner--${e.size}`]),
1456
2155
  "aria-hidden": "true"
1457
2156
  }, null, 2)
1458
- ], 8, ul));
2157
+ ], 8, Bn));
1459
2158
  }
1460
- }), bl = ["for"], fl = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], ml = { class: "nb-switch__content" }, pl = { class: "nb-switch__label" }, hl = ["id"], vl = /* @__PURE__ */ v({
2159
+ }), Sn = ["for"], Tn = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], Mn = { class: "nb-switch__content" }, An = { class: "nb-switch__label" }, Dn = ["id"], On = /* @__PURE__ */ _({
1461
2160
  inheritAttrs: !1,
1462
2161
  __name: "NbSwitch",
1463
2162
  props: {
@@ -1469,12 +2168,12 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1469
2168
  },
1470
2169
  emits: ["update:modelValue"],
1471
2170
  setup(e, { emit: n }) {
1472
- const t = e, s = n, l = w("switch", t.id);
1473
- return (b, f) => (o(), i("label", {
1474
- class: B(["nb-root nb-switch", { "is-disabled": e.disabled }]),
2171
+ const t = e, s = n, l = S("switch", t.id);
2172
+ return (b, m) => (o(), u("label", {
2173
+ class: I(["nb-root nb-switch", { "is-disabled": e.disabled }]),
1475
2174
  for: a(l).inputId
1476
2175
  }, [
1477
- c("input", k(b.$attrs, {
2176
+ f("input", x(b.$attrs, {
1478
2177
  id: a(l).inputId,
1479
2178
  class: "nb-switch__input",
1480
2179
  type: "checkbox",
@@ -1483,31 +2182,31 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
1483
2182
  disabled: e.disabled,
1484
2183
  "aria-checked": e.modelValue ? "true" : "false",
1485
2184
  "aria-describedby": e.description ? a(l).hintId : void 0,
1486
- onChange: f[0] || (f[0] = (d) => s("update:modelValue", d.target.checked))
1487
- }), null, 16, fl),
1488
- f[1] || (f[1] = c("span", {
2185
+ onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
2186
+ }), null, 16, Tn),
2187
+ m[1] || (m[1] = f("span", {
1489
2188
  class: "nb-switch__track",
1490
2189
  "aria-hidden": "true"
1491
2190
  }, [
1492
- c("span", { class: "nb-switch__thumb" })
2191
+ f("span", { class: "nb-switch__thumb" })
1493
2192
  ], -1)),
1494
- c("span", ml, [
1495
- c("span", pl, p(e.label), 1),
1496
- e.description ? (o(), i("span", {
2193
+ f("span", Mn, [
2194
+ f("span", An, p(e.label), 1),
2195
+ e.description ? (o(), u("span", {
1497
2196
  key: 0,
1498
2197
  id: a(l).hintId,
1499
2198
  class: "nb-switch__description"
1500
- }, p(e.description), 9, hl)) : h("", !0)
2199
+ }, p(e.description), 9, Dn)) : g("", !0)
1501
2200
  ])
1502
- ], 10, bl));
2201
+ ], 10, Sn));
1503
2202
  }
1504
- }), U = /* @__PURE__ */ Symbol("nb-tabs");
1505
- function E() {
1506
- const e = X(U);
2203
+ }), se = /* @__PURE__ */ Symbol("nb-tabs");
2204
+ function U() {
2205
+ const e = be(se);
1507
2206
  if (!e) throw new Error("Tabs components must be used inside NbTabs");
1508
2207
  return e;
1509
2208
  }
1510
- const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
2209
+ const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
1511
2210
  __name: "NbTabs",
1512
2211
  props: {
1513
2212
  modelValue: {},
@@ -1516,31 +2215,31 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1516
2215
  },
1517
2216
  emits: ["update:modelValue"],
1518
2217
  setup(e, { emit: n }) {
1519
- const t = e, s = n, l = S("tabs"), b = x(t.defaultValue), f = $(() => t.modelValue ?? b.value), d = $(() => t.orientation), r = (y) => encodeURIComponent(y);
1520
- function g(y) {
1521
- t.modelValue === void 0 && (b.value = y), s("update:modelValue", y);
2218
+ const t = e, s = n, l = M("tabs"), b = V(t.defaultValue), m = N(() => t.modelValue ?? b.value), i = N(() => t.orientation), r = ($) => encodeURIComponent($);
2219
+ function v($) {
2220
+ t.modelValue === void 0 && (b.value = $), s("update:modelValue", $);
1522
2221
  }
1523
- return Q(U, {
1524
- activeValue: f,
1525
- orientation: d,
1526
- select: g,
1527
- triggerId: (y) => `${l}-tab-${r(y)}`,
1528
- panelId: (y) => `${l}-panel-${r(y)}`
1529
- }), (y, R) => (o(), i("div", {
1530
- class: B(["nb-root nb-tabs", `nb-tabs--${d.value}`]),
1531
- "data-orientation": d.value
2222
+ return fe(se, {
2223
+ activeValue: m,
2224
+ orientation: i,
2225
+ select: v,
2226
+ triggerId: ($) => `${l}-tab-${r($)}`,
2227
+ panelId: ($) => `${l}-panel-${r($)}`
2228
+ }), ($, P) => (o(), u("div", {
2229
+ class: I(["nb-root nb-tabs", `nb-tabs--${i.value}`]),
2230
+ "data-orientation": i.value
1532
2231
  }, [
1533
- _(y.$slots, "default")
1534
- ], 10, gl));
2232
+ h($.$slots, "default")
2233
+ ], 10, Pn));
1535
2234
  }
1536
- }), yl = ["id", "aria-labelledby", "hidden"], $l = /* @__PURE__ */ v({
2235
+ }), Ln = ["id", "aria-labelledby", "hidden"], Un = /* @__PURE__ */ _({
1537
2236
  __name: "NbTabsContent",
1538
2237
  props: {
1539
2238
  value: {}
1540
2239
  },
1541
2240
  setup(e) {
1542
- const n = e, t = E(), s = $(() => t.activeValue.value === n.value);
1543
- return (l, b) => W((o(), i("div", {
2241
+ const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
2242
+ return (l, b) => me((o(), u("div", {
1544
2243
  class: "nb-tabs__content",
1545
2244
  role: "tabpanel",
1546
2245
  id: a(t).panelId(e.value),
@@ -1548,43 +2247,43 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1548
2247
  hidden: !s.value,
1549
2248
  tabindex: "0"
1550
2249
  }, [
1551
- _(l.$slots, "default")
1552
- ], 8, yl)), [
1553
- [Y, s.value]
2250
+ h(l.$slots, "default")
2251
+ ], 8, Ln)), [
2252
+ [pe, s.value]
1554
2253
  ]);
1555
2254
  }
1556
- }), Nl = ["aria-orientation"], kl = /* @__PURE__ */ v({
2255
+ }), Gn = ["aria-orientation"], qn = /* @__PURE__ */ _({
1557
2256
  __name: "NbTabsList",
1558
2257
  setup(e) {
1559
- const { orientation: n } = E();
2258
+ const { orientation: n } = U();
1560
2259
  function t(s) {
1561
2260
  const l = n.value === "vertical" ? "ArrowUp" : "ArrowLeft", b = n.value === "vertical" ? "ArrowDown" : "ArrowRight";
1562
2261
  if (![l, b, "Home", "End"].includes(s.key)) return;
1563
- const f = s.currentTarget, d = Array.from(f.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), g = r ? d.indexOf(r) : -1;
1564
- if (!d.length || g < 0) return;
2262
+ const m = s.currentTarget, i = Array.from(m.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), v = r ? i.indexOf(r) : -1;
2263
+ if (!i.length || v < 0) return;
1565
2264
  s.preventDefault();
1566
- const y = s.key === "Home" ? 0 : s.key === "End" ? d.length - 1 : (g + (s.key === b ? 1 : -1) + d.length) % d.length;
1567
- d[y]?.focus(), d[y]?.click();
2265
+ const $ = s.key === "Home" ? 0 : s.key === "End" ? i.length - 1 : (v + (s.key === b ? 1 : -1) + i.length) % i.length;
2266
+ i[$]?.focus(), i[$]?.click();
1568
2267
  }
1569
- return (s, l) => (o(), i("div", {
2268
+ return (s, l) => (o(), u("div", {
1570
2269
  class: "nb-tabs__list",
1571
2270
  role: "tablist",
1572
2271
  "aria-orientation": a(n),
1573
2272
  onKeydown: t
1574
2273
  }, [
1575
- _(s.$slots, "default")
1576
- ], 40, Nl));
2274
+ h(s.$slots, "default")
2275
+ ], 40, Gn));
1577
2276
  }
1578
- }), Il = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], Bl = /* @__PURE__ */ v({
2277
+ }), En = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], zn = /* @__PURE__ */ _({
1579
2278
  __name: "NbTabsTrigger",
1580
2279
  props: {
1581
2280
  value: {},
1582
2281
  disabled: { type: Boolean, default: !1 }
1583
2282
  },
1584
2283
  setup(e) {
1585
- const n = e, t = E(), s = $(() => t.activeValue.value === n.value);
1586
- return (l, b) => (o(), i("button", {
1587
- class: B(["nb-tabs__trigger", { "is-active": s.value }]),
2284
+ const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
2285
+ return (l, b) => (o(), u("button", {
2286
+ class: I(["nb-tabs__trigger", { "is-active": s.value }]),
1588
2287
  id: a(t).triggerId(e.value),
1589
2288
  type: "button",
1590
2289
  role: "tab",
@@ -1593,12 +2292,12 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1593
2292
  tabindex: s.value ? 0 : -1,
1594
2293
  disabled: e.disabled,
1595
2294
  "data-active": s.value ? "" : void 0,
1596
- onClick: b[0] || (b[0] = (f) => a(t).select(e.value))
2295
+ onClick: b[0] || (b[0] = (m) => a(t).select(e.value))
1597
2296
  }, [
1598
- _(l.$slots, "default")
1599
- ], 10, Il));
2297
+ h(l.$slots, "default")
2298
+ ], 10, En));
1600
2299
  }
1601
- }), Vl = { class: "nb-root nb-field" }, wl = ["for"], xl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], Sl = ["id"], Tl = ["id"], Al = /* @__PURE__ */ v({
2300
+ }), Fn = { class: "nb-root nb-field" }, Hn = ["for"], Kn = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], jn = ["id"], Xn = ["id"], Jn = /* @__PURE__ */ _({
1602
2301
  inheritAttrs: !1,
1603
2302
  __name: "NbTextarea",
1604
2303
  props: {
@@ -1611,49 +2310,49 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1611
2310
  },
1612
2311
  emits: ["update:modelValue"],
1613
2312
  setup(e, { emit: n }) {
1614
- const t = e, s = n, l = w("textarea", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
1615
- return (f, d) => (o(), i("div", Vl, [
1616
- e.label ? (o(), i("label", {
2313
+ const t = e, s = n, l = S("textarea", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2314
+ return (m, i) => (o(), u("div", Fn, [
2315
+ e.label ? (o(), u("label", {
1617
2316
  key: 0,
1618
2317
  class: "nb-field__label",
1619
2318
  for: a(l).inputId
1620
- }, p(e.label), 9, wl)) : h("", !0),
1621
- c("textarea", k(f.$attrs, {
2319
+ }, p(e.label), 9, Hn)) : g("", !0),
2320
+ f("textarea", x(m.$attrs, {
1622
2321
  id: a(l).inputId,
1623
2322
  class: "nb-field__control nb-field__control--textarea",
1624
2323
  value: e.modelValue,
1625
2324
  disabled: e.disabled,
1626
2325
  "aria-invalid": e.error ? "true" : void 0,
1627
2326
  "aria-describedby": b.value,
1628
- onInput: d[0] || (d[0] = (r) => s("update:modelValue", r.target.value))
1629
- }), null, 16, xl),
1630
- e.hint ? (o(), i("span", {
2327
+ onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
2328
+ }), null, 16, Kn),
2329
+ e.hint ? (o(), u("span", {
1631
2330
  key: 1,
1632
2331
  id: a(l).hintId,
1633
2332
  class: "nb-field__hint"
1634
- }, p(e.hint), 9, Sl)) : h("", !0),
1635
- e.error ? (o(), i("span", {
2333
+ }, p(e.hint), 9, jn)) : g("", !0),
2334
+ e.error ? (o(), u("span", {
1636
2335
  key: 2,
1637
2336
  id: a(l).errorId,
1638
2337
  class: "nb-field__error"
1639
- }, p(e.error), 9, Tl)) : h("", !0)
2338
+ }, p(e.error), 9, Xn)) : g("", !0)
1640
2339
  ]));
1641
2340
  }
1642
- }), Cl = { class: "nb-root nb-table-wrap" }, Pl = { key: 0 }, Dl = /* @__PURE__ */ v({
2341
+ }), Qn = { class: "nb-root nb-table-wrap" }, Wn = { key: 0 }, Yn = /* @__PURE__ */ _({
1643
2342
  inheritAttrs: !1,
1644
2343
  __name: "NbTable",
1645
2344
  props: {
1646
2345
  caption: {}
1647
2346
  },
1648
2347
  setup(e) {
1649
- return (n, t) => (o(), i("div", Cl, [
1650
- c("table", k(n.$attrs, { class: "nb-table" }), [
1651
- e.caption ? (o(), i("caption", Pl, p(e.caption), 1)) : h("", !0),
1652
- _(n.$slots, "default")
2348
+ return (n, t) => (o(), u("div", Qn, [
2349
+ f("table", x(n.$attrs, { class: "nb-table" }), [
2350
+ e.caption ? (o(), u("caption", Wn, p(e.caption), 1)) : g("", !0),
2351
+ h(n.$slots, "default")
1653
2352
  ], 16)
1654
2353
  ]));
1655
2354
  }
1656
- }), Ml = { class: "nb-toast__content" }, Rl = /* @__PURE__ */ v({
2355
+ }), Zn = { class: "nb-toast__content" }, eo = /* @__PURE__ */ _({
1657
2356
  __name: "NbToast",
1658
2357
  props: {
1659
2358
  open: { type: Boolean, default: void 0 },
@@ -1665,63 +2364,63 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1665
2364
  },
1666
2365
  emits: ["update:open"],
1667
2366
  setup(e, { emit: n }) {
1668
- const t = e, s = n, l = x(t.open ?? t.defaultOpen), b = $(() => t.open ?? l.value);
1669
- M(() => t.open, (d) => {
1670
- d !== void 0 && (l.value = d);
2367
+ const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
2368
+ w(() => t.open, (i) => {
2369
+ i !== void 0 && (l.value = i);
1671
2370
  });
1672
- function f(d) {
1673
- l.value = d, s("update:open", d);
2371
+ function m(i) {
2372
+ l.value = i, s("update:open", i);
1674
2373
  }
1675
- return (d, r) => (o(), N(a(dt), {
2374
+ return (i, r) => (o(), y(a(Yt), {
1676
2375
  label: "Notification",
1677
2376
  duration: e.duration
1678
2377
  }, {
1679
- default: u(() => [
1680
- m(a(rt), {
1681
- class: B(["nb-root nb-toast", `nb-toast--${e.tone}`]),
2378
+ default: d(() => [
2379
+ c(a(Zt), {
2380
+ class: I(["nb-root nb-toast", `nb-toast--${e.tone}`]),
1682
2381
  open: b.value,
1683
2382
  "default-open": e.defaultOpen,
1684
2383
  type: "foreground",
1685
2384
  role: "status",
1686
- "onUpdate:open": f
2385
+ "onUpdate:open": m
1687
2386
  }, {
1688
- default: u(() => [
1689
- c("div", Ml, [
1690
- m(a(ut), { class: "nb-toast__title" }, {
1691
- default: u(() => [
1692
- V(p(e.title), 1)
2387
+ default: d(() => [
2388
+ f("div", Zn, [
2389
+ c(a(ea), { class: "nb-toast__title" }, {
2390
+ default: d(() => [
2391
+ k(p(e.title), 1)
1693
2392
  ]),
1694
2393
  _: 1
1695
2394
  }),
1696
- e.description ? (o(), N(a(ct), {
2395
+ e.description ? (o(), y(a(ta), {
1697
2396
  key: 0,
1698
2397
  class: "nb-toast__description"
1699
2398
  }, {
1700
- default: u(() => [
1701
- V(p(e.description), 1)
2399
+ default: d(() => [
2400
+ k(p(e.description), 1)
1702
2401
  ]),
1703
2402
  _: 1
1704
- })) : h("", !0),
1705
- _(d.$slots, "default")
2403
+ })) : g("", !0),
2404
+ h(i.$slots, "default")
1706
2405
  ]),
1707
- m(a(bt), {
2406
+ c(a(aa), {
1708
2407
  class: "nb-overlay-close",
1709
2408
  "aria-label": "Dismiss notification"
1710
2409
  }, {
1711
- default: u(() => [...r[0] || (r[0] = [
1712
- V("×", -1)
2410
+ default: d(() => [...r[0] || (r[0] = [
2411
+ k("×", -1)
1713
2412
  ])]),
1714
2413
  _: 1
1715
2414
  })
1716
2415
  ]),
1717
2416
  _: 3
1718
2417
  }, 8, ["class", "open", "default-open"]),
1719
- m(a(ft), { class: "nb-root nb-toast-viewport" })
2418
+ c(a(la), { class: "nb-root nb-toast-viewport" })
1720
2419
  ]),
1721
2420
  _: 3
1722
2421
  }, 8, ["duration"]));
1723
2422
  }
1724
- }), ql = /* @__PURE__ */ v({
2423
+ }), to = /* @__PURE__ */ _({
1725
2424
  inheritAttrs: !1,
1726
2425
  __name: "NbToggle",
1727
2426
  props: {
@@ -1734,22 +2433,22 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1734
2433
  },
1735
2434
  emits: ["update:modelValue"],
1736
2435
  setup(e, { emit: n }) {
1737
- const t = e, s = n, l = $(() => C(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
1738
- return (b, f) => (o(), N(a(mt), k(b.$attrs, {
2436
+ const t = e, s = n, l = N(() => O(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
2437
+ return (b, m) => (o(), y(a(na), x(b.$attrs, {
1739
2438
  class: ["nb-root nb-toggle", l.value],
1740
2439
  "model-value": e.modelValue,
1741
2440
  "default-value": e.defaultValue,
1742
2441
  disabled: e.disabled,
1743
2442
  "aria-label": e.label,
1744
- "onUpdate:modelValue": f[0] || (f[0] = (d) => s("update:modelValue", d))
2443
+ "onUpdate:modelValue": m[0] || (m[0] = (i) => s("update:modelValue", i))
1745
2444
  }), {
1746
- default: u(() => [
1747
- _(b.$slots, "default")
2445
+ default: d(() => [
2446
+ h(b.$slots, "default")
1748
2447
  ]),
1749
2448
  _: 3
1750
2449
  }, 16, ["class", "model-value", "default-value", "disabled", "aria-label"]));
1751
2450
  }
1752
- }), Ol = { class: "nb-root nb-field" }, El = ["id"], Gl = ["id"], zl = /* @__PURE__ */ v({
2451
+ }), ao = { class: "nb-root nb-field" }, lo = ["id"], no = ["id"], oo = /* @__PURE__ */ _({
1753
2452
  inheritAttrs: !1,
1754
2453
  __name: "NbToggleGroup",
1755
2454
  props: {
@@ -1766,17 +2465,17 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1766
2465
  },
1767
2466
  emits: ["update:modelValue"],
1768
2467
  setup(e, { emit: n }) {
1769
- const t = e, s = n, l = w("toggle-group", t.id), b = `${l.inputId}-label`, f = $(() => A(t.hint, t.error, l.hintId, l.errorId));
1770
- function d(r) {
1771
- (typeof r == "string" || Array.isArray(r) && r.every((g) => typeof g == "string")) && s("update:modelValue", r);
2468
+ const t = e, s = n, l = S("toggle-group", t.id), b = `${l.inputId}-label`, m = N(() => D(t.hint, t.error, l.hintId, l.errorId));
2469
+ function i(r) {
2470
+ (typeof r == "string" || Array.isArray(r) && r.every((v) => typeof v == "string")) && s("update:modelValue", r);
1772
2471
  }
1773
- return (r, g) => (o(), i("div", Ol, [
1774
- e.label ? (o(), i("span", {
2472
+ return (r, v) => (o(), u("div", ao, [
2473
+ e.label ? (o(), u("span", {
1775
2474
  key: 0,
1776
2475
  id: b,
1777
2476
  class: "nb-field__label"
1778
- }, p(e.label), 1)) : h("", !0),
1779
- m(a(pt), k(r.$attrs, {
2477
+ }, p(e.label), 1)) : g("", !0),
2478
+ c(a(oa), x(r.$attrs, {
1780
2479
  id: a(l).inputId,
1781
2480
  class: "nb-toggle-group",
1782
2481
  "model-value": e.modelValue,
@@ -1788,27 +2487,27 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1788
2487
  "data-orientation": e.orientation,
1789
2488
  "aria-labelledby": e.label ? b : void 0,
1790
2489
  "aria-invalid": e.error ? "true" : void 0,
1791
- "aria-describedby": f.value,
1792
- "onUpdate:modelValue": d
2490
+ "aria-describedby": m.value,
2491
+ "onUpdate:modelValue": i
1793
2492
  }), {
1794
- default: u(() => [
1795
- _(r.$slots, "default")
2493
+ default: d(() => [
2494
+ h(r.$slots, "default")
1796
2495
  ]),
1797
2496
  _: 3
1798
2497
  }, 16, ["id", "model-value", "type", "orientation", "disabled", "required", "name", "data-orientation", "aria-labelledby", "aria-invalid", "aria-describedby"]),
1799
- e.hint ? (o(), i("span", {
2498
+ e.hint ? (o(), u("span", {
1800
2499
  key: 1,
1801
2500
  id: a(l).hintId,
1802
2501
  class: "nb-field__hint"
1803
- }, p(e.hint), 9, El)) : h("", !0),
1804
- e.error ? (o(), i("span", {
2502
+ }, p(e.hint), 9, lo)) : g("", !0),
2503
+ e.error ? (o(), u("span", {
1805
2504
  key: 2,
1806
2505
  id: a(l).errorId,
1807
2506
  class: "nb-field__error"
1808
- }, p(e.error), 9, Gl)) : h("", !0)
2507
+ }, p(e.error), 9, no)) : g("", !0)
1809
2508
  ]));
1810
2509
  }
1811
- }), Ll = /* @__PURE__ */ v({
2510
+ }), so = /* @__PURE__ */ _({
1812
2511
  inheritAttrs: !1,
1813
2512
  __name: "NbToggleGroupItem",
1814
2513
  props: {
@@ -1816,156 +2515,184 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
1816
2515
  disabled: { type: Boolean, default: !1 }
1817
2516
  },
1818
2517
  setup(e) {
1819
- return (n, t) => (o(), N(a(ht), k(n.$attrs, {
2518
+ return (n, t) => (o(), y(a(sa), x(n.$attrs, {
1820
2519
  class: "nb-toggle-group__item",
1821
2520
  value: e.value,
1822
2521
  disabled: e.disabled
1823
2522
  }), {
1824
- default: u(() => [
1825
- _(n.$slots, "default")
2523
+ default: d(() => [
2524
+ h(n.$slots, "default")
1826
2525
  ]),
1827
2526
  _: 3
1828
2527
  }, 16, ["value", "disabled"]));
1829
2528
  }
1830
- }), Ul = ["aria-describedby"], Fl = ["id", "hidden"], Kl = /* @__PURE__ */ v({
2529
+ }), io = ["aria-describedby"], ro = ["id", "hidden"], uo = /* @__PURE__ */ _({
1831
2530
  __name: "NbTooltip",
1832
2531
  props: {
1833
2532
  content: {}
1834
2533
  },
1835
2534
  setup(e) {
1836
- const n = e, t = x(!1), s = S("tooltip");
2535
+ const n = e, t = V(!1), s = M("tooltip");
1837
2536
  function l() {
1838
2537
  t.value = !0;
1839
2538
  }
1840
2539
  function b() {
1841
2540
  t.value = !1;
1842
2541
  }
1843
- function f(d) {
1844
- d.key === "Escape" && b();
2542
+ function m(i) {
2543
+ i.key === "Escape" && b();
1845
2544
  }
1846
- return (d, r) => (o(), i("span", {
2545
+ return (i, r) => (o(), u("span", {
1847
2546
  class: "nb-root nb-tooltip",
1848
2547
  onMouseenter: l,
1849
2548
  onMouseleave: b
1850
2549
  }, [
1851
- c("span", {
2550
+ f("span", {
1852
2551
  class: "nb-tooltip__trigger",
1853
2552
  tabindex: "0",
1854
2553
  "aria-describedby": a(s),
1855
2554
  onFocus: l,
1856
2555
  onBlur: b,
1857
- onKeydown: f
2556
+ onKeydown: m
1858
2557
  }, [
1859
- _(d.$slots, "default")
1860
- ], 40, Ul),
1861
- c("span", {
2558
+ h(i.$slots, "default")
2559
+ ], 40, io),
2560
+ f("span", {
1862
2561
  id: a(s),
1863
2562
  class: "nb-tooltip__content",
1864
2563
  role: "tooltip",
1865
2564
  hidden: !t.value
1866
2565
  }, [
1867
- _(d.$slots, "content", {}, () => [
1868
- V(p(n.content), 1)
2566
+ h(i.$slots, "content", {}, () => [
2567
+ k(p(n.content), 1)
1869
2568
  ])
1870
- ], 8, Fl)
2569
+ ], 8, ro)
1871
2570
  ], 32));
1872
2571
  }
1873
- }), Jl = vt({
1874
- NbAccordion: gt,
1875
- NbAccordionItem: yt,
1876
- NbAlert: Xt,
1877
- NbAspectRatio: $t,
1878
- NbAvatar: kt,
1879
- NbBadge: Nt,
1880
- NbBreadcrumbs: xt,
1881
- NbButton: At,
1882
- NbButtonGroup: Pt,
1883
- NbCard: qt,
1884
- NbCheckbox: zt,
1885
- NbCombobox: jt,
1886
- NbDialog: Zt,
1887
- NbDropdownMenu: ea,
1888
- NbDropdownMenuItem: ta,
1889
- NbDropdownMenuSeparator: aa,
1890
- NbEmptyState: da,
1891
- NbFieldset: ba,
1892
- NbInput: ga,
1893
- NbInputGroup: ka,
1894
- NbKbd: Ia,
1895
- NbLink: Ba,
1896
- NbMarker: Va,
1897
- NbNumberInput: Aa,
1898
- NbPagination: Ca,
1899
- NbPopover: Ra,
1900
- NbProgress: Ea,
1901
- NbRadioGroup: Ja,
1902
- NbScrollArea: Xa,
1903
- NbSelect: el,
1904
- NbSelectItem: tl,
1905
- NbSeparator: al,
1906
- NbSkeleton: rl,
1907
- NbSlider: dl,
1908
- NbSpinner: cl,
1909
- NbSwitch: vl,
1910
- NbTable: Dl,
1911
- NbTabs: _l,
1912
- NbTabsContent: $l,
1913
- NbTabsList: kl,
1914
- NbTabsTrigger: Bl,
1915
- NbTextarea: Al,
1916
- NbToast: Rl,
1917
- NbToggle: ql,
1918
- NbToggleGroup: zl,
1919
- NbToggleGroupItem: Ll,
1920
- NbTooltip: Kl
2572
+ }), fo = ia({
2573
+ NbAccordion: da,
2574
+ NbAccordionItem: ua,
2575
+ NbAlert: tl,
2576
+ NbAlertDialog: ll,
2577
+ NbAspectRatio: ca,
2578
+ NbAvatar: fa,
2579
+ NbBadge: ba,
2580
+ NbBreadcrumbs: ha,
2581
+ NbButton: $a,
2582
+ NbButtonGroup: ka,
2583
+ NbCard: Va,
2584
+ NbCheckbox: Ta,
2585
+ NbCombobox: Pa,
2586
+ NbCommand: Ua,
2587
+ NbContextMenu: Ga,
2588
+ NbContextMenuCheckboxItem: qa,
2589
+ NbContextMenuItem: Ea,
2590
+ NbContextMenuLabel: za,
2591
+ NbContextMenuRadioGroup: Fa,
2592
+ NbContextMenuRadioItem: Ha,
2593
+ NbContextMenuSeparator: Ka,
2594
+ NbContextMenuShortcut: Wa,
2595
+ NbContextMenuSub: Ya,
2596
+ NbDialog: il,
2597
+ NbDropdownMenu: dl,
2598
+ NbDropdownMenuItem: rl,
2599
+ NbDropdownMenuSeparator: ul,
2600
+ NbEmptyState: _l,
2601
+ NbFieldset: yl,
2602
+ NbHoverCard: Ml,
2603
+ NbInput: Cl,
2604
+ NbInputGroup: Tl,
2605
+ NbKbd: Al,
2606
+ NbLink: Dl,
2607
+ NbMarker: Ol,
2608
+ NbNavigationMenu: Ul,
2609
+ NbNumberInput: Fl,
2610
+ NbPagination: Hl,
2611
+ NbPopover: Jl,
2612
+ NbProgress: Yl,
2613
+ NbRadioGroup: dn,
2614
+ NbScrollArea: rn,
2615
+ NbSheet: fn,
2616
+ NbSelect: hn,
2617
+ NbSelectItem: gn,
2618
+ NbSeparator: yn,
2619
+ NbSkeleton: Vn,
2620
+ NbSlider: Cn,
2621
+ NbSpinner: wn,
2622
+ NbSwitch: On,
2623
+ NbTable: Yn,
2624
+ NbTabs: Rn,
2625
+ NbTabsContent: Un,
2626
+ NbTabsList: qn,
2627
+ NbTabsTrigger: zn,
2628
+ NbTextarea: Jn,
2629
+ NbToast: eo,
2630
+ NbToggle: to,
2631
+ NbToggleGroup: oo,
2632
+ NbToggleGroupItem: so,
2633
+ NbTooltip: uo
1921
2634
  });
1922
2635
  export {
1923
- gt as NbAccordion,
1924
- yt as NbAccordionItem,
1925
- Xt as NbAlert,
1926
- $t as NbAspectRatio,
1927
- kt as NbAvatar,
1928
- Nt as NbBadge,
1929
- xt as NbBreadcrumbs,
1930
- At as NbButton,
1931
- Pt as NbButtonGroup,
1932
- qt as NbCard,
1933
- zt as NbCheckbox,
1934
- jt as NbCombobox,
1935
- Zt as NbDialog,
1936
- ea as NbDropdownMenu,
1937
- ta as NbDropdownMenuItem,
1938
- aa as NbDropdownMenuSeparator,
1939
- da as NbEmptyState,
1940
- ba as NbFieldset,
1941
- ga as NbInput,
1942
- ka as NbInputGroup,
1943
- Ia as NbKbd,
1944
- Ba as NbLink,
1945
- Va as NbMarker,
1946
- Aa as NbNumberInput,
1947
- Ca as NbPagination,
1948
- Ra as NbPopover,
1949
- Ea as NbProgress,
1950
- Ja as NbRadioGroup,
1951
- Xa as NbScrollArea,
1952
- el as NbSelect,
1953
- tl as NbSelectItem,
1954
- al as NbSeparator,
1955
- rl as NbSkeleton,
1956
- dl as NbSlider,
1957
- cl as NbSpinner,
1958
- vl as NbSwitch,
1959
- Dl as NbTable,
1960
- _l as NbTabs,
1961
- $l as NbTabsContent,
1962
- kl as NbTabsList,
1963
- Bl as NbTabsTrigger,
1964
- Al as NbTextarea,
1965
- Rl as NbToast,
1966
- ql as NbToggle,
1967
- zl as NbToggleGroup,
1968
- Ll as NbToggleGroupItem,
1969
- Kl as NbTooltip,
1970
- Jl as NeoBrutalVue
2636
+ da as NbAccordion,
2637
+ ua as NbAccordionItem,
2638
+ tl as NbAlert,
2639
+ ll as NbAlertDialog,
2640
+ ca as NbAspectRatio,
2641
+ fa as NbAvatar,
2642
+ ba as NbBadge,
2643
+ ha as NbBreadcrumbs,
2644
+ $a as NbButton,
2645
+ ka as NbButtonGroup,
2646
+ Va as NbCard,
2647
+ Ta as NbCheckbox,
2648
+ Pa as NbCombobox,
2649
+ Ua as NbCommand,
2650
+ Ga as NbContextMenu,
2651
+ qa as NbContextMenuCheckboxItem,
2652
+ Ea as NbContextMenuItem,
2653
+ za as NbContextMenuLabel,
2654
+ Fa as NbContextMenuRadioGroup,
2655
+ Ha as NbContextMenuRadioItem,
2656
+ Ka as NbContextMenuSeparator,
2657
+ Wa as NbContextMenuShortcut,
2658
+ Ya as NbContextMenuSub,
2659
+ il as NbDialog,
2660
+ dl as NbDropdownMenu,
2661
+ rl as NbDropdownMenuItem,
2662
+ ul as NbDropdownMenuSeparator,
2663
+ _l as NbEmptyState,
2664
+ yl as NbFieldset,
2665
+ Ml as NbHoverCard,
2666
+ Cl as NbInput,
2667
+ Tl as NbInputGroup,
2668
+ Al as NbKbd,
2669
+ Dl as NbLink,
2670
+ Ol as NbMarker,
2671
+ Ul as NbNavigationMenu,
2672
+ Fl as NbNumberInput,
2673
+ Hl as NbPagination,
2674
+ Jl as NbPopover,
2675
+ Yl as NbProgress,
2676
+ dn as NbRadioGroup,
2677
+ rn as NbScrollArea,
2678
+ hn as NbSelect,
2679
+ gn as NbSelectItem,
2680
+ yn as NbSeparator,
2681
+ fn as NbSheet,
2682
+ Vn as NbSkeleton,
2683
+ Cn as NbSlider,
2684
+ wn as NbSpinner,
2685
+ On as NbSwitch,
2686
+ Yn as NbTable,
2687
+ Rn as NbTabs,
2688
+ Un as NbTabsContent,
2689
+ qn as NbTabsList,
2690
+ zn as NbTabsTrigger,
2691
+ Jn as NbTextarea,
2692
+ eo as NbToast,
2693
+ to as NbToggle,
2694
+ oo as NbToggleGroup,
2695
+ so as NbToggleGroupItem,
2696
+ uo as NbTooltip,
2697
+ fo as NeoBrutalVue
1971
2698
  };