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,137 +1,117 @@
1
- import { jsxs as F, jsx as c } from "react/jsx-runtime";
2
- import { c as P } from "../../index-DIxK0V-G.js";
3
- import { useState as C } from "react";
4
- import { useDatePickerPosition as L } from "./hooks.js";
5
- import { c as o } from "../../styles.module-BfkM1-KJ.js";
6
- import { formating as _ } from "../../utils/index.js";
7
- import { Button as v } from "../Button/Button.js";
8
- const N = 15, O = 7, T = ({
9
- date: y,
10
- selectedDate: d,
1
+ import { jsxs as b, jsx as c } from "react/jsx-runtime";
2
+ import { c as $ } from "../../index-DIxK0V-G.js";
3
+ import { useState as j } from "react";
4
+ import { useDatePickerPosition as z } from "./hooks.js";
5
+ import { c as n } from "../../styles.module-Cuqm31CO.js";
6
+ import { formating as F } from "../../utils/index.js";
7
+ import { Button as P } from "../Button/Button.js";
8
+ const p = 15, I = 7, W = ({
9
+ date: v,
10
+ selectedDate: u,
11
11
  onChangeValue: E,
12
12
  before: Y,
13
- onChangeType: l,
14
- onChangeYear: g,
15
- disableFuture: M = !1,
16
- disablePast: S = !1,
17
- disabledDate: r,
13
+ onChangeType: d,
14
+ onChangeYear: N,
15
+ disableFuture: S = !1,
16
+ disablePast: _ = !1,
17
+ disabledDate: o,
18
18
  validRange: k
19
19
  }) => {
20
- const [G, Q] = L(), i = new Date(y), u = d ? new Date(d) : i, D = /* @__PURE__ */ new Date(), $ = {
21
- y: u.getFullYear(),
22
- d: u.getDate(),
23
- m: u.getMonth() + 1
20
+ const y = z(), i = new Date(v), l = u ? new Date(u) : i, G = {
21
+ y: l.getFullYear(),
22
+ d: l.getDate(),
23
+ m: l.getMonth() + 1
24
24
  }, e = {
25
25
  y: i.getFullYear(),
26
26
  d: i.getDate(),
27
27
  m: i.getMonth() + 1
28
- }, B = {
29
- y: D.getFullYear(),
30
- d: D.getDate(),
31
- m: D.getMonth() + 1
32
- }, [w, h] = C(e.y), H = w - O, R = Array.from(Array(N).keys()).map(
33
- (t) => t + H
34
- ), j = () => {
35
- h(w + N);
36
- }, z = () => {
37
- h(w - N);
38
- }, x = (t) => {
28
+ }, [D, h] = j(e.y), M = D - I, Q = Array.from(Array(p).keys()).map(
29
+ (t) => t + M
30
+ ), B = () => {
31
+ h(D + p);
32
+ }, H = () => {
33
+ h(D - p);
34
+ }, g = (t) => {
39
35
  const s = (/* @__PURE__ */ new Date()).getFullYear();
40
36
  if (k) {
41
- const [a, p] = k;
42
- let n;
37
+ const [a, w] = k;
38
+ let r;
43
39
  if (e.m && e.d)
44
- n = new Date(t, e.m - 1, e.d);
40
+ r = new Date(t, e.m - 1, e.d);
45
41
  else {
46
42
  const A = /* @__PURE__ */ new Date();
47
- n = new Date(t, A.getMonth(), A.getDate());
43
+ r = new Date(t, A.getMonth(), A.getDate());
48
44
  }
49
- n.setHours(0, 0, 0, 0);
50
- const m = new Date(a), f = new Date(p);
51
- if (m.setHours(0, 0, 0, 0), f.setHours(23, 59, 59, 999), n < m || n > f)
45
+ r.setHours(0, 0, 0, 0);
46
+ const m = new Date(a), f = new Date(w);
47
+ if (m.setHours(0, 0, 0, 0), f.setHours(23, 59, 59, 999), r < m || r > f)
52
48
  return !0;
53
49
  }
54
- if (Y && Y.getFullYear() > t || M && t > s || S && t < s)
50
+ if (Y && Y.getFullYear() > t || S && t > s || _ && t < s)
55
51
  return !0;
56
- if (r) {
52
+ if (o) {
57
53
  const a = new Date(t, e.m - 1, e.d);
58
- if (!r(a)) return !1;
59
- const p = new Date(t, 2, 15), n = new Date(t, 5, 15), m = new Date(t, 8, 15), f = new Date(t, 11, 15);
60
- return r(p) && r(n) && r(m) && r(f);
54
+ if (!o(a)) return !1;
55
+ const w = new Date(t, 2, 15), r = new Date(t, 5, 15), m = new Date(t, 8, 15), f = new Date(t, 11, 15);
56
+ return o(w) && o(r) && o(m) && o(f);
61
57
  }
62
58
  return !1;
63
- }, I = (t) => {
64
- x(t) || (g ? g(t) : E(
59
+ }, R = (t) => {
60
+ g(t) || (N ? N(t) : E(
65
61
  /* @__PURE__ */ new Date(
66
- `${t}-${_.Number(2, e.m)}-${_.Number(2, e.d)}`
62
+ `${t}-${F.Number(2, e.m)}-${F.Number(2, e.d)}`
67
63
  )
68
64
  ));
69
65
  };
70
- return /* @__PURE__ */ F(
71
- "div",
72
- {
73
- className: P(
74
- o["calendar-block"],
75
- o[`calendar-block--position-${Q}`]
66
+ return /* @__PURE__ */ b("div", { className: n["calendar-block"], ref: y, children: [
67
+ /* @__PURE__ */ b("div", { className: n.h, children: [
68
+ /* @__PURE__ */ c(
69
+ P,
70
+ {
71
+ isIconButton: !0,
72
+ iconName: "DropdownArrowLeft16px",
73
+ onClick: H,
74
+ variant: "secondary-gray",
75
+ size: "l"
76
+ }
76
77
  ),
77
- ref: G,
78
- children: [
79
- /* @__PURE__ */ F("div", { className: o.h, children: [
80
- /* @__PURE__ */ c(
81
- v,
82
- {
83
- isIconButton: !0,
84
- iconName: "DropdownArrowLeft16px",
85
- onClick: z,
86
- variant: "secondary-gray",
87
- size: "l"
88
- }
89
- ),
90
- /* @__PURE__ */ c(
91
- "button",
92
- {
93
- type: "button",
94
- onClick: () => l == null ? void 0 : l("years"),
95
- className: o.d
96
- }
97
- ),
98
- /* @__PURE__ */ c(
99
- v,
100
- {
101
- isIconButton: !0,
102
- iconName: "DropdownArrowRight16px",
103
- onClick: j,
104
- variant: "secondary-gray",
105
- size: "l"
106
- }
107
- )
108
- ] }),
109
- /* @__PURE__ */ c("div", { className: o.monthGrid, "data-testid": "year-picker", children: R.map((t, b) => {
110
- const s = x(t);
111
- return /* @__PURE__ */ c(
112
- "button",
113
- {
114
- type: "button",
115
- onClick: () => I(t),
116
- disabled: s,
117
- className: P(
118
- s ? o.m : o.a,
119
- {
120
- [o.current]: B.y === t
121
- },
122
- {
123
- [o.selecte]: d && $.y === t
124
- }
125
- ),
126
- children: t
127
- },
128
- b
129
- );
130
- }) })
131
- ]
132
- }
133
- );
78
+ /* @__PURE__ */ c(
79
+ "button",
80
+ {
81
+ type: "button",
82
+ onClick: () => d == null ? void 0 : d("years"),
83
+ className: n.d
84
+ }
85
+ ),
86
+ /* @__PURE__ */ c(
87
+ P,
88
+ {
89
+ isIconButton: !0,
90
+ iconName: "DropdownArrowRight16px",
91
+ onClick: B,
92
+ variant: "secondary-gray",
93
+ size: "l"
94
+ }
95
+ )
96
+ ] }),
97
+ /* @__PURE__ */ c("div", { className: n.monthGrid, "data-testid": "year-picker", children: Q.map((t, x) => {
98
+ const s = g(t);
99
+ return /* @__PURE__ */ c(
100
+ "button",
101
+ {
102
+ type: "button",
103
+ onClick: () => R(t),
104
+ disabled: s,
105
+ className: $(s ? n.m : n.a, {
106
+ [n.current]: u && G.y === t
107
+ }),
108
+ children: t
109
+ },
110
+ x
111
+ );
112
+ }) })
113
+ ] });
134
114
  };
135
115
  export {
136
- T as YearPickerModal
116
+ W as YearPickerModal
137
117
  };
@@ -10,9 +10,9 @@ export declare enum EDatePickerValue {
10
10
  CurrentDate = "20240510",
11
11
  CurrentDate3 = "2024-09-10"
12
12
  }
13
- export type TCalendarBlockPosition = 'top' | 'medium' | 'bottom';
14
13
  export declare const BLOCK_WIDTH = 368;
15
14
  export declare const COUNT_WORK_DAYS = 4;
16
15
  export declare const MAX_DAY = 31;
17
16
  export declare const MAX_MONTH = 12;
18
17
  export declare const DATE_LENGTH = 10;
18
+ export declare const MAX_MOBILE_WIDTH = 500;
@@ -1,5 +1,5 @@
1
1
  var n = /* @__PURE__ */ ((t) => (t.CurrentDate1 = "2024-08-01", t.CurrentDate2 = "2024-07-01", t.CurrentDate3 = "1995-07-11", t))(n || {});
2
- const s = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], C = [
2
+ const s = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], o = [
3
3
  "Январь",
4
4
  "Февраль",
5
5
  "Март",
@@ -14,15 +14,16 @@ const s = ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"], C = [
14
14
  "Декабрь"
15
15
  ];
16
16
  var r = /* @__PURE__ */ ((t) => (t.CurrentDate1 = "", t.CurrentDate = "20240510", t.CurrentDate3 = "2024-09-10", t))(r || {});
17
- const o = 368, u = 4, _ = 31, A = 12, T = 10;
17
+ const C = 368, _ = 4, u = 31, A = 12, T = 10, D = 500;
18
18
  export {
19
- o as BLOCK_WIDTH,
20
- u as COUNT_WORK_DAYS,
19
+ C as BLOCK_WIDTH,
20
+ _ as COUNT_WORK_DAYS,
21
21
  T as DATE_LENGTH,
22
22
  n as EDatePickerBeforeDate,
23
23
  r as EDatePickerValue,
24
- _ as MAX_DAY,
24
+ u as MAX_DAY,
25
+ D as MAX_MOBILE_WIDTH,
25
26
  A as MAX_MONTH,
26
- C as months,
27
+ o as months,
27
28
  s as week
28
29
  };
@@ -1,4 +1,3 @@
1
1
  import { DependencyList } from 'react';
2
- import { TCalendarBlockPosition } from './constants';
3
2
 
4
- export declare const useDatePickerPosition: (deps?: DependencyList) => (import('react').RefObject<HTMLDivElement> | TCalendarBlockPosition | null)[];
3
+ export declare const useDatePickerPosition: (deps?: DependencyList) => import('react').RefObject<HTMLDivElement>;
@@ -1,20 +1,20 @@
1
- import { useRef as w, useState as g, useLayoutEffect as H } from "react";
2
- import { BLOCK_WIDTH as r } from "./constants.js";
3
- const E = (d) => {
4
- const t = w(null), [y, o] = g(null);
5
- return H(() => {
6
- var s, c, l, u, p, a;
7
- const h = window.innerHeight, m = window.innerWidth;
1
+ import { useRef as x, useEffect as w } from "react";
2
+ import { BLOCK_WIDTH as o, MAX_MOBILE_WIDTH as g } from "./constants.js";
3
+ const W = (a) => {
4
+ const t = x(null);
5
+ return w(() => {
6
+ var s, l, u, p, f, y;
7
+ const d = window.innerHeight, c = window.innerWidth;
8
8
  if (t.current !== null) {
9
- const x = ((c = (s = t == null ? void 0 : t.current) == null ? void 0 : s.parentElement) == null ? void 0 : c.offsetWidth) ?? 0, f = ((u = (l = t == null ? void 0 : t.current) == null ? void 0 : l.parentElement) == null ? void 0 : u.offsetHeight) ?? 0, n = (a = (p = t == null ? void 0 : t.current) == null ? void 0 : p.parentElement) == null ? void 0 : a.getBoundingClientRect(), i = t.current.offsetHeight;
10
- if (m < n.x + r) {
11
- const e = x - r;
9
+ const h = ((l = (s = t == null ? void 0 : t.current) == null ? void 0 : s.parentElement) == null ? void 0 : l.offsetWidth) ?? 0, r = ((p = (u = t == null ? void 0 : t.current) == null ? void 0 : u.parentElement) == null ? void 0 : p.offsetHeight) ?? 0, n = (y = (f = t == null ? void 0 : t.current) == null ? void 0 : f.parentElement) == null ? void 0 : y.getBoundingClientRect(), i = t.current.offsetHeight;
10
+ if (c < n.x + o) {
11
+ const e = h - o;
12
12
  n.x - Math.abs(e) < 0 ? t.current.style.left = (e < 0 ? e / 2 : e) + "px" : t.current.style.left = e + "px";
13
13
  }
14
- h < n.y + i + f ? n.y - i > 0 ? (t.current.style.top = -i + "px", o("top")) : (t.current.style.position = "fixed", t.current.style.top = `calc(50vh - ${i / 2}px)`, t.current.style.left = `calc(50vw - ${r / 2}px)`, o("medium")) : (t.current.style.top = f + "px", o("bottom")), t.current.style.opacity = "1";
14
+ d < n.y + i + r ? n.y - i > 0 ? t.current.style.top = -i + "px" : c > g ? t.current.style.top = r + "px" : (t.current.style.position = "fixed", t.current.style.top = `calc(50vh - ${i / 2}px)`, t.current.style.left = `calc(50vw - ${o / 2}px)`) : t.current.style.top = r + "px", t.current.style.opacity = "1";
15
15
  }
16
- }, [d]), [t, y];
16
+ }, [a]), t;
17
17
  };
18
18
  export {
19
- E as useDatePickerPosition
19
+ W as useDatePickerPosition
20
20
  };