@kosdev-code/base-ui-components 1.0.5 → 1.0.6

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/index.js CHANGED
@@ -2054,22 +2054,24 @@ const [C0] = Q(["text"]), y4 = [
2054
2054
  children: t,
2055
2055
  color: o,
2056
2056
  ellipsis: n,
2057
- textAlign: r,
2058
- underline: a,
2059
- variant: i,
2060
- ...c
2061
- }, l) => /* @__PURE__ */ g(S2, { children: ({ cx: s }) => /* @__PURE__ */ g(
2057
+ lineClamp: r,
2058
+ textAlign: a,
2059
+ underline: i,
2060
+ variant: c,
2061
+ ...l
2062
+ }, s) => /* @__PURE__ */ g(S2, { children: ({ cx: d }) => /* @__PURE__ */ g(
2062
2063
  C4,
2063
2064
  {
2064
- "data-variant": i,
2065
- "data-alignment": r,
2065
+ "data-variant": c,
2066
+ "data-alignment": a,
2066
2067
  "data-color": o,
2067
- ref: l,
2068
- ...c,
2069
- className: s(c.className, {
2068
+ ref: s,
2069
+ ...l,
2070
+ className: d(l.className, {
2070
2071
  isBold: e,
2071
- isUnderlined: a,
2072
- isEllipsized: n
2072
+ isUnderlined: i,
2073
+ isEllipsized: n,
2074
+ isLineClamped: r
2073
2075
  }),
2074
2076
  children: t
2075
2077
  }
@@ -2093,6 +2095,14 @@ const [C0] = Q(["text"]), y4 = [
2093
2095
  white-space: nowrap;
2094
2096
  overflow: hidden;
2095
2097
  }
2098
+ &.isLineClamped {
2099
+ -webkit-box-orient: vertical;
2100
+ -webkit-line-clamp: 2;
2101
+ display: -webkit-box;
2102
+ overflow: hidden;
2103
+ text-overflow: ellipsis;
2104
+ white-space: normal;
2105
+ }
2096
2106
  &.isUnderlined {
2097
2107
  text-decoration: underline;
2098
2108
  }
@@ -13177,7 +13187,7 @@ const [at, W9] = Q(["option", "select"]), bg = ({
13177
13187
  ] }),
13178
13188
  /* @__PURE__ */ L(ld, { children: [
13179
13189
  /* @__PURE__ */ g(e2, { variant: "h1", children: o }),
13180
- !!n && /* @__PURE__ */ g(e2, { variant: "body", color: "dark", children: n })
13190
+ !!n && /* @__PURE__ */ g(e2, { variant: "body", color: "dark", lineClamp: !0, children: n })
13181
13191
  ] })
13182
13192
  ] }),
13183
13193
  !!a && /* @__PURE__ */ g(a, {})