sevago-library 1.0.3 → 1.0.7
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/index.cjs.js
CHANGED
|
@@ -73709,6 +73709,68 @@ const TextFieldElement = ({
|
|
|
73709
73709
|
)
|
|
73710
73710
|
] });
|
|
73711
73711
|
};
|
|
73712
|
+
const TagElement = ({
|
|
73713
|
+
type,
|
|
73714
|
+
content,
|
|
73715
|
+
width: width2 = "fit-content",
|
|
73716
|
+
variation = "caption",
|
|
73717
|
+
size = "medium",
|
|
73718
|
+
variant = "contained",
|
|
73719
|
+
sx,
|
|
73720
|
+
color: color2,
|
|
73721
|
+
iconProps
|
|
73722
|
+
}) => {
|
|
73723
|
+
const TAG_VARIANT = {
|
|
73724
|
+
contained: {
|
|
73725
|
+
backgroundColor: type,
|
|
73726
|
+
color: color2 || "white"
|
|
73727
|
+
},
|
|
73728
|
+
outlined: {
|
|
73729
|
+
backgroundColor: lightenColor(type, 0.8),
|
|
73730
|
+
color: type
|
|
73731
|
+
},
|
|
73732
|
+
"outlined-border": {
|
|
73733
|
+
backgroundColor: lightenColor(type, 0.8),
|
|
73734
|
+
border: `1px solid ${type}`,
|
|
73735
|
+
color: type
|
|
73736
|
+
}
|
|
73737
|
+
};
|
|
73738
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: iconProps ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
73739
|
+
material.Stack,
|
|
73740
|
+
{
|
|
73741
|
+
sx: {
|
|
73742
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
73743
|
+
width: width2,
|
|
73744
|
+
textAlign: "center",
|
|
73745
|
+
textWrap: "nowrap",
|
|
73746
|
+
...TAG_SIZE[size],
|
|
73747
|
+
...TAG_VARIANT[variant],
|
|
73748
|
+
...sx
|
|
73749
|
+
},
|
|
73750
|
+
children: [
|
|
73751
|
+
iconProps && iconProps,
|
|
73752
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: variation, children: content })
|
|
73753
|
+
]
|
|
73754
|
+
}
|
|
73755
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
73756
|
+
material.Typography,
|
|
73757
|
+
{
|
|
73758
|
+
variant: variation,
|
|
73759
|
+
sx: {
|
|
73760
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
73761
|
+
width: width2,
|
|
73762
|
+
textAlign: "center",
|
|
73763
|
+
textWrap: "nowrap",
|
|
73764
|
+
justifyContent: "center",
|
|
73765
|
+
...getLimitLineCss(1),
|
|
73766
|
+
...TAG_SIZE[size],
|
|
73767
|
+
...TAG_VARIANT[variant],
|
|
73768
|
+
...sx
|
|
73769
|
+
},
|
|
73770
|
+
children: content
|
|
73771
|
+
}
|
|
73772
|
+
) });
|
|
73773
|
+
};
|
|
73712
73774
|
const TypographyInfoUser = ({
|
|
73713
73775
|
items,
|
|
73714
73776
|
columns = 2,
|
|
@@ -73734,37 +73796,27 @@ const TypographyInfoUser = ({
|
|
|
73734
73796
|
system.Stack,
|
|
73735
73797
|
{
|
|
73736
73798
|
sx: {
|
|
73737
|
-
display: direction === "row" ? "grid" : "flex",
|
|
73738
73799
|
gridTemplateColumns: direction === "row" ? columns === 1 ? "1fr 3fr" : gridTemplateColumns2 : "unset",
|
|
73739
73800
|
height: "fit-content",
|
|
73740
|
-
flexDirection: direction === "column" ? "column" : "row"
|
|
73801
|
+
flexDirection: direction === "column" ? "column" : "row",
|
|
73802
|
+
gap: 0
|
|
73741
73803
|
},
|
|
73742
73804
|
children: [
|
|
73743
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
73744
|
-
|
|
73805
|
+
/* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { ...TYPOGRAPHY.textSm.regular, color: COMMON.gray6, flex: 1 }, children: [
|
|
73806
|
+
highlightYellow(item.label, highlightQuery ?? "", showEmptyAsDots),
|
|
73807
|
+
":"
|
|
73808
|
+
] }),
|
|
73809
|
+
item.statusTag ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
73810
|
+
TagElement,
|
|
73745
73811
|
{
|
|
73746
|
-
sx: {
|
|
73747
|
-
|
|
73748
|
-
|
|
73749
|
-
flex: 1
|
|
73750
|
-
},
|
|
73751
|
-
children: [
|
|
73752
|
-
highlightYellow(item.label, highlightQuery ?? "", showEmptyAsDots),
|
|
73753
|
-
":"
|
|
73754
|
-
]
|
|
73812
|
+
sx: { textTransform: "none", width: "100%", ...sx },
|
|
73813
|
+
content: item.value,
|
|
73814
|
+
type: item.color || "inherit"
|
|
73755
73815
|
}
|
|
73756
|
-
)
|
|
73757
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
73816
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
73758
73817
|
material.Typography,
|
|
73759
73818
|
{
|
|
73760
|
-
sx: {
|
|
73761
|
-
...TYPOGRAPHY.textSm.regular,
|
|
73762
|
-
color: COMMON.black,
|
|
73763
|
-
flex: 1,
|
|
73764
|
-
borderBottom: `1px solid ${COMMON.gray8}`,
|
|
73765
|
-
textAlign: "right",
|
|
73766
|
-
...item.sxValue
|
|
73767
|
-
},
|
|
73819
|
+
sx: { ...TYPOGRAPHY.textSm.regular, color: COMMON.black, flex: 1, ...item.sxValue },
|
|
73768
73820
|
children: highlightYellow(item.value, highlightQuery ?? "", showEmptyAsDots)
|
|
73769
73821
|
}
|
|
73770
73822
|
)
|
|
@@ -75989,68 +76041,6 @@ const tableArgTypes = {
|
|
|
75989
76041
|
getRowMenu: { control: false },
|
|
75990
76042
|
onDisabled: { control: false }
|
|
75991
76043
|
};
|
|
75992
|
-
const TagElement = ({
|
|
75993
|
-
type,
|
|
75994
|
-
content,
|
|
75995
|
-
width: width2 = "fit-content",
|
|
75996
|
-
variation = "caption",
|
|
75997
|
-
size = "medium",
|
|
75998
|
-
variant = "contained",
|
|
75999
|
-
sx,
|
|
76000
|
-
color: color2,
|
|
76001
|
-
iconProps
|
|
76002
|
-
}) => {
|
|
76003
|
-
const TAG_VARIANT = {
|
|
76004
|
-
contained: {
|
|
76005
|
-
backgroundColor: type,
|
|
76006
|
-
color: color2 || "white"
|
|
76007
|
-
},
|
|
76008
|
-
outlined: {
|
|
76009
|
-
backgroundColor: lightenColor(type, 0.8),
|
|
76010
|
-
color: type
|
|
76011
|
-
},
|
|
76012
|
-
"outlined-border": {
|
|
76013
|
-
backgroundColor: lightenColor(type, 0.8),
|
|
76014
|
-
border: `1px solid ${type}`,
|
|
76015
|
-
color: type
|
|
76016
|
-
}
|
|
76017
|
-
};
|
|
76018
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: iconProps ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
76019
|
-
material.Stack,
|
|
76020
|
-
{
|
|
76021
|
-
sx: {
|
|
76022
|
-
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
76023
|
-
width: width2,
|
|
76024
|
-
textAlign: "center",
|
|
76025
|
-
textWrap: "nowrap",
|
|
76026
|
-
...TAG_SIZE[size],
|
|
76027
|
-
...TAG_VARIANT[variant],
|
|
76028
|
-
...sx
|
|
76029
|
-
},
|
|
76030
|
-
children: [
|
|
76031
|
-
iconProps && iconProps,
|
|
76032
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: variation, children: content })
|
|
76033
|
-
]
|
|
76034
|
-
}
|
|
76035
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
76036
|
-
material.Typography,
|
|
76037
|
-
{
|
|
76038
|
-
variant: variation,
|
|
76039
|
-
sx: {
|
|
76040
|
-
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
76041
|
-
width: width2,
|
|
76042
|
-
textAlign: "center",
|
|
76043
|
-
textWrap: "nowrap",
|
|
76044
|
-
justifyContent: "center",
|
|
76045
|
-
...getLimitLineCss(1),
|
|
76046
|
-
...TAG_SIZE[size],
|
|
76047
|
-
...TAG_VARIANT[variant],
|
|
76048
|
-
...sx
|
|
76049
|
-
},
|
|
76050
|
-
children: content
|
|
76051
|
-
}
|
|
76052
|
-
) });
|
|
76053
|
-
};
|
|
76054
76044
|
const UserInfo = ({
|
|
76055
76045
|
name = "Hệ thống",
|
|
76056
76046
|
department = "Hệ thống",
|