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