mimir-ui-kit 1.43.10 → 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.
Files changed (160) hide show
  1. package/dist/Input-CGZoshMl.js +224 -0
  2. package/dist/assets/Accordion.css +1 -1
  3. package/dist/assets/AccordionItem.css +1 -1
  4. package/dist/assets/Avatar.css +1 -1
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/CarBodyButton.css +1 -0
  7. package/dist/assets/CheckboxMimir.css +1 -1
  8. package/dist/assets/Chip.css +1 -1
  9. package/dist/assets/Drawer.css +1 -1
  10. package/dist/assets/GosZnak.css +1 -1
  11. package/dist/assets/Input.css +1 -1
  12. package/dist/assets/InputPassword.css +1 -1
  13. package/dist/assets/InputRangeSlider.css +1 -1
  14. package/dist/assets/Link.css +1 -1
  15. package/dist/assets/ListFiles.css +1 -1
  16. package/dist/assets/ListPhotos.css +1 -1
  17. package/dist/assets/MessageShortReply.css +1 -1
  18. package/dist/assets/MiniButton.css +1 -0
  19. package/dist/assets/MultiSelectSearch.css +1 -1
  20. package/dist/assets/NotificationBadge.css +1 -1
  21. package/dist/assets/OtpInput.css +1 -1
  22. package/dist/assets/Pagination.css +1 -1
  23. package/dist/assets/RoundButton.css +1 -0
  24. package/dist/assets/ScrollWrapper.css +1 -0
  25. package/dist/assets/SelectSearch.css +1 -1
  26. package/dist/assets/hooks.css +1 -1
  27. package/dist/assets/index.css +1 -1
  28. package/dist/assets/styles.css +1 -1
  29. package/dist/components/Accordion/Accordion.d.ts +10 -3
  30. package/dist/components/Accordion/Accordion.js +286 -212
  31. package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
  32. package/dist/components/Accordion/constants.d.ts +0 -4
  33. package/dist/components/Accordion/constants.js +4 -5
  34. package/dist/components/AnchorLink/Link.js +21 -20
  35. package/dist/components/Avatar/Avatar.js +26 -26
  36. package/dist/components/Button/Button.js +110 -87
  37. package/dist/components/Button/constants.d.ts +8 -2
  38. package/dist/components/Button/constants.js +6 -5
  39. package/dist/components/CarBodyButton/CarBodyButton.d.ts +26 -0
  40. package/dist/components/CarBodyButton/CarBodyButton.js +40 -0
  41. package/dist/components/CarBodyButton/index.d.ts +1 -0
  42. package/dist/components/CarBodyButton/index.js +4 -0
  43. package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
  44. package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -35
  45. package/dist/components/Chip/Chip.js +17 -17
  46. package/dist/components/DatePicker/DatePicker.d.ts +8 -0
  47. package/dist/components/DatePicker/DatePicker.js +182 -169
  48. package/dist/components/DatePicker/DatePickerModal.js +134 -98
  49. package/dist/components/DatePicker/MonthPickerModal.js +115 -95
  50. package/dist/components/DatePicker/YearPickerModal.js +109 -89
  51. package/dist/components/DatePicker/constants.d.ts +1 -0
  52. package/dist/components/DatePicker/constants.js +1 -1
  53. package/dist/components/DatePicker/hooks.d.ts +2 -1
  54. package/dist/components/DatePicker/hooks.js +12 -12
  55. package/dist/components/Drawer/Drawer.js +172 -138
  56. package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +11 -0
  57. package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +27 -0
  58. package/dist/components/Dropdown/Dropdown.js +1 -1
  59. package/dist/components/Dropdown/hooks.js +1 -1
  60. package/dist/components/GosZnak/GosZnak.js +47 -38
  61. package/dist/components/GosZnak/utils.d.ts +6 -0
  62. package/dist/components/GosZnak/utils.js +15 -0
  63. package/dist/components/Input/Input.d.ts +4 -0
  64. package/dist/components/Input/Input.js +2 -2
  65. package/dist/components/Input/index.js +1 -1
  66. package/dist/components/InputPassword/InputPassword.js +38 -42
  67. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  68. package/dist/components/InputRangeSlider/InputRangeSlider.js +159 -139
  69. package/dist/components/InputRangeSlider/constants.d.ts +5 -0
  70. package/dist/components/InputRangeSlider/constants.js +11 -6
  71. package/dist/components/ListFiles/ListFiles.js +41 -39
  72. package/dist/components/ListPhotos/ListPhotos.js +17 -18
  73. package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
  74. package/dist/components/{InputClearButton/ClearButton.d.ts → MiniButton/MiniButton.d.ts} +17 -8
  75. package/dist/components/MiniButton/MiniButton.js +44 -0
  76. package/dist/components/MiniButton/constants.d.ts +9 -0
  77. package/dist/components/MiniButton/constants.js +5 -0
  78. package/dist/components/MiniButton/index.d.ts +4 -0
  79. package/dist/components/MiniButton/index.js +6 -0
  80. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +153 -152
  81. package/dist/components/MultiSelectSearch/constants.d.ts +1 -0
  82. package/dist/components/MultiSelectSearch/constants.js +7 -7
  83. package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
  84. package/dist/components/MultiSelectSearch/utils.js +18 -16
  85. package/dist/components/NotificationBadge/NotificationBadge.js +49 -33
  86. package/dist/components/NotificationBadge/constants.d.ts +9 -2
  87. package/dist/components/NotificationBadge/constants.js +3 -2
  88. package/dist/components/NotificationBadge/types.d.ts +11 -1
  89. package/dist/components/NotificationBadge/utils.d.ts +8 -0
  90. package/dist/components/NotificationBadge/utils.js +4 -0
  91. package/dist/components/OtpInput/OtpInput.js +44 -40
  92. package/dist/components/OtpInput/constants.d.ts +4 -0
  93. package/dist/components/OtpInput/constants.js +6 -4
  94. package/dist/components/OtpInput/index.d.ts +1 -0
  95. package/dist/components/OtpInput/index.js +2 -0
  96. package/dist/components/Pagination/Pagination.js +23 -23
  97. package/dist/components/RoundButton/RoundButton.d.ts +82 -0
  98. package/dist/components/RoundButton/RoundButton.js +69 -0
  99. package/dist/components/RoundButton/constants.d.ts +11 -0
  100. package/dist/components/RoundButton/constants.js +5 -0
  101. package/dist/components/RoundButton/index.d.ts +2 -0
  102. package/dist/components/RoundButton/index.js +7 -0
  103. package/dist/components/RoundButton/types.d.ts +20 -0
  104. package/dist/components/SelectSearch/SelectSearch.js +241 -241
  105. package/dist/components/SelectSearch/utils.d.ts +1 -1
  106. package/dist/components/SelectSearch/utils.js +1 -1
  107. package/dist/components/Slider/Slider.d.ts +1 -5
  108. package/dist/components/Slider/Slider.js +34 -36
  109. package/dist/components/TextArea/TextArea.js +1 -1
  110. package/dist/components/index.d.ts +3 -1
  111. package/dist/components/index.js +55 -51
  112. package/dist/hooks-Cd4Ez6_j.js +117 -0
  113. package/dist/icons/Icon.js +1 -1
  114. package/dist/icons/components/16px/DropdownArrowDown16px.js +23 -0
  115. package/dist/icons/components/24px/EyeClosed24px.js +65 -0
  116. package/dist/icons/components/Avito.js +36 -13
  117. package/dist/icons/components/Site.js +13 -36
  118. package/dist/icons/components/index.js +564 -591
  119. package/dist/{index-C2dQUuc9.js → index-DrVFMaBi.js} +1184 -1346
  120. package/dist/index.js +73 -69
  121. package/dist/styles.module-BfkM1-KJ.js +32 -0
  122. package/package.json +1 -1
  123. package/dist/Input-BU_6U1CW.js +0 -227
  124. package/dist/assets/ClearButton.css +0 -1
  125. package/dist/components/InputClearButton/ClearButton.js +0 -41
  126. package/dist/components/InputClearButton/constants.d.ts +0 -8
  127. package/dist/components/InputClearButton/constants.js +0 -5
  128. package/dist/components/InputClearButton/index.d.ts +0 -4
  129. package/dist/components/InputClearButton/index.js +0 -6
  130. package/dist/hooks-HgN6Yauq.js +0 -117
  131. package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +0 -59
  132. package/dist/icons/components/64px/AtsVendors64px.js +0 -37
  133. package/dist/icons/components/64px/ButtonOn64px.js +0 -31
  134. package/dist/icons/components/64px/BuyoutAuto64px.js +0 -45
  135. package/dist/icons/components/64px/CarAssistance64px.js +0 -44
  136. package/dist/icons/components/64px/CarDelivery64px.js +0 -37
  137. package/dist/icons/components/64px/CarSearchReturn64px.js +0 -45
  138. package/dist/icons/components/64px/CarService64px.js +0 -37
  139. package/dist/icons/components/64px/Case64px.js +0 -33
  140. package/dist/icons/components/64px/CoatOfArms64px.js +0 -149
  141. package/dist/icons/components/64px/CoffeeCup64px.js +0 -44
  142. package/dist/icons/components/64px/Cup64px.js +0 -38
  143. package/dist/icons/components/64px/ExpertAdvice64px.js +0 -40
  144. package/dist/icons/components/64px/Fines64px.js +0 -88
  145. package/dist/icons/components/64px/Fuel64px.js +0 -38
  146. package/dist/icons/components/64px/GazprombankIcon24px.js +0 -21
  147. package/dist/icons/components/64px/Kasko64px.js +0 -44
  148. package/dist/icons/components/64px/LegalSupport64px.js +0 -58
  149. package/dist/icons/components/64px/Microphone64px.js +0 -37
  150. package/dist/icons/components/64px/Money64px.js +0 -60
  151. package/dist/icons/components/64px/PaymentSchedule64px.js +0 -39
  152. package/dist/icons/components/64px/PersonalManager64px.js +0 -100
  153. package/dist/icons/components/64px/PreApproval64px.js +0 -44
  154. package/dist/icons/components/64px/Questions64px.js +0 -37
  155. package/dist/icons/components/64px/SupportGeography64px.js +0 -51
  156. package/dist/icons/components/64px/Timer64px.js +0 -45
  157. package/dist/icons/components/64px/Twogis64px.js +0 -51
  158. package/dist/icons/components/64px/Vehicles64px.js +0 -45
  159. package/dist/icons/components/64px/Workplace64px.js +0 -38
  160. package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -1,9 +1,9 @@
1
- import { jsxs as k, jsx as n } from "react/jsx-runtime";
2
- import { c as o } from "../../index-DIxK0V-G.js";
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 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 = {
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
- (i, e) => {
17
+ (t, i) => {
18
18
  const {
19
19
  as: l = "button",
20
20
  disabled: r,
21
21
  leftIcon: c,
22
22
  children: _,
23
- rightIcon: a,
23
+ rightIcon: o,
24
24
  className: m,
25
- size: b = L.L,
26
- variant: d = I.ANCHOR,
25
+ size: k = I.L,
26
+ variant: d = L.ANCHOR,
27
27
  rel: p,
28
28
  target: f,
29
29
  ...N
30
- } = i, h = o(s.link, m, s[d], s[b], {
30
+ } = t, b = n(s.link, m, s[d], s[k], {
31
31
  [s.disabled]: r
32
32
  });
33
- return /* @__PURE__ */ k(
33
+ return /* @__PURE__ */ h(
34
34
  l,
35
35
  {
36
- ref: e,
37
- className: h,
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__ */ n(
43
- t,
43
+ c && /* @__PURE__ */ e(
44
+ a,
44
45
  {
45
46
  ...c,
46
- className: o(s.icon, c.className)
47
+ className: n(s.icon, c.className)
47
48
  }
48
49
  ),
49
50
  _,
50
- a && /* @__PURE__ */ n(
51
- t,
51
+ o && /* @__PURE__ */ e(
52
+ a,
52
53
  {
53
- ...a,
54
- className: o(s.icon, a.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 r } from "react/jsx-runtime";
1
+ import { jsxs as _, jsx as i } from "react/jsx-runtime";
2
2
  import { c } from "../../index-DIxK0V-G.js";
3
- import { memo as n } from "react";
3
+ import { memo as d } from "react";
4
4
  import { EAvatarSize as t } from "./constants.js";
5
- import { Icon as l } from "../../icons/Icon.js";
6
- import { AppImage as b } from "../Image/Image.js";
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 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(
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: e = 0,
20
- src: m,
21
- alt: i = "User avatar"
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]: !m
28
+ [o.default]: !r
29
29
  }),
30
30
  "data-testid": "avatar-container",
31
31
  children: [
32
- m ? /* @__PURE__ */ r(
33
- b,
32
+ r ? /* @__PURE__ */ i(
33
+ l,
34
34
  {
35
- src: m,
36
- alt: i,
35
+ src: r,
36
+ alt: e,
37
37
  className: o.image,
38
38
  "data-testid": "avatar-image"
39
39
  }
40
- ) : /* @__PURE__ */ r(l, { iconName: "User16px" }),
41
- !!e && /* @__PURE__ */ r(
40
+ ) : /* @__PURE__ */ i(n, { iconName: a === t.L ? "User24px" : "User16px" }),
41
+ !!m && /* @__PURE__ */ i(
42
42
  f,
43
43
  {
44
- count: e,
44
+ count: m,
45
45
  position: p,
46
- size: a === t.S ? "s" : "m",
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
- N.displayName = "Avatar";
55
+ u.displayName = "Avatar";
56
56
  export {
57
- N as Avatar
57
+ u as Avatar
58
58
  };
@@ -1,100 +1,123 @@
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) => {
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: o = "m",
45
- variant: d = k.PrimarySapphire,
46
- form: _ = C.DefaultButton,
47
- full: b,
49
+ size: r = "m",
50
+ variant: _ = q.PrimarySapphire,
51
+ form: a = A.DefaultButton,
52
+ full: o,
48
53
  clear: n,
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[_ ?? ""]
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 /* @__PURE__ */ B(
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
- type: h,
82
- form: y,
83
- ...g,
84
- disabled: t,
85
- ref: u,
86
- className: w,
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
- x,
89
- e ? /* @__PURE__ */ l(j, { iconName: m, className: p }) : v,
90
- f,
91
- !!r && /* @__PURE__ */ l("span", { className: N, children: r })
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
- M.displayName = "Button";
120
+ st.displayName = "Button";
98
121
  export {
99
- M as Button
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 || {}), 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 || {});
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 EButtonForm,
4
- h as EButtonSize,
5
- d as EButtonVariantBorderless,
3
+ l as EButtonAutoLogo,
4
+ p as EButtonForm,
5
+ d as EButtonSize,
6
+ y as EButtonVariantBorderless,
6
7
  e as EButtonVariantDefault,
7
- y as EButtonVariantOutline,
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';
@@ -0,0 +1,4 @@
1
+ import { CarBodyButton as t } from "./CarBodyButton.js";
2
+ export {
3
+ t as CarBodyButton
4
+ };
@@ -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 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";
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 fe } from "../../icons/Icon.js";
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 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);
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 = 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" }));
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 = "_container_13bjb_2", xe = "_checkbox_13bjb_8", $e = "_label_13bjb_27", _e = "_enabled_13bjb_31", b = {
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
- label: $e,
31
- enabled: _e
30
+ enabled: $e,
31
+ label: _e
32
32
  }, Ne = ee(
33
33
  (u, m) => {
34
34
  const {
35
- checked: n,
36
- onChange: f,
37
- children: s,
35
+ checked: c,
36
+ onChange: b,
37
+ children: n,
38
38
  id: i,
39
39
  isInteractive: e = !0,
40
- ...a
40
+ disabled: r = !1,
41
+ ...p
41
42
  } = u;
42
- return /* @__PURE__ */ L(ue, { className: b.container, children: [
43
- /* @__PURE__ */ p(
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: n,
49
- onChange: e ? f : void 0,
50
- className: me(b.checkbox, {
51
- [b.enabled]: n
49
+ checked: c,
50
+ onChange: e && !r ? b : void 0,
51
+ className: me(f.checkbox, {
52
+ [f.enabled]: c
52
53
  }),
53
- ...a,
54
- children: /* @__PURE__ */ p(fe, { iconName: "Done16px" })
54
+ "data-disabled": r,
55
+ ...p,
56
+ children: /* @__PURE__ */ h(be, { iconName: "Done16px" })
55
57
  }
56
58
  ),
57
- s && /* @__PURE__ */ p(de, { htmlFor: i, className: b.label, children: s })
59
+ n && /* @__PURE__ */ h(le, { htmlFor: i, className: f.label, children: n })
58
60
  ] });
59
61
  }
60
62
  );