@app-studio/web 0.9.73 → 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,90 +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
- fontWeight: 500,
17059
- letterSpacing: 1.25,
17060
- media: {
17061
- mobile: {
17062
- fontSize: 60
17063
- },
17064
- tablet: {
17065
- fontSize: 60
17066
- },
17067
- desktop: {
17068
- fontSize: 96
17069
- }
17070
- }
17071
- },
17072
- // lg maps to H2 - Large heading
17073
- lg: {
17074
- fontWeight: 500,
17075
- media: {
17076
- mobile: {
17077
- fontSize: 48
17078
- },
17079
- tablet: {
17080
- fontSize: 48
17081
- },
17082
- desktop: {
17083
- fontSize: 70
17084
- }
17085
- }
17086
- },
17087
- // md maps to H3 - Medium heading
17088
- md: {
17089
- fontWeight: 500,
17090
- media: {
17091
- mobile: {
17092
- fontSize: 32
17093
- },
17094
- tablet: {
17095
- fontSize: 40
17096
- },
17097
- desktop: {
17098
- fontSize: 56
17099
- }
17100
- }
17101
- },
17102
- // sm maps to T1 - Title text
17103
- sm: {
17104
- fontWeight: 400,
17105
- letterSpacing: -0.2,
17106
- media: {
17107
- mobile: {
17108
- fontSize: 20
17109
- },
17110
- tablet: {
17111
- fontSize: 24
17112
- },
17113
- desktop: {
17114
- fontSize: 32
17115
- }
17116
- }
17117
- },
17118
- // xs maps to S1 - Subtitle text
17119
- xs: {
17120
- fontWeight: 400,
17121
- letterSpacing: -0.2,
17122
- media: {
17123
- mobile: {
17124
- fontSize: 14
17125
- },
17126
- tablet: {
17127
- fontSize: 18
17128
- },
17129
- desktop: {
17130
- fontSize: 20
17131
- }
17132
- }
17133
- }
17134
- };
17135
17051
  /**
17136
17052
  * Default styles for different highlight types
17137
17053
  */
@@ -17354,7 +17270,8 @@ var SlideEffect = _ref => {
17354
17270
  position: 'relative',
17355
17271
  overflow: 'hidden',
17356
17272
  verticalAlign: 'bottom',
17357
- whiteSpace: 'nowrap'
17273
+ whiteSpace: 'nowrap',
17274
+ lineHeight: 'normal'
17358
17275
  }, textStyle), [textStyle]);
17359
17276
  // Word row container style
17360
17277
  var wordRowStyle = useMemo(() => ({
@@ -17431,7 +17348,7 @@ var SlideEffect = _ref => {
17431
17348
  })));
17432
17349
  };
17433
17350
 
17434
- 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"];
17435
17352
  function escapeRegExp(string) {
17436
17353
  return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
17437
17354
  }
@@ -17443,7 +17360,6 @@ var TitleView = _ref => {
17443
17360
  highlightColor = 'theme.primary',
17444
17361
  highlightSecondaryColor,
17445
17362
  size = 'lg',
17446
- responsive = true,
17447
17363
  views,
17448
17364
  highlightAnimate,
17449
17365
  animate,
@@ -17511,10 +17427,7 @@ var TitleView = _ref => {
17511
17427
  highlightSlideSequential
17512
17428
  }, props));
17513
17429
  var TextComponent = textComponent || Text;
17514
- // Common style calculations
17515
- var useResponsive = responsive && !props.media;
17516
17430
  var fontSize = TitleSizes[size];
17517
- var responsiveStyles = useResponsive ? ResponsiveTypography[size] : null;
17518
17431
  // Highlight style props
17519
17432
  var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
17520
17433
  // Apply loop control to animations
@@ -17539,10 +17452,7 @@ var TitleView = _ref => {
17539
17452
  animate: inView ? controlledAnimate : undefined
17540
17453
  }, !textComponent && {
17541
17454
  as: 'h1',
17542
- fontSize: useResponsive ? undefined : fontSize,
17543
- fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
17544
- letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
17545
- media: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.media : undefined
17455
+ fontSize
17546
17456
  });
17547
17457
  // Render highlighted text content (typewriter, slide, or plain)
17548
17458
  var renderHighlightedContent = content => {
@@ -17570,8 +17480,7 @@ var TitleView = _ref => {
17570
17480
  stagger: stateHighlightSlideStagger,
17571
17481
  sequential: stateHighlightSlideSequential,
17572
17482
  direction: "up",
17573
- fontSize: useResponsive ? undefined : fontSize,
17574
- fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
17483
+ fontSize: fontSize,
17575
17484
  wordProps: highlightProps,
17576
17485
  textComponent: TextComponent
17577
17486
  });
@@ -17594,7 +17503,7 @@ var TitleView = _ref => {
17594
17503
  }
17595
17504
  if (lastIndex < text.length) parts.push(text.substring(lastIndex));
17596
17505
  return /*#__PURE__*/React.createElement(Element, Object.assign({
17597
- fontSize: useResponsive ? undefined : fontSize
17506
+ fontSize: fontSize
17598
17507
  }, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? (/*#__PURE__*/React.createElement(TextComponent, {
17599
17508
  key: "text-" + idx,
17600
17509
  as: "span",