mimir-ui-kit 1.35.1 → 1.35.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/Button.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +5 -3
- package/dist/components/Accordion/Accordion.js +141 -141
- package/dist/components/Button/Button.d.ts +36 -0
- package/dist/components/Button/Button.js +83 -75
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.js +91 -108
- package/dist/components/DatePicker/DatePickerModal.d.ts +5 -5
- package/dist/components/DatePicker/DatePickerModal.js +91 -95
- package/dist/components/DatePicker/MonthPickerModal.d.ts +4 -5
- package/dist/components/DatePicker/MonthPickerModal.js +58 -66
- package/dist/components/DatePicker/YearPickerModal.d.ts +4 -5
- package/dist/components/DatePicker/YearPickerModal.js +61 -61
- package/dist/components/DatePicker/constants.d.ts +5 -0
- package/dist/components/DatePicker/constants.js +12 -6
- package/dist/components/DatePicker/hooks.d.ts +3 -0
- package/dist/components/DatePicker/hooks.js +16 -0
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/utils.d.ts +4 -0
- package/dist/components/DatePicker/utils.js +6 -5
- package/dist/components/Image/Image.js +1 -1
- package/dist/styles.module-Chnn6DA-.js +24 -0
- package/package.json +1 -1
- package/dist/styles.module-BQZZ6FB1.js +0 -25
@@ -0,0 +1,16 @@
|
|
1
|
+
import { useRef as a, useEffect as g } from "react";
|
2
|
+
import { BLOCK_WIDTH as p } from "./constants.js";
|
3
|
+
const H = (d) => {
|
4
|
+
const t = a(null);
|
5
|
+
return g(() => {
|
6
|
+
var e, n, i, o, r, c;
|
7
|
+
const f = window.innerHeight, h = window.innerWidth;
|
8
|
+
if (t.current !== null) {
|
9
|
+
const w = ((n = (e = t == null ? void 0 : t.current) == null ? void 0 : e.parentElement) == null ? void 0 : n.offsetWidth) ?? 0, s = ((o = (i = t == null ? void 0 : t.current) == null ? void 0 : i.parentElement) == null ? void 0 : o.offsetHeight) ?? 0, u = (c = (r = t == null ? void 0 : t.current) == null ? void 0 : r.parentElement) == null ? void 0 : c.getBoundingClientRect(), l = t.current.offsetHeight;
|
10
|
+
f < u.y + l + s ? t.current.style.top = -l + "px" : t.current.style.top = s + "px", h < u.x + p && (t.current.style.left = w - p + "px"), t.current.style.opacity = "1";
|
11
|
+
}
|
12
|
+
}, [d]), t;
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
H as useDatePickerPosition
|
16
|
+
};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { DatePicker } from './DatePicker';
|
2
|
-
export type {
|
2
|
+
export type { TProps as TDatePickerProps, TDatePickerValue } from './DatePicker';
|
@@ -1,8 +1,9 @@
|
|
1
|
-
const o = (
|
2
|
-
const
|
3
|
-
return n >
|
4
|
-
};
|
1
|
+
const o = (t, r) => parseInt(t) > r ? r.toString() : t, a = (t) => {
|
2
|
+
const r = (/* @__PURE__ */ new Date()).getFullYear(), e = Math.floor(r / 100) * 100, n = parseInt(t) + e;
|
3
|
+
return n > r + 20 ? n - 100 : n;
|
4
|
+
}, c = (t, r) => (r = t > 12 ? r + 1 : t < 1 ? r - 1 : r, t = t > 12 ? 1 : t < 1 ? 12 : t, { y: r, m: t });
|
5
5
|
export {
|
6
6
|
o as formatDatePart,
|
7
|
-
|
7
|
+
a as getFullYear,
|
8
|
+
c as getUpdateDate
|
8
9
|
};
|
@@ -32,7 +32,7 @@ import '../../assets/Image.css';const k = "_picture_9zemz_2", x = "_image_9zemz_
|
|
32
32
|
[s.loading]: a
|
33
33
|
}),
|
34
34
|
children: [
|
35
|
-
r && /* @__PURE__ */ i("source", { srcSet: r, media: N.
|
35
|
+
r && /* @__PURE__ */ i("source", { srcSet: r, media: N.XS1 }),
|
36
36
|
e && /* @__PURE__ */ i("source", { srcSet: e, media: S.S }),
|
37
37
|
/* @__PURE__ */ i(
|
38
38
|
"img",
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import './assets/styles.css';const _ = "_input_yyf2c_2", t = "_inputBorderControl_yyf2c_14", c = "_editable_yyf2c_27", r = "_wrapper_yyf2c_50", n = "_active_yyf2c_56", o = "_button_yyf2c_44", y = "_h_yyf2c_100", e = "_b_yyf2c_44", p = "_d_yyf2c_10", a = "_m_yyf2c_122", f = "_a_yyf2c_56", s = "_prev_yyf2c_124", i = "_orange_yyf2c_138", d = "_current_yyf2c_155", u = "_monthGrid_yyf2c_160", b = {
|
2
|
+
input: _,
|
3
|
+
"input-wrapper": "_input-wrapper_yyf2c_6",
|
4
|
+
"date-wrapper": "_date-wrapper_yyf2c_10",
|
5
|
+
inputBorderControl: t,
|
6
|
+
editable: c,
|
7
|
+
"button-wrapper": "_button-wrapper_yyf2c_44",
|
8
|
+
wrapper: r,
|
9
|
+
active: n,
|
10
|
+
button: o,
|
11
|
+
"calendar-block": "_calendar-block_yyf2c_78",
|
12
|
+
h: y,
|
13
|
+
b: e,
|
14
|
+
d: p,
|
15
|
+
m: a,
|
16
|
+
a: f,
|
17
|
+
prev: s,
|
18
|
+
orange: i,
|
19
|
+
current: d,
|
20
|
+
monthGrid: u
|
21
|
+
};
|
22
|
+
export {
|
23
|
+
b as c
|
24
|
+
};
|
package/package.json
CHANGED
@@ -1,25 +0,0 @@
|
|
1
|
-
import './assets/styles.css';const o = "_input_1uohj_2", _ = "_inputBorderControl_1uohj_14", t = "_editable_1uohj_27", r = "_wrapper_1uohj_50", n = "_active_1uohj_56", e = "_button_1uohj_44", u = "_h_1uohj_107", p = "_b_1uohj_44", a = "_d_1uohj_10", c = "_m_1uohj_128", h = "_a_1uohj_56", j = "_prev_1uohj_130", i = "_orange_1uohj_146", d = "_current_1uohj_171", s = "_monthGrid_1uohj_176", l = {
|
2
|
-
input: o,
|
3
|
-
"input-wrapper": "_input-wrapper_1uohj_6",
|
4
|
-
"date-wrapper": "_date-wrapper_1uohj_10",
|
5
|
-
inputBorderControl: _,
|
6
|
-
editable: t,
|
7
|
-
"button-wrapper": "_button-wrapper_1uohj_44",
|
8
|
-
wrapper: r,
|
9
|
-
active: n,
|
10
|
-
button: e,
|
11
|
-
"field-overlow": "_field-overlow_1uohj_78",
|
12
|
-
"calendar-block": "_calendar-block_1uohj_84",
|
13
|
-
h: u,
|
14
|
-
b: p,
|
15
|
-
d: a,
|
16
|
-
m: c,
|
17
|
-
a: h,
|
18
|
-
prev: j,
|
19
|
-
orange: i,
|
20
|
-
current: d,
|
21
|
-
monthGrid: s
|
22
|
-
};
|
23
|
-
export {
|
24
|
-
l as c
|
25
|
-
};
|