@app-studio/web 0.9.75 → 0.9.76

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.
@@ -17016,82 +17016,6 @@
17016
17016
  lg: 64,
17017
17017
  xl: 72
17018
17018
  };
17019
- /**
17020
- * Responsive typography system that maps title sizes to responsive breakpoints
17021
- * Based on the Typography system with dynamic breakpoint sizing
17022
- */
17023
- var ResponsiveTypography = {
17024
- // xl maps to H1 - Largest heading
17025
- xl: {
17026
- media: {
17027
- mobile: {
17028
- fontSize: 60
17029
- },
17030
- tablet: {
17031
- fontSize: 60
17032
- },
17033
- desktop: {
17034
- fontSize: 96
17035
- }
17036
- }
17037
- },
17038
- // lg maps to H2 - Large heading
17039
- lg: {
17040
- media: {
17041
- mobile: {
17042
- fontSize: 48
17043
- },
17044
- tablet: {
17045
- fontSize: 48
17046
- },
17047
- desktop: {
17048
- fontSize: 70
17049
- }
17050
- }
17051
- },
17052
- // md maps to H3 - Medium heading
17053
- md: {
17054
- media: {
17055
- mobile: {
17056
- fontSize: 32
17057
- },
17058
- tablet: {
17059
- fontSize: 40
17060
- },
17061
- desktop: {
17062
- fontSize: 56
17063
- }
17064
- }
17065
- },
17066
- // sm maps to T1 - Title text
17067
- sm: {
17068
- media: {
17069
- mobile: {
17070
- fontSize: 20
17071
- },
17072
- tablet: {
17073
- fontSize: 24
17074
- },
17075
- desktop: {
17076
- fontSize: 32
17077
- }
17078
- }
17079
- },
17080
- // xs maps to S1 - Subtitle text
17081
- xs: {
17082
- media: {
17083
- mobile: {
17084
- fontSize: 14
17085
- },
17086
- tablet: {
17087
- fontSize: 18
17088
- },
17089
- desktop: {
17090
- fontSize: 20
17091
- }
17092
- }
17093
- }
17094
- };
17095
17019
  /**
17096
17020
  * Default styles for different highlight types
17097
17021
  */
@@ -17314,7 +17238,8 @@
17314
17238
  position: 'relative',
17315
17239
  overflow: 'hidden',
17316
17240
  verticalAlign: 'bottom',
17317
- whiteSpace: 'nowrap'
17241
+ whiteSpace: 'nowrap',
17242
+ lineHeight: 'normal'
17318
17243
  }, textStyle), [textStyle]);
17319
17244
  // Word row container style
17320
17245
  var wordRowStyle = React.useMemo(() => ({
@@ -17391,7 +17316,7 @@
17391
17316
  })));
17392
17317
  };
17393
17318
 
17394
- var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode", "textComponent"];
17319
+ var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode", "textComponent"];
17395
17320
  function escapeRegExp(string) {
17396
17321
  return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
17397
17322
  }
@@ -17403,7 +17328,6 @@
17403
17328
  highlightColor = 'theme.primary',
17404
17329
  highlightSecondaryColor,
17405
17330
  size = 'lg',
17406
- responsive = true,
17407
17331
  views,
17408
17332
  highlightAnimate,
17409
17333
  animate,
@@ -17471,10 +17395,7 @@
17471
17395
  highlightSlideSequential
17472
17396
  }, props));
17473
17397
  var TextComponent = textComponent || appStudio.Text;
17474
- // Common style calculations
17475
- var useResponsive = responsive && !props.media;
17476
17398
  var fontSize = TitleSizes[size];
17477
- var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
17478
17399
  // Highlight style props
17479
17400
  var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
17480
17401
  // Apply loop control to animations
@@ -17499,8 +17420,7 @@
17499
17420
  animate: inView ? controlledAnimate : undefined
17500
17421
  }, !textComponent && {
17501
17422
  as: 'h1',
17502
- fontSize: useResponsive ? undefined : fontSize,
17503
- media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
17423
+ fontSize
17504
17424
  });
17505
17425
  // Render highlighted text content (typewriter, slide, or plain)
17506
17426
  var renderHighlightedContent = content => {
@@ -17528,7 +17448,7 @@
17528
17448
  stagger: stateHighlightSlideStagger,
17529
17449
  sequential: stateHighlightSlideSequential,
17530
17450
  direction: "up",
17531
- fontSize: useResponsive ? undefined : fontSize,
17451
+ fontSize: fontSize,
17532
17452
  wordProps: highlightProps,
17533
17453
  textComponent: TextComponent
17534
17454
  });
@@ -17551,7 +17471,7 @@
17551
17471
  }
17552
17472
  if (lastIndex < text.length) parts.push(text.substring(lastIndex));
17553
17473
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
17554
- fontSize: useResponsive ? undefined : fontSize
17474
+ fontSize: fontSize
17555
17475
  }, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? (/*#__PURE__*/React__default.createElement(TextComponent, {
17556
17476
  key: "text-" + idx,
17557
17477
  as: "span",