@hybridcore/ui 1.5.78 → 1.5.80

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,12 @@
1
+ import { styled as t } from "@mui/material";
2
+ const o = t("div", {
3
+ name: "MuiHighlightLineChart",
4
+ slot: "Root"
5
+ })(({ ownerState: i }) => ({
6
+ position: "relative",
7
+ width: i.width,
8
+ height: i.height
9
+ }));
10
+ export {
11
+ o as HighlightLineChartRoot
12
+ };
@@ -1,174 +1,60 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { TrendingUp as w, TrendingDown as v, Remove as S } from "@mui/icons-material";
3
- import { useTheme as C, Card as z, Box as o, Stack as m, Typography as c, alpha as t } from "@mui/material";
4
- const V = ({
5
- label: g,
6
- value: h,
7
- change: d,
8
- changeType: u = "percentage",
9
- trend: l,
10
- icon: n,
11
- iconPosition: s = "right",
12
- description: p,
13
- variant: b = "default",
14
- sx: x
15
- }) => {
16
- const e = C(), f = () => l === "up" ? /* @__PURE__ */ r(w, { sx: { fontSize: 16 } }) : l === "down" ? /* @__PURE__ */ r(v, { sx: { fontSize: 16 } }) : /* @__PURE__ */ r(S, { sx: { fontSize: 16 } }), y = () => l === "up" ? {
17
- color: e.palette.success.main,
18
- bgcolor: t(e.palette.success.main, 0.1)
19
- } : l === "down" ? {
20
- color: e.palette.error.main,
21
- bgcolor: t(e.palette.error.main, 0.1)
22
- } : {
23
- color: e.palette.text.secondary,
24
- bgcolor: e.palette.action.hover
25
- };
26
- return /* @__PURE__ */ i(
27
- z,
28
- {
29
- sx: {
30
- ...(() => {
31
- const a = {
32
- p: 3,
33
- borderRadius: 2,
34
- boxShadow: 1,
35
- transition: "all 0.3s",
36
- "&:hover": { boxShadow: 3 },
37
- border: 1
38
- };
39
- switch (b) {
40
- case "primary":
41
- return {
42
- ...a,
43
- bgcolor: t(e.palette.primary.main, 0.05),
44
- borderColor: t(e.palette.primary.main, 0.2)
45
- };
46
- case "success":
47
- return {
48
- ...a,
49
- bgcolor: t(e.palette.success.main, 0.05),
50
- borderColor: t(e.palette.success.main, 0.2)
51
- };
52
- case "warning":
53
- return {
54
- ...a,
55
- bgcolor: t(e.palette.warning.main, 0.05),
56
- borderColor: t(e.palette.warning.main, 0.2)
57
- };
58
- case "danger":
59
- return {
60
- ...a,
61
- bgcolor: t(e.palette.error.main, 0.05),
62
- borderColor: t(e.palette.error.main, 0.2)
63
- };
64
- default:
65
- return {
66
- ...a,
67
- bgcolor: "background.paper",
68
- borderColor: "divider"
69
- };
70
- }
71
- })(),
72
- position: "relative",
73
- overflow: "hidden",
74
- ...x
75
- },
76
- children: [
77
- n && s === "watermark" && /* @__PURE__ */ r(
78
- o,
79
- {
80
- sx: {
81
- position: "absolute",
82
- right: -20,
83
- bottom: -20,
84
- opacity: 0.05,
85
- transform: "rotate(-15deg)",
86
- pointerEvents: "none"
87
- },
88
- children: /* @__PURE__ */ r(n, { sx: { fontSize: 120, color: "text.primary" } })
89
- }
90
- ),
91
- /* @__PURE__ */ i(
92
- m,
93
- {
94
- direction: "row",
95
- justifyContent: "space-between",
96
- alignItems: "flex-start",
97
- children: [
98
- n && s === "left" && /* @__PURE__ */ r(o, { mr: 2, children: /* @__PURE__ */ r(
99
- o,
100
- {
101
- sx: {
102
- width: 48,
103
- height: 48,
104
- borderRadius: "50%",
105
- bgcolor: "action.hover",
106
- display: "flex",
107
- alignItems: "center",
108
- justifyContent: "center"
109
- },
110
- children: /* @__PURE__ */ r(n, { sx: { fontSize: 24, color: "text.secondary" } })
111
- }
112
- ) }),
113
- /* @__PURE__ */ i(o, { flex: 1, children: [
114
- /* @__PURE__ */ r(c, { variant: "subtitle2", color: "text.secondary", mb: 0.5, children: g }),
115
- /* @__PURE__ */ r(
116
- c,
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { Stack as a } from "@mui/material";
3
+ import * as g from "react";
4
+ import { useMetricCardLogic as I } from "./logic.js";
5
+ import { MetricCardRoot as u, MetricCardCornerIconContainer as w, MetricCardIconContainer as d, MetricCardContent as S, MetricCardLabel as v, MetricCardValue as y, MetricCardTrendContainer as b, MetricCardDescription as z } from "./styled.js";
6
+ const k = g.forwardRef(
7
+ (s, l) => {
8
+ const {
9
+ label: h,
10
+ value: C,
11
+ change: i,
12
+ changeType: f,
13
+ Icon: t,
14
+ iconPosition: o,
15
+ description: c,
16
+ sx: p,
17
+ other: m,
18
+ ownerState: e,
19
+ TrendIcon: x,
20
+ showCornerIcon: M
21
+ } = I(s);
22
+ return /* @__PURE__ */ n(u, { ref: l, ownerState: e, sx: p, ...m, children: [
23
+ M && t && /* @__PURE__ */ r(w, { ownerState: e, children: /* @__PURE__ */ r(t, { sx: { fontSize: 24, color: "text.secondary" } }) }),
24
+ /* @__PURE__ */ n(
25
+ a,
26
+ {
27
+ direction: "row",
28
+ justifyContent: "space-between",
29
+ alignItems: "flex-start",
30
+ children: [
31
+ t && o === "left" && /* @__PURE__ */ r(d, { ownerState: e, children: /* @__PURE__ */ r(t, { sx: { fontSize: 24, color: "text.secondary" } }) }),
32
+ /* @__PURE__ */ n(S, { ownerState: e, children: [
33
+ /* @__PURE__ */ r(v, { variant: "subtitle2", ownerState: e, children: h }),
34
+ /* @__PURE__ */ r(y, { variant: "h4", ownerState: e, children: C }),
35
+ i !== void 0 && /* @__PURE__ */ n(a, { direction: "row", alignItems: "center", spacing: 1, children: [
36
+ /* @__PURE__ */ n(b, { ownerState: e, children: [
37
+ /* @__PURE__ */ r(x, { sx: { fontSize: 16 } }),
38
+ i,
39
+ f === "percentage" ? "%" : ""
40
+ ] }),
41
+ c && /* @__PURE__ */ r(
42
+ z,
117
43
  {
118
- variant: "h4",
119
- fontWeight: "bold",
120
- color: "text.primary",
121
- mb: 1,
122
- children: h
44
+ variant: "caption",
45
+ ownerState: e,
46
+ children: c
123
47
  }
124
- ),
125
- d !== void 0 && /* @__PURE__ */ i(m, { direction: "row", alignItems: "center", spacing: 1, children: [
126
- /* @__PURE__ */ i(
127
- o,
128
- {
129
- sx: {
130
- display: "inline-flex",
131
- alignItems: "center",
132
- gap: 0.5,
133
- px: 1,
134
- py: 0.5,
135
- borderRadius: 10,
136
- typography: "caption",
137
- fontWeight: "medium",
138
- ...y()
139
- },
140
- children: [
141
- f(),
142
- d,
143
- u === "percentage" ? "%" : ""
144
- ]
145
- }
146
- ),
147
- p && /* @__PURE__ */ r(c, { variant: "caption", color: "text.secondary", children: p })
148
- ] })
149
- ] }),
150
- n && s === "right" && /* @__PURE__ */ r(o, { ml: 2, children: /* @__PURE__ */ r(
151
- o,
152
- {
153
- sx: {
154
- width: 48,
155
- height: 48,
156
- borderRadius: "50%",
157
- bgcolor: "action.hover",
158
- display: "flex",
159
- alignItems: "center",
160
- justifyContent: "center"
161
- },
162
- children: /* @__PURE__ */ r(n, { sx: { fontSize: 24, color: "text.secondary" } })
163
- }
164
- ) })
165
- ]
166
- }
167
- )
168
- ]
169
- }
170
- );
171
- };
48
+ )
49
+ ] })
50
+ ] }),
51
+ t && o === "right" && /* @__PURE__ */ r(d, { ownerState: e, children: /* @__PURE__ */ r(t, { sx: { fontSize: 24, color: "text.secondary" } }) })
52
+ ]
53
+ }
54
+ )
55
+ ] });
56
+ }
57
+ );
172
58
  export {
173
- V as MetricCard
59
+ k as MetricCard
174
60
  };
@@ -0,0 +1,46 @@
1
+ import { Remove as f, TrendingUp as T, TrendingDown as w } from "@mui/icons-material";
2
+ import { useThemeProps as b } from "@mui/material";
3
+ const I = (s) => {
4
+ const n = b({ props: s, name: "MuiMetricCard" }), {
5
+ label: p,
6
+ value: a,
7
+ change: d,
8
+ changeType: r = "percentage",
9
+ trend: e,
10
+ icon: i,
11
+ iconPosition: o = "right",
12
+ description: g,
13
+ variant: c = "default",
14
+ sx: l,
15
+ ...m
16
+ } = n, h = {
17
+ ...n,
18
+ changeType: r,
19
+ iconPosition: o,
20
+ variant: c
21
+ };
22
+ let t = f;
23
+ e === "up" ? t = T : e === "down" && (t = w);
24
+ const u = !!i && ["top-left", "top-right", "bottom-left", "bottom-right"].includes(
25
+ o || ""
26
+ );
27
+ return {
28
+ label: p,
29
+ value: a,
30
+ change: d,
31
+ changeType: r,
32
+ trend: e,
33
+ Icon: i,
34
+ iconPosition: o,
35
+ description: g,
36
+ variant: c,
37
+ sx: l,
38
+ other: m,
39
+ ownerState: h,
40
+ TrendIcon: t,
41
+ showCornerIcon: u
42
+ };
43
+ };
44
+ export {
45
+ I as useMetricCardLogic
46
+ };
@@ -0,0 +1,136 @@
1
+ import { styled as n, alpha as i, Stack as l, Typography as e } from "@mui/material";
2
+ const p = n("div", {
3
+ name: "MuiMetricCard",
4
+ slot: "Root"
5
+ })(({ theme: o, ownerState: a }) => {
6
+ const t = {
7
+ position: "relative",
8
+ overflow: "hidden",
9
+ padding: o.spacing(3),
10
+ borderRadius: o.shape.borderRadius * 2,
11
+ boxShadow: o.shadows[1],
12
+ transition: "all 0.3s",
13
+ "&:hover": { boxShadow: o.shadows[3] },
14
+ border: `1px solid ${o.palette.divider}`,
15
+ backgroundColor: o.palette.background.paper
16
+ };
17
+ let r = {};
18
+ switch (a.variant) {
19
+ case "primary":
20
+ r = {
21
+ backgroundColor: i(o.palette.primary.main, 0.05),
22
+ borderColor: i(o.palette.primary.main, 0.2)
23
+ };
24
+ break;
25
+ case "success":
26
+ r = {
27
+ backgroundColor: i(o.palette.success.main, 0.05),
28
+ borderColor: i(o.palette.success.main, 0.2)
29
+ };
30
+ break;
31
+ case "warning":
32
+ r = {
33
+ backgroundColor: i(o.palette.warning.main, 0.05),
34
+ borderColor: i(o.palette.warning.main, 0.2)
35
+ };
36
+ break;
37
+ case "danger":
38
+ r = {
39
+ backgroundColor: i(o.palette.error.main, 0.05),
40
+ borderColor: i(o.palette.error.main, 0.2)
41
+ };
42
+ break;
43
+ default:
44
+ r = {
45
+ backgroundColor: o.palette.background.paper,
46
+ borderColor: o.palette.divider
47
+ };
48
+ break;
49
+ }
50
+ return {
51
+ ...t,
52
+ ...r
53
+ };
54
+ }), g = n(l, {
55
+ name: "MuiMetricCard",
56
+ slot: "Content"
57
+ })(() => ({
58
+ flex: 1
59
+ })), u = n(e, {
60
+ name: "MuiMetricCard",
61
+ slot: "Label"
62
+ })(({ theme: o }) => ({
63
+ color: o.palette.text.secondary,
64
+ marginBottom: o.spacing(0.5)
65
+ })), C = n(e, {
66
+ name: "MuiMetricCard",
67
+ slot: "Value"
68
+ })(({ theme: o }) => ({
69
+ color: o.palette.text.primary,
70
+ fontWeight: "bold",
71
+ marginBottom: o.spacing(1)
72
+ })), b = n("div", {
73
+ name: "MuiMetricCard",
74
+ slot: "TrendContainer"
75
+ })(({ theme: o, ownerState: a }) => {
76
+ let t = o.palette.text.secondary, r = o.palette.action.hover;
77
+ return a.trend === "up" ? (t = o.palette.success.main, r = i(o.palette.success.main, 0.1)) : a.trend === "down" && (t = o.palette.error.main, r = i(o.palette.error.main, 0.1)), {
78
+ display: "inline-flex",
79
+ alignItems: "center",
80
+ gap: o.spacing(0.5),
81
+ padding: o.spacing(0.5, 1),
82
+ borderRadius: 10,
83
+ ...o.typography.caption,
84
+ fontWeight: 500,
85
+ color: t,
86
+ backgroundColor: r
87
+ };
88
+ }), M = n(e, {
89
+ name: "MuiMetricCard",
90
+ slot: "Description"
91
+ })(({ theme: o }) => ({
92
+ color: o.palette.text.secondary
93
+ })), y = n("div", {
94
+ name: "MuiMetricCard",
95
+ slot: "Icon"
96
+ })(({ theme: o, ownerState: a }) => ({
97
+ width: 48,
98
+ height: 48,
99
+ borderRadius: "50%",
100
+ backgroundColor: o.palette.action.hover,
101
+ display: "flex",
102
+ alignItems: "center",
103
+ justifyContent: "center",
104
+ marginRight: a.iconPosition === "left" ? o.spacing(2) : 0,
105
+ marginLeft: a.iconPosition === "right" ? o.spacing(2) : 0
106
+ })), v = n("div", {
107
+ name: "MuiMetricCard",
108
+ slot: "CornerIcon"
109
+ })(({ theme: o, ownerState: a }) => {
110
+ var t, r, c, d;
111
+ return {
112
+ position: "absolute",
113
+ top: (t = a.iconPosition) != null && t.includes("top") ? 24 : void 0,
114
+ bottom: (r = a.iconPosition) != null && r.includes("bottom") ? 24 : void 0,
115
+ left: (c = a.iconPosition) != null && c.includes("left") ? 24 : void 0,
116
+ right: (d = a.iconPosition) != null && d.includes("right") ? 24 : void 0,
117
+ zIndex: 1,
118
+ width: 48,
119
+ height: 48,
120
+ borderRadius: "50%",
121
+ backgroundColor: o.palette.action.hover,
122
+ display: "flex",
123
+ alignItems: "center",
124
+ justifyContent: "center"
125
+ };
126
+ });
127
+ export {
128
+ g as MetricCardContent,
129
+ v as MetricCardCornerIconContainer,
130
+ M as MetricCardDescription,
131
+ y as MetricCardIconContainer,
132
+ u as MetricCardLabel,
133
+ p as MetricCardRoot,
134
+ b as MetricCardTrendContainer,
135
+ C as MetricCardValue
136
+ };
@@ -1,122 +1,95 @@
1
- import { jsxs as c, jsx as o, Fragment as p } from "react/jsx-runtime";
2
- import { List as y, Box as j, Divider as P, ListItem as z, ListItemText as A, Typography as B, Button as u, TablePagination as F } from "@mui/material";
3
- import G from "lodash";
4
- import { useState as g } from "react";
5
- import { Container as M } from "../container/index.js";
6
- const U = [5, 10, 25, 50];
7
- function K({
8
- title: f,
9
- data: l = [],
10
- payload: n,
11
- totalCount: v,
12
- onChange: s,
13
- onItemClick: t,
14
- sx: w
15
- }) {
16
- const [m, h] = g(0), [b, L] = g(5), [R, x] = g([]), a = (n == null ? void 0 : n.pageNumber) !== void 0 ? n.pageNumber : m, i = (n == null ? void 0 : n.rows) !== void 0 ? n.rows : b, T = (e, r) => {
17
- h(r), s && s({ ...n, pageNumber: r, rows: i });
18
- }, _ = (e) => {
19
- const r = parseInt(e.target.value, 10);
20
- L(r), h(0), s && s({ ...n, pageNumber: 0, rows: r });
21
- }, D = (e) => (r) => {
22
- r.stopPropagation(), x((d) => [...d, e]);
23
- }, N = (e) => (r) => {
24
- r.stopPropagation(), x((d) => d.filter((O) => O !== e));
25
- }, S = s ? v || 0 : l.length, E = s ? l : l.slice(a * i, (a + 1) * i);
26
- return /* @__PURE__ */ c(
27
- M,
28
- {
29
- title: f,
30
- headerSx: {
31
- py: 2,
32
- px: 3
33
- },
34
- contentSx: {
35
- p: "0px !important",
36
- display: "flex",
37
- flexDirection: "column",
38
- flex: 1,
39
- overflow: "hidden"
40
- },
41
- sx: {
42
- display: "flex",
43
- flexDirection: "column",
44
- height: "100%",
45
- ...w
46
- },
47
- children: [
48
- /* @__PURE__ */ o(y, { disablePadding: !0, sx: { flex: 1, overflowY: "auto" }, children: E.map((e, r) => /* @__PURE__ */ c(j, { children: [
49
- r === 0 && /* @__PURE__ */ o(P, { component: "li" }),
50
- /* @__PURE__ */ o(
51
- z,
52
- {
53
- onClick: () => t == null ? void 0 : t(e),
54
- sx: {
55
- cursor: t ? "pointer" : "default",
56
- "&:hover": t ? { backgroundColor: "action.hover" } : void 0
57
- },
58
- children: /* @__PURE__ */ o(
59
- A,
1
+ import { jsxs as i, jsx as n, Fragment as a } from "react/jsx-runtime";
2
+ import { Box as f, Divider as s, ListItem as w, ListItemIcon as T, ListItemText as R, Typography as _, Button as c, TablePagination as b } from "@mui/material";
3
+ import I from "lodash";
4
+ import { usePaginatedListLogic as O } from "./logic.js";
5
+ import { PaginatedListRoot as k, PaginatedListHeader as D, PaginatedListContent as E, PaginatedListList as S, PaginatedListPagination as j } from "./styled.js";
6
+ const z = [5, 10, 25, 50];
7
+ function M(l) {
8
+ const {
9
+ title: t,
10
+ displayData: p,
11
+ count: g,
12
+ page: h,
13
+ rowsPerPage: P,
14
+ expanded: L,
15
+ handleChangePage: x,
16
+ handleChangeRowsPerPage: m,
17
+ readMore: u,
18
+ showLess: y,
19
+ onItemClick: o,
20
+ ownerState: r,
21
+ sx: v,
22
+ other: C
23
+ } = O(l);
24
+ return /* @__PURE__ */ i(k, { ownerState: r, sx: v, elevation: 4, ...C, children: [
25
+ t && /* @__PURE__ */ n(D, { title: t, ownerState: r }),
26
+ /* @__PURE__ */ i(E, { ownerState: r, children: [
27
+ /* @__PURE__ */ n(S, { disablePadding: !0, ownerState: r, children: p.map((e, d) => /* @__PURE__ */ i(f, { children: [
28
+ d === 0 && /* @__PURE__ */ n(s, { component: "li" }),
29
+ /* @__PURE__ */ i(
30
+ w,
31
+ {
32
+ onClick: () => o == null ? void 0 : o(e),
33
+ sx: {
34
+ cursor: o ? "pointer" : "default",
35
+ "&:hover": o ? { backgroundColor: "action.hover" } : void 0
36
+ },
37
+ children: [
38
+ e.icon && /* @__PURE__ */ n(T, { children: e.icon }),
39
+ /* @__PURE__ */ n(
40
+ R,
60
41
  {
61
42
  primary: e.title,
62
43
  secondaryTypographyProps: {
63
44
  component: "div"
64
45
  },
65
- secondary: /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(B, { variant: "body2", children: R.includes(e.id) ? /* @__PURE__ */ c(p, { children: [
46
+ secondary: /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(_, { variant: "body2", children: L.includes(e.id) ? /* @__PURE__ */ i(a, { children: [
66
47
  e.description,
67
- /* @__PURE__ */ o(
68
- u,
48
+ /* @__PURE__ */ n(
49
+ c,
69
50
  {
70
51
  variant: "text",
71
52
  size: "small",
72
53
  sx: { py: 0, px: 1 },
73
- onClick: N(e.id),
54
+ onClick: y(e.id),
74
55
  children: "show less"
75
56
  }
76
57
  )
77
- ] }) : /* @__PURE__ */ c(p, { children: [
78
- G.truncate(e.description, { length: 100 }),
79
- e.description && e.description.length > 100 && /* @__PURE__ */ o(
80
- u,
58
+ ] }) : /* @__PURE__ */ i(a, { children: [
59
+ I.truncate(e.description, { length: 100 }),
60
+ e.description && e.description.length > 100 && /* @__PURE__ */ n(
61
+ c,
81
62
  {
82
63
  variant: "text",
83
64
  size: "small",
84
65
  sx: { py: 0, px: 1 },
85
- onClick: D(e.id),
66
+ onClick: u(e.id),
86
67
  children: "read more"
87
68
  }
88
69
  )
89
70
  ] }) }) })
90
71
  }
91
72
  )
92
- }
93
- ),
94
- /* @__PURE__ */ o(P, { component: "li" })
95
- ] }, e.id || r)) }),
96
- /* @__PURE__ */ o(
97
- "div",
98
- {
99
- style: {
100
- borderTop: "1px solid lightgray"
101
- },
102
- children: /* @__PURE__ */ o(
103
- F,
104
- {
105
- component: "div",
106
- count: S,
107
- page: a,
108
- rowsPerPage: i,
109
- rowsPerPageOptions: U,
110
- onPageChange: T,
111
- onRowsPerPageChange: _
112
- }
113
- )
73
+ ]
114
74
  }
115
- )
116
- ]
117
- }
118
- );
75
+ ),
76
+ /* @__PURE__ */ n(s, { component: "li" })
77
+ ] }, e.id || d)) }),
78
+ /* @__PURE__ */ n(j, { ownerState: r, children: /* @__PURE__ */ n(
79
+ b,
80
+ {
81
+ component: "div",
82
+ count: g,
83
+ page: h,
84
+ rowsPerPage: P,
85
+ rowsPerPageOptions: z,
86
+ onPageChange: x,
87
+ onRowsPerPageChange: m
88
+ }
89
+ ) })
90
+ ] })
91
+ ] });
119
92
  }
120
93
  export {
121
- K as PaginatedList
94
+ M as PaginatedList
122
95
  };
@@ -0,0 +1,45 @@
1
+ import { useThemeProps as D } from "@mui/material";
2
+ import { useState as g } from "react";
3
+ const _ = (l) => {
4
+ const i = D({ props: l, name: "MuiPaginatedList" }), {
5
+ title: u,
6
+ data: a = [],
7
+ payload: e,
8
+ totalCount: m,
9
+ onChange: t,
10
+ onItemClick: w,
11
+ sx: d,
12
+ ...h
13
+ } = i, [L, p] = g(0), [f, C] = g(5), [b, P] = g([]), r = (e == null ? void 0 : e.pageNumber) !== void 0 ? e.pageNumber : L, n = (e == null ? void 0 : e.rows) !== void 0 ? e.rows : f, v = (s, o) => {
14
+ p(o), t && t({ ...e, pageNumber: o, rows: n });
15
+ }, x = (s) => {
16
+ const o = parseInt(s.target.value, 10);
17
+ C(o), p(0), t && t({ ...e, pageNumber: 0, rows: o });
18
+ }, N = (s) => (o) => {
19
+ o.stopPropagation(), P((c) => [...c, s]);
20
+ }, R = (s) => (o) => {
21
+ o.stopPropagation(), P((c) => c.filter((k) => k !== s));
22
+ }, I = t ? m || 0 : a.length, M = t ? a : a.slice(r * n, (r + 1) * n), S = {
23
+ ...i
24
+ };
25
+ return {
26
+ title: u,
27
+ data: a,
28
+ displayData: M,
29
+ count: I,
30
+ page: r,
31
+ rowsPerPage: n,
32
+ expanded: b,
33
+ handleChangePage: v,
34
+ handleChangeRowsPerPage: x,
35
+ readMore: N,
36
+ showLess: R,
37
+ onItemClick: w,
38
+ ownerState: S,
39
+ sx: d,
40
+ other: h
41
+ };
42
+ };
43
+ export {
44
+ _ as usePaginatedListLogic
45
+ };