mimir-ui-kit 1.43.11 → 1.43.12
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/Input-BU_6U1CW.js +227 -0
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClearButton.css +1 -0
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/GosZnak.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/InputRangeSlider.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/ListFiles.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MessageShortReply.css +1 -1
- package/dist/assets/MultiSelectSearch.css +1 -1
- package/dist/assets/NotificationBadge.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/hooks.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +3 -10
- package/dist/components/Accordion/Accordion.js +212 -286
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +4 -0
- package/dist/components/Accordion/constants.js +5 -4
- package/dist/components/AnchorLink/Link.js +20 -21
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +87 -110
- package/dist/components/Button/constants.d.ts +2 -8
- package/dist/components/Button/constants.js +5 -6
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +0 -2
- package/dist/components/CheckboxMimir/CheckboxMimir.js +35 -37
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/components/DatePicker/DatePicker.js +169 -182
- package/dist/components/DatePicker/DatePickerModal.js +98 -134
- package/dist/components/DatePicker/MonthPickerModal.js +95 -115
- package/dist/components/DatePicker/YearPickerModal.js +89 -109
- package/dist/components/DatePicker/constants.d.ts +1 -1
- package/dist/components/DatePicker/constants.js +7 -6
- package/dist/components/DatePicker/hooks.d.ts +1 -2
- package/dist/components/DatePicker/hooks.js +13 -13
- package/dist/components/Drawer/Drawer.js +138 -172
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +38 -47
- package/dist/components/Input/Input.d.ts +0 -4
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/{MiniButton/MiniButton.d.ts → InputClearButton/ClearButton.d.ts} +8 -17
- package/dist/components/InputClearButton/ClearButton.js +41 -0
- package/dist/components/InputClearButton/constants.d.ts +8 -0
- package/dist/components/InputClearButton/constants.js +5 -0
- package/dist/components/InputClearButton/index.d.ts +4 -0
- package/dist/components/InputClearButton/index.js +6 -0
- package/dist/components/InputPassword/InputPassword.js +42 -38
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +139 -159
- package/dist/components/InputRangeSlider/constants.d.ts +0 -5
- package/dist/components/InputRangeSlider/constants.js +6 -11
- package/dist/components/ListFiles/ListFiles.js +39 -41
- package/dist/components/ListPhotos/ListPhotos.js +18 -17
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +152 -153
- package/dist/components/MultiSelectSearch/constants.d.ts +0 -1
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +16 -18
- package/dist/components/NotificationBadge/NotificationBadge.js +33 -49
- package/dist/components/NotificationBadge/constants.d.ts +2 -9
- package/dist/components/NotificationBadge/constants.js +2 -3
- package/dist/components/NotificationBadge/types.d.ts +1 -11
- package/dist/components/OtpInput/OtpInput.js +40 -44
- package/dist/components/OtpInput/constants.d.ts +0 -4
- package/dist/components/OtpInput/constants.js +4 -6
- package/dist/components/OtpInput/index.d.ts +0 -1
- package/dist/components/OtpInput/index.js +0 -2
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/SelectSearch/SelectSearch.js +241 -241
- package/dist/components/SelectSearch/utils.d.ts +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.d.ts +5 -1
- package/dist/components/Slider/Slider.js +36 -34
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.js +51 -55
- package/dist/hooks-HgN6Yauq.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +59 -0
- package/dist/icons/components/64px/AtsVendors64px.js +37 -0
- package/dist/icons/components/64px/ButtonOn64px.js +31 -0
- package/dist/icons/components/64px/BuyoutAuto64px.js +45 -0
- package/dist/icons/components/64px/CarAssistance64px.js +44 -0
- package/dist/icons/components/64px/CarDelivery64px.js +37 -0
- package/dist/icons/components/64px/CarSearchReturn64px.js +45 -0
- package/dist/icons/components/64px/CarService64px.js +37 -0
- package/dist/icons/components/64px/Case64px.js +33 -0
- package/dist/icons/components/64px/CoatOfArms64px.js +149 -0
- package/dist/icons/components/64px/CoffeeCup64px.js +44 -0
- package/dist/icons/components/64px/Cup64px.js +38 -0
- package/dist/icons/components/64px/ExpertAdvice64px.js +40 -0
- package/dist/icons/components/64px/Fines64px.js +88 -0
- package/dist/icons/components/64px/Fuel64px.js +38 -0
- package/dist/icons/components/64px/GazprombankIcon24px.js +21 -0
- package/dist/icons/components/64px/Kasko64px.js +44 -0
- package/dist/icons/components/64px/LegalSupport64px.js +58 -0
- package/dist/icons/components/64px/Microphone64px.js +37 -0
- package/dist/icons/components/64px/Money64px.js +60 -0
- package/dist/icons/components/64px/PaymentSchedule64px.js +39 -0
- package/dist/icons/components/64px/PersonalManager64px.js +100 -0
- package/dist/icons/components/64px/PreApproval64px.js +44 -0
- package/dist/icons/components/64px/Questions64px.js +37 -0
- package/dist/icons/components/64px/SupportGeography64px.js +51 -0
- package/dist/icons/components/64px/Timer64px.js +45 -0
- package/dist/icons/components/64px/Twogis64px.js +51 -0
- package/dist/icons/components/64px/Vehicles64px.js +45 -0
- package/dist/icons/components/64px/Workplace64px.js +38 -0
- package/dist/icons/components/index.js +591 -564
- package/dist/{index-DrVFMaBi.js → index-C2dQUuc9.js} +1346 -1184
- package/dist/index.js +69 -73
- package/dist/styles.module-Cuqm31CO.js +28 -0
- package/package.json +1 -1
- package/dist/Input-CGZoshMl.js +0 -224
- package/dist/assets/CarBodyButton.css +0 -1
- package/dist/assets/MiniButton.css +0 -1
- package/dist/assets/RoundButton.css +0 -1
- package/dist/assets/ScrollWrapper.css +0 -1
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +0 -26
- package/dist/components/CarBodyButton/CarBodyButton.js +0 -40
- package/dist/components/CarBodyButton/index.d.ts +0 -1
- package/dist/components/CarBodyButton/index.js +0 -4
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +0 -11
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +0 -27
- package/dist/components/GosZnak/utils.d.ts +0 -6
- package/dist/components/GosZnak/utils.js +0 -15
- package/dist/components/MiniButton/MiniButton.js +0 -44
- package/dist/components/MiniButton/constants.d.ts +0 -9
- package/dist/components/MiniButton/constants.js +0 -5
- package/dist/components/MiniButton/index.d.ts +0 -4
- package/dist/components/MiniButton/index.js +0 -6
- package/dist/components/NotificationBadge/utils.d.ts +0 -8
- package/dist/components/NotificationBadge/utils.js +0 -4
- package/dist/components/RoundButton/RoundButton.d.ts +0 -82
- package/dist/components/RoundButton/RoundButton.js +0 -69
- package/dist/components/RoundButton/constants.d.ts +0 -11
- package/dist/components/RoundButton/constants.js +0 -5
- package/dist/components/RoundButton/index.d.ts +0 -2
- package/dist/components/RoundButton/index.js +0 -7
- package/dist/components/RoundButton/types.d.ts +0 -20
- package/dist/hooks-Cd4Ez6_j.js +0 -117
- package/dist/icons/components/16px/DropdownArrowDown16px.js +0 -23
- package/dist/icons/components/24px/EyeClosed24px.js +0 -65
- package/dist/styles.module-BfkM1-KJ.js +0 -32
@@ -1,9 +1,9 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
1
|
+
import { jsxs as k, jsx as n } from "react/jsx-runtime";
|
2
|
+
import { c as o } from "../../index-DIxK0V-G.js";
|
3
3
|
import { forwardRef as x } from "react";
|
4
|
-
import { ELinkSize as
|
5
|
-
import { Icon as
|
6
|
-
import '../../assets/Link.css';const g = "
|
4
|
+
import { ELinkSize as L, ELinkVariant as I } from "./constants.js";
|
5
|
+
import { Icon as t } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/Link.css';const g = "_link_1bc9a_2", j = "_sample_1bc9a_20", u = "_anchor_1bc9a_24", z = "_disabled_1bc9a_28", C = "_icon_1bc9a_38", E = "_xs_1bc9a_47", R = "_s_1bc9a_20", v = "_m_1bc9a_59", w = "_l_1bc9a_2", s = {
|
7
7
|
link: g,
|
8
8
|
sample: j,
|
9
9
|
anchor: u,
|
@@ -14,45 +14,44 @@ import '../../assets/Link.css';const g = "_link_1e4ck_2", j = "_sample_1e4ck_23"
|
|
14
14
|
m: v,
|
15
15
|
l: w
|
16
16
|
}, V = x(
|
17
|
-
(
|
17
|
+
(i, e) => {
|
18
18
|
const {
|
19
19
|
as: l = "button",
|
20
20
|
disabled: r,
|
21
21
|
leftIcon: c,
|
22
22
|
children: _,
|
23
|
-
rightIcon:
|
23
|
+
rightIcon: a,
|
24
24
|
className: m,
|
25
|
-
size:
|
26
|
-
variant: d =
|
25
|
+
size: b = L.L,
|
26
|
+
variant: d = I.ANCHOR,
|
27
27
|
rel: p,
|
28
28
|
target: f,
|
29
29
|
...N
|
30
|
-
} =
|
30
|
+
} = i, h = o(s.link, m, s[d], s[b], {
|
31
31
|
[s.disabled]: r
|
32
32
|
});
|
33
|
-
return /* @__PURE__ */
|
33
|
+
return /* @__PURE__ */ k(
|
34
34
|
l,
|
35
35
|
{
|
36
|
-
|
37
|
-
|
38
|
-
className: b,
|
36
|
+
ref: e,
|
37
|
+
className: h,
|
39
38
|
rel: p,
|
40
39
|
target: f,
|
41
40
|
...N,
|
42
41
|
children: [
|
43
|
-
c && /* @__PURE__ */
|
44
|
-
|
42
|
+
c && /* @__PURE__ */ n(
|
43
|
+
t,
|
45
44
|
{
|
46
45
|
...c,
|
47
|
-
className:
|
46
|
+
className: o(s.icon, c.className)
|
48
47
|
}
|
49
48
|
),
|
50
49
|
_,
|
51
|
-
|
52
|
-
|
50
|
+
a && /* @__PURE__ */ n(
|
51
|
+
t,
|
53
52
|
{
|
54
|
-
...
|
55
|
-
className:
|
53
|
+
...a,
|
54
|
+
className: o(s.icon, a.className)
|
56
55
|
}
|
57
56
|
)
|
58
57
|
]
|
@@ -1,49 +1,49 @@
|
|
1
|
-
import { jsxs as _, jsx as
|
1
|
+
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
2
2
|
import { c } from "../../index-DIxK0V-G.js";
|
3
|
-
import { memo as
|
3
|
+
import { memo as n } from "react";
|
4
4
|
import { EAvatarSize as t } from "./constants.js";
|
5
|
-
import { Icon as
|
6
|
-
import { AppImage as
|
5
|
+
import { Icon as l } from "../../icons/Icon.js";
|
6
|
+
import { AppImage as b } from "../Image/Image.js";
|
7
7
|
import { NotificationBadge as f } from "../NotificationBadge/NotificationBadge.js";
|
8
|
-
import '../../assets/Avatar.css';const
|
9
|
-
avatar:
|
10
|
-
image:
|
11
|
-
s:
|
12
|
-
m:
|
13
|
-
l:
|
14
|
-
default: "
|
15
|
-
},
|
8
|
+
import '../../assets/Avatar.css';const u = "_avatar_bbuza_2", d = "_image_bbuza_11", v = "_s_bbuza_17", x = "_m_bbuza_22", g = "_l_bbuza_27", o = {
|
9
|
+
avatar: u,
|
10
|
+
image: d,
|
11
|
+
s: v,
|
12
|
+
m: x,
|
13
|
+
l: g,
|
14
|
+
default: "_default_bbuza_32"
|
15
|
+
}, N = n(
|
16
16
|
({
|
17
17
|
size: a = t.M,
|
18
18
|
className: s,
|
19
|
-
notificationsCount:
|
20
|
-
src:
|
21
|
-
alt:
|
19
|
+
notificationsCount: e = 0,
|
20
|
+
src: m,
|
21
|
+
alt: i = "User avatar"
|
22
22
|
}) => {
|
23
23
|
const p = a === t.S || a === t.M ? { top: "8px", left: "-8px" } : { top: "12px", left: "-12px" };
|
24
24
|
return /* @__PURE__ */ _(
|
25
25
|
"div",
|
26
26
|
{
|
27
27
|
className: c(o.avatar, o[a], s, {
|
28
|
-
[o.default]: !
|
28
|
+
[o.default]: !m
|
29
29
|
}),
|
30
30
|
"data-testid": "avatar-container",
|
31
31
|
children: [
|
32
|
-
|
33
|
-
|
32
|
+
m ? /* @__PURE__ */ r(
|
33
|
+
b,
|
34
34
|
{
|
35
|
-
src:
|
36
|
-
alt:
|
35
|
+
src: m,
|
36
|
+
alt: i,
|
37
37
|
className: o.image,
|
38
38
|
"data-testid": "avatar-image"
|
39
39
|
}
|
40
|
-
) : /* @__PURE__ */
|
41
|
-
!!
|
40
|
+
) : /* @__PURE__ */ r(l, { iconName: "User16px" }),
|
41
|
+
!!e && /* @__PURE__ */ r(
|
42
42
|
f,
|
43
43
|
{
|
44
|
-
count:
|
44
|
+
count: e,
|
45
45
|
position: p,
|
46
|
-
size: a === t.S ? "
|
46
|
+
size: a === t.S ? "s" : "m",
|
47
47
|
absolute: !0
|
48
48
|
}
|
49
49
|
)
|
@@ -52,7 +52,7 @@ import '../../assets/Avatar.css';const v = "_avatar_1jdhi_2", x = "_image_1jdhi_
|
|
52
52
|
);
|
53
53
|
}
|
54
54
|
);
|
55
|
-
|
55
|
+
N.displayName = "Avatar";
|
56
56
|
export {
|
57
|
-
|
57
|
+
N as Avatar
|
58
58
|
};
|
@@ -1,123 +1,100 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c
|
3
|
-
import { forwardRef as
|
4
|
-
import { EButtonVariantDefault as
|
5
|
-
import { Icon as
|
6
|
-
import '../../assets/Button.css';const
|
7
|
-
button:
|
8
|
-
clear:
|
9
|
-
count:
|
10
|
-
"default-button": "_default-
|
11
|
-
"primary-sapphire": "_primary-
|
12
|
-
"primary-citrine": "_primary-
|
13
|
-
"secondary-asphalt": "_secondary-
|
14
|
-
"secondary-gray": "_secondary-
|
15
|
-
"secondary-white": "_secondary-
|
16
|
-
"secondary-red": "_secondary-
|
17
|
-
"round-button": "_round-
|
18
|
-
black:
|
19
|
-
gray:
|
20
|
-
white:
|
21
|
-
|
22
|
-
"outline-
|
23
|
-
"outline-
|
24
|
-
"outline-
|
25
|
-
"outline-
|
26
|
-
"
|
27
|
-
"borderless-
|
28
|
-
"borderless-
|
29
|
-
"borderless-
|
30
|
-
"borderless-
|
31
|
-
|
32
|
-
"
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
"right_block-wrap": "_right_block-wrap_1lpn9_371",
|
44
|
-
disabled: et,
|
45
|
-
"icon-button": "_icon-button_1lpn9_403"
|
46
|
-
}, st = L(
|
47
|
-
(N, v) => {
|
1
|
+
import { jsxs as B, jsx as l } from "react/jsx-runtime";
|
2
|
+
import { c } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as I } from "react";
|
4
|
+
import { EButtonVariantDefault as k, EButtonForm as C } from "./constants.js";
|
5
|
+
import { Icon as j } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/Button.css';const D = "_button_1qnsv_2", E = "_clear_1qnsv_42", P = "_count_1qnsv_53", z = "_black_1qnsv_132", F = "_gray_1qnsv_141", R = "_white_1qnsv_150", S = "_xs_1qnsv_250", V = "_s_1qnsv_83", A = "_m_1qnsv_259", G = "_l_1qnsv_283", H = "_xl_1qnsv_291", J = "_xxl_1qnsv_299", K = "_full_1qnsv_314", L = "_disabled_1qnsv_320", s = {
|
7
|
+
button: D,
|
8
|
+
clear: E,
|
9
|
+
count: P,
|
10
|
+
"default-button": "_default-button_1qnsv_61",
|
11
|
+
"primary-sapphire": "_primary-sapphire_1qnsv_64",
|
12
|
+
"primary-citrine": "_primary-citrine_1qnsv_73",
|
13
|
+
"secondary-asphalt": "_secondary-asphalt_1qnsv_83",
|
14
|
+
"secondary-gray": "_secondary-gray_1qnsv_92",
|
15
|
+
"secondary-white": "_secondary-white_1qnsv_101",
|
16
|
+
"secondary-red": "_secondary-red_1qnsv_110",
|
17
|
+
"round-button": "_round-button_1qnsv_120",
|
18
|
+
black: z,
|
19
|
+
gray: F,
|
20
|
+
white: R,
|
21
|
+
"outline-button": "_outline-button_1qnsv_160",
|
22
|
+
"outline-asphalt": "_outline-asphalt_1qnsv_168",
|
23
|
+
"outline-gray": "_outline-gray_1qnsv_176",
|
24
|
+
"outline-white": "_outline-white_1qnsv_185",
|
25
|
+
"outline-red": "_outline-red_1qnsv_194",
|
26
|
+
"borderless-button": "_borderless-button_1qnsv_204",
|
27
|
+
"borderless-asphalt": "_borderless-asphalt_1qnsv_211",
|
28
|
+
"borderless-gray": "_borderless-gray_1qnsv_216",
|
29
|
+
"borderless-white": "_borderless-white_1qnsv_221",
|
30
|
+
"borderless-red": "_borderless-red_1qnsv_226",
|
31
|
+
xs: S,
|
32
|
+
"m-s": "_m-s_1qnsv_259",
|
33
|
+
s: V,
|
34
|
+
m: A,
|
35
|
+
l: G,
|
36
|
+
xl: H,
|
37
|
+
xxl: J,
|
38
|
+
full: K,
|
39
|
+
disabled: L,
|
40
|
+
"icon-button": "_icon-button_1qnsv_341"
|
41
|
+
}, M = I(
|
42
|
+
(i, u) => {
|
48
43
|
const {
|
49
|
-
size:
|
50
|
-
variant:
|
51
|
-
form:
|
52
|
-
full:
|
44
|
+
size: o = "m",
|
45
|
+
variant: d = k.PrimarySapphire,
|
46
|
+
form: _ = C.DefaultButton,
|
47
|
+
full: b,
|
53
48
|
clear: n,
|
54
|
-
isIconButton:
|
55
|
-
iconName:
|
56
|
-
children:
|
57
|
-
className:
|
58
|
-
iconButtonClassName:
|
59
|
-
formId:
|
60
|
-
type:
|
61
|
-
rightIcon:
|
62
|
-
count:
|
63
|
-
leftIcon:
|
64
|
-
disabled:
|
65
|
-
...
|
66
|
-
} =
|
67
|
-
[
|
68
|
-
[
|
69
|
-
[
|
70
|
-
[
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
),
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
49
|
+
isIconButton: e = !1,
|
50
|
+
iconName: m,
|
51
|
+
children: v,
|
52
|
+
className: q,
|
53
|
+
iconButtonClassName: p,
|
54
|
+
formId: y,
|
55
|
+
type: h = "button",
|
56
|
+
rightIcon: f,
|
57
|
+
count: r,
|
58
|
+
leftIcon: x,
|
59
|
+
disabled: t,
|
60
|
+
...g
|
61
|
+
} = i, a = {
|
62
|
+
[s.full]: b && !n,
|
63
|
+
[s.disabled]: t && !n,
|
64
|
+
[s.clear]: n,
|
65
|
+
[s[d ?? ""]]: !t || n,
|
66
|
+
[s["icon-button"]]: e
|
67
|
+
}, w = c(
|
68
|
+
q,
|
69
|
+
s.button,
|
70
|
+
a,
|
71
|
+
n ? [] : [s[_ ?? ""], s[o]]
|
72
|
+
), N = c(
|
73
|
+
s.count,
|
74
|
+
a,
|
75
|
+
s[o],
|
76
|
+
s[_ ?? ""]
|
82
77
|
);
|
83
|
-
return
|
84
|
-
if (!o) return;
|
85
|
-
const f = b.current, m = d.current, g = new ResizeObserver(([e]) => {
|
86
|
-
D(e.contentRect.width);
|
87
|
-
}), y = new ResizeObserver(([e]) => {
|
88
|
-
S(e.contentRect.width);
|
89
|
-
});
|
90
|
-
return f && g.observe(f), m && y.observe(m), () => {
|
91
|
-
g.disconnect(), y.disconnect();
|
92
|
-
};
|
93
|
-
}, [o]), /* @__PURE__ */ w(
|
78
|
+
return /* @__PURE__ */ B(
|
94
79
|
"button",
|
95
80
|
{
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
type: z,
|
103
|
-
form: W,
|
104
|
-
...C,
|
105
|
-
disabled: u,
|
106
|
-
ref: v,
|
107
|
-
className: $,
|
81
|
+
type: h,
|
82
|
+
form: y,
|
83
|
+
...g,
|
84
|
+
disabled: t,
|
85
|
+
ref: u,
|
86
|
+
className: w,
|
108
87
|
children: [
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
!!l && /* @__PURE__ */ s("span", { className: F, children: l })
|
114
|
-
] })
|
88
|
+
x,
|
89
|
+
e ? /* @__PURE__ */ l(j, { iconName: m, className: p }) : v,
|
90
|
+
f,
|
91
|
+
!!r && /* @__PURE__ */ l("span", { className: N, children: r })
|
115
92
|
]
|
116
93
|
}
|
117
94
|
);
|
118
95
|
}
|
119
96
|
);
|
120
|
-
|
97
|
+
M.displayName = "Button";
|
121
98
|
export {
|
122
|
-
|
99
|
+
M as Button
|
123
100
|
};
|
@@ -9,8 +9,7 @@ export declare enum EButtonVariantDefault {
|
|
9
9
|
export declare enum EButtonVariantRound {
|
10
10
|
Black = "black",
|
11
11
|
Gray = "gray",
|
12
|
-
White = "white"
|
13
|
-
Sapphire = "sapphire"
|
12
|
+
White = "white"
|
14
13
|
}
|
15
14
|
export declare enum EButtonVariantOutline {
|
16
15
|
Asphalt = "outline-asphalt",
|
@@ -24,10 +23,6 @@ export declare enum EButtonVariantBorderless {
|
|
24
23
|
White = "borderless-white",
|
25
24
|
Red = "borderless-red"
|
26
25
|
}
|
27
|
-
export declare enum EButtonAutoLogo {
|
28
|
-
White = "auto-logo-white",
|
29
|
-
Outline = "auto-logo-outline"
|
30
|
-
}
|
31
26
|
export declare enum EButtonSize {
|
32
27
|
XS = "xs",
|
33
28
|
S = "s",
|
@@ -41,6 +36,5 @@ export declare enum EButtonForm {
|
|
41
36
|
DefaultButton = "default-button",
|
42
37
|
RoundButton = "round-button",
|
43
38
|
OutlineButton = "outline-button",
|
44
|
-
BorderlessButton = "borderless-button"
|
45
|
-
AutoLogoButton = "auto-logo-button"
|
39
|
+
BorderlessButton = "borderless-button"
|
46
40
|
}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
var e = /* @__PURE__ */ ((r) => (r.PrimarySapphire = "primary-sapphire", r.PrimaryCitrine = "primary-citrine", r.SecondaryAsphalt = "secondary-asphalt", r.SecondaryGray = "secondary-gray", r.SecondaryWhite = "secondary-white", r.SecondaryRed = "secondary-red", r))(e || {}), s = /* @__PURE__ */ ((r) => (r.Black = "black", r.Gray = "gray", r.White = "white", r
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.PrimarySapphire = "primary-sapphire", r.PrimaryCitrine = "primary-citrine", r.SecondaryAsphalt = "secondary-asphalt", r.SecondaryGray = "secondary-gray", r.SecondaryWhite = "secondary-white", r.SecondaryRed = "secondary-red", r))(e || {}), s = /* @__PURE__ */ ((r) => (r.Black = "black", r.Gray = "gray", r.White = "white", r))(s || {}), y = /* @__PURE__ */ ((r) => (r.Asphalt = "outline-asphalt", r.Gray = "outline-gray", r.White = "outline-white", r.Red = "outline-red", r))(y || {}), d = /* @__PURE__ */ ((r) => (r.Asphalt = "borderless-asphalt", r.Gray = "borderless-gray", r.White = "borderless-white", r.Red = "borderless-red", r))(d || {}), h = /* @__PURE__ */ ((r) => (r.XS = "xs", r.S = "s", r.M = "m", r.L = "l", r.XL = "xl", r.XXL = "xxl", r.MS = "m-s", r))(h || {}), l = /* @__PURE__ */ ((r) => (r.DefaultButton = "default-button", r.RoundButton = "round-button", r.OutlineButton = "outline-button", r.BorderlessButton = "borderless-button", r))(l || {});
|
2
2
|
export {
|
3
|
-
l as
|
4
|
-
|
5
|
-
d as
|
6
|
-
y as EButtonVariantBorderless,
|
3
|
+
l as EButtonForm,
|
4
|
+
h as EButtonSize,
|
5
|
+
d as EButtonVariantBorderless,
|
7
6
|
e as EButtonVariantDefault,
|
8
|
-
|
7
|
+
y as EButtonVariantOutline,
|
9
8
|
s as EButtonVariantRound
|
10
9
|
};
|
@@ -4,7 +4,6 @@ import { ReactNode } from 'react';
|
|
4
4
|
export type TCheckboxMimirProps = CheckboxProps & {
|
5
5
|
children?: ReactNode;
|
6
6
|
isInteractive?: boolean;
|
7
|
-
disabled?: boolean;
|
8
7
|
};
|
9
8
|
export declare const CheckboxMimir: import('react').ForwardRefExoticComponent<{
|
10
9
|
suppressHydrationWarning?: boolean | undefined;
|
@@ -299,5 +298,4 @@ export declare const CheckboxMimir: import('react').ForwardRefExoticComponent<{
|
|
299
298
|
} & {
|
300
299
|
children?: ReactNode;
|
301
300
|
isInteractive?: boolean;
|
302
|
-
disabled?: boolean;
|
303
301
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
@@ -1,62 +1,60 @@
|
|
1
|
-
import { jsxs as L, jsx as
|
2
|
-
import { W as O, p as V, o as
|
3
|
-
import
|
4
|
-
import { w as
|
5
|
-
import { u as
|
6
|
-
import { r as
|
1
|
+
import { jsxs as L, jsx as p } from "react/jsx-runtime";
|
2
|
+
import { W as O, p as V, o as d, $ as W, b as X, D as q, H as z, c as D } from "../../keyboard-wis2TUql.js";
|
3
|
+
import h, { useId as J, useState as Q, useMemo as Y, useCallback as Z, forwardRef as ee } from "react";
|
4
|
+
import { w as re } from "../../use-active-press-CnDeVvQq.js";
|
5
|
+
import { u as ae, a as oe, b as te, T as ce, I as ne, G as se, j as ie, p as le, K as de } from "../../label-BmphTIGY.js";
|
6
|
+
import { r as be } from "../../bugs-diTMAGNw.js";
|
7
7
|
import { H as ue } from "../../field-BLi5834s.js";
|
8
8
|
import { c as me } from "../../index-DIxK0V-G.js";
|
9
|
-
import { Icon as
|
9
|
+
import { Icon as fe } from "../../icons/Icon.js";
|
10
10
|
import '../../assets/CheckboxMimir.css';let pe = "span";
|
11
11
|
function he(u, m) {
|
12
|
-
let
|
13
|
-
|
14
|
-
|
12
|
+
let n = J(), f = ae(), s = oe(), { id: i = f || `headlessui-checkbox-${n}`, disabled: e = s || !1, autoFocus: a = !1, checked: P, defaultChecked: j, onChange: y, name: v, value: F, form: I, indeterminate: l = !1, ...H } = u, o = te(j), [t, c] = ce(P, y, o ?? !1), N = ne(), R = se(), E = V(), [k, x] = Q(!1), $ = d(() => {
|
13
|
+
x(!0), c == null || c(!t), E.nextFrame(() => {
|
14
|
+
x(!1);
|
15
15
|
});
|
16
|
-
}), K =
|
17
|
-
if (
|
18
|
-
|
19
|
-
}), T =
|
20
|
-
|
21
|
-
}),
|
22
|
-
if (o !== void 0) return
|
23
|
-
}, [
|
24
|
-
return
|
16
|
+
}), K = d((r) => {
|
17
|
+
if (be(r.currentTarget)) return r.preventDefault();
|
18
|
+
r.preventDefault(), $();
|
19
|
+
}), T = d((r) => {
|
20
|
+
r.key === D.Space ? (r.preventDefault(), $()) : r.key === D.Enter && le(r.currentTarget);
|
21
|
+
}), M = d((r) => r.preventDefault()), { isFocusVisible: _, focusProps: w } = W({ autoFocus: a }), { isHovered: g, hoverProps: G } = X({ isDisabled: e }), { pressed: C, pressProps: S } = re({ disabled: e }), U = q({ ref: m, id: i, role: "checkbox", "aria-checked": l ? "mixed" : t ? "true" : "false", "aria-labelledby": N, "aria-describedby": R, "aria-disabled": e ? !0 : void 0, indeterminate: l ? "true" : void 0, tabIndex: e ? void 0 : 0, onKeyUp: e ? void 0 : T, onKeyPress: e ? void 0 : M, onClick: e ? void 0 : K }, w, G, S), A = Y(() => ({ checked: t, disabled: e, hover: g, focus: _, active: C, indeterminate: l, changing: k, autofocus: a }), [t, l, e, g, _, C, k, a]), B = Z(() => {
|
22
|
+
if (o !== void 0) return c == null ? void 0 : c(o);
|
23
|
+
}, [c, o]);
|
24
|
+
return h.createElement(h.Fragment, null, v != null && h.createElement(ie, { disabled: e, data: { [v]: F || "on" }, overrides: { type: "checkbox", checked: t }, form: I, onReset: B }), z({ ourProps: U, theirProps: H, slot: A, defaultTag: pe, name: "Checkbox" }));
|
25
25
|
}
|
26
26
|
let ve = O(he);
|
27
|
-
const ke = "
|
27
|
+
const ke = "_container_13bjb_2", xe = "_checkbox_13bjb_8", $e = "_label_13bjb_27", _e = "_enabled_13bjb_31", b = {
|
28
28
|
container: ke,
|
29
29
|
checkbox: xe,
|
30
|
-
|
31
|
-
|
30
|
+
label: $e,
|
31
|
+
enabled: _e
|
32
32
|
}, Ne = ee(
|
33
33
|
(u, m) => {
|
34
34
|
const {
|
35
|
-
checked:
|
36
|
-
onChange:
|
37
|
-
children:
|
35
|
+
checked: n,
|
36
|
+
onChange: f,
|
37
|
+
children: s,
|
38
38
|
id: i,
|
39
39
|
isInteractive: e = !0,
|
40
|
-
|
41
|
-
...p
|
40
|
+
...a
|
42
41
|
} = u;
|
43
|
-
return /* @__PURE__ */ L(ue, { className:
|
44
|
-
/* @__PURE__ */
|
42
|
+
return /* @__PURE__ */ L(ue, { className: b.container, children: [
|
43
|
+
/* @__PURE__ */ p(
|
45
44
|
ve,
|
46
45
|
{
|
47
46
|
id: i,
|
48
47
|
ref: m,
|
49
|
-
checked:
|
50
|
-
onChange: e
|
51
|
-
className: me(
|
52
|
-
[
|
48
|
+
checked: n,
|
49
|
+
onChange: e ? f : void 0,
|
50
|
+
className: me(b.checkbox, {
|
51
|
+
[b.enabled]: n
|
53
52
|
}),
|
54
|
-
|
55
|
-
|
56
|
-
children: /* @__PURE__ */ h(be, { iconName: "Done16px" })
|
53
|
+
...a,
|
54
|
+
children: /* @__PURE__ */ p(fe, { iconName: "Done16px" })
|
57
55
|
}
|
58
56
|
),
|
59
|
-
|
57
|
+
s && /* @__PURE__ */ p(de, { htmlFor: i, className: b.label, children: s })
|
60
58
|
] });
|
61
59
|
}
|
62
60
|
);
|
@@ -1,30 +1,30 @@
|
|
1
|
-
import { jsxs as r, jsx as
|
2
|
-
import { c as
|
3
|
-
import { EChipSize as
|
1
|
+
import { jsxs as r, jsx as m } from "react/jsx-runtime";
|
2
|
+
import { c as p } from "../../index-DIxK0V-G.js";
|
3
|
+
import { EChipSize as h, EChipVariant as b } from "./constants.js";
|
4
4
|
import { Button as l } from "../Button/Button.js";
|
5
|
-
import '../../assets/Chip.css';const
|
6
|
-
chip:
|
7
|
-
"with-action": "_with-
|
8
|
-
disabled:
|
9
|
-
xs:
|
10
|
-
s:
|
11
|
-
m:
|
12
|
-
sapphire:
|
13
|
-
citrine:
|
5
|
+
import '../../assets/Chip.css';const v = "_chip_19bvm_2", d = "_disabled_19bvm_40", x = "_xs_19bvm_51", g = "_s_19bvm_59", u = "_m_19bvm_67", w = "_sapphire_19bvm_75", C = "_citrine_19bvm_84", f = "_asphalt_19bvm_93", y = "_gray_19bvm_102", N = "_white_19bvm_111", j = "_green_19bvm_120", s = {
|
6
|
+
chip: v,
|
7
|
+
"with-action": "_with-action_19bvm_18",
|
8
|
+
disabled: d,
|
9
|
+
xs: x,
|
10
|
+
s: g,
|
11
|
+
m: u,
|
12
|
+
sapphire: w,
|
13
|
+
citrine: C,
|
14
14
|
asphalt: f,
|
15
15
|
gray: y,
|
16
16
|
white: N,
|
17
|
-
green:
|
17
|
+
green: j
|
18
18
|
}, z = ({
|
19
|
-
size: i =
|
20
|
-
variant: _ =
|
19
|
+
size: i = h.M,
|
20
|
+
variant: _ = b.Sapphire,
|
21
21
|
className: c,
|
22
22
|
disabled: e,
|
23
23
|
withAction: t,
|
24
24
|
children: o,
|
25
25
|
onClose: a
|
26
26
|
}) => {
|
27
|
-
const n =
|
27
|
+
const n = p(
|
28
28
|
s.chip,
|
29
29
|
c,
|
30
30
|
{
|
@@ -36,7 +36,7 @@ import '../../assets/Chip.css';const d = "_chip_10jmj_2", x = "_disabled_10jmj_4
|
|
36
36
|
);
|
37
37
|
return /* @__PURE__ */ r("div", { className: n, children: [
|
38
38
|
o,
|
39
|
-
t && /* @__PURE__ */
|
39
|
+
t && /* @__PURE__ */ m(l, { isIconButton: !0, iconName: "Close16px", onClick: a, clear: !0 })
|
40
40
|
] });
|
41
41
|
};
|
42
42
|
export {
|
@@ -65,10 +65,6 @@ export type TProps = {
|
|
65
65
|
* Диапазон доступных дат [от, до]
|
66
66
|
*/
|
67
67
|
validRange?: [Date | string, Date | string];
|
68
|
-
/**
|
69
|
-
* Флаг показывающий необходилось кнопки очиски
|
70
|
-
*/
|
71
|
-
withClearButton?: boolean;
|
72
68
|
} & TInputProps;
|
73
69
|
export type TDatePickerValue = {
|
74
70
|
value?: string;
|
@@ -143,8 +139,4 @@ export declare const DatePicker: import('react').MemoExoticComponent<import('rea
|
|
143
139
|
* Диапазон доступных дат [от, до]
|
144
140
|
*/
|
145
141
|
validRange?: [Date | string, Date | string];
|
146
|
-
/**
|
147
|
-
* Флаг показывающий необходилось кнопки очиски
|
148
|
-
*/
|
149
|
-
withClearButton?: boolean;
|
150
142
|
} & import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
|