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/dist/index.esm.js CHANGED
@@ -33402,21 +33402,41 @@ const TypographyGridInfoRow = ({
33402
33402
  label,
33403
33403
  value,
33404
33404
  sx,
33405
+ lineLimit,
33405
33406
  columns = "1fr 2fr",
33406
33407
  layout = "vertical",
33407
33408
  sxValue,
33408
33409
  sxLabel
33409
33410
  }) => {
33410
- if (layout === "vertical") {
33411
- return /* @__PURE__ */ jsx(React__default.Fragment, { children: /* @__PURE__ */ jsxs(StackRow, { sx: { display: "grid", gridTemplateColumns: columns, ...sx }, children: [
33412
- /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textSm.semiBold, ...sxLabel }, children: label }) }),
33413
- /* @__PURE__ */ jsx(Stack, { sx: { ...TYPOGRAPHY.textSm.regular, ...sxValue }, children: value || "Không có" })
33414
- ] }) });
33415
- }
33416
- return /* @__PURE__ */ jsx(React__default.Fragment, { children: /* @__PURE__ */ jsxs(Stack, { sx: { gap: 0.5, ...sx }, children: [
33417
- /* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textSm.semiBold, ...sxLabel }, children: label }),
33418
- /* @__PURE__ */ jsx(Stack, { sx: { ...TYPOGRAPHY.textSm.regular, ...sxValue }, children: value || "Không có" })
33419
- ] }) });
33411
+ const isGridLayout = layout === "vertical";
33412
+ return /* @__PURE__ */ jsxs(
33413
+ StackRow,
33414
+ {
33415
+ sx: {
33416
+ ...isGridLayout ? { display: "grid", gridTemplateColumns: columns } : { flexDirection: "column", gap: 0.5 },
33417
+ ...sx
33418
+ },
33419
+ children: [
33420
+ /* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textSm.semiBold, color: GRAY[500], ...sxLabel }, children: label }),
33421
+ /* @__PURE__ */ jsx(
33422
+ Typography$1,
33423
+ {
33424
+ sx: {
33425
+ ...TYPOGRAPHY.textSm.regular,
33426
+ ...lineLimit && {
33427
+ display: "-webkit-box",
33428
+ overflow: "hidden",
33429
+ WebkitBoxOrient: "vertical",
33430
+ WebkitLineClamp: lineLimit
33431
+ },
33432
+ ...sxValue
33433
+ },
33434
+ children: checkEmptyText(value)
33435
+ }
33436
+ )
33437
+ ]
33438
+ }
33439
+ );
33420
33440
  };
33421
33441
  const TypographyInfoRow = ({
33422
33442
  label,
@@ -33426,20 +33446,13 @@ const TypographyInfoRow = ({
33426
33446
  lineLimit = 1,
33427
33447
  isColumn = false
33428
33448
  }) => {
33429
- return /* @__PURE__ */ jsxs(
33430
- Stack,
33431
- {
33432
- direction: isColumn ? "column" : "row",
33433
- sx: { alignItems: "center", gap: PADDING_GAP_ITEM_SMALL, ...sx },
33434
- children: [
33435
- label && /* @__PURE__ */ jsxs(Typography$1, { sx: { ...labelSx }, variant: "subtitle1", children: [
33436
- label,
33437
- ":"
33438
- ] }),
33439
- /* @__PURE__ */ jsx(Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsx(Typography$1, { children: checkEmptyText(value) }) })
33440
- ]
33441
- }
33442
- );
33449
+ return /* @__PURE__ */ jsxs(StackAlignCenter, { direction: isColumn ? "column" : "row", sx: { gap: PADDING_GAP_ITEM_SMALL, ...sx }, children: [
33450
+ label && /* @__PURE__ */ jsxs(Typography$1, { sx: { color: GRAY[500], ...labelSx }, children: [
33451
+ label,
33452
+ ":"
33453
+ ] }),
33454
+ /* @__PURE__ */ jsx(Stack, { sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsx(Typography$1, { children: checkEmptyText(value) }) })
33455
+ ] });
33443
33456
  };
33444
33457
  function _extends() {
33445
33458
  return _extends = Object.assign ? Object.assign.bind() : function(n) {