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.
- package/dist/Input-IzZ6B9kw.js +232 -0
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/CopyText.css +1 -0
- package/dist/assets/Counter.css +1 -0
- package/dist/assets/DropdownSelect.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/TabTrail.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +41 -37
- package/dist/components/Avatar/constants.d.ts +5 -0
- package/dist/components/Avatar/constants.js +3 -2
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.js +5 -4
- package/dist/components/Avatar/types.d.ts +3 -1
- package/dist/components/Chip/Chip.d.ts +5 -1
- package/dist/components/Chip/Chip.js +45 -36
- package/dist/components/Chip/constants.d.ts +5 -1
- package/dist/components/Chip/constants.js +3 -3
- package/dist/components/CopyText/CopyText.d.ts +3 -0
- package/dist/components/CopyText/CopyText.js +96 -0
- package/dist/components/CopyText/index.d.ts +2 -0
- package/dist/components/CopyText/index.js +4 -0
- package/dist/components/CopyText/types.d.ts +32 -0
- package/dist/components/DatePicker/DatePicker.d.ts +11 -0
- package/dist/components/DatePicker/DatePicker.js +96 -93
- package/dist/components/DatePicker/DatePickerModal.js +1 -1
- package/dist/components/DatePicker/MonthPickerModal.js +1 -1
- package/dist/components/DatePicker/YearPickerModal.js +1 -1
- package/dist/components/DatePicker/constants.d.ts +6 -0
- package/dist/components/DatePicker/constants.js +13 -12
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +3 -1
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -0
- package/dist/components/DropdownSelect/DropdownSelect.js +115 -0
- package/dist/components/DropdownSelect/constants.d.ts +5 -0
- package/dist/components/DropdownSelect/constants.js +4 -0
- package/dist/components/DropdownSelect/index.d.ts +3 -0
- package/dist/components/DropdownSelect/index.js +6 -0
- package/dist/components/DropdownSelect/types.d.ts +56 -0
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/constants.d.ts +6 -0
- package/dist/components/Input/constants.js +4 -3
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/MultiSelectSearch/utils.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +1 -1
- package/dist/components/Pagination/Counter/Counter.d.ts +9 -0
- package/dist/components/Pagination/Counter/Counter.js +28 -0
- package/dist/components/Pagination/Pagination.d.ts +17 -0
- package/dist/components/Pagination/Pagination.js +167 -126
- package/dist/components/Pagination/constants.d.ts +6 -0
- package/dist/components/Pagination/constants.js +5 -3
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/index.js +4 -2
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -1
- package/dist/components/SelectSearch/SelectSearch.js +193 -187
- package/dist/components/SelectSearch/constants.d.ts +6 -0
- package/dist/components/SelectSearch/constants.js +7 -5
- package/dist/components/SelectSearch/index.d.ts +1 -1
- package/dist/components/SelectSearch/index.js +5 -4
- package/dist/components/SelectSearch/types.d.ts +6 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/TabTrail/TabTrail.d.ts +16 -0
- package/dist/components/TabTrail/TabTrail.js +257 -220
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +8 -4
- package/dist/components/index.js +178 -166
- package/dist/index.js +203 -191
- package/dist/styles.module-D3nnIVCZ.js +31 -0
- package/package.json +1 -1
- package/dist/Input-BU_6U1CW.js +0 -227
- 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-
|
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";
|
@@ -1,6 +1,7 @@
|
|
1
|
-
var e = /* @__PURE__ */ ((r) => (r.DefaultGray = "default-gray", r.DefaultWhite = "default-white", r))(e || {}),
|
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
|
-
|
4
|
-
a as
|
3
|
+
f as EInputBorderRadius,
|
4
|
+
a as EInputSize,
|
5
|
+
l as EInputStatus,
|
5
6
|
e as EInputVariant
|
6
7
|
};
|
@@ -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-
|
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-
|
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-
|
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-
|
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-
|
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
|
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
|
4
|
-
import { FIRST_PAGE_NUMBER as
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import
|
8
|
-
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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:
|
17
|
-
disabled:
|
18
|
-
}) => /* @__PURE__ */
|
19
|
-
|
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 !==
|
31
|
+
t !== f && (u(t - 1), n(t - 1));
|
27
32
|
},
|
28
33
|
iconName: "ArrowLeft16px",
|
29
|
-
disabled:
|
34
|
+
disabled: c || t === f,
|
30
35
|
"data-testid": "back-button"
|
31
36
|
}
|
32
37
|
]
|
33
38
|
}
|
34
|
-
),
|
39
|
+
), W = ({
|
35
40
|
currentPageNumber: t,
|
36
41
|
lastPageNumber: n,
|
37
|
-
onClick:
|
38
|
-
setCurrentPage:
|
42
|
+
onClick: u,
|
43
|
+
setCurrentPage: c,
|
39
44
|
disabled: r
|
40
45
|
}) => {
|
41
|
-
const
|
42
|
-
return /* @__PURE__ */
|
43
|
-
|
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
|
-
|
55
|
+
e || (c(t + 1), u(t + 1));
|
51
56
|
},
|
52
|
-
disabled: r ||
|
57
|
+
disabled: r || e,
|
53
58
|
iconName: "ArrowRight16px",
|
54
59
|
"data-testid": "next-button"
|
55
60
|
}
|
56
61
|
]
|
57
62
|
}
|
58
63
|
);
|
59
|
-
},
|
60
|
-
|
64
|
+
}, E = () => /* @__PURE__ */ i(
|
65
|
+
y,
|
61
66
|
{
|
62
67
|
buttons: [
|
63
68
|
{
|
64
69
|
children: "...",
|
65
70
|
variant: "transparent",
|
66
|
-
className: P(
|
71
|
+
className: P(a["pagination-button"], a.ellipsis)
|
67
72
|
}
|
68
73
|
]
|
69
74
|
}
|
70
|
-
),
|
75
|
+
), A = ({
|
71
76
|
currentPageNumber: t,
|
72
77
|
newPageNumber: n,
|
73
|
-
onClick:
|
74
|
-
setCurrentPage:
|
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,
|
78
|
-
r || (
|
79
|
-
},
|
80
|
-
return /* @__PURE__ */
|
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-${
|
90
|
+
"data-testid": `pagination-button-${l}`,
|
84
91
|
type: "button",
|
85
|
-
onClick:
|
92
|
+
onClick: p,
|
86
93
|
disabled: r,
|
87
|
-
className: P(
|
88
|
-
[
|
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:
|
116
|
+
children: l
|
91
117
|
}
|
92
118
|
);
|
93
|
-
},
|
119
|
+
}, q = ({
|
94
120
|
start: t,
|
95
121
|
end: n,
|
96
|
-
currentPageNumber:
|
97
|
-
onClick:
|
122
|
+
currentPageNumber: u,
|
123
|
+
onClick: c,
|
98
124
|
setCurrentPage: r,
|
99
|
-
disabled:
|
125
|
+
disabled: e,
|
126
|
+
pagesData: o,
|
127
|
+
isDateMode: s
|
100
128
|
}) => {
|
101
|
-
const
|
102
|
-
for (let
|
103
|
-
|
104
|
-
|
105
|
-
|
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:
|
136
|
+
currentPageNumber: u,
|
108
137
|
setCurrentPage: r,
|
109
|
-
newPageNumber:
|
110
|
-
onClick:
|
111
|
-
disabled:
|
138
|
+
newPageNumber: l,
|
139
|
+
onClick: c,
|
140
|
+
disabled: e,
|
141
|
+
pageData: v,
|
142
|
+
isDateMode: s
|
112
143
|
},
|
113
|
-
|
144
|
+
l
|
114
145
|
)
|
115
146
|
);
|
116
|
-
|
117
|
-
|
147
|
+
}
|
148
|
+
return p;
|
149
|
+
}, D = R(
|
118
150
|
(t, n) => {
|
119
151
|
const {
|
120
|
-
rootClassName:
|
121
|
-
total:
|
122
|
-
perPage: r =
|
123
|
-
currentPageNumber:
|
124
|
-
onChange:
|
125
|
-
disabled:
|
126
|
-
hidePrevButton:
|
127
|
-
hideNextButton:
|
128
|
-
siblingCount:
|
129
|
-
boundaryCount:
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
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(
|
145
|
-
[
|
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
|
-
!
|
150
|
-
|
184
|
+
!p && /* @__PURE__ */ i(
|
185
|
+
V,
|
151
186
|
{
|
152
|
-
currentPageNumber:
|
153
|
-
onClick:
|
154
|
-
setCurrentPage:
|
155
|
-
disabled:
|
187
|
+
currentPageNumber: m,
|
188
|
+
onClick: o,
|
189
|
+
setCurrentPage: k,
|
190
|
+
disabled: s
|
156
191
|
}
|
157
192
|
),
|
158
|
-
|
159
|
-
Array.from({ length:
|
160
|
-
const
|
161
|
-
return
|
162
|
-
|
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:
|
165
|
-
currentPageNumber:
|
166
|
-
onClick:
|
167
|
-
setCurrentPage:
|
168
|
-
disabled:
|
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-${
|
207
|
+
`boundary-start-${b}`
|
171
208
|
);
|
172
209
|
}),
|
173
|
-
|
210
|
+
C > d + f && /* @__PURE__ */ i(E, {})
|
174
211
|
] }),
|
175
|
-
|
176
|
-
start:
|
177
|
-
end:
|
178
|
-
currentPageNumber:
|
179
|
-
setCurrentPage:
|
180
|
-
onClick:
|
181
|
-
disabled:
|
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
|
-
|
184
|
-
|
185
|
-
Array.from({ length:
|
186
|
-
const
|
187
|
-
return
|
188
|
-
|
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:
|
191
|
-
currentPageNumber:
|
192
|
-
onClick:
|
193
|
-
setCurrentPage:
|
194
|
-
disabled:
|
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-${
|
237
|
+
`boundary-end-${b}`
|
197
238
|
);
|
198
239
|
})
|
199
240
|
] }),
|
200
|
-
!
|
201
|
-
|
241
|
+
!l && /* @__PURE__ */ i(
|
242
|
+
W,
|
202
243
|
{
|
203
|
-
currentPageNumber:
|
204
|
-
setCurrentPage:
|
205
|
-
lastPageNumber:
|
206
|
-
onClick:
|
207
|
-
disabled:
|
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
|
-
|
257
|
+
D as Pagination
|
217
258
|
};
|
@@ -1,5 +1,7 @@
|
|
1
|
-
const
|
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
|
-
|
4
|
-
|
4
|
+
E as DEFAULT_PER_PAGE,
|
5
|
+
s as ECounterVariant,
|
6
|
+
A as FIRST_PAGE_NUMBER
|
5
7
|
};
|
@@ -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>>;
|