@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.
@@ -17055,82 +17055,6 @@ var TitleSizes = {
17055
17055
  lg: 64,
17056
17056
  xl: 72
17057
17057
  };
17058
- /**
17059
- * Responsive typography system that maps title sizes to responsive breakpoints
17060
- * Based on the Typography system with dynamic breakpoint sizing
17061
- */
17062
- var ResponsiveTypography = {
17063
- // xl maps to H1 - Largest heading
17064
- xl: {
17065
- media: {
17066
- mobile: {
17067
- fontSize: 60
17068
- },
17069
- tablet: {
17070
- fontSize: 60
17071
- },
17072
- desktop: {
17073
- fontSize: 96
17074
- }
17075
- }
17076
- },
17077
- // lg maps to H2 - Large heading
17078
- lg: {
17079
- media: {
17080
- mobile: {
17081
- fontSize: 48
17082
- },
17083
- tablet: {
17084
- fontSize: 48
17085
- },
17086
- desktop: {
17087
- fontSize: 70
17088
- }
17089
- }
17090
- },
17091
- // md maps to H3 - Medium heading
17092
- md: {
17093
- media: {
17094
- mobile: {
17095
- fontSize: 32
17096
- },
17097
- tablet: {
17098
- fontSize: 40
17099
- },
17100
- desktop: {
17101
- fontSize: 56
17102
- }
17103
- }
17104
- },
17105
- // sm maps to T1 - Title text
17106
- sm: {
17107
- media: {
17108
- mobile: {
17109
- fontSize: 20
17110
- },
17111
- tablet: {
17112
- fontSize: 24
17113
- },
17114
- desktop: {
17115
- fontSize: 32
17116
- }
17117
- }
17118
- },
17119
- // xs maps to S1 - Subtitle text
17120
- xs: {
17121
- media: {
17122
- mobile: {
17123
- fontSize: 14
17124
- },
17125
- tablet: {
17126
- fontSize: 18
17127
- },
17128
- desktop: {
17129
- fontSize: 20
17130
- }
17131
- }
17132
- }
17133
- };
17134
17058
  /**
17135
17059
  * Default styles for different highlight types
17136
17060
  */
@@ -17353,7 +17277,8 @@ var SlideEffect = _ref => {
17353
17277
  position: 'relative',
17354
17278
  overflow: 'hidden',
17355
17279
  verticalAlign: 'bottom',
17356
- whiteSpace: 'nowrap'
17280
+ whiteSpace: 'nowrap',
17281
+ lineHeight: 'normal'
17357
17282
  }, textStyle), [textStyle]);
17358
17283
  // Word row container style
17359
17284
  var wordRowStyle = React.useMemo(() => ({
@@ -17430,7 +17355,7 @@ var SlideEffect = _ref => {
17430
17355
  })));
17431
17356
  };
17432
17357
 
17433
- var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode", "textComponent"];
17358
+ var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode", "textComponent"];
17434
17359
  function escapeRegExp(string) {
17435
17360
  return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
17436
17361
  }
@@ -17442,7 +17367,6 @@ var TitleView = _ref => {
17442
17367
  highlightColor = 'theme.primary',
17443
17368
  highlightSecondaryColor,
17444
17369
  size = 'lg',
17445
- responsive = true,
17446
17370
  views,
17447
17371
  highlightAnimate,
17448
17372
  animate,
@@ -17510,10 +17434,7 @@ var TitleView = _ref => {
17510
17434
  highlightSlideSequential
17511
17435
  }, props));
17512
17436
  var TextComponent = textComponent || appStudio.Text;
17513
- // Common style calculations
17514
- var useResponsive = responsive && !props.media;
17515
17437
  var fontSize = TitleSizes[size];
17516
- var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
17517
17438
  // Highlight style props
17518
17439
  var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
17519
17440
  // Apply loop control to animations
@@ -17538,8 +17459,7 @@ var TitleView = _ref => {
17538
17459
  animate: inView ? controlledAnimate : undefined
17539
17460
  }, !textComponent && {
17540
17461
  as: 'h1',
17541
- fontSize: useResponsive ? undefined : fontSize,
17542
- media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
17462
+ fontSize
17543
17463
  });
17544
17464
  // Render highlighted text content (typewriter, slide, or plain)
17545
17465
  var renderHighlightedContent = content => {
@@ -17567,7 +17487,7 @@ var TitleView = _ref => {
17567
17487
  stagger: stateHighlightSlideStagger,
17568
17488
  sequential: stateHighlightSlideSequential,
17569
17489
  direction: "up",
17570
- fontSize: useResponsive ? undefined : fontSize,
17490
+ fontSize: fontSize,
17571
17491
  wordProps: highlightProps,
17572
17492
  textComponent: TextComponent
17573
17493
  });
@@ -17590,7 +17510,7 @@ var TitleView = _ref => {
17590
17510
  }
17591
17511
  if (lastIndex < text.length) parts.push(text.substring(lastIndex));
17592
17512
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
17593
- fontSize: useResponsive ? undefined : fontSize
17513
+ fontSize: fontSize
17594
17514
  }, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? (/*#__PURE__*/React__default.createElement(TextComponent, {
17595
17515
  key: "text-" + idx,
17596
17516
  as: "span",