mimir-ui-kit 1.36.16 → 1.37.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/MessageShortReply.css +1 -0
- package/dist/components/MessageShortReply/MessageShortReply.d.ts +30 -0
- package/dist/components/MessageShortReply/MessageShortReply.js +51 -0
- package/dist/components/MessageShortReply/constants.d.ts +9 -0
- package/dist/components/MessageShortReply/constants.js +4 -0
- package/dist/components/MessageShortReply/index.d.ts +2 -0
- package/dist/components/MessageShortReply/index.js +6 -0
- package/dist/components/UniversalUploader/UniversalUploader.js +36 -35
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +51 -47
- package/dist/index.js +80 -76
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
._short-reply_1tpxx_2{--short-reply-cursor: pointer;display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;max-width:100%;height:32px;padding:0 var(--mimir-space-xs);overflow:hidden;color:var(--short-reply-color);font-size:var(--mimir-size-text-s);font-family:var(--mimir-font-inter);line-height:var(--mimir-line-height-text-s1);white-space:nowrap;-webkit-text-decoration:none;text-decoration:none;text-overflow:ellipsis;-moz-column-gap:var(--mimir-space-2xs);column-gap:var(--mimir-space-2xs);background-color:var(--short-reply-bg-color);border-color:var(--short-reply-border-color);border-style:solid;border-width:1px;border-radius:var(--mimir-control-input-radius);cursor:pointer;cursor:var(--short-reply-cursor);transition:all .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._short-reply_1tpxx_2:hover{color:var(--short-reply-color-hover);background:var(--short-reply-bg-color-hover);border-color:var(--short-reply-border-color-hover)}._short-reply_1tpxx_2:active{color:var(--short-reply-color-active);background:var(--short-reply-bg-color-active);border-color:var(--short-reply-border-color-active)}._short-reply_1tpxx_2:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._short-reply_1tpxx_2 svg{color:currentcolor;fill:currentcolor}._short-reply_1tpxx_2 svg path{color:currentcolor;fill:currentcolor}._short-reply_1tpxx_2._sapphire_1tpxx_50{--short-reply-bg-color: transparent;--short-reply-color-hover: var(--light-text);--short-reply-color-active: var(--light-text);--short-reply-bg-color-active: var(--sapphire-active);--short-reply-bg-color-hover: var(--sapphire-normal);--short-reply-color: var(--sapphire-normal);--short-reply-border-color: var(--sapphire-normal)}._short-reply_1tpxx_2._sapphire-filled_1tpxx_59{--short-reply-bg-color: var(--sapphire-normal);--short-reply-color-hover: var(--light-text);--short-reply-color-active: var(--light-text);--short-reply-bg-color-active: var(--sapphire-active);--short-reply-bg-color-hover: var(--sapphire-hover);--short-reply-color: var(--light-text)}._short-reply_1tpxx_2._citrine_1tpxx_67{--short-reply-bg-color: transparent;--short-reply-bg-color-active: var(--citrine-active);--short-reply-bg-color-hover: var(--citrine-hover);--short-reply-color: var(--citrine-normal);--short-reply-color-hover: var(--light-text);--short-reply-color-active: var(--light-text);--short-reply-border-color: var(--citrine-normal)}._short-reply_1tpxx_2._asphalt_1tpxx_76{--short-reply-bg-color: transparent;--short-reply-bg-color-active: var(--asphalt-active);--short-reply-bg-color-hover: var(--asphalt-hover);--short-reply-color: var(--asphalt-normal);--short-reply-color-hover: var(--light-text);--short-reply-color-active: var(--light-text);--short-reply-border-color: var(--asphalt-normal)}._short-reply_1tpxx_2._gray_1tpxx_85{--short-reply-bg-color: var(--gray-normal);--short-reply-bg-color-hover: var(--gray-hover);--short-reply-bg-color-active: var(--gray-active);--short-reply-color: var(--dark-text);--short-reply-color-hover: var(--dark-text);--short-reply-color-active: var(--light-text);border:none}._short-reply_1tpxx_2._white_1tpxx_94{--short-reply-bg-color: var(--white-normal);--short-reply-bg-color-hover: var(--white-hover);--short-reply-bg-color-active: var(--white-active);--short-reply-color: var(--dark-text);--short-reply-color-hover: var(--dark-text);--short-reply-color-active: var(--light-text);border:none}._short-reply_1tpxx_2._green_1tpxx_103{--short-reply-bg-color: transparent;--short-reply-bg-color-hover: var(--green-hover);--short-reply-bg-color-active: var(--green-active);--short-reply-color: var(--green);--short-reply-color-hover: var(--light-text);--short-reply-color-active: var(--light-text);--short-reply-border-color: var(--green)}._short-reply_1tpxx_2._disabled_1tpxx_112{--short-reply-cursor: not-allowed;color:var(--disabled);background-color:transparent;border-color:var(--disabled)}._short-reply_1tpxx_2._disabled_1tpxx_112:hover,._short-reply_1tpxx_2._disabled_1tpxx_112:active,._short-reply_1tpxx_2._disabled_1tpxx_112:focus{color:var(--disabled);background-color:transparent;border-color:var(--disabled);box-shadow:none}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { ComponentProps } from 'react';
|
2
|
+
import { EMessageShortReplyVariant } from './constants';
|
3
|
+
import { TIcon } from '../../icons';
|
4
|
+
|
5
|
+
export type TProps = ComponentProps<'button'> & {
|
6
|
+
/**
|
7
|
+
* Класс, применяемый к корневому элементу MessageShortReply.
|
8
|
+
*/
|
9
|
+
className?: string;
|
10
|
+
/**
|
11
|
+
* Флаг, указывающий, отключена ли MessageShortReply.
|
12
|
+
*/
|
13
|
+
disabled?: boolean;
|
14
|
+
/**
|
15
|
+
* "Вариант отображения MessageShortReply. Допустимые значения: 'sapphire', sapphire-filled', 'citrine', 'asphalt', 'gray', 'white', 'green'."
|
16
|
+
*/
|
17
|
+
variant?: `${EMessageShortReplyVariant}` | EMessageShortReplyVariant;
|
18
|
+
/**
|
19
|
+
* Имя иконки слева.
|
20
|
+
*/
|
21
|
+
leftIconName?: TIcon;
|
22
|
+
/**
|
23
|
+
* Имя иконки справа.
|
24
|
+
*/
|
25
|
+
rightIconName?: TIcon;
|
26
|
+
};
|
27
|
+
/**
|
28
|
+
* Компонент MessageShortReply, который можно настраивать с различными темами и размерами.
|
29
|
+
*/
|
30
|
+
export declare const MessageShortReply: import('react').ForwardRefExoticComponent<Omit<TProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
2
|
+
import { c as y } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as f } from "react";
|
4
|
+
import { EMessageShortReplyVariant as g } from "./constants.js";
|
5
|
+
import { Icon as o } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/MessageShortReply.css';const N = "_sapphire_1tpxx_50", b = "_citrine_1tpxx_67", u = "_asphalt_1tpxx_76", w = "_gray_1tpxx_85", R = "_white_1tpxx_94", S = "_green_1tpxx_103", I = "_disabled_1tpxx_112", e = {
|
7
|
+
"short-reply": "_short-reply_1tpxx_2",
|
8
|
+
sapphire: N,
|
9
|
+
"sapphire-filled": "_sapphire-filled_1tpxx_59",
|
10
|
+
citrine: b,
|
11
|
+
asphalt: u,
|
12
|
+
gray: w,
|
13
|
+
white: R,
|
14
|
+
green: S,
|
15
|
+
disabled: I
|
16
|
+
}, M = f(
|
17
|
+
(p, i) => {
|
18
|
+
const {
|
19
|
+
variant: n = g.Sapphire,
|
20
|
+
children: c,
|
21
|
+
className: l,
|
22
|
+
leftIconName: s,
|
23
|
+
rightIconName: r,
|
24
|
+
type: _ = "button",
|
25
|
+
disabled: t,
|
26
|
+
...h
|
27
|
+
} = p, x = {
|
28
|
+
[e.disabled]: t,
|
29
|
+
[e[n]]: !t
|
30
|
+
}, m = y(l, e["short-reply"], x);
|
31
|
+
return /* @__PURE__ */ d(
|
32
|
+
"button",
|
33
|
+
{
|
34
|
+
type: _,
|
35
|
+
disabled: t,
|
36
|
+
ref: i,
|
37
|
+
className: m,
|
38
|
+
...h,
|
39
|
+
children: [
|
40
|
+
s && /* @__PURE__ */ a(o, { iconName: s }),
|
41
|
+
c,
|
42
|
+
r && /* @__PURE__ */ a(o, { iconName: r })
|
43
|
+
]
|
44
|
+
}
|
45
|
+
);
|
46
|
+
}
|
47
|
+
);
|
48
|
+
M.displayName = "MessageShortReply";
|
49
|
+
export {
|
50
|
+
M as MessageShortReply
|
51
|
+
};
|
@@ -1,38 +1,38 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import { forwardRef as
|
4
|
-
import { imageTypes as
|
1
|
+
import { jsxs as h, jsx as p, Fragment as V } from "react/jsx-runtime";
|
2
|
+
import { c as j } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as B, useState as D, useEffect as T, useMemo as _ } from "react";
|
4
|
+
import { imageTypes as y } from "./constants.js";
|
5
5
|
import "../Button/Button.js";
|
6
|
-
import { EButtonVariantDefault as
|
7
|
-
import { ListFiles as
|
8
|
-
import { ListPhotos as
|
9
|
-
import { Uploader as
|
6
|
+
import { EButtonVariantDefault as C } from "../Button/constants.js";
|
7
|
+
import { ListFiles as E } from "../ListFiles/ListFiles.js";
|
8
|
+
import { ListPhotos as M } from "../ListPhotos/ListPhotos.js";
|
9
|
+
import { Uploader as O } from "../Uploader/Uploader.js";
|
10
10
|
import '../../assets/UploaderPhotos.css';const g = {
|
11
11
|
"upload-file-wrapper": "_upload-file-wrapper_1a115_2"
|
12
|
-
}, f = (i) => "file" in i && i.file instanceof File ?
|
12
|
+
}, f = (i) => "file" in i && i.file instanceof File ? y.includes(i.file.type) : "type" in i && typeof i.type == "string" ? y.includes(i.type) : !1, W = B(
|
13
13
|
(i, v) => {
|
14
14
|
const {
|
15
15
|
type: s,
|
16
16
|
filesType: x,
|
17
17
|
arrayName: F,
|
18
18
|
maxSize: U,
|
19
|
-
onChange:
|
20
|
-
value:
|
21
|
-
maxFiles:
|
19
|
+
onChange: a,
|
20
|
+
value: r,
|
21
|
+
maxFiles: u,
|
22
22
|
titleUploader: b,
|
23
23
|
buttonText: w = "Выберите файлы",
|
24
|
-
showOnlyUploadButton:
|
25
|
-
uploadButtonVariant: z =
|
24
|
+
showOnlyUploadButton: d = !1,
|
25
|
+
uploadButtonVariant: z = C.SecondaryAsphalt,
|
26
26
|
buttonSize: I = "m",
|
27
27
|
buttonClassName: L
|
28
|
-
} = i, [l, n] =
|
29
|
-
|
30
|
-
),
|
31
|
-
|
32
|
-
|
33
|
-
}, [
|
28
|
+
} = i, [l, n] = D(
|
29
|
+
r || []
|
30
|
+
), m = l.length >= u;
|
31
|
+
T(() => {
|
32
|
+
r && n(r);
|
33
|
+
}, [r]);
|
34
34
|
const N = (t) => {
|
35
|
-
const
|
35
|
+
const o = t.value.map((e) => f(e.file) ? {
|
36
36
|
id: e.id,
|
37
37
|
url: URL.createObjectURL(e.file),
|
38
38
|
type: e.file.type,
|
@@ -45,49 +45,50 @@ import '../../assets/UploaderPhotos.css';const g = {
|
|
45
45
|
name: e.file.name,
|
46
46
|
type: e.file.type
|
47
47
|
});
|
48
|
-
n((e) => [...e, ...
|
48
|
+
n((e) => [...e, ...o]), a == null || a({ type: "add", data: t.value });
|
49
49
|
}, c = (t) => {
|
50
|
-
n((
|
50
|
+
n((o) => o.filter((e) => e.id !== t)), a == null || a({ type: "delete", data: t });
|
51
51
|
}, { photos: R, files: S } = _(() => {
|
52
|
-
const t = () => l.filter((e) => !f(e)),
|
53
|
-
return s === "all" ? { files: t(), photos:
|
52
|
+
const t = () => l.filter((e) => !f(e)), o = () => l.filter(f);
|
53
|
+
return s === "all" ? { files: t(), photos: o() } : s === "files" ? { photos: [], files: t() } : s === "photos" ? { files: [], photos: o() } : { files: [], photos: [] };
|
54
54
|
}, [l, s]);
|
55
|
-
return /* @__PURE__ */
|
55
|
+
return /* @__PURE__ */ h(
|
56
56
|
"div",
|
57
57
|
{
|
58
|
-
|
58
|
+
"data-testid": "universal-uploader",
|
59
|
+
className: j(
|
59
60
|
g["upload-file-wrapper"],
|
60
|
-
|
61
|
+
m && g.disabled
|
61
62
|
),
|
62
63
|
children: [
|
63
64
|
/* @__PURE__ */ p(
|
64
|
-
|
65
|
+
O,
|
65
66
|
{
|
66
67
|
filesType: x,
|
67
68
|
arrayName: F,
|
68
69
|
maxSize: U,
|
69
70
|
onChangeValue: N,
|
70
71
|
ref: v,
|
71
|
-
maxFiles:
|
72
|
-
isDisabled:
|
72
|
+
maxFiles: u,
|
73
|
+
isDisabled: m,
|
73
74
|
titleUploader: b,
|
74
|
-
showOnlyUploadButton:
|
75
|
+
showOnlyUploadButton: d,
|
75
76
|
buttonText: w,
|
76
77
|
uploadButtonVariant: z,
|
77
78
|
buttonSize: I,
|
78
79
|
buttonClassName: L
|
79
80
|
}
|
80
81
|
),
|
81
|
-
!
|
82
|
+
!d && /* @__PURE__ */ h(V, { children: [
|
82
83
|
(s === "files" || s === "all") && /* @__PURE__ */ p(
|
83
|
-
|
84
|
+
E,
|
84
85
|
{
|
85
86
|
value: S,
|
86
87
|
onChange: (t) => c(t.deleteId)
|
87
88
|
}
|
88
89
|
),
|
89
90
|
(s === "photos" || s === "all") && /* @__PURE__ */ p(
|
90
|
-
|
91
|
+
M,
|
91
92
|
{
|
92
93
|
value: R,
|
93
94
|
onChange: (t) => c(t.deleteId)
|
@@ -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';
|
package/dist/components/index.js
CHANGED
@@ -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
|
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
|
8
|
-
import { InputPhoneNumber as
|
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
|
11
|
-
import { RadioGroup as
|
12
|
-
import { DatePicker as
|
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
|
15
|
-
import { AppImage as
|
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
|
33
|
-
import { TabTrail as
|
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
|
37
|
-
import { useToast as
|
38
|
-
import { EToastPosition as
|
39
|
-
import { UploaderPhotos as
|
40
|
-
import { UploaderFiles as
|
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
|
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
|
58
|
-
import { SkeletonText as
|
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
|
61
|
-
import { Avatar as
|
62
|
-
import { EAvatarSize as
|
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
|
65
|
-
import { ListFiles as
|
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
|
-
|
71
|
-
|
72
|
+
ho as AccordionItem,
|
73
|
+
Lr as Avatar,
|
72
74
|
e as Button,
|
73
75
|
mo as CheckboxMimir,
|
74
76
|
Yo as Chip,
|
75
|
-
|
77
|
+
w as DatePicker,
|
76
78
|
q as Drawer,
|
77
79
|
Io as EAccordionSize,
|
78
|
-
|
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
|
-
|
91
|
+
sr as EGosZnakSize,
|
90
92
|
lr as EGosZnakType,
|
91
93
|
xr as EInputRangeSliderBorderState,
|
92
94
|
fr as EInputRangeSliderPositions,
|
93
|
-
|
95
|
+
s as EInputSize,
|
94
96
|
l as EInputStatus,
|
95
|
-
|
97
|
+
u as EInputVariant,
|
96
98
|
Tr as ELabelPositions,
|
97
99
|
qo as ELinkSize,
|
98
100
|
Ho as ELinkVariant,
|
99
|
-
|
100
|
-
|
101
|
+
v as EMergedButtonVariantRound,
|
102
|
+
Jr as EMessageShortReplyVariant,
|
103
|
+
vr as EMultiSelectSearchSize,
|
101
104
|
Wo as ENotificationBadgeSize,
|
102
105
|
ao as ESelectSearchSize,
|
103
|
-
|
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
|
-
|
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
|
-
|
118
|
+
F as Image,
|
116
119
|
S as Input,
|
117
|
-
|
118
|
-
|
120
|
+
h as InputPassword,
|
121
|
+
k as InputPhoneNumber,
|
119
122
|
ir as InputRangeSlider,
|
120
123
|
Oo as Link,
|
121
|
-
|
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
|
-
|
131
|
+
M as OtpInput,
|
128
132
|
Ao as Pagination,
|
129
|
-
|
133
|
+
L as RadioGroup,
|
130
134
|
to as SelectSearch,
|
131
|
-
|
135
|
+
Vr as SkeletonBrick,
|
132
136
|
Pr as SkeletonCircle,
|
133
|
-
|
137
|
+
zr as SkeletonText,
|
134
138
|
O as Slider,
|
135
139
|
Q as Steps,
|
136
140
|
dr as Switcher,
|
137
|
-
|
141
|
+
ko as TabTrail,
|
138
142
|
fo as Tag,
|
139
143
|
c as TextArea,
|
140
144
|
lo as Timer,
|
141
|
-
|
145
|
+
Ro as ToastProvider,
|
142
146
|
gr as TwinSwitcher,
|
143
147
|
er as UniversalUploader,
|
144
148
|
No as Uploader,
|
145
|
-
|
146
|
-
|
149
|
+
Fo as UploaderFiles,
|
150
|
+
vo as UploaderPhotos,
|
147
151
|
$ as Vote,
|
148
152
|
B as getMaskedInputPhoneValue,
|
149
153
|
P as getUnmaskedInputValue,
|
150
|
-
|
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
|
3
|
-
import { I as
|
4
|
-
import { EInputSize as
|
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
|
8
|
-
import { InputPhoneNumber as
|
9
|
-
import { getMaskedInputPhoneValue as
|
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
|
12
|
-
import { DatePicker as
|
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
|
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
|
29
|
-
import { Timer as
|
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
|
33
|
-
import { TabTrail as
|
34
|
-
import { ETabTrailSize as
|
35
|
-
import { Pagination as
|
36
|
-
import { ToastProvider as
|
37
|
-
import { useToast as
|
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
|
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
|
53
|
-
import { EGosZnakSize as
|
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
|
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
|
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
|
62
|
-
import { EAvatarSize as
|
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 {
|
69
|
-
import {
|
70
|
-
import {
|
71
|
-
import {
|
72
|
-
import {
|
73
|
-
import {
|
74
|
-
import {
|
75
|
-
import {
|
76
|
-
import {
|
77
|
-
import {
|
78
|
-
import {
|
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
|
-
|
82
|
-
|
83
|
+
ho as AccordionItem,
|
84
|
+
Ar as Avatar,
|
83
85
|
e as Button,
|
84
86
|
io as CheckboxMimir,
|
85
87
|
Yo as Chip,
|
86
|
-
|
88
|
+
L as DatePicker,
|
87
89
|
j as Drawer,
|
88
90
|
Io as EAccordionSize,
|
89
|
-
|
91
|
+
Lr as EAvatarSize,
|
90
92
|
p as EButtonForm,
|
91
|
-
|
92
|
-
|
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
|
-
|
101
|
-
|
102
|
+
Sr as EGosZnakSize,
|
103
|
+
Er as EGosZnakType,
|
102
104
|
fr as EInputRangeSliderBorderState,
|
103
105
|
xr as EInputRangeSliderPositions,
|
104
|
-
|
105
|
-
|
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
|
-
|
112
|
+
Xr as EMediaQuery,
|
111
113
|
w as EMergedButtonVariantRound,
|
112
|
-
|
114
|
+
Hr as EMessageShortReplyVariant,
|
115
|
+
Yr as EMinMediaQuery,
|
113
116
|
wr as EMultiSelectSearchSize,
|
114
117
|
Wo as ENotificationBadgeSize,
|
115
|
-
|
118
|
+
ao as ESelectSearchSize,
|
116
119
|
yr as ESkeletonVariant,
|
117
120
|
X as EStepColor,
|
118
121
|
Y as EStepsSize,
|
119
|
-
|
120
|
-
|
121
|
-
|
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
|
-
|
128
|
-
|
130
|
+
sr as GosZnak,
|
131
|
+
se as Icon,
|
129
132
|
F as Image,
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|
-
|
143
|
-
|
146
|
+
Po as Pagination,
|
147
|
+
A as RadioGroup,
|
144
148
|
to as SelectSearch,
|
145
|
-
|
146
|
-
|
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
|
-
|
155
|
+
zo as TabTrail,
|
152
156
|
xo as Tag,
|
153
157
|
c as TextArea,
|
154
|
-
|
155
|
-
|
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
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
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
|
};
|