mimir-ui-kit 1.43.9 → 1.43.11
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-CGZoshMl.js +224 -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/CarBodyButton.css +1 -0
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- 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/MiniButton.css +1 -0
- 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/RoundButton.css +1 -0
- package/dist/assets/ScrollWrapper.css +1 -0
- 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 +10 -3
- package/dist/components/Accordion/Accordion.js +286 -212
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +0 -4
- package/dist/components/Accordion/constants.js +4 -5
- package/dist/components/AnchorLink/Link.js +21 -20
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +110 -87
- package/dist/components/Button/constants.d.ts +8 -2
- package/dist/components/Button/constants.js +6 -5
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +26 -0
- package/dist/components/CarBodyButton/CarBodyButton.js +40 -0
- package/dist/components/CarBodyButton/index.d.ts +1 -0
- package/dist/components/CarBodyButton/index.js +4 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -35
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/DatePicker/DatePicker.js +182 -169
- package/dist/components/DatePicker/DatePickerModal.js +134 -98
- package/dist/components/DatePicker/MonthPickerModal.js +115 -95
- package/dist/components/DatePicker/YearPickerModal.js +109 -89
- package/dist/components/DatePicker/constants.d.ts +1 -0
- package/dist/components/DatePicker/constants.js +1 -1
- package/dist/components/DatePicker/hooks.d.ts +2 -1
- package/dist/components/DatePicker/hooks.js +12 -12
- package/dist/components/Drawer/Drawer.js +172 -138
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +11 -0
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +27 -0
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +47 -38
- package/dist/components/GosZnak/utils.d.ts +6 -0
- package/dist/components/GosZnak/utils.js +15 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +38 -42
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +159 -139
- package/dist/components/InputRangeSlider/constants.d.ts +5 -0
- package/dist/components/InputRangeSlider/constants.js +11 -6
- package/dist/components/ListFiles/ListFiles.js +41 -39
- package/dist/components/ListPhotos/ListPhotos.js +17 -18
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/{InputClearButton/ClearButton.d.ts → MiniButton/MiniButton.d.ts} +17 -8
- 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 +4 -0
- package/dist/components/MiniButton/index.js +6 -0
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +153 -152
- package/dist/components/MultiSelectSearch/constants.d.ts +1 -0
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +18 -16
- package/dist/components/NotificationBadge/NotificationBadge.js +49 -33
- package/dist/components/NotificationBadge/constants.d.ts +9 -2
- package/dist/components/NotificationBadge/constants.js +3 -2
- package/dist/components/NotificationBadge/types.d.ts +11 -1
- package/dist/components/NotificationBadge/utils.d.ts +8 -0
- package/dist/components/NotificationBadge/utils.js +4 -0
- package/dist/components/OtpInput/OtpInput.js +44 -40
- package/dist/components/OtpInput/constants.d.ts +4 -0
- package/dist/components/OtpInput/constants.js +6 -4
- package/dist/components/OtpInput/index.d.ts +1 -0
- package/dist/components/OtpInput/index.js +2 -0
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/RoundButton/RoundButton.d.ts +82 -0
- package/dist/components/RoundButton/RoundButton.js +69 -0
- package/dist/components/RoundButton/constants.d.ts +11 -0
- package/dist/components/RoundButton/constants.js +5 -0
- package/dist/components/RoundButton/index.d.ts +2 -0
- package/dist/components/RoundButton/index.js +7 -0
- package/dist/components/RoundButton/types.d.ts +20 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -0
- package/dist/components/SelectSearch/SelectSearch.js +273 -236
- package/dist/components/SelectSearch/types.d.ts +9 -1
- package/dist/components/SelectSearch/utils.d.ts +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -5
- package/dist/components/Slider/Slider.js +34 -36
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +55 -51
- package/dist/hooks-Cd4Ez6_j.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/16px/DropdownArrowDown16px.js +23 -0
- package/dist/icons/components/24px/EyeClosed24px.js +65 -0
- package/dist/icons/components/Avito.js +36 -13
- package/dist/icons/components/Site.js +13 -36
- package/dist/icons/components/index.js +564 -591
- package/dist/{index-C2dQUuc9.js → index-DrVFMaBi.js} +1184 -1346
- package/dist/index.js +73 -69
- package/dist/styles.module-BfkM1-KJ.js +32 -0
- package/package.json +1 -1
- package/dist/Input-BU_6U1CW.js +0 -227
- package/dist/assets/ClearButton.css +0 -1
- package/dist/components/InputClearButton/ClearButton.js +0 -41
- package/dist/components/InputClearButton/constants.d.ts +0 -8
- package/dist/components/InputClearButton/constants.js +0 -5
- package/dist/components/InputClearButton/index.d.ts +0 -4
- package/dist/components/InputClearButton/index.js +0 -6
- package/dist/hooks-HgN6Yauq.js +0 -117
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +0 -59
- package/dist/icons/components/64px/AtsVendors64px.js +0 -37
- package/dist/icons/components/64px/ButtonOn64px.js +0 -31
- package/dist/icons/components/64px/BuyoutAuto64px.js +0 -45
- package/dist/icons/components/64px/CarAssistance64px.js +0 -44
- package/dist/icons/components/64px/CarDelivery64px.js +0 -37
- package/dist/icons/components/64px/CarSearchReturn64px.js +0 -45
- package/dist/icons/components/64px/CarService64px.js +0 -37
- package/dist/icons/components/64px/Case64px.js +0 -33
- package/dist/icons/components/64px/CoatOfArms64px.js +0 -149
- package/dist/icons/components/64px/CoffeeCup64px.js +0 -44
- package/dist/icons/components/64px/Cup64px.js +0 -38
- package/dist/icons/components/64px/ExpertAdvice64px.js +0 -40
- package/dist/icons/components/64px/Fines64px.js +0 -88
- package/dist/icons/components/64px/Fuel64px.js +0 -38
- package/dist/icons/components/64px/GazprombankIcon24px.js +0 -21
- package/dist/icons/components/64px/Kasko64px.js +0 -44
- package/dist/icons/components/64px/LegalSupport64px.js +0 -58
- package/dist/icons/components/64px/Microphone64px.js +0 -37
- package/dist/icons/components/64px/Money64px.js +0 -60
- package/dist/icons/components/64px/PaymentSchedule64px.js +0 -39
- package/dist/icons/components/64px/PersonalManager64px.js +0 -100
- package/dist/icons/components/64px/PreApproval64px.js +0 -44
- package/dist/icons/components/64px/Questions64px.js +0 -37
- package/dist/icons/components/64px/SupportGeography64px.js +0 -51
- package/dist/icons/components/64px/Timer64px.js +0 -45
- package/dist/icons/components/64px/Twogis64px.js +0 -51
- package/dist/icons/components/64px/Vehicles64px.js +0 -45
- package/dist/icons/components/64px/Workplace64px.js +0 -38
- package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -1,9 +1,9 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
1
|
+
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { c as n } 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 I, ELinkVariant as L } from "./constants.js";
|
5
|
+
import { Icon as a } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/Link.css';const g = "_link_1e4ck_2", j = "_sample_1e4ck_23", u = "_anchor_1e4ck_27", z = "_disabled_1e4ck_31", C = "_icon_1e4ck_41", E = "_xs_1e4ck_50", R = "_s_1e4ck_23", v = "_m_1e4ck_62", w = "_l_1e4ck_2", s = {
|
7
7
|
link: g,
|
8
8
|
sample: j,
|
9
9
|
anchor: u,
|
@@ -14,44 +14,45 @@ import '../../assets/Link.css';const g = "_link_1bc9a_2", j = "_sample_1bc9a_20"
|
|
14
14
|
m: v,
|
15
15
|
l: w
|
16
16
|
}, V = x(
|
17
|
-
(
|
17
|
+
(t, i) => {
|
18
18
|
const {
|
19
19
|
as: l = "button",
|
20
20
|
disabled: r,
|
21
21
|
leftIcon: c,
|
22
22
|
children: _,
|
23
|
-
rightIcon:
|
23
|
+
rightIcon: o,
|
24
24
|
className: m,
|
25
|
-
size:
|
26
|
-
variant: d =
|
25
|
+
size: k = I.L,
|
26
|
+
variant: d = L.ANCHOR,
|
27
27
|
rel: p,
|
28
28
|
target: f,
|
29
29
|
...N
|
30
|
-
} =
|
30
|
+
} = t, b = n(s.link, m, s[d], s[k], {
|
31
31
|
[s.disabled]: r
|
32
32
|
});
|
33
|
-
return /* @__PURE__ */
|
33
|
+
return /* @__PURE__ */ h(
|
34
34
|
l,
|
35
35
|
{
|
36
|
-
|
37
|
-
|
36
|
+
tabIndex: 0,
|
37
|
+
ref: i,
|
38
|
+
className: b,
|
38
39
|
rel: p,
|
39
40
|
target: f,
|
40
41
|
...N,
|
41
42
|
children: [
|
42
|
-
c && /* @__PURE__ */
|
43
|
-
|
43
|
+
c && /* @__PURE__ */ e(
|
44
|
+
a,
|
44
45
|
{
|
45
46
|
...c,
|
46
|
-
className:
|
47
|
+
className: n(s.icon, c.className)
|
47
48
|
}
|
48
49
|
),
|
49
50
|
_,
|
50
|
-
|
51
|
-
|
51
|
+
o && /* @__PURE__ */ e(
|
52
|
+
a,
|
52
53
|
{
|
53
|
-
...
|
54
|
-
className:
|
54
|
+
...o,
|
55
|
+
className: n(s.icon, o.className)
|
55
56
|
}
|
56
57
|
)
|
57
58
|
]
|
@@ -1,49 +1,49 @@
|
|
1
|
-
import { jsxs as _, jsx as
|
1
|
+
import { jsxs as _, jsx as i } from "react/jsx-runtime";
|
2
2
|
import { c } from "../../index-DIxK0V-G.js";
|
3
|
-
import { memo as
|
3
|
+
import { memo as d } from "react";
|
4
4
|
import { EAvatarSize as t } from "./constants.js";
|
5
|
-
import { Icon as
|
6
|
-
import { AppImage as
|
5
|
+
import { Icon as n } from "../../icons/Icon.js";
|
6
|
+
import { AppImage as l } 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 v = "_avatar_1jdhi_2", x = "_image_1jdhi_11", j = "_s_1jdhi_17", g = "_m_1jdhi_23", h = "_l_1jdhi_28", o = {
|
9
|
+
avatar: v,
|
10
|
+
image: x,
|
11
|
+
s: j,
|
12
|
+
m: g,
|
13
|
+
l: h,
|
14
|
+
default: "_default_1jdhi_33"
|
15
|
+
}, u = d(
|
16
16
|
({
|
17
17
|
size: a = t.M,
|
18
18
|
className: s,
|
19
|
-
notificationsCount:
|
20
|
-
src:
|
21
|
-
alt:
|
19
|
+
notificationsCount: m = 0,
|
20
|
+
src: r,
|
21
|
+
alt: e = "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]: !r
|
29
29
|
}),
|
30
30
|
"data-testid": "avatar-container",
|
31
31
|
children: [
|
32
|
-
|
33
|
-
|
32
|
+
r ? /* @__PURE__ */ i(
|
33
|
+
l,
|
34
34
|
{
|
35
|
-
src:
|
36
|
-
alt:
|
35
|
+
src: r,
|
36
|
+
alt: e,
|
37
37
|
className: o.image,
|
38
38
|
"data-testid": "avatar-image"
|
39
39
|
}
|
40
|
-
) : /* @__PURE__ */
|
41
|
-
!!
|
40
|
+
) : /* @__PURE__ */ i(n, { iconName: a === t.L ? "User24px" : "User16px" }),
|
41
|
+
!!m && /* @__PURE__ */ i(
|
42
42
|
f,
|
43
43
|
{
|
44
|
-
count:
|
44
|
+
count: m,
|
45
45
|
position: p,
|
46
|
-
size: a === t.S ? "
|
46
|
+
size: a === t.S ? "xs" : "s",
|
47
47
|
absolute: !0
|
48
48
|
}
|
49
49
|
)
|
@@ -52,7 +52,7 @@ import '../../assets/Avatar.css';const u = "_avatar_bbuza_2", d = "_image_bbuza_
|
|
52
52
|
);
|
53
53
|
}
|
54
54
|
);
|
55
|
-
|
55
|
+
u.displayName = "Avatar";
|
56
56
|
export {
|
57
|
-
|
57
|
+
u as Avatar
|
58
58
|
};
|
@@ -1,100 +1,123 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c } from "../../index-DIxK0V-G.js";
|
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
|
-
|
1
|
+
import { jsxs as w, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { c as x } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as L, useRef as k, useState as B, useEffect as V } from "react";
|
4
|
+
import { EButtonVariantDefault as q, EButtonForm as A } from "./constants.js";
|
5
|
+
import { Icon as G } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/Button.css';const H = "_button_1lpn9_2", J = "_clear_1lpn9_43", K = "_count_1lpn9_54", M = "_black_1lpn9_133", Q = "_gray_1lpn9_142", T = "_white_1lpn9_151", U = "_sapphire_1lpn9_160", X = "_xs_1lpn9_288", Y = "_s_1lpn9_84", Z = "_m_1lpn9_298", tt = "_l_1lpn9_325", nt = "_xl_1lpn9_334", ot = "_xxl_1lpn9_343", lt = "_full_1lpn9_359", et = "_disabled_1lpn9_376", t = {
|
7
|
+
button: H,
|
8
|
+
clear: J,
|
9
|
+
count: K,
|
10
|
+
"default-button": "_default-button_1lpn9_62",
|
11
|
+
"primary-sapphire": "_primary-sapphire_1lpn9_65",
|
12
|
+
"primary-citrine": "_primary-citrine_1lpn9_74",
|
13
|
+
"secondary-asphalt": "_secondary-asphalt_1lpn9_84",
|
14
|
+
"secondary-gray": "_secondary-gray_1lpn9_93",
|
15
|
+
"secondary-white": "_secondary-white_1lpn9_102",
|
16
|
+
"secondary-red": "_secondary-red_1lpn9_111",
|
17
|
+
"round-button": "_round-button_1lpn9_121",
|
18
|
+
black: M,
|
19
|
+
gray: Q,
|
20
|
+
white: T,
|
21
|
+
sapphire: U,
|
22
|
+
"outline-button": "_outline-button_1lpn9_170",
|
23
|
+
"outline-asphalt": "_outline-asphalt_1lpn9_178",
|
24
|
+
"outline-gray": "_outline-gray_1lpn9_186",
|
25
|
+
"outline-white": "_outline-white_1lpn9_195",
|
26
|
+
"outline-red": "_outline-red_1lpn9_204",
|
27
|
+
"borderless-button": "_borderless-button_1lpn9_214",
|
28
|
+
"borderless-asphalt": "_borderless-asphalt_1lpn9_221",
|
29
|
+
"borderless-gray": "_borderless-gray_1lpn9_226",
|
30
|
+
"borderless-white": "_borderless-white_1lpn9_231",
|
31
|
+
"borderless-red": "_borderless-red_1lpn9_236",
|
32
|
+
"auto-logo-button": "_auto-logo-button_1lpn9_242",
|
33
|
+
"auto-logo-white": "_auto-logo-white_1lpn9_246",
|
34
|
+
"auto-logo-outline": "_auto-logo-outline_1lpn9_256",
|
35
|
+
xs: X,
|
36
|
+
"m-s": "_m-s_1lpn9_298",
|
37
|
+
s: Y,
|
38
|
+
m: Z,
|
39
|
+
l: tt,
|
40
|
+
xl: nt,
|
41
|
+
xxl: ot,
|
42
|
+
full: lt,
|
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) => {
|
43
48
|
const {
|
44
|
-
size:
|
45
|
-
variant:
|
46
|
-
form:
|
47
|
-
full:
|
49
|
+
size: r = "m",
|
50
|
+
variant: _ = q.PrimarySapphire,
|
51
|
+
form: a = A.DefaultButton,
|
52
|
+
full: o,
|
48
53
|
clear: n,
|
49
|
-
isIconButton:
|
50
|
-
iconName:
|
51
|
-
children:
|
52
|
-
className:
|
53
|
-
iconButtonClassName:
|
54
|
-
formId:
|
55
|
-
type:
|
56
|
-
rightIcon:
|
57
|
-
count:
|
58
|
-
leftIcon:
|
59
|
-
disabled:
|
60
|
-
...
|
61
|
-
} =
|
62
|
-
[
|
63
|
-
[
|
64
|
-
[
|
65
|
-
[
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
a,
|
71
|
-
n ? [] :
|
72
|
-
),
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
54
|
+
isIconButton: c = !1,
|
55
|
+
iconName: R,
|
56
|
+
children: E,
|
57
|
+
className: I,
|
58
|
+
iconButtonClassName: O,
|
59
|
+
formId: W,
|
60
|
+
type: z = "button",
|
61
|
+
rightIcon: i,
|
62
|
+
count: l,
|
63
|
+
leftIcon: p,
|
64
|
+
disabled: u,
|
65
|
+
...C
|
66
|
+
} = N, d = k(null), b = k(null), [j, D] = B(0), [P, S] = B(0), h = {
|
67
|
+
[t.disabled]: u && !n,
|
68
|
+
[t.clear]: n,
|
69
|
+
[t["icon-button"]]: c,
|
70
|
+
[t[_]]: !!_
|
71
|
+
}, $ = x(
|
72
|
+
I,
|
73
|
+
t.button,
|
74
|
+
h,
|
75
|
+
n ? [] : [t[a ?? ""], t[r]],
|
76
|
+
o && !n ? [t.full] : ""
|
77
|
+
), F = x(
|
78
|
+
t.count,
|
79
|
+
h,
|
80
|
+
t[r],
|
81
|
+
t[a ?? ""]
|
77
82
|
);
|
78
|
-
return
|
83
|
+
return V(() => {
|
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(
|
79
94
|
"button",
|
80
95
|
{
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
96
|
+
style: {
|
97
|
+
"--left-block-width": `${j}px`,
|
98
|
+
"--right-block-width": `${P}px`
|
99
|
+
},
|
100
|
+
"data-has-left-icon": !!p,
|
101
|
+
"data-has-right-icon": !!i || !!l,
|
102
|
+
type: z,
|
103
|
+
form: W,
|
104
|
+
...C,
|
105
|
+
disabled: u,
|
106
|
+
ref: v,
|
107
|
+
className: $,
|
87
108
|
children: [
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
109
|
+
/* @__PURE__ */ s("div", { className: t["left_block-wrap"], ref: b, children: p }),
|
110
|
+
c ? /* @__PURE__ */ s(G, { iconName: R, className: O }) : E,
|
111
|
+
/* @__PURE__ */ w("div", { className: t["right_block-wrap"], ref: d, children: [
|
112
|
+
i,
|
113
|
+
!!l && /* @__PURE__ */ s("span", { className: F, children: l })
|
114
|
+
] })
|
92
115
|
]
|
93
116
|
}
|
94
117
|
);
|
95
118
|
}
|
96
119
|
);
|
97
|
-
|
120
|
+
st.displayName = "Button";
|
98
121
|
export {
|
99
|
-
|
122
|
+
st as Button
|
100
123
|
};
|
@@ -9,7 +9,8 @@ export declare enum EButtonVariantDefault {
|
|
9
9
|
export declare enum EButtonVariantRound {
|
10
10
|
Black = "black",
|
11
11
|
Gray = "gray",
|
12
|
-
White = "white"
|
12
|
+
White = "white",
|
13
|
+
Sapphire = "sapphire"
|
13
14
|
}
|
14
15
|
export declare enum EButtonVariantOutline {
|
15
16
|
Asphalt = "outline-asphalt",
|
@@ -23,6 +24,10 @@ export declare enum EButtonVariantBorderless {
|
|
23
24
|
White = "borderless-white",
|
24
25
|
Red = "borderless-red"
|
25
26
|
}
|
27
|
+
export declare enum EButtonAutoLogo {
|
28
|
+
White = "auto-logo-white",
|
29
|
+
Outline = "auto-logo-outline"
|
30
|
+
}
|
26
31
|
export declare enum EButtonSize {
|
27
32
|
XS = "xs",
|
28
33
|
S = "s",
|
@@ -36,5 +41,6 @@ export declare enum EButtonForm {
|
|
36
41
|
DefaultButton = "default-button",
|
37
42
|
RoundButton = "round-button",
|
38
43
|
OutlineButton = "outline-button",
|
39
|
-
BorderlessButton = "borderless-button"
|
44
|
+
BorderlessButton = "borderless-button",
|
45
|
+
AutoLogoButton = "auto-logo-button"
|
40
46
|
}
|
@@ -1,9 +1,10 @@
|
|
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 || {}),
|
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.Sapphire = "sapphire", r))(s || {}), h = /* @__PURE__ */ ((r) => (r.Asphalt = "outline-asphalt", r.Gray = "outline-gray", r.White = "outline-white", r.Red = "outline-red", r))(h || {}), y = /* @__PURE__ */ ((r) => (r.Asphalt = "borderless-asphalt", r.Gray = "borderless-gray", r.White = "borderless-white", r.Red = "borderless-red", r))(y || {}), l = /* @__PURE__ */ ((r) => (r.White = "auto-logo-white", r.Outline = "auto-logo-outline", r))(l || {}), d = /* @__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))(d || {}), p = /* @__PURE__ */ ((r) => (r.DefaultButton = "default-button", r.RoundButton = "round-button", r.OutlineButton = "outline-button", r.BorderlessButton = "borderless-button", r.AutoLogoButton = "auto-logo-button", r))(p || {});
|
2
2
|
export {
|
3
|
-
l as
|
4
|
-
|
5
|
-
d as
|
3
|
+
l as EButtonAutoLogo,
|
4
|
+
p as EButtonForm,
|
5
|
+
d as EButtonSize,
|
6
|
+
y as EButtonVariantBorderless,
|
6
7
|
e as EButtonVariantDefault,
|
7
|
-
|
8
|
+
h as EButtonVariantOutline,
|
8
9
|
s as EButtonVariantRound
|
9
10
|
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ComponentProps } from 'react';
|
2
|
+
import { TIcon } from '../../icons';
|
3
|
+
|
4
|
+
export type TProps = ComponentProps<'button'> & {
|
5
|
+
/**
|
6
|
+
* Текст кнопки.
|
7
|
+
*/
|
8
|
+
children: string;
|
9
|
+
/**
|
10
|
+
* Класс, применяемый к корневому элементу кнопки.
|
11
|
+
*/
|
12
|
+
className?: string;
|
13
|
+
/**
|
14
|
+
* Класс, применяемый к иконке.
|
15
|
+
*/
|
16
|
+
iconButtonClassName?: string;
|
17
|
+
/**
|
18
|
+
* Флаг, указывающий, отключена ли кнопка.
|
19
|
+
*/
|
20
|
+
disabled?: boolean;
|
21
|
+
/**
|
22
|
+
* Название иконки
|
23
|
+
*/
|
24
|
+
iconName: TIcon;
|
25
|
+
};
|
26
|
+
export declare const CarBodyButton: import('react').ForwardRefExoticComponent<Omit<TProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { jsxs as b, jsx as u } from "react/jsx-runtime";
|
2
|
+
import { c as f } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as p } from "react";
|
4
|
+
import { Icon as N } from "../../icons/Icon.js";
|
5
|
+
import '../../assets/CarBodyButton.css';const _ = "_button_1rwof_2", B = "_disabled_1rwof_54", t = {
|
6
|
+
button: _,
|
7
|
+
disabled: B
|
8
|
+
}, y = p(
|
9
|
+
(s, a) => {
|
10
|
+
const {
|
11
|
+
iconName: n,
|
12
|
+
children: r,
|
13
|
+
className: e,
|
14
|
+
iconButtonClassName: c,
|
15
|
+
type: d = "button",
|
16
|
+
disabled: o,
|
17
|
+
...m
|
18
|
+
} = s, l = {
|
19
|
+
[t.disabled]: o
|
20
|
+
}, i = f(e, t.button, l);
|
21
|
+
return /* @__PURE__ */ b(
|
22
|
+
"button",
|
23
|
+
{
|
24
|
+
type: d,
|
25
|
+
...m,
|
26
|
+
disabled: o,
|
27
|
+
ref: a,
|
28
|
+
className: i,
|
29
|
+
children: [
|
30
|
+
/* @__PURE__ */ u(N, { iconName: n, className: c }),
|
31
|
+
r
|
32
|
+
]
|
33
|
+
}
|
34
|
+
);
|
35
|
+
}
|
36
|
+
);
|
37
|
+
y.displayName = "CarBodyButton";
|
38
|
+
export {
|
39
|
+
y as CarBodyButton
|
40
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { CarBodyButton, type TProps as TCarBodyButtonProps } from './CarBodyButton';
|
@@ -4,6 +4,7 @@ import { ReactNode } from 'react';
|
|
4
4
|
export type TCheckboxMimirProps = CheckboxProps & {
|
5
5
|
children?: ReactNode;
|
6
6
|
isInteractive?: boolean;
|
7
|
+
disabled?: boolean;
|
7
8
|
};
|
8
9
|
export declare const CheckboxMimir: import('react').ForwardRefExoticComponent<{
|
9
10
|
suppressHydrationWarning?: boolean | undefined;
|
@@ -298,4 +299,5 @@ export declare const CheckboxMimir: import('react').ForwardRefExoticComponent<{
|
|
298
299
|
} & {
|
299
300
|
children?: ReactNode;
|
300
301
|
isInteractive?: boolean;
|
302
|
+
disabled?: boolean;
|
301
303
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
@@ -1,60 +1,62 @@
|
|
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 h } from "react/jsx-runtime";
|
2
|
+
import { W as O, p as V, o as l, $ as W, b as X, D as q, H as z, c as P } from "../../keyboard-wis2TUql.js";
|
3
|
+
import v, { useId as J, useState as Q, useMemo as Y, useCallback as Z, forwardRef as ee } from "react";
|
4
|
+
import { w as ae } from "../../use-active-press-CnDeVvQq.js";
|
5
|
+
import { u as re, a as oe, b as te, T as se, I as ce, G as ne, j as ie, p as de, K as le } from "../../label-BmphTIGY.js";
|
6
|
+
import { r as fe } 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 be } 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 c = J(), b = re(), n = oe(), { id: i = b || `headlessui-checkbox-${c}`, disabled: e = n || !1, autoFocus: r = !1, checked: p, defaultChecked: y, onChange: F, name: k, value: w, form: I, indeterminate: d = !1, ...H } = u, o = te(y), [t, s] = se(p, F, o ?? !1), N = ce(), R = ne(), E = V(), [x, $] = Q(!1), _ = l(() => {
|
13
|
+
$(!0), s == null || s(!t), E.nextFrame(() => {
|
14
|
+
$(!1);
|
15
15
|
});
|
16
|
-
}), K =
|
17
|
-
if (
|
18
|
-
|
19
|
-
}), T =
|
20
|
-
|
21
|
-
}),
|
22
|
-
if (o !== void 0) return
|
23
|
-
}, [
|
24
|
-
return
|
16
|
+
}), K = l((a) => {
|
17
|
+
if (fe(a.currentTarget)) return a.preventDefault();
|
18
|
+
a.preventDefault(), _();
|
19
|
+
}), T = l((a) => {
|
20
|
+
a.key === P.Space ? (a.preventDefault(), _()) : a.key === P.Enter && de(a.currentTarget);
|
21
|
+
}), j = l((a) => a.preventDefault()), { isFocusVisible: g, focusProps: M } = W({ autoFocus: r }), { isHovered: C, hoverProps: G } = X({ isDisabled: e }), { pressed: D, pressProps: S } = ae({ disabled: e }), U = q({ ref: m, id: i, role: "checkbox", "aria-checked": d ? "mixed" : t ? "true" : "false", "aria-labelledby": N, "aria-describedby": R, "aria-disabled": e ? !0 : void 0, indeterminate: d ? "true" : void 0, tabIndex: e ? void 0 : 0, onKeyUp: e ? void 0 : T, onKeyPress: e ? void 0 : j, onClick: e ? void 0 : K }, M, G, S), A = Y(() => ({ checked: t, disabled: e, hover: C, focus: g, active: D, indeterminate: d, changing: x, autofocus: r }), [t, d, e, C, g, D, x, r]), B = Z(() => {
|
22
|
+
if (o !== void 0) return s == null ? void 0 : s(o);
|
23
|
+
}, [s, o]);
|
24
|
+
return v.createElement(v.Fragment, null, k != null && v.createElement(ie, { disabled: e, data: { [k]: w || "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_10f7w_2", xe = "_checkbox_10f7w_8", $e = "_enabled_10f7w_36", _e = "_label_10f7w_52", f = {
|
28
28
|
container: ke,
|
29
29
|
checkbox: xe,
|
30
|
-
|
31
|
-
|
30
|
+
enabled: $e,
|
31
|
+
label: _e
|
32
32
|
}, Ne = ee(
|
33
33
|
(u, m) => {
|
34
34
|
const {
|
35
|
-
checked:
|
36
|
-
onChange:
|
37
|
-
children:
|
35
|
+
checked: c,
|
36
|
+
onChange: b,
|
37
|
+
children: n,
|
38
38
|
id: i,
|
39
39
|
isInteractive: e = !0,
|
40
|
-
|
40
|
+
disabled: r = !1,
|
41
|
+
...p
|
41
42
|
} = u;
|
42
|
-
return /* @__PURE__ */ L(ue, { className:
|
43
|
-
/* @__PURE__ */
|
43
|
+
return /* @__PURE__ */ L(ue, { className: f.container, children: [
|
44
|
+
/* @__PURE__ */ h(
|
44
45
|
ve,
|
45
46
|
{
|
46
47
|
id: i,
|
47
48
|
ref: m,
|
48
|
-
checked:
|
49
|
-
onChange: e ?
|
50
|
-
className: me(
|
51
|
-
[
|
49
|
+
checked: c,
|
50
|
+
onChange: e && !r ? b : void 0,
|
51
|
+
className: me(f.checkbox, {
|
52
|
+
[f.enabled]: c
|
52
53
|
}),
|
53
|
-
|
54
|
-
|
54
|
+
"data-disabled": r,
|
55
|
+
...p,
|
56
|
+
children: /* @__PURE__ */ h(be, { iconName: "Done16px" })
|
55
57
|
}
|
56
58
|
),
|
57
|
-
|
59
|
+
n && /* @__PURE__ */ h(le, { htmlFor: i, className: f.label, children: n })
|
58
60
|
] });
|
59
61
|
}
|
60
62
|
);
|