@app-studio/web 0.8.54 → 0.8.57

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.
@@ -4,7 +4,7 @@ export declare type FileProps = {
4
4
  src: string;
5
5
  color?: string;
6
6
  } & ViewProps;
7
- export declare const FileSVG: ({ src, color, ...props }: FileProps) => React.JSX.Element;
7
+ export declare const FileSVG: ({ src, color, themeMode: elementMode, ...props }: FileProps) => React.JSX.Element;
8
8
  export declare const FileImage: ({ path, ...props }: {
9
9
  path: string;
10
10
  } & ImageProps) => React.JSX.Element;
@@ -8,6 +8,7 @@ export interface IconProps extends Omit<ViewProps, 'size'> {
8
8
  orientation?: 'left' | 'right' | 'up' | 'down';
9
9
  }
10
10
  export declare const ChevronIcon: React.FC<IconProps>;
11
+ export declare const TwitchIcon: React.FC<IconProps>;
11
12
  export declare const CloseIcon: React.FC<IconProps>;
12
13
  export declare const InstagramIcon: React.FC<IconProps>;
13
14
  export declare const YoutubeIcon: React.FC<IconProps>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ModalLayoutProps } from './Modal.props';
3
- export declare const ModalLayout: ({ modals: availableModals }: ModalLayoutProps) => React.JSX.Element | null;
3
+ export declare const ModalLayout: ({ modals: availableModals, onShow, onHide, }: ModalLayoutProps) => React.JSX.Element | null;
@@ -126,6 +126,8 @@ export interface ModalLayoutProps {
126
126
  modals: {
127
127
  [x: string]: React.FC<any>;
128
128
  };
129
+ onShow?: (name: string, props?: any) => void;
130
+ onHide?: (name?: string, props?: any) => void;
129
131
  }
130
132
  export interface ContainerProps extends Omit<ViewProps, 'size'> {
131
133
  /**
@@ -9,6 +9,10 @@ export interface ModalState {
9
9
  modals: ModalItem[];
10
10
  show: (name: string, modalProps?: any, overlayProps?: any) => void;
11
11
  hide: (name?: string) => void;
12
+ onShow: (name: string, props?: any) => void;
13
+ onHide: (name?: string) => void;
14
+ setOnShow: (onShow: (name: string, props?: any) => void) => void;
15
+ setOnHide: (onHide: (name?: string) => void) => void;
12
16
  }
13
17
  export declare const useModalStore: any;
14
18
  export declare const showModal: (name: string, modalProps?: any, overlayProps?: any) => void;