sevago-sso-fe 1.0.60 → 1.0.62
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/components/elements/tag/index.d.ts +1 -1
- package/dist/index.cjs.js +262 -261
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +264 -263
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx,
|
|
2
|
-
import { styled as styled$3, Box, InputLabel as InputLabel$1, Link, Typography as Typography$1, Paper as Paper$1,
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { styled as styled$3, Stack, TableCell, tableCellClasses, LinearProgress, linearProgressClasses, useTheme as useTheme$4, Skeleton, Box, InputLabel as InputLabel$1, Link, Typography as Typography$1, Paper as Paper$1, IconButton as IconButton$1, Fade as Fade$1, Tooltip, tooltipClasses, Avatar, Badge, Icon, Tabs, Tab, CircularProgress as CircularProgress$1, Button as Button$1, TextField as TextField$1, InputAdornment as InputAdornment$1, debounce as debounce$2, Chip as Chip$1, ListItem as ListItem$1, Radio, ListItemText, FormControlLabel, Checkbox, Dialog as Dialog$1, DialogTitle, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Collapse, FormControl as FormControl$1, Select as Select$1, MenuItem, Pagination, RadioGroup, ClickAwayListener } from "@mui/material";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { useState, createContext, useRef, useLayoutEffect, useEffect, useId as useId$1, useContext, useInsertionEffect, useMemo, useCallback, Children, isValidElement, Fragment as Fragment$1, createElement, forwardRef, Component, cloneElement } from "react";
|
|
5
5
|
import { unstable_createGetCssVar, createSpacing as createSpacing$1, useTheme as useTheme$3, GlobalStyles as GlobalStyles$1, unstable_memoTheme, keyframes as keyframes$1, css, shouldForwardProp as shouldForwardProp$1, alpha as alpha$2, Stack as Stack$1, Box as Box$1 } from "@mui/system";
|
|
@@ -7185,257 +7185,6 @@ const IconRight = (props) => /* @__PURE__ */ jsx("svg", { width: "20", height: "
|
|
|
7185
7185
|
"stroke-linejoin": "round"
|
|
7186
7186
|
}
|
|
7187
7187
|
) });
|
|
7188
|
-
const ImageBrand = styled$3(ImageElement)(({ theme }) => ({
|
|
7189
|
-
height: HEIGHT_ELEMENT_OTHER,
|
|
7190
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
7191
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7192
|
-
"&:hover": { boxShadow: theme.shadows[1] },
|
|
7193
|
-
padding: 8,
|
|
7194
|
-
backgroundColor: "white",
|
|
7195
|
-
cursor: "pointer",
|
|
7196
|
-
width: 100,
|
|
7197
|
-
objectFit: "contain"
|
|
7198
|
-
}));
|
|
7199
|
-
const ImageBorderDashboard = styled$3(ImageElement)(({ theme }) => ({
|
|
7200
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
7201
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7202
|
-
height: 50,
|
|
7203
|
-
width: 70
|
|
7204
|
-
}));
|
|
7205
|
-
const ImageEmpty = styled$3(Box)(({ theme }) => ({
|
|
7206
|
-
width: "auto",
|
|
7207
|
-
minWidth: 50,
|
|
7208
|
-
height: 50,
|
|
7209
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7210
|
-
border: `1px dashed ${theme.palette.divider}`
|
|
7211
|
-
}));
|
|
7212
|
-
const InputLabelCustom = styled$3(InputLabel$1)(({ theme }) => ({
|
|
7213
|
-
display: "flex",
|
|
7214
|
-
backgroundColor: theme.palette.background.paper,
|
|
7215
|
-
paddingLeft: "8px",
|
|
7216
|
-
paddingRight: `9px`,
|
|
7217
|
-
transform: `translate(10px, -9px) scale(0.75)`
|
|
7218
|
-
}));
|
|
7219
|
-
const LinkElement = ({ onClick, sx = {}, target = "_self", ...rest }) => {
|
|
7220
|
-
return /* @__PURE__ */ jsx(
|
|
7221
|
-
Link,
|
|
7222
|
-
{
|
|
7223
|
-
target,
|
|
7224
|
-
rel: "noopener",
|
|
7225
|
-
sx: { textDecoration: "none", color: "unset", ...sx },
|
|
7226
|
-
onClick: (event) => {
|
|
7227
|
-
if (onClick) {
|
|
7228
|
-
event.preventDefault();
|
|
7229
|
-
onClick();
|
|
7230
|
-
}
|
|
7231
|
-
},
|
|
7232
|
-
...rest
|
|
7233
|
-
}
|
|
7234
|
-
);
|
|
7235
|
-
};
|
|
7236
|
-
const LinkWrapProductRow = styled$3(LinkElement)(({ theme }) => ({
|
|
7237
|
-
display: "flex",
|
|
7238
|
-
flexDirection: "row",
|
|
7239
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7240
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
7241
|
-
padding: PADDING_GAP_ITEM,
|
|
7242
|
-
gap: PADDING_GAP_ITEM,
|
|
7243
|
-
backgroundColor: theme.palette.background.default
|
|
7244
|
-
}));
|
|
7245
|
-
const lightenColor = (hex2, percent2) => {
|
|
7246
|
-
let r2, g, b;
|
|
7247
|
-
if (hex2.length === 7) {
|
|
7248
|
-
r2 = parseInt(hex2.slice(1, 3), 16);
|
|
7249
|
-
g = parseInt(hex2.slice(3, 5), 16);
|
|
7250
|
-
b = parseInt(hex2.slice(5, 7), 16);
|
|
7251
|
-
} else {
|
|
7252
|
-
r2 = parseInt(hex2[1] + hex2[1], 16);
|
|
7253
|
-
g = parseInt(hex2[2] + hex2[2], 16);
|
|
7254
|
-
b = parseInt(hex2[3] + hex2[3], 16);
|
|
7255
|
-
}
|
|
7256
|
-
r2 = Math.round(r2 + (255 - r2) * percent2);
|
|
7257
|
-
g = Math.round(g + (255 - g) * percent2);
|
|
7258
|
-
b = Math.round(b + (255 - b) * percent2);
|
|
7259
|
-
return `rgb(${r2}, ${g}, ${b})`;
|
|
7260
|
-
};
|
|
7261
|
-
const TAG_SIZE = {
|
|
7262
|
-
large: {
|
|
7263
|
-
padding: "6px 8px",
|
|
7264
|
-
...TYPOGRAPHY_STYLES.textXs.medium
|
|
7265
|
-
},
|
|
7266
|
-
medium: {
|
|
7267
|
-
padding: "4px 6px",
|
|
7268
|
-
...TYPOGRAPHY_STYLES.textXs.medium
|
|
7269
|
-
},
|
|
7270
|
-
small: {
|
|
7271
|
-
padding: 0.5,
|
|
7272
|
-
...TYPOGRAPHY_STYLES.textSmall.medium
|
|
7273
|
-
}
|
|
7274
|
-
};
|
|
7275
|
-
const TagElement = ({
|
|
7276
|
-
type,
|
|
7277
|
-
content,
|
|
7278
|
-
width: width2,
|
|
7279
|
-
variation = "caption",
|
|
7280
|
-
size = "medium",
|
|
7281
|
-
variant = "contained",
|
|
7282
|
-
sx,
|
|
7283
|
-
color: color2,
|
|
7284
|
-
iconProps
|
|
7285
|
-
}) => {
|
|
7286
|
-
const TAG_VARIANT = {
|
|
7287
|
-
contained: {
|
|
7288
|
-
backgroundColor: type,
|
|
7289
|
-
color: color2 || "white"
|
|
7290
|
-
},
|
|
7291
|
-
outlined: {
|
|
7292
|
-
backgroundColor: lightenColor(type, 0.8),
|
|
7293
|
-
color: type
|
|
7294
|
-
},
|
|
7295
|
-
"outlined-border": {
|
|
7296
|
-
backgroundColor: lightenColor(type, 0.8),
|
|
7297
|
-
border: `1px solid ${type}`,
|
|
7298
|
-
color: type
|
|
7299
|
-
}
|
|
7300
|
-
};
|
|
7301
|
-
return /* @__PURE__ */ jsx(Fragment, { children: iconProps ? /* @__PURE__ */ jsxs(
|
|
7302
|
-
StackWrap,
|
|
7303
|
-
{
|
|
7304
|
-
sx: {
|
|
7305
|
-
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
7306
|
-
width: width2,
|
|
7307
|
-
textAlign: "center",
|
|
7308
|
-
textWrap: "nowrap",
|
|
7309
|
-
...TAG_SIZE[size],
|
|
7310
|
-
...TAG_VARIANT[variant],
|
|
7311
|
-
...sx
|
|
7312
|
-
},
|
|
7313
|
-
children: [
|
|
7314
|
-
iconProps && iconProps,
|
|
7315
|
-
/* @__PURE__ */ jsx(Typography$1, { variant: variation, children: content })
|
|
7316
|
-
]
|
|
7317
|
-
}
|
|
7318
|
-
) : /* @__PURE__ */ jsx(
|
|
7319
|
-
Typography$1,
|
|
7320
|
-
{
|
|
7321
|
-
variant: variation,
|
|
7322
|
-
sx: {
|
|
7323
|
-
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
7324
|
-
width: width2,
|
|
7325
|
-
textAlign: "center",
|
|
7326
|
-
textWrap: "nowrap",
|
|
7327
|
-
...getLimitLineCss(1),
|
|
7328
|
-
...TAG_SIZE[size],
|
|
7329
|
-
...TAG_VARIANT[variant],
|
|
7330
|
-
...sx
|
|
7331
|
-
},
|
|
7332
|
-
children: content
|
|
7333
|
-
}
|
|
7334
|
-
) });
|
|
7335
|
-
};
|
|
7336
|
-
const PaperSelect = styled$3(Paper$1, {
|
|
7337
|
-
shouldForwardProp: (prop) => prop !== "disableSelectedStyle" && prop !== "autoWidth" && prop !== "isTreeSelect"
|
|
7338
|
-
})(({ theme, disableSelectedStyle, autoWidth, isTreeSelect }) => ({
|
|
7339
|
-
backgroundColor: theme.palette.background.paper,
|
|
7340
|
-
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
7341
|
-
padding: PADDING_GAP_ITEM,
|
|
7342
|
-
backgroundImage: "none",
|
|
7343
|
-
boxShadow: theme.shadows[1],
|
|
7344
|
-
...autoWidth && {
|
|
7345
|
-
width: "max-content"
|
|
7346
|
-
},
|
|
7347
|
-
"& > .MuiAutocomplete-listbox": {
|
|
7348
|
-
padding: 0,
|
|
7349
|
-
"& > .MuiAutocomplete-option": {
|
|
7350
|
-
...isTreeSelect ? {
|
|
7351
|
-
padding: 0,
|
|
7352
|
-
borderRadius: 0,
|
|
7353
|
-
transition: TRANSITION_TIME,
|
|
7354
|
-
backgroundColor: "transparent !important",
|
|
7355
|
-
"& .option-content": {
|
|
7356
|
-
display: "flex",
|
|
7357
|
-
alignItems: "center",
|
|
7358
|
-
padding: PADDING_GAP_ITEM,
|
|
7359
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7360
|
-
transition: TRANSITION_TIME,
|
|
7361
|
-
backgroundColor: "transparent",
|
|
7362
|
-
flex: 1,
|
|
7363
|
-
width: "100%",
|
|
7364
|
-
"&:hover": {
|
|
7365
|
-
backgroundColor: lightenColor(theme.palette.primary.dark, 0.8)
|
|
7366
|
-
},
|
|
7367
|
-
...disableSelectedStyle ? {} : {
|
|
7368
|
-
"&.selected": {
|
|
7369
|
-
backgroundColor: lightenColor(theme.palette.primary.dark, 0.8),
|
|
7370
|
-
color: theme.palette.primary.contrastText
|
|
7371
|
-
}
|
|
7372
|
-
}
|
|
7373
|
-
},
|
|
7374
|
-
"&:hover": {
|
|
7375
|
-
backgroundColor: "transparent !important"
|
|
7376
|
-
},
|
|
7377
|
-
"&[aria-selected='true']": {
|
|
7378
|
-
backgroundColor: "transparent !important",
|
|
7379
|
-
color: TREE_COLOR.TREE_LEVEL_1
|
|
7380
|
-
}
|
|
7381
|
-
} : {
|
|
7382
|
-
padding: PADDING_GAP_ITEM,
|
|
7383
|
-
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
7384
|
-
transition: TRANSITION_TIME,
|
|
7385
|
-
"&:hover": {
|
|
7386
|
-
backgroundColor: theme.palette.action.hover
|
|
7387
|
-
},
|
|
7388
|
-
...disableSelectedStyle ? {} : {
|
|
7389
|
-
"&[aria-selected='true']": {
|
|
7390
|
-
backgroundColor: lightenColor(theme.palette.primary.main, 0.9),
|
|
7391
|
-
color: theme.palette.primary.main
|
|
7392
|
-
}
|
|
7393
|
-
}
|
|
7394
|
-
}
|
|
7395
|
-
}
|
|
7396
|
-
}
|
|
7397
|
-
}));
|
|
7398
|
-
const getPickerSx = (palette, sx) => ({
|
|
7399
|
-
"& fieldset legend": { maxWidth: "100% !important" },
|
|
7400
|
-
"& .MuiPickersInputBase-root": {
|
|
7401
|
-
borderColor: palette.divider,
|
|
7402
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7403
|
-
height: HEIGHT_DEFAULT_TEXT_FIELD_BUTTON
|
|
7404
|
-
},
|
|
7405
|
-
"&.MuiPickersTextField-root": { ...sx }
|
|
7406
|
-
});
|
|
7407
|
-
const getPopperProps = () => ({
|
|
7408
|
-
sx: { boxShadow: 1, overflow: "hidden" },
|
|
7409
|
-
modifiers: [
|
|
7410
|
-
{
|
|
7411
|
-
name: "customStyle",
|
|
7412
|
-
enabled: true,
|
|
7413
|
-
phase: "beforeWrite",
|
|
7414
|
-
fn: ({ state }) => {
|
|
7415
|
-
Object.assign(state.elements.popper.style, {
|
|
7416
|
-
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
7417
|
-
overflow: "hidden"
|
|
7418
|
-
});
|
|
7419
|
-
}
|
|
7420
|
-
}
|
|
7421
|
-
]
|
|
7422
|
-
});
|
|
7423
|
-
const getActionBarSx = (palette) => ({
|
|
7424
|
-
"& button": { textTransform: "none", width: 100 },
|
|
7425
|
-
"& button:nth-of-type(1)": {
|
|
7426
|
-
border: `1px solid ${palette.primary.main}`,
|
|
7427
|
-
color: palette.primary.main,
|
|
7428
|
-
background: "transparent",
|
|
7429
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7430
|
-
"&:hover": { backgroundColor: palette.divider + OPACITY[20] }
|
|
7431
|
-
},
|
|
7432
|
-
"& button:nth-of-type(2)": {
|
|
7433
|
-
background: palette.primary.main,
|
|
7434
|
-
color: palette.primary.contrastText,
|
|
7435
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7436
|
-
"&:hover": { backgroundColor: palette.primary.dark }
|
|
7437
|
-
}
|
|
7438
|
-
});
|
|
7439
7188
|
const StackRow = styled$3(Stack)(() => ({
|
|
7440
7189
|
flexDirection: "row"
|
|
7441
7190
|
}));
|
|
@@ -7551,16 +7300,6 @@ const BorderLinearProgress = styled$3(LinearProgress)(({ theme }) => ({
|
|
|
7551
7300
|
backgroundColor: theme.palette.primary
|
|
7552
7301
|
}
|
|
7553
7302
|
}));
|
|
7554
|
-
const TypographyFilter = styled$3(Typography$1)(({ theme }) => ({
|
|
7555
|
-
height: HEIGHT_ELEMENT_OTHER,
|
|
7556
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
7557
|
-
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
7558
|
-
"&:hover": { boxShadow: theme.shadows[1], color: theme.palette.primary.main },
|
|
7559
|
-
alignContent: "center",
|
|
7560
|
-
cursor: "pointer",
|
|
7561
|
-
textWrap: "nowrap",
|
|
7562
|
-
padding: `0px ${PADDING_GAP_LAYOUT}`
|
|
7563
|
-
}));
|
|
7564
7303
|
var ImageSizeType = /* @__PURE__ */ ((ImageSizeType2) => {
|
|
7565
7304
|
ImageSizeType2["CIRCLE"] = "CIRCLE";
|
|
7566
7305
|
ImageSizeType2["SQUARE"] = "SQUARE";
|
|
@@ -15186,6 +14925,267 @@ const MotionBox = ({
|
|
|
15186
14925
|
} : {};
|
|
15187
14926
|
return /* @__PURE__ */ jsx(motion.div, { ...motionProps, ...getAnimationProps(), ...hoverProps, onClick, style: { ...sx }, children });
|
|
15188
14927
|
};
|
|
14928
|
+
const ImageBrand = styled$3(ImageElement)(({ theme }) => ({
|
|
14929
|
+
height: HEIGHT_ELEMENT_OTHER,
|
|
14930
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
14931
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
14932
|
+
"&:hover": { boxShadow: theme.shadows[1] },
|
|
14933
|
+
padding: 8,
|
|
14934
|
+
backgroundColor: "white",
|
|
14935
|
+
cursor: "pointer",
|
|
14936
|
+
width: 100,
|
|
14937
|
+
objectFit: "contain"
|
|
14938
|
+
}));
|
|
14939
|
+
const ImageBorderDashboard = styled$3(ImageElement)(({ theme }) => ({
|
|
14940
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
14941
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
14942
|
+
height: 50,
|
|
14943
|
+
width: 70
|
|
14944
|
+
}));
|
|
14945
|
+
const ImageEmpty = styled$3(Box)(({ theme }) => ({
|
|
14946
|
+
width: "auto",
|
|
14947
|
+
minWidth: 50,
|
|
14948
|
+
height: 50,
|
|
14949
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
14950
|
+
border: `1px dashed ${theme.palette.divider}`
|
|
14951
|
+
}));
|
|
14952
|
+
const InputLabelCustom = styled$3(InputLabel$1)(({ theme }) => ({
|
|
14953
|
+
display: "flex",
|
|
14954
|
+
backgroundColor: theme.palette.background.paper,
|
|
14955
|
+
paddingLeft: "8px",
|
|
14956
|
+
paddingRight: `9px`,
|
|
14957
|
+
transform: `translate(10px, -9px) scale(0.75)`
|
|
14958
|
+
}));
|
|
14959
|
+
const LinkElement = ({ onClick, sx = {}, target = "_self", ...rest }) => {
|
|
14960
|
+
return /* @__PURE__ */ jsx(
|
|
14961
|
+
Link,
|
|
14962
|
+
{
|
|
14963
|
+
target,
|
|
14964
|
+
rel: "noopener",
|
|
14965
|
+
sx: { textDecoration: "none", color: "unset", ...sx },
|
|
14966
|
+
onClick: (event) => {
|
|
14967
|
+
if (onClick) {
|
|
14968
|
+
event.preventDefault();
|
|
14969
|
+
onClick();
|
|
14970
|
+
}
|
|
14971
|
+
},
|
|
14972
|
+
...rest
|
|
14973
|
+
}
|
|
14974
|
+
);
|
|
14975
|
+
};
|
|
14976
|
+
const LinkWrapProductRow = styled$3(LinkElement)(({ theme }) => ({
|
|
14977
|
+
display: "flex",
|
|
14978
|
+
flexDirection: "row",
|
|
14979
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
14980
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
14981
|
+
padding: PADDING_GAP_ITEM,
|
|
14982
|
+
gap: PADDING_GAP_ITEM,
|
|
14983
|
+
backgroundColor: theme.palette.background.default
|
|
14984
|
+
}));
|
|
14985
|
+
const lightenColor = (hex2, percent2) => {
|
|
14986
|
+
let r2, g, b;
|
|
14987
|
+
if (hex2.length === 7) {
|
|
14988
|
+
r2 = parseInt(hex2.slice(1, 3), 16);
|
|
14989
|
+
g = parseInt(hex2.slice(3, 5), 16);
|
|
14990
|
+
b = parseInt(hex2.slice(5, 7), 16);
|
|
14991
|
+
} else {
|
|
14992
|
+
r2 = parseInt(hex2[1] + hex2[1], 16);
|
|
14993
|
+
g = parseInt(hex2[2] + hex2[2], 16);
|
|
14994
|
+
b = parseInt(hex2[3] + hex2[3], 16);
|
|
14995
|
+
}
|
|
14996
|
+
r2 = Math.round(r2 + (255 - r2) * percent2);
|
|
14997
|
+
g = Math.round(g + (255 - g) * percent2);
|
|
14998
|
+
b = Math.round(b + (255 - b) * percent2);
|
|
14999
|
+
return `rgb(${r2}, ${g}, ${b})`;
|
|
15000
|
+
};
|
|
15001
|
+
const TAG_SIZE = {
|
|
15002
|
+
large: {
|
|
15003
|
+
padding: "6px 8px",
|
|
15004
|
+
...TYPOGRAPHY_STYLES.textXs.medium
|
|
15005
|
+
},
|
|
15006
|
+
medium: {
|
|
15007
|
+
padding: "4px 6px",
|
|
15008
|
+
...TYPOGRAPHY_STYLES.textXs.medium
|
|
15009
|
+
},
|
|
15010
|
+
small: {
|
|
15011
|
+
padding: 0.5,
|
|
15012
|
+
...TYPOGRAPHY_STYLES.textSmall.medium
|
|
15013
|
+
}
|
|
15014
|
+
};
|
|
15015
|
+
const TagElement = ({
|
|
15016
|
+
type,
|
|
15017
|
+
content,
|
|
15018
|
+
width: width2,
|
|
15019
|
+
variation = "caption",
|
|
15020
|
+
size = "medium",
|
|
15021
|
+
variant = "contained",
|
|
15022
|
+
sx,
|
|
15023
|
+
color: color2,
|
|
15024
|
+
iconProps
|
|
15025
|
+
}) => {
|
|
15026
|
+
const TAG_VARIANT = {
|
|
15027
|
+
contained: {
|
|
15028
|
+
backgroundColor: type,
|
|
15029
|
+
color: color2 || "white"
|
|
15030
|
+
},
|
|
15031
|
+
outlined: {
|
|
15032
|
+
backgroundColor: lightenColor(type, 0.8),
|
|
15033
|
+
color: type
|
|
15034
|
+
},
|
|
15035
|
+
"outlined-border": {
|
|
15036
|
+
backgroundColor: lightenColor(type, 0.8),
|
|
15037
|
+
border: `1px solid ${type}`,
|
|
15038
|
+
color: type
|
|
15039
|
+
}
|
|
15040
|
+
};
|
|
15041
|
+
return /* @__PURE__ */ jsx(Fragment, { children: iconProps ? /* @__PURE__ */ jsxs(
|
|
15042
|
+
StackWrap,
|
|
15043
|
+
{
|
|
15044
|
+
sx: {
|
|
15045
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
15046
|
+
width: width2,
|
|
15047
|
+
textAlign: "center",
|
|
15048
|
+
textWrap: "nowrap",
|
|
15049
|
+
...TAG_SIZE[size],
|
|
15050
|
+
...TAG_VARIANT[variant],
|
|
15051
|
+
...sx
|
|
15052
|
+
},
|
|
15053
|
+
children: [
|
|
15054
|
+
iconProps && iconProps,
|
|
15055
|
+
/* @__PURE__ */ jsx(Typography$1, { variant: variation, children: content })
|
|
15056
|
+
]
|
|
15057
|
+
}
|
|
15058
|
+
) : /* @__PURE__ */ jsx(
|
|
15059
|
+
Typography$1,
|
|
15060
|
+
{
|
|
15061
|
+
variant: variation,
|
|
15062
|
+
sx: {
|
|
15063
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
15064
|
+
width: width2,
|
|
15065
|
+
textAlign: "center",
|
|
15066
|
+
textWrap: "nowrap",
|
|
15067
|
+
...getLimitLineCss(1),
|
|
15068
|
+
...TAG_SIZE[size],
|
|
15069
|
+
...TAG_VARIANT[variant],
|
|
15070
|
+
...sx
|
|
15071
|
+
},
|
|
15072
|
+
children: content
|
|
15073
|
+
}
|
|
15074
|
+
) });
|
|
15075
|
+
};
|
|
15076
|
+
const PaperSelect = styled$3(Paper$1, {
|
|
15077
|
+
shouldForwardProp: (prop) => prop !== "disableSelectedStyle" && prop !== "autoWidth" && prop !== "isTreeSelect"
|
|
15078
|
+
})(({ theme, disableSelectedStyle, autoWidth, isTreeSelect }) => ({
|
|
15079
|
+
backgroundColor: theme.palette.background.paper,
|
|
15080
|
+
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
15081
|
+
padding: PADDING_GAP_ITEM,
|
|
15082
|
+
backgroundImage: "none",
|
|
15083
|
+
boxShadow: theme.shadows[1],
|
|
15084
|
+
...autoWidth && {
|
|
15085
|
+
width: "max-content"
|
|
15086
|
+
},
|
|
15087
|
+
"& > .MuiAutocomplete-listbox": {
|
|
15088
|
+
padding: 0,
|
|
15089
|
+
"& > .MuiAutocomplete-option": {
|
|
15090
|
+
...isTreeSelect ? {
|
|
15091
|
+
padding: 0,
|
|
15092
|
+
borderRadius: 0,
|
|
15093
|
+
transition: TRANSITION_TIME,
|
|
15094
|
+
backgroundColor: "transparent !important",
|
|
15095
|
+
"& .option-content": {
|
|
15096
|
+
display: "flex",
|
|
15097
|
+
alignItems: "center",
|
|
15098
|
+
padding: PADDING_GAP_ITEM,
|
|
15099
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
15100
|
+
transition: TRANSITION_TIME,
|
|
15101
|
+
backgroundColor: "transparent",
|
|
15102
|
+
flex: 1,
|
|
15103
|
+
width: "100%",
|
|
15104
|
+
"&:hover": {
|
|
15105
|
+
backgroundColor: lightenColor(theme.palette.primary.dark, 0.8)
|
|
15106
|
+
},
|
|
15107
|
+
...disableSelectedStyle ? {} : {
|
|
15108
|
+
"&.selected": {
|
|
15109
|
+
backgroundColor: lightenColor(theme.palette.primary.dark, 0.8),
|
|
15110
|
+
color: theme.palette.primary.contrastText
|
|
15111
|
+
}
|
|
15112
|
+
}
|
|
15113
|
+
},
|
|
15114
|
+
"&:hover": {
|
|
15115
|
+
backgroundColor: "transparent !important"
|
|
15116
|
+
},
|
|
15117
|
+
"&[aria-selected='true']": {
|
|
15118
|
+
backgroundColor: "transparent !important",
|
|
15119
|
+
color: TREE_COLOR.TREE_LEVEL_1
|
|
15120
|
+
}
|
|
15121
|
+
} : {
|
|
15122
|
+
padding: PADDING_GAP_ITEM,
|
|
15123
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
15124
|
+
transition: TRANSITION_TIME,
|
|
15125
|
+
"&:hover": {
|
|
15126
|
+
backgroundColor: theme.palette.action.hover
|
|
15127
|
+
},
|
|
15128
|
+
...disableSelectedStyle ? {} : {
|
|
15129
|
+
"&[aria-selected='true']": {
|
|
15130
|
+
backgroundColor: lightenColor(theme.palette.primary.main, 0.9),
|
|
15131
|
+
color: theme.palette.primary.main
|
|
15132
|
+
}
|
|
15133
|
+
}
|
|
15134
|
+
}
|
|
15135
|
+
}
|
|
15136
|
+
}
|
|
15137
|
+
}));
|
|
15138
|
+
const getPickerSx = (palette, sx) => ({
|
|
15139
|
+
"& fieldset legend": { maxWidth: "100% !important" },
|
|
15140
|
+
"& .MuiPickersInputBase-root": {
|
|
15141
|
+
borderColor: palette.divider,
|
|
15142
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
15143
|
+
height: HEIGHT_DEFAULT_TEXT_FIELD_BUTTON
|
|
15144
|
+
},
|
|
15145
|
+
"&.MuiPickersTextField-root": { ...sx }
|
|
15146
|
+
});
|
|
15147
|
+
const getPopperProps = () => ({
|
|
15148
|
+
sx: { boxShadow: 1, overflow: "hidden" },
|
|
15149
|
+
modifiers: [
|
|
15150
|
+
{
|
|
15151
|
+
name: "customStyle",
|
|
15152
|
+
enabled: true,
|
|
15153
|
+
phase: "beforeWrite",
|
|
15154
|
+
fn: ({ state }) => {
|
|
15155
|
+
Object.assign(state.elements.popper.style, {
|
|
15156
|
+
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
15157
|
+
overflow: "hidden"
|
|
15158
|
+
});
|
|
15159
|
+
}
|
|
15160
|
+
}
|
|
15161
|
+
]
|
|
15162
|
+
});
|
|
15163
|
+
const getActionBarSx = (palette) => ({
|
|
15164
|
+
"& button": { textTransform: "none", width: 100 },
|
|
15165
|
+
"& button:nth-of-type(1)": {
|
|
15166
|
+
border: `1px solid ${palette.primary.main}`,
|
|
15167
|
+
color: palette.primary.main,
|
|
15168
|
+
background: "transparent",
|
|
15169
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
15170
|
+
"&:hover": { backgroundColor: palette.divider + OPACITY[20] }
|
|
15171
|
+
},
|
|
15172
|
+
"& button:nth-of-type(2)": {
|
|
15173
|
+
background: palette.primary.main,
|
|
15174
|
+
color: palette.primary.contrastText,
|
|
15175
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
15176
|
+
"&:hover": { backgroundColor: palette.primary.dark }
|
|
15177
|
+
}
|
|
15178
|
+
});
|
|
15179
|
+
const TypographyFilter = styled$3(Typography$1)(({ theme }) => ({
|
|
15180
|
+
height: HEIGHT_ELEMENT_OTHER,
|
|
15181
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
15182
|
+
borderRadius: BORDER_RADIUS_ELEMENT,
|
|
15183
|
+
"&:hover": { boxShadow: theme.shadows[1], color: theme.palette.primary.main },
|
|
15184
|
+
alignContent: "center",
|
|
15185
|
+
cursor: "pointer",
|
|
15186
|
+
textWrap: "nowrap",
|
|
15187
|
+
padding: `0px ${PADDING_GAP_LAYOUT}`
|
|
15188
|
+
}));
|
|
15189
15189
|
const AppGrid = ({
|
|
15190
15190
|
apps,
|
|
15191
15191
|
columns = 5,
|
|
@@ -49997,6 +49997,7 @@ export {
|
|
|
49997
49997
|
isEmpty$2 as isEmpty,
|
|
49998
49998
|
isSameDateTime,
|
|
49999
49999
|
light$1 as light,
|
|
50000
|
+
lightenColor,
|
|
50000
50001
|
lightenColorTree,
|
|
50001
50002
|
normalizeText,
|
|
50002
50003
|
phoneRegExp,
|