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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.3.16
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: update value color
8
+
3
9
  ## 1.3.15
4
10
 
5
11
  ### Patch Changes
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
- if (layout === "vertical") {
33429
- return /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(StackRow, { sx: { display: "grid", gridTemplateColumns: columns, ...sx }, children: [
33430
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textSm.semiBold, ...sxLabel }, children: label }) }),
33431
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...TYPOGRAPHY.textSm.regular, ...sxValue }, children: value || "Không có" })
33432
- ] }) });
33433
- }
33434
- return /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { sx: { gap: 0.5, ...sx }, children: [
33435
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textSm.semiBold, ...sxLabel }, children: label }),
33436
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...TYPOGRAPHY.textSm.regular, ...sxValue }, children: value || "Không có" })
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.Stack,
33449
- {
33450
- direction: isColumn ? "column" : "row",
33451
- sx: { alignItems: "center", gap: PADDING_GAP_ITEM_SMALL, ...sx },
33452
- children: [
33453
- label && /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { ...labelSx }, variant: "subtitle1", children: [
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) {