@amateescu/portal-ui-components 0.0.7 → 0.0.9-beta0
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/ButtonBase-Dv90LYxj.js +956 -0
- package/dist/Skeleton-g81JQrtl.js +25004 -0
- package/dist/VModalIcon-D7L4bQLO.js +5 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +2 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +50 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts +11 -0
- package/dist/components/CustomButton/index.js +359 -9
- package/dist/components/CustomPagination/CustomPagination.d.ts +11 -0
- package/dist/components/CustomPagination/CustomPagination.js +948 -0
- package/dist/components/ErrorModal/ErrorModal.d.ts +2 -0
- package/dist/components/ErrorModal/ErrorModal.js +35 -0
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +10 -0
- package/dist/components/ErrorModal/ErrorModal.types.js +1 -0
- package/dist/components/InfoModal/index.js +23 -6128
- package/dist/components/KpiCard/index.js +23 -24
- package/dist/components/LoadingAnimation/index.js +254 -37
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +2 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +125 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.js +1 -0
- package/dist/generateUtilityClasses-CBdP3bZj.js +3259 -0
- package/dist/index-BczMuCik.js +6111 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +18 -12
- package/dist/{index-kNWC7pFF.js → objectWithoutPropertiesLoose-CIT-1_kH.js} +25 -25
- package/dist/types/CustomSvg.d.ts +5 -0
- package/dist/types/CustomSvg.js +1 -0
- package/package.json +1 -1
- package/dist/Button-BgbkoKxR.js +0 -1314
- package/dist/CircularProgress-BsBIRj7X.js +0 -225
- package/dist/Skeleton-BB4Y_Her.js +0 -5898
- package/dist/components/TotalDataGrid/index.d.ts +0 -2
- package/dist/components/TotalDataGrid/index.js +0 -28058
- package/dist/generateUtilityClasses-sdN6xOVt.js +0 -3985
- package/dist/toPropertyKey-DMiYgyB_.js +0 -19113
- /package/dist/components/{TotalDataGrid/types.js → ConfirmationModal/ConfirmationModal.types.js} +0 -0
- /package/dist/components/TotalDataGrid/{types.d.ts → TotalDataGrid.types.d.ts} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M5 13L9 17L19 7", stroke: "#12121A", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as S
|
|
5
|
+
};
|
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._flexRowCenter_14ewh_1{display:flex!important;flex-direction:row;align-items:center}html[dir=rtl] ._mr10_14ewh_7{margin-right:10px}html[dir=ltr] ._mr10_14ewh_7{margin-left:10px}._text18_14ewh_15{font-size:18px}._content_14ewh_19{position:relative;top:-10px}
|
package/dist/assets/index3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._kpiCard_aruiy_1{height:147px;background-color:#f0f0f0;border-radius:8px}._width430_aruiy_7{width:430px}@media (max-width: 1500px){._width430_aruiy_7{width:200px}}._width384_aruiy_16{width:384px}._flexCol_aruiy_20{display:flex;flex-direction:column}._flexRow_aruiy_25{display:flex;flex-direction:row}._title_aruiy_30{font-size:32px;font-weight:500;color:#12121a}@media (max-width: 900px){._title_aruiy_30{font-size:12px}}@media (max-width: 1100px){._title_aruiy_30{font-size:16px}}@media (max-width: 1400px){._title_aruiy_30{font-size:20px}}@media (max-width: 1600px){._title_aruiy_30{font-size:22px}}._content_aruiy_56{font-size:21px;font-weight:400;color:#626367;margin-top:-10px}@media (max-width: 900px){._content_aruiy_56{font-size:8px}}@media (max-width: 1100px){._content_aruiy_56{font-size:12px}}@media (max-width: 1400px){._content_aruiy_56{font-size:14px}}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
+
import { M as d } from "../../index-BczMuCik.js";
|
|
5
|
+
import '../../assets/index2.css';const w = (n) => /* @__PURE__ */ o.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M7 10L9 12L13 8M19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (n) => /* @__PURE__ */ o.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), x = "_flexRowCenter_14ewh_1", f = "_mr10_14ewh_7", C = "_text18_14ewh_15", k = "_content_14ewh_19", t = {
|
|
6
|
+
flexRowCenter: x,
|
|
7
|
+
mr10: f,
|
|
8
|
+
text18: C,
|
|
9
|
+
content: k
|
|
10
|
+
};
|
|
11
|
+
function v({ modalOpen: n, contentText: c, setModalOpen: s, commandOnOk: l, title: a, approve: i, cancel: h }) {
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
d,
|
|
14
|
+
{
|
|
15
|
+
title: /* @__PURE__ */ r("span", { className: t.flexRowCenter, children: [
|
|
16
|
+
/* @__PURE__ */ e(w, { className: t.mr10 }),
|
|
17
|
+
/* @__PURE__ */ e("p", { className: t.text18, children: a })
|
|
18
|
+
] }),
|
|
19
|
+
centered: !0,
|
|
20
|
+
open: n,
|
|
21
|
+
onOk: () => {
|
|
22
|
+
l(), s(!1);
|
|
23
|
+
},
|
|
24
|
+
onCancel: () => s(!1),
|
|
25
|
+
closeIcon: !1,
|
|
26
|
+
okText: /* @__PURE__ */ r("span", { className: t.flexRowCenter, children: [
|
|
27
|
+
/* @__PURE__ */ e(m, {}),
|
|
28
|
+
/* @__PURE__ */ e("span", { children: i })
|
|
29
|
+
] }),
|
|
30
|
+
okButtonProps: {
|
|
31
|
+
style: {
|
|
32
|
+
backgroundColor: "#05A952"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
cancelButtonProps: {
|
|
36
|
+
style: {
|
|
37
|
+
borderColor: "#05A952"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
cancelText: /* @__PURE__ */ r("span", { className: t.flexRowCenter, children: [
|
|
41
|
+
/* @__PURE__ */ e(p, {}),
|
|
42
|
+
/* @__PURE__ */ e("span", { children: h })
|
|
43
|
+
] }),
|
|
44
|
+
children: /* @__PURE__ */ e("p", { className: t.content, children: c })
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
v as ConfirmationModal
|
|
50
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
interface ConfirmationModalProps {
|
|
3
|
+
modalOpen: boolean;
|
|
4
|
+
contentText: string;
|
|
5
|
+
setModalOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
commandOnOk: () => void | void;
|
|
7
|
+
title: string;
|
|
8
|
+
approve: string;
|
|
9
|
+
cancel: string;
|
|
10
|
+
}
|
|
11
|
+
export default ConfirmationModalProps;
|
|
@@ -1,19 +1,369 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as f, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { _ as F, a as t } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import { g as G, a as U, r as A, u as H, c as r, b as q, s as y, d as J, e as v, f as E, P as a } from "../../generateUtilityClasses-CBdP3bZj.js";
|
|
5
|
+
import { B as K } from "../../ButtonBase-Dv90LYxj.js";
|
|
6
|
+
function Q(o) {
|
|
7
|
+
return G("MuiButton", o);
|
|
8
|
+
}
|
|
9
|
+
const b = U("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), R = /* @__PURE__ */ p.createContext({});
|
|
10
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
|
|
11
|
+
const h = /* @__PURE__ */ p.createContext(void 0);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupButtonContext");
|
|
13
|
+
const X = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Y = (o) => {
|
|
14
|
+
const {
|
|
15
|
+
color: n,
|
|
16
|
+
disableElevation: i,
|
|
17
|
+
fullWidth: e,
|
|
18
|
+
size: s,
|
|
19
|
+
variant: l,
|
|
20
|
+
classes: c
|
|
21
|
+
} = o, x = {
|
|
22
|
+
root: ["root", l, `${l}${r(n)}`, `size${r(s)}`, `${l}Size${r(s)}`, `color${r(n)}`, i && "disableElevation", e && "fullWidth"],
|
|
23
|
+
label: ["label"],
|
|
24
|
+
startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
|
|
25
|
+
endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
|
|
26
|
+
}, g = q(x, Q, c);
|
|
27
|
+
return t({}, c, g);
|
|
28
|
+
}, N = (o) => t({}, o.size === "small" && {
|
|
29
|
+
"& > *:nth-of-type(1)": {
|
|
30
|
+
fontSize: 18
|
|
31
|
+
}
|
|
32
|
+
}, o.size === "medium" && {
|
|
33
|
+
"& > *:nth-of-type(1)": {
|
|
34
|
+
fontSize: 20
|
|
35
|
+
}
|
|
36
|
+
}, o.size === "large" && {
|
|
37
|
+
"& > *:nth-of-type(1)": {
|
|
38
|
+
fontSize: 22
|
|
39
|
+
}
|
|
40
|
+
}), Z = y(K, {
|
|
41
|
+
shouldForwardProp: (o) => J(o) || o === "classes",
|
|
42
|
+
name: "MuiButton",
|
|
43
|
+
slot: "Root",
|
|
44
|
+
overridesResolver: (o, n) => {
|
|
45
|
+
const {
|
|
46
|
+
ownerState: i
|
|
47
|
+
} = o;
|
|
48
|
+
return [n.root, n[i.variant], n[`${i.variant}${r(i.color)}`], n[`size${r(i.size)}`], n[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && n.colorInherit, i.disableElevation && n.disableElevation, i.fullWidth && n.fullWidth];
|
|
49
|
+
}
|
|
50
|
+
})(({
|
|
51
|
+
theme: o,
|
|
52
|
+
ownerState: n
|
|
53
|
+
}) => {
|
|
54
|
+
var i, e;
|
|
55
|
+
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], l = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
56
|
+
return t({}, o.typography.button, {
|
|
57
|
+
minWidth: 64,
|
|
58
|
+
padding: "6px 16px",
|
|
59
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
60
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
61
|
+
duration: o.transitions.duration.short
|
|
62
|
+
}),
|
|
63
|
+
"&:hover": t({
|
|
64
|
+
textDecoration: "none",
|
|
65
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
66
|
+
// Reset on touch devices, it doesn't add specificity
|
|
67
|
+
"@media (hover: none)": {
|
|
68
|
+
backgroundColor: "transparent"
|
|
69
|
+
}
|
|
70
|
+
}, n.variant === "text" && n.color !== "inherit" && {
|
|
71
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
72
|
+
// Reset on touch devices, it doesn't add specificity
|
|
73
|
+
"@media (hover: none)": {
|
|
74
|
+
backgroundColor: "transparent"
|
|
75
|
+
}
|
|
76
|
+
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
77
|
+
border: `1px solid ${(o.vars || o).palette[n.color].main}`,
|
|
78
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
79
|
+
// Reset on touch devices, it doesn't add specificity
|
|
80
|
+
"@media (hover: none)": {
|
|
81
|
+
backgroundColor: "transparent"
|
|
82
|
+
}
|
|
83
|
+
}, n.variant === "contained" && {
|
|
84
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : l,
|
|
85
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
86
|
+
// Reset on touch devices, it doesn't add specificity
|
|
87
|
+
"@media (hover: none)": {
|
|
88
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
89
|
+
backgroundColor: (o.vars || o).palette.grey[300]
|
|
90
|
+
}
|
|
91
|
+
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
92
|
+
backgroundColor: (o.vars || o).palette[n.color].dark,
|
|
93
|
+
// Reset on touch devices, it doesn't add specificity
|
|
94
|
+
"@media (hover: none)": {
|
|
95
|
+
backgroundColor: (o.vars || o).palette[n.color].main
|
|
96
|
+
}
|
|
97
|
+
}),
|
|
98
|
+
"&:active": t({}, n.variant === "contained" && {
|
|
99
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
100
|
+
}),
|
|
101
|
+
[`&.${b.focusVisible}`]: t({}, n.variant === "contained" && {
|
|
102
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
103
|
+
}),
|
|
104
|
+
[`&.${b.disabled}`]: t({
|
|
105
|
+
color: (o.vars || o).palette.action.disabled
|
|
106
|
+
}, n.variant === "outlined" && {
|
|
107
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
108
|
+
}, n.variant === "contained" && {
|
|
109
|
+
color: (o.vars || o).palette.action.disabled,
|
|
110
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
111
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
112
|
+
})
|
|
113
|
+
}, n.variant === "text" && {
|
|
114
|
+
padding: "6px 8px"
|
|
115
|
+
}, n.variant === "text" && n.color !== "inherit" && {
|
|
116
|
+
color: (o.vars || o).palette[n.color].main
|
|
117
|
+
}, n.variant === "outlined" && {
|
|
118
|
+
padding: "5px 15px",
|
|
119
|
+
border: "1px solid currentColor"
|
|
120
|
+
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
121
|
+
color: (o.vars || o).palette[n.color].main,
|
|
122
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[n.color].main, 0.5)}`
|
|
123
|
+
}, n.variant === "contained" && {
|
|
124
|
+
color: o.vars ? (
|
|
125
|
+
// this is safe because grey does not change between default light/dark mode
|
|
126
|
+
o.vars.palette.text.primary
|
|
127
|
+
) : (i = (e = o.palette).getContrastText) == null ? void 0 : i.call(e, o.palette.grey[300]),
|
|
128
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
129
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
130
|
+
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
131
|
+
color: (o.vars || o).palette[n.color].contrastText,
|
|
132
|
+
backgroundColor: (o.vars || o).palette[n.color].main
|
|
133
|
+
}, n.color === "inherit" && {
|
|
134
|
+
color: "inherit",
|
|
135
|
+
borderColor: "currentColor"
|
|
136
|
+
}, n.size === "small" && n.variant === "text" && {
|
|
137
|
+
padding: "4px 5px",
|
|
138
|
+
fontSize: o.typography.pxToRem(13)
|
|
139
|
+
}, n.size === "large" && n.variant === "text" && {
|
|
140
|
+
padding: "8px 11px",
|
|
141
|
+
fontSize: o.typography.pxToRem(15)
|
|
142
|
+
}, n.size === "small" && n.variant === "outlined" && {
|
|
143
|
+
padding: "3px 9px",
|
|
144
|
+
fontSize: o.typography.pxToRem(13)
|
|
145
|
+
}, n.size === "large" && n.variant === "outlined" && {
|
|
146
|
+
padding: "7px 21px",
|
|
147
|
+
fontSize: o.typography.pxToRem(15)
|
|
148
|
+
}, n.size === "small" && n.variant === "contained" && {
|
|
149
|
+
padding: "4px 10px",
|
|
150
|
+
fontSize: o.typography.pxToRem(13)
|
|
151
|
+
}, n.size === "large" && n.variant === "contained" && {
|
|
152
|
+
padding: "8px 22px",
|
|
153
|
+
fontSize: o.typography.pxToRem(15)
|
|
154
|
+
}, n.fullWidth && {
|
|
155
|
+
width: "100%"
|
|
156
|
+
});
|
|
157
|
+
}, ({
|
|
158
|
+
ownerState: o
|
|
159
|
+
}) => o.disableElevation && {
|
|
160
|
+
boxShadow: "none",
|
|
161
|
+
"&:hover": {
|
|
162
|
+
boxShadow: "none"
|
|
163
|
+
},
|
|
164
|
+
[`&.${b.focusVisible}`]: {
|
|
165
|
+
boxShadow: "none"
|
|
166
|
+
},
|
|
167
|
+
"&:active": {
|
|
168
|
+
boxShadow: "none"
|
|
169
|
+
},
|
|
170
|
+
[`&.${b.disabled}`]: {
|
|
171
|
+
boxShadow: "none"
|
|
172
|
+
}
|
|
173
|
+
}), w = y("span", {
|
|
174
|
+
name: "MuiButton",
|
|
175
|
+
slot: "StartIcon",
|
|
176
|
+
overridesResolver: (o, n) => {
|
|
177
|
+
const {
|
|
178
|
+
ownerState: i
|
|
179
|
+
} = o;
|
|
180
|
+
return [n.startIcon, n[`iconSize${r(i.size)}`]];
|
|
181
|
+
}
|
|
182
|
+
})(({
|
|
183
|
+
ownerState: o
|
|
184
|
+
}) => t({
|
|
185
|
+
display: "inherit",
|
|
186
|
+
marginRight: 8,
|
|
187
|
+
marginLeft: -4
|
|
188
|
+
}, o.size === "small" && {
|
|
189
|
+
marginLeft: -2
|
|
190
|
+
}, N(o))), oo = y("span", {
|
|
191
|
+
name: "MuiButton",
|
|
192
|
+
slot: "EndIcon",
|
|
193
|
+
overridesResolver: (o, n) => {
|
|
194
|
+
const {
|
|
195
|
+
ownerState: i
|
|
196
|
+
} = o;
|
|
197
|
+
return [n.endIcon, n[`iconSize${r(i.size)}`]];
|
|
198
|
+
}
|
|
199
|
+
})(({
|
|
200
|
+
ownerState: o
|
|
201
|
+
}) => t({
|
|
202
|
+
display: "inherit",
|
|
203
|
+
marginRight: -4,
|
|
204
|
+
marginLeft: 8
|
|
205
|
+
}, o.size === "small" && {
|
|
206
|
+
marginRight: -2
|
|
207
|
+
}, N(o))), O = /* @__PURE__ */ p.forwardRef(function(n, i) {
|
|
208
|
+
const e = p.useContext(R), s = p.useContext(h), l = A(e, n), c = H({
|
|
209
|
+
props: l,
|
|
210
|
+
name: "MuiButton"
|
|
211
|
+
}), {
|
|
212
|
+
children: x,
|
|
213
|
+
color: g = "primary",
|
|
214
|
+
component: z = "button",
|
|
215
|
+
className: k,
|
|
216
|
+
disabled: C = !1,
|
|
217
|
+
disableElevation: T = !1,
|
|
218
|
+
disableFocusRipple: I = !1,
|
|
219
|
+
endIcon: B,
|
|
220
|
+
focusVisibleClassName: P,
|
|
221
|
+
fullWidth: W = !1,
|
|
222
|
+
size: S = "medium",
|
|
223
|
+
startIcon: $,
|
|
224
|
+
type: m,
|
|
225
|
+
variant: M = "text"
|
|
226
|
+
} = c, V = F(c, X), u = t({}, c, {
|
|
227
|
+
color: g,
|
|
228
|
+
component: z,
|
|
229
|
+
disabled: C,
|
|
230
|
+
disableElevation: T,
|
|
231
|
+
disableFocusRipple: I,
|
|
232
|
+
fullWidth: W,
|
|
233
|
+
size: S,
|
|
234
|
+
type: m,
|
|
235
|
+
variant: M
|
|
236
|
+
}), d = Y(u), _ = $ && /* @__PURE__ */ f(w, {
|
|
237
|
+
className: d.startIcon,
|
|
238
|
+
ownerState: u,
|
|
239
|
+
children: $
|
|
240
|
+
}), L = B && /* @__PURE__ */ f(oo, {
|
|
241
|
+
className: d.endIcon,
|
|
242
|
+
ownerState: u,
|
|
243
|
+
children: B
|
|
244
|
+
}), j = s || "";
|
|
245
|
+
return /* @__PURE__ */ D(Z, t({
|
|
246
|
+
ownerState: u,
|
|
247
|
+
className: E(e.className, d.root, k, j),
|
|
248
|
+
component: z,
|
|
249
|
+
disabled: C,
|
|
250
|
+
focusRipple: !I,
|
|
251
|
+
focusVisibleClassName: E(d.focusVisible, P),
|
|
252
|
+
ref: i,
|
|
253
|
+
type: m
|
|
254
|
+
}, V, {
|
|
255
|
+
classes: d,
|
|
256
|
+
children: [_, x, L]
|
|
257
|
+
}));
|
|
258
|
+
});
|
|
259
|
+
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
260
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
261
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
262
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
263
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
264
|
+
/**
|
|
265
|
+
* The content of the component.
|
|
266
|
+
*/
|
|
267
|
+
children: a.node,
|
|
268
|
+
/**
|
|
269
|
+
* Override or extend the styles applied to the component.
|
|
270
|
+
*/
|
|
271
|
+
classes: a.object,
|
|
272
|
+
/**
|
|
273
|
+
* @ignore
|
|
274
|
+
*/
|
|
275
|
+
className: a.string,
|
|
276
|
+
/**
|
|
277
|
+
* The color of the component.
|
|
278
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
279
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
280
|
+
* @default 'primary'
|
|
281
|
+
*/
|
|
282
|
+
color: a.oneOfType([a.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), a.string]),
|
|
283
|
+
/**
|
|
284
|
+
* The component used for the root node.
|
|
285
|
+
* Either a string to use a HTML element or a component.
|
|
286
|
+
*/
|
|
287
|
+
component: a.elementType,
|
|
288
|
+
/**
|
|
289
|
+
* If `true`, the component is disabled.
|
|
290
|
+
* @default false
|
|
291
|
+
*/
|
|
292
|
+
disabled: a.bool,
|
|
293
|
+
/**
|
|
294
|
+
* If `true`, no elevation is used.
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
disableElevation: a.bool,
|
|
298
|
+
/**
|
|
299
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
300
|
+
* @default false
|
|
301
|
+
*/
|
|
302
|
+
disableFocusRipple: a.bool,
|
|
303
|
+
/**
|
|
304
|
+
* If `true`, the ripple effect is disabled.
|
|
305
|
+
*
|
|
306
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
307
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
308
|
+
* @default false
|
|
309
|
+
*/
|
|
310
|
+
disableRipple: a.bool,
|
|
311
|
+
/**
|
|
312
|
+
* Element placed after the children.
|
|
313
|
+
*/
|
|
314
|
+
endIcon: a.node,
|
|
315
|
+
/**
|
|
316
|
+
* @ignore
|
|
317
|
+
*/
|
|
318
|
+
focusVisibleClassName: a.string,
|
|
319
|
+
/**
|
|
320
|
+
* If `true`, the button will take up the full width of its container.
|
|
321
|
+
* @default false
|
|
322
|
+
*/
|
|
323
|
+
fullWidth: a.bool,
|
|
324
|
+
/**
|
|
325
|
+
* The URL to link to when the button is clicked.
|
|
326
|
+
* If defined, an `a` element will be used as the root node.
|
|
327
|
+
*/
|
|
328
|
+
href: a.string,
|
|
329
|
+
/**
|
|
330
|
+
* The size of the component.
|
|
331
|
+
* `small` is equivalent to the dense button styling.
|
|
332
|
+
* @default 'medium'
|
|
333
|
+
*/
|
|
334
|
+
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
335
|
+
/**
|
|
336
|
+
* Element placed before the children.
|
|
337
|
+
*/
|
|
338
|
+
startIcon: a.node,
|
|
339
|
+
/**
|
|
340
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
341
|
+
*/
|
|
342
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
343
|
+
/**
|
|
344
|
+
* @ignore
|
|
345
|
+
*/
|
|
346
|
+
type: a.oneOfType([a.oneOf(["button", "reset", "submit"]), a.string]),
|
|
347
|
+
/**
|
|
348
|
+
* The variant to use.
|
|
349
|
+
* @default 'text'
|
|
350
|
+
*/
|
|
351
|
+
variant: a.oneOfType([a.oneOf(["contained", "outlined", "text"]), a.string])
|
|
352
|
+
});
|
|
353
|
+
const to = ({ content: o, height: n = "40px", width: i = "120px", direction: e = "left", ...s }) => /* @__PURE__ */ f(
|
|
354
|
+
O,
|
|
5
355
|
{
|
|
6
356
|
variant: "outlined",
|
|
7
357
|
disableElevation: !0,
|
|
8
358
|
color: "primary",
|
|
9
359
|
sx: {
|
|
10
|
-
float:
|
|
11
|
-
height:
|
|
360
|
+
float: e,
|
|
361
|
+
height: n,
|
|
12
362
|
borderRadius: 2,
|
|
13
363
|
border: "1px solid #E0E0E0",
|
|
14
364
|
color: "#48464A",
|
|
15
365
|
fontWeight: "400",
|
|
16
|
-
width:
|
|
366
|
+
width: i,
|
|
17
367
|
textTransform: "none",
|
|
18
368
|
// '& .MuiButton-endIcon': {
|
|
19
369
|
// marginInlineStart: '10px',
|
|
@@ -26,10 +376,10 @@ const d = ({ content: o, height: r = "40px", width: t = "120px", direction: n =
|
|
|
26
376
|
border: "1px solid #E0E0E0"
|
|
27
377
|
}
|
|
28
378
|
},
|
|
29
|
-
...
|
|
379
|
+
...s,
|
|
30
380
|
children: o
|
|
31
381
|
}
|
|
32
382
|
);
|
|
33
383
|
export {
|
|
34
|
-
|
|
384
|
+
to as CustomButton
|
|
35
385
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as CustomSvg } from '../../types/CustomSvg';
|
|
2
|
+
type ExternalPaginationProps = {
|
|
3
|
+
isRtl: boolean;
|
|
4
|
+
pageCount: number;
|
|
5
|
+
arrowFirstIcon: CustomSvg;
|
|
6
|
+
arrowLastIcon: CustomSvg;
|
|
7
|
+
nextIcon: CustomSvg;
|
|
8
|
+
previousIcon: CustomSvg;
|
|
9
|
+
};
|
|
10
|
+
export declare function CustomPagination({ isRtl, pageCount, arrowFirstIcon, arrowLastIcon, nextIcon, previousIcon }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|