mimir-ui-kit 1.49.1 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/MiniButton.css +1 -0
- package/dist/assets/TextArea2.css +1 -0
- package/dist/components/MiniButton/MiniButton.d.ts +55 -0
- package/dist/components/MiniButton/MiniButton.js +44 -0
- package/dist/components/MiniButton/constants.d.ts +9 -0
- package/dist/components/MiniButton/constants.js +5 -0
- package/dist/components/MiniButton/index.d.ts +3 -0
- package/dist/components/MiniButton/index.js +7 -0
- package/dist/components/TextAreaV2/TextArea.d.ts +3 -0
- package/dist/components/TextAreaV2/TextArea.js +255 -0
- package/dist/components/TextAreaV2/constants.d.ts +16 -0
- package/dist/components/TextAreaV2/constants.js +17 -0
- package/dist/components/TextAreaV2/index.d.ts +3 -0
- package/dist/components/TextAreaV2/index.js +8 -0
- package/dist/components/TextAreaV2/types.d.ts +88 -0
- package/dist/components/TextAreaV2/utils.d.ts +10 -0
- package/dist/components/TextAreaV2/utils.js +36 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +79 -72
- package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +10 -13
- package/dist/index.js +110 -103
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._mini-button_1umad_2{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--asphalt-normal);background:var(--mini-button-background);border-radius:var(--mimir-control-radius-xs)}._mini-button_1umad_2 svg{color:currentcolor;fill:currentcolor}._mini-button_1umad_2 svg path{color:currentcolor;fill:currentcolor}._mini-button_1umad_2._gray_1umad_19{--mini-button-background: var(--gray-normal)}._mini-button_1umad_2._transparent_1umad_22{--mini-button-background: transparent}._mini-button_1umad_2._white_1umad_25{--mini-button-background: var(--white)}._mini-button_1umad_2:hover{color:var(--counter-text);-webkit-box-shadow:none;box-shadow:none}._mini-button_1umad_2:active{color:var(--asphalt-active);-webkit-box-shadow:none;box-shadow:none}._mini-button_1umad_2:disabled{color:var(--disabled);cursor:not-allowed}._mini-button_1umad_2:focus-visible{-webkit-box-shadow:var(--mimir-box-shadow-default);box-shadow:var(--mimir-box-shadow-default)}._mini-button_1umad_2._l_1umad_43{width:var(--button-height-xs);height:var(--button-height-xs)}._mini-button_1umad_2._m-s_1umad_47{width:var(--button-height-ms);height:var(--button-height-ms)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._textarea-wrapper_1sytk_2{--textarea-border-radius-l: 8px;--textarea-border-radius-m: 6px;--textarea-border-radius-s: 6px;--textarea-required-mark-size: 8px;--addon-left-space: 0px;--clear-button-space: 0px;--required-mark-space-right: 0px;--base-space: calc(var(--mimir-space-m) * 2);--base-right-space: 0px;position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:100%;padding:var(--textarea-space);background-color:var(--textarea-bg-color);border-bottom:1px solid transparent;border-radius:var(--textarea-border-radius);cursor:text;-webkit-transition:all .3s ease;transition:all .3s ease}._textarea-wrapper_1sytk_2:not(:last-child){margin-bottom:var(--mimir-space-2xs)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;width:auto;max-width:calc(100% - var(--textarea-right-space));height:auto;min-height:var(--textarea-line-height);margin-bottom:0;overflow:auto;font-size:var(--textarea-font-size);line-height:var(--textarea-line-height);white-space:pre-wrap;outline:none;-webkit-transition:all .3s ease;transition:all .3s ease}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2:first-letter,._textarea-wrapper_1sytk_2 ._textarea_1sytk_2:first-line{line-height:var(--textarea-line-height)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2::-webkit-scrollbar{width:8px;height:8px}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2::-webkit-scrollbar-track{background:var(--white);border-radius:var(--mimir-control-radius)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2::-webkit-scrollbar-thumb{background:var(--black-80);border:2px solid var(--white);border-radius:var(--mimir-control-radius)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2::-webkit-scrollbar{width:4px;height:4px}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2::-webkit-scrollbar-track{border-radius:var(--mimir-control-radius-xs2)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2::-webkit-scrollbar-thumb{border:1px solid var(--white);border-radius:var(--mimir-control-radius-xs2)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2._disabled_1sytk_68{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;caret-color:transparent}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2._with-value_1sytk_73[data-placeholder]:hover:before,._textarea-wrapper_1sytk_2 ._textarea_1sytk_2:focus[data-placeholder]:hover:before{color:var(--black-60)}._textarea-wrapper_1sytk_2 ._textarea_1sytk_2[data-placeholder]:before{position:absolute;top:var(--textarea-placeholder-top);color:var(--textarea-placeholder-color);font-size:var(--textarea-placeholder-font-size);line-height:var(--textarea-placeholder-line-height);white-space:pre-wrap;-webkit-transform:translate(0%,-50%);transform:translateY(-50%);opacity:1;content:attr(data-placeholder);pointer-events:none}._textarea-wrapper_1sytk_2:hover{background-color:var(--textarea-bg-hover-color)}._textarea-wrapper_1sytk_2:hover ._textarea_1sytk_2[data-placeholder]:before{color:var(--textarea-placeholder-hover-color)}._textarea-wrapper_1sytk_2:focus-within{background-color:var(--textarea-bg-active-color);border-bottom:1px solid var(--textarea-bottom-active-color, var(--citrine-100))}._textarea-wrapper_1sytk_2._disabled_1sytk_68{--input-cursor: not-allowed;--label-color: var(--light-text);color:var(--light-text);background-color:var(--black-20);border-bottom:1px solid transparent;cursor:not-allowed;cursor:var(--input-cursor);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}._textarea-wrapper_1sytk_2 svg{color:currentcolor;fill:currentcolor}._textarea-wrapper_1sytk_2 ._clear_1sytk_112[data-minibutton]{color:var(--label-color)}._textarea-wrapper_1sytk_2._has-left-addon_1sytk_115{--addon-left-space: calc(var(--mimir-space-m) * 1.5);--base-right-space: var(--base-space)}._textarea-wrapper_1sytk_2._has-clear_1sytk_119{--clear-button-space: calc(var(--mimir-space-m) * 1.5);--base-right-space: var(--base-space)}._textarea-wrapper_1sytk_2._is-required_1sytk_123{--required-mark-space-right: calc(var(--mimir-space-m) * 1.5);--base-right-space: var(--base-space)}._label_1sytk_128{--textarea-required-mark-size: 6px;--textarea-required-mark-space: 0;position:absolute;top:var(--textarea-placeholder-active-top);left:var(--textarea-placeholder-active-left);display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--mimir-space-2xs);-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--textarea-placeholder-color);font-size:var(--textarea-placeholder-active-font-size);line-height:var(--textarea-placeholder-active-line-height);white-space:pre-wrap;-webkit-transform:translate(0%,-50%);transform:translateY(-50%);opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}._label_1sytk_128._is-focused_1sytk_148{opacity:1}._textarea-right-addon_1sytk_152,._textarea-left-addon_1sytk_153{color:var(--textarea-left-addon-color)}._textarea-right-addon_1sytk_152 svg,._textarea-left-addon_1sytk_153 svg{color:var(--textarea-left-addon-color)}._textarea-right-addon_1sytk_152 svg path,._textarea-left-addon_1sytk_153 svg path{fill:var(--textarea-left-addon-color)}._textarea-left-addon_1sytk_153{margin-right:var(--textarea-left-addon-space)}._required-mark_1sytk_169{display:block;-webkit-box-flex:0;-ms-flex:0 0 var(--textarea-required-mark-size);flex:0 0 var(--textarea-required-mark-size);width:var(--textarea-required-mark-size);height:var(--textarea-required-mark-size);margin:var(--textarea-required-mark-space);background-color:var(--citrine-normal);border-radius:50%}._addon-icon_1sytk_179{width:var(--icon-size);height:var(--icon-size)}._message_1sytk_184{font-size:var(--mimir-size-text-s);line-height:var(--mimir-line-height-text-xss1)}._message_1sytk_184._error_1sytk_188{color:var(--error-normal)}._right-addons-content_1sytk_192{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:auto}._right-addons-content_1sytk_192:empty{margin-left:0}._default-gray_1sytk_201{--textarea-bg-color: var(--black-5);--textarea-bg-hover-color: var(--black-10);--textarea-bg-active-color: var(--black-5);--textarea-placeholder-color: var(--black-60);--textarea-placeholder-hover-color: var(--black-100)}._default-white_1sytk_210{--textarea-bg-color: var(--white);--textarea-bg-hover-color: var(--black-10);-textarea-bg-active-color:var(--white);--textarea-placeholder-color: var(--black-60);--textarea-placeholder-hover-color: var(--black-100)}._default-gray_1sytk_201._success_1sytk_219,._default-white_1sytk_210._success_1sytk_219{--textarea-bg-color: var(--success-bg-active);--textarea-bg-hover-color: var(--success-bg-hover);--textarea-bg-active-color: var(--success-bg-active);--textarea-bottom-active-color: var(--success-normal)}._default-gray_1sytk_201._alarm_1sytk_226,._default-white_1sytk_210._alarm_1sytk_226{--textarea-bg-color: var(--alarm-bg-active);--textarea-bg-hover-color: var(--alarm-bg-hover);--textarea-bg-active-color: var(--alarm-bg-active);--textarea-bottom-active-color: var(--alarm-normal)}._default-gray_1sytk_201._error_1sytk_188,._default-white_1sytk_210._error_1sytk_188{--textarea-bg-color: var(--error-bg-active);--textarea-bg-hover-color: var(--error-bg-hover);--textarea-bg-active-color: var(--error-bg-active);--textarea-bottom-active-color: var(--error-normal)}._s_1sytk_219{--textarea-border-radius: var(--textarea-border-radius-s);--textarea-space: var(--mimir-space-l) var(--mimir-space-m) var(--mimir-space-2s) var(--mimir-space-m);--textarea-font-size: var(--mimir-size-text-m);--textarea-line-height: var(--mimir-line-height-text-xl);--textarea-right-space: calc( var(--addon-left-space) + var(--clear-button-space) + var(--required-mark-space-right) );--textarea-placeholder-active-left: var(--mimir-space-m);--textarea-placeholder-top: var(--mimir-space-xs);--textarea-placeholder-active-top: var(--mimir-space-2s);--textarea-placeholder-font-size: var(--mimir-size-text-m);--textarea-placeholder-line-height: var(--mimir-line-height-text-xxs);--textarea-placeholder-active-font-size: var(--mimir-size-text-xs);--textarea-placeholder-active-line-height: var(--mimir-line-height-text-s);--textarea-required-mark-space: var(--mimir-space-2xs);--textarea-required-mark-size: 5px;--textarea-left-addon-space: var(--mimir-space-2xs)}._m_1sytk_184{--textarea-border-radius: var(--textarea-border-radius-m);--textarea-space: var(--mimir-space-l) var(--mimir-space-m) var(--mimir-space-2s) var(--mimir-space-m);--textarea-font-size: var(--mimir-size-text-l);--textarea-line-height: var(--mimir-line-height-text-s1);--textarea-right-space: calc( var(--addon-left-space) + var(--clear-button-space) + var(--required-mark-space-right) );--textarea-placeholder-active-left: var(--mimir-space-m);--textarea-placeholder-top: var(--mimir-space-xs);--textarea-placeholder-active-top: var(--mimir-space-2s);--textarea-placeholder-font-size: var(--mimir-size-text-l);--textarea-placeholder-line-height: var(--mimir-line-height-text-s1);--textarea-placeholder-active-font-size: var(--mimir-size-text-s);--textarea-placeholder-active-line-height: var(--mimir-line-height-text-2xs);--textarea-required-mark-space: var(--mimir-space-2xs);--textarea-required-mark-size: 5px;--textarea-left-addon-space: var(--mimir-space-2xs)}._l_1sytk_128{--textarea-border-radius: var(--textarea-border-radius-l);--textarea-space: var(--mimir-space-xl) var(--mimir-space-m) var(--mimir-space-2m) var(--mimir-space-m);--textarea-font-size: var(--mimir-size-text-xl);--textarea-line-height: var(--mimir-line-height-text-l);--textarea-right-space: calc( var(--addon-left-space) + var(--clear-button-space) + var(--required-mark-space-right) );--textarea-placeholder-active-left: var(--mimir-space-m);--textarea-placeholder-top: var(--mimir-space-xs);--textarea-placeholder-active-top: var(--mimir-space-m);--textarea-placeholder-font-size: var(--mimir-size-text-xl);--textarea-placeholder-active-font-size: var(--mimir-size-text-s);--textarea-placeholder-line-height: var(--mimir-line-height-text-l);--textarea-placeholder-active-line-height: var(--mimir-line-height-text-2xs);--textarea-required-mark-space: var(--mimir-space-xs);--textarea-left-addon-space: var(--mimir-space-xs)}._disabled_1sytk_68{--textarea-placeholder-color: var(--light-text);--textarea-left-addon-color: var(--light-text)}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TIcon } from '../../icons';
|
|
3
|
+
|
|
4
|
+
export type TMiniButton = {
|
|
5
|
+
/**
|
|
6
|
+
* Класс, применяемый к корневому элементу кнопки.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Выключен ли miniButton или нет
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Вариант кнопки загрузки файла
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'gray' | 'white' | 'transparent';
|
|
17
|
+
/**
|
|
18
|
+
* Размер кнопки загрузки файла
|
|
19
|
+
*/
|
|
20
|
+
size?: 'l' | 'm-s';
|
|
21
|
+
/**
|
|
22
|
+
* Класс для кнопки
|
|
23
|
+
*/
|
|
24
|
+
miniButtonClassName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Название иконки
|
|
27
|
+
*/
|
|
28
|
+
iconName: TIcon;
|
|
29
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
30
|
+
export declare const MiniButton: React.ForwardRefExoticComponent<{
|
|
31
|
+
/**
|
|
32
|
+
* Класс, применяемый к корневому элементу кнопки.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Выключен ли miniButton или нет
|
|
37
|
+
*/
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Вариант кнопки загрузки файла
|
|
41
|
+
*/
|
|
42
|
+
variant?: "gray" | "white" | "transparent";
|
|
43
|
+
/**
|
|
44
|
+
* Размер кнопки загрузки файла
|
|
45
|
+
*/
|
|
46
|
+
size?: "l" | "m-s";
|
|
47
|
+
/**
|
|
48
|
+
* Класс для кнопки
|
|
49
|
+
*/
|
|
50
|
+
miniButtonClassName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Название иконки
|
|
53
|
+
*/
|
|
54
|
+
iconName: TIcon;
|
|
55
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../index-DIxK0V-G.js";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { EMiniButtonSize as a, EMiniButtonVariant as d } from "./constants.js";
|
|
5
|
+
import { Icon as f } from "../../icons/Icon.js";
|
|
6
|
+
import '../../assets/MiniButton.css';const b = "_gray_1umad_19", y = "_transparent_1umad_22", N = "_white_1umad_25", h = "_l_1umad_43", t = {
|
|
7
|
+
"mini-button": "_mini-button_1umad_2",
|
|
8
|
+
gray: b,
|
|
9
|
+
transparent: y,
|
|
10
|
+
white: N,
|
|
11
|
+
l: h,
|
|
12
|
+
"m-s": "_m-s_1umad_47"
|
|
13
|
+
}, M = p(
|
|
14
|
+
(o, s) => {
|
|
15
|
+
const {
|
|
16
|
+
disabled: i = !1,
|
|
17
|
+
size: r = a.MS,
|
|
18
|
+
variant: m = d.Gray,
|
|
19
|
+
className: e,
|
|
20
|
+
iconName: _,
|
|
21
|
+
...u
|
|
22
|
+
} = o, c = l(
|
|
23
|
+
t["mini-button"],
|
|
24
|
+
r === a.L ? t.l : t["m-s"],
|
|
25
|
+
t[m],
|
|
26
|
+
e
|
|
27
|
+
);
|
|
28
|
+
return /* @__PURE__ */ n(
|
|
29
|
+
"button",
|
|
30
|
+
{
|
|
31
|
+
type: "button",
|
|
32
|
+
ref: s,
|
|
33
|
+
...u,
|
|
34
|
+
disabled: i,
|
|
35
|
+
className: c,
|
|
36
|
+
children: /* @__PURE__ */ n(f, { iconName: _ })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
M.displayName = "MiniButton";
|
|
42
|
+
export {
|
|
43
|
+
M as MiniButton
|
|
44
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { jsxs as k, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../index-DIxK0V-G.js";
|
|
3
|
+
import { memo as L, forwardRef as R, useId as b, useRef as I, useState as q, useEffect as tt, useCallback as x } from "react";
|
|
4
|
+
import { ETextAreaSize as g, ETextAreaVariant as et } from "./constants.js";
|
|
5
|
+
import { getCurrentText as D, setEditableText as V, placeCaretAtEnd as B, clampByMaxLength as rt, getMaxHeightStyle as at } from "./utils.js";
|
|
6
|
+
import { useMergeRefs as nt } from "../../hooks/useMergeRefs/useMergeRefs.js";
|
|
7
|
+
import { Icon as st } from "../../icons/Icon.js";
|
|
8
|
+
import { MiniButton as ot } from "../MiniButton/MiniButton.js";
|
|
9
|
+
import '../../assets/TextArea2.css';const ct = "_textarea_1sytk_2", lt = "_disabled_1sytk_68", ut = "_clear_1sytk_112", it = "_label_1sytk_128", dt = "_message_1sytk_184", _t = "_error_1sytk_188", ft = "_success_1sytk_219", mt = "_alarm_1sytk_226", pt = "_s_1sytk_219", xt = "_m_1sytk_184", yt = "_l_1sytk_128", e = {
|
|
10
|
+
"textarea-wrapper": "_textarea-wrapper_1sytk_2",
|
|
11
|
+
textarea: ct,
|
|
12
|
+
disabled: lt,
|
|
13
|
+
"with-value": "_with-value_1sytk_73",
|
|
14
|
+
clear: ut,
|
|
15
|
+
"has-left-addon": "_has-left-addon_1sytk_115",
|
|
16
|
+
"has-clear": "_has-clear_1sytk_119",
|
|
17
|
+
"is-required": "_is-required_1sytk_123",
|
|
18
|
+
label: it,
|
|
19
|
+
"is-focused": "_is-focused_1sytk_148",
|
|
20
|
+
"textarea-right-addon": "_textarea-right-addon_1sytk_152",
|
|
21
|
+
"textarea-left-addon": "_textarea-left-addon_1sytk_153",
|
|
22
|
+
"required-mark": "_required-mark_1sytk_169",
|
|
23
|
+
"addon-icon": "_addon-icon_1sytk_179",
|
|
24
|
+
message: dt,
|
|
25
|
+
error: _t,
|
|
26
|
+
"right-addons-content": "_right-addons-content_1sytk_192",
|
|
27
|
+
"default-gray": "_default-gray_1sytk_201",
|
|
28
|
+
"default-white": "_default-white_1sytk_210",
|
|
29
|
+
success: ft,
|
|
30
|
+
alarm: mt,
|
|
31
|
+
s: pt,
|
|
32
|
+
m: xt,
|
|
33
|
+
l: yt
|
|
34
|
+
}, kt = (i, c) => {
|
|
35
|
+
if (!i)
|
|
36
|
+
return null;
|
|
37
|
+
switch (i.addonType) {
|
|
38
|
+
case "icon": {
|
|
39
|
+
const d = c === g.L, h = c === g.M, r = c === g.S;
|
|
40
|
+
return /* @__PURE__ */ u(
|
|
41
|
+
st,
|
|
42
|
+
{
|
|
43
|
+
style: {
|
|
44
|
+
"--icon-size": f({
|
|
45
|
+
"16px": h || r,
|
|
46
|
+
"24px": d
|
|
47
|
+
})
|
|
48
|
+
},
|
|
49
|
+
className: e["addon-icon"],
|
|
50
|
+
iconName: i.addonContent
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
case "text":
|
|
55
|
+
return i.addonContent;
|
|
56
|
+
default:
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}, gt = L(
|
|
60
|
+
R(
|
|
61
|
+
({
|
|
62
|
+
className: i,
|
|
63
|
+
label: c,
|
|
64
|
+
required: d,
|
|
65
|
+
leftAddon: h,
|
|
66
|
+
disabled: r,
|
|
67
|
+
autofocus: F,
|
|
68
|
+
withClearButton: C,
|
|
69
|
+
value: S,
|
|
70
|
+
onChange: y,
|
|
71
|
+
maxLength: _,
|
|
72
|
+
maxRows: $,
|
|
73
|
+
message: A,
|
|
74
|
+
size: m = g.M,
|
|
75
|
+
status: M,
|
|
76
|
+
variant: j = et.DefaultGray,
|
|
77
|
+
containerClassName: H,
|
|
78
|
+
wrapperClassName: K
|
|
79
|
+
}, P) => {
|
|
80
|
+
const w = b(), N = kt(h, m), a = I(null), v = I(!1), W = nt(P, a), [p, E] = q(
|
|
81
|
+
F
|
|
82
|
+
), [G, U] = q(""), T = S !== void 0, n = T ? S ?? "" : G, z = at(m, $);
|
|
83
|
+
tt(() => {
|
|
84
|
+
const t = a.current;
|
|
85
|
+
if (t) {
|
|
86
|
+
if (v.current) {
|
|
87
|
+
v.current = !1;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
D(t) !== n && (V(n, t), B(t));
|
|
91
|
+
}
|
|
92
|
+
}, [n]);
|
|
93
|
+
const l = x(
|
|
94
|
+
(t, o = !1) => {
|
|
95
|
+
const s = rt(t, _);
|
|
96
|
+
T ? y == null || y(s) : U(s), o && (v.current = !0, V(s, a == null ? void 0 : a.current), B(a == null ? void 0 : a.current));
|
|
97
|
+
},
|
|
98
|
+
[T, y, _]
|
|
99
|
+
), J = x(() => {
|
|
100
|
+
if (r) return;
|
|
101
|
+
const t = D(a == null ? void 0 : a.current);
|
|
102
|
+
typeof _ == "number" && _ >= 0 && t.length > _ ? l(t, !0) : t.length === 0 ? l("", !0) : l(t);
|
|
103
|
+
}, [l, _, r]), O = x(
|
|
104
|
+
(t) => {
|
|
105
|
+
if (r)
|
|
106
|
+
return;
|
|
107
|
+
t.preventDefault();
|
|
108
|
+
const o = (t.clipboardData.getData("text/plain") || "").replace(/\r\n|\r/g, `
|
|
109
|
+
`), s = window.getSelection();
|
|
110
|
+
s != null && s.rangeCount && (s.deleteFromDocument(), s.getRangeAt(0).insertNode(document.createTextNode(o)), s.collapseToEnd());
|
|
111
|
+
const Z = D(a == null ? void 0 : a.current);
|
|
112
|
+
l(Z, !0);
|
|
113
|
+
},
|
|
114
|
+
[l, r]
|
|
115
|
+
), Q = x(
|
|
116
|
+
(t) => {
|
|
117
|
+
r && t.preventDefault();
|
|
118
|
+
},
|
|
119
|
+
[r]
|
|
120
|
+
), X = x(() => {
|
|
121
|
+
var t;
|
|
122
|
+
l("", !0), (t = a.current) == null || t.focus();
|
|
123
|
+
}, [l]), Y = f(
|
|
124
|
+
e["textarea-wrapper"],
|
|
125
|
+
e[j],
|
|
126
|
+
e[m],
|
|
127
|
+
e[M ?? ""],
|
|
128
|
+
d && e.required,
|
|
129
|
+
r && e.disabled,
|
|
130
|
+
!!n && e["with-value"],
|
|
131
|
+
N && e["has-left-addon"],
|
|
132
|
+
C && !!n && e["has-clear"],
|
|
133
|
+
d && !p && e["is-required"],
|
|
134
|
+
K
|
|
135
|
+
);
|
|
136
|
+
return /* @__PURE__ */ k(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
id: `textarea-container-${w}`,
|
|
140
|
+
className: f(e["textarea-container"], H),
|
|
141
|
+
children: [
|
|
142
|
+
/* @__PURE__ */ k(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
"data-testid": "textarea-wrapper",
|
|
146
|
+
id: `textarea-wrapper-${w}`,
|
|
147
|
+
tabIndex: r ? -1 : 0,
|
|
148
|
+
className: Y,
|
|
149
|
+
onMouseDown: (t) => {
|
|
150
|
+
var o;
|
|
151
|
+
r || t.target === t.currentTarget && (t.preventDefault(), (o = a.current) == null || o.focus());
|
|
152
|
+
},
|
|
153
|
+
onFocusCapture: (t) => {
|
|
154
|
+
var o;
|
|
155
|
+
r || (t.target === t.currentTarget && ((o = a.current) == null || o.focus()), t.currentTarget.contains(t.relatedTarget) || E(!0));
|
|
156
|
+
},
|
|
157
|
+
onBlurCapture: (t) => {
|
|
158
|
+
r || t.currentTarget.contains(t.relatedTarget) || E(!1);
|
|
159
|
+
},
|
|
160
|
+
children: [
|
|
161
|
+
N && /* @__PURE__ */ u(
|
|
162
|
+
"div",
|
|
163
|
+
{
|
|
164
|
+
"data-testid": "left-addon",
|
|
165
|
+
className: e["textarea-left-addon"],
|
|
166
|
+
children: N
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
c && /* @__PURE__ */ k(
|
|
170
|
+
"span",
|
|
171
|
+
{
|
|
172
|
+
className: f(e.label, {
|
|
173
|
+
[e["is-focused"]]: !!n || p
|
|
174
|
+
}),
|
|
175
|
+
children: [
|
|
176
|
+
c,
|
|
177
|
+
d && (!!n || p) && /* @__PURE__ */ u(
|
|
178
|
+
"span",
|
|
179
|
+
{
|
|
180
|
+
className: e["required-mark"],
|
|
181
|
+
"data-testid": "required-mark"
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ u(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
id: `textarea-${w}`,
|
|
191
|
+
className: f(
|
|
192
|
+
e.textarea,
|
|
193
|
+
i,
|
|
194
|
+
r && e.disabled,
|
|
195
|
+
{
|
|
196
|
+
[e["with-value"]]: !!n
|
|
197
|
+
}
|
|
198
|
+
),
|
|
199
|
+
role: "textbox",
|
|
200
|
+
"aria-multiline": !0,
|
|
201
|
+
"aria-label": c,
|
|
202
|
+
"aria-disabled": r,
|
|
203
|
+
onInput: J,
|
|
204
|
+
onKeyDown: Q,
|
|
205
|
+
onBeforeInput: (t) => {
|
|
206
|
+
r && t.preventDefault();
|
|
207
|
+
},
|
|
208
|
+
contentEditable: !0,
|
|
209
|
+
suppressContentEditableWarning: !0,
|
|
210
|
+
onPaste: O,
|
|
211
|
+
ref: W,
|
|
212
|
+
style: z,
|
|
213
|
+
tabIndex: -1,
|
|
214
|
+
"data-placeholder": n || p ? void 0 : c
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ k("div", { className: e["right-addons-content"], children: [
|
|
218
|
+
d && !n && !p && /* @__PURE__ */ u(
|
|
219
|
+
"span",
|
|
220
|
+
{
|
|
221
|
+
className: e["required-mark"],
|
|
222
|
+
"data-testid": "required-mark"
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
C && !!n && /* @__PURE__ */ u(
|
|
226
|
+
ot,
|
|
227
|
+
{
|
|
228
|
+
className: e.clear,
|
|
229
|
+
iconName: m === "l" ? "Close16px" : "Close12px",
|
|
230
|
+
size: m === "l" ? "l" : "m-s",
|
|
231
|
+
variant: "transparent",
|
|
232
|
+
disabled: r,
|
|
233
|
+
"data-testid": "clear-button",
|
|
234
|
+
"data-minibutton": !0,
|
|
235
|
+
onMouseDown: (t) => {
|
|
236
|
+
t.preventDefault();
|
|
237
|
+
},
|
|
238
|
+
onClick: X
|
|
239
|
+
}
|
|
240
|
+
)
|
|
241
|
+
] })
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
A && /* @__PURE__ */ u("div", { className: f(e.message, e[M ?? ""]), children: A })
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
);
|
|
252
|
+
gt.displayName = "TextArea";
|
|
253
|
+
export {
|
|
254
|
+
gt as TextArea
|
|
255
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const enum ETextAreaSize {
|
|
2
|
+
S = "s",
|
|
3
|
+
M = "m",
|
|
4
|
+
L = "l"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum ETextAreaStatus {
|
|
7
|
+
Alarm = "alarm",
|
|
8
|
+
Success = "success",
|
|
9
|
+
Error = "error"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ETextAreaVariant {
|
|
12
|
+
DefaultGray = "default-gray",
|
|
13
|
+
DefaultWhite = "default-white"
|
|
14
|
+
}
|
|
15
|
+
export declare const LINE_HEIGHTS_MAP: Record<ETextAreaSize, number>;
|
|
16
|
+
export declare const PADDINGS_MAP: Record<ETextAreaSize, number>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var l = /* @__PURE__ */ ((r) => (r.S = "s", r.M = "m", r.L = "l", r))(l || {}), s = /* @__PURE__ */ ((r) => (r.Alarm = "alarm", r.Success = "success", r.Error = "error", r))(s || {}), u = /* @__PURE__ */ ((r) => (r.DefaultGray = "default-gray", r.DefaultWhite = "default-white", r))(u || {});
|
|
2
|
+
const c = {
|
|
3
|
+
s: 1.5,
|
|
4
|
+
m: 1.2,
|
|
5
|
+
l: 1.4
|
|
6
|
+
}, m = {
|
|
7
|
+
s: 14,
|
|
8
|
+
m: 14,
|
|
9
|
+
l: 18
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
l as ETextAreaSize,
|
|
13
|
+
s as ETextAreaStatus,
|
|
14
|
+
u as ETextAreaVariant,
|
|
15
|
+
c as LINE_HEIGHTS_MAP,
|
|
16
|
+
m as PADDINGS_MAP
|
|
17
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ETextAreaSize, ETextAreaStatus, ETextAreaVariant } from './constants';
|
|
3
|
+
import { TIcon } from '../../icons';
|
|
4
|
+
|
|
5
|
+
type TTextAddon = {
|
|
6
|
+
addonType?: 'text';
|
|
7
|
+
addonContent: string;
|
|
8
|
+
};
|
|
9
|
+
export type TIconAddon = {
|
|
10
|
+
addonType?: 'icon';
|
|
11
|
+
addonContent: TIcon;
|
|
12
|
+
};
|
|
13
|
+
export type TReactNodeAddon = {
|
|
14
|
+
addonType?: 'react-node';
|
|
15
|
+
addonContent: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export type TTextAreaV2Addon = TTextAddon | TIconAddon | TReactNodeAddon;
|
|
18
|
+
export type TProps = {
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный класс.
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дополнительный класс для обертки текстового поля.
|
|
25
|
+
*/
|
|
26
|
+
wrapperClassName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Дополнительный класс для контейнера текстового поля.
|
|
29
|
+
*/
|
|
30
|
+
containerClassName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Текстовое описание поля ввода.
|
|
33
|
+
*/
|
|
34
|
+
label?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Варианты отображения ввода. Может быть 'alert', 'success', 'default', 'default-gray', 'default-white'.
|
|
37
|
+
*/
|
|
38
|
+
variant?: ETextAreaVariant | `${ETextAreaVariant}`;
|
|
39
|
+
/**
|
|
40
|
+
* Статус ввода. Может быть 'alarm', 'success', 'error'.
|
|
41
|
+
*/
|
|
42
|
+
status?: ETextAreaStatus | `${ETextAreaStatus}`;
|
|
43
|
+
/**
|
|
44
|
+
* Размер текстового поля.
|
|
45
|
+
*/
|
|
46
|
+
size?: ETextAreaSize | `${ETextAreaSize}`;
|
|
47
|
+
/**
|
|
48
|
+
* Флаг, опредляющий, что поле ввода обязательно для заполнения.
|
|
49
|
+
*/
|
|
50
|
+
required?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Флаг, опредляющий, что поле ввода недоступно для заполнения и манипуляций.
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Флаг, опредляющий, что при первом рендере будет установлен фокус.
|
|
57
|
+
*/
|
|
58
|
+
autofocus?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Флаг, опредляющий показ кнопки для очистки текстового поля.
|
|
61
|
+
*/
|
|
62
|
+
withClearButton?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Информационное сообщение под текстовым полем.
|
|
65
|
+
*/
|
|
66
|
+
message?: ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* Значение текстового поля (контролируемый режим)
|
|
69
|
+
*/
|
|
70
|
+
value?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Колбэк изменения значения (контролируемый режим)
|
|
73
|
+
*/
|
|
74
|
+
onChange?: (value: string) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Максимальное количество символов
|
|
77
|
+
*/
|
|
78
|
+
maxLength?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Максимальное количество строк (ограничение по высоте)
|
|
81
|
+
*/
|
|
82
|
+
maxRows?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Дополнительный слот слева.
|
|
85
|
+
*/
|
|
86
|
+
leftAddon?: TIconAddon;
|
|
87
|
+
};
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ETextAreaSize } from './constants';
|
|
2
|
+
|
|
3
|
+
export declare const escapeHtml: (str: string) => string;
|
|
4
|
+
export declare const clampByMaxLength: (text: string, maxLength?: number) => string;
|
|
5
|
+
export declare const placeCaretAtEnd: (editableNode?: HTMLDivElement | null) => void;
|
|
6
|
+
export declare const getMaxHeightStyle: (size: ETextAreaSize | `${ETextAreaSize}`, maxRows?: number) => {
|
|
7
|
+
readonly maxHeight: `calc(${number}em + ${number}px)`;
|
|
8
|
+
} | undefined;
|
|
9
|
+
export declare const getCurrentText: (editableNode?: HTMLDivElement | null) => string;
|
|
10
|
+
export declare const setEditableText: (next: string, editableNode?: HTMLDivElement | null) => void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LINE_HEIGHTS_MAP as c, PADDINGS_MAP as l } from "./constants.js";
|
|
2
|
+
const g = (n) => n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), o = (n, e) => typeof e == "number" && e >= 0 ? n.slice(0, e) : n, s = (n) => {
|
|
3
|
+
if (!n) return;
|
|
4
|
+
const e = document.createRange();
|
|
5
|
+
e.selectNodeContents(n), e.collapse(!1);
|
|
6
|
+
const r = window.getSelection();
|
|
7
|
+
r && (r.removeAllRanges(), r.addRange(e));
|
|
8
|
+
}, i = (n, e) => {
|
|
9
|
+
if (!e) return;
|
|
10
|
+
const r = c[n], t = l[n];
|
|
11
|
+
return {
|
|
12
|
+
maxHeight: `calc(${e * r}em + ${t}px)`
|
|
13
|
+
};
|
|
14
|
+
}, p = (n) => {
|
|
15
|
+
if (!n) return "";
|
|
16
|
+
let e = (n.innerText || "").replace(/\r\n|\r/g, `
|
|
17
|
+
`);
|
|
18
|
+
return (e === `
|
|
19
|
+
` || n.innerHTML === "<br>") && (e = ""), e;
|
|
20
|
+
}, u = (n, e) => {
|
|
21
|
+
if (!e) return;
|
|
22
|
+
if (n.length === 0) {
|
|
23
|
+
e.innerHTML = "";
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const r = g(n).replace(/\n/g, "<br>");
|
|
27
|
+
e.innerHTML = r;
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
o as clampByMaxLength,
|
|
31
|
+
g as escapeHtml,
|
|
32
|
+
p as getCurrentText,
|
|
33
|
+
i as getMaxHeightStyle,
|
|
34
|
+
s as placeCaretAtEnd,
|
|
35
|
+
u as setEditableText
|
|
36
|
+
};
|
|
@@ -80,3 +80,8 @@ export { CardTrail } from './CardTrail';
|
|
|
80
80
|
export { ClearButton } from './InputClearButton';
|
|
81
81
|
export { CopyText } from './CopyText';
|
|
82
82
|
export type { TCopyTextProps } from './CopyText';
|
|
83
|
+
export { TextArea as TextAreaV2 } from './TextAreaV2';
|
|
84
|
+
export type { ETextAreaSize, ETextAreaStatus, ETextAreaVariant, TextAreaV2Props } from './TextAreaV2';
|
|
85
|
+
export { MiniButton } from './MiniButton';
|
|
86
|
+
export { EMiniButtonSize, EMiniButtonVariant } from './MiniButton';
|
|
87
|
+
export type { TMiniButton } from './MiniButton';
|
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Button as e } from "./Button/Button.js";
|
|
2
|
-
import { EButtonForm as
|
|
2
|
+
import { EButtonForm as a, EButtonSize as p, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as n, EButtonVariantRound as x } from "./Button/constants.js";
|
|
3
3
|
import { I as l } from "../Input-DgWOCNwP.js";
|
|
4
4
|
import { EInputSize as S, EInputStatus as d, EInputVariant as s } from "./Input/constants.js";
|
|
5
5
|
import { TextArea as c } from "./TextArea/TextArea.js";
|
|
6
|
-
import { ETextAreaInputSize as
|
|
7
|
-
import { InputPassword as
|
|
8
|
-
import { InputPhoneNumber as
|
|
9
|
-
import { getMaskedInputPhoneValue as
|
|
10
|
-
import { OtpInput as
|
|
11
|
-
import { RadioGroup as
|
|
12
|
-
import { DatePicker as
|
|
13
|
-
import { EDatePickerBorderRadius as
|
|
6
|
+
import { ETextAreaInputSize as V } from "./TextArea/constants.js";
|
|
7
|
+
import { InputPassword as B } from "./InputPassword/InputPassword.js";
|
|
8
|
+
import { InputPhoneNumber as P } from "./InputPhoneNumber/InputPhoneNumber.js";
|
|
9
|
+
import { getMaskedInputPhoneValue as h, getUnmaskedInputValue as k } from "./InputPhoneNumber/utils.js";
|
|
10
|
+
import { OtpInput as A } from "./OtpInput/OtpInput.js";
|
|
11
|
+
import { RadioGroup as M } from "./RadioGroup/RadioGroup.js";
|
|
12
|
+
import { DatePicker as b } from "./DatePicker/DatePicker.js";
|
|
13
|
+
import { EDatePickerBorderRadius as R } from "./DatePicker/constants.js";
|
|
14
14
|
import { MergedButton as U } from "./MergedButton/MergedButton.js";
|
|
15
15
|
import { EMergedButtonVariantRound as F } from "./MergedButton/constants.js";
|
|
16
16
|
import { AppImage as N } from "./Image/Image.js";
|
|
@@ -22,19 +22,19 @@ import { EDrawerPosition as X } from "./Drawer/constants.js";
|
|
|
22
22
|
import { Dropdown as _ } from "./Dropdown/Dropdown.js";
|
|
23
23
|
import { EDropdownAlign as oo, EDropdownPlacement as ro } from "./Dropdown/constants.js";
|
|
24
24
|
import { DropdownSelect as to } from "./DropdownSelect/DropdownSelect.js";
|
|
25
|
-
import { EDropdownSelectSize as
|
|
25
|
+
import { EDropdownSelectSize as po } from "./DropdownSelect/constants.js";
|
|
26
26
|
import { Steps as mo } from "./Steps/Steps.js";
|
|
27
27
|
import { EStepColor as xo, EStepsSize as fo } from "./Steps/constants.js";
|
|
28
28
|
import { Vote as Eo } from "./Vote/Vote.js";
|
|
29
29
|
import { EVoteSize as so } from "./Vote/constants.js";
|
|
30
30
|
import { SelectSearch as co } from "./SelectSearch/SelectSearch.js";
|
|
31
|
-
import { ELoadingIndicatorPlacement as
|
|
32
|
-
import { CheckboxMimir as
|
|
33
|
-
import { Tag as
|
|
34
|
-
import { ETagSize as Lo, ETagType as
|
|
35
|
-
import { Timer as
|
|
36
|
-
import { Accordion as
|
|
37
|
-
import { EAccordionSize as
|
|
31
|
+
import { ELoadingIndicatorPlacement as Vo, ESelectSearchBorderRadius as go, ESelectSearchSize as Bo } from "./SelectSearch/constants.js";
|
|
32
|
+
import { CheckboxMimir as Po } from "./CheckboxMimir/CheckboxMimir.js";
|
|
33
|
+
import { Tag as ho } from "./Tag/Tag.js";
|
|
34
|
+
import { ETagSize as Lo, ETagType as Ao } from "./Tag/constants.js";
|
|
35
|
+
import { Timer as Mo } from "./Timer/Timer.js";
|
|
36
|
+
import { Accordion as bo } from "./Accordion/Accordion.js";
|
|
37
|
+
import { EAccordionSize as Ro } from "./Accordion/constants.js";
|
|
38
38
|
import { AccordionItem as Uo } from "./Accordion/AccordionItem/AccordionItem.js";
|
|
39
39
|
import { TabTrail as Fo } from "./TabTrail/TabTrail.js";
|
|
40
40
|
import { ETabTrailSize as No } from "./TabTrail/constants.js";
|
|
@@ -46,20 +46,20 @@ import { EToastPosition as Xo, EToastVariant as Yo } from "./Toasts/constants.js
|
|
|
46
46
|
import { UploaderPhotos as $o } from "./UploaderPhotos/UploaderPhotos.js";
|
|
47
47
|
import { ListPhoto as rr } from "./ListPhotos/ListPhoto/ListPhoto.js";
|
|
48
48
|
import { UploaderFiles as tr } from "./UploaderFiles/UploaderFiles.js";
|
|
49
|
-
import { EUploaderFilesVariant as
|
|
49
|
+
import { EUploaderFilesVariant as pr } from "./UploaderFiles/constants.js";
|
|
50
50
|
import { Uploader as mr } from "./Uploader/Uploader.js";
|
|
51
51
|
import { Link as xr } from "./AnchorLink/Link.js";
|
|
52
52
|
import { ELinkSize as lr, ELinkVariant as Er } from "./AnchorLink/constants.js";
|
|
53
53
|
import { NotificationBadge as dr } from "./NotificationBadge/NotificationBadge.js";
|
|
54
54
|
import { ENotificationBadgeSize as ur } from "./NotificationBadge/constants.js";
|
|
55
55
|
import { Chip as Tr } from "./Chip/Chip.js";
|
|
56
|
-
import { EChipSize as
|
|
57
|
-
import { UniversalUploader as
|
|
58
|
-
import { EUploaderType as
|
|
56
|
+
import { EChipSize as gr, EChipVariant as Br } from "./Chip/constants.js";
|
|
57
|
+
import { UniversalUploader as Pr } from "./UniversalUploader/UniversalUploader.js";
|
|
58
|
+
import { EUploaderType as hr } from "./UniversalUploader/constants.js";
|
|
59
59
|
import { InputRangeSlider as Lr } from "./InputRangeSlider/InputRangeSlider.js";
|
|
60
|
-
import { EInputRangeSliderBorderState as
|
|
61
|
-
import { GosZnak as
|
|
62
|
-
import { EGosZnakSize as
|
|
60
|
+
import { EInputRangeSliderBorderState as Dr, EInputRangeSliderPositions as Mr } from "./InputRangeSlider/constants.js";
|
|
61
|
+
import { GosZnak as br } from "./GosZnak/GosZnak.js";
|
|
62
|
+
import { EGosZnakSize as Rr, EGosZnakType as yr } from "./GosZnak/constants.js";
|
|
63
63
|
import { Switcher as vr } from "./Switcher/Switcher.js";
|
|
64
64
|
import { ELabelPositions as Gr } from "./Switcher/constants.js";
|
|
65
65
|
import { TwinSwitcher as Zr } from "./TwinSwitcher/TwinSwitcher.js";
|
|
@@ -70,56 +70,59 @@ import { ESkeletonVariant as Wr } from "./Skeleton/constants.js";
|
|
|
70
70
|
import { Avatar as Yr } from "./Avatar/Avatar.js";
|
|
71
71
|
import { EAvatarSize as $r, EAvatarVariant as oe } from "./Avatar/constants.js";
|
|
72
72
|
import { MultiSelectSearch as ee } from "./MultiSelectSearch/MultiSelectSearch.js";
|
|
73
|
-
import { ELoadingIndicatorPlacement as
|
|
73
|
+
import { ELoadingIndicatorPlacement as ae, EMultiSelectSearchSize as pe } from "./MultiSelectSearch/constants.js";
|
|
74
74
|
import { ListFiles as me } from "./ListFiles/ListFiles.js";
|
|
75
75
|
import { EFileItemVariant as xe } from "./ListFiles/constants.js";
|
|
76
76
|
import { ListPhotos as le } from "./ListPhotos/ListPhotos.js";
|
|
77
77
|
import { MessageShortReply as Se } from "./MessageShortReply/MessageShortReply.js";
|
|
78
78
|
import { EMessageShortReplyVariant as se } from "./MessageShortReply/constants.js";
|
|
79
79
|
import { Table as ce } from "./Table/Table.js";
|
|
80
|
-
import { ESortDirection as
|
|
81
|
-
import { PromoSlider as
|
|
80
|
+
import { ESortDirection as Ve, ETableDisplayMode as ge, ETableScrollButtonVariant as Be, ETableScrollIconName as Ie, ETableVariant as Pe } from "./Table/constants.js";
|
|
81
|
+
import { PromoSlider as he } from "./PromoSlider/PromoSlider.js";
|
|
82
82
|
import { CardTrail as Le } from "./CardTrail/CardTrail.js";
|
|
83
|
-
import { ClearButton as
|
|
84
|
-
import { CopyText as
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
83
|
+
import { ClearButton as De } from "./InputClearButton/ClearButton.js";
|
|
84
|
+
import { CopyText as we } from "./CopyText/CopyText.js";
|
|
85
|
+
import { TextArea as Ce } from "./TextAreaV2/TextArea.js";
|
|
86
|
+
import { MiniButton as ye } from "./MiniButton/MiniButton.js";
|
|
87
|
+
import { EMiniButtonSize as ve, EMiniButtonVariant as Fe } from "./MiniButton/constants.js";
|
|
88
|
+
import { default as Ne } from "./Slider/Slider.js";
|
|
89
|
+
import { EProgressBarPosition as Oe } from "./Slider/constants.js";
|
|
87
90
|
export {
|
|
88
|
-
|
|
91
|
+
bo as Accordion,
|
|
89
92
|
Uo as AccordionItem,
|
|
90
93
|
Yr as Avatar,
|
|
91
94
|
e as Button,
|
|
92
95
|
Le as CardTrail,
|
|
93
|
-
|
|
96
|
+
Po as CheckboxMimir,
|
|
94
97
|
Tr as Chip,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
De as ClearButton,
|
|
99
|
+
we as CopyText,
|
|
100
|
+
b as DatePicker,
|
|
98
101
|
Q as Drawer,
|
|
99
102
|
_ as Dropdown,
|
|
100
103
|
to as DropdownSelect,
|
|
101
|
-
|
|
104
|
+
Ro as EAccordionSize,
|
|
102
105
|
$r as EAvatarSize,
|
|
103
106
|
oe as EAvatarVariant,
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
a as EButtonForm,
|
|
108
|
+
p as EButtonSize,
|
|
106
109
|
i as EButtonVariantBorderless,
|
|
107
110
|
m as EButtonVariantDefault,
|
|
108
111
|
n as EButtonVariantOutline,
|
|
109
112
|
x as EButtonVariantRound,
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
gr as EChipSize,
|
|
114
|
+
Br as EChipVariant,
|
|
112
115
|
qo as ECounterVariant,
|
|
113
|
-
|
|
116
|
+
R as EDatePickerBorderRadius,
|
|
114
117
|
X as EDrawerPosition,
|
|
115
118
|
oo as EDropdownAlign,
|
|
116
119
|
ro as EDropdownPlacement,
|
|
117
|
-
|
|
120
|
+
po as EDropdownSelectSize,
|
|
118
121
|
xe as EFileItemVariant,
|
|
119
|
-
|
|
122
|
+
Rr as EGosZnakSize,
|
|
120
123
|
yr as EGosZnakType,
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
Dr as EInputRangeSliderBorderState,
|
|
125
|
+
Mr as EInputRangeSliderPositions,
|
|
123
126
|
S as EInputSize,
|
|
124
127
|
d as EInputStatus,
|
|
125
128
|
s as EInputVariant,
|
|
@@ -127,37 +130,39 @@ export {
|
|
|
127
130
|
lr as ELinkSize,
|
|
128
131
|
Er as ELinkVariant,
|
|
129
132
|
q as ELoaderSize,
|
|
130
|
-
|
|
133
|
+
ae as ELoadingIndicatorPlacement,
|
|
131
134
|
F as EMergedButtonVariantRound,
|
|
132
135
|
se as EMessageShortReplyVariant,
|
|
133
|
-
|
|
136
|
+
ve as EMiniButtonSize,
|
|
137
|
+
Fe as EMiniButtonVariant,
|
|
138
|
+
pe as EMultiSelectSearchSize,
|
|
134
139
|
ur as ENotificationBadgeSize,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
Oe as EProgressBarPosition,
|
|
141
|
+
Vo as ESSLoadingPlacement,
|
|
142
|
+
go as ESelectSearchBorderRadius,
|
|
143
|
+
Bo as ESelectSearchSize,
|
|
139
144
|
Wr as ESkeletonVariant,
|
|
140
|
-
|
|
145
|
+
Ve as ESortDirection,
|
|
141
146
|
xo as EStepColor,
|
|
142
147
|
fo as EStepsSize,
|
|
143
148
|
No as ETabTrailSize,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
ge as ETableDisplayMode,
|
|
150
|
+
Be as ETableScrollButtonVariant,
|
|
151
|
+
Ie as ETableScrollIconName,
|
|
152
|
+
Pe as ETableVariant,
|
|
148
153
|
Lo as ETagSize,
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
Ao as ETagType,
|
|
155
|
+
V as ETextAreaInputSize,
|
|
151
156
|
Xo as EToastPosition,
|
|
152
157
|
Yo as EToastVariant,
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
pr as EUploaderFilesVariant,
|
|
159
|
+
hr as EUploaderType,
|
|
155
160
|
so as EVoteSize,
|
|
156
|
-
|
|
161
|
+
br as GosZnak,
|
|
157
162
|
N as Image,
|
|
158
163
|
l as Input,
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
B as InputPassword,
|
|
165
|
+
P as InputPhoneNumber,
|
|
161
166
|
Lr as InputRangeSlider,
|
|
162
167
|
xr as Link,
|
|
163
168
|
me as ListFiles,
|
|
@@ -166,33 +171,35 @@ export {
|
|
|
166
171
|
O as Loader,
|
|
167
172
|
U as MergedButton,
|
|
168
173
|
Se as MessageShortReply,
|
|
174
|
+
ye as MiniButton,
|
|
169
175
|
ee as MultiSelectSearch,
|
|
170
176
|
dr as NotificationBadge,
|
|
171
|
-
|
|
177
|
+
A as OtpInput,
|
|
172
178
|
Oo as Pagination,
|
|
173
|
-
|
|
174
|
-
|
|
179
|
+
he as PromoSlider,
|
|
180
|
+
M as RadioGroup,
|
|
175
181
|
co as SelectSearch,
|
|
176
182
|
jr as SkeletonBrick,
|
|
177
183
|
Kr as SkeletonCircle,
|
|
178
184
|
Hr as SkeletonText,
|
|
179
|
-
|
|
185
|
+
Ne as Slider,
|
|
180
186
|
J as SliderLazy,
|
|
181
187
|
mo as Steps,
|
|
182
188
|
vr as Switcher,
|
|
183
189
|
Fo as TabTrail,
|
|
184
190
|
ce as Table,
|
|
185
|
-
|
|
191
|
+
ho as Tag,
|
|
186
192
|
c as TextArea,
|
|
187
|
-
|
|
193
|
+
Ce as TextAreaV2,
|
|
194
|
+
Mo as Timer,
|
|
188
195
|
Jo as ToastProvider,
|
|
189
196
|
Zr as TwinSwitcher,
|
|
190
|
-
|
|
197
|
+
Pr as UniversalUploader,
|
|
191
198
|
mr as Uploader,
|
|
192
199
|
tr as UploaderFiles,
|
|
193
200
|
$o as UploaderPhotos,
|
|
194
201
|
Eo as Vote,
|
|
195
|
-
|
|
202
|
+
h as getMaskedInputPhoneValue,
|
|
196
203
|
k as getUnmaskedInputValue,
|
|
197
204
|
Qo as useToast
|
|
198
205
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { useLayoutEffect as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
if (!e || !
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
document.body.style.overflow = d, document.body.style.paddingRight = n;
|
|
11
|
-
};
|
|
12
|
-
}, [e, o]);
|
|
1
|
+
import { useLayoutEffect as c } from "react";
|
|
2
|
+
function n({ on: e, paddingRight: t }) {
|
|
3
|
+
c(() => {
|
|
4
|
+
const o = document.documentElement.scrollHeight > document.documentElement.clientHeight;
|
|
5
|
+
if (!(!e || !o))
|
|
6
|
+
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`, () => {
|
|
7
|
+
document.body.style.overflow = "", document.body.style.paddingRight = "";
|
|
8
|
+
};
|
|
9
|
+
}, [e, t]);
|
|
13
10
|
}
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
n as useLockBodyScroll
|
|
16
13
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Button as e } from "./components/Button/Button.js";
|
|
2
|
-
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as
|
|
2
|
+
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as f, EButtonVariantRound as x } from "./components/Button/constants.js";
|
|
3
3
|
import { I as l } from "./Input-DgWOCNwP.js";
|
|
4
|
-
import { EInputSize as E, EInputStatus as
|
|
4
|
+
import { EInputSize as E, EInputStatus as u, EInputVariant as S } from "./components/Input/constants.js";
|
|
5
5
|
import { TextArea as c } from "./components/TextArea/TextArea.js";
|
|
6
6
|
import { ETextAreaInputSize as g } from "./components/TextArea/constants.js";
|
|
7
|
-
import { InputPassword as
|
|
8
|
-
import { InputPhoneNumber as
|
|
9
|
-
import { getMaskedInputPhoneValue as
|
|
10
|
-
import { OtpInput as
|
|
11
|
-
import { RadioGroup as
|
|
7
|
+
import { InputPassword as I } from "./components/InputPassword/InputPassword.js";
|
|
8
|
+
import { InputPhoneNumber as P } from "./components/InputPhoneNumber/InputPhoneNumber.js";
|
|
9
|
+
import { getMaskedInputPhoneValue as h, getUnmaskedInputValue as k } from "./components/InputPhoneNumber/utils.js";
|
|
10
|
+
import { OtpInput as b } from "./components/OtpInput/OtpInput.js";
|
|
11
|
+
import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
|
|
12
12
|
import { DatePicker as D } from "./components/DatePicker/DatePicker.js";
|
|
13
|
-
import { EDatePickerBorderRadius as
|
|
13
|
+
import { EDatePickerBorderRadius as A } from "./components/DatePicker/constants.js";
|
|
14
14
|
import { MergedButton as U } from "./components/MergedButton/MergedButton.js";
|
|
15
15
|
import { EMergedButtonVariantRound as F } from "./components/MergedButton/constants.js";
|
|
16
16
|
import { AppImage as N } from "./components/Image/Image.js";
|
|
@@ -23,18 +23,18 @@ import { Dropdown as _ } from "./components/Dropdown/Dropdown.js";
|
|
|
23
23
|
import { EDropdownAlign as oo, EDropdownPlacement as ro } from "./components/Dropdown/constants.js";
|
|
24
24
|
import { DropdownSelect as to } from "./components/DropdownSelect/DropdownSelect.js";
|
|
25
25
|
import { EDropdownSelectSize as ao } from "./components/DropdownSelect/constants.js";
|
|
26
|
-
import { Steps as
|
|
26
|
+
import { Steps as mo } from "./components/Steps/Steps.js";
|
|
27
27
|
import { EStepColor as xo, EStepsSize as no } from "./components/Steps/constants.js";
|
|
28
28
|
import { Vote as so } from "./components/Vote/Vote.js";
|
|
29
|
-
import { EVoteSize as
|
|
29
|
+
import { EVoteSize as uo } from "./components/Vote/constants.js";
|
|
30
30
|
import { SelectSearch as co } from "./components/SelectSearch/SelectSearch.js";
|
|
31
|
-
import { ELoadingIndicatorPlacement as go, ESelectSearchBorderRadius as
|
|
32
|
-
import { CheckboxMimir as
|
|
33
|
-
import { Tag as
|
|
34
|
-
import { ETagSize as
|
|
35
|
-
import { Timer as
|
|
31
|
+
import { ELoadingIndicatorPlacement as go, ESelectSearchBorderRadius as Bo, ESelectSearchSize as Io } from "./components/SelectSearch/constants.js";
|
|
32
|
+
import { CheckboxMimir as Po } from "./components/CheckboxMimir/CheckboxMimir.js";
|
|
33
|
+
import { Tag as ho } from "./components/Tag/Tag.js";
|
|
34
|
+
import { ETagSize as Mo, ETagType as bo } from "./components/Tag/constants.js";
|
|
35
|
+
import { Timer as Lo } from "./components/Timer/Timer.js";
|
|
36
36
|
import { Accordion as Do } from "./components/Accordion/Accordion.js";
|
|
37
|
-
import { EAccordionSize as
|
|
37
|
+
import { EAccordionSize as Ao } from "./components/Accordion/constants.js";
|
|
38
38
|
import { AccordionItem as Uo } from "./components/Accordion/AccordionItem/AccordionItem.js";
|
|
39
39
|
import { TabTrail as Fo } from "./components/TabTrail/TabTrail.js";
|
|
40
40
|
import { ETabTrailSize as No } from "./components/TabTrail/constants.js";
|
|
@@ -47,19 +47,19 @@ import { UploaderPhotos as $o } from "./components/UploaderPhotos/UploaderPhotos
|
|
|
47
47
|
import { ListPhoto as rr } from "./components/ListPhotos/ListPhoto/ListPhoto.js";
|
|
48
48
|
import { UploaderFiles as tr } from "./components/UploaderFiles/UploaderFiles.js";
|
|
49
49
|
import { EUploaderFilesVariant as ar } from "./components/UploaderFiles/constants.js";
|
|
50
|
-
import { Uploader as
|
|
50
|
+
import { Uploader as mr } from "./components/Uploader/Uploader.js";
|
|
51
51
|
import { Link as xr } from "./components/AnchorLink/Link.js";
|
|
52
52
|
import { ELinkSize as lr, ELinkVariant as sr } from "./components/AnchorLink/constants.js";
|
|
53
|
-
import { NotificationBadge as
|
|
54
|
-
import { ENotificationBadgeSize as
|
|
53
|
+
import { NotificationBadge as ur } from "./components/NotificationBadge/NotificationBadge.js";
|
|
54
|
+
import { ENotificationBadgeSize as dr } from "./components/NotificationBadge/constants.js";
|
|
55
55
|
import { Chip as Tr } from "./components/Chip/Chip.js";
|
|
56
|
-
import { EChipSize as
|
|
57
|
-
import { UniversalUploader as
|
|
58
|
-
import { EUploaderType as
|
|
59
|
-
import { InputRangeSlider as
|
|
60
|
-
import { EInputRangeSliderBorderState as
|
|
56
|
+
import { EChipSize as Br, EChipVariant as Ir } from "./components/Chip/constants.js";
|
|
57
|
+
import { UniversalUploader as Pr } from "./components/UniversalUploader/UniversalUploader.js";
|
|
58
|
+
import { EUploaderType as hr } from "./components/UniversalUploader/constants.js";
|
|
59
|
+
import { InputRangeSlider as Mr } from "./components/InputRangeSlider/InputRangeSlider.js";
|
|
60
|
+
import { EInputRangeSliderBorderState as Cr, EInputRangeSliderPositions as Lr } from "./components/InputRangeSlider/constants.js";
|
|
61
61
|
import { GosZnak as Dr } from "./components/GosZnak/GosZnak.js";
|
|
62
|
-
import { EGosZnakSize as
|
|
62
|
+
import { EGosZnakSize as Ar, EGosZnakType as wr } from "./components/GosZnak/constants.js";
|
|
63
63
|
import { Switcher as vr } from "./components/Switcher/Switcher.js";
|
|
64
64
|
import { ELabelPositions as Gr } from "./components/Switcher/constants.js";
|
|
65
65
|
import { TwinSwitcher as Or } from "./components/TwinSwitcher/TwinSwitcher.js";
|
|
@@ -71,155 +71,162 @@ import { Avatar as Yr } from "./components/Avatar/Avatar.js";
|
|
|
71
71
|
import { EAvatarSize as $r, EAvatarVariant as oe } from "./components/Avatar/constants.js";
|
|
72
72
|
import { MultiSelectSearch as ee } from "./components/MultiSelectSearch/MultiSelectSearch.js";
|
|
73
73
|
import { ELoadingIndicatorPlacement as pe, EMultiSelectSearchSize as ae } from "./components/MultiSelectSearch/constants.js";
|
|
74
|
-
import { ListFiles as
|
|
74
|
+
import { ListFiles as me } from "./components/ListFiles/ListFiles.js";
|
|
75
75
|
import { EFileItemVariant as xe } from "./components/ListFiles/constants.js";
|
|
76
76
|
import { ListPhotos as le } from "./components/ListPhotos/ListPhotos.js";
|
|
77
77
|
import { MessageShortReply as Ee } from "./components/MessageShortReply/MessageShortReply.js";
|
|
78
|
-
import { EMessageShortReplyVariant as
|
|
78
|
+
import { EMessageShortReplyVariant as Se } from "./components/MessageShortReply/constants.js";
|
|
79
79
|
import { Table as ce } from "./components/Table/Table.js";
|
|
80
|
-
import { ESortDirection as ge, ETableDisplayMode as
|
|
81
|
-
import { PromoSlider as
|
|
82
|
-
import { CardTrail as
|
|
83
|
-
import { ClearButton as
|
|
80
|
+
import { ESortDirection as ge, ETableDisplayMode as Be, ETableScrollButtonVariant as Ie, ETableScrollIconName as Ve, ETableVariant as Pe } from "./components/Table/constants.js";
|
|
81
|
+
import { PromoSlider as he } from "./components/PromoSlider/PromoSlider.js";
|
|
82
|
+
import { CardTrail as Me } from "./components/CardTrail/CardTrail.js";
|
|
83
|
+
import { ClearButton as Ce } from "./components/InputClearButton/ClearButton.js";
|
|
84
84
|
import { CopyText as ye } from "./components/CopyText/CopyText.js";
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
85
|
+
import { TextArea as Re } from "./components/TextAreaV2/TextArea.js";
|
|
86
|
+
import { MiniButton as we } from "./components/MiniButton/MiniButton.js";
|
|
87
|
+
import { EMiniButtonSize as ve, EMiniButtonVariant as Fe } from "./components/MiniButton/constants.js";
|
|
88
|
+
import { useMediaQuery as Ne } from "./hooks/useMediaQuery/useMediaQuery.js";
|
|
89
|
+
import { EMediaQuery as Qe, EMinMediaQuery as Ze } from "./hooks/useMediaQuery/constants.js";
|
|
90
|
+
import { useLockBodyScroll as qe } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
|
|
91
|
+
import { useInterval as Je } from "./hooks/useInterval/useInterval.js";
|
|
92
|
+
import { useTimer as We } from "./hooks/useTimer/index.js";
|
|
93
|
+
import { useCopyToClipboard as Ye } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
|
|
94
|
+
import { useMergeRefs as $e } from "./hooks/useMergeRefs/useMergeRefs.js";
|
|
95
|
+
import { useResizeObserver as rt } from "./hooks/useResizeObserver/useResizeObserver.js";
|
|
96
|
+
import { useCallbackRef as tt } from "./hooks/useCallbackRef/index.js";
|
|
97
|
+
import { useThrottledCallback as at } from "./hooks/useThrottledCallback/index.js";
|
|
98
|
+
import { Icon as mt } from "./icons/Icon.js";
|
|
99
|
+
import { formating as xt } from "./utils/index.js";
|
|
100
|
+
import { default as lt } from "./components/Slider/Slider.js";
|
|
101
|
+
import { EProgressBarPosition as Et } from "./components/Slider/constants.js";
|
|
102
|
+
import { parseDate as St } from "./utils/formating/Date.js";
|
|
100
103
|
import './assets/index.css';export {
|
|
101
104
|
Do as Accordion,
|
|
102
105
|
Uo as AccordionItem,
|
|
103
106
|
Yr as Avatar,
|
|
104
107
|
e as Button,
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
Me as CardTrail,
|
|
109
|
+
Po as CheckboxMimir,
|
|
107
110
|
Tr as Chip,
|
|
108
|
-
|
|
111
|
+
Ce as ClearButton,
|
|
109
112
|
ye as CopyText,
|
|
110
113
|
D as DatePicker,
|
|
111
114
|
K as Drawer,
|
|
112
115
|
_ as Dropdown,
|
|
113
116
|
to as DropdownSelect,
|
|
114
|
-
|
|
117
|
+
Ao as EAccordionSize,
|
|
115
118
|
$r as EAvatarSize,
|
|
116
119
|
oe as EAvatarVariant,
|
|
117
120
|
p as EButtonForm,
|
|
118
121
|
a as EButtonSize,
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
i as EButtonVariantBorderless,
|
|
123
|
+
m as EButtonVariantDefault,
|
|
121
124
|
f as EButtonVariantOutline,
|
|
122
125
|
x as EButtonVariantRound,
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
Br as EChipSize,
|
|
127
|
+
Ir as EChipVariant,
|
|
125
128
|
jo as ECounterVariant,
|
|
126
|
-
|
|
129
|
+
A as EDatePickerBorderRadius,
|
|
127
130
|
X as EDrawerPosition,
|
|
128
131
|
oo as EDropdownAlign,
|
|
129
132
|
ro as EDropdownPlacement,
|
|
130
133
|
ao as EDropdownSelectSize,
|
|
131
134
|
xe as EFileItemVariant,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
Ar as EGosZnakSize,
|
|
136
|
+
wr as EGosZnakType,
|
|
137
|
+
Cr as EInputRangeSliderBorderState,
|
|
138
|
+
Lr as EInputRangeSliderPositions,
|
|
136
139
|
E as EInputSize,
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
u as EInputStatus,
|
|
141
|
+
S as EInputVariant,
|
|
139
142
|
Gr as ELabelPositions,
|
|
140
143
|
lr as ELinkSize,
|
|
141
144
|
sr as ELinkVariant,
|
|
142
145
|
j as ELoaderSize,
|
|
143
146
|
pe as ELoadingIndicatorPlacement,
|
|
144
|
-
|
|
147
|
+
Qe as EMediaQuery,
|
|
145
148
|
F as EMergedButtonVariantRound,
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
Se as EMessageShortReplyVariant,
|
|
150
|
+
Ze as EMinMediaQuery,
|
|
151
|
+
ve as EMiniButtonSize,
|
|
152
|
+
Fe as EMiniButtonVariant,
|
|
148
153
|
ae as EMultiSelectSearchSize,
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
dr as ENotificationBadgeSize,
|
|
155
|
+
Et as EProgressBarPosition,
|
|
151
156
|
go as ESSLoadingPlacement,
|
|
152
|
-
|
|
153
|
-
|
|
157
|
+
Bo as ESelectSearchBorderRadius,
|
|
158
|
+
Io as ESelectSearchSize,
|
|
154
159
|
Wr as ESkeletonVariant,
|
|
155
160
|
ge as ESortDirection,
|
|
156
161
|
xo as EStepColor,
|
|
157
162
|
no as EStepsSize,
|
|
158
163
|
No as ETabTrailSize,
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
Be as ETableDisplayMode,
|
|
165
|
+
Ie as ETableScrollButtonVariant,
|
|
161
166
|
Ve as ETableScrollIconName,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
Pe as ETableVariant,
|
|
168
|
+
Mo as ETagSize,
|
|
169
|
+
bo as ETagType,
|
|
165
170
|
g as ETextAreaInputSize,
|
|
166
171
|
Xo as EToastPosition,
|
|
167
172
|
Yo as EToastVariant,
|
|
168
173
|
ar as EUploaderFilesVariant,
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
hr as EUploaderType,
|
|
175
|
+
uo as EVoteSize,
|
|
171
176
|
Dr as GosZnak,
|
|
172
|
-
|
|
177
|
+
mt as Icon,
|
|
173
178
|
N as Image,
|
|
174
179
|
l as Input,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
180
|
+
I as InputPassword,
|
|
181
|
+
P as InputPhoneNumber,
|
|
182
|
+
Mr as InputRangeSlider,
|
|
178
183
|
xr as Link,
|
|
179
|
-
|
|
184
|
+
me as ListFiles,
|
|
180
185
|
rr as ListPhoto,
|
|
181
186
|
le as ListPhotos,
|
|
182
187
|
Q as Loader,
|
|
183
188
|
U as MergedButton,
|
|
184
189
|
Ee as MessageShortReply,
|
|
190
|
+
we as MiniButton,
|
|
185
191
|
ee as MultiSelectSearch,
|
|
186
|
-
|
|
187
|
-
|
|
192
|
+
ur as NotificationBadge,
|
|
193
|
+
b as OtpInput,
|
|
188
194
|
Qo as Pagination,
|
|
189
|
-
|
|
190
|
-
|
|
195
|
+
he as PromoSlider,
|
|
196
|
+
L as RadioGroup,
|
|
191
197
|
co as SelectSearch,
|
|
192
198
|
Zr as SkeletonBrick,
|
|
193
199
|
Jr as SkeletonCircle,
|
|
194
200
|
qr as SkeletonText,
|
|
195
|
-
|
|
201
|
+
lt as Slider,
|
|
196
202
|
H as SliderLazy,
|
|
197
|
-
|
|
203
|
+
mo as Steps,
|
|
198
204
|
vr as Switcher,
|
|
199
205
|
Fo as TabTrail,
|
|
200
206
|
ce as Table,
|
|
201
|
-
|
|
207
|
+
ho as Tag,
|
|
202
208
|
c as TextArea,
|
|
203
|
-
|
|
209
|
+
Re as TextAreaV2,
|
|
210
|
+
Lo as Timer,
|
|
204
211
|
Ho as ToastProvider,
|
|
205
212
|
Or as TwinSwitcher,
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
Pr as UniversalUploader,
|
|
214
|
+
mr as Uploader,
|
|
208
215
|
tr as UploaderFiles,
|
|
209
216
|
$o as UploaderPhotos,
|
|
210
217
|
so as Vote,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
xt as formating,
|
|
219
|
+
h as getMaskedInputPhoneValue,
|
|
220
|
+
k as getUnmaskedInputValue,
|
|
221
|
+
St as parseDate,
|
|
222
|
+
tt as useCallbackRef,
|
|
223
|
+
Ye as useCopyToClipboard,
|
|
224
|
+
Je as useInterval,
|
|
225
|
+
qe as useLockBodyScroll,
|
|
226
|
+
Ne as useMediaQuery,
|
|
227
|
+
$e as useMergeRefs,
|
|
228
|
+
rt as useResizeObserver,
|
|
229
|
+
at as useThrottledCallback,
|
|
230
|
+
We as useTimer,
|
|
224
231
|
Ko as useToast
|
|
225
232
|
};
|