mimir-ui-kit 1.37.0 → 1.37.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,149 +1,154 @@
1
- import { jsxs as B, jsx as r } from "react/jsx-runtime";
2
- import { c as v } from "../../index-DIxK0V-G.js";
3
- import { memo as V, forwardRef as tt, useState as y, useEffect as I } from "react";
4
- import { MAX_DAY as st, MAX_MONTH as et, DATE_LENGTH as ot } from "./constants.js";
5
- import { DatePickerModal as it } from "./DatePickerModal.js";
6
- import { MonthPickerModal as at } from "./MonthPickerModal.js";
1
+ import { jsxs as B, jsx as m } from "react/jsx-runtime";
2
+ import { c as b } from "../../index-DIxK0V-G.js";
3
+ import { memo as V, forwardRef as tt, useState as w, useEffect as T } from "react";
4
+ import { MAX_DAY as st, MAX_MONTH as et, DATE_LENGTH as it } from "./constants.js";
5
+ import { DatePickerModal as ot } from "./DatePickerModal.js";
6
+ import { MonthPickerModal as rt } from "./MonthPickerModal.js";
7
7
  import { c as o } from "../../styles.module-B3xL6-zc.js";
8
- import { formatDatePart as $ } from "./utils.js";
9
- import { YearPickerModal as rt } from "./YearPickerModal.js";
8
+ import { formatDatePart as L } from "./utils.js";
9
+ import { YearPickerModal as at } from "./YearPickerModal.js";
10
10
  import { useClickOutside as ct } from "../../hooks/useClickOutside/useClickOutside.js";
11
- import { Icon as H } from "../../icons/Icon.js";
12
- import { formating as f } from "../../utils/index.js";
11
+ import { Icon as R } from "../../icons/Icon.js";
12
+ import { formating as y } from "../../utils/index.js";
13
13
  import { I as mt } from "../../Input-BYrIS5GU.js";
14
- import { EInputStatus as pt, EInputSize as L } from "../Input/constants.js";
14
+ import { EInputStatus as pt, EInputSize as U } from "../Input/constants.js";
15
15
  const dt = {
16
- days: it,
17
- months: at,
18
- years: rt
19
- }, nt = V(
16
+ days: ot,
17
+ months: rt,
18
+ years: at
19
+ }, ft = V(
20
20
  tt(
21
21
  ({
22
- size: T,
23
- value: s,
24
- onChangeValue: e,
25
- name: c,
26
- before: P,
27
- type: m = "days",
28
- error: M,
29
- onError: p,
30
- onBlur: d,
31
- validateImmediately: _,
32
- variant: R,
33
- disabled: u = !1,
34
- editable: l = !1,
35
- openOnInput: b = !0,
36
- ...U
37
- }, X) => {
38
- const [w, a] = y(!1), [g, n] = y(m), [i, D] = y(
39
- () => s && !isNaN(new Date(s).getTime()) ? new Date(s) : void 0
40
- ), [x, S] = y(M), [F, h] = y("");
41
- I(() => {
42
- S(M);
43
- }, [M]), I(() => {
44
- D(
45
- s && !isNaN(new Date(s).getTime()) ? new Date(s) : void 0
22
+ size: P,
23
+ value: e,
24
+ onChangeValue: s,
25
+ name: a,
26
+ before: M,
27
+ type: p = "days",
28
+ error: v,
29
+ onError: d,
30
+ onBlur: i,
31
+ validateImmediately: h,
32
+ variant: X,
33
+ disabled: x = !1,
34
+ editable: D = !1,
35
+ openOnInput: j = !0,
36
+ ...u
37
+ }, F) => {
38
+ const [N, c] = w(!1), [S, f] = w(p), [r, l] = w(
39
+ () => e && !isNaN(new Date(e).getTime()) ? new Date(e) : void 0
40
+ ), [_, g] = w(v), [G, k] = w("");
41
+ T(() => {
42
+ g(v);
43
+ }, [v]), T(() => {
44
+ l(
45
+ e && !isNaN(new Date(e).getTime()) ? new Date(e) : void 0
46
46
  );
47
- }, [s]), I(() => {
48
- i && typeof i != "string" && !isNaN(i == null ? void 0 : i.getTime()) ? h(f.Date(i, "dd/mm/yyyy")) : h("");
49
- }, [i]);
50
- const j = s && new Date(s).getTime;
51
- I(() => {
52
- _ && (j ? (S(!1), p == null || p({ name: c, active: !1 })) : (S(!0), p == null || p({ name: c, active: !0 })));
53
- }, [_, c, j]), ct({
54
- isActive: w,
47
+ }, [e]), T(() => {
48
+ r && typeof r != "string" && !isNaN(r == null ? void 0 : r.getTime()) ? k(y.Date(r, "dd/mm/yyyy")) : k("");
49
+ }, [r]);
50
+ const O = e && new Date(e).getTime;
51
+ T(() => {
52
+ h && (O ? (g(!1), d == null || d({ name: a, active: !1 })) : (g(!0), d == null || d({ name: a, active: !0 })));
53
+ }, [h, a, O]), ct({
54
+ isActive: N,
55
55
  setActive: (t) => {
56
- a(t), n(m);
56
+ c(t), f(p);
57
57
  },
58
58
  className: o["calendar-block"]
59
59
  });
60
- const G = () => {
61
- !u && (b || !l) && a(!0);
62
- }, K = (t) => {
63
- isNaN(t.getTime()) || (D(t), e == null || e({
64
- value: f.Date(t, "yyyy-mm-dd"),
65
- name: c
66
- })), g === "years" && (m === "years" ? (a(!1), n(m)) : n("months")), g === "months" && (m === "months" ? (a(!1), n(m)) : n("days")), D(t), e == null || e({
67
- value: f.Date(t, "yyyy-mm-dd"),
68
- name: c
69
- }), d == null || d(f.Date(t, "yyyy-mm-dd"));
60
+ const K = () => {
61
+ !x && (j || !D) && c(!0);
70
62
  }, W = (t) => {
71
- if (l) {
72
- const N = t.target.value.replace(/[^\d]/g, ""), [k, C, O] = [
73
- $(N.substring(0, 2), st),
74
- $(N.substring(2, 4), et),
75
- N.substring(4, 8)
76
- ], Y = [k, C, O].filter(Boolean).join("/");
77
- if (h(Y), Y.length === ot) {
78
- const z = parseInt(O), A = /* @__PURE__ */ new Date(
79
- `${z}-${C.padStart(2, "0")}-${k.padStart(2, "0")}`
80
- );
81
- isNaN(A.getTime()) || (D(A), e == null || e({
82
- value: f.Date(A, "yyyy-mm-dd"),
83
- name: c
84
- }), d == null || d(f.Date(A, "yyyy-mm-dd")));
63
+ isNaN(t.getTime()) || (l(t), s == null || s({
64
+ value: y.Date(t, "yyyy-mm-dd"),
65
+ name: a
66
+ })), S === "years" && (p === "years" ? (c(!1), f(p)) : f("months")), S === "months" && (p === "months" ? (c(!1), f(p)) : f("days")), l(t), s == null || s({
67
+ value: y.Date(t, "yyyy-mm-dd"),
68
+ name: a
69
+ }), i == null || i(y.Date(t, "yyyy-mm-dd"));
70
+ }, q = (t) => {
71
+ if (D) {
72
+ const n = t.target.value.replace(/[^\d]/g, "");
73
+ if (n.length === 0)
74
+ k(""), s == null || s({ value: "", name: a }), i == null || i("");
75
+ else {
76
+ const [A, Y, $] = [
77
+ L(n.substring(0, 2), st),
78
+ L(n.substring(2, 4), et),
79
+ n.substring(4, 8)
80
+ ], H = [A, Y, $].filter(Boolean).join("/");
81
+ if (k(H), H.length === it) {
82
+ const C = parseInt($), I = /* @__PURE__ */ new Date(
83
+ `${C}-${Y.padStart(2, "0")}-${A.padStart(2, "0")}`
84
+ );
85
+ isNaN(I.getTime()) || (l(I), s == null || s({
86
+ value: y.Date(I, "yyyy-mm-dd"),
87
+ name: a
88
+ }), i == null || i(y.Date(I, "yyyy-mm-dd")));
89
+ }
85
90
  }
86
91
  }
87
- }, q = v(o.wrapper, w && o.active), E = v(o.input, o.inputBorderControl), J = {
88
- onChangeValue: K,
89
- date: i || /* @__PURE__ */ new Date(),
90
- before: typeof P == "string" ? new Date(P) : P,
91
- onChangeType: n,
92
- setIsActive: a
93
- }, Q = dt[g], Z = ({ isActive: t }) => /* @__PURE__ */ r("button", { onClick: (k) => {
94
- k.stopPropagation(), u || a(!t);
95
- }, className: o["icon-button"], children: t ? /* @__PURE__ */ r(
96
- H,
92
+ }, E = b(o.wrapper, N && o.active), J = b(o.input, o.inputBorderControl), Q = {
93
+ onChangeValue: W,
94
+ date: r || /* @__PURE__ */ new Date(),
95
+ before: typeof M == "string" ? new Date(M) : M,
96
+ onChangeType: f,
97
+ setIsActive: c
98
+ }, Z = dt[S], z = ({ isActive: t }) => /* @__PURE__ */ m("button", { onClick: (A) => {
99
+ A.stopPropagation(), x || c(!t);
100
+ }, className: o["icon-button"], children: t ? /* @__PURE__ */ m(
101
+ R,
97
102
  {
98
- iconName: T === L.S ? "DropdownArrowUp16px" : "DropdownArrowUp24px"
103
+ iconName: P === U.S ? "DropdownArrowUp16px" : "DropdownArrowUp24px"
99
104
  }
100
- ) : /* @__PURE__ */ r(
101
- H,
105
+ ) : /* @__PURE__ */ m(
106
+ R,
102
107
  {
103
- iconName: T === L.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px"
108
+ iconName: P === U.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px"
104
109
  }
105
110
  ) });
106
- return /* @__PURE__ */ B("div", { className: q, "data-disabled": u, children: [
107
- /* @__PURE__ */ r(
111
+ return /* @__PURE__ */ B("div", { className: E, "data-disabled": x, children: [
112
+ /* @__PURE__ */ m(
108
113
  "div",
109
114
  {
110
115
  role: "button",
111
- "data-error": x,
112
- className: v(o["date-wrapper"], {
113
- [o.editable]: l
116
+ "data-error": _,
117
+ className: b(o["date-wrapper"], {
118
+ [o.editable]: D
114
119
  }),
115
- onClick: G,
116
- children: /* @__PURE__ */ r(
120
+ onClick: K,
121
+ children: /* @__PURE__ */ m(
117
122
  mt,
118
123
  {
119
- ref: X,
120
- className: E,
124
+ ref: F,
125
+ className: J,
121
126
  wrapperClassName: o["input-wrapper"],
122
- size: T,
127
+ size: P,
123
128
  type: "text",
124
- variant: R,
125
- status: x ? pt.Error : void 0,
126
- value: F,
127
- onChange: W,
129
+ variant: X,
130
+ status: _ ? pt.Error : void 0,
131
+ value: G,
132
+ onChange: q,
128
133
  rightAddon: {
129
134
  addonType: "react-node",
130
- addonContent: /* @__PURE__ */ r(Z, { isActive: w })
135
+ addonContent: /* @__PURE__ */ m(z, { isActive: N })
131
136
  },
132
137
  onFocus: () => {
133
- b && !l && a(!0);
138
+ j && !D && c(!0);
134
139
  },
135
- "data-error": x,
136
- ...U
140
+ "data-error": _,
141
+ ...u
137
142
  }
138
143
  )
139
144
  }
140
145
  ),
141
- w && /* @__PURE__ */ r(Q, { ...J })
146
+ N && /* @__PURE__ */ m(Z, { ...Q })
142
147
  ] });
143
148
  }
144
149
  )
145
150
  );
146
- nt.displayName = "DatePicker";
151
+ ft.displayName = "DatePicker";
147
152
  export {
148
- nt as DatePicker
153
+ ft as DatePicker
149
154
  };
@@ -65,3 +65,5 @@ export { ListFiles, EFileItemVariant } from './ListFiles';
65
65
  export type { TListFiles, TFilesDetail, TFileValue } from './ListFiles';
66
66
  export { ListPhotos } from './ListPhotos';
67
67
  export type { TListPhotos, TPhotosDetail, TPhotoValue, TPhotoItem } from './ListPhotos';
68
+ export { MessageShortReply } from './MessageShortReply';
69
+ export { EMessageShortReplyVariant, type TMessageShortReplyProps } from './MessageShortReply';
@@ -1,18 +1,18 @@
1
1
  import { Button as e } from "./Button/Button.js";
2
2
  import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as x, EButtonVariantRound as f } from "./Button/constants.js";
3
3
  import { I as S } from "../Input-BYrIS5GU.js";
4
- import { EInputSize as u, EInputStatus as l, EInputVariant as s } from "./Input/constants.js";
4
+ import { EInputSize as s, EInputStatus as l, EInputVariant as u } from "./Input/constants.js";
5
5
  import { TextArea as c } from "./TextArea/TextArea.js";
6
6
  import { ETextAreaInputSize as I } from "./TextArea/constants.js";
7
- import { InputPassword as k } from "./InputPassword/InputPassword.js";
8
- import { InputPhoneNumber as V } from "./InputPhoneNumber/InputPhoneNumber.js";
7
+ import { InputPassword as h } from "./InputPassword/InputPassword.js";
8
+ import { InputPhoneNumber as k } from "./InputPhoneNumber/InputPhoneNumber.js";
9
9
  import { getMaskedInputPhoneValue as B, getUnmaskedInputValue as P } from "./InputPhoneNumber/utils.js";
10
- import { OtpInput as L } from "./OtpInput/OtpInput.js";
11
- import { RadioGroup as w } from "./RadioGroup/RadioGroup.js";
12
- import { DatePicker as M } from "./DatePicker/DatePicker.js";
10
+ import { OtpInput as M } from "./OtpInput/OtpInput.js";
11
+ import { RadioGroup as L } from "./RadioGroup/RadioGroup.js";
12
+ import { DatePicker as w } from "./DatePicker/DatePicker.js";
13
13
  import { MergedButton as b } from "./MergedButton/MergedButton.js";
14
- import { EMergedButtonVariantRound as D } from "./MergedButton/constants.js";
15
- import { AppImage as G } from "./Image/Image.js";
14
+ import { EMergedButtonVariantRound as v } from "./MergedButton/constants.js";
15
+ import { AppImage as F } from "./Image/Image.js";
16
16
  import { Loader as N } from "./Loader/Loader.js";
17
17
  import { Slider as O } from "./Slider/index.js";
18
18
  import { Drawer as q } from "./Drawer/Drawer.js";
@@ -29,15 +29,15 @@ import { ETagSize as So, ETagType as Eo } from "./Tag/constants.js";
29
29
  import { Timer as lo } from "./Timer/Timer.js";
30
30
  import { Accordion as co } from "./Accordion/Accordion.js";
31
31
  import { EAccordionSize as Io } from "./Accordion/constants.js";
32
- import { AccordionItem as ko } from "./Accordion/AccordionItem/AccordionItem.js";
33
- import { TabTrail as Vo } from "./TabTrail/TabTrail.js";
32
+ import { AccordionItem as ho } from "./Accordion/AccordionItem/AccordionItem.js";
33
+ import { TabTrail as ko } from "./TabTrail/TabTrail.js";
34
34
  import { ETabTrailSize as Bo } from "./TabTrail/constants.js";
35
35
  import { Pagination as Ao } from "./Pagination/Pagination.js";
36
- import { ToastProvider as Uo } from "./Toasts/ToastsProvider.js";
37
- import { useToast as Co } from "./Toasts/hooks.js";
38
- import { EToastPosition as Ro, EToastVariant as bo } from "./Toasts/constants.js";
39
- import { UploaderPhotos as Do } from "./UploaderPhotos/UploaderPhotos.js";
40
- import { UploaderFiles as Go } from "./UploaderFiles/UploaderFiles.js";
36
+ import { ToastProvider as Ro } from "./Toasts/ToastsProvider.js";
37
+ import { useToast as Uo } from "./Toasts/hooks.js";
38
+ import { EToastPosition as Co, EToastVariant as bo } from "./Toasts/constants.js";
39
+ import { UploaderPhotos as vo } from "./UploaderPhotos/UploaderPhotos.js";
40
+ import { UploaderFiles as Fo } from "./UploaderFiles/UploaderFiles.js";
41
41
  import { Uploader as No } from "./Uploader/Uploader.js";
42
42
  import { Link as Oo } from "./AnchorLink/Link.js";
43
43
  import { ELinkSize as qo, ELinkVariant as Ho } from "./AnchorLink/constants.js";
@@ -50,32 +50,34 @@ import { EUploaderType as pr } from "./UniversalUploader/constants.js";
50
50
  import { InputRangeSlider as ir } from "./InputRangeSlider/InputRangeSlider.js";
51
51
  import { EInputRangeSliderBorderState as xr, EInputRangeSliderPositions as fr } from "./InputRangeSlider/constants.js";
52
52
  import { GosZnak as Sr } from "./GosZnak/GosZnak.js";
53
- import { EGosZnakSize as ur, EGosZnakType as lr } from "./GosZnak/constants.js";
53
+ import { EGosZnakSize as sr, EGosZnakType as lr } from "./GosZnak/constants.js";
54
54
  import { Switcher as dr } from "./Switcher/Switcher.js";
55
55
  import { ELabelPositions as Tr } from "./Switcher/constants.js";
56
56
  import { TwinSwitcher as gr } from "./TwinSwitcher/TwinSwitcher.js";
57
- import { SkeletonBrick as zr } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
58
- import { SkeletonText as hr } from "./Skeleton/SkeletonText/SkeletonText.js";
57
+ import { SkeletonBrick as Vr } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
58
+ import { SkeletonText as zr } from "./Skeleton/SkeletonText/SkeletonText.js";
59
59
  import { SkeletonCircle as Pr } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
60
- import { ESkeletonVariant as Lr } from "./Skeleton/constants.js";
61
- import { Avatar as wr } from "./Avatar/Avatar.js";
62
- import { EAvatarSize as Mr } from "./Avatar/constants.js";
60
+ import { ESkeletonVariant as Mr } from "./Skeleton/constants.js";
61
+ import { Avatar as Lr } from "./Avatar/Avatar.js";
62
+ import { EAvatarSize as wr } from "./Avatar/constants.js";
63
63
  import { MultiSelectSearch as br } from "./MultiSelectSearch/MultiSelectSearch.js";
64
- import { EMultiSelectSearchSize as Dr } from "./MultiSelectSearch/constants.js";
65
- import { ListFiles as Gr } from "./ListFiles/ListFiles.js";
64
+ import { EMultiSelectSearchSize as vr } from "./MultiSelectSearch/constants.js";
65
+ import { ListFiles as Fr } from "./ListFiles/ListFiles.js";
66
66
  import { EFileItemVariant as Nr } from "./ListFiles/constants.js";
67
67
  import { ListPhotos as Or } from "./ListPhotos/ListPhotos.js";
68
+ import { MessageShortReply as qr } from "./MessageShortReply/MessageShortReply.js";
69
+ import { EMessageShortReplyVariant as Jr } from "./MessageShortReply/constants.js";
68
70
  export {
69
71
  co as Accordion,
70
- ko as AccordionItem,
71
- wr as Avatar,
72
+ ho as AccordionItem,
73
+ Lr as Avatar,
72
74
  e as Button,
73
75
  mo as CheckboxMimir,
74
76
  Yo as Chip,
75
- M as DatePicker,
77
+ w as DatePicker,
76
78
  q as Drawer,
77
79
  Io as EAccordionSize,
78
- Mr as EAvatarSize,
80
+ wr as EAvatarSize,
79
81
  p as EButtonForm,
80
82
  a as EButtonSize,
81
83
  i as EButtonVariantBorderless,
@@ -86,66 +88,68 @@ export {
86
88
  or as EChipVariant,
87
89
  J as EDrawerPosition,
88
90
  Nr as EFileItemVariant,
89
- ur as EGosZnakSize,
91
+ sr as EGosZnakSize,
90
92
  lr as EGosZnakType,
91
93
  xr as EInputRangeSliderBorderState,
92
94
  fr as EInputRangeSliderPositions,
93
- u as EInputSize,
95
+ s as EInputSize,
94
96
  l as EInputStatus,
95
- s as EInputVariant,
97
+ u as EInputVariant,
96
98
  Tr as ELabelPositions,
97
99
  qo as ELinkSize,
98
100
  Ho as ELinkVariant,
99
- D as EMergedButtonVariantRound,
100
- Dr as EMultiSelectSearchSize,
101
+ v as EMergedButtonVariantRound,
102
+ Jr as EMessageShortReplyVariant,
103
+ vr as EMultiSelectSearchSize,
101
104
  Wo as ENotificationBadgeSize,
102
105
  ao as ESelectSearchSize,
103
- Lr as ESkeletonVariant,
106
+ Mr as ESkeletonVariant,
104
107
  X as EStepColor,
105
108
  Y as EStepsSize,
106
109
  Bo as ETabTrailSize,
107
110
  So as ETagSize,
108
111
  Eo as ETagType,
109
112
  I as ETextAreaInputSize,
110
- Ro as EToastPosition,
113
+ Co as EToastPosition,
111
114
  bo as EToastVariant,
112
115
  pr as EUploaderType,
113
116
  ro as EVoteSize,
114
117
  Sr as GosZnak,
115
- G as Image,
118
+ F as Image,
116
119
  S as Input,
117
- k as InputPassword,
118
- V as InputPhoneNumber,
120
+ h as InputPassword,
121
+ k as InputPhoneNumber,
119
122
  ir as InputRangeSlider,
120
123
  Oo as Link,
121
- Gr as ListFiles,
124
+ Fr as ListFiles,
122
125
  Or as ListPhotos,
123
126
  N as Loader,
124
127
  b as MergedButton,
128
+ qr as MessageShortReply,
125
129
  br as MultiSelectSearch,
126
130
  Ko as NotificationBadge,
127
- L as OtpInput,
131
+ M as OtpInput,
128
132
  Ao as Pagination,
129
- w as RadioGroup,
133
+ L as RadioGroup,
130
134
  to as SelectSearch,
131
- zr as SkeletonBrick,
135
+ Vr as SkeletonBrick,
132
136
  Pr as SkeletonCircle,
133
- hr as SkeletonText,
137
+ zr as SkeletonText,
134
138
  O as Slider,
135
139
  Q as Steps,
136
140
  dr as Switcher,
137
- Vo as TabTrail,
141
+ ko as TabTrail,
138
142
  fo as Tag,
139
143
  c as TextArea,
140
144
  lo as Timer,
141
- Uo as ToastProvider,
145
+ Ro as ToastProvider,
142
146
  gr as TwinSwitcher,
143
147
  er as UniversalUploader,
144
148
  No as Uploader,
145
- Go as UploaderFiles,
146
- Do as UploaderPhotos,
149
+ Fo as UploaderFiles,
150
+ vo as UploaderPhotos,
147
151
  $ as Vote,
148
152
  B as getMaskedInputPhoneValue,
149
153
  P as getUnmaskedInputValue,
150
- Co as useToast
154
+ Uo as useToast
151
155
  };
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { Button as e } from "./components/Button/Button.js";
2
- import { EButtonForm as p, EButtonSize as m, EButtonVariantBorderless as a, EButtonVariantDefault as i, EButtonVariantOutline as f, EButtonVariantRound as x } from "./components/Button/constants.js";
3
- import { I as u } from "./Input-BYrIS5GU.js";
4
- import { EInputSize as E, EInputStatus as S, EInputVariant as l } from "./components/Input/constants.js";
2
+ import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as m, EButtonVariantDefault as i, EButtonVariantOutline as f, EButtonVariantRound as x } from "./components/Button/constants.js";
3
+ import { I as s } from "./Input-BYrIS5GU.js";
4
+ import { EInputSize as S, EInputStatus as E, EInputVariant as l } from "./components/Input/constants.js";
5
5
  import { TextArea as c } from "./components/TextArea/TextArea.js";
6
6
  import { ETextAreaInputSize as I } from "./components/TextArea/constants.js";
7
- import { InputPassword as k } from "./components/InputPassword/InputPassword.js";
8
- import { InputPhoneNumber as B } from "./components/InputPhoneNumber/InputPhoneNumber.js";
9
- import { getMaskedInputPhoneValue as h, getUnmaskedInputValue as P } from "./components/InputPhoneNumber/utils.js";
7
+ import { InputPassword as h } from "./components/InputPassword/InputPassword.js";
8
+ import { InputPhoneNumber as z } from "./components/InputPhoneNumber/InputPhoneNumber.js";
9
+ import { getMaskedInputPhoneValue as B, getUnmaskedInputValue as M } from "./components/InputPhoneNumber/utils.js";
10
10
  import { OtpInput as y } from "./components/OtpInput/OtpInput.js";
11
- import { RadioGroup as C } from "./components/RadioGroup/RadioGroup.js";
12
- import { DatePicker as R } from "./components/DatePicker/DatePicker.js";
11
+ import { RadioGroup as A } from "./components/RadioGroup/RadioGroup.js";
12
+ import { DatePicker as L } from "./components/DatePicker/DatePicker.js";
13
13
  import { MergedButton as U } from "./components/MergedButton/MergedButton.js";
14
14
  import { EMergedButtonVariantRound as w } from "./components/MergedButton/constants.js";
15
15
  import { AppImage as F } from "./components/Image/Image.js";
@@ -22,19 +22,19 @@ import { EStepColor as X, EStepsSize as Y } from "./components/Steps/constants.j
22
22
  import { Vote as $ } from "./components/Vote/Vote.js";
23
23
  import { EVoteSize as ro } from "./components/Vote/constants.js";
24
24
  import { SelectSearch as to } from "./components/SelectSearch/SelectSearch.js";
25
- import { ESelectSearchSize as mo } from "./components/SelectSearch/constants.js";
25
+ import { ESelectSearchSize as ao } from "./components/SelectSearch/constants.js";
26
26
  import { CheckboxMimir as io } from "./components/CheckboxMimir/CheckboxMimir.js";
27
27
  import { Tag as xo } from "./components/Tag/Tag.js";
28
- import { ETagSize as uo, ETagType as so } from "./components/Tag/constants.js";
29
- import { Timer as So } from "./components/Timer/Timer.js";
28
+ import { ETagSize as so, ETagType as uo } from "./components/Tag/constants.js";
29
+ import { Timer as Eo } from "./components/Timer/Timer.js";
30
30
  import { Accordion as co } from "./components/Accordion/Accordion.js";
31
31
  import { EAccordionSize as Io } from "./components/Accordion/constants.js";
32
- import { AccordionItem as ko } from "./components/Accordion/AccordionItem/AccordionItem.js";
33
- import { TabTrail as Bo } from "./components/TabTrail/TabTrail.js";
34
- import { ETabTrailSize as ho } from "./components/TabTrail/constants.js";
35
- import { Pagination as Mo } from "./components/Pagination/Pagination.js";
36
- import { ToastProvider as Ao } from "./components/Toasts/ToastsProvider.js";
37
- import { useToast as Lo } from "./components/Toasts/hooks.js";
32
+ import { AccordionItem as ho } from "./components/Accordion/AccordionItem/AccordionItem.js";
33
+ import { TabTrail as zo } from "./components/TabTrail/TabTrail.js";
34
+ import { ETabTrailSize as Bo } from "./components/TabTrail/constants.js";
35
+ import { Pagination as Po } from "./components/Pagination/Pagination.js";
36
+ import { ToastProvider as Ro } from "./components/Toasts/ToastsProvider.js";
37
+ import { useToast as Co } from "./components/Toasts/hooks.js";
38
38
  import { EToastPosition as bo, EToastVariant as Uo } from "./components/Toasts/constants.js";
39
39
  import { UploaderPhotos as wo } from "./components/UploaderPhotos/UploaderPhotos.js";
40
40
  import { UploaderFiles as Fo } from "./components/UploaderFiles/UploaderFiles.js";
@@ -47,49 +47,51 @@ import { Chip as Yo } from "./components/Chip/Chip.js";
47
47
  import { EChipSize as $o, EChipVariant as or } from "./components/Chip/constants.js";
48
48
  import { UniversalUploader as er } from "./components/UniversalUploader/UniversalUploader.js";
49
49
  import { EUploaderType as pr } from "./components/UniversalUploader/constants.js";
50
- import { InputRangeSlider as ar } from "./components/InputRangeSlider/InputRangeSlider.js";
50
+ import { InputRangeSlider as mr } from "./components/InputRangeSlider/InputRangeSlider.js";
51
51
  import { EInputRangeSliderBorderState as fr, EInputRangeSliderPositions as xr } from "./components/InputRangeSlider/constants.js";
52
- import { GosZnak as ur } from "./components/GosZnak/GosZnak.js";
53
- import { EGosZnakSize as Er, EGosZnakType as Sr } from "./components/GosZnak/constants.js";
52
+ import { GosZnak as sr } from "./components/GosZnak/GosZnak.js";
53
+ import { EGosZnakSize as Sr, EGosZnakType as Er } from "./components/GosZnak/constants.js";
54
54
  import { Switcher as dr } from "./components/Switcher/Switcher.js";
55
55
  import { ELabelPositions as Tr } from "./components/Switcher/constants.js";
56
56
  import { TwinSwitcher as gr } from "./components/TwinSwitcher/TwinSwitcher.js";
57
- import { SkeletonBrick as zr } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
57
+ import { SkeletonBrick as kr } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
58
58
  import { SkeletonText as Vr } from "./components/Skeleton/SkeletonText/SkeletonText.js";
59
- import { SkeletonCircle as Pr } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
59
+ import { SkeletonCircle as Mr } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
60
60
  import { ESkeletonVariant as yr } from "./components/Skeleton/constants.js";
61
- import { Avatar as Cr } from "./components/Avatar/Avatar.js";
62
- import { EAvatarSize as Rr } from "./components/Avatar/constants.js";
61
+ import { Avatar as Ar } from "./components/Avatar/Avatar.js";
62
+ import { EAvatarSize as Lr } from "./components/Avatar/constants.js";
63
63
  import { MultiSelectSearch as Ur } from "./components/MultiSelectSearch/MultiSelectSearch.js";
64
64
  import { EMultiSelectSearchSize as wr } from "./components/MultiSelectSearch/constants.js";
65
65
  import { ListFiles as Fr } from "./components/ListFiles/ListFiles.js";
66
66
  import { EFileItemVariant as Nr } from "./components/ListFiles/constants.js";
67
67
  import { ListPhotos as Qr } from "./components/ListPhotos/ListPhotos.js";
68
- import { useMediaQuery as jr } from "./hooks/useMediaQuery/useMediaQuery.js";
69
- import { EMediaQuery as Hr, EMinMediaQuery as Jr } from "./hooks/useMediaQuery/constants.js";
70
- import { useLockBodyScroll as Wr } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
71
- import { useInterval as Yr } from "./hooks/useInterval/useInterval.js";
72
- import { useTimer as $r } from "./hooks/useTimer/index.js";
73
- import { useCopyToClipboard as re } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
74
- import { useMergeRefs as te } from "./hooks/useMergeRefs/useMergeRefs.js";
75
- import { useResizeObserver as me } from "./hooks/useResizeObserver/useResizeObserver.js";
76
- import { Icon as ie } from "./icons/Icon.js";
77
- import { formating as xe } from "./utils/index.js";
78
- import { parseDate as ue } from "./utils/formating/Date.js";
68
+ import { MessageShortReply as jr } from "./components/MessageShortReply/MessageShortReply.js";
69
+ import { EMessageShortReplyVariant as Hr } from "./components/MessageShortReply/constants.js";
70
+ import { useMediaQuery as Kr } from "./hooks/useMediaQuery/useMediaQuery.js";
71
+ import { EMediaQuery as Xr, EMinMediaQuery as Yr } from "./hooks/useMediaQuery/constants.js";
72
+ import { useLockBodyScroll as $r } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
73
+ import { useInterval as re } from "./hooks/useInterval/useInterval.js";
74
+ import { useTimer as te } from "./hooks/useTimer/index.js";
75
+ import { useCopyToClipboard as ae } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
76
+ import { useMergeRefs as ie } from "./hooks/useMergeRefs/useMergeRefs.js";
77
+ import { useResizeObserver as xe } from "./hooks/useResizeObserver/useResizeObserver.js";
78
+ import { Icon as se } from "./icons/Icon.js";
79
+ import { formating as Se } from "./utils/index.js";
80
+ import { parseDate as le } from "./utils/formating/Date.js";
79
81
  import './assets/index.css';export {
80
82
  co as Accordion,
81
- ko as AccordionItem,
82
- Cr as Avatar,
83
+ ho as AccordionItem,
84
+ Ar as Avatar,
83
85
  e as Button,
84
86
  io as CheckboxMimir,
85
87
  Yo as Chip,
86
- R as DatePicker,
88
+ L as DatePicker,
87
89
  j as Drawer,
88
90
  Io as EAccordionSize,
89
- Rr as EAvatarSize,
91
+ Lr as EAvatarSize,
90
92
  p as EButtonForm,
91
- m as EButtonSize,
92
- a as EButtonVariantBorderless,
93
+ a as EButtonSize,
94
+ m as EButtonVariantBorderless,
93
95
  i as EButtonVariantDefault,
94
96
  f as EButtonVariantOutline,
95
97
  x as EButtonVariantRound,
@@ -97,78 +99,80 @@ import './assets/index.css';export {
97
99
  or as EChipVariant,
98
100
  H as EDrawerPosition,
99
101
  Nr as EFileItemVariant,
100
- Er as EGosZnakSize,
101
- Sr as EGosZnakType,
102
+ Sr as EGosZnakSize,
103
+ Er as EGosZnakType,
102
104
  fr as EInputRangeSliderBorderState,
103
105
  xr as EInputRangeSliderPositions,
104
- E as EInputSize,
105
- S as EInputStatus,
106
+ S as EInputSize,
107
+ E as EInputStatus,
106
108
  l as EInputVariant,
107
109
  Tr as ELabelPositions,
108
110
  jo as ELinkSize,
109
111
  qo as ELinkVariant,
110
- Hr as EMediaQuery,
112
+ Xr as EMediaQuery,
111
113
  w as EMergedButtonVariantRound,
112
- Jr as EMinMediaQuery,
114
+ Hr as EMessageShortReplyVariant,
115
+ Yr as EMinMediaQuery,
113
116
  wr as EMultiSelectSearchSize,
114
117
  Wo as ENotificationBadgeSize,
115
- mo as ESelectSearchSize,
118
+ ao as ESelectSearchSize,
116
119
  yr as ESkeletonVariant,
117
120
  X as EStepColor,
118
121
  Y as EStepsSize,
119
- ho as ETabTrailSize,
120
- uo as ETagSize,
121
- so as ETagType,
122
+ Bo as ETabTrailSize,
123
+ so as ETagSize,
124
+ uo as ETagType,
122
125
  I as ETextAreaInputSize,
123
126
  bo as EToastPosition,
124
127
  Uo as EToastVariant,
125
128
  pr as EUploaderType,
126
129
  ro as EVoteSize,
127
- ur as GosZnak,
128
- ie as Icon,
130
+ sr as GosZnak,
131
+ se as Icon,
129
132
  F as Image,
130
- u as Input,
131
- k as InputPassword,
132
- B as InputPhoneNumber,
133
- ar as InputRangeSlider,
133
+ s as Input,
134
+ h as InputPassword,
135
+ z as InputPhoneNumber,
136
+ mr as InputRangeSlider,
134
137
  Qo as Link,
135
138
  Fr as ListFiles,
136
139
  Qr as ListPhotos,
137
140
  N as Loader,
138
141
  U as MergedButton,
142
+ jr as MessageShortReply,
139
143
  Ur as MultiSelectSearch,
140
144
  Jo as NotificationBadge,
141
145
  y as OtpInput,
142
- Mo as Pagination,
143
- C as RadioGroup,
146
+ Po as Pagination,
147
+ A as RadioGroup,
144
148
  to as SelectSearch,
145
- zr as SkeletonBrick,
146
- Pr as SkeletonCircle,
149
+ kr as SkeletonBrick,
150
+ Mr as SkeletonCircle,
147
151
  Vr as SkeletonText,
148
152
  Q as Slider,
149
153
  K as Steps,
150
154
  dr as Switcher,
151
- Bo as TabTrail,
155
+ zo as TabTrail,
152
156
  xo as Tag,
153
157
  c as TextArea,
154
- So as Timer,
155
- Ao as ToastProvider,
158
+ Eo as Timer,
159
+ Ro as ToastProvider,
156
160
  gr as TwinSwitcher,
157
161
  er as UniversalUploader,
158
162
  No as Uploader,
159
163
  Fo as UploaderFiles,
160
164
  wo as UploaderPhotos,
161
165
  $ as Vote,
162
- xe as formating,
163
- h as getMaskedInputPhoneValue,
164
- P as getUnmaskedInputValue,
165
- ue as parseDate,
166
- re as useCopyToClipboard,
167
- Yr as useInterval,
168
- Wr as useLockBodyScroll,
169
- jr as useMediaQuery,
170
- te as useMergeRefs,
171
- me as useResizeObserver,
172
- $r as useTimer,
173
- Lo as useToast
166
+ Se as formating,
167
+ B as getMaskedInputPhoneValue,
168
+ M as getUnmaskedInputValue,
169
+ le as parseDate,
170
+ ae as useCopyToClipboard,
171
+ re as useInterval,
172
+ $r as useLockBodyScroll,
173
+ Kr as useMediaQuery,
174
+ ie as useMergeRefs,
175
+ xe as useResizeObserver,
176
+ te as useTimer,
177
+ Co as useToast
174
178
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.37.0",
4
+ "version": "1.37.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {