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