@cambly/syntax-core 4.3.0 → 4.5.0

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.mjs CHANGED
@@ -324,7 +324,7 @@ function Box(props) {
324
324
  }, (_c = dangerouslySetInlineStyle == null ? void 0 : dangerouslySetInlineStyle.__style) != null ? _c : {})
325
325
  };
326
326
  const passthroughProps = Object.entries(maybePassThroughProps).reduce((acc, [key]) => {
327
- if (key === "id" || key.startsWith("aria-") || key.startsWith("data-testid")) {
327
+ if (key === "id" || key === "role" || key.startsWith("aria-") || key.startsWith("data-testid")) {
328
328
  acc[key] = maybePassThroughProps[key];
329
329
  }
330
330
  return acc;
@@ -508,7 +508,7 @@ Divider.displayName = "Divider";
508
508
  var import_classnames5 = __toESM(require_classnames());
509
509
 
510
510
  // css-module:./Typography.module.css#css-module
511
- var Typography_module_default = { "typography": "_typography_1krnf_1", "size100": "_size100_1krnf_8", "size200": "_size200_1krnf_12", "size300": "_size300_1krnf_16", "size500": "_size500_1krnf_20", "size600": "_size600_1krnf_24", "size700": "_size700_1krnf_28", "size800": "_size800_1krnf_32", "center": "_center_1krnf_37", "forceLeft": "_forceLeft_1krnf_41", "forceRight": "_forceRight_1krnf_45", "start": "_start_1krnf_49", "end": "_end_1krnf_53", "bold": "_bold_1krnf_58", "regular": "_regular_1krnf_62", "semiBold": "_semiBold_1krnf_66", "heavy": "_heavy_1krnf_70", "underline": "_underline_1krnf_74", "inline": "_inline_1krnf_78", "uppercase": "_uppercase_1krnf_82" };
511
+ var Typography_module_default = { "typography": "_typography_1hx29_1", "size100": "_size100_1hx29_8", "size200": "_size200_1hx29_12", "size300": "_size300_1hx29_16", "size500": "_size500_1hx29_20", "size600": "_size600_1hx29_24", "size700": "_size700_1hx29_28", "size800": "_size800_1hx29_32", "center": "_center_1hx29_37", "forceLeft": "_forceLeft_1hx29_41", "forceRight": "_forceRight_1hx29_45", "start": "_start_1hx29_49", "end": "_end_1hx29_53", "bold": "_bold_1hx29_58", "regular": "_regular_1hx29_62", "semiBold": "_semiBold_1hx29_66", "heavy": "_heavy_1hx29_70", "underline": "_underline_1hx29_74", "inline": "_inline_1hx29_78", "uppercase": "_uppercase_1hx29_82", "lineClamp": "_lineClamp_1hx29_86" };
512
512
 
513
513
  // src/Typography/Typography.tsx
514
514
  import { jsx as jsx7 } from "react/jsx-runtime";
@@ -534,6 +534,7 @@ var Typography = ({
534
534
  children,
535
535
  color = "gray900",
536
536
  inline = false,
537
+ lineClamp = void 0,
537
538
  size = 200,
538
539
  tooltip,
539
540
  transform = "none",
@@ -552,8 +553,12 @@ var Typography = ({
552
553
  inline && Typography_module_default.inline,
553
554
  Typography_module_default[`size${size}`],
554
555
  transform === "uppercase" && Typography_module_default.uppercase,
555
- underline && Typography_module_default.underline
556
+ underline && Typography_module_default.underline,
557
+ lineClamp != null && Typography_module_default.lineClamp
556
558
  ),
559
+ style: {
560
+ WebkitLineClamp: lineClamp
561
+ },
557
562
  title: tooltip,
558
563
  children
559
564
  }