mimir-ui-kit 1.43.28 → 1.44.0

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 (80) hide show
  1. package/dist/Input-IzZ6B9kw.js +232 -0
  2. package/dist/assets/Avatar.css +1 -1
  3. package/dist/assets/Chip.css +1 -1
  4. package/dist/assets/CopyText.css +1 -0
  5. package/dist/assets/Counter.css +1 -0
  6. package/dist/assets/DropdownSelect.css +1 -0
  7. package/dist/assets/Input.css +1 -1
  8. package/dist/assets/Pagination.css +1 -1
  9. package/dist/assets/SelectSearch.css +1 -1
  10. package/dist/assets/TabTrail.css +1 -1
  11. package/dist/assets/index.css +1 -1
  12. package/dist/assets/styles.css +1 -1
  13. package/dist/components/Avatar/Avatar.d.ts +1 -1
  14. package/dist/components/Avatar/Avatar.js +41 -37
  15. package/dist/components/Avatar/constants.d.ts +5 -0
  16. package/dist/components/Avatar/constants.js +3 -2
  17. package/dist/components/Avatar/index.d.ts +1 -0
  18. package/dist/components/Avatar/index.js +5 -4
  19. package/dist/components/Avatar/types.d.ts +3 -1
  20. package/dist/components/Chip/Chip.d.ts +5 -1
  21. package/dist/components/Chip/Chip.js +45 -36
  22. package/dist/components/Chip/constants.d.ts +5 -1
  23. package/dist/components/Chip/constants.js +3 -3
  24. package/dist/components/CopyText/CopyText.d.ts +3 -0
  25. package/dist/components/CopyText/CopyText.js +96 -0
  26. package/dist/components/CopyText/index.d.ts +2 -0
  27. package/dist/components/CopyText/index.js +4 -0
  28. package/dist/components/CopyText/types.d.ts +32 -0
  29. package/dist/components/DatePicker/DatePicker.d.ts +11 -0
  30. package/dist/components/DatePicker/DatePicker.js +96 -93
  31. package/dist/components/DatePicker/DatePickerModal.js +1 -1
  32. package/dist/components/DatePicker/MonthPickerModal.js +1 -1
  33. package/dist/components/DatePicker/YearPickerModal.js +1 -1
  34. package/dist/components/DatePicker/constants.d.ts +6 -0
  35. package/dist/components/DatePicker/constants.js +13 -12
  36. package/dist/components/DatePicker/index.d.ts +1 -0
  37. package/dist/components/DatePicker/index.js +3 -1
  38. package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -0
  39. package/dist/components/DropdownSelect/DropdownSelect.js +115 -0
  40. package/dist/components/DropdownSelect/constants.d.ts +5 -0
  41. package/dist/components/DropdownSelect/constants.js +4 -0
  42. package/dist/components/DropdownSelect/index.d.ts +3 -0
  43. package/dist/components/DropdownSelect/index.js +6 -0
  44. package/dist/components/DropdownSelect/types.d.ts +56 -0
  45. package/dist/components/Input/Input.d.ts +5 -0
  46. package/dist/components/Input/Input.js +1 -1
  47. package/dist/components/Input/constants.d.ts +6 -0
  48. package/dist/components/Input/constants.js +4 -3
  49. package/dist/components/Input/index.js +1 -1
  50. package/dist/components/InputPassword/InputPassword.js +1 -1
  51. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  52. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
  53. package/dist/components/MultiSelectSearch/utils.js +1 -1
  54. package/dist/components/OtpInput/OtpInput.js +1 -1
  55. package/dist/components/Pagination/Counter/Counter.d.ts +9 -0
  56. package/dist/components/Pagination/Counter/Counter.js +28 -0
  57. package/dist/components/Pagination/Pagination.d.ts +17 -0
  58. package/dist/components/Pagination/Pagination.js +167 -126
  59. package/dist/components/Pagination/constants.d.ts +6 -0
  60. package/dist/components/Pagination/constants.js +5 -3
  61. package/dist/components/Pagination/index.d.ts +1 -0
  62. package/dist/components/Pagination/index.js +4 -2
  63. package/dist/components/SelectSearch/SelectSearch.d.ts +2 -1
  64. package/dist/components/SelectSearch/SelectSearch.js +193 -187
  65. package/dist/components/SelectSearch/constants.d.ts +6 -0
  66. package/dist/components/SelectSearch/constants.js +7 -5
  67. package/dist/components/SelectSearch/index.d.ts +1 -1
  68. package/dist/components/SelectSearch/index.js +5 -4
  69. package/dist/components/SelectSearch/types.d.ts +6 -1
  70. package/dist/components/SelectSearch/utils.js +1 -1
  71. package/dist/components/TabTrail/TabTrail.d.ts +16 -0
  72. package/dist/components/TabTrail/TabTrail.js +257 -220
  73. package/dist/components/TextArea/TextArea.js +1 -1
  74. package/dist/components/index.d.ts +8 -4
  75. package/dist/components/index.js +178 -166
  76. package/dist/index.js +203 -191
  77. package/dist/styles.module-D3nnIVCZ.js +31 -0
  78. package/package.json +1 -1
  79. package/dist/Input-BU_6U1CW.js +0 -227
  80. package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../../index-DIxK0V-G.js";
3
3
  import "react";
4
4
  import "./constants.js";
5
- import { I as f } from "../../Input-BU_6U1CW.js";
5
+ import { I as f } from "../../Input-IzZ6B9kw.js";
6
6
  import "../../hooks/useMergeRefs/useMergeRefs.js";
7
7
  import "../../icons/Icon.js";
8
8
  import "../Button/Button.js";
@@ -12,3 +12,9 @@ export declare enum EInputSize {
12
12
  M = "m",
13
13
  L = "l"
14
14
  }
15
+ export declare enum EInputBorderRadius {
16
+ All = "all",
17
+ Left = "left",
18
+ Right = "right",
19
+ None = "none"
20
+ }
@@ -1,6 +1,7 @@
1
- var e = /* @__PURE__ */ ((r) => (r.DefaultGray = "default-gray", r.DefaultWhite = "default-white", r))(e || {}), a = /* @__PURE__ */ ((r) => (r.Alarm = "alarm", r.Success = "success", r.Error = "error", r))(a || {}), l = /* @__PURE__ */ ((r) => (r.S = "s", r.M = "m", r.L = "l", r))(l || {});
1
+ var e = /* @__PURE__ */ ((r) => (r.DefaultGray = "default-gray", r.DefaultWhite = "default-white", r))(e || {}), l = /* @__PURE__ */ ((r) => (r.Alarm = "alarm", r.Success = "success", r.Error = "error", r))(l || {}), a = /* @__PURE__ */ ((r) => (r.S = "s", r.M = "m", r.L = "l", r))(a || {}), f = /* @__PURE__ */ ((r) => (r.All = "all", r.Left = "left", r.Right = "right", r.None = "none", r))(f || {});
2
2
  export {
3
- l as EInputSize,
4
- a as EInputStatus,
3
+ f as EInputBorderRadius,
4
+ a as EInputSize,
5
+ l as EInputStatus,
5
6
  e as EInputVariant
6
7
  };
@@ -1,4 +1,4 @@
1
- import { I as n } from "../../Input-BU_6U1CW.js";
1
+ import { I as n } from "../../Input-IzZ6B9kw.js";
2
2
  import { EInputSize as u, EInputStatus as I, EInputVariant as a } from "./constants.js";
3
3
  export {
4
4
  u as EInputSize,
@@ -3,7 +3,7 @@ import { c as l } from "../../index-DIxK0V-G.js";
3
3
  import { memo as d, forwardRef as b, useState as f, useCallback as r } from "react";
4
4
  import { Icon as x } from "../../icons/Icon.js";
5
5
  import { Button as N } from "../Button/Button.js";
6
- import { I as h } from "../../Input-BU_6U1CW.js";
6
+ import { I as h } from "../../Input-IzZ6B9kw.js";
7
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
8
  input: M,
9
9
  wrapper: y,
@@ -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-BU_6U1CW.js";
4
+ import { I as b } from "../../Input-IzZ6B9kw.js";
5
5
  const h = I(
6
6
  i(
7
7
  ({ value: s = "", onChange: e, ...p }, a) => {
@@ -8,7 +8,7 @@ import { Icon as ot } from "../../icons/Icon.js";
8
8
  import { Button as st } from "../Button/Button.js";
9
9
  import { CheckboxMimir as we } from "../CheckboxMimir/CheckboxMimir.js";
10
10
  import { Chip as rt } from "../Chip/Chip.js";
11
- import { I as ye } from "../../Input-BU_6U1CW.js";
11
+ import { I as ye } from "../../Input-IzZ6B9kw.js";
12
12
  import { EInputVariant as at } from "../Input/constants.js";
13
13
  import { Loader as Ne } from "../Loader/Loader.js";
14
14
  import { H as lt, U as Se, G as xe, W as Ce, K as ct } from "../../combobox-fIVOzEhl.js";
@@ -1,5 +1,5 @@
1
1
  import { EMultiSelectSearchSize as i, MOBILE_MENU_HEIGHT as c, DESKTOP_MENU_HEIGHT as a } from "./constants.js";
2
- import "../../Input-BU_6U1CW.js";
2
+ import "../../Input-IzZ6B9kw.js";
3
3
  import { EInputSize as u } from "../Input/constants.js";
4
4
  const m = (t) => {
5
5
  switch (t) {
@@ -3,7 +3,7 @@ import { c as u } from "../../index-DIxK0V-G.js";
3
3
  import { forwardRef as P, useImperativeHandle as R, Fragment as T } from "react";
4
4
  import { ITEMS_PER_SEPARATOR as v, DEFAULT_VALUE_LENGTH as y } from "./constants.js";
5
5
  import { useOTPInput as z } from "./hooks.js";
6
- import { I as A } from "../../Input-BU_6U1CW.js";
6
+ import { I as A } from "../../Input-IzZ6B9kw.js";
7
7
  import '../../assets/OtpInput.css';const C = "_otp_1ncuz_2", F = "_input_1ncuz_13", L = "_separator_1ncuz_27", n = {
8
8
  otp: C,
9
9
  "input-wrapper": "_input-wrapper_1ncuz_13",
@@ -0,0 +1,9 @@
1
+ import { ECounterVariant } from '../constants';
2
+
3
+ export type TCounterProps = {
4
+ value: number;
5
+ variant?: `${ECounterVariant}` | ECounterVariant;
6
+ className?: string;
7
+ };
8
+ export declare const Counter: ({ value, variant, className }: TCounterProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { ECounterVariant };
@@ -0,0 +1,28 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c } from "../../../index-DIxK0V-G.js";
3
+ import { ECounterVariant as m } from "../constants.js";
4
+ import '../../../assets/Counter.css';const u = "_counter_q40vf_2", r = {
5
+ counter: u,
6
+ "counter--default": "_counter--default_q40vf_15",
7
+ "counter--warning": "_counter--warning_q40vf_19",
8
+ "counter--error": "_counter--error_q40vf_23",
9
+ "counter--success": "_counter--success_q40vf_27"
10
+ }, a = ({
11
+ value: e,
12
+ variant: o = "default",
13
+ className: t
14
+ }) => /* @__PURE__ */ n(
15
+ "span",
16
+ {
17
+ className: c(
18
+ r.counter,
19
+ r[`counter--${o}`],
20
+ t
21
+ ),
22
+ children: e
23
+ }
24
+ );
25
+ export {
26
+ a as Counter,
27
+ m as ECounterVariant
28
+ };
@@ -1,3 +1,5 @@
1
+ import { ECounterVariant } from './constants';
2
+
1
3
  export type TBackProps = {
2
4
  currentPageNumber: number;
3
5
  onClick: (nextPage: number) => void;
@@ -11,12 +13,19 @@ export type TNextProps = {
11
13
  setCurrentPage: (nextPage: number) => void;
12
14
  disabled?: boolean;
13
15
  };
16
+ export type TPageData = {
17
+ date?: string;
18
+ count?: number;
19
+ counterVariant?: `${ECounterVariant}` | ECounterVariant;
20
+ };
14
21
  export type TItemProps = {
15
22
  currentPageNumber: number;
16
23
  newPageNumber: number;
17
24
  onClick: (pageNumber: number) => void;
18
25
  setCurrentPage: (pageNumber: number) => void;
19
26
  disabled?: boolean;
27
+ pageData?: TPageData;
28
+ isDateMode?: boolean;
20
29
  };
21
30
  export type TProps = {
22
31
  /**
@@ -59,5 +68,13 @@ export type TProps = {
59
68
  * Количество страниц, отображаемых в начале и конце
60
69
  */
61
70
  boundaryCount?: number;
71
+ /**
72
+ * Режим отображения дат вместо номеров страниц
73
+ */
74
+ isDateMode?: boolean;
75
+ /**
76
+ * Данные для каждой страницы (даты и счетчики)
77
+ */
78
+ pagesData?: TPageData[];
62
79
  };
63
80
  export declare const Pagination: import('react').ForwardRefExoticComponent<TProps & import('react').RefAttributes<HTMLElement>>;
@@ -1,210 +1,251 @@
1
- import { jsxs as k, jsx as a, Fragment as x } from "react/jsx-runtime";
1
+ import { jsxs as x, jsx as i, Fragment as B } from "react/jsx-runtime";
2
2
  import { c as P } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as M, useState as R, useEffect as S } from "react";
4
- import { FIRST_PAGE_NUMBER as m, DEFAULT_PER_PAGE as j } from "./constants.js";
5
- import { useWindowSize as $ } from "../../hooks/useWindowSize/index.js";
6
- import { MergedButton as v } from "../MergedButton/MergedButton.js";
7
- import '../../assets/Pagination.css';const F = "_container_uqdck_27", L = "_ellipsis_uqdck_42", G = "_disabled_uqdck_47", C = {
8
- "pagination-button": "_pagination-button_uqdck_2",
9
- "is-active": "_is-active_uqdck_23",
10
- container: F,
11
- ellipsis: L,
12
- disabled: G
13
- }, T = ({
3
+ import { forwardRef as R, useState as S, useEffect as $ } from "react";
4
+ import { FIRST_PAGE_NUMBER as f, DEFAULT_PER_PAGE as F } from "./constants.js";
5
+ import { Counter as L } from "./Counter/Counter.js";
6
+ import { useWindowSize as G } from "../../hooks/useWindowSize/index.js";
7
+ import { MergedButton as y } from "../MergedButton/MergedButton.js";
8
+ import '../../assets/Pagination.css';const T = "_container_1rzjl_43", U = "_ellipsis_1rzjl_64", O = "_disabled_1rzjl_69", a = {
9
+ "pagination-button": "_pagination-button_1rzjl_2",
10
+ "is-active": "_is-active_1rzjl_23",
11
+ "pagination-button--date": "_pagination-button--date_1rzjl_26",
12
+ "date-content": "_date-content_1rzjl_31",
13
+ "date-text": "_date-text_1rzjl_38",
14
+ container: T,
15
+ "container--date-mode": "_container--date-mode_1rzjl_53",
16
+ ellipsis: U,
17
+ disabled: O
18
+ }, V = ({
14
19
  currentPageNumber: t,
15
20
  onClick: n,
16
- setCurrentPage: c,
17
- disabled: o
18
- }) => /* @__PURE__ */ a(
19
- v,
21
+ setCurrentPage: u,
22
+ disabled: c
23
+ }) => /* @__PURE__ */ i(
24
+ y,
20
25
  {
21
26
  buttons: [
22
27
  {
23
28
  isIconButton: !0,
24
29
  variant: "white",
25
30
  onClick: () => {
26
- t !== m && (c(t - 1), n(t - 1));
31
+ t !== f && (u(t - 1), n(t - 1));
27
32
  },
28
33
  iconName: "ArrowLeft16px",
29
- disabled: o || t === m,
34
+ disabled: c || t === f,
30
35
  "data-testid": "back-button"
31
36
  }
32
37
  ]
33
38
  }
34
- ), U = ({
39
+ ), W = ({
35
40
  currentPageNumber: t,
36
41
  lastPageNumber: n,
37
- onClick: c,
38
- setCurrentPage: o,
42
+ onClick: u,
43
+ setCurrentPage: c,
39
44
  disabled: r
40
45
  }) => {
41
- const s = t >= n;
42
- return /* @__PURE__ */ a(
43
- v,
46
+ const e = t >= n;
47
+ return /* @__PURE__ */ i(
48
+ y,
44
49
  {
45
50
  buttons: [
46
51
  {
47
52
  isIconButton: !0,
48
53
  variant: "white",
49
54
  onClick: () => {
50
- s || (o(t + 1), c(t + 1));
55
+ e || (c(t + 1), u(t + 1));
51
56
  },
52
- disabled: r || s,
57
+ disabled: r || e,
53
58
  iconName: "ArrowRight16px",
54
59
  "data-testid": "next-button"
55
60
  }
56
61
  ]
57
62
  }
58
63
  );
59
- }, B = () => /* @__PURE__ */ a(
60
- v,
64
+ }, E = () => /* @__PURE__ */ i(
65
+ y,
61
66
  {
62
67
  buttons: [
63
68
  {
64
69
  children: "...",
65
70
  variant: "transparent",
66
- className: P(C["pagination-button"], C.ellipsis)
71
+ className: P(a["pagination-button"], a.ellipsis)
67
72
  }
68
73
  ]
69
74
  }
70
- ), N = ({
75
+ ), A = ({
71
76
  currentPageNumber: t,
72
77
  newPageNumber: n,
73
- onClick: c,
74
- setCurrentPage: o,
75
- disabled: r
78
+ onClick: u,
79
+ setCurrentPage: c,
80
+ disabled: r,
81
+ pageData: e,
82
+ isDateMode: o = !1
76
83
  }) => {
77
- const s = t === n, i = () => {
78
- r || (o(n), c(n));
79
- }, e = n < 10 ? `0${n}` : n;
80
- return /* @__PURE__ */ a(
84
+ const s = t === n, p = () => {
85
+ r || (c(n), u(n));
86
+ }, l = n < 10 ? `0${n}` : n;
87
+ return o && e ? /* @__PURE__ */ i(
81
88
  "button",
82
89
  {
83
- "data-testid": `pagination-button-${e}`,
90
+ "data-testid": `pagination-button-${l}`,
84
91
  type: "button",
85
- onClick: i,
92
+ onClick: p,
86
93
  disabled: r,
87
- className: P(C["pagination-button"], {
88
- [C["is-active"]]: s
94
+ className: P(
95
+ a["pagination-button"],
96
+ a["pagination-button--date"],
97
+ {
98
+ [a["is-active"]]: s
99
+ }
100
+ ),
101
+ children: /* @__PURE__ */ x("div", { className: a["date-content"], children: [
102
+ /* @__PURE__ */ i("span", { className: a["date-text"], children: e.date }),
103
+ e.count !== void 0 && /* @__PURE__ */ i(L, { value: e.count, variant: e.counterVariant })
104
+ ] })
105
+ }
106
+ ) : /* @__PURE__ */ i(
107
+ "button",
108
+ {
109
+ "data-testid": `pagination-button-${l}`,
110
+ type: "button",
111
+ onClick: p,
112
+ disabled: r,
113
+ className: P(a["pagination-button"], {
114
+ [a["is-active"]]: s
89
115
  }),
90
- children: e
116
+ children: l
91
117
  }
92
118
  );
93
- }, z = ({
119
+ }, q = ({
94
120
  start: t,
95
121
  end: n,
96
- currentPageNumber: c,
97
- onClick: o,
122
+ currentPageNumber: u,
123
+ onClick: c,
98
124
  setCurrentPage: r,
99
- disabled: s
125
+ disabled: e,
126
+ pagesData: o,
127
+ isDateMode: s
100
128
  }) => {
101
- const i = [];
102
- for (let e = t; e <= n; e++)
103
- i.push(
104
- /* @__PURE__ */ a(
105
- N,
129
+ const p = [];
130
+ for (let l = t; l <= n; l++) {
131
+ const v = o == null ? void 0 : o[l - 1];
132
+ p.push(
133
+ /* @__PURE__ */ i(
134
+ A,
106
135
  {
107
- currentPageNumber: c,
136
+ currentPageNumber: u,
108
137
  setCurrentPage: r,
109
- newPageNumber: e,
110
- onClick: o,
111
- disabled: s
138
+ newPageNumber: l,
139
+ onClick: c,
140
+ disabled: e,
141
+ pageData: v,
142
+ isDateMode: s
112
143
  },
113
- e
144
+ l
114
145
  )
115
146
  );
116
- return i;
117
- }, Q = M(
147
+ }
148
+ return p;
149
+ }, D = R(
118
150
  (t, n) => {
119
151
  const {
120
- rootClassName: c,
121
- total: o,
122
- perPage: r = j,
123
- currentPageNumber: s = m,
124
- onChange: i,
125
- disabled: e = !1,
126
- hidePrevButton: E = !1,
127
- hideNextButton: y = !1,
128
- siblingCount: A,
129
- boundaryCount: l = 1
130
- } = t, [u, g] = R(s), d = Math.ceil(o / r), { width: q } = $(), w = q <= 650 ? 1 : 2, h = A !== void 0 ? A : w;
131
- let b = 0, p = 0;
132
- return S(() => {
133
- g(s);
134
- }, [s]), u <= l + h + 1 ? (b = m, p = Math.min(
135
- l + h * 2 + 1,
136
- d
137
- )) : u >= d - l - h ? (b = Math.max(
138
- d - l - h * 2,
139
- m
140
- ), p = d) : (b = u - h, p = u + h), o <= r ? null : /* @__PURE__ */ k(
152
+ rootClassName: u,
153
+ total: c,
154
+ perPage: r = F,
155
+ currentPageNumber: e = f,
156
+ onChange: o,
157
+ disabled: s = !1,
158
+ hidePrevButton: p = !1,
159
+ hideNextButton: l = !1,
160
+ siblingCount: v,
161
+ boundaryCount: d = 1,
162
+ isDateMode: j = !1,
163
+ pagesData: h
164
+ } = t, [m, k] = S(e), _ = Math.ceil(c / r), { width: M } = G(), w = M <= 650 ? 1 : 2, N = v !== void 0 ? v : w;
165
+ let C = 0, g = 0;
166
+ return $(() => {
167
+ k(e);
168
+ }, [e]), m <= d + N + 1 ? (C = f, g = Math.min(
169
+ d + N * 2 + 1,
170
+ _
171
+ )) : m >= _ - d - N ? (C = Math.max(
172
+ _ - d - N * 2,
173
+ f
174
+ ), g = _) : (C = m - N, g = m + N), c <= r ? null : /* @__PURE__ */ x(
141
175
  "nav",
142
176
  {
143
177
  "aria-label": "Постраничная навигация",
144
- className: P(C.container, c, {
145
- [C.disabled]: e
178
+ className: P(a.container, u, {
179
+ [a.disabled]: s,
180
+ [a["container--date-mode"]]: j
146
181
  }),
147
182
  ref: n,
148
183
  children: [
149
- !E && /* @__PURE__ */ a(
150
- T,
184
+ !p && /* @__PURE__ */ i(
185
+ V,
151
186
  {
152
- currentPageNumber: u,
153
- onClick: i,
154
- setCurrentPage: g,
155
- disabled: e
187
+ currentPageNumber: m,
188
+ onClick: o,
189
+ setCurrentPage: k,
190
+ disabled: s
156
191
  }
157
192
  ),
158
- b > m && /* @__PURE__ */ k(x, { children: [
159
- Array.from({ length: l }).map((I, _) => {
160
- const f = m + _;
161
- return f >= b ? null : /* @__PURE__ */ a(
162
- N,
193
+ C > f && /* @__PURE__ */ x(B, { children: [
194
+ Array.from({ length: d }).map((I, z) => {
195
+ const b = f + z;
196
+ return b >= C ? null : /* @__PURE__ */ i(
197
+ A,
163
198
  {
164
- newPageNumber: f,
165
- currentPageNumber: u,
166
- onClick: i,
167
- setCurrentPage: g,
168
- disabled: e
199
+ newPageNumber: b,
200
+ currentPageNumber: m,
201
+ onClick: o,
202
+ setCurrentPage: k,
203
+ disabled: s,
204
+ pageData: h == null ? void 0 : h[b - 1],
205
+ isDateMode: j
169
206
  },
170
- `boundary-start-${f}`
207
+ `boundary-start-${b}`
171
208
  );
172
209
  }),
173
- b > l + m && /* @__PURE__ */ a(B, {})
210
+ C > d + f && /* @__PURE__ */ i(E, {})
174
211
  ] }),
175
- z({
176
- start: b,
177
- end: p,
178
- currentPageNumber: u,
179
- setCurrentPage: g,
180
- onClick: i,
181
- disabled: e
212
+ q({
213
+ start: C,
214
+ end: g,
215
+ currentPageNumber: m,
216
+ setCurrentPage: k,
217
+ onClick: o,
218
+ disabled: s,
219
+ pagesData: h,
220
+ isDateMode: j
182
221
  }),
183
- p < d && /* @__PURE__ */ k(x, { children: [
184
- p < d - l && /* @__PURE__ */ a(B, {}),
185
- Array.from({ length: l }).map((I, _) => {
186
- const f = d - l + 1 + _;
187
- return f <= p ? null : /* @__PURE__ */ a(
188
- N,
222
+ g < _ && /* @__PURE__ */ x(B, { children: [
223
+ g < _ - d && /* @__PURE__ */ i(E, {}),
224
+ Array.from({ length: d }).map((I, z) => {
225
+ const b = _ - d + 1 + z;
226
+ return b <= g ? null : /* @__PURE__ */ i(
227
+ A,
189
228
  {
190
- newPageNumber: f,
191
- currentPageNumber: u,
192
- onClick: i,
193
- setCurrentPage: g,
194
- disabled: e
229
+ newPageNumber: b,
230
+ currentPageNumber: m,
231
+ onClick: o,
232
+ setCurrentPage: k,
233
+ disabled: s,
234
+ pageData: h == null ? void 0 : h[b - 1],
235
+ isDateMode: j
195
236
  },
196
- `boundary-end-${f}`
237
+ `boundary-end-${b}`
197
238
  );
198
239
  })
199
240
  ] }),
200
- !y && /* @__PURE__ */ a(
201
- U,
241
+ !l && /* @__PURE__ */ i(
242
+ W,
202
243
  {
203
- currentPageNumber: u,
204
- setCurrentPage: g,
205
- lastPageNumber: d,
206
- onClick: i,
207
- disabled: e
244
+ currentPageNumber: m,
245
+ setCurrentPage: k,
246
+ lastPageNumber: _,
247
+ onClick: o,
248
+ disabled: s
208
249
  }
209
250
  )
210
251
  ]
@@ -213,5 +254,5 @@ import '../../assets/Pagination.css';const F = "_container_uqdck_27", L = "_elli
213
254
  }
214
255
  );
215
256
  export {
216
- Q as Pagination
257
+ D as Pagination
217
258
  };
@@ -1,2 +1,8 @@
1
1
  export declare const FIRST_PAGE_NUMBER = 1;
2
2
  export declare const DEFAULT_PER_PAGE = 5;
3
+ export declare enum ECounterVariant {
4
+ DEFAULT = "default",
5
+ WARNING = "warning",
6
+ ERROR = "error",
7
+ SUCCESS = "success"
8
+ }
@@ -1,5 +1,7 @@
1
- const E = 1, _ = 5;
1
+ const A = 1, E = 5;
2
+ var s = /* @__PURE__ */ ((R) => (R.DEFAULT = "default", R.WARNING = "warning", R.ERROR = "error", R.SUCCESS = "success", R))(s || {});
2
3
  export {
3
- _ as DEFAULT_PER_PAGE,
4
- E as FIRST_PAGE_NUMBER
4
+ E as DEFAULT_PER_PAGE,
5
+ s as ECounterVariant,
6
+ A as FIRST_PAGE_NUMBER
5
7
  };
@@ -1 +1,2 @@
1
1
  export { Pagination } from './Pagination';
2
+ export { ECounterVariant } from './constants';
@@ -1,4 +1,6 @@
1
- import { Pagination as i } from "./Pagination.js";
1
+ import { Pagination as t } from "./Pagination.js";
2
+ import { ECounterVariant as n } from "./constants.js";
2
3
  export {
3
- i as Pagination
4
+ n as ECounterVariant,
5
+ t as Pagination
4
6
  };
@@ -1,4 +1,4 @@
1
- import { ELoadingIndicatorPlacement, ESelectSearchSize } from './constants';
1
+ import { ELoadingIndicatorPlacement, ESelectSearchBorderRadius, ESelectSearchSize } from './constants';
2
2
  import { TSelectOption } from './types';
3
3
 
4
4
  export declare const SelectSearch: import('react').ForwardRefExoticComponent<Pick<import('../Input').TInputProps, "variant" | "withClearButton"> & {
@@ -29,4 +29,5 @@ export declare const SelectSearch: import('react').ForwardRefExoticComponent<Pic
29
29
  getGroupTitle?: (groupValue: string) => string;
30
30
  optionLayout?: import('./types').TOptionLayout;
31
31
  autoPlacement?: boolean;
32
+ borderRadius?: ESelectSearchBorderRadius | `${ESelectSearchBorderRadius}`;
32
33
  } & import('react').RefAttributes<HTMLElement>>;