mhz-ui 1.2.16 → 1.2.18

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 (130) hide show
  1. package/dist/UiCalendar/UiCalendar.d.ts +2 -1
  2. package/dist/UiCalendar/interface/index.d.ts +0 -1
  3. package/dist/UiModal/UiModal.css +1 -1
  4. package/dist/UiModal/UiModal.d.ts +1 -1
  5. package/dist/UiModal/UiModal.js +13 -13
  6. package/dist/UiPagination/UiPagination.d.ts +1 -1
  7. package/dist/UiSearch/UiSearch.d.ts +1 -1
  8. package/dist/UiSelect/UiSelect.d.ts +1 -1
  9. package/dist/UiSelect/UiSelect.js +57 -57
  10. package/dist/UiTable/UiTable.d.ts +1 -1
  11. package/dist/UiUpload/UiUpload.d.ts +1 -1
  12. package/dist/UiUpload/UiUpload.js +4 -4
  13. package/dist/locales/types.d.ts +1 -0
  14. package/package.json +2 -2
  15. package/dist/UiBreadcrumbs/UiBreadcrumbs.spec.d.ts +0 -1
  16. package/dist/UiBreadcrumbs/UiBreadcrumbs.stories.d.ts +0 -6
  17. package/dist/UiBreadcrumbs/constants/index.d.ts +0 -6
  18. package/dist/UiButton/UiButton.spec.d.ts +0 -1
  19. package/dist/UiButton/UiButton.stories.d.ts +0 -7
  20. package/dist/UiButton/constants/index.d.ts +0 -5
  21. package/dist/UiCalendar/UiCalendar.spec.d.ts +0 -1
  22. package/dist/UiCalendar/UiCalendar.stories.d.ts +0 -6
  23. package/dist/UiCalendar/constants/index.d.ts +0 -2
  24. package/dist/UiChart/UiChart.spec.d.ts +0 -1
  25. package/dist/UiChart/UiChart.stories.d.ts +0 -6
  26. package/dist/UiChart/constants/index.d.ts +0 -9
  27. package/dist/UiCheckbox/UiCheckbox.spec.d.ts +0 -1
  28. package/dist/UiCheckbox/UiCheckbox.stories.d.ts +0 -6
  29. package/dist/UiCheckbox/constants/index.d.ts +0 -2
  30. package/dist/UiChip/UiChip.spec.d.ts +0 -1
  31. package/dist/UiChip/UiChip.stories.d.ts +0 -6
  32. package/dist/UiChip/constants/index.d.ts +0 -2
  33. package/dist/UiChoice/UiChoice.spec.d.ts +0 -1
  34. package/dist/UiChoice/UiChoice.stories.d.ts +0 -6
  35. package/dist/UiChoice/constants/index.d.ts +0 -5
  36. package/dist/UiClose/UiClose.spec.d.ts +0 -1
  37. package/dist/UiClose/UiClose.stories.d.ts +0 -6
  38. package/dist/UiEditor/UiEditor.spec.d.ts +0 -1
  39. package/dist/UiEditor/UiEditor.stories.d.ts +0 -6
  40. package/dist/UiEditor/constants/index.d.ts +0 -1
  41. package/dist/UiField/UiField.spec.d.ts +0 -1
  42. package/dist/UiField/UiField.stories.d.ts +0 -6
  43. package/dist/UiField/constants/index.d.ts +0 -3
  44. package/dist/UiFlex/UiFlex.spec.d.ts +0 -1
  45. package/dist/UiFlex/UiFlex.stories.d.ts +0 -6
  46. package/dist/UiFlex/constants/index.d.ts +0 -6
  47. package/dist/UiInput/UiInput.spec.d.ts +0 -1
  48. package/dist/UiInput/UiInput.stories.d.ts +0 -6
  49. package/dist/UiInput/constants/index.d.ts +0 -1
  50. package/dist/UiModal/UiModal.spec.d.ts +0 -1
  51. package/dist/UiModal/UiModal.stories.d.ts +0 -6
  52. package/dist/UiModal/constants/index.d.ts +0 -3
  53. package/dist/UiPagination/UiPagination.spec.d.ts +0 -1
  54. package/dist/UiPagination/UiPagination.stories.d.ts +0 -6
  55. package/dist/UiPagination/constants/index.d.ts +0 -2
  56. package/dist/UiRange/UiRange.spec.d.ts +0 -1
  57. package/dist/UiRange/UiRange.stories.d.ts +0 -6
  58. package/dist/UiRange/constants/index.d.ts +0 -3
  59. package/dist/UiSearch/UiSearch.spec.d.ts +0 -1
  60. package/dist/UiSearch/UiSearch.stories.d.ts +0 -6
  61. package/dist/UiSearch/constants/index.d.ts +0 -24
  62. package/dist/UiSelect/UiSelect.spec.d.ts +0 -1
  63. package/dist/UiSelect/UiSelect.stories.d.ts +0 -7
  64. package/dist/UiSelect/constants/index.d.ts +0 -12
  65. package/dist/UiSlider/UiSlider.spec.d.ts +0 -1
  66. package/dist/UiSlider/UiSlider.stories.d.ts +0 -6
  67. package/dist/UiSpoiler/UiSpoiler.spec.d.ts +0 -1
  68. package/dist/UiSpoiler/UiSpoiler.stories.d.ts +0 -6
  69. package/dist/UiSpoiler/constants/index.d.ts +0 -2
  70. package/dist/UiTable/UiTable.spec.d.ts +0 -1
  71. package/dist/UiTable/UiTable.stories.d.ts +0 -6
  72. package/dist/UiTable/constants/index.d.ts +0 -12
  73. package/dist/UiTabs/UiTabs.spec.d.ts +0 -1
  74. package/dist/UiTabs/UiTabs.stories.d.ts +0 -6
  75. package/dist/UiTabs/constants/index.d.ts +0 -4
  76. package/dist/UiTextarea/UiTextarea.spec.d.ts +0 -1
  77. package/dist/UiTextarea/UiTextarea.stories.d.ts +0 -6
  78. package/dist/UiTextarea/constants/index.d.ts +0 -1
  79. package/dist/UiUpload/UiUpload.spec.d.ts +0 -1
  80. package/dist/UiUpload/UiUpload.stories.d.ts +0 -7
  81. package/dist/UiUpload/constants/index.d.ts +0 -5
  82. package/dist/ar-DoS5rYDE.js +0 -37
  83. package/dist/bg-Cliju_Dl.js +0 -36
  84. package/dist/bn-DQXOuyzr.js +0 -32
  85. package/dist/bs-Ds5q4n_r.js +0 -37
  86. package/dist/ca-4xgtP6KO.js +0 -37
  87. package/dist/cs-B6IPxSFU.js +0 -35
  88. package/dist/da-6AVoummu.js +0 -35
  89. package/dist/de-BNu6KHOK.js +0 -37
  90. package/dist/el-DHxOBVTQ.js +0 -43
  91. package/dist/es-CFPDv89X.js +0 -34
  92. package/dist/et-uribXAWM.js +0 -37
  93. package/dist/fa-C5ymM_FA.js +0 -37
  94. package/dist/fi-C7j6U8Nq.js +0 -38
  95. package/dist/fr-KgeJOsbO.js +0 -38
  96. package/dist/he-DyV8dASR.js +0 -39
  97. package/dist/hr-BnXDuk1H.js +0 -37
  98. package/dist/hu-DO4KYZ6o.js +0 -35
  99. package/dist/id-BcUqqcvx.js +0 -38
  100. package/dist/is-CA349qo2.js +0 -36
  101. package/dist/it-C5sJWKCx.js +0 -38
  102. package/dist/ja-Hmoisb1E.js +0 -30
  103. package/dist/ka-BitJbN8P.js +0 -36
  104. package/dist/kaa-BkurJ2Of.js +0 -33
  105. package/dist/kk-BBZvRXgP.js +0 -36
  106. package/dist/ko-Bkm_tOzT.js +0 -31
  107. package/dist/ky-BvRR_Tcp.js +0 -33
  108. package/dist/lt-CnHbl6RF.js +0 -38
  109. package/dist/mn-D7uNFUHJ.js +0 -36
  110. package/dist/nl-D9iACGyz.js +0 -37
  111. package/dist/no-CrNUqUvo.js +0 -35
  112. package/dist/pl-7eI2wLnR.js +0 -36
  113. package/dist/pt-br-DGoBPP0L.js +0 -35
  114. package/dist/pt-pt-DGoBPP0L.js +0 -35
  115. package/dist/ro-d0Nhcikp.js +0 -34
  116. package/dist/sk-CVf2-gKO.js +0 -35
  117. package/dist/sl-Bu4VTEBB.js +0 -36
  118. package/dist/sq-CCXYEQ64.js +0 -39
  119. package/dist/sr-BTthV5DU.js +0 -37
  120. package/dist/sv-CUY8ltE2.js +0 -35
  121. package/dist/toast/ToastStory.d.ts +0 -2
  122. package/dist/toast/toast.spec.d.ts +0 -1
  123. package/dist/toast/toast.stories.d.ts +0 -6
  124. package/dist/tr-DogdF9PC.js +0 -34
  125. package/dist/uk-DnfAzipP.js +0 -38
  126. package/dist/uz-BHUKOoqU.js +0 -33
  127. package/dist/uz-cryl-CEweDRhI.js +0 -33
  128. package/dist/vi-BQLinWSk.js +0 -38
  129. package/dist/zh-cn-DVPNRZ37.js +0 -31
  130. package/dist/zh-hk-DrbeU4Us.js +0 -31
@@ -1,4 +1,5 @@
1
- import { ICalendarEvent, ICalendarDates, TLocale } from './interface';
1
+ import { ICalendarEvent, ICalendarDates } from './interface';
2
+ import { TLocale } from '../locales/types';
2
3
  interface IProps {
3
4
  minDate?: Date;
4
5
  events?: ICalendarEvent<unknown>[];
@@ -28,4 +28,3 @@ export interface ICalendarCellClick {
28
28
  start: Date;
29
29
  };
30
30
  }
31
- export type TLocale = 'ru' | 'en';
@@ -1 +1 @@
1
- ._container_lzvb1_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;background-color:var(--color-gray-transparent)}._modal_lzvb1_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--7cfa7ae2);min-width:var(--c86706b6);max-width:calc(100% - 32px);height:auto;padding:24px;outline:none;background-color:var(--color-white);border-radius:16px;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._header_lzvb1_29{display:flex;justify-content:flex-end}._buttons_lzvb1_34{display:flex;gap:16px}
1
+ ._container_lzvb1_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;background-color:var(--color-gray-transparent)}._modal_lzvb1_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--fc18e772);min-width:var(--210eb7ed);max-width:calc(100% - 32px);height:auto;padding:24px;outline:none;background-color:var(--color-white);border-radius:16px;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._header_lzvb1_29{display:flex;justify-content:flex-end}._buttons_lzvb1_34{display:flex;gap:16px}
@@ -1,4 +1,4 @@
1
- type TLocale = 'ru' | 'en';
1
+ import { TLocale } from '../locales/types';
2
2
  interface IProps {
3
3
  modelValue: boolean;
4
4
  isConfirm?: boolean;
@@ -1,5 +1,5 @@
1
1
  import "./UiModal.css";
2
- import { defineComponent as M, useCssVars as x, computed as l, ref as z, watch as B, createElementBlock as r, createCommentVNode as m, openBlock as f, normalizeClass as n, createElementVNode as d, withModifiers as g, createVNode as i, renderSlot as N, withCtx as p, createTextVNode as v, toDisplayString as _ } from "vue";
2
+ import { defineComponent as M, useCssVars as x, computed as l, ref as z, watch as B, createElementBlock as c, createCommentVNode as m, openBlock as f, normalizeClass as n, createElementVNode as d, withModifiers as g, createVNode as i, renderSlot as N, withCtx as p, createTextVNode as v, toDisplayString as _ } from "vue";
3
3
  import y from "../UiButton/UiButton.js";
4
4
  import T from "../UiClose/UiClose.js";
5
5
  import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
@@ -14,10 +14,10 @@ const S = /* @__PURE__ */ M({
14
14
  emits: ["update:modelValue", "confirm"],
15
15
  setup(C, { emit: h }) {
16
16
  x((o) => ({
17
- "7cfa7ae2": V.value,
18
- c86706b6: $.value
17
+ fc18e772: V.value,
18
+ "210eb7ed": $.value
19
19
  }));
20
- const e = C, a = h, b = l(() => e.lang === "en" ? "Cancel" : "Отмена"), w = l(() => e.lang === "en" ? "Confirm" : "Подтвердить"), V = l(() => e.width ? `${e.width}px` : "auto"), $ = l(() => e.width ? `${e.width}px` : "50%"), u = document.querySelector("body"), t = z(!1);
20
+ const e = C, s = h, b = l(() => e.lang === "en" ? "Cancel" : "Отмена"), w = l(() => e.lang === "en" ? "Confirm" : "Подтвердить"), V = l(() => e.width ? `${e.width}px` : "auto"), $ = l(() => e.width ? `${e.width}px` : "50%"), u = document.querySelector("body"), t = z(!1);
21
21
  B(
22
22
  () => e.modelValue,
23
23
  () => {
@@ -28,30 +28,30 @@ const S = /* @__PURE__ */ M({
28
28
  }
29
29
  );
30
30
  function k() {
31
- a("confirm"), a("update:modelValue", !1);
31
+ s("confirm"), s("update:modelValue", !1);
32
32
  }
33
- function s() {
34
- t.value || a("update:modelValue", !1), t.value = !1;
33
+ function a() {
34
+ t.value || s("update:modelValue", !1), t.value = !1;
35
35
  }
36
- return (o, c) => e.modelValue ? (f(), r("div", {
36
+ return (o, r) => e.modelValue ? (f(), c("div", {
37
37
  key: 0,
38
- onMousedown: s,
38
+ onMousedown: a,
39
39
  class: n(o.$style.container)
40
40
  }, [
41
41
  d("div", {
42
- onMousedown: c[0] || (c[0] = g(() => {
42
+ onMousedown: r[0] || (r[0] = g(() => {
43
43
  }, ["stop"])),
44
44
  class: n(o.$style.modal)
45
45
  }, [
46
46
  d("div", {
47
47
  class: n(o.$style.header)
48
48
  }, [
49
- i(T, { onClick: s })
49
+ i(T, { onClick: a })
50
50
  ], 2),
51
51
  d("div", null, [
52
52
  N(o.$slots, "default")
53
53
  ]),
54
- e.isConfirm ? (f(), r("div", {
54
+ e.isConfirm ? (f(), c("div", {
55
55
  key: 0,
56
56
  class: n(o.$style.buttons)
57
57
  }, [
@@ -63,7 +63,7 @@ const S = /* @__PURE__ */ M({
63
63
  }),
64
64
  i(y, {
65
65
  layout: "secondary",
66
- onClick: s
66
+ onClick: a
67
67
  }, {
68
68
  default: p(() => [
69
69
  v(_(b.value), 1)
@@ -1,4 +1,4 @@
1
- type TLocale = 'ru' | 'en';
1
+ import { TLocale } from '../locales/types';
2
2
  interface IProps {
3
3
  page: number;
4
4
  total?: number;
@@ -1,9 +1,9 @@
1
+ import { TLocale } from '../locales/types';
1
2
  interface ISearchScheme {
2
3
  type: string;
3
4
  labels: string[];
4
5
  url: string;
5
6
  }
6
- type TLocale = 'ru' | 'en';
7
7
  interface IProps {
8
8
  modelValue: string;
9
9
  searchScheme: ISearchScheme[];
@@ -1,4 +1,4 @@
1
- type TLocale = 'ru' | 'en';
1
+ import { TLocale } from '../locales/types';
2
2
  interface IOption {
3
3
  _id?: string;
4
4
  title: string;
@@ -1,16 +1,16 @@
1
1
  import "./UiSelect.css";
2
- import { createElementBlock as l, openBlock as s, createElementVNode as O, defineComponent as G, ref as a, computed as d, normalizeClass as c, createCommentVNode as F, createVNode as U, unref as I, Fragment as Q, renderList as q, withKeys as p, withModifiers as M, toDisplayString as R } from "vue";
3
- import { o as J } from "../index-D1B6FCCq.js";
4
- import x from "../UiInput/UiInput.js";
5
- import { _ as W } from "../_plugin-vue_export-helper-CHgC5LLL.js";
6
- const X = {
2
+ import { createElementBlock as l, openBlock as s, createElementVNode as O, defineComponent as H, ref as a, computed as g, normalizeClass as d, createCommentVNode as F, createVNode as R, unref as I, Fragment as z, renderList as Q, withKeys as p, withModifiers as U, toDisplayString as M } from "vue";
3
+ import { o as q } from "../index-D1B6FCCq.js";
4
+ import D from "../UiInput/UiInput.js";
5
+ import { _ as J } from "../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const W = {
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
8
  width: "16",
9
9
  height: "16",
10
10
  fill: "none"
11
11
  };
12
- function Y(y, i) {
13
- return s(), l("svg", X, [...i[0] || (i[0] = [
12
+ function X(h, i) {
13
+ return s(), l("svg", W, [...i[0] || (i[0] = [
14
14
  O("path", {
15
15
  stroke: "#1F1F1F",
16
16
  "stroke-linecap": "round",
@@ -19,14 +19,14 @@ function Y(y, i) {
19
19
  }, null, -1)
20
20
  ])]);
21
21
  }
22
- const Z = { render: Y }, ee = {
22
+ const Y = { render: X }, Z = {
23
23
  xmlns: "http://www.w3.org/2000/svg",
24
24
  width: "16",
25
25
  height: "16",
26
26
  fill: "none"
27
27
  };
28
- function te(y, i) {
29
- return s(), l("svg", ee, [...i[0] || (i[0] = [
28
+ function ee(h, i) {
29
+ return s(), l("svg", Z, [...i[0] || (i[0] = [
30
30
  O("path", {
31
31
  stroke: "#1F1F1F",
32
32
  "stroke-linecap": "round",
@@ -35,7 +35,7 @@ function te(y, i) {
35
35
  }, null, -1)
36
36
  ])]);
37
37
  }
38
- const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMouseenter", "data-current"], se = /* @__PURE__ */ G({
38
+ const te = { render: ee }, oe = { key: 0 }, ne = ["onClick", "onKeydown", "onMouseenter", "data-current"], le = /* @__PURE__ */ H({
39
39
  __name: "UiSelect",
40
40
  props: {
41
41
  modelValue: {},
@@ -47,8 +47,8 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
47
47
  isClearable: { type: Boolean }
48
48
  },
49
49
  emits: ["update:modelValue", "reachedBottom"],
50
- setup(y, { emit: i }) {
51
- const t = y, k = i, D = {
50
+ setup(h, { emit: i }) {
51
+ const t = h, k = i, N = {
52
52
  en: {
53
53
  placeholder: "Choose variant",
54
54
  filter: "Filter Variants",
@@ -59,61 +59,61 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
59
59
  filter: "Фильтровать",
60
60
  noResults: "Нет результатов"
61
61
  }
62
- }, m = a(""), u = a(!1), V = a(!1), f = a(), r = a(), v = a(), E = a([]), w = d(() => D[t.lang || "ru"]), B = d(() => {
62
+ }, m = a(""), u = a(!1), V = a(!1), f = a(), r = a(), v = a(), E = a([]), w = g(() => N[t.lang || "ru"]), B = g(() => {
63
63
  const e = t.options?.[0];
64
64
  return e !== void 0 && typeof e == "object";
65
- }), $ = (e) => e !== null && (typeof e == "string" || typeof e == "number"), C = d(() => {
65
+ }), $ = (e) => e !== null && (typeof e == "string" || typeof e == "number"), C = g(() => {
66
66
  if (!t.options?.length) return [];
67
67
  const e = B.value ? [...t.options] : t.options.map((o) => ({ _id: String(o), title: String(o) }));
68
68
  return t.isFilter ? e.filter((o) => o.title.toLowerCase().includes(m.value.toLowerCase())) : e;
69
- }), j = d(() => {
69
+ }), T = g(() => {
70
70
  if ($(t.modelValue)) return t.modelValue;
71
71
  if (!t.modelValue) return "";
72
72
  const e = t.modelValue;
73
73
  return t.isLocaleField ? e.title_en ?? "" : e.title ?? "";
74
- }), A = d(() => Math.min(200, window.innerHeight * 0.4)), H = (e, o) => `${e._id || e.title}-${o}`, K = (e) => t.isLocaleField ? e.title_en : e.title, N = (e) => $(t.modelValue) ? t.modelValue === (e._id || e.title) : t.modelValue ? t.modelValue._id === e._id : !1, _ = (e) => {
74
+ }), A = (e, o) => `${e._id || e.title}-${o}`, j = (e) => t.isLocaleField ? e.title_en : e.title, x = (e) => $(t.modelValue) ? t.modelValue === (e._id || e.title) : t.modelValue ? t.modelValue._id === e._id : !1, _ = (e) => {
75
75
  e < 0 || e >= C.value.length || t.isFilter || E.value[e]?.focus();
76
- }, T = () => k("update:modelValue", void 0), L = () => {
77
- u.value ? h() : z();
76
+ }, K = () => k("update:modelValue", void 0), L = () => {
77
+ u.value ? y() : G();
78
78
  }, P = () => {
79
79
  if (!f.value) return !1;
80
- const e = f.value.getBoundingClientRect(), o = window.innerHeight - e.bottom, n = e.top;
81
- return o < Math.max(200, A.value) && n > o;
80
+ const e = 232, o = f.value.getBoundingClientRect(), n = window.innerHeight - o.bottom, c = o.top;
81
+ return n < e && c > n;
82
82
  };
83
- function h() {
83
+ function y() {
84
84
  r.value?.removeEventListener("scroll", S, !0), m.value = "", u.value = !1, V.value = !1;
85
85
  }
86
- function z() {
86
+ function G() {
87
87
  t.isDisabled || (V.value = P(), u.value = !0, t.isFilter || setTimeout(() => {
88
88
  r.value?.scrollTo(0, 0), _(0), r.value?.addEventListener("scroll", S, !0);
89
89
  }, 100));
90
90
  }
91
91
  function b(e) {
92
92
  const o = B.value ? e : e._id || e.title;
93
- k("update:modelValue", o), h();
93
+ k("update:modelValue", o), y();
94
94
  }
95
95
  function S() {
96
96
  if (!r.value || !v.value) return;
97
97
  r.value.getBoundingClientRect().y - v.value.getBoundingClientRect().y - v.value.scrollHeight + r.value.getBoundingClientRect().height > -100 && k("reachedBottom");
98
98
  }
99
- return J(f, h), (e, o) => (s(), l("div", {
100
- class: c(e.$style.container),
99
+ return q(f, y), (e, o) => (s(), l("div", {
100
+ class: d(e.$style.container),
101
101
  ref_key: "containerElement",
102
102
  ref: f
103
103
  }, [
104
104
  O("div", {
105
- class: c(e.$style.input)
105
+ class: d(e.$style.input)
106
106
  }, [
107
- U(x, {
108
- modelValue: j.value,
107
+ R(D, {
108
+ modelValue: T.value,
109
109
  disabled: t.isDisabled,
110
110
  onToggle: L,
111
111
  mode: "select",
112
112
  placeholder: w.value.placeholder,
113
- appendIcon: u.value ? I(oe) : I(Z)
113
+ appendIcon: u.value ? I(te) : I(Y)
114
114
  }, null, 8, ["modelValue", "disabled", "placeholder", "appendIcon"]),
115
- t.isFilter && u.value ? (s(), l("div", ne, [
116
- U(x, {
115
+ t.isFilter && u.value ? (s(), l("div", oe, [
116
+ R(D, {
117
117
  modelValue: m.value,
118
118
  "onUpdate:modelValue": o[0] || (o[0] = (n) => m.value = n),
119
119
  disabled: t.isDisabled,
@@ -123,14 +123,14 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
123
123
  ])) : F("", !0),
124
124
  t.isClearable && t.modelValue ? (s(), l("button", {
125
125
  key: 1,
126
- onClick: T,
126
+ onClick: K,
127
127
  type: "button",
128
- class: c(e.$style.clear)
128
+ class: d(e.$style.clear)
129
129
  }, " × ", 2)) : F("", !0)
130
130
  ], 2),
131
131
  u.value ? (s(), l("div", {
132
132
  key: 0,
133
- class: c([e.$style.options, { [e.$style.optionsUp]: V.value }]),
133
+ class: d([e.$style.options, { [e.$style.optionsUp]: V.value }]),
134
134
  ref_key: "optionsElement",
135
135
  ref: r
136
136
  }, [
@@ -139,43 +139,43 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
139
139
  ref_key: "optionsInnerElement",
140
140
  ref: v
141
141
  }, [
142
- (s(!0), l(Q, null, q(C.value, (n, g) => (s(), l("div", {
143
- key: H(n, g),
142
+ (s(!0), l(z, null, Q(C.value, (n, c) => (s(), l("div", {
143
+ key: A(n, c),
144
144
  onClick: () => b(n),
145
145
  onKeydown: [
146
146
  p(() => b(n), ["enter"]),
147
147
  p(() => b(n), ["space"]),
148
- p(M(() => _(g - 1), ["prevent"]), ["up"]),
149
- p(M(() => _(g + 1), ["prevent"]), ["down"]),
148
+ p(U(() => _(c - 1), ["prevent"]), ["up"]),
149
+ p(U(() => _(c + 1), ["prevent"]), ["down"]),
150
150
  p(L, ["esc"])
151
151
  ],
152
- onMouseenter: () => _(g),
153
- class: c(e.$style.option),
152
+ onMouseenter: () => _(c),
153
+ class: d(e.$style.option),
154
154
  tabindex: "0",
155
155
  ref_for: !0,
156
156
  ref_key: "optionElement",
157
157
  ref: E,
158
- "data-current": N(n)
159
- }, R(K(n)), 43, le))), 128))
158
+ "data-current": x(n)
159
+ }, M(j(n)), 43, ne))), 128))
160
160
  ], 512)) : (s(), l("div", {
161
161
  key: 1,
162
- onClick: h,
163
- class: c(e.$style.option),
162
+ onClick: y,
163
+ class: d(e.$style.option),
164
164
  tabindex: "0"
165
- }, R(w.value.noResults), 3))
165
+ }, M(w.value.noResults), 3))
166
166
  ], 2)) : F("", !0)
167
167
  ], 2));
168
168
  }
169
- }), ie = "_container_x83cu_1", re = "_input_x83cu_10", ae = "_clear_x83cu_16", ue = "_options_x83cu_31", ce = "_optionsUp_x83cu_44", de = "_option_x83cu_31", pe = {
170
- container: ie,
171
- input: re,
172
- clear: ae,
173
- options: ue,
174
- optionsUp: ce,
175
- option: de
176
- }, me = {
177
- $style: pe
178
- }, ge = /* @__PURE__ */ W(se, [["__cssModules", me]]);
169
+ }), se = "_container_x83cu_1", ie = "_input_x83cu_10", re = "_clear_x83cu_16", ae = "_options_x83cu_31", ue = "_optionsUp_x83cu_44", ce = "_option_x83cu_31", de = {
170
+ container: se,
171
+ input: ie,
172
+ clear: re,
173
+ options: ae,
174
+ optionsUp: ue,
175
+ option: ce
176
+ }, pe = {
177
+ $style: de
178
+ }, ye = /* @__PURE__ */ J(le, [["__cssModules", pe]]);
179
179
  export {
180
- ge as default
180
+ ye as default
181
181
  };
@@ -1,3 +1,4 @@
1
+ import { TLocale } from '../locales/types';
1
2
  interface IHeader {
2
3
  value?: string;
3
4
  title: string;
@@ -6,7 +7,6 @@ interface IModelValue {
6
7
  value?: string;
7
8
  isAsc: boolean;
8
9
  }
9
- type TLocale = 'ru' | 'en';
10
10
  interface IProps {
11
11
  headers: IHeader[];
12
12
  modelValue?: IModelValue;
@@ -1,4 +1,4 @@
1
- type TLocale = 'ru' | 'en';
1
+ import { TLocale } from '../locales/types';
2
2
  interface IProps {
3
3
  label?: string;
4
4
  file?: File;
@@ -2,9 +2,6 @@ import "./UiUpload.css";
2
2
  import { createElementBlock as o, openBlock as s, createStaticVNode as z, defineComponent as I, ref as $, computed as M, normalizeClass as i, createElementVNode as r, withDirectives as D, createCommentVNode as d, toDisplayString as a, createVNode as f, unref as k, withCtx as m, createTextVNode as u, Fragment as B, renderList as F, vShow as N } from "vue";
3
3
  import _ from "../UiButton/UiButton.js";
4
4
  import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
5
- const v = 10 * 1024 * 1024;
6
- new File([""], "file1.png");
7
- new File([""], "file2.png");
8
5
  const V = {
9
6
  xmlns: "http://www.w3.org/2000/svg",
10
7
  width: "16",
@@ -16,7 +13,10 @@ function E(y, p) {
16
13
  z('<g fill="currentColor" fill-rule="evenodd" clip-path="url(#a)" clip-rule="evenodd"><path d="M12.219 0h.875Q15.532.469 16 2.906v.875a3.6 3.6 0 0 1-.766 1.719l-4.546 4.547q-1.536 1.189-3.376.562a3.55 3.55 0 0 1-1.234-.828q-.37-.747.39-1.078a1 1 0 0 1 .438.031q.3.253.625.47 1.09.563 2.125-.095 2.288-2.241 4.547-4.515.928-1.322-.062-2.594-1.287-1.184-2.735-.203a143 143 0 0 1-2.531 2.5q-.72.3-1.016-.422a.8.8 0 0 1 .094-.562L10.531.733A3.6 3.6 0 0 1 12.22 0"></path><path d="M3.781 16h-.875Q.47 15.532 0 13.094v-.875q.151-.96.766-1.719l4.172-4.172Q6.594 5.062 8.53 5.86q.46.227.844.563a.75.75 0 0 1 .266.797q-.274.609-.922.422l-.688-.5q-1.065-.513-2.062.125-2.1 2.053-4.172 4.14-.94 1.35.094 2.625 1.189 1.08 2.578.266l2.281-2.219q.88-.318 1.031.594a.7.7 0 0 1-.11.39Q6.587 14.15 5.5 15.235A3.6 3.6 0 0 1 3.781 16"></path></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"></path></clipPath></defs>', 2)
17
14
  ])]);
18
15
  }
19
- const L = { render: E }, Q = { key: 0 }, R = ["data-error"], j = ["accept", "multiple"], A = ["data-label"], x = /* @__PURE__ */ I({
16
+ const L = { render: E }, v = 10 * 1024 * 1024;
17
+ new File([""], "file1.png");
18
+ new File([""], "file2.png");
19
+ const Q = { key: 0 }, R = ["data-error"], j = ["accept", "multiple"], A = ["data-label"], x = /* @__PURE__ */ I({
20
20
  __name: "UiUpload",
21
21
  props: {
22
22
  label: { default: void 0 },
@@ -0,0 +1 @@
1
+ export type TLocale = 'ru' | 'en';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-ui",
3
3
  "description": "Mhz ui kit",
4
- "version": "1.2.16",
4
+ "version": "1.2.18",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -77,7 +77,7 @@
77
77
  "vite-svg-loader": "5.1.0",
78
78
  "vitest": "3.2.4",
79
79
  "vue-eslint-parser": "10.2.0",
80
- "vue-linters-config": "0.4.1",
80
+ "vue-linters-config": "0.4.2",
81
81
  "vue-tsc": "3.0.6"
82
82
  },
83
83
  "peerDependencies": {
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiBreadcrumbs } from '..';
3
- declare const meta: Meta<typeof UiBreadcrumbs>;
4
- type Story = StoryObj<typeof UiBreadcrumbs>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,6 +0,0 @@
1
- export declare const LINKS: {
2
- url: string;
3
- title: string;
4
- }[];
5
- export declare const DEFAULT_COLOR = "default";
6
- export declare const DEFAULT_ARIA_LABEL = "Breadcrumb";
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiButton } from '..';
3
- declare const meta: Meta<typeof UiButton>;
4
- type Story = StoryObj<typeof UiButton>;
5
- export default meta;
6
- export declare const Primary: Story;
7
- export declare const Icon: Story;
@@ -1,5 +0,0 @@
1
- export declare const DEFAULT_LAYOUT = "primary";
2
- export declare const DEFAULT_TYPE = "button";
3
- export declare const DEFAULT_ICON: undefined;
4
- export declare const DEFAULT_SLOT = "Button label";
5
- export declare const DEFAULT_ARIA_LABEL = "Button";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiCalendar } from '..';
3
- declare const meta: Meta<typeof UiCalendar>;
4
- type Story = StoryObj<typeof UiCalendar>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- import { ICalendarEvent } from '../interface';
2
- export declare const EVENTS: ICalendarEvent<object>[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiChart } from '..';
3
- declare const meta: Meta<typeof UiChart>;
4
- type Story = StoryObj<typeof UiChart>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,9 +0,0 @@
1
- export declare const LABELS: string[];
2
- export declare const DATASETS: {
3
- data: number[];
4
- label: string;
5
- borderColor: string;
6
- backgroundColor: string;
7
- }[];
8
- export declare const TYPE = "Line";
9
- export declare const TITLE = "Chart title";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiCheckbox } from '..';
3
- declare const meta: Meta<typeof UiCheckbox>;
4
- type Story = StoryObj<typeof UiCheckbox>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- export declare const DEFAULT_MODEL_VALUE = false;
2
- export declare const DEFAULT_LABEL = "";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiChip } from '..';
3
- declare const meta: Meta<typeof UiChip>;
4
- type Story = StoryObj<typeof UiChip>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- export declare const DEFAULT_TYPE = "default";
2
- export declare const DEFAULT_SLOT = "Chip text";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiChoice } from '..';
3
- declare const meta: Meta<typeof UiChoice>;
4
- type Story = StoryObj<typeof UiChoice>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,5 +0,0 @@
1
- export declare const options: number[];
2
- export declare const modelValue: number;
3
- export declare const title = "\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A";
4
- export declare const isTall = true;
5
- export declare const isInput = true;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiClose } from '..';
3
- declare const meta: Meta<typeof UiClose>;
4
- type Story = StoryObj<typeof UiClose>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiEditor } from '..';
3
- declare const meta: Meta<typeof UiEditor>;
4
- type Story = StoryObj<typeof UiEditor>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1 +0,0 @@
1
- export declare const MODEL_VALUE = "Example text";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiField } from '..';
3
- declare const meta: Meta<typeof UiField>;
4
- type Story = StoryObj<typeof UiField>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,3 +0,0 @@
1
- export declare const LABEL = "Label";
2
- export declare const ERROR = "Error";
3
- export declare const DEFAULT_SLOT = "123";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiFlex } from '..';
3
- declare const meta: Meta<typeof UiFlex>;
4
- type Story = StoryObj<typeof UiFlex>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1,6 +0,0 @@
1
- export declare const DEFAULT_TAG = "div";
2
- export declare const DEFAULT_ALIGN = "normal";
3
- export declare const DEFAULT_JUSTIFY = "normal";
4
- export declare const DEFAULT_GAP = "8";
5
- export declare const FIRST_SLOT = "Content inside first div";
6
- export declare const SECOND_SLOT = "Content inside second div";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiInput } from '..';
3
- declare const meta: Meta<typeof UiInput>;
4
- type Story = StoryObj<typeof UiInput>;
5
- export default meta;
6
- export declare const Primary: Story;
@@ -1 +0,0 @@
1
- export declare const MODEL_VALUE = "Text example";
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
2
- import { UiModal } from '..';
3
- declare const meta: Meta<typeof UiModal>;
4
- type Story = StoryObj<typeof UiModal>;
5
- export default meta;
6
- export declare const Primary: Story;