@app-studio/web 0.9.69 → 0.9.71

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.
@@ -488,9 +488,9 @@
488
488
  if (defaultProps === void 0) {
489
489
  defaultProps = {};
490
490
  }
491
- var IconComponent = props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({
491
+ var IconComponent = props => (/*#__PURE__*/React__default.createElement(Icon, Object.assign({
492
492
  name: name
493
- }, defaultProps, props));
493
+ }, defaultProps, props)));
494
494
  IconComponent.displayName = name + "Icon";
495
495
  return IconComponent;
496
496
  };
@@ -669,9 +669,9 @@
669
669
  });
670
670
  // Restored icons
671
671
  var CheckIcon = TickIcon;
672
- var BackIcon = props => /*#__PURE__*/React__default.createElement(ChevronIcon, Object.assign({
672
+ var BackIcon = props => (/*#__PURE__*/React__default.createElement(ChevronIcon, Object.assign({
673
673
  orientation: "left"
674
- }, props));
674
+ }, props)));
675
675
  var ZoomOutIcon = /*#__PURE__*/createIcon('zoom-out', {
676
676
  filled: false
677
677
  });
@@ -776,106 +776,6 @@
776
776
  filled: false
777
777
  });
778
778
 
779
- var Icon$1 = {
780
- __proto__: null,
781
- Icon: Icon,
782
- UserIcon: UserIcon,
783
- HelpIcon: HelpIcon,
784
- FolderIcon: FolderIcon,
785
- ChevronIcon: ChevronIcon,
786
- DragHandleIcon: DragHandleIcon,
787
- FileIcon: FileIcon,
788
- VideoIcon: VideoIcon,
789
- ImageIcon: ImageIcon,
790
- AudioIcon: AudioIcon,
791
- TwitterIcon: TwitterIcon,
792
- XIcon: XIcon,
793
- TwitchIcon: TwitchIcon,
794
- CloseIcon: CloseIcon,
795
- InstagramIcon: InstagramIcon,
796
- YoutubeIcon: YoutubeIcon,
797
- FacebookIcon: FacebookIcon,
798
- LinkedinIcon: LinkedinIcon,
799
- ThreadsIcon: ThreadsIcon,
800
- MinusIcon: MinusIcon,
801
- InfoIcon: InfoIcon,
802
- PlayIcon: PlayIcon,
803
- PauseIcon: PauseIcon,
804
- HeartIcon: HeartIcon,
805
- StarIcon: StarIcon,
806
- SaveIcon: SaveIcon,
807
- WarningIcon: WarningIcon,
808
- BatteryIcon: BatteryIcon,
809
- BookmarkIcon: BookmarkIcon,
810
- CloudIcon: CloudIcon,
811
- CopyIcon: CopyIcon,
812
- DustBinIcon: DustBinIcon,
813
- DeleteIcon: DeleteIcon,
814
- EditIcon: EditIcon,
815
- MicrophoneIcon: MicrophoneIcon,
816
- StopIcon: StopIcon,
817
- SendIcon: SendIcon,
818
- LoadingSpinnerIcon: LoadingSpinnerIcon,
819
- AttachmentIcon: AttachmentIcon,
820
- SearchIcon: SearchIcon,
821
- HomeIcon: HomeIcon,
822
- SettingsIcon: SettingsIcon,
823
- DownloadIcon: DownloadIcon,
824
- ShareIcon: ShareIcon,
825
- TickIcon: TickIcon,
826
- PlusIcon: PlusIcon,
827
- CloseEyeIcon: CloseEyeIcon,
828
- OpenEyeIcon: OpenEyeIcon,
829
- LockIcon: LockIcon,
830
- ProfileIcon: ProfileIcon,
831
- ExternalLinkIcon: ExternalLinkIcon,
832
- SuccessIcon: SuccessIcon,
833
- ErrorIcon: ErrorIcon,
834
- NotificationIcon: NotificationIcon,
835
- DocumentIcon: DocumentIcon,
836
- ChartIcon: ChartIcon,
837
- MoonIcon: MoonIcon,
838
- PanelIcon: PanelIcon,
839
- UploadIcon: UploadIcon,
840
- CheckIcon: CheckIcon,
841
- BackIcon: BackIcon,
842
- ZoomOutIcon: ZoomOutIcon,
843
- TextIcon: TextIcon,
844
- ShapeIcon: ShapeIcon,
845
- RotateIcon: RotateIcon,
846
- GiftIcon: GiftIcon,
847
- ShieldIcon: ShieldIcon,
848
- LogoutIcon: LogoutIcon,
849
- PowerOffIcon: PowerOffIcon,
850
- LinkIcon: LinkIcon,
851
- LayoutIcon: LayoutIcon,
852
- ZapIcon: ZapIcon,
853
- CreditCardIcon: CreditCardIcon,
854
- MoreIcon: MoreIcon,
855
- TrashIcon: TrashIcon,
856
- FilterIcon: FilterIcon,
857
- CalendarIcon: CalendarIcon,
858
- ClockIcon: ClockIcon,
859
- MapPinIcon: MapPinIcon,
860
- MenuIcon: MenuIcon,
861
- RefreshIcon: RefreshIcon,
862
- PrintIcon: PrintIcon,
863
- MagicWandIcon: MagicWandIcon,
864
- UnLikeIcon: UnLikeIcon,
865
- LikeIcon: LikeIcon,
866
- CameraIcon: CameraIcon,
867
- BluetoothIcon: BluetoothIcon,
868
- UnlockIcon: UnlockIcon,
869
- WifiIcon: WifiIcon,
870
- BoldArrowIcon: BoldArrowIcon,
871
- ArrowIcon: ArrowIcon,
872
- SpinnerIcon: SpinnerIcon,
873
- SliderIcon: SliderIcon,
874
- CropIcon: CropIcon,
875
- ZoomInIcon: ZoomInIcon,
876
- DragHandleLinesIcon: DragHandleLinesIcon
877
- };
878
-
879
779
  /**
880
780
  * Alert Styles
881
781
  *
@@ -17234,7 +17134,8 @@
17234
17134
  glow: color => ({
17235
17135
  color: color,
17236
17136
  textShadow: "0 0 10px " + color + "80, 0 0 20px " + color + "40, 0 0 30px " + color + "20"
17237
- })
17137
+ }),
17138
+ default: () => ({})
17238
17139
  };
17239
17140
 
17240
17141
  var _excluded$Z = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "textComponent", "as"];
@@ -17506,7 +17407,7 @@
17506
17407
  var {
17507
17408
  children,
17508
17409
  highlightText,
17509
- highlightStyle = 'background',
17410
+ highlightStyle = 'default',
17510
17411
  highlightColor = 'theme.primary',
17511
17412
  highlightSecondaryColor,
17512
17413
  size = 'lg',
@@ -17603,9 +17504,9 @@
17603
17504
  // Common container props
17604
17505
  var containerProps = Object.assign({
17605
17506
  ref,
17606
- as: 'h1',
17607
17507
  animate: inView ? controlledAnimate : undefined
17608
17508
  }, !textComponent && {
17509
+ as: 'h1',
17609
17510
  fontSize: useResponsive ? undefined : fontSize,
17610
17511
  fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
17611
17512
  letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
@@ -17661,25 +17562,27 @@
17661
17562
  lastIndex = match.index + match[0].length;
17662
17563
  }
17663
17564
  if (lastIndex < text.length) parts.push(text.substring(lastIndex));
17664
- return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17565
+ return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
17566
+ fontSize: useResponsive ? undefined : fontSize
17567
+ }, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17665
17568
  key: "highlight-" + idx,
17666
17569
  as: "span",
17667
17570
  display: "inline",
17668
- animate: inView ? controlledHighlightAnimate : undefined,
17669
- fontSize: useResponsive ? undefined : fontSize
17571
+ animate: inView ? controlledHighlightAnimate : undefined
17670
17572
  }, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(part.text)))));
17671
17573
  }
17672
17574
  // Case 2: Has highlight style but no highlight target - apply style to entire title
17673
17575
  if (highlightStyle && !activeHighlightTarget) {
17674
- return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17576
+ return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
17577
+ fontSize: fontSize
17578
+ }, containerProps, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17675
17579
  as: "span",
17676
- fontSize: fontSize,
17677
17580
  display: "inline",
17678
17581
  animate: inView ? controlledHighlightAnimate : undefined
17679
17582
  }, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
17680
17583
  }
17681
17584
  // Case 3: Default - no highlighting
17682
- return /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), text);
17585
+ return /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({}, containerProps, props, views == null ? void 0 : views.container), text);
17683
17586
  };
17684
17587
 
17685
17588
  /**
@@ -25746,7 +25649,8 @@
25746
25649
  _excluded8 = ["children", "src", "autoPlay", "loop", "muted", "playsInline", "overlay", "blendMode", "views", "themeMode"],
25747
25650
  _excluded9 = ["children"],
25748
25651
  _excluded10 = ["contentPosition"],
25749
- _excluded11 = ["children", "views"];
25652
+ _excluded11 = ["children", "views"],
25653
+ _excluded12 = ["children", "designProps", "shape", "decorationRotation", "decorationScale", "decorationOpacity", "views"];
25750
25654
  // Background Context
25751
25655
  var BackgroundContext = /*#__PURE__*/React.createContext({});
25752
25656
  /**
@@ -26205,15 +26109,15 @@
26205
26109
  var getDefaultOverlay = () => {
26206
26110
  switch (contentPosition) {
26207
26111
  case 'left':
26208
- return 'radial-gradient(circle at 70% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%)';
26112
+ return 'radial-gradient(circle at 80% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.2) 100%)';
26209
26113
  case 'right':
26210
- return 'radial-gradient(circle at 30% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%)';
26114
+ return 'radial-gradient(circle at 20% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.2) 100%)';
26211
26115
  case 'top':
26212
- return 'radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 100%)';
26116
+ return 'radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.1) 100%)';
26213
26117
  case 'bottom':
26214
- return 'radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 100%)';
26118
+ return 'radial-gradient(circle at 50% 80%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%), linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.1) 100%)';
26215
26119
  case 'center':
26216
- return 'radial-gradient(circle at 50% 90%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%)';
26120
+ return 'radial-gradient(circle at 50% 70%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%)';
26217
26121
  default:
26218
26122
  return 'rgba(0,0,0,0.5)';
26219
26123
  }
@@ -26240,6 +26144,78 @@
26240
26144
  value: {}
26241
26145
  }, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, DefaultBackgroundStyles.container, views == null ? void 0 : views.container, props), children));
26242
26146
  };
26147
+ var BackgroundLayout = /*#__PURE__*/React__default.forwardRef((_ref12, ref) => {
26148
+ var _props$backgroundColo, _props$padding;
26149
+ var {
26150
+ children,
26151
+ shape = 'rounded',
26152
+ decorationRotation = 5,
26153
+ decorationScale = 1,
26154
+ decorationOpacity = 0.8,
26155
+ views
26156
+ } = _ref12,
26157
+ props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
26158
+ var getBorderRadius = shape => {
26159
+ switch (shape) {
26160
+ case 'square':
26161
+ return '0px';
26162
+ case 'pill':
26163
+ return '9999px';
26164
+ case 'rounded':
26165
+ default:
26166
+ return '16px';
26167
+ }
26168
+ };
26169
+ var radius = getBorderRadius(shape);
26170
+ // Calculate the extra space needed for the rotated/scaled decoration
26171
+ // When rotated, corners extend beyond the original bounds
26172
+ // Extra space ≈ sin(rotation) × dimension + (scale - 1) × dimension
26173
+ var rotationRad = Math.abs(decorationRotation) * (Math.PI / 180);
26174
+ var rotationOffset = Math.sin(rotationRad) * 100; // percentage-based estimate
26175
+ var scaleOffset = (decorationScale - 1) * 100 / 2;
26176
+ var extraPadding = Math.ceil(rotationOffset + scaleOffset);
26177
+ var backgroundColor = (_props$backgroundColo = props.backgroundColor) != null ? _props$backgroundColo : 'theme.primary';
26178
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, props, {
26179
+ ref: ref,
26180
+ backgroundColor: 'transparent',
26181
+ position: "relative",
26182
+ overflow: "visible"
26183
+ }, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, {
26184
+ padding: (_props$padding = props.padding) != null ? _props$padding : 96 + extraPadding + "px " + extraPadding + "px",
26185
+ position: "relative",
26186
+ overflow: "visible"
26187
+ }, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
26188
+ position: "absolute",
26189
+ top: extraPadding,
26190
+ left: extraPadding,
26191
+ right: extraPadding,
26192
+ bottom: extraPadding,
26193
+ backgroundColor: backgroundColor,
26194
+ borderRadius: radius,
26195
+ opacity: decorationOpacity / 1.5,
26196
+ transform: "scale(" + decorationScale + ")",
26197
+ pointerEvents: "none",
26198
+ zIndex: 1
26199
+ }, views == null ? void 0 : views.back)), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
26200
+ position: "absolute",
26201
+ top: extraPadding,
26202
+ left: extraPadding,
26203
+ right: extraPadding,
26204
+ bottom: extraPadding,
26205
+ transform: "rotate(" + decorationRotation + "deg) scale(" + decorationScale + ")",
26206
+ opacity: decorationOpacity / 1.2,
26207
+ backgroundColor: backgroundColor,
26208
+ borderRadius: radius,
26209
+ pointerEvents: "none",
26210
+ zIndex: 2
26211
+ }, views == null ? void 0 : views.front)), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
26212
+ margin: "0 auto",
26213
+ //width="100%"
26214
+ position: "relative",
26215
+ zIndex: 3
26216
+ }, views == null ? void 0 : views.content), children)));
26217
+ });
26218
+ BackgroundLayout.displayName = 'Background.Layout';
26243
26219
  // Create the compound component
26244
26220
  var BackgroundView = BackgroundViewBase;
26245
26221
  // Attach compound components
@@ -26253,6 +26229,7 @@
26253
26229
  BackgroundView.Video = BackgroundVideo;
26254
26230
  BackgroundView.Gradient = BackgroundGradient;
26255
26231
  BackgroundView.Overlay = BackgroundOverlay;
26232
+ BackgroundView.Layout = BackgroundLayout;
26256
26233
 
26257
26234
  /**
26258
26235
  * Background Component with compound pattern
@@ -26306,6 +26283,7 @@
26306
26283
  })));
26307
26284
  BackgroundComponent.displayName = 'Background';
26308
26285
  var Background = /*#__PURE__*/Object.assign(BackgroundComponent, {
26286
+ Layout: BackgroundView.Layout,
26309
26287
  Aurora: BackgroundView.Aurora,
26310
26288
  Meteors: BackgroundView.Meteors,
26311
26289
  Wall: BackgroundView.Wall,
@@ -26405,7 +26383,7 @@
26405
26383
  exports.HelpIcon = HelpIcon;
26406
26384
  exports.HomeIcon = HomeIcon;
26407
26385
  exports.HoverCard = HoverCard;
26408
- exports.Icon = Icon$1;
26386
+ exports.Icon = Icon;
26409
26387
  exports.ImageIcon = ImageIcon;
26410
26388
  exports.InfoIcon = InfoIcon;
26411
26389
  exports.InstagramIcon = InstagramIcon;