@gnwebsoft/ui 2.18.29 → 2.18.31
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/{chunk-A6OSZDDG.mjs → chunk-34X2YRTY.mjs} +42 -46
- package/dist/{chunk-JP67273T.js → chunk-4E6AXVK7.js} +70 -33
- package/dist/{chunk-QA44AL2X.js → chunk-7HKMAJKT.js} +75 -24
- package/dist/{chunk-N3AI2OIO.mjs → chunk-M42TPRCN.mjs} +80 -29
- package/dist/{chunk-6Q6446Q3.mjs → chunk-MRZZQRKX.mjs} +79 -42
- package/dist/{chunk-IXBVE2GN.js → chunk-STC2BZ2L.js} +36 -40
- package/dist/components/index.d.mts +24 -9
- package/dist/components/index.d.ts +24 -9
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +5 -5
- package/dist/wrappers/index.d.mts +15 -1
- package/dist/wrappers/index.d.ts +15 -1
- package/dist/wrappers/index.js +2 -2
- package/dist/wrappers/index.mjs +1 -1
- package/dist/wrappers2/index.d.mts +4 -4
- package/dist/wrappers2/index.d.ts +4 -4
- package/dist/wrappers2/index.js +2 -2
- package/dist/wrappers2/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/components/ClearButton/ClearButton.tsx
|
|
2
2
|
var _material = require('@mui/material');
|
|
3
3
|
var _jsxruntime = require('react/jsx-runtime');
|
|
4
|
-
var ClearButton = ({ isSubmitting, handleClear }) => {
|
|
5
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4
|
+
var ClearButton = ({ isSubmitting, handleClear, sx }) => {
|
|
5
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6
|
+
_material.Button,
|
|
7
|
+
{
|
|
8
|
+
variant: "outlined",
|
|
9
|
+
onClick: handleClear,
|
|
10
|
+
disabled: isSubmitting,
|
|
11
|
+
sx,
|
|
12
|
+
children: "Clear"
|
|
13
|
+
}
|
|
14
|
+
);
|
|
6
15
|
};
|
|
7
16
|
var ClearButton_default = ClearButton;
|
|
8
17
|
|
|
@@ -15,7 +24,8 @@ var FilterButton = ({
|
|
|
15
24
|
isSubmitting,
|
|
16
25
|
show,
|
|
17
26
|
title,
|
|
18
|
-
icon
|
|
27
|
+
icon,
|
|
28
|
+
sx
|
|
19
29
|
}) => {
|
|
20
30
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21
31
|
_lab.LoadingButton,
|
|
@@ -26,7 +36,8 @@ var FilterButton = ({
|
|
|
26
36
|
disabled: !show,
|
|
27
37
|
disableRipple: true,
|
|
28
38
|
sx: {
|
|
29
|
-
|
|
39
|
+
...sx,
|
|
40
|
+
bgcolor: "primary",
|
|
30
41
|
display: "flex",
|
|
31
42
|
alignItems: "center"
|
|
32
43
|
},
|
|
@@ -49,11 +60,18 @@ var FilterButton_default = FilterButton;
|
|
|
49
60
|
|
|
50
61
|
var _ManageSearch = require('@mui/icons-material/ManageSearch'); var _ManageSearch2 = _interopRequireDefault(_ManageSearch);
|
|
51
62
|
|
|
52
|
-
var FilterWrapper = ({
|
|
63
|
+
var FilterWrapper = ({
|
|
64
|
+
children,
|
|
65
|
+
title,
|
|
66
|
+
cardSx,
|
|
67
|
+
textSx,
|
|
68
|
+
icon
|
|
69
|
+
}) => {
|
|
53
70
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
54
71
|
_material.Card,
|
|
55
72
|
{
|
|
56
73
|
sx: {
|
|
74
|
+
...cardSx,
|
|
57
75
|
position: "relative",
|
|
58
76
|
borderRadius: "0px",
|
|
59
77
|
mb: 2
|
|
@@ -73,12 +91,12 @@ var FilterWrapper = ({ children, title }) => {
|
|
|
73
91
|
alignItems: "center"
|
|
74
92
|
},
|
|
75
93
|
title: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
76
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "
|
|
94
|
+
icon ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "primary", height: "2.5rem" } }),
|
|
77
95
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
96
|
_material.Typography,
|
|
79
97
|
{
|
|
80
98
|
variant: "h5",
|
|
81
|
-
sx: { color: "
|
|
99
|
+
sx: { ...textSx, color: "primary", fontWeight: "bold" },
|
|
82
100
|
children: title
|
|
83
101
|
}
|
|
84
102
|
)
|
|
@@ -103,11 +121,21 @@ var FilterWrapper_default = FilterWrapper;
|
|
|
103
121
|
|
|
104
122
|
|
|
105
123
|
|
|
106
|
-
|
|
124
|
+
|
|
125
|
+
var FormWrapper = ({
|
|
126
|
+
children,
|
|
127
|
+
title,
|
|
128
|
+
editMode,
|
|
129
|
+
cardSx,
|
|
130
|
+
textSx,
|
|
131
|
+
icon,
|
|
132
|
+
actionButton
|
|
133
|
+
}) => {
|
|
107
134
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
108
135
|
_material.Card,
|
|
109
136
|
{
|
|
110
137
|
sx: {
|
|
138
|
+
...cardSx,
|
|
111
139
|
position: "relative",
|
|
112
140
|
borderRadius: "0px"
|
|
113
141
|
},
|
|
@@ -124,7 +152,23 @@ var FormWrapper = ({ children, title, editMode }) => {
|
|
|
124
152
|
alignSelf: "center"
|
|
125
153
|
}
|
|
126
154
|
},
|
|
127
|
-
title:
|
|
155
|
+
title: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
156
|
+
_material.Box,
|
|
157
|
+
{
|
|
158
|
+
sx: {
|
|
159
|
+
display: "flex",
|
|
160
|
+
alignItems: "center",
|
|
161
|
+
justifyContent: "space-between"
|
|
162
|
+
},
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
165
|
+
_nullishCoalesce(icon, () => ( icon)),
|
|
166
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { color: "primary", sx: textSx, children: editMode ? `Edit ${title}` : `Create ${title}` })
|
|
167
|
+
] }),
|
|
168
|
+
actionButton
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
)
|
|
128
172
|
}
|
|
129
173
|
),
|
|
130
174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, { sx: { mt: 0 } }),
|
|
@@ -142,7 +186,9 @@ var LabelText = ({
|
|
|
142
186
|
label,
|
|
143
187
|
value,
|
|
144
188
|
gridSize,
|
|
145
|
-
containerSize
|
|
189
|
+
containerSize,
|
|
190
|
+
labelSx,
|
|
191
|
+
valueSx
|
|
146
192
|
}) => {
|
|
147
193
|
const defaultGridSize = {
|
|
148
194
|
labelSize: { xs: 6, sm: 6, md: 6 },
|
|
@@ -166,6 +212,7 @@ var LabelText = ({
|
|
|
166
212
|
{
|
|
167
213
|
size: size.labelSize,
|
|
168
214
|
sx: {
|
|
215
|
+
...labelSx,
|
|
169
216
|
padding: "5px",
|
|
170
217
|
fontSize: "14px",
|
|
171
218
|
textAlign: { xs: "left", sm: "right", md: "right" }
|
|
@@ -184,9 +231,9 @@ var LabelText = ({
|
|
|
184
231
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Tooltip, { title: value, arrow: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
232
|
_material.Typography,
|
|
186
233
|
{
|
|
187
|
-
color: "#3598dc",
|
|
188
|
-
fontSize: "14px",
|
|
189
234
|
sx: {
|
|
235
|
+
...valueSx,
|
|
236
|
+
fontSize: "14px",
|
|
190
237
|
wordBreak: "break-word",
|
|
191
238
|
overflow: "hidden",
|
|
192
239
|
display: "-webkit-box",
|
|
@@ -222,13 +269,18 @@ var ListWrapper = ({
|
|
|
222
269
|
title,
|
|
223
270
|
count,
|
|
224
271
|
show = true,
|
|
225
|
-
actionButton
|
|
272
|
+
actionButton,
|
|
273
|
+
cardSx,
|
|
274
|
+
textSx,
|
|
275
|
+
icon,
|
|
276
|
+
showCount = true
|
|
226
277
|
}) => {
|
|
227
278
|
if (!show) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
228
279
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
229
280
|
_material.Card,
|
|
230
281
|
{
|
|
231
282
|
sx: {
|
|
283
|
+
...cardSx,
|
|
232
284
|
position: "relative",
|
|
233
285
|
borderRadius: "0px"
|
|
234
286
|
},
|
|
@@ -256,13 +308,17 @@ var ListWrapper = ({
|
|
|
256
308
|
},
|
|
257
309
|
children: [
|
|
258
310
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "
|
|
260
|
-
/* @__PURE__ */ _jsxruntime.
|
|
311
|
+
icon ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "primary", height: "2.5rem" } }),
|
|
312
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
261
313
|
_material.Typography,
|
|
262
314
|
{
|
|
263
315
|
variant: "h5",
|
|
264
|
-
sx: { color: "
|
|
265
|
-
children:
|
|
316
|
+
sx: { ...textSx, color: "primary", fontWeight: "bold" },
|
|
317
|
+
children: [
|
|
318
|
+
title,
|
|
319
|
+
" ",
|
|
320
|
+
showCount ? `$(${count ? count : 0})` : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {})
|
|
321
|
+
]
|
|
266
322
|
}
|
|
267
323
|
)
|
|
268
324
|
] }),
|
|
@@ -297,18 +353,13 @@ var SimpleToolbar = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _xdatagr
|
|
|
297
353
|
sx: {
|
|
298
354
|
"& .MuiInputBase-root": {
|
|
299
355
|
borderRadius: "8px",
|
|
300
|
-
padding: "6px 10px"
|
|
301
|
-
backgroundColor: "#f6f7f8"
|
|
356
|
+
padding: "6px 10px"
|
|
302
357
|
},
|
|
303
358
|
"& input": {
|
|
304
359
|
fontSize: "14px",
|
|
305
360
|
color: "#333"
|
|
306
361
|
},
|
|
307
|
-
borderRadius: "8px"
|
|
308
|
-
".css-hzgntl-MuiOutlinedInput-notchedOutline": {
|
|
309
|
-
borderRadius: "8px",
|
|
310
|
-
border: "1px solid #efefef !important"
|
|
311
|
-
}
|
|
362
|
+
borderRadius: "8px"
|
|
312
363
|
}
|
|
313
364
|
}
|
|
314
365
|
),
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
// src/components/ClearButton/ClearButton.tsx
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var ClearButton = ({ isSubmitting, handleClear }) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
4
|
+
var ClearButton = ({ isSubmitting, handleClear, sx }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
Button,
|
|
7
|
+
{
|
|
8
|
+
variant: "outlined",
|
|
9
|
+
onClick: handleClear,
|
|
10
|
+
disabled: isSubmitting,
|
|
11
|
+
sx,
|
|
12
|
+
children: "Clear"
|
|
13
|
+
}
|
|
14
|
+
);
|
|
6
15
|
};
|
|
7
16
|
var ClearButton_default = ClearButton;
|
|
8
17
|
|
|
@@ -15,7 +24,8 @@ var FilterButton = ({
|
|
|
15
24
|
isSubmitting,
|
|
16
25
|
show,
|
|
17
26
|
title,
|
|
18
|
-
icon
|
|
27
|
+
icon,
|
|
28
|
+
sx
|
|
19
29
|
}) => {
|
|
20
30
|
return /* @__PURE__ */ jsx2(
|
|
21
31
|
LoadingButton,
|
|
@@ -26,7 +36,8 @@ var FilterButton = ({
|
|
|
26
36
|
disabled: !show,
|
|
27
37
|
disableRipple: true,
|
|
28
38
|
sx: {
|
|
29
|
-
|
|
39
|
+
...sx,
|
|
40
|
+
bgcolor: "primary",
|
|
30
41
|
display: "flex",
|
|
31
42
|
alignItems: "center"
|
|
32
43
|
},
|
|
@@ -49,11 +60,18 @@ import {
|
|
|
49
60
|
} from "@mui/material";
|
|
50
61
|
import ManageSearchIcon from "@mui/icons-material/ManageSearch";
|
|
51
62
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
52
|
-
var FilterWrapper = ({
|
|
63
|
+
var FilterWrapper = ({
|
|
64
|
+
children,
|
|
65
|
+
title,
|
|
66
|
+
cardSx,
|
|
67
|
+
textSx,
|
|
68
|
+
icon
|
|
69
|
+
}) => {
|
|
53
70
|
return /* @__PURE__ */ jsxs(
|
|
54
71
|
Card,
|
|
55
72
|
{
|
|
56
73
|
sx: {
|
|
74
|
+
...cardSx,
|
|
57
75
|
position: "relative",
|
|
58
76
|
borderRadius: "0px",
|
|
59
77
|
mb: 2
|
|
@@ -73,12 +91,12 @@ var FilterWrapper = ({ children, title }) => {
|
|
|
73
91
|
alignItems: "center"
|
|
74
92
|
},
|
|
75
93
|
title: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
76
|
-
/* @__PURE__ */ jsx3(ManageSearchIcon, { sx: { color: "
|
|
94
|
+
icon ? icon : /* @__PURE__ */ jsx3(ManageSearchIcon, { sx: { color: "primary", height: "2.5rem" } }),
|
|
77
95
|
/* @__PURE__ */ jsx3(
|
|
78
96
|
Typography,
|
|
79
97
|
{
|
|
80
98
|
variant: "h5",
|
|
81
|
-
sx: { color: "
|
|
99
|
+
sx: { ...textSx, color: "primary", fontWeight: "bold" },
|
|
82
100
|
children: title
|
|
83
101
|
}
|
|
84
102
|
)
|
|
@@ -95,6 +113,7 @@ var FilterWrapper_default = FilterWrapper;
|
|
|
95
113
|
|
|
96
114
|
// src/components/FormWrapper/FormWrapper.tsx
|
|
97
115
|
import {
|
|
116
|
+
Box as Box2,
|
|
98
117
|
Card as Card2,
|
|
99
118
|
CardContent as CardContent2,
|
|
100
119
|
CardHeader as CardHeader2,
|
|
@@ -103,11 +122,20 @@ import {
|
|
|
103
122
|
Typography as Typography2
|
|
104
123
|
} from "@mui/material";
|
|
105
124
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
106
|
-
var FormWrapper = ({
|
|
125
|
+
var FormWrapper = ({
|
|
126
|
+
children,
|
|
127
|
+
title,
|
|
128
|
+
editMode,
|
|
129
|
+
cardSx,
|
|
130
|
+
textSx,
|
|
131
|
+
icon,
|
|
132
|
+
actionButton
|
|
133
|
+
}) => {
|
|
107
134
|
return /* @__PURE__ */ jsxs2(
|
|
108
135
|
Card2,
|
|
109
136
|
{
|
|
110
137
|
sx: {
|
|
138
|
+
...cardSx,
|
|
111
139
|
position: "relative",
|
|
112
140
|
borderRadius: "0px"
|
|
113
141
|
},
|
|
@@ -124,7 +152,23 @@ var FormWrapper = ({ children, title, editMode }) => {
|
|
|
124
152
|
alignSelf: "center"
|
|
125
153
|
}
|
|
126
154
|
},
|
|
127
|
-
title:
|
|
155
|
+
title: /* @__PURE__ */ jsxs2(
|
|
156
|
+
Box2,
|
|
157
|
+
{
|
|
158
|
+
sx: {
|
|
159
|
+
display: "flex",
|
|
160
|
+
alignItems: "center",
|
|
161
|
+
justifyContent: "space-between"
|
|
162
|
+
},
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ jsxs2(Box2, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
165
|
+
icon ?? icon,
|
|
166
|
+
/* @__PURE__ */ jsx4(Typography2, { color: "primary", sx: textSx, children: editMode ? `Edit ${title}` : `Create ${title}` })
|
|
167
|
+
] }),
|
|
168
|
+
actionButton
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
)
|
|
128
172
|
}
|
|
129
173
|
),
|
|
130
174
|
/* @__PURE__ */ jsx4(Divider2, { sx: { mt: 0 } }),
|
|
@@ -142,7 +186,9 @@ var LabelText = ({
|
|
|
142
186
|
label,
|
|
143
187
|
value,
|
|
144
188
|
gridSize,
|
|
145
|
-
containerSize
|
|
189
|
+
containerSize,
|
|
190
|
+
labelSx,
|
|
191
|
+
valueSx
|
|
146
192
|
}) => {
|
|
147
193
|
const defaultGridSize = {
|
|
148
194
|
labelSize: { xs: 6, sm: 6, md: 6 },
|
|
@@ -166,6 +212,7 @@ var LabelText = ({
|
|
|
166
212
|
{
|
|
167
213
|
size: size.labelSize,
|
|
168
214
|
sx: {
|
|
215
|
+
...labelSx,
|
|
169
216
|
padding: "5px",
|
|
170
217
|
fontSize: "14px",
|
|
171
218
|
textAlign: { xs: "left", sm: "right", md: "right" }
|
|
@@ -184,9 +231,9 @@ var LabelText = ({
|
|
|
184
231
|
children: /* @__PURE__ */ jsx5(Tooltip, { title: value, arrow: true, children: /* @__PURE__ */ jsx5(
|
|
185
232
|
Typography3,
|
|
186
233
|
{
|
|
187
|
-
color: "#3598dc",
|
|
188
|
-
fontSize: "14px",
|
|
189
234
|
sx: {
|
|
235
|
+
...valueSx,
|
|
236
|
+
fontSize: "14px",
|
|
190
237
|
wordBreak: "break-word",
|
|
191
238
|
overflow: "hidden",
|
|
192
239
|
display: "-webkit-box",
|
|
@@ -207,7 +254,7 @@ var LabelText_default = LabelText;
|
|
|
207
254
|
|
|
208
255
|
// src/components/ListWrapper/ListWrapper.tsx
|
|
209
256
|
import {
|
|
210
|
-
Box as
|
|
257
|
+
Box as Box3,
|
|
211
258
|
Card as Card3,
|
|
212
259
|
CardContent as CardContent3,
|
|
213
260
|
CardHeader as CardHeader3,
|
|
@@ -222,13 +269,18 @@ var ListWrapper = ({
|
|
|
222
269
|
title,
|
|
223
270
|
count,
|
|
224
271
|
show = true,
|
|
225
|
-
actionButton
|
|
272
|
+
actionButton,
|
|
273
|
+
cardSx,
|
|
274
|
+
textSx,
|
|
275
|
+
icon,
|
|
276
|
+
showCount = true
|
|
226
277
|
}) => {
|
|
227
278
|
if (!show) return /* @__PURE__ */ jsx6(Fragment, {});
|
|
228
279
|
return /* @__PURE__ */ jsxs4(
|
|
229
280
|
Card3,
|
|
230
281
|
{
|
|
231
282
|
sx: {
|
|
283
|
+
...cardSx,
|
|
232
284
|
position: "relative",
|
|
233
285
|
borderRadius: "0px"
|
|
234
286
|
},
|
|
@@ -247,7 +299,7 @@ var ListWrapper = ({
|
|
|
247
299
|
alignItems: "center"
|
|
248
300
|
},
|
|
249
301
|
title: /* @__PURE__ */ jsxs4(
|
|
250
|
-
|
|
302
|
+
Box3,
|
|
251
303
|
{
|
|
252
304
|
sx: {
|
|
253
305
|
display: "flex",
|
|
@@ -255,14 +307,18 @@ var ListWrapper = ({
|
|
|
255
307
|
justifyContent: "space-between"
|
|
256
308
|
},
|
|
257
309
|
children: [
|
|
258
|
-
/* @__PURE__ */ jsxs4(
|
|
259
|
-
/* @__PURE__ */ jsx6(ManageSearchIcon2, { sx: { color: "
|
|
260
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ jsxs4(Box3, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
311
|
+
icon ? icon : /* @__PURE__ */ jsx6(ManageSearchIcon2, { sx: { color: "primary", height: "2.5rem" } }),
|
|
312
|
+
/* @__PURE__ */ jsxs4(
|
|
261
313
|
Typography4,
|
|
262
314
|
{
|
|
263
315
|
variant: "h5",
|
|
264
|
-
sx: { color: "
|
|
265
|
-
children:
|
|
316
|
+
sx: { ...textSx, color: "primary", fontWeight: "bold" },
|
|
317
|
+
children: [
|
|
318
|
+
title,
|
|
319
|
+
" ",
|
|
320
|
+
showCount ? `$(${count ? count : 0})` : /* @__PURE__ */ jsx6(Fragment, {})
|
|
321
|
+
]
|
|
266
322
|
}
|
|
267
323
|
)
|
|
268
324
|
] }),
|
|
@@ -288,7 +344,7 @@ import {
|
|
|
288
344
|
GridToolbarFilterButton,
|
|
289
345
|
GridToolbarQuickFilter
|
|
290
346
|
} from "@mui/x-data-grid";
|
|
291
|
-
import { Box as
|
|
347
|
+
import { Box as Box4 } from "@mui/material";
|
|
292
348
|
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
293
349
|
var SimpleToolbar = () => /* @__PURE__ */ jsxs5(GridToolbarContainer, { children: [
|
|
294
350
|
/* @__PURE__ */ jsx7(
|
|
@@ -297,22 +353,17 @@ var SimpleToolbar = () => /* @__PURE__ */ jsxs5(GridToolbarContainer, { children
|
|
|
297
353
|
sx: {
|
|
298
354
|
"& .MuiInputBase-root": {
|
|
299
355
|
borderRadius: "8px",
|
|
300
|
-
padding: "6px 10px"
|
|
301
|
-
backgroundColor: "#f6f7f8"
|
|
356
|
+
padding: "6px 10px"
|
|
302
357
|
},
|
|
303
358
|
"& input": {
|
|
304
359
|
fontSize: "14px",
|
|
305
360
|
color: "#333"
|
|
306
361
|
},
|
|
307
|
-
borderRadius: "8px"
|
|
308
|
-
".css-hzgntl-MuiOutlinedInput-notchedOutline": {
|
|
309
|
-
borderRadius: "8px",
|
|
310
|
-
border: "1px solid #efefef !important"
|
|
311
|
-
}
|
|
362
|
+
borderRadius: "8px"
|
|
312
363
|
}
|
|
313
364
|
}
|
|
314
365
|
),
|
|
315
|
-
/* @__PURE__ */ jsx7(
|
|
366
|
+
/* @__PURE__ */ jsx7(Box4, { sx: { flexGrow: 1 } }),
|
|
316
367
|
/* @__PURE__ */ jsx7(GridToolbarColumnsButton, {}),
|
|
317
368
|
/* @__PURE__ */ jsx7(GridToolbarFilterButton, {}),
|
|
318
369
|
/* @__PURE__ */ jsx7(GridToolbarExport, {})
|