@app-studio/web 0.9.70 → 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.
@@ -2,7 +2,7 @@ import { ViewProps } from 'app-studio';
2
2
  /**
3
3
  * Highlight style options for the Title component
4
4
  */
5
- export declare type HighlightStyle = 'underline' | 'background' | 'gradient' | 'outline' | 'glow';
5
+ export declare type HighlightStyle = 'underline' | 'background' | 'gradient' | 'outline' | 'glow' | 'default';
6
6
  /**
7
7
  * Title size options
8
8
  */
@@ -39,7 +39,6 @@ export * from './Table/Table';
39
39
  export * from './Tabs/Tabs';
40
40
  export * from './Title/Title';
41
41
  export * from './Icon/Icon';
42
- export * as Icon from './Icon/Icon';
43
42
  export * from './Toggle/Toggle';
44
43
  export * from './ToggleGroup/ToggleGroup';
45
44
  export * from './DragAndDrop/DragAndDrop';
@@ -527,9 +527,9 @@ var createIcon = function createIcon(name, defaultProps) {
527
527
  if (defaultProps === void 0) {
528
528
  defaultProps = {};
529
529
  }
530
- var IconComponent = props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({
530
+ var IconComponent = props => (/*#__PURE__*/React__default.createElement(Icon, Object.assign({
531
531
  name: name
532
- }, defaultProps, props));
532
+ }, defaultProps, props)));
533
533
  IconComponent.displayName = name + "Icon";
534
534
  return IconComponent;
535
535
  };
@@ -708,9 +708,9 @@ var UploadIcon = /*#__PURE__*/createIcon('upload', {
708
708
  });
709
709
  // Restored icons
710
710
  var CheckIcon = TickIcon;
711
- var BackIcon = props => /*#__PURE__*/React__default.createElement(ChevronIcon, Object.assign({
711
+ var BackIcon = props => (/*#__PURE__*/React__default.createElement(ChevronIcon, Object.assign({
712
712
  orientation: "left"
713
- }, props));
713
+ }, props)));
714
714
  var ZoomOutIcon = /*#__PURE__*/createIcon('zoom-out', {
715
715
  filled: false
716
716
  });
@@ -815,106 +815,6 @@ var DragHandleLinesIcon = /*#__PURE__*/createIcon('grip-horizontal', {
815
815
  filled: false
816
816
  });
817
817
 
818
- var Icon$1 = {
819
- __proto__: null,
820
- Icon: Icon,
821
- UserIcon: UserIcon,
822
- HelpIcon: HelpIcon,
823
- FolderIcon: FolderIcon,
824
- ChevronIcon: ChevronIcon,
825
- DragHandleIcon: DragHandleIcon,
826
- FileIcon: FileIcon,
827
- VideoIcon: VideoIcon,
828
- ImageIcon: ImageIcon,
829
- AudioIcon: AudioIcon,
830
- TwitterIcon: TwitterIcon,
831
- XIcon: XIcon,
832
- TwitchIcon: TwitchIcon,
833
- CloseIcon: CloseIcon,
834
- InstagramIcon: InstagramIcon,
835
- YoutubeIcon: YoutubeIcon,
836
- FacebookIcon: FacebookIcon,
837
- LinkedinIcon: LinkedinIcon,
838
- ThreadsIcon: ThreadsIcon,
839
- MinusIcon: MinusIcon,
840
- InfoIcon: InfoIcon,
841
- PlayIcon: PlayIcon,
842
- PauseIcon: PauseIcon,
843
- HeartIcon: HeartIcon,
844
- StarIcon: StarIcon,
845
- SaveIcon: SaveIcon,
846
- WarningIcon: WarningIcon,
847
- BatteryIcon: BatteryIcon,
848
- BookmarkIcon: BookmarkIcon,
849
- CloudIcon: CloudIcon,
850
- CopyIcon: CopyIcon,
851
- DustBinIcon: DustBinIcon,
852
- DeleteIcon: DeleteIcon,
853
- EditIcon: EditIcon,
854
- MicrophoneIcon: MicrophoneIcon,
855
- StopIcon: StopIcon,
856
- SendIcon: SendIcon,
857
- LoadingSpinnerIcon: LoadingSpinnerIcon,
858
- AttachmentIcon: AttachmentIcon,
859
- SearchIcon: SearchIcon,
860
- HomeIcon: HomeIcon,
861
- SettingsIcon: SettingsIcon,
862
- DownloadIcon: DownloadIcon,
863
- ShareIcon: ShareIcon,
864
- TickIcon: TickIcon,
865
- PlusIcon: PlusIcon,
866
- CloseEyeIcon: CloseEyeIcon,
867
- OpenEyeIcon: OpenEyeIcon,
868
- LockIcon: LockIcon,
869
- ProfileIcon: ProfileIcon,
870
- ExternalLinkIcon: ExternalLinkIcon,
871
- SuccessIcon: SuccessIcon,
872
- ErrorIcon: ErrorIcon,
873
- NotificationIcon: NotificationIcon,
874
- DocumentIcon: DocumentIcon,
875
- ChartIcon: ChartIcon,
876
- MoonIcon: MoonIcon,
877
- PanelIcon: PanelIcon,
878
- UploadIcon: UploadIcon,
879
- CheckIcon: CheckIcon,
880
- BackIcon: BackIcon,
881
- ZoomOutIcon: ZoomOutIcon,
882
- TextIcon: TextIcon,
883
- ShapeIcon: ShapeIcon,
884
- RotateIcon: RotateIcon,
885
- GiftIcon: GiftIcon,
886
- ShieldIcon: ShieldIcon,
887
- LogoutIcon: LogoutIcon,
888
- PowerOffIcon: PowerOffIcon,
889
- LinkIcon: LinkIcon,
890
- LayoutIcon: LayoutIcon,
891
- ZapIcon: ZapIcon,
892
- CreditCardIcon: CreditCardIcon,
893
- MoreIcon: MoreIcon,
894
- TrashIcon: TrashIcon,
895
- FilterIcon: FilterIcon,
896
- CalendarIcon: CalendarIcon,
897
- ClockIcon: ClockIcon,
898
- MapPinIcon: MapPinIcon,
899
- MenuIcon: MenuIcon,
900
- RefreshIcon: RefreshIcon,
901
- PrintIcon: PrintIcon,
902
- MagicWandIcon: MagicWandIcon,
903
- UnLikeIcon: UnLikeIcon,
904
- LikeIcon: LikeIcon,
905
- CameraIcon: CameraIcon,
906
- BluetoothIcon: BluetoothIcon,
907
- UnlockIcon: UnlockIcon,
908
- WifiIcon: WifiIcon,
909
- BoldArrowIcon: BoldArrowIcon,
910
- ArrowIcon: ArrowIcon,
911
- SpinnerIcon: SpinnerIcon,
912
- SliderIcon: SliderIcon,
913
- CropIcon: CropIcon,
914
- ZoomInIcon: ZoomInIcon,
915
- DragHandleLinesIcon: DragHandleLinesIcon
916
- };
917
-
918
818
  /**
919
819
  * Alert Styles
920
820
  *
@@ -17273,7 +17173,8 @@ var HighlightStyles = {
17273
17173
  glow: color => ({
17274
17174
  color: color,
17275
17175
  textShadow: "0 0 10px " + color + "80, 0 0 20px " + color + "40, 0 0 30px " + color + "20"
17276
- })
17176
+ }),
17177
+ default: () => ({})
17277
17178
  };
17278
17179
 
17279
17180
  var _excluded$Z = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "textComponent", "as"];
@@ -17545,7 +17446,7 @@ var TitleView = _ref => {
17545
17446
  var {
17546
17447
  children,
17547
17448
  highlightText,
17548
- highlightStyle = 'background',
17449
+ highlightStyle = 'default',
17549
17450
  highlightColor = 'theme.primary',
17550
17451
  highlightSecondaryColor,
17551
17452
  size = 'lg',
@@ -17642,9 +17543,9 @@ var TitleView = _ref => {
17642
17543
  // Common container props
17643
17544
  var containerProps = Object.assign({
17644
17545
  ref,
17645
- as: 'h1',
17646
17546
  animate: inView ? controlledAnimate : undefined
17647
17547
  }, !textComponent && {
17548
+ as: 'h1',
17648
17549
  fontSize: useResponsive ? undefined : fontSize,
17649
17550
  fontWeight: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.fontWeight : 'bold',
17650
17551
  letterSpacing: useResponsive ? responsiveStyles == null ? void 0 : responsiveStyles.letterSpacing : undefined,
@@ -17700,25 +17601,27 @@ var TitleView = _ref => {
17700
17601
  lastIndex = match.index + match[0].length;
17701
17602
  }
17702
17603
  if (lastIndex < text.length) parts.push(text.substring(lastIndex));
17703
- 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({
17604
+ return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
17605
+ fontSize: useResponsive ? undefined : fontSize
17606
+ }, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? part : (/*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17704
17607
  key: "highlight-" + idx,
17705
17608
  as: "span",
17706
17609
  display: "inline",
17707
- animate: inView ? controlledHighlightAnimate : undefined,
17708
- fontSize: useResponsive ? undefined : fontSize
17610
+ animate: inView ? controlledHighlightAnimate : undefined
17709
17611
  }, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(part.text)))));
17710
17612
  }
17711
17613
  // Case 2: Has highlight style but no highlight target - apply style to entire title
17712
17614
  if (highlightStyle && !activeHighlightTarget) {
17713
- return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17615
+ return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
17616
+ fontSize: fontSize
17617
+ }, containerProps, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
17714
17618
  as: "span",
17715
- fontSize: fontSize,
17716
17619
  display: "inline",
17717
17620
  animate: inView ? controlledHighlightAnimate : undefined
17718
17621
  }, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
17719
17622
  }
17720
17623
  // Case 3: Default - no highlighting
17721
- return /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), text);
17624
+ return /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({}, containerProps, props, views == null ? void 0 : views.container), text);
17722
17625
  };
17723
17626
 
17724
17627
  /**
@@ -26519,7 +26422,7 @@ exports.HeartIcon = HeartIcon;
26519
26422
  exports.HelpIcon = HelpIcon;
26520
26423
  exports.HomeIcon = HomeIcon;
26521
26424
  exports.HoverCard = HoverCard;
26522
- exports.Icon = Icon$1;
26425
+ exports.Icon = Icon;
26523
26426
  exports.ImageIcon = ImageIcon;
26524
26427
  exports.InfoIcon = InfoIcon;
26525
26428
  exports.InstagramIcon = InstagramIcon;