@dv.net/ui-kit 7.6.4 → 7.7.1

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 (47) hide show
  1. package/dist/assets/UiTabs.Bvp4i7Cd.js +98 -0
  2. package/dist/assets/{lib.CybO4c6p.js → lib.DfkMf2Ys.js} +32 -32
  3. package/dist/components/UiAvatar/UiAvatar.js +1 -1
  4. package/dist/components/UiBlockTitle/UiBlockTitle.js +1 -1
  5. package/dist/components/UiButton/UiButton.js +1 -1
  6. package/dist/components/UiChat/UiChat.js +1 -1
  7. package/dist/components/UiChat/UiChatFooter.js +1 -1
  8. package/dist/components/UiChat/UiChatHeader.js +1 -1
  9. package/dist/components/UiCheckbox/UiCheckbox.js +1 -1
  10. package/dist/components/UiCollapseItem/UiCollapseItem.js +1 -1
  11. package/dist/components/UiConfirm/UiConfirm.js +1 -1
  12. package/dist/components/UiDatepicker/UiDatepickerRange.js +1 -1
  13. package/dist/components/UiDatepicker/components/DatePickerInput.js +1 -1
  14. package/dist/components/UiDatepicker/components/DatePickerInputs.js +1 -1
  15. package/dist/components/UiDatepicker/components/DatePickerSlider.js +1 -1
  16. package/dist/components/UiDragAndDrop/UiDragAndDrop.js +1 -1
  17. package/dist/components/UiDragAndDrop/UiFileItem.js +1 -1
  18. package/dist/components/UiDragAndDrop/UiFileItemLoading.js +1 -1
  19. package/dist/components/UiIconButton/UiIconButton.js +1 -1
  20. package/dist/components/UiInput/UiInput.js +1 -1
  21. package/dist/components/UiLanguages/UiLanguages.js +1 -1
  22. package/dist/components/UiLanguages/components/UiLanguageButton.js +1 -1
  23. package/dist/components/UiLayoutMenu/UiLayoutMenu.js +1 -1
  24. package/dist/components/UiLayoutMenu/UiLayoutMenuItem.js +1 -1
  25. package/dist/components/UiLoading/UiLoading.js +1 -1
  26. package/dist/components/UiMobileMenu/UiMobileMenu.js +1 -1
  27. package/dist/components/UiModal/UiModal.js +1 -1
  28. package/dist/components/UiPagination/UiPagination.js +1 -1
  29. package/dist/components/UiProfileMenu/UiProfileMenu.js +1 -1
  30. package/dist/components/UiProfileMenu/components/UiProfileMenuItem.js +1 -1
  31. package/dist/components/UiSelect/UiSelect.js +1 -1
  32. package/dist/components/UiSelect/components/SelectSearch.js +1 -1
  33. package/dist/components/UiSelect/components/SelectTrigger.js +1 -1
  34. package/dist/components/UiSelect/components/SelectVirtualList.js +1 -1
  35. package/dist/components/UiSwitch/UiSwitch.js +1 -1
  36. package/dist/components/UiTable/UiTable.js +1 -1
  37. package/dist/components/UiTable/components/TableSort.js +1 -1
  38. package/dist/components/UiTabs/UiTabs.js +1 -1
  39. package/dist/components/UiTabs/UiTabs.vue.d.ts +7 -2
  40. package/dist/components/UiTabs/types.d.ts +2 -0
  41. package/dist/components/UiTooltip/UiTooltip.js +1 -1
  42. package/dist/composables/useNotification/UiNotification.js +1 -1
  43. package/dist/composables/useNotification/useNotification.js +1 -1
  44. package/dist/index.js +2 -2
  45. package/dist/style.css +1 -1
  46. package/package.json +1 -1
  47. package/dist/assets/UiTabs.Dob2q3oL.js +0 -37
@@ -0,0 +1,98 @@
1
+ import { TABS_PROVIDE_VALUE as e } from "../components/UiTabs/constants.js";
2
+ import { createCommentVNode as t, createElementBlock as n, defineComponent as r, mergeModels as i, nextTick as a, normalizeClass as o, normalizeStyle as s, onMounted as c, onUnmounted as l, openBlock as u, provide as d, ref as f, renderSlot as p, useModel as m, watch as h } from "vue";
3
+ //#endregion
4
+ //#region src/lib/components/UiTabs/UiTabs.vue
5
+ var g = /* @__PURE__ */ r({
6
+ __name: "UiTabs",
7
+ props: /* @__PURE__ */ i({
8
+ modelValue: {},
9
+ size: { default: "md" },
10
+ mode: { default: "outline" },
11
+ router: { type: Boolean },
12
+ isShort: { type: Boolean },
13
+ widthMode: { default: "full" }
14
+ }, {
15
+ modelValue: { default: "" },
16
+ modelModifiers: {}
17
+ }),
18
+ emits: /* @__PURE__ */ i(["change"], ["update:modelValue"]),
19
+ setup(r, { emit: i }) {
20
+ let g = r, _ = m(r, "modelValue"), v = i, y = f(null), b = f(0), x = f(0), S = f(!1), C = f(0), w = null, T = null, E = async () => {
21
+ if (await a(), !y.value || !["light", "dark"].includes(g.mode)) {
22
+ S.value = !1;
23
+ return;
24
+ }
25
+ let e = y.value.querySelector(".ui-tabs-item__button.is-active");
26
+ if (!e) {
27
+ S.value = !1;
28
+ return;
29
+ }
30
+ b.value = e.offsetLeft, x.value = e.offsetWidth, S.value = !0;
31
+ }, D = (e) => {
32
+ let t = e.cloneNode(!0);
33
+ t.style.position = "fixed", t.style.left = "-9999px", t.style.top = "0", t.style.width = "auto", t.style.maxWidth = "none", t.style.minWidth = "0", t.style.visibility = "hidden", t.style.pointerEvents = "none", document.body.appendChild(t);
34
+ let n = t.offsetWidth;
35
+ return document.body.removeChild(t), n;
36
+ }, O = async () => {
37
+ if (await a(), !y.value) return;
38
+ if (g.widthMode !== "equal") {
39
+ C.value = 0, y.value.style.removeProperty("--ui-tabs-max-tab-width");
40
+ return;
41
+ }
42
+ let e = y.value.querySelectorAll(".ui-tabs-item__button");
43
+ if (!e.length) {
44
+ C.value = 0, y.value.style.removeProperty("--ui-tabs-max-tab-width");
45
+ return;
46
+ }
47
+ C.value = Math.max(...Array.from(e).map((e) => D(e))), y.value.style.setProperty("--ui-tabs-max-tab-width", `${C.value}px`);
48
+ }, k = () => {
49
+ !y.value || !w || (w.disconnect(), w.observe(y.value), y.value.querySelectorAll(".ui-tabs-item__button").forEach((e) => w?.observe(e)));
50
+ };
51
+ function A(e) {
52
+ v("change", e);
53
+ }
54
+ return d(e, {
55
+ modelValue: _,
56
+ size: g.size,
57
+ mode: g.mode,
58
+ router: g.router,
59
+ change: A
60
+ }), h(() => _.value, () => {
61
+ E(), O();
62
+ }, { immediate: !0 }), h(() => g.mode, () => {
63
+ E();
64
+ }, { immediate: !0 }), h(() => g.widthMode, () => {
65
+ O(), E();
66
+ }, { immediate: !0 }), c(() => {
67
+ w = new ResizeObserver(() => {
68
+ E(), O();
69
+ }), T = new MutationObserver(() => {
70
+ k(), E(), O();
71
+ }), y.value && (T.observe(y.value, {
72
+ childList: !0,
73
+ subtree: !0,
74
+ characterData: !0
75
+ }), k()), window.addEventListener("resize", E), window.addEventListener("resize", O), E(), O();
76
+ }), l(() => {
77
+ window.removeEventListener("resize", E), window.removeEventListener("resize", O), T?.disconnect(), T = null, w?.disconnect(), w = null;
78
+ }), (e, i) => (u(), n("div", {
79
+ ref_key: "tabsRef",
80
+ ref: y,
81
+ class: o([[
82
+ `size-${r.size}`,
83
+ `mode-${r.mode}`,
84
+ `width-${r.widthMode}`,
85
+ { "is-short": r.isShort || r.widthMode === "content" }
86
+ ], "ui-tabs"])
87
+ }, [S.value && ["light", "dark"].includes(r.mode) ? (u(), n("span", {
88
+ key: 0,
89
+ class: "ui-tabs__indicator",
90
+ style: s({
91
+ width: `${x.value}px`,
92
+ transform: `translateX(${b.value}px)`
93
+ })
94
+ }, null, 4)) : t("", !0), p(e.$slots, "default")], 2));
95
+ }
96
+ });
97
+ //#endregion
98
+ export { g as t };
@@ -39,7 +39,7 @@ import { t as xe } from "./TableSummary.Cb0HJwkV.js";
39
39
  import { useExpande as Se } from "../components/UiTable/composables/useExpande.js";
40
40
  import { useSelected as Ce } from "../components/UiTable/composables/useSelected.js";
41
41
  import { useSort as we } from "../components/UiTable/composables/useSort.js";
42
- import { t as Te } from "./UiTabs.Dob2q3oL.js";
42
+ import { t as Te } from "./UiTabs.Bvp4i7Cd.js";
43
43
  import { t as Ee } from "./UiTabsItem.Cg96TE9x.js";
44
44
  import { Fragment as P, Teleport as De, Transition as Oe, capitalize as ke, computed as F, createBlock as I, createCommentVNode as L, createElementBlock as R, createElementVNode as z, createSlots as Ae, createTextVNode as je, createVNode as B, defineComponent as V, guardReactiveProps as Me, h as Ne, inject as Pe, markRaw as Fe, mergeDefaults as Ie, mergeModels as Le, mergeProps as Re, nextTick as ze, normalizeClass as H, normalizeProps as Be, normalizeStyle as Ve, onActivated as He, onBeforeUnmount as Ue, onBeforeUpdate as We, onMounted as Ge, onUnmounted as Ke, openBlock as U, provide as qe, reactive as Je, readonly as Ye, ref as W, render as Xe, renderList as G, renderSlot as K, resolveComponent as Ze, resolveDynamicComponent as Qe, shallowReactive as $e, toDisplayString as q, toHandlers as et, toRef as tt, toValue as nt, unref as J, useAttrs as rt, useId as it, useModel as at, useSlots as ot, useTemplateRef as st, vModelCheckbox as ct, vModelDynamic as lt, vModelText as ut, vShow as dt, watch as ft, withCtx as Y, withDirectives as pt, withKeys as mt, withModifiers as ht } from "vue";
45
45
  import { useRoute as gt } from "vue-router";
@@ -27440,16 +27440,16 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27440
27440
  class: H([n.value])
27441
27441
  }, null, 8, ["class"])]));
27442
27442
  }
27443
- }), Pg = { class: "ui-table__wrapper" }, Fg = { class: "ui-table__header" }, Ig = ["colspan"], Lg = { key: 1 }, Rg = { key: 1 }, zg = ["colspan"], Bg = { key: 2 }, Vg = ["colspan"], Hg = { class: "ui-table__empty" }, Ug = ["onClick"], Wg = {
27443
+ }), Pg = { class: "ui-table-root" }, Fg = { class: "ui-table__wrapper" }, Ig = { class: "ui-table__header" }, Lg = ["colspan"], Rg = { key: 1 }, zg = { key: 1 }, Bg = ["colspan"], Vg = { key: 2 }, Hg = ["colspan"], Ug = { class: "ui-table__empty" }, Wg = ["onClick"], Gg = {
27444
27444
  key: 0,
27445
27445
  class: "ui-table__row-animation"
27446
- }, Gg = {
27446
+ }, Kg = {
27447
27447
  key: 0,
27448
27448
  class: "ui-table__expande-row"
27449
- }, Kg = ["colspan"], qg = {
27449
+ }, qg = ["colspan"], Jg = {
27450
27450
  key: 1,
27451
27451
  class: "ui-table__footer-row"
27452
- }, Jg = ["colspan"], Yg = /* @__PURE__ */ V({
27452
+ }, Yg = ["colspan"], Xg = /* @__PURE__ */ V({
27453
27453
  __name: "UiTable",
27454
27454
  props: /* @__PURE__ */ Le({
27455
27455
  data: { default: () => [] },
@@ -27524,13 +27524,13 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27524
27524
  }
27525
27525
  return ft(() => n.loading, (e, t) => {
27526
27526
  t && !e && f.value && (f.value = !1);
27527
- }), (t, r) => (U(), R("div", null, [z("div", Pg, [z("table", {
27527
+ }), (t, r) => (U(), R("div", Pg, [z("div", Fg, [z("table", {
27528
27528
  cellpadding: 0,
27529
27529
  cellspacing: 0,
27530
27530
  style: Ve({ tableLayout: e.tableLayout }),
27531
27531
  class: "ui-table"
27532
27532
  }, [
27533
- z("thead", null, [z("tr", Fg, [t.$slots.header ? K(t.$slots, "header", {
27533
+ z("thead", null, [z("tr", Ig, [t.$slots.header ? K(t.$slots, "header", {
27534
27534
  key: 0,
27535
27535
  headers: e.headers
27536
27536
  }) : (U(!0), R(P, { key: 1 }, G(n.headers, (e) => (U(), R(P, { key: e.name }, [e.isShow === void 0 || e.isShow ? (U(), R("th", {
@@ -27574,9 +27574,9 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27574
27574
  "title",
27575
27575
  "onSort",
27576
27576
  "model-value"
27577
- ])) : (U(), R("span", Lg, q(e.label), 1)),
27577
+ ])) : (U(), R("span", Rg, q(e.label), 1)),
27578
27578
  K(t.$slots, `header-cell-${e.name}-append`)
27579
- ], 64)) : L("", !0)], 2)], 14, Ig)) : L("", !0)], 64))), 128))])]),
27579
+ ], 64)) : L("", !0)], 2)], 14, Lg)) : L("", !0)], 64))), 128))])]),
27580
27580
  z("tbody", null, [e.showSummary && J(u).length && e.summaryPosition === "top" ? (U(), I(xe, {
27581
27581
  key: 0,
27582
27582
  "empty-value": e.emptyValue,
@@ -27591,10 +27591,10 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27591
27591
  "loading",
27592
27592
  "prepared-data",
27593
27593
  "headers"
27594
- ])) : L("", !0), e.loading && !J(u).length ? (U(), R("tr", Rg, [z("td", {
27594
+ ])) : L("", !0), e.loading && !J(u).length ? (U(), R("tr", zg, [z("td", {
27595
27595
  colspan: e.headers.length,
27596
27596
  class: "ui-table__skeleton-container"
27597
- }, [B(J(ye), { rows: e.skeletonRows }, null, 8, ["rows"])], 8, zg)])) : J(u).length ? (U(!0), R(P, { key: 3 }, G(J(u), (s, c) => (U(), R(P, { key: s.id }, [z("tr", {
27597
+ }, [B(J(ye), { rows: e.skeletonRows }, null, 8, ["rows"])], 8, Bg)])) : J(u).length ? (U(!0), R(P, { key: 3 }, G(J(u), (s, c) => (U(), R(P, { key: s.id }, [z("tr", {
27598
27598
  onClick: (e) => t.$emit("rowClick", s.row),
27599
27599
  class: H(["ui-table__body-row", [
27600
27600
  S(s.row),
@@ -27619,7 +27619,7 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27619
27619
  n.columnClass && n.columnClass(s.row, n.name)
27620
27620
  ])
27621
27621
  }, [B(Oe, { name: "fade" }, {
27622
- default: Y(() => [e.loading ? (U(), R("div", Wg)) : L("", !0)]),
27622
+ default: Y(() => [e.loading ? (U(), R("div", Gg)) : L("", !0)]),
27623
27623
  _: 1
27624
27624
  }), z("div", { class: H(["ui-table__body-cell-inner", [n.align]]) }, [
27625
27625
  (typeof n.expande == "function" ? n.expande(s.row) : n.expande) ? (U(), I(Mt, {
@@ -27657,10 +27657,10 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27657
27657
  row: s.row,
27658
27658
  index: c
27659
27659
  }) : (U(), R(P, { key: 1 }, [je(q(J(be)(s.row, n.name, e.emptyValue)), 1)], 64))], 64)) : L("", !0)
27660
- ], 2)], 2)) : L("", !0)], 64))), 128))], 10, Ug), (e.expandeKey ? o.value.includes(s.row[e.expandeKey]) : J(y)[s.id]) ? (U(), R("tr", Gg, [z("td", { colspan: e.headers.length }, [K(t.$slots, "expande", {
27660
+ ], 2)], 2)) : L("", !0)], 64))), 128))], 10, Wg), (e.expandeKey ? o.value.includes(s.row[e.expandeKey]) : J(y)[s.id]) ? (U(), R("tr", Kg, [z("td", { colspan: e.headers.length }, [K(t.$slots, "expande", {
27661
27661
  row: s.row,
27662
27662
  index: c
27663
- })], 8, Kg)])) : L("", !0)], 64))), 128)) : (U(), R("tr", Bg, [z("td", { colspan: e.headers.length }, [z("div", Hg, q(J(T).uiTable.translations.noData), 1)], 8, Vg)]))]),
27663
+ })], 8, qg)])) : L("", !0)], 64))), 128)) : (U(), R("tr", Vg, [z("td", { colspan: e.headers.length }, [z("div", Ug, q(J(T).uiTable.translations.noData), 1)], 8, Hg)]))]),
27664
27664
  z("tfoot", null, [e.showSummary && J(u).length && e.summaryPosition === "bottom" ? (U(), I(xe, {
27665
27665
  key: 0,
27666
27666
  "empty-value": e.emptyValue,
@@ -27675,10 +27675,10 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27675
27675
  "loading",
27676
27676
  "prepared-data",
27677
27677
  "headers"
27678
- ])) : L("", !0), t.$slots.footer ? (U(), R("tr", qg, [z("td", {
27678
+ ])) : L("", !0), t.$slots.footer ? (U(), R("tr", Jg, [z("td", {
27679
27679
  colspan: e.headers.length,
27680
27680
  class: "ui-table__footer-cell"
27681
- }, [K(t.$slots, "footer")], 8, Jg)])) : L("", !0)])
27681
+ }, [K(t.$slots, "footer")], 8, Yg)])) : L("", !0)])
27682
27682
  ], 4)]), e.meta ? (U(), I(J(yg), {
27683
27683
  key: 0,
27684
27684
  class: "ui-table__pagination",
@@ -27703,10 +27703,10 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27703
27703
  "keyPerPagPagination"
27704
27704
  ])) : L("", !0)]));
27705
27705
  }
27706
- }), Xg = { class: "ui-notification__top" }, Zg = ["innerHTML"], Qg = {
27706
+ }), Zg = { class: "ui-notification__top" }, Qg = ["innerHTML"], $g = {
27707
27707
  key: 1,
27708
27708
  class: "ui-notification__text"
27709
- }, $g = /* @__PURE__ */ le(/* @__PURE__ */ V({
27709
+ }, e_ = /* @__PURE__ */ le(/* @__PURE__ */ V({
27710
27710
  __name: "UiNotification",
27711
27711
  props: {
27712
27712
  id: {},
@@ -27750,7 +27750,7 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27750
27750
  style: Ve(s.value),
27751
27751
  onMouseenter: d,
27752
27752
  onMouseleave: f
27753
- }, [z("div", Xg, [e.type === "error" ? (U(), I(J(r), {
27753
+ }, [z("div", Zg, [e.type === "error" ? (U(), I(J(r), {
27754
27754
  key: 0,
27755
27755
  name: "block",
27756
27756
  type: "400",
@@ -27769,18 +27769,18 @@ var Vh = { render: Bh }, Hh = { class: "ui-languages" }, Uh = ["disabled"], Wh =
27769
27769
  key: 0,
27770
27770
  innerHTML: e.message,
27771
27771
  class: "ui-notification__text"
27772
- }, null, 8, Zg)) : (U(), R("div", Qg, q(e.message), 1))], 36), [[dt, a.value]])]),
27772
+ }, null, 8, Qg)) : (U(), R("div", $g, q(e.message), 1))], 36), [[dt, a.value]])]),
27773
27773
  _: 1
27774
27774
  }));
27775
27775
  }
27776
- }), [["__scopeId", "data-v-2bd67e86"]]), e_ = 16, t_ = [];
27777
- function n_(e, t, n, r) {
27778
- let i = e_;
27779
- for (let e of t_) i += e.el.offsetHeight + e_;
27780
- let a = document.createElement("div"), o = Ne($g, {
27776
+ }), [["__scopeId", "data-v-2bd67e86"]]), t_ = 16, n_ = [];
27777
+ function r_(e, t, n, r) {
27778
+ let i = t_;
27779
+ for (let e of n_) i += e.el.offsetHeight + t_;
27780
+ let a = document.createElement("div"), o = Ne(e_, {
27781
27781
  id: fe(),
27782
27782
  top: i,
27783
- onDeleteFromList: r_,
27783
+ onDeleteFromList: i_,
27784
27784
  onRemove: () => {
27785
27785
  Xe(null, a);
27786
27786
  },
@@ -27789,13 +27789,13 @@ function n_(e, t, n, r) {
27789
27789
  isHTMLMessage: n,
27790
27790
  title: r
27791
27791
  });
27792
- Xe(o, a), t_.push(o), document.body.appendChild(a.firstElementChild);
27792
+ Xe(o, a), n_.push(o), document.body.appendChild(a.firstElementChild);
27793
27793
  }
27794
- function r_(e) {
27795
- let t = e_;
27796
- t_ = t_.filter((t) => e !== t.component.props.id), t_.forEach((e) => {
27797
- e.component.props.top = t, t += e.el.offsetHeight + e_;
27794
+ function i_(e) {
27795
+ let t = t_;
27796
+ n_ = n_.filter((t) => e !== t.component.props.id), n_.forEach((e) => {
27797
+ e.component.props.top = t, t += e.el.offsetHeight + t_;
27798
27798
  });
27799
27799
  }
27800
27800
  //#endregion
27801
- export { In as A, qr as C, dr as D, vr as E, Lt as F, Mt as I, jt as L, Gt as M, Ht as N, er as O, Vt as P, Dt as R, Yr as S, Cr as T, Mh as _, Ng as a, gh as b, Sg as c, cg as d, ig as f, Ih as g, Rh as h, Yg as i, en as j, Un as k, yg as l, eg as m, n_ as n, Mg as o, rg as p, $g as r, Og as s, tr as t, lg as u, Eh as v, Er as w, $r as x, bh as y, Ct as z };
27801
+ export { In as A, qr as C, dr as D, vr as E, Lt as F, Mt as I, jt as L, Gt as M, Ht as N, er as O, Vt as P, Dt as R, Yr as S, Cr as T, Mh as _, Ng as a, gh as b, Sg as c, cg as d, ig as f, Ih as g, Rh as h, Xg as i, en as j, Un as k, yg as l, eg as m, r_ as n, Mg as o, rg as p, e_ as r, Og as s, tr as t, lg as u, Eh as v, Er as w, $r as x, bh as y, Ct as z };
@@ -1,2 +1,2 @@
1
- import { z as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { z as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { R as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { R as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { L as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { L as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { D as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { D as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { P as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { P as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { O as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { O as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { E as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { E as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { T as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { T as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { w as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { w as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { b as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { b as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { C as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { C as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { S as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { S as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { x as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { x as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { _ as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { _ as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { y as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { y as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { v as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { v as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { I as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { I as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { g as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { g as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { m as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { m as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { h as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { h as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { f as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { f as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { p as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { p as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { N as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { N as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { d as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { d as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { u as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { u as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { l as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { l as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { s as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { s as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { c as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { c as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { k as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { k as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { M as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { M as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { j as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { j as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { A as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { A as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { o as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { o as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { i as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { i as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { a as e } from "../../../assets/lib.CybO4c6p.js";
1
+ import { a as e } from "../../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../assets/UiTabs.Dob2q3oL.js";
1
+ import { t as e } from "../../assets/UiTabs.Bvp4i7Cd.js";
2
2
  export { e as default };
@@ -9,7 +9,9 @@ declare function __VLS_template(): {
9
9
  slots: {
10
10
  default?(_: {}): any;
11
11
  };
12
- refs: {};
12
+ refs: {
13
+ tabsRef: HTMLDivElement;
14
+ };
13
15
  rootEl: HTMLDivElement;
14
16
  };
15
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -22,7 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
22
24
  }>, {
23
25
  size: import('./types').UiTabsSize;
24
26
  mode: import('./types').UiTabsMode;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ widthMode: import('./types').UiTabsWidthMode;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ tabsRef: HTMLDivElement;
30
+ }, HTMLDivElement>;
26
31
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
32
  export default _default;
28
33
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,12 +1,14 @@
1
1
  import { Ref } from 'vue';
2
2
  export type UiTabsSize = "md" | "lg";
3
3
  export type UiTabsMode = "outline" | "light" | "dark" | "clear";
4
+ export type UiTabsWidthMode = "full" | "content" | "equal";
4
5
  export interface UiTabsProps {
5
6
  modelValue: string;
6
7
  size?: UiTabsSize;
7
8
  mode?: UiTabsMode;
8
9
  router?: boolean;
9
10
  isShort?: boolean;
11
+ widthMode?: UiTabsWidthMode;
10
12
  }
11
13
  export interface UiTabsProvideData {
12
14
  modelValue: Ref<string | number>;
@@ -1,2 +1,2 @@
1
- import { F as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { F as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { r as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { r as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { n as e } from "../../assets/lib.CybO4c6p.js";
1
+ import { n as e } from "../../assets/lib.DfkMf2Ys.js";
2
2
  export { e as default };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./assets/UiAnimation.Tna-FwBg.js";
2
- import { D as t, E as n, F as r, I as i, L as a, N as o, R as s, T as c, _ as l, b as u, d, f, g as p, i as m, k as h, l as g, m as _, n as v, o as y, p as b, s as x, t as S, u as C, w, z as T } from "./assets/lib.CybO4c6p.js";
2
+ import { D as t, E as n, F as r, I as i, L as a, N as o, R as s, T as c, _ as l, b as u, d, f, g as p, i as m, k as h, l as g, m as _, n as v, o as y, p as b, s as x, t as S, u as C, w, z as T } from "./assets/lib.DfkMf2Ys.js";
3
3
  import { t as E } from "./assets/UiIcon.DOzn0gIp.js";
4
4
  import { t as D } from "./assets/UiGallery.CYk5EcS9.js";
5
5
  import { t as O } from "./assets/UiCopyText.CdiMRo1x.js";
@@ -19,7 +19,7 @@ import { t as V } from "./assets/UiLink.6zNWyvZe.js";
19
19
  import { t as H } from "./assets/UiRadio.BLN-m5R6.js";
20
20
  import { t as U } from "./assets/UiRadioGroup.C5IQz3Tt.js";
21
21
  import { t as W } from "./assets/UiSkeleton.DmJcPJ3V.js";
22
- import { t as G } from "./assets/UiTabs.Dob2q3oL.js";
22
+ import { t as G } from "./assets/UiTabs.Bvp4i7Cd.js";
23
23
  import { t as K } from "./assets/UiTabsItem.Cg96TE9x.js";
24
24
  import { t as q } from "./assets/UiTag.Bx_bCxYz.js";
25
25
  var J = S.default;