@konstructio/ui 0.1.2-alpha.46 → 0.1.2-alpha.48
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/assets/icons/index.js +7 -0
- package/dist/components/Badge/Badge.js +36 -35
- package/dist/components/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/ImageUpload/ImageUpload.js +9 -9
- package/dist/components/ImageUpload/ImageUpload.variants.js +1 -1
- package/dist/components/Input/Input.js +185 -118
- package/dist/components/Input/Input.variants.js +16 -20
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +19 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +11 -15
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +18 -26
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +8 -8
- package/dist/components/MultiSelectDropdown/components/List/List.js +12 -19
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +6 -4
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +79 -65
- package/dist/components/PhoneNumberInput/components/Wrapper.js +43 -36
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/RadioGroup/RadioGroup.js +9 -9
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +11 -6
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +50 -35
- package/dist/components/Typography/Typography.js +11 -13
- package/dist/components/Typography/Typography.variants.js +54 -46
- package/dist/components/VirtualizedTable/VirtualizedTable.js +14 -14
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +20 -16
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +60 -60
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +8 -8
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +32 -21
- package/dist/components/VirtualizedTable/components/Header/Header.js +15 -15
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +8 -8
- package/dist/components/index.js +96 -95
- package/dist/index.d.ts +38 -30
- package/dist/index.js +110 -109
- package/dist/package.json +4 -4
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Button as a } from "../../../Button/Button.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
|
-
import { E as
|
|
4
|
+
import { E as u } from "../../../../ellipsis-vertical-BVPtjl5f.js";
|
|
5
5
|
const b = ({
|
|
6
|
-
actions:
|
|
7
|
-
wrapperClassName:
|
|
6
|
+
actions: o,
|
|
7
|
+
wrapperClassName: i,
|
|
8
8
|
triggerButtonClassName: n,
|
|
9
9
|
iconTriggerButtonClassName: s,
|
|
10
10
|
wrapperActionsClassName: d,
|
|
11
|
-
wrapperContentActionsClassName:
|
|
12
|
-
...
|
|
13
|
-
}) =>
|
|
14
|
-
/* @__PURE__ */
|
|
11
|
+
wrapperContentActionsClassName: h,
|
|
12
|
+
...c
|
|
13
|
+
}) => o ? /* @__PURE__ */ l("div", { className: e("relative group", i), children: [
|
|
14
|
+
/* @__PURE__ */ l(
|
|
15
15
|
a,
|
|
16
16
|
{
|
|
17
17
|
variant: "link",
|
|
@@ -29,7 +29,7 @@ const b = ({
|
|
|
29
29
|
role: "presentation",
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ r(
|
|
32
|
-
|
|
32
|
+
u,
|
|
33
33
|
{
|
|
34
34
|
"aria-hidden": "true",
|
|
35
35
|
className: e("w-7 h-7", s)
|
|
@@ -65,9 +65,11 @@ const b = ({
|
|
|
65
65
|
"border-zinc-100",
|
|
66
66
|
"animate-in",
|
|
67
67
|
"fade-in-0",
|
|
68
|
-
|
|
68
|
+
"dark:bg-metal-800",
|
|
69
|
+
"dark:border-metal-700",
|
|
70
|
+
h
|
|
69
71
|
),
|
|
70
|
-
children:
|
|
72
|
+
children: o.map(({ label: t, className: m, onClick: p }) => /* @__PURE__ */ r(
|
|
71
73
|
a,
|
|
72
74
|
{
|
|
73
75
|
className: e(
|
|
@@ -81,18 +83,20 @@ const b = ({
|
|
|
81
83
|
"text-sm",
|
|
82
84
|
"font-normal",
|
|
83
85
|
"justify-start",
|
|
84
|
-
"hover:bg-gray-50",
|
|
85
|
-
"hover:text-slate-800",
|
|
86
86
|
"rounded-none",
|
|
87
87
|
"px-6",
|
|
88
|
-
|
|
88
|
+
"hover:bg-gray-50",
|
|
89
|
+
"hover:text-slate-800",
|
|
90
|
+
"hover:no-underline",
|
|
91
|
+
"dark:hover:bg-metal-700",
|
|
92
|
+
m
|
|
89
93
|
),
|
|
90
94
|
variant: "link",
|
|
91
95
|
asChild: !0,
|
|
92
96
|
role: "presentation",
|
|
93
|
-
children: /* @__PURE__ */ r(a, { onClick: () =>
|
|
97
|
+
children: /* @__PURE__ */ r(a, { onClick: () => p(c.row.original), children: t })
|
|
94
98
|
},
|
|
95
|
-
|
|
99
|
+
t
|
|
96
100
|
))
|
|
97
101
|
}
|
|
98
102
|
)
|
|
@@ -3,162 +3,162 @@ import { memo as u } from "react";
|
|
|
3
3
|
import { cn as p } from "../../../../utils/index.js";
|
|
4
4
|
import { C as m, a as g } from "../../../../chevron-right-DYvXLeql.js";
|
|
5
5
|
import { useTableContext as f } from "../../contexts/table.hook.js";
|
|
6
|
-
const
|
|
6
|
+
const l = u(
|
|
7
7
|
({
|
|
8
|
-
index:
|
|
9
|
-
currentPage:
|
|
8
|
+
index: t,
|
|
9
|
+
currentPage: e,
|
|
10
10
|
handlePage: i
|
|
11
11
|
}) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(
|
|
12
12
|
"button",
|
|
13
13
|
{
|
|
14
14
|
type: "button",
|
|
15
|
-
onClick: () => i(
|
|
15
|
+
onClick: () => i(t),
|
|
16
16
|
className: p(
|
|
17
17
|
"px-2.5 py-1 rounded-lg text-blue-600 cursor-pointer dark:text-aurora-500",
|
|
18
18
|
{
|
|
19
|
-
"bg-blue-600 text-white dark:bg-aurora-500 dark:text-metal-800":
|
|
19
|
+
"bg-blue-600 text-white font-semibold dark:bg-aurora-500 dark:text-metal-800": t === e
|
|
20
20
|
}
|
|
21
21
|
),
|
|
22
|
-
children:
|
|
22
|
+
children: t + 1
|
|
23
23
|
}
|
|
24
|
-
) },
|
|
24
|
+
) }, t)
|
|
25
25
|
);
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
l.displayName = "KonstructPageButton";
|
|
27
|
+
const a = u(({ keyValue: t }) => /* @__PURE__ */ s("li", { className: "px-2", children: /* @__PURE__ */ s("span", { className: "text-blue-600 select-none dark:text-aurora-500", children: "..." }) }, t));
|
|
28
|
+
a.displayName = "KonstructEllipsis";
|
|
29
29
|
const o = u(
|
|
30
30
|
({
|
|
31
|
-
direction:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}) => /* @__PURE__ */ s("li", { className: "flex items-center justify-center", children: /* @__PURE__ */ s("button", { onClick:
|
|
35
|
-
|
|
31
|
+
direction: t,
|
|
32
|
+
disabled: e,
|
|
33
|
+
onClick: i
|
|
34
|
+
}) => /* @__PURE__ */ s("li", { className: "flex items-center justify-center", children: /* @__PURE__ */ s("button", { onClick: i, disabled: e, children: /* @__PURE__ */ s(
|
|
35
|
+
t === "left" ? m : g,
|
|
36
36
|
{
|
|
37
37
|
className: p("h-6 w-6 cursor-pointer", {
|
|
38
|
-
"text-blue-600 dark:text-aurora-500": !
|
|
39
|
-
"text-slate-400 cursor-not-allowed":
|
|
38
|
+
"text-blue-600 dark:text-aurora-500": !e,
|
|
39
|
+
"text-slate-400 cursor-not-allowed": e
|
|
40
40
|
})
|
|
41
41
|
}
|
|
42
42
|
) }) })
|
|
43
43
|
);
|
|
44
|
-
o.displayName = "
|
|
44
|
+
o.displayName = "KonstructNavigationButton";
|
|
45
45
|
const N = () => {
|
|
46
|
-
const { totalPages:
|
|
46
|
+
const { totalPages: t, page: e, handlePage: i } = f();
|
|
47
47
|
return /* @__PURE__ */ h("ul", { className: "flex items-center gap-2", children: [
|
|
48
48
|
/* @__PURE__ */ s(
|
|
49
49
|
o,
|
|
50
50
|
{
|
|
51
51
|
direction: "left",
|
|
52
|
-
onClick: () => i(
|
|
53
|
-
disabled:
|
|
52
|
+
onClick: () => i(e - 1),
|
|
53
|
+
disabled: e === 0
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
56
|
(() => {
|
|
57
|
-
if (
|
|
58
|
-
return Array.from({ length:
|
|
59
|
-
|
|
57
|
+
if (t <= 5)
|
|
58
|
+
return Array.from({ length: t }, (r, c) => /* @__PURE__ */ s(
|
|
59
|
+
l,
|
|
60
60
|
{
|
|
61
61
|
index: c,
|
|
62
|
-
currentPage:
|
|
62
|
+
currentPage: e,
|
|
63
63
|
handlePage: i
|
|
64
64
|
},
|
|
65
65
|
c
|
|
66
66
|
));
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
67
|
+
const n = [];
|
|
68
|
+
if (e < 3) {
|
|
69
69
|
for (let r = 0; r < 3; r++)
|
|
70
|
-
|
|
70
|
+
n.push(
|
|
71
71
|
/* @__PURE__ */ s(
|
|
72
|
-
|
|
72
|
+
l,
|
|
73
73
|
{
|
|
74
74
|
index: r,
|
|
75
|
-
currentPage:
|
|
75
|
+
currentPage: e,
|
|
76
76
|
handlePage: i
|
|
77
77
|
},
|
|
78
78
|
r
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
for (let r =
|
|
83
|
-
|
|
81
|
+
n.push(/* @__PURE__ */ s(a, { keyValue: "ellipsis" }, "ellipsis"));
|
|
82
|
+
for (let r = t - 2; r < t; r++)
|
|
83
|
+
n.push(
|
|
84
84
|
/* @__PURE__ */ s(
|
|
85
|
-
|
|
85
|
+
l,
|
|
86
86
|
{
|
|
87
87
|
index: r,
|
|
88
|
-
currentPage:
|
|
88
|
+
currentPage: e,
|
|
89
89
|
handlePage: i
|
|
90
90
|
},
|
|
91
91
|
r
|
|
92
92
|
)
|
|
93
93
|
);
|
|
94
|
-
} else if (
|
|
95
|
-
|
|
94
|
+
} else if (e >= t - 5) {
|
|
95
|
+
n.push(
|
|
96
96
|
/* @__PURE__ */ s(
|
|
97
|
-
|
|
97
|
+
l,
|
|
98
98
|
{
|
|
99
99
|
index: 0,
|
|
100
|
-
currentPage:
|
|
100
|
+
currentPage: e,
|
|
101
101
|
handlePage: i
|
|
102
102
|
},
|
|
103
103
|
0
|
|
104
104
|
)
|
|
105
|
-
),
|
|
106
|
-
for (let r = Math.max(1,
|
|
107
|
-
|
|
105
|
+
), t > 6 && n.push(/* @__PURE__ */ s(a, { keyValue: "ellipsis" }, "ellipsis"));
|
|
106
|
+
for (let r = Math.max(1, t - 5); r < t; r++)
|
|
107
|
+
n.push(
|
|
108
108
|
/* @__PURE__ */ s(
|
|
109
|
-
|
|
109
|
+
l,
|
|
110
110
|
{
|
|
111
111
|
index: r,
|
|
112
|
-
currentPage:
|
|
112
|
+
currentPage: e,
|
|
113
113
|
handlePage: i
|
|
114
114
|
},
|
|
115
115
|
r
|
|
116
116
|
)
|
|
117
117
|
);
|
|
118
118
|
} else {
|
|
119
|
-
|
|
119
|
+
n.push(
|
|
120
120
|
/* @__PURE__ */ s(
|
|
121
|
-
|
|
121
|
+
l,
|
|
122
122
|
{
|
|
123
123
|
index: 0,
|
|
124
|
-
currentPage:
|
|
124
|
+
currentPage: e,
|
|
125
125
|
handlePage: i
|
|
126
126
|
},
|
|
127
127
|
0
|
|
128
128
|
)
|
|
129
|
-
),
|
|
130
|
-
for (let r =
|
|
131
|
-
r > 0 && r <
|
|
129
|
+
), e > 3 && n.push(/* @__PURE__ */ s(a, { keyValue: "ellipsis1" }, "ellipsis1"));
|
|
130
|
+
for (let r = e - 1; r <= e + 1; r++)
|
|
131
|
+
r > 0 && r < t - 1 && n.push(
|
|
132
132
|
/* @__PURE__ */ s(
|
|
133
|
-
|
|
133
|
+
l,
|
|
134
134
|
{
|
|
135
135
|
index: r,
|
|
136
|
-
currentPage:
|
|
136
|
+
currentPage: e,
|
|
137
137
|
handlePage: i
|
|
138
138
|
},
|
|
139
139
|
r
|
|
140
140
|
)
|
|
141
141
|
);
|
|
142
|
-
|
|
142
|
+
e < t - 4 && n.push(/* @__PURE__ */ s(a, { keyValue: "ellipsis2" }, "ellipsis2")), n.push(
|
|
143
143
|
/* @__PURE__ */ s(
|
|
144
|
-
|
|
144
|
+
l,
|
|
145
145
|
{
|
|
146
|
-
index:
|
|
147
|
-
currentPage:
|
|
146
|
+
index: t - 1,
|
|
147
|
+
currentPage: e,
|
|
148
148
|
handlePage: i
|
|
149
149
|
},
|
|
150
|
-
|
|
150
|
+
t - 1
|
|
151
151
|
)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
return
|
|
154
|
+
return n;
|
|
155
155
|
})(),
|
|
156
156
|
/* @__PURE__ */ s(
|
|
157
157
|
o,
|
|
158
158
|
{
|
|
159
159
|
direction: "right",
|
|
160
|
-
onClick: () => i(
|
|
161
|
-
disabled:
|
|
160
|
+
onClick: () => i(e + 1),
|
|
161
|
+
disabled: e >= t - 1
|
|
162
162
|
}
|
|
163
163
|
)
|
|
164
164
|
] });
|
|
@@ -2,12 +2,12 @@ import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo as l, useCallback as p } from "react";
|
|
3
3
|
import { Select as c } from "../../../Select/Select.js";
|
|
4
4
|
import { DEFAULT_PAGE_SIZES as g } from "../../constants/pagination.js";
|
|
5
|
-
import { useTableContext as
|
|
5
|
+
import { useTableContext as d } from "../../contexts/table.hook.js";
|
|
6
6
|
const u = ({
|
|
7
|
-
pageSizes:
|
|
7
|
+
pageSizes: m = g
|
|
8
8
|
}) => {
|
|
9
|
-
const { pageSize:
|
|
10
|
-
() =>
|
|
9
|
+
const { pageSize: r, onPageSize: t, handlePage: a } = d(), s = l(
|
|
10
|
+
() => m.map(String).map((e) => ({ label: e, value: e })),
|
|
11
11
|
[]
|
|
12
12
|
), n = p(
|
|
13
13
|
(e) => {
|
|
@@ -20,10 +20,10 @@ const u = ({
|
|
|
20
20
|
/* @__PURE__ */ o(
|
|
21
21
|
c,
|
|
22
22
|
{
|
|
23
|
-
className: "w-22 [&>div>p]:text-
|
|
24
|
-
listItemClassName: "[&>p]:text-
|
|
25
|
-
options:
|
|
26
|
-
value:
|
|
23
|
+
className: "w-22 [&>div>p]:text-sm bg-white",
|
|
24
|
+
listItemClassName: "[&>p]:text-sm dark:bg-metal-800",
|
|
25
|
+
options: s,
|
|
26
|
+
value: r.toString(),
|
|
27
27
|
onChange: ({ target: e }) => n(e.value)
|
|
28
28
|
}
|
|
29
29
|
)
|
|
@@ -1,42 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u, useCallback as l } from "react";
|
|
3
3
|
import { Input as c } from "../../../Input/Input.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
a
|
|
4
|
+
import { Typography as f } from "../../../Typography/Typography.js";
|
|
5
|
+
import { Button as g } from "../../../Button/Button.js";
|
|
6
|
+
import { useTableContext as x } from "../../contexts/table.hook.js";
|
|
7
|
+
const y = () => {
|
|
8
|
+
const o = u(null), { totalPages: t, handlePage: r } = x(), m = l(
|
|
9
|
+
(a) => {
|
|
10
|
+
a.preventDefault();
|
|
11
|
+
const s = new FormData(a.currentTarget), n = Number(s.get("jump-to")), i = (n < t ? n : t) || 1;
|
|
12
|
+
r(i - 1), o.current?.reset();
|
|
11
13
|
},
|
|
12
|
-
[
|
|
14
|
+
[r, t]
|
|
13
15
|
);
|
|
14
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ p(
|
|
15
17
|
"form",
|
|
16
18
|
{
|
|
17
19
|
"aria-label": "footer-pagination",
|
|
18
|
-
ref:
|
|
19
|
-
onSubmit:
|
|
20
|
+
ref: o,
|
|
21
|
+
onSubmit: m,
|
|
20
22
|
className: "flex items-center gap-2",
|
|
23
|
+
noValidate: !0,
|
|
21
24
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
|
+
f,
|
|
27
|
+
{
|
|
28
|
+
component: "span",
|
|
29
|
+
className: "text-sm min-w-fit tracking-normal",
|
|
30
|
+
children: "Jump to"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e(
|
|
24
34
|
c,
|
|
25
35
|
{
|
|
26
36
|
type: "number",
|
|
27
|
-
className: "w-18 text-
|
|
37
|
+
className: "w-18 text-sm no-spinner",
|
|
28
38
|
name: "jump-to",
|
|
29
39
|
min: 1,
|
|
30
|
-
max:
|
|
40
|
+
max: t,
|
|
31
41
|
required: !0,
|
|
32
42
|
autoComplete: "off"
|
|
33
43
|
}
|
|
34
44
|
),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
g,
|
|
37
47
|
{
|
|
48
|
+
variant: "link",
|
|
38
49
|
type: "submit",
|
|
39
|
-
className: "text-xs
|
|
50
|
+
className: "text-xs p-2 cursor-pointer",
|
|
40
51
|
children: "Go"
|
|
41
52
|
}
|
|
42
53
|
)
|
|
@@ -45,5 +56,5 @@ const k = () => {
|
|
|
45
56
|
);
|
|
46
57
|
};
|
|
47
58
|
export {
|
|
48
|
-
|
|
59
|
+
y as FormPaginate
|
|
49
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { f as b } from "../../../../index-CSWGJT-v.js";
|
|
3
|
-
import { useCallback as
|
|
3
|
+
import { useCallback as l } from "react";
|
|
4
4
|
import { cn as a } from "../../../../utils/index.js";
|
|
5
5
|
import g from "../../assets/chevron-up.js";
|
|
6
6
|
import u from "../../assets/chevron-down.js";
|
|
@@ -8,14 +8,14 @@ import { useTableContext as k } from "../../contexts/table.hook.js";
|
|
|
8
8
|
const y = ({
|
|
9
9
|
className: n,
|
|
10
10
|
classNameArrows: i,
|
|
11
|
-
classNameActiveArrows:
|
|
11
|
+
classNameActiveArrows: s
|
|
12
12
|
}) => {
|
|
13
|
-
const { table: c, onSorting:
|
|
14
|
-
(t) =>
|
|
15
|
-
[
|
|
16
|
-
), p =
|
|
17
|
-
(t) =>
|
|
18
|
-
[
|
|
13
|
+
const { table: c, onSorting: o } = k(), m = l(
|
|
14
|
+
(t) => o([{ id: t.id, desc: !1 }]),
|
|
15
|
+
[o]
|
|
16
|
+
), p = l(
|
|
17
|
+
(t) => o([{ id: t.id, desc: !0 }]),
|
|
18
|
+
[o]
|
|
19
19
|
);
|
|
20
20
|
return /* @__PURE__ */ r(
|
|
21
21
|
"thead",
|
|
@@ -50,9 +50,9 @@ const y = ({
|
|
|
50
50
|
"dark:last:border-r",
|
|
51
51
|
e.columnDef.meta?.headerClassName
|
|
52
52
|
),
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ d("span", { className: "flex items-center gap-2 w-full", children: [
|
|
54
54
|
b(e.columnDef.header, h()),
|
|
55
|
-
e.getCanSort() && /* @__PURE__ */
|
|
55
|
+
e.getCanSort() && /* @__PURE__ */ d(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
className: a(
|
|
@@ -67,9 +67,9 @@ const y = ({
|
|
|
67
67
|
className: a(
|
|
68
68
|
"w-2 h-2 cursor-pointer",
|
|
69
69
|
{
|
|
70
|
-
"text-blue-600": e.getIsSorted() === "asc"
|
|
70
|
+
"text-blue-600 dark:text-aurora-500": e.getIsSorted() === "asc"
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
s
|
|
73
73
|
),
|
|
74
74
|
onClick: () => m(e)
|
|
75
75
|
}
|
|
@@ -80,9 +80,9 @@ const y = ({
|
|
|
80
80
|
className: a(
|
|
81
81
|
"w-2 h-2 cursor-pointer",
|
|
82
82
|
{
|
|
83
|
-
"text-blue-600": e.getIsSorted() === "desc"
|
|
83
|
+
"text-blue-600 dark:text-aurora-500": e.getIsSorted() === "desc"
|
|
84
84
|
},
|
|
85
|
-
|
|
85
|
+
s
|
|
86
86
|
),
|
|
87
87
|
onClick: () => p(e)
|
|
88
88
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as t, Fragment as
|
|
2
|
-
import { DotPaginate as
|
|
3
|
-
import { DropdownPaginate as
|
|
1
|
+
import { jsxs as t, Fragment as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { DotPaginate as p } from "../DotPaginate/DotPaginate.js";
|
|
3
|
+
import { DropdownPaginate as x } from "../DropdownPaginate/DropdownPaginate.js";
|
|
4
4
|
import { FormPaginate as u } from "../FormPaginate/FormPaginate.js";
|
|
5
5
|
import { cn as b } from "../../../../utils/index.js";
|
|
6
6
|
import { useTableContext as g } from "../../contexts/table.hook.js";
|
|
@@ -19,7 +19,7 @@ const j = ({
|
|
|
19
19
|
tableFetching: d,
|
|
20
20
|
isFirstLoad: c
|
|
21
21
|
} = g();
|
|
22
|
-
return r <= h || d || o ? null : /* @__PURE__ */ t(
|
|
22
|
+
return r <= h || d || o ? null : /* @__PURE__ */ t(f, { children: [
|
|
23
23
|
/* @__PURE__ */ e(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
@@ -29,7 +29,7 @@ const j = ({
|
|
|
29
29
|
"border-y-transparent",
|
|
30
30
|
"border-x-slate-100",
|
|
31
31
|
"text-slate-500",
|
|
32
|
-
"text-
|
|
32
|
+
"text-sm",
|
|
33
33
|
"not-italic",
|
|
34
34
|
"py-2",
|
|
35
35
|
"px-6",
|
|
@@ -49,16 +49,16 @@ const j = ({
|
|
|
49
49
|
r,
|
|
50
50
|
" Results"
|
|
51
51
|
] }) : null,
|
|
52
|
-
i && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(
|
|
52
|
+
i && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(x, { pageSizes: s }) })
|
|
53
53
|
] }),
|
|
54
54
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-8", children: [
|
|
55
|
-
n && /* @__PURE__ */ e(
|
|
55
|
+
n && /* @__PURE__ */ e(p, {}),
|
|
56
56
|
l && /* @__PURE__ */ e(u, {})
|
|
57
57
|
] })
|
|
58
58
|
] })
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
/* @__PURE__ */ e("div", { className: "w-full min-h-
|
|
61
|
+
/* @__PURE__ */ e("div", { className: "w-full min-h-37.5" })
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
64
|
export {
|