@sanity/ui 5.0.0-alpha.1 → 5.0.0-alpha.2

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.js CHANGED
@@ -95,7 +95,7 @@ function getCompositeValue(propValue, propDef, key) {
95
95
  compositeValue = mapping?.[propValue];
96
96
  return compositeValue;
97
97
  }
98
- const HASH = "162541";
98
+ const HASH = "eaf84d";
99
99
  function suffixClassName(className) {
100
100
  return `${className}-${HASH}`;
101
101
  }
@@ -604,7 +604,7 @@ function Text(t0) {
604
604
  $[7] !== t8 ? (t9 = clsx("sui-overflow-hidden", t8), $[7] = t8, $[8] = t9) : t9 = $[8], t2 = /* @__PURE__ */ jsx(Component, { className: t7, style, "data-ui": "Text", ...rest, children: /* @__PURE__ */ jsx("span", { className: t9, children }) });
605
605
  break bb0;
606
606
  }
607
- T0 = Component, t1 = clsx(textClassName, "sui-overflow-hidden", className);
607
+ T0 = Component, t1 = clsx(textClassName, props.truncate && "sui-overflow-hidden", className);
608
608
  }
609
609
  $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
610
610
  } else
@@ -1020,7 +1020,7 @@ function Eyebrow(t0) {
1020
1020
  $[7] !== t9 ? (t10 = clsx("sui-overflow-hidden", t9), $[7] = t9, $[8] = t10) : t10 = $[8], t2 = /* @__PURE__ */ jsx(Component, { className: t8, style, "data-ui": "Eyebrow", ...rest, children: /* @__PURE__ */ jsx("span", { className: t10, children }) });
1021
1021
  break bb0;
1022
1022
  }
1023
- T0 = Component, t1 = clsx(eyebrowClassName, "sui-overflow-hidden", className);
1023
+ T0 = Component, t1 = clsx(eyebrowClassName, props.truncate && "sui-overflow-hidden", className);
1024
1024
  }
1025
1025
  $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
1026
1026
  } else
@@ -1158,7 +1158,7 @@ function Heading(t0) {
1158
1158
  $[7] !== t9 ? (t10 = clsx("sui-overflow-hidden", t9), $[7] = t9, $[8] = t10) : t10 = $[8], t2 = /* @__PURE__ */ jsx(Component, { className: t8, style, "data-ui": "Heading", ...rest, children: /* @__PURE__ */ jsx("span", { className: t10, children }) });
1159
1159
  break bb0;
1160
1160
  }
1161
- T0 = Component, t1 = clsx(headingClassName, "sui-overflow-hidden", className);
1161
+ T0 = Component, t1 = clsx(headingClassName, props.truncate && "sui-overflow-hidden", className);
1162
1162
  }
1163
1163
  $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
1164
1164
  } else