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,56 +1,60 @@
1
- import { jsxs as l, jsx as p } from "react/jsx-runtime";
2
- import { memo as _, forwardRef as w, useState as f, useCallback as r } from "react";
3
- import { Icon as g } from "../../icons/Icon.js";
4
- import { Button as v } from "../Button/Button.js";
5
- import { I as b } from "../../Input-CGZoshMl.js";
6
- import '../../assets/InputPassword.css';const N = "_input_qgg1v_2", q = "_wrapper_qgg1v_6", x = "_button_qgg1v_17", y = "_icon_qgg1v_33", e = {
7
- input: N,
8
- wrapper: q,
9
- "input-wrapper": "_input-wrapper_qgg1v_13",
10
- "button-wrapper": "_button-wrapper_qgg1v_17",
11
- button: x,
12
- icon: y
13
- }, M = _(
14
- w(
15
- ({ size: o, showOnHold: t = !1, ...n }, i) => {
16
- const [a, s] = f(!1), u = r(() => {
17
- t || s(!a);
18
- }, [t, a]), c = r(() => {
19
- t && s(!0);
1
+ import { jsxs as _, jsx as o } from "react/jsx-runtime";
2
+ import { c as l } from "../../index-DIxK0V-G.js";
3
+ import { memo as d, forwardRef as b, useState as f, useCallback as r } from "react";
4
+ import { Icon as x } from "../../icons/Icon.js";
5
+ import { Button as N } from "../Button/Button.js";
6
+ import { I as h } from "../../Input-BU_6U1CW.js";
7
+ import '../../assets/InputPassword.css';const M = "_input_7b9x2_2", y = "_wrapper_7b9x2_6", I = "_button_7b9x2_17", v = "_icon_7b9x2_33", C = "_show_7b9x2_38", e = {
8
+ input: M,
9
+ wrapper: y,
10
+ "input-wrapper": "_input-wrapper_7b9x2_13",
11
+ "button-wrapper": "_button-wrapper_7b9x2_17",
12
+ button: I,
13
+ icon: v,
14
+ show: C
15
+ }, P = d(
16
+ b(
17
+ ({ size: p, showOnHold: t = !1, ...n }, i) => {
18
+ const [s, a] = f(!1), c = r(() => {
19
+ t || a(!s);
20
+ }, [t, s]), u = r(() => {
21
+ t && a(!0);
20
22
  }, [t]), m = r(() => {
21
- t && s(!1);
22
- }, [t]), d = r(() => {
23
- t && s(!1);
23
+ t && a(!1);
24
+ }, [t]), w = r(() => {
25
+ t && a(!1);
24
26
  }, [t]);
25
- return /* @__PURE__ */ l("div", { className: e.wrapper, "data-testid": "input-password-wrapper", children: [
26
- /* @__PURE__ */ p(
27
- b,
27
+ return /* @__PURE__ */ _("div", { className: e.wrapper, "data-testid": "input-password-wrapper", children: [
28
+ /* @__PURE__ */ o(
29
+ h,
28
30
  {
29
31
  ref: i,
30
32
  className: e.input,
31
33
  wrapperClassName: e["input-wrapper"],
32
- size: o,
33
- type: a ? "text" : "password",
34
+ size: p,
35
+ type: s ? "text" : "password",
34
36
  "data-testid": "password-input",
35
37
  ...n
36
38
  }
37
39
  ),
38
- /* @__PURE__ */ p("div", { className: e["button-wrapper"], children: /* @__PURE__ */ p(
39
- v,
40
+ /* @__PURE__ */ o("div", { className: e["button-wrapper"], children: /* @__PURE__ */ o(
41
+ N,
40
42
  {
41
43
  clear: !0,
42
44
  type: "button",
43
45
  className: e.button,
44
- onClick: u,
45
- onMouseDown: c,
46
+ onClick: c,
47
+ onMouseDown: u,
46
48
  onMouseUp: m,
47
- onMouseLeave: d,
49
+ onMouseLeave: w,
48
50
  "data-testid": "eye-icon",
49
- children: /* @__PURE__ */ p(
50
- g,
51
+ children: /* @__PURE__ */ o(
52
+ x,
51
53
  {
52
- className: e.icon,
53
- iconName: a ? "Eye24px" : "EyeClosed24px"
54
+ className: l(e.icon, {
55
+ [e.show]: s
56
+ }),
57
+ iconName: "Eye24px"
54
58
  }
55
59
  )
56
60
  }
@@ -59,7 +63,7 @@ import '../../assets/InputPassword.css';const N = "_input_qgg1v_2", q = "_wrappe
59
63
  }
60
64
  )
61
65
  );
62
- M.displayName = "InputPassword";
66
+ P.displayName = "InputPassword";
63
67
  export {
64
- M as InputPassword
68
+ P as InputPassword
65
69
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { memo as I, forwardRef as i, useState as c, useCallback as f, useImperativeHandle as P } from "react";
3
3
  import { getMaskedInputPhoneValue as m, getUnmaskedInputValue as o } from "./utils.js";
4
- import { I as b } from "../../Input-CGZoshMl.js";
4
+ import { I as b } from "../../Input-BU_6U1CW.js";
5
5
  const h = I(
6
6
  i(
7
7
  ({ value: s = "", onChange: e, ...p }, a) => {
@@ -1,191 +1,171 @@
1
- import { jsxs as _, jsx as c, Fragment as b } from "react/jsx-runtime";
2
- import { c as v } from "../../index-DIxK0V-G.js";
3
- import { memo as st, useState as N, useEffect as ct, useCallback as h } from "react";
4
- import { EInputRangeSliderPositions as j, EInputRangeSliderBorderState as z, DEFAULT_STEP as at, CONTROL_Z_INDEX as f } from "./constants.js";
5
- import '../../assets/InputRangeSlider.css';const it = "_wrapper_16xeq_8", lt = "_input_16xeq_18", pt = "_control_16xeq_40", mt = "_disabled_16xeq_156", ut = "_active_16xeq_133", dt = "_hover_16xeq_162", r = {
6
- "main-wrapper": "_main-wrapper_16xeq_2",
7
- wrapper: it,
8
- "input-wrapper": "_input-wrapper_16xeq_18",
9
- "info-wrapper": "_info-wrapper_16xeq_28",
10
- "control-wrapper": "_control-wrapper_16xeq_40",
11
- input: lt,
12
- "equal-value": "_equal-value_16xeq_115",
13
- "is-double-range": "_is-double-range_16xeq_118",
14
- "background-track": "_background-track_16xeq_122",
15
- "active-track": "_active-track_16xeq_133",
16
- control: pt,
17
- disabled: mt,
18
- active: ut,
19
- hover: dt
20
- }, ht = st(
1
+ import { jsxs as o, jsx as i, Fragment as k } from "react/jsx-runtime";
2
+ import { c as p } from "../../index-DIxK0V-G.js";
3
+ import { memo as K, useState as T, useEffect as Q } from "react";
4
+ import { EInputRangeSliderPositions as y, EInputRangeSliderBorderState as L, DEFAULT_STEP as X, DEFAULT_WIDTH as w } from "./constants.js";
5
+ import '../../assets/InputRangeSlider.css';const Y = "_wrapper_1kfjr_8", Z = "_input_1kfjr_18", V = "_rail_1kfjr_115", C = "_off_1kfjr_124", S = "_right_1kfjr_124", rr = "_left_1kfjr_145", tr = "_control_1kfjr_36", nr = "_disabled_1kfjr_170", r = {
6
+ "main-wrapper": "_main-wrapper_1kfjr_2",
7
+ wrapper: Y,
8
+ "input-wrapper": "_input-wrapper_1kfjr_18",
9
+ "info-wrapper": "_info-wrapper_1kfjr_26",
10
+ "control-wrapper": "_control-wrapper_1kfjr_36",
11
+ input: Z,
12
+ "equal-value": "_equal-value_1kfjr_108",
13
+ "is-double-range": "_is-double-range_1kfjr_111",
14
+ rail: V,
15
+ off: C,
16
+ right: S,
17
+ "double-range": "_double-range_1kfjr_124",
18
+ "inner-rail": "_inner-rail_1kfjr_134",
19
+ left: rr,
20
+ control: tr,
21
+ disabled: nr
22
+ }, er = K(
21
23
  ({
22
- min: s,
23
- max: p,
24
- value: n,
25
- disabled: m,
26
- isMinEqualMax: E = !1,
27
- isSingleSlider: i = !0,
28
- onChange: u,
29
- step: q = at,
30
- borderState: R = z.ON,
31
- positions: D = j.LEFT,
32
- minMaxDescriptions: G,
33
- onChangeValue: d,
34
- wrapperClassName: H,
35
- ...K
24
+ min: l,
25
+ max: j,
26
+ value: t,
27
+ disabled: N,
28
+ isMinEqualMax: $ = !1,
29
+ isSingleSlider: a = !0,
30
+ onChange: f,
31
+ step: x = X,
32
+ borderState: h = L.ON,
33
+ positions: b = y.LEFT,
34
+ minMaxDescriptions: q,
35
+ onChangeValue: _,
36
+ wrapperClassName: O,
37
+ ...W
36
38
  }) => {
37
- const [a, T] = N(() => (n == null ? void 0 : n.min) ?? s), [o, P] = N(() => (n == null ? void 0 : n.max) ?? p), [x, O] = N(
38
- null
39
- ), [A, M] = N(
40
- null
41
- ), {
42
- max: C,
43
- min: L,
44
- maxClassName: Y,
45
- minClassName: X
46
- } = G ?? {};
47
- ct(() => {
48
- n && (n.min !== void 0 && T(n.min), n.max !== void 0 && P(n.max));
49
- }, [n]);
50
- const Z = (t) => {
51
- t.preventDefault();
52
- let e = +t.target.value;
53
- i || (E ? e = Math.min(e, o) : e = Math.min(e, o - q)), n || T(e), d == null || d({ min: e, max: o }), u == null || u(t);
54
- }, J = (t) => {
55
- t.preventDefault();
56
- let e = +t.target.value;
57
- i || (E ? e = Math.max(e, a) : e = Math.max(e, a + q)), n || P(e), d == null || d({ min: a, max: e }), u == null || u(t);
58
- }, $ = h(
59
- (t) => {
60
- m || M(t);
61
- },
62
- [m]
63
- ), Q = h(() => {
64
- M(null);
65
- }, []), F = h((t) => {
66
- O(t), M(null);
67
- }, []), V = h(() => {
68
- O(null);
69
- }, []), l = p - s, W = (a - s) / l, U = (o - s) / l, S = `calc(var(--thumb-width) / 2 + ${W} * (100% - var(--thumb-width)))`, tt = `calc(var(--thumb-width) / 2 + ${U} * (100% - var(--thumb-width)))`, k = D === j.LEFT, I = a === o && U !== 0, et = R === z.OFF, rt = () => {
70
- const t = {
71
- ...K,
39
+ const [m, D] = T(() => (t == null ? void 0 : t.min) ?? l), [d, F] = T(() => (t == null ? void 0 : t.max) ?? j), {
40
+ max: I,
41
+ min: R,
42
+ maxClassName: A,
43
+ minClassName: U
44
+ } = q ?? {};
45
+ Q(() => {
46
+ t && (t.min && D(t.min), t.max && F(t.max));
47
+ }, [t]);
48
+ const g = (n) => {
49
+ n.preventDefault();
50
+ const s = Math.min(
51
+ +n.target.value,
52
+ a || $ ? d : d - x
53
+ );
54
+ t || D(s), _ == null || _({ min: s, max: d }), f == null || f(n);
55
+ }, B = (n) => {
56
+ n.preventDefault();
57
+ const s = Math.max(
58
+ +n.target.value,
59
+ $ ? m : m + x
60
+ );
61
+ t || F(s), _ == null || _({ min: m, max: s }), f == null || f(n);
62
+ }, E = (m - l) / (j - l) * w, c = (d - l) / (j - l) * w, e = b === y.LEFT, H = m === d && c !== 0, M = h === L.OFF, v = () => {
63
+ const n = {
64
+ ...W,
72
65
  type: "range",
73
- min: s,
74
- max: p,
75
- step: q,
76
- onMouseUp: V,
77
- onMouseLeave: Q
78
- }, e = /* @__PURE__ */ c(
66
+ min: l,
67
+ max: j,
68
+ step: x
69
+ }, s = /* @__PURE__ */ i(
79
70
  "input",
80
71
  {
81
- ...t,
82
- className: v(r.input, {
83
- [r["equal-value"]]: I,
84
- [r["is-double-range"]]: !i
72
+ ...n,
73
+ className: p(r.input, {
74
+ [r["equal-value"]]: H,
75
+ [r["is-double-range"]]: !a
85
76
  }),
86
- disabled: m,
87
- value: a,
88
- onChange: Z,
89
- onMouseDown: () => F("min"),
90
- onMouseEnter: () => $("min")
77
+ disabled: N,
78
+ value: m,
79
+ onChange: g
91
80
  }
92
- ), w = /* @__PURE__ */ c(
81
+ ), u = /* @__PURE__ */ i(
93
82
  "input",
94
83
  {
95
- ...t,
96
- className: v(r.input, {
97
- [r["is-double-range"]]: !i
84
+ ...n,
85
+ className: p(r.input, {
86
+ [r["is-double-range"]]: !a
98
87
  }),
99
- disabled: m,
100
- value: o,
101
- onChange: J,
102
- onMouseDown: () => F("max"),
103
- onMouseEnter: () => $("max")
88
+ disabled: N,
89
+ value: d,
90
+ onChange: B
104
91
  }
105
92
  );
106
- return i ? k ? e : w : /* @__PURE__ */ _(b, { children: [
107
- e,
108
- w
93
+ return a ? e ? s : u : /* @__PURE__ */ o(k, { children: [
94
+ s,
95
+ u
109
96
  ] });
110
- }, y = h(
111
- (t) => v(r.control, {
112
- [r.disabled]: m,
113
- [r.active]: x === t,
114
- [r.hover]: A === t && x !== t
115
- }),
116
- [m, x, A]
117
- ), nt = () => {
118
- const t = /* @__PURE__ */ c(
97
+ }, z = () => {
98
+ const n = /* @__PURE__ */ i(
119
99
  "div",
120
100
  {
121
- className: y("min"),
101
+ className: p(r.control, {
102
+ [r.disabled]: N
103
+ }),
122
104
  style: {
123
- left: S,
124
- zIndex: x === "min" ? f.ACTIVE : I ? f.PRIORITY : f.BACKGROUND
105
+ left: `${E}%`
125
106
  }
126
107
  }
127
- ), e = /* @__PURE__ */ c(
108
+ ), s = /* @__PURE__ */ i(
128
109
  "div",
129
110
  {
130
- className: y("max"),
111
+ className: p(r.control, {
112
+ [r.disabled]: N
113
+ }),
131
114
  style: {
132
- left: tt,
133
- zIndex: x === "max" ? f.ACTIVE : I ? f.BACKGROUND : f.PRIORITY
115
+ left: `${c}%`
134
116
  }
135
117
  }
136
- ), w = et ? null : /* @__PURE__ */ c("div", { className: r["background-track"] }), B = /* @__PURE__ */ c(
137
- "div",
138
- {
139
- style: (() => {
140
- if (i)
141
- return k ? {
142
- left: "0%",
143
- width: a === s ? "0%" : `${(a - s) / l * 100}%`
144
- } : {
145
- left: o === p ? "100%" : `${(o - s) / l * 100}%`,
146
- width: o === p ? "0%" : `${(p - o) / l * 100}%`
147
- };
148
- {
149
- const g = (a - s) / l * 100, ot = (o - s) / l * 100;
150
- return {
151
- left: `${g}%`,
152
- width: `${ot - g}%`
153
- };
154
- }
155
- })(),
156
- className: v(
157
- r["active-track"],
158
- r[R],
159
- r[D],
160
- {
161
- [r["double-range"]]: !i
162
- }
163
- )
164
- }
165
- );
166
- return i ? /* @__PURE__ */ _(b, { children: [
167
- w,
168
- B,
169
- k ? t : e
170
- ] }) : /* @__PURE__ */ _(b, { children: [
171
- w,
172
- B,
173
- t,
174
- e
118
+ ), u = () => M ? e ? `${E}%` : `${w - c}%` : e ? void 0 : `${w - c}%`, G = a && !e ? "0%" : `${w - c}%`, J = a && !e ? u() : `${c - E}%`, P = /* @__PURE__ */ o(k, { children: [
119
+ /* @__PURE__ */ i(
120
+ "div",
121
+ {
122
+ style: {
123
+ width: !M && !e ? `${c}%` : u()
124
+ },
125
+ className: p(r.rail, r[h], r[b], {
126
+ [r["double-range"]]: !a
127
+ })
128
+ }
129
+ ),
130
+ /* @__PURE__ */ i(
131
+ "div",
132
+ {
133
+ style: {
134
+ right: G,
135
+ width: J
136
+ },
137
+ className: p(
138
+ r["inner-rail"],
139
+ r[h],
140
+ r[b],
141
+ {
142
+ [r["double-range"]]: !a
143
+ }
144
+ )
145
+ }
146
+ )
147
+ ] });
148
+ return a ? /* @__PURE__ */ o(k, { children: [
149
+ e ? n : s,
150
+ P
151
+ ] }) : /* @__PURE__ */ o(k, { children: [
152
+ n,
153
+ P,
154
+ s
175
155
  ] });
176
156
  };
177
- return /* @__PURE__ */ _("div", { className: v(r["main-wrapper"], H), children: [
178
- /* @__PURE__ */ _("div", { className: r["info-wrapper"], children: [
179
- !!L && /* @__PURE__ */ c("div", { className: X, children: L }),
180
- !!C && /* @__PURE__ */ c("div", { className: Y, children: C })
157
+ return /* @__PURE__ */ o("div", { className: p(r["main-wrapper"], O), children: [
158
+ /* @__PURE__ */ o("div", { className: r["info-wrapper"], children: [
159
+ !!R && /* @__PURE__ */ i("div", { className: U, children: R }),
160
+ !!I && /* @__PURE__ */ i("div", { className: A, children: I })
181
161
  ] }),
182
- /* @__PURE__ */ _("div", { className: r.wrapper, children: [
183
- /* @__PURE__ */ c("div", { className: r["control-wrapper"], children: nt() }),
184
- /* @__PURE__ */ c("div", { className: r["input-wrapper"], children: rt() })
162
+ /* @__PURE__ */ o("div", { className: r.wrapper, children: [
163
+ /* @__PURE__ */ i("div", { className: r["control-wrapper"], children: z() }),
164
+ /* @__PURE__ */ i("div", { className: r["input-wrapper"], children: v() })
185
165
  ] })
186
166
  ] });
187
167
  }
188
168
  );
189
169
  export {
190
- ht as InputRangeSlider
170
+ er as InputRangeSlider
191
171
  };
@@ -8,8 +8,3 @@ export declare enum EInputRangeSliderBorderState {
8
8
  }
9
9
  export declare const DEFAULT_STEP = 1;
10
10
  export declare const DEFAULT_WIDTH = 100;
11
- export declare const CONTROL_Z_INDEX: {
12
- readonly ACTIVE: 10;
13
- readonly PRIORITY: 5;
14
- readonly BACKGROUND: 4;
15
- };
@@ -1,13 +1,8 @@
1
- var O = /* @__PURE__ */ ((T) => (T.LEFT = "left", T.RIGHT = "right", T))(O || {}), D = /* @__PURE__ */ ((T) => (T.ON = "on", T.OFF = "off", T))(D || {});
2
- const F = 1, r = 100, A = {
3
- ACTIVE: 10,
4
- PRIORITY: 5,
5
- BACKGROUND: 4
6
- };
1
+ var F = /* @__PURE__ */ ((T) => (T.LEFT = "left", T.RIGHT = "right", T))(F || {}), r = /* @__PURE__ */ ((T) => (T.ON = "on", T.OFF = "off", T))(r || {});
2
+ const f = 1, D = 100;
7
3
  export {
8
- A as CONTROL_Z_INDEX,
9
- F as DEFAULT_STEP,
10
- r as DEFAULT_WIDTH,
11
- D as EInputRangeSliderBorderState,
12
- O as EInputRangeSliderPositions
4
+ f as DEFAULT_STEP,
5
+ D as DEFAULT_WIDTH,
6
+ r as EInputRangeSliderBorderState,
7
+ F as EInputRangeSliderPositions
13
8
  };
@@ -1,59 +1,57 @@
1
- import { jsx as n, jsxs as l } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
2
  import { c as d } from "../../index-DIxK0V-G.js";
3
- import { useState as g, useEffect as u } from "react";
4
- import { EFileItemVariant as w } from "./constants.js";
5
- import { formating as N } from "../../utils/index.js";
6
- import { MiniButton as h } from "../MiniButton/MiniButton.js";
7
- import '../../assets/ListFiles.css';const z = "_white_1g4gc_62", x = "_gray_1g4gc_67", e = {
8
- "file-info": "_file-info_1g4gc_2",
9
- "file-info-size": "_file-info-size_1g4gc_8",
10
- "file-info-name-wrapper": "_file-info-name-wrapper_1g4gc_19",
11
- "file-info-name": "_file-info-name_1g4gc_19",
12
- "file-upload-container": "_file-upload-container_1g4gc_38",
13
- "file-upload-container-item": "_file-upload-container-item_1g4gc_46",
14
- "delete-button": "_delete-button_1g4gc_55",
15
- white: z,
16
- gray: x
3
+ import { useState as h, useEffect as u } from "react";
4
+ import { EFileItemVariant as q } from "./constants.js";
5
+ import { formating as w } from "../../utils/index.js";
6
+ import { ClearButton as z } from "../InputClearButton/ClearButton.js";
7
+ import '../../assets/ListFiles.css';const N = "_white_hpqrc_61", y = "_gray_hpqrc_66", e = {
8
+ "file-info": "_file-info_hpqrc_2",
9
+ "file-info-size": "_file-info-size_hpqrc_8",
10
+ "file-info-name-wrapper": "_file-info-name-wrapper_hpqrc_19",
11
+ "file-info-name": "_file-info-name_hpqrc_19",
12
+ "file-upload-container": "_file-upload-container_hpqrc_37",
13
+ "file-upload-container-item": "_file-upload-container-item_hpqrc_45",
14
+ "delete-button": "_delete-button_hpqrc_54",
15
+ white: N,
16
+ gray: y
17
17
  };
18
- function F({
19
- value: o,
20
- onChange: s,
21
- classNameWrapper: f,
22
- variant: r = w.white,
18
+ function E({
19
+ value: n,
20
+ onChange: o,
21
+ classNameWrapper: l,
22
+ variant: c = q.white,
23
23
  disabled: m
24
24
  }) {
25
- const [a, c] = g(o);
25
+ const [a, f] = h(n);
26
26
  u(() => {
27
- c(o);
28
- }, [o]);
29
- const _ = async (i) => {
30
- const t = [...a.filter((p) => p.id !== i)];
31
- c(t), s == null || s({ deleteId: i, list: t });
27
+ f(n);
28
+ }, [n]);
29
+ const p = async (i) => {
30
+ const t = [...a.filter((_) => _.id !== i)];
31
+ f(t), o == null || o({ deleteId: i, list: t });
32
32
  };
33
- return a.length ? /* @__PURE__ */ n(
33
+ return a.length ? /* @__PURE__ */ r(
34
34
  "ul",
35
35
  {
36
36
  className: d(
37
37
  e["file-upload-container"],
38
- f,
39
- e[r]
38
+ l,
39
+ e[c]
40
40
  ),
41
- children: a.map((i, t) => /* @__PURE__ */ l("li", { className: e["file-upload-container-item"], children: [
42
- /* @__PURE__ */ l("div", { className: e["file-info"], children: [
43
- (i == null ? void 0 : i.size) && /* @__PURE__ */ l("span", { className: e["file-info-size"], children: [
41
+ children: a.map((i, t) => /* @__PURE__ */ s("li", { className: e["file-upload-container-item"], children: [
42
+ /* @__PURE__ */ s("div", { className: e["file-info"], children: [
43
+ (i == null ? void 0 : i.size) && /* @__PURE__ */ s("span", { className: e["file-info-size"], children: [
44
44
  " ",
45
- N.Size(i == null ? void 0 : i.size)
45
+ w.Size(i == null ? void 0 : i.size)
46
46
  ] }),
47
- /* @__PURE__ */ n("div", { className: e["file-info-name-wrapper"], children: /* @__PURE__ */ n("div", { className: e["file-info-name"], children: i.name }) })
47
+ /* @__PURE__ */ r("div", { className: e["file-info-name-wrapper"], children: /* @__PURE__ */ r("div", { className: e["file-info-name"], children: i.name }) })
48
48
  ] }),
49
- !m && /* @__PURE__ */ n(
50
- h,
49
+ !m && /* @__PURE__ */ r(
50
+ z,
51
51
  {
52
- iconName: "Close12px",
53
52
  size: "m-s",
54
- variant: "white",
55
- className: e["delete-button"],
56
- onClick: () => _(i.id)
53
+ variant: "gray",
54
+ onClick: () => p(i.id)
57
55
  }
58
56
  )
59
57
  ] }, t))
@@ -61,5 +59,5 @@ function F({
61
59
  ) : null;
62
60
  }
63
61
  export {
64
- F as ListFiles
62
+ E as ListFiles
65
63
  };
@@ -1,23 +1,23 @@
1
1
  import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
- import { c as _ } from "../../index-DIxK0V-G.js";
3
- import { useState as f, useEffect as u } from "react";
4
- import { MiniButton as d } from "../MiniButton/MiniButton.js";
2
+ import { c as u } from "../../index-DIxK0V-G.js";
3
+ import { useState as _, useEffect as f } from "react";
4
+ import { Button as d } from "../Button/Button.js";
5
5
  import '../../assets/ListPhotos.css';const i = {
6
- "list-photos": "_list-photos_14sli_2",
7
- "list-photos-item": "_list-photos-item_14sli_12",
8
- "list-photos-image": "_list-photos-image_14sli_21",
9
- "delete-button": "_delete-button_14sli_26"
6
+ "list-photos": "_list-photos_1tpc1_2",
7
+ "list-photos-item": "_list-photos-item_1tpc1_11",
8
+ "list-photos-image": "_list-photos-image_1tpc1_20",
9
+ "delete-button": "_delete-button_1tpc1_25"
10
10
  };
11
11
  function x({ value: o, onChange: s, classNameWrapper: r }) {
12
- const [e, m] = f(o);
13
- u(() => {
14
- m(o);
12
+ const [e, c] = _(o);
13
+ f(() => {
14
+ c(o);
15
15
  }, [o]);
16
- const a = async (t) => {
17
- const c = [...e.filter((p) => p.id !== t)];
18
- m(c), s == null || s({ deleteId: t, list: c });
16
+ const p = async (t) => {
17
+ const m = [...e.filter((a) => a.id !== t)];
18
+ c(m), s == null || s({ deleteId: t, list: m });
19
19
  };
20
- return e.length ? /* @__PURE__ */ l("ul", { className: _(i["list-photos"], r), children: e.map((t) => /* @__PURE__ */ n("li", { className: i["list-photos-item"], children: [
20
+ return e.length ? /* @__PURE__ */ l("ul", { className: u(i["list-photos"], r), children: e.map((t) => /* @__PURE__ */ n("li", { className: i["list-photos-item"], children: [
21
21
  /* @__PURE__ */ l(
22
22
  "img",
23
23
  {
@@ -29,11 +29,12 @@ function x({ value: o, onChange: s, classNameWrapper: r }) {
29
29
  s && /* @__PURE__ */ l(
30
30
  d,
31
31
  {
32
- size: "m-s",
33
- variant: "gray",
32
+ isIconButton: !0,
34
33
  iconName: "Close12px",
34
+ size: "m-s",
35
+ variant: "secondary-gray",
35
36
  className: i["delete-button"],
36
- onClick: () => a(t.id)
37
+ onClick: () => p(t.id)
37
38
  }
38
39
  )
39
40
  ] }, t.id)) }) : null;