mimir-ui-kit 1.35.1 → 1.35.3

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.
@@ -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 { DatePicker as TDatePickerProps, TDatePickerValue } from './DatePicker';
2
+ export type { TProps as TDatePickerProps, TDatePickerValue } from './DatePicker';
@@ -1,2 +1,6 @@
1
1
  export declare const formatDatePart: (value: string, max: number) => string;
2
2
  export declare const getFullYear: (year: string) => number;
3
+ export declare const getUpdateDate: (m: number, y: number) => {
4
+ y: number;
5
+ m: number;
6
+ };
@@ -1,8 +1,9 @@
1
- const o = (r, t) => parseInt(r) > t ? t.toString() : r, c = (r) => {
2
- const t = (/* @__PURE__ */ new Date()).getFullYear(), e = Math.floor(t / 100) * 100, n = parseInt(r) + e;
3
- return n > t + 20 ? n - 100 : 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
- c as getFullYear
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.S }),
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,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.35.1",
4
+ "version": "1.35.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -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
- };