@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.
package/dist/web.esm.js CHANGED
@@ -17048,82 +17048,6 @@ var TitleSizes = {
17048
17048
  lg: 64,
17049
17049
  xl: 72
17050
17050
  };
17051
- /**
17052
- * Responsive typography system that maps title sizes to responsive breakpoints
17053
- * Based on the Typography system with dynamic breakpoint sizing
17054
- */
17055
- var ResponsiveTypography = {
17056
- // xl maps to H1 - Largest heading
17057
- xl: {
17058
- media: {
17059
- mobile: {
17060
- fontSize: 60
17061
- },
17062
- tablet: {
17063
- fontSize: 60
17064
- },
17065
- desktop: {
17066
- fontSize: 96
17067
- }
17068
- }
17069
- },
17070
- // lg maps to H2 - Large heading
17071
- lg: {
17072
- media: {
17073
- mobile: {
17074
- fontSize: 48
17075
- },
17076
- tablet: {
17077
- fontSize: 48
17078
- },
17079
- desktop: {
17080
- fontSize: 70
17081
- }
17082
- }
17083
- },
17084
- // md maps to H3 - Medium heading
17085
- md: {
17086
- media: {
17087
- mobile: {
17088
- fontSize: 32
17089
- },
17090
- tablet: {
17091
- fontSize: 40
17092
- },
17093
- desktop: {
17094
- fontSize: 56
17095
- }
17096
- }
17097
- },
17098
- // sm maps to T1 - Title text
17099
- sm: {
17100
- media: {
17101
- mobile: {
17102
- fontSize: 20
17103
- },
17104
- tablet: {
17105
- fontSize: 24
17106
- },
17107
- desktop: {
17108
- fontSize: 32
17109
- }
17110
- }
17111
- },
17112
- // xs maps to S1 - Subtitle text
17113
- xs: {
17114
- media: {
17115
- mobile: {
17116
- fontSize: 14
17117
- },
17118
- tablet: {
17119
- fontSize: 18
17120
- },
17121
- desktop: {
17122
- fontSize: 20
17123
- }
17124
- }
17125
- }
17126
- };
17127
17051
  /**
17128
17052
  * Default styles for different highlight types
17129
17053
  */
@@ -17346,7 +17270,8 @@ var SlideEffect = _ref => {
17346
17270
  position: 'relative',
17347
17271
  overflow: 'hidden',
17348
17272
  verticalAlign: 'bottom',
17349
- whiteSpace: 'nowrap'
17273
+ whiteSpace: 'nowrap',
17274
+ lineHeight: 'normal'
17350
17275
  }, textStyle), [textStyle]);
17351
17276
  // Word row container style
17352
17277
  var wordRowStyle = useMemo(() => ({
@@ -17423,7 +17348,7 @@ var SlideEffect = _ref => {
17423
17348
  })));
17424
17349
  };
17425
17350
 
17426
- var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode", "textComponent"];
17351
+ var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode", "textComponent"];
17427
17352
  function escapeRegExp(string) {
17428
17353
  return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
17429
17354
  }
@@ -17435,7 +17360,6 @@ var TitleView = _ref => {
17435
17360
  highlightColor = 'theme.primary',
17436
17361
  highlightSecondaryColor,
17437
17362
  size = 'lg',
17438
- responsive = true,
17439
17363
  views,
17440
17364
  highlightAnimate,
17441
17365
  animate,
@@ -17503,10 +17427,7 @@ var TitleView = _ref => {
17503
17427
  highlightSlideSequential
17504
17428
  }, props));
17505
17429
  var TextComponent = textComponent || Text;
17506
- // Common style calculations
17507
- var useResponsive = responsive && !props.media;
17508
17430
  var fontSize = TitleSizes[size];
17509
- var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
17510
17431
  // Highlight style props
17511
17432
  var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
17512
17433
  // Apply loop control to animations
@@ -17531,8 +17452,7 @@ var TitleView = _ref => {
17531
17452
  animate: inView ? controlledAnimate : undefined
17532
17453
  }, !textComponent && {
17533
17454
  as: 'h1',
17534
- fontSize: useResponsive ? undefined : fontSize,
17535
- media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
17455
+ fontSize
17536
17456
  });
17537
17457
  // Render highlighted text content (typewriter, slide, or plain)
17538
17458
  var renderHighlightedContent = content => {
@@ -17560,7 +17480,7 @@ var TitleView = _ref => {
17560
17480
  stagger: stateHighlightSlideStagger,
17561
17481
  sequential: stateHighlightSlideSequential,
17562
17482
  direction: "up",
17563
- fontSize: useResponsive ? undefined : fontSize,
17483
+ fontSize: fontSize,
17564
17484
  wordProps: highlightProps,
17565
17485
  textComponent: TextComponent
17566
17486
  });
@@ -17583,7 +17503,7 @@ var TitleView = _ref => {
17583
17503
  }
17584
17504
  if (lastIndex < text.length) parts.push(text.substring(lastIndex));
17585
17505
  return /*#__PURE__*/React.createElement(Element, Object.assign({
17586
- fontSize: useResponsive ? undefined : fontSize
17506
+ fontSize: fontSize
17587
17507
  }, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? (/*#__PURE__*/React.createElement(TextComponent, {
17588
17508
  key: "text-" + idx,
17589
17509
  as: "span",