@cambly/syntax-core 4.4.0 → 4.6.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
@@ -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
  }
@@ -627,7 +632,13 @@ var hasSetupGlobalListeners = false;
627
632
  var currentModality = null;
628
633
  var changeHandlers = /* @__PURE__ */ new Set();
629
634
  var hasEventBeforeFocus = false;
630
- var isMac = typeof window !== "undefined" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false;
635
+ var isMac = (
636
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
637
+ typeof window !== "undefined" && window.navigator != null ? (
638
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
639
+ /^Mac/.test(window.navigator.platform)
640
+ ) : false
641
+ );
631
642
  function isValidKey(e) {
632
643
  return !(e.metaKey || !isMac && e.altKey || e.ctrlKey);
633
644
  }