mimir-ui-kit 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/README.md +62 -54
  2. package/dist/{NavigationButtons-cTsXB7GS.js → NavigationButtons-B8tMfqrg.js} +18 -18
  3. package/dist/assets/Button.css +1 -1
  4. package/dist/assets/Input.css +1 -1
  5. package/dist/assets/OtpInput.css +1 -1
  6. package/dist/assets/RadioGroup.css +1 -1
  7. package/dist/assets/Slider.css +1 -1
  8. package/dist/assets/index.css +1 -1
  9. package/dist/components/Button/Button.d.ts +1 -0
  10. package/dist/components/Button/Button.js +25 -25
  11. package/dist/components/Input/Input.d.ts +2 -2
  12. package/dist/components/Input/Input.js +15 -15
  13. package/dist/components/InputPassword/InputPassword.js +2 -2
  14. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  15. package/dist/components/MergedButton/MergedButton.d.ts +1 -1
  16. package/dist/components/MergedButton/MergedButton.js +2 -2
  17. package/dist/components/OtpInput/OtpInput.js +6 -6
  18. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -18
  19. package/dist/components/RadioGroup/RadioGroup.js +1061 -127
  20. package/dist/components/RadioGroup/index.d.ts +1 -1
  21. package/dist/components/Slider/NavigationButtons/NavigationButtons.js +1 -1
  22. package/dist/components/Slider/NavigationButtons/index.js +1 -1
  23. package/dist/components/Slider/Slider.js +10 -10
  24. package/dist/components/Tag/Tag.d.ts +79 -0
  25. package/dist/components/Tag/Tag.js +99 -0
  26. package/dist/components/Tag/constants.d.ts +41 -0
  27. package/dist/components/Tag/constants.js +55 -0
  28. package/dist/components/Tag/index.d.ts +3 -0
  29. package/dist/components/Tag/index.js +8 -0
  30. package/dist/components/Tag/types.d.ts +6 -0
  31. package/dist/components/Tag/types.js +1 -0
  32. package/dist/components/index.d.ts +1 -10
  33. package/dist/components/index.js +0 -14
  34. package/dist/hooks/index.d.ts +0 -3
  35. package/dist/hooks/index.js +1 -7
  36. package/dist/index.d.ts +0 -1
  37. package/dist/index.js +1 -23
  38. package/package.json +128 -127
  39. package/dist/DatePickerModal-DUUCHAWF.js +0 -204
  40. package/dist/assets/DatePickerModal.css +0 -1
  41. package/dist/assets/Drawer.css +0 -1
  42. package/dist/assets/SelectSearch.css +0 -1
  43. package/dist/assets/Switch.css +0 -1
  44. package/dist/assets/Timer.css +0 -1
  45. package/dist/components/DatePicker/DatePicker.d.ts +0 -44
  46. package/dist/components/DatePicker/DatePicker.js +0 -69
  47. package/dist/components/DatePicker/DatePickerModal.d.ts +0 -8
  48. package/dist/components/DatePicker/DatePickerModal.js +0 -9
  49. package/dist/components/DatePicker/constants.d.ts +0 -6
  50. package/dist/components/DatePicker/constants.js +0 -11
  51. package/dist/components/DatePicker/index.d.ts +0 -2
  52. package/dist/components/DatePicker/index.js +0 -4
  53. package/dist/components/Drawer/Drawer.d.ts +0 -38
  54. package/dist/components/Drawer/Drawer.js +0 -144
  55. package/dist/components/Drawer/constants.d.ts +0 -5
  56. package/dist/components/Drawer/constants.js +0 -9
  57. package/dist/components/Drawer/index.d.ts +0 -2
  58. package/dist/components/Drawer/index.js +0 -6
  59. package/dist/components/Portal/Portal.d.ts +0 -7
  60. package/dist/components/Portal/Portal.js +0 -10
  61. package/dist/components/Portal/index.d.ts +0 -1
  62. package/dist/components/Portal/index.js +0 -4
  63. package/dist/components/SelectSearch/SelectSearch.d.ts +0 -15
  64. package/dist/components/SelectSearch/SelectSearch.js +0 -3961
  65. package/dist/components/SelectSearch/constants.d.ts +0 -4
  66. package/dist/components/SelectSearch/constants.js +0 -8
  67. package/dist/components/SelectSearch/index.d.ts +0 -2
  68. package/dist/components/SelectSearch/index.js +0 -6
  69. package/dist/components/Switch/Switch.d.ts +0 -294
  70. package/dist/components/Switch/Switch.js +0 -57
  71. package/dist/components/Switch/index.d.ts +0 -2
  72. package/dist/components/Switch/index.js +0 -4
  73. package/dist/components/Timer/Timer.d.ts +0 -24
  74. package/dist/components/Timer/Timer.js +0 -29
  75. package/dist/components/Timer/index.d.ts +0 -1
  76. package/dist/components/Timer/index.js +0 -4
  77. package/dist/focus-management-CFDo6ZSc.js +0 -91
  78. package/dist/hooks/useClickOutside/index.d.ts +0 -1
  79. package/dist/hooks/useClickOutside/index.js +0 -4
  80. package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -7
  81. package/dist/hooks/useClickOutside/useClickOutside.js +0 -25
  82. package/dist/hooks/useInterval/index.d.ts +0 -1
  83. package/dist/hooks/useInterval/index.js +0 -4
  84. package/dist/hooks/useInterval/useInterval.d.ts +0 -1
  85. package/dist/hooks/useInterval/useInterval.js +0 -17
  86. package/dist/hooks/useLockBodyScroll/index.d.ts +0 -1
  87. package/dist/hooks/useLockBodyScroll/index.js +0 -4
  88. package/dist/hooks/useLockBodyScroll/useLockBodyScroll.d.ts +0 -6
  89. package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +0 -20
  90. package/dist/hooks/useTimer/index.d.ts +0 -18
  91. package/dist/hooks/useTimer/index.js +0 -83
  92. package/dist/hooks/useTimer/useTimer.d.ts +0 -18
  93. package/dist/hooks/useTimer/useTimer.js +0 -83
  94. package/dist/hooks/useTimer/utils.d.ts +0 -20
  95. package/dist/hooks/useTimer/utils.js +0 -78
  96. package/dist/label-BXAcSLy0.js +0 -913
  97. package/dist/use-active-press-9MCrfRZk.js +0 -31
  98. package/dist/utils/formating/Date.d.ts +0 -1
  99. package/dist/utils/formating/Date.js +0 -26
  100. package/dist/utils/formating/Month.d.ts +0 -8
  101. package/dist/utils/formating/Month.js +0 -80
  102. package/dist/utils/formating/Numbers.d.ts +0 -6
  103. package/dist/utils/formating/Numbers.js +0 -8
  104. package/dist/utils/index.d.ts +0 -9
  105. package/dist/utils/index.js +0 -11
@@ -1,31 +0,0 @@
1
- import { useRef, useState } from "react";
2
- import { p, o, u } from "./label-BXAcSLy0.js";
3
- function E(e) {
4
- let t = e.width / 2, n = e.height / 2;
5
- return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
6
- }
7
- function P(e, t) {
8
- return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
9
- }
10
- function w({ disabled: e = false } = {}) {
11
- let t = useRef(null), [n, l] = useState(false), r = p(), o$1 = o(() => {
12
- t.current = null, l(false), r.dispose();
13
- }), f = o((s) => {
14
- if (r.dispose(), t.current === null) {
15
- t.current = s.currentTarget, l(true);
16
- {
17
- let i = u(s.currentTarget);
18
- r.addEventListener(i, "pointerup", o$1, false), r.addEventListener(i, "pointermove", (c) => {
19
- if (t.current) {
20
- let p2 = E(c);
21
- l(P(p2, t.current.getBoundingClientRect()));
22
- }
23
- }, false), r.addEventListener(i, "pointercancel", o$1, false);
24
- }
25
- }
26
- });
27
- return { pressed: n, pressProps: e ? {} : { onPointerDown: f, onPointerUp: o$1, onClick: o$1 } };
28
- }
29
- export {
30
- w
31
- };
@@ -1 +0,0 @@
1
- export default function _Date(x: Date, y: string | Date): string;
@@ -1,26 +0,0 @@
1
- function _Date(x, y) {
2
- if (y === void 0) {
3
- y = x;
4
- x = /* @__PURE__ */ new Date();
5
- } else {
6
- x = new Date(x);
7
- }
8
- const replaces = {
9
- yyyy: x.getFullYear() + "",
10
- yy: `${x.getFullYear()}`.slice(-2),
11
- mm: `0${x.getMonth() + 1}`.slice(-2),
12
- dd: `0${x.getDate()}`.slice(-2),
13
- HH: `0${x.getHours()}`.slice(-2),
14
- MM: `0${x.getMinutes()}`.slice(-2),
15
- SS: `0${x.getSeconds()}`.slice(-2)
16
- };
17
- Object.keys(replaces).forEach((replace) => {
18
- if (typeof y === "string") {
19
- y = y.replace(replace, replaces[replace]);
20
- }
21
- });
22
- return y;
23
- }
24
- export {
25
- _Date as default
26
- };
@@ -1,8 +0,0 @@
1
- type MonthObj = {
2
- val: string;
3
- name: string;
4
- names: string;
5
- abc: string;
6
- };
7
- export default function Month(n: number): MonthObj;
8
- export {};
@@ -1,80 +0,0 @@
1
- function Month(n) {
2
- const obj = {
3
- 1: {
4
- val: "01",
5
- name: "Январь",
6
- names: "Января",
7
- abc: "Янв"
8
- },
9
- 2: {
10
- val: "02",
11
- name: "Февраль",
12
- names: "Февраля",
13
- abc: "Февр"
14
- },
15
- 3: {
16
- val: "03",
17
- name: "Март",
18
- names: "Марта",
19
- abc: "Март"
20
- },
21
- 4: {
22
- val: "04",
23
- name: "Апрель",
24
- names: "Апреля",
25
- abc: "Апр"
26
- },
27
- 5: {
28
- val: "05",
29
- name: "Май",
30
- names: "Мая",
31
- abc: "Май"
32
- },
33
- 6: {
34
- val: "06",
35
- name: "Июнь",
36
- names: "Июня",
37
- abc: "Июнь"
38
- },
39
- 7: {
40
- val: "07",
41
- name: "Июль",
42
- names: "Июля",
43
- abc: "Июль"
44
- },
45
- 8: {
46
- val: "08",
47
- name: "Август",
48
- names: "Августа",
49
- abc: "Авг"
50
- },
51
- 9: {
52
- val: "09",
53
- name: "Сентябрь",
54
- names: "Сентебря",
55
- abc: "Сент"
56
- },
57
- 10: {
58
- val: "10",
59
- name: "Октябрь",
60
- names: "Октября",
61
- abc: "Окт"
62
- },
63
- 11: {
64
- val: "11",
65
- name: "Ноябрь",
66
- names: "Ноября",
67
- abc: "Нояб"
68
- },
69
- 12: {
70
- val: "12",
71
- name: "Декабрь",
72
- names: "Декабря",
73
- abc: "Дек"
74
- }
75
- };
76
- return obj[n];
77
- }
78
- export {
79
- Month as default
80
- };
@@ -1,6 +0,0 @@
1
- /**
2
- *l - length
3
- *n - numder
4
- *fn(10,123) => 0000000123
5
- */
6
- export default function Numbers(l: number, n: number): string;
@@ -1,8 +0,0 @@
1
- function Numbers(l, n) {
2
- let result = n + "";
3
- while (result.length < l) result = "0" + result;
4
- return result;
5
- }
6
- export {
7
- Numbers as default
8
- };
@@ -1,9 +0,0 @@
1
- import { default as Date } from './formating/Date';
2
- import { default as Month } from './formating/Month';
3
- import { default as Number } from './formating/Numbers';
4
-
5
- export declare const formating: {
6
- Number: typeof Number;
7
- Month: typeof Month;
8
- Date: typeof Date;
9
- };
@@ -1,11 +0,0 @@
1
- import _Date from "./formating/Date.js";
2
- import Month from "./formating/Month.js";
3
- import Numbers from "./formating/Numbers.js";
4
- const formating = {
5
- Number: Numbers,
6
- Month,
7
- Date: _Date
8
- };
9
- export {
10
- formating
11
- };