sevago-library 1.3.15 → 1.3.16
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +37 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +37 -24
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -33420,21 +33420,41 @@ const TypographyGridInfoRow = ({
|
|
|
33420
33420
|
label,
|
|
33421
33421
|
value,
|
|
33422
33422
|
sx,
|
|
33423
|
+
lineLimit,
|
|
33423
33424
|
columns = "1fr 2fr",
|
|
33424
33425
|
layout = "vertical",
|
|
33425
33426
|
sxValue,
|
|
33426
33427
|
sxLabel
|
|
33427
33428
|
}) => {
|
|
33428
|
-
|
|
33429
|
-
|
|
33430
|
-
|
|
33431
|
-
|
|
33432
|
-
|
|
33433
|
-
|
|
33434
|
-
|
|
33435
|
-
|
|
33436
|
-
|
|
33437
|
-
|
|
33429
|
+
const isGridLayout = layout === "vertical";
|
|
33430
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33431
|
+
StackRow,
|
|
33432
|
+
{
|
|
33433
|
+
sx: {
|
|
33434
|
+
...isGridLayout ? { display: "grid", gridTemplateColumns: columns } : { flexDirection: "column", gap: 0.5 },
|
|
33435
|
+
...sx
|
|
33436
|
+
},
|
|
33437
|
+
children: [
|
|
33438
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textSm.semiBold, color: GRAY[500], ...sxLabel }, children: label }),
|
|
33439
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33440
|
+
material.Typography,
|
|
33441
|
+
{
|
|
33442
|
+
sx: {
|
|
33443
|
+
...TYPOGRAPHY.textSm.regular,
|
|
33444
|
+
...lineLimit && {
|
|
33445
|
+
display: "-webkit-box",
|
|
33446
|
+
overflow: "hidden",
|
|
33447
|
+
WebkitBoxOrient: "vertical",
|
|
33448
|
+
WebkitLineClamp: lineLimit
|
|
33449
|
+
},
|
|
33450
|
+
...sxValue
|
|
33451
|
+
},
|
|
33452
|
+
children: checkEmptyText(value)
|
|
33453
|
+
}
|
|
33454
|
+
)
|
|
33455
|
+
]
|
|
33456
|
+
}
|
|
33457
|
+
);
|
|
33438
33458
|
};
|
|
33439
33459
|
const TypographyInfoRow = ({
|
|
33440
33460
|
label,
|
|
@@ -33444,20 +33464,13 @@ const TypographyInfoRow = ({
|
|
|
33444
33464
|
lineLimit = 1,
|
|
33445
33465
|
isColumn = false
|
|
33446
33466
|
}) => {
|
|
33447
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33448
|
-
material.
|
|
33449
|
-
|
|
33450
|
-
|
|
33451
|
-
|
|
33452
|
-
|
|
33453
|
-
|
|
33454
|
-
label,
|
|
33455
|
-
":"
|
|
33456
|
-
] }),
|
|
33457
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
|
|
33458
|
-
]
|
|
33459
|
-
}
|
|
33460
|
-
);
|
|
33467
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(StackAlignCenter, { direction: isColumn ? "column" : "row", sx: { gap: PADDING_GAP_ITEM_SMALL, ...sx }, children: [
|
|
33468
|
+
label && /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { color: GRAY[500], ...labelSx }, children: [
|
|
33469
|
+
label,
|
|
33470
|
+
":"
|
|
33471
|
+
] }),
|
|
33472
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
|
|
33473
|
+
] });
|
|
33461
33474
|
};
|
|
33462
33475
|
function _extends() {
|
|
33463
33476
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|