sevago-library 1.3.15 → 1.3.17

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,17 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.3.17
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: text field
8
+
9
+ ## 1.3.16
10
+
11
+ ### Patch Changes
12
+
13
+ - feat: update value color
14
+
3
15
  ## 1.3.15
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -33420,45 +33420,61 @@ 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
- ] }) });
33438
- };
33439
- const TypographyInfoRow = ({
33440
- label,
33441
- value,
33442
- sx = {},
33443
- labelSx = {},
33444
- lineLimit = 1,
33445
- isColumn = false
33446
- }) => {
33429
+ const isGridLayout = layout === "vertical";
33447
33430
  return /* @__PURE__ */ jsxRuntime.jsxs(
33448
- material.Stack,
33431
+ StackRow,
33449
33432
  {
33450
- direction: isColumn ? "column" : "row",
33451
- sx: { alignItems: "center", gap: PADDING_GAP_ITEM_SMALL, ...sx },
33433
+ sx: {
33434
+ ...isGridLayout ? { display: "grid", gridTemplateColumns: columns } : { flexDirection: "column", gap: 0.5 },
33435
+ ...sx
33436
+ },
33452
33437
  children: [
33453
- label && /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { ...labelSx }, variant: "subtitle1", children: [
33438
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { ...TYPOGRAPHY.textSm.regular, color: GRAY[500], ...sxLabel }, children: [
33454
33439
  label,
33455
33440
  ":"
33456
33441
  ] }),
33457
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
33442
+ /* @__PURE__ */ jsxRuntime.jsx(
33443
+ material.Typography,
33444
+ {
33445
+ sx: {
33446
+ ...TYPOGRAPHY.textSm.regular,
33447
+ ...lineLimit && {
33448
+ display: "-webkit-box",
33449
+ overflow: "hidden",
33450
+ WebkitBoxOrient: "vertical",
33451
+ WebkitLineClamp: lineLimit
33452
+ },
33453
+ ...sxValue
33454
+ },
33455
+ children: checkEmptyText(value)
33456
+ }
33457
+ )
33458
33458
  ]
33459
33459
  }
33460
33460
  );
33461
33461
  };
33462
+ const TypographyInfoRow = ({
33463
+ label,
33464
+ value,
33465
+ sx = {},
33466
+ labelSx = {},
33467
+ lineLimit = 1,
33468
+ isColumn = false
33469
+ }) => {
33470
+ return /* @__PURE__ */ jsxRuntime.jsxs(StackAlignCenter, { direction: isColumn ? "column" : "row", sx: { gap: PADDING_GAP_ITEM_SMALL, ...sx }, children: [
33471
+ label && /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { color: GRAY[500], ...labelSx }, children: [
33472
+ label,
33473
+ ":"
33474
+ ] }),
33475
+ /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
33476
+ ] });
33477
+ };
33462
33478
  function _extends() {
33463
33479
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
33464
33480
  for (var e = 1; e < arguments.length; e++) {