@app-studio/web 0.8.65 → 0.8.67

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.
Files changed (90) hide show
  1. package/dist/components/Alert/Alert/Alert.props.d.ts +1 -1
  2. package/dist/components/Alert/Alert/Alert.type.d.ts +5 -5
  3. package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
  4. package/dist/components/Alert/Alert.d.ts +1 -1
  5. package/dist/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +5 -0
  6. package/dist/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
  7. package/dist/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
  8. package/dist/components/Avatar/Avatar/Avatar.type.d.ts +4 -4
  9. package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
  10. package/dist/components/Avatar/Avatar.d.ts +1 -1
  11. package/dist/components/Badge/Badge/Badge.props.d.ts +1 -2
  12. package/dist/components/Badge/Badge/Badge.style.d.ts +3 -2
  13. package/dist/components/Badge/Badge/Badge.type.d.ts +3 -3
  14. package/dist/components/Badge/Badge.d.ts +1 -1
  15. package/dist/components/Badge/examples/index.d.ts +0 -1
  16. package/dist/components/Button/Button/Button.props.d.ts +2 -3
  17. package/dist/components/Button/Button/Button.style.d.ts +3 -3
  18. package/dist/components/Button/Button/Button.view.d.ts +9 -1
  19. package/dist/components/Button/examples/index.d.ts +0 -1
  20. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +10 -0
  21. package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -8
  22. package/dist/components/File/File.d.ts +7 -3
  23. package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +4 -4
  24. package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +2 -2
  25. package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
  26. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +8 -10
  27. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -2
  28. package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +3 -4
  29. package/dist/components/Form/Password/Password/Password.state.d.ts +1 -2
  30. package/dist/components/Form/Select/Select/Select.props.d.ts +5 -7
  31. package/dist/components/Form/Select/Select/Select.style.d.ts +2 -2
  32. package/dist/components/Form/Switch/Switch/Switch.props.d.ts +4 -5
  33. package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -3
  34. package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +3 -5
  35. package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +6 -6
  36. package/dist/components/Form/TextField/TextField/TextField.props.d.ts +4 -5
  37. package/dist/components/Icon/Icon.d.ts +1 -3
  38. package/dist/components/Layout/Center/Center.d.ts +2 -2
  39. package/dist/components/Layout/Center/Center.props.d.ts +1 -1
  40. package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
  41. package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
  42. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +3 -7
  43. package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +2 -2
  44. package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
  45. package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
  46. package/dist/components/Layout/Vertical/Vertical.d.ts +2 -2
  47. package/dist/components/Layout/View/View.d.ts +1 -2
  48. package/dist/components/Layout/configs/Input.style.d.ts +3 -3
  49. package/dist/components/Layout/configs/Input.type.d.ts +5 -5
  50. package/dist/components/Link/Link/Link.props.d.ts +1 -2
  51. package/dist/components/Loader/Loader/Loader.view.d.ts +8 -1
  52. package/dist/components/Message/Message/Message.props.d.ts +3 -3
  53. package/dist/components/Message/Message/Message.style.d.ts +2 -2
  54. package/dist/components/Message/Message/Message.type.d.ts +9 -8
  55. package/dist/components/Message/Message/Message.view.d.ts +1 -1
  56. package/dist/components/Modal/Modal/Modal.props.d.ts +19 -6
  57. package/dist/components/Modal/Modal/Modal.style.d.ts +4 -4
  58. package/dist/components/Modal/Modal/Modal.view.d.ts +16 -2
  59. package/dist/components/Table/Table/Table.context.d.ts +17 -14
  60. package/dist/components/Table/Table/Table.props.d.ts +2 -2
  61. package/dist/components/Table/Table/Table.view.d.ts +9 -8
  62. package/dist/components/Table/Table.d.ts +1 -1
  63. package/dist/components/Tabs/Tabs/Tabs.props.d.ts +2 -2
  64. package/dist/components/Text/Text/Text.props.d.ts +2 -2
  65. package/dist/components/Text/Text/Text.view.d.ts +7 -1
  66. package/dist/components/Text/Text.d.ts +1 -2
  67. package/dist/components/Toggle/Toggle/Toggle.props.d.ts +1 -2
  68. package/dist/components/Toggle/Toggle/Toggle.view.d.ts +7 -1
  69. package/dist/components/Toggle/Toggle.d.ts +1 -1
  70. package/dist/components/Toggle/examples/index.d.ts +0 -1
  71. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +6 -3
  72. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
  73. package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
  74. package/dist/components/ToggleGroup/examples/index.d.ts +0 -1
  75. package/dist/components/Uploader/{Uploader.props.d.ts → Uploader/Uploader.props.d.ts} +30 -10
  76. package/dist/components/Uploader/Uploader/Uploader.state.d.ts +13 -0
  77. package/dist/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
  78. package/dist/components/Uploader/Uploader.d.ts +1 -12
  79. package/dist/components/index.d.ts +1 -1
  80. package/dist/web.cjs.development.js +602 -588
  81. package/dist/web.cjs.development.js.map +1 -1
  82. package/dist/web.cjs.production.min.js +1 -1
  83. package/dist/web.cjs.production.min.js.map +1 -1
  84. package/dist/web.esm.js +604 -588
  85. package/dist/web.esm.js.map +1 -1
  86. package/dist/web.umd.development.js +605 -592
  87. package/dist/web.umd.development.js.map +1 -1
  88. package/dist/web.umd.production.min.js +1 -1
  89. package/dist/web.umd.production.min.js.map +1 -1
  90. package/package.json +6 -4
@@ -21,7 +21,7 @@ export interface LabelProps extends Omit<ViewProps, 'size'> {
21
21
  /**
22
22
  * CSS styles applied to the Label
23
23
  */
24
- styles?: {
25
- label: any;
24
+ views?: {
25
+ label?: ViewProps;
26
26
  };
27
27
  }
@@ -21,5 +21,5 @@ export interface FieldProps extends Omit<ViewProps, 'size'> {
21
21
  /**
22
22
  * CSS styles applied to the field (default: {}).
23
23
  */
24
- styles?: TextFieldStyles;
24
+ views?: TextFieldStyles;
25
25
  }
@@ -13,5 +13,5 @@ export interface HelperTextProps extends ViewProps {
13
13
  /**
14
14
  * CSS styles applied to the HelperText.
15
15
  */
16
- styles?: TextFieldStyles;
16
+ views?: TextFieldStyles;
17
17
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { VerticalProps } from './Vertical.props';
3
- export declare const VerticalBase: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps, string | number> & React.RefAttributes<HTMLElement>>;
4
- export declare const Vertical: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps>;
3
+ export declare const VerticalBase: React.ForwardRefExoticComponent<Pick<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps, string | number> & React.RefAttributes<HTMLElement>>;
4
+ export declare const Vertical: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & import("app-studio").ViewProps & VerticalProps>;
@@ -5,5 +5,4 @@ export declare const Bottom: (props: ViewProps) => React.JSX.Element;
5
5
  export declare const Left: (props: ViewProps) => React.JSX.Element;
6
6
  export declare const Right: (props: ViewProps) => React.JSX.Element;
7
7
  export declare const Inline: (props: ViewProps) => React.JSX.Element;
8
- export type { ViewProps };
9
- export declare const View: React.ForwardRefExoticComponent<import("app-studio").ElementProps & React.RefAttributes<HTMLElement> & ViewProps>;
8
+ export declare const View: React.ForwardRefExoticComponent<Pick<import("app-studio").ElementProps, string | number> & React.RefAttributes<HTMLElement> & ViewProps>;
@@ -1,8 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  import { Shape, Size, Variant } from './Input.type';
3
- export declare const Shapes: Record<Shape, CSSProperties>;
3
+ export declare const Shapes: Record<Shape, ViewProps>;
4
4
  export declare const LabelSizes: Record<Size, number>;
5
- export declare const InputVariants: Record<Variant, CSSProperties>;
5
+ export declare const InputVariants: Record<Variant, ViewProps>;
6
6
  export declare const PadddingWithLabel: {
7
7
  paddingTop: number;
8
8
  paddingBottom: number;
@@ -1,12 +1,12 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  export declare type Variant = 'outline' | 'default' | 'none';
3
3
  export declare type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
4
4
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type TextFieldStyles = {
6
- box?: CSSProperties;
7
- text?: CSSProperties;
8
- label?: CSSProperties;
9
- helperText?: CSSProperties;
6
+ box?: ViewProps;
7
+ text?: ViewProps;
8
+ label?: ViewProps;
9
+ helperText?: ViewProps;
10
10
  };
11
11
  export declare type Wrap = 'wrap' | 'nowrap' | 'wrap-reverse';
12
12
  export declare type Justify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
@@ -6,9 +6,8 @@ export interface LinkProps extends Omit<ViewProps, 'size'> {
6
6
  underline?: TextDecorationStyle;
7
7
  isExternal?: boolean;
8
8
  iconSize?: Size;
9
- colorScheme?: string;
10
9
  to: string;
11
- styles?: Styles;
10
+ views?: Styles;
12
11
  }
13
12
  export interface LinkViewProps extends LinkProps {
14
13
  isHovered: boolean;
@@ -1,4 +1,11 @@
1
1
  import React from 'react';
2
+ import { ViewProps } from 'app-studio';
2
3
  import { LoaderProps } from '../Loader/Loader.props';
3
- declare const LoaderView: React.FC<LoaderProps>;
4
+ interface Props extends LoaderProps {
5
+ views?: {
6
+ container?: ViewProps;
7
+ text?: ViewProps;
8
+ };
9
+ }
10
+ declare const LoaderView: React.FC<Props>;
4
11
  export default LoaderView;
@@ -9,7 +9,7 @@ export interface MessageLayoutProps {
9
9
  }
10
10
  export interface ShowMessageProps {
11
11
  isClosable?: boolean;
12
- styles?: MessageViewStyles;
12
+ views?: MessageViewStyles;
13
13
  action?: Function;
14
14
  actionText?: string;
15
15
  showIcon?: boolean;
@@ -29,11 +29,11 @@ export interface MessageState {
29
29
  title: string;
30
30
  subtitle: string;
31
31
  isClosable?: boolean;
32
- styles?: MessageViewStyles;
32
+ views?: MessageViewStyles;
33
33
  action?: Function;
34
34
  actionText?: string;
35
35
  showIcon?: boolean;
36
36
  timeout?: number;
37
- show: (variant: MessageType, title?: string, subtitle?: string, isClosable?: boolean, styles?: MessageViewStyles, action?: Function, actionText?: string, showIcon?: boolean, timeout?: number) => void;
37
+ show: (variant: MessageType, title?: string, subtitle?: string, isClosable?: boolean, views?: MessageViewStyles, action?: Function, actionText?: string, showIcon?: boolean, timeout?: number) => void;
38
38
  hide: () => void;
39
39
  }
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
1
+ import { ViewProps } from 'app-studio';
2
2
  import { MessageType, Shape, Size } from './Message.type';
3
- export declare const ContainerShapes: Record<Shape, CSSProperties>;
3
+ export declare const ContainerShapes: Record<Shape, ViewProps>;
4
4
  export declare const HeaderIconSizes: Record<Size, number>;
5
5
  export declare const Themes: Record<MessageType, any>;
@@ -1,17 +1,18 @@
1
+ import { ViewProps } from 'app-studio';
1
2
  export declare type Position = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
2
3
  export declare type Shape = 'sharp' | 'rounded';
3
4
  export declare type CloseButtonPosition = 'left' | 'right' | 'none';
4
5
  export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
6
  export declare type MessageType = 'info' | 'warning' | 'error' | 'success';
6
7
  export declare type MessageViewStyles = {
7
- container?: any;
8
- title?: any;
9
- subtitle?: any;
10
- icon?: any;
11
- actionText?: any;
8
+ container?: ViewProps;
9
+ title?: ViewProps;
10
+ subtitle?: ViewProps;
11
+ icon?: ViewProps;
12
+ actionText?: ViewProps;
12
13
  closingIcon?: {
13
- container?: any;
14
- icon?: any;
14
+ container?: ViewProps;
15
+ icon?: ViewProps;
15
16
  };
16
17
  };
17
18
  export declare type Theme = {
@@ -39,7 +40,7 @@ export declare type ThemesType = {
39
40
  };
40
41
  export declare type ShowMessageType = {
41
42
  isClosable?: boolean;
42
- styles?: MessageViewStyles;
43
+ views?: MessageViewStyles;
43
44
  action?: Function;
44
45
  actionText?: string;
45
46
  showIcon?: boolean;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { MessageProps } from './Message.props';
3
- export declare const MessageView: ({ variant, hide, title, subtitle, theme, action, actionText, showIcon, isClosable, timeout, styles, }: MessageProps) => React.JSX.Element;
3
+ export declare const MessageView: ({ variant, hide, title, subtitle, theme, action, actionText, showIcon, isClosable, timeout, views, }: MessageProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React from 'react';
2
2
  import { Elevation } from '../../../utils/elevation';
3
3
  import { Shadow, ViewProps } from 'app-studio';
4
4
  import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
@@ -46,13 +46,13 @@ export interface ModalProps extends Omit<ViewProps, 'size'> {
46
46
  /**
47
47
  * Applies a shadow effect to the button.
48
48
  */
49
- shadow?: Shadow | Elevation | CSSProperties;
49
+ shadow?: Shadow | Elevation | ViewProps;
50
50
  }
51
51
  export interface ModalType extends React.FunctionComponent<ModalProps> {
52
52
  /**
53
53
  * The overlay component of the modal.
54
54
  */
55
- Overlay: React.FC<OverlayProps>;
55
+ Overlay?: React.FC<OverlayProps>;
56
56
  /**
57
57
  * The container component of the modal.
58
58
  */
@@ -74,7 +74,7 @@ export interface ModalType extends React.FunctionComponent<ModalProps> {
74
74
  */
75
75
  Layout: React.FC<ModalLayoutProps>;
76
76
  }
77
- export interface OverlayProps extends Omit<ViewProps, 'size'> {
77
+ export interface OverlayProps extends Omit<ViewProps, 'position' | 'isOpen'> {
78
78
  /**
79
79
  * The content of the Overlay
80
80
  */
@@ -101,6 +101,10 @@ export interface OverlayProps extends Omit<ViewProps, 'size'> {
101
101
  onClose: () => void;
102
102
  }
103
103
  export interface HeaderProps extends Omit<ViewProps, 'size'> {
104
+ views?: {
105
+ container?: ViewProps;
106
+ header?: ViewProps;
107
+ };
104
108
  /**
105
109
  * The content of the header
106
110
  */
@@ -130,6 +134,9 @@ export interface ModalLayoutProps {
130
134
  onHide?: (name?: string, props?: any) => void;
131
135
  }
132
136
  export interface ContainerProps extends Omit<ViewProps, 'size'> {
137
+ views?: {
138
+ container?: ViewProps;
139
+ };
133
140
  /**
134
141
  * The content of the modal container
135
142
  */
@@ -145,9 +152,15 @@ export interface ContainerProps extends Omit<ViewProps, 'size'> {
145
152
  /**
146
153
  * Set a shadow effect on the button.
147
154
  */
148
- shadow?: Shadow | Elevation | CSSProperties;
155
+ shadow?: Shadow | Elevation | ViewProps;
149
156
  }
150
- export interface BodyProps extends Omit<ViewProps, 'size'> {
157
+ export interface BodyProps extends ViewProps {
158
+ views?: {
159
+ view?: ViewProps;
160
+ };
151
161
  }
152
162
  export interface FooterProps extends ViewProps {
163
+ views?: {
164
+ container?: ViewProps;
165
+ };
153
166
  }
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
2
- import { Position, Shape, Size } from './Modal.type';
3
- export declare const ContainerShapes: Record<Shape, CSSProperties>;
4
- export declare const OverlayAlignments: Record<Position, CSSProperties>;
1
+ import { ViewProps } from 'app-studio';
2
+ import { Shape, Size } from './Modal.type';
3
+ export declare const ContainerShapes: Record<Shape, ViewProps>;
4
+ export declare const OverlayAlignments: Record<string, ViewProps>;
5
5
  export declare const HeaderIconSizes: Record<Size, number>;
@@ -1,6 +1,20 @@
1
1
  import React from 'react';
2
- import { BodyProps, ContainerProps, FooterProps, HeaderProps, OverlayProps } from '../Modal/Modal.props';
3
- export declare const ModalOverlay: React.FC<OverlayProps>;
2
+ import { ViewProps } from 'app-studio';
3
+ import { BodyProps, ContainerProps, FooterProps, HeaderProps } from '../Modal/Modal.props';
4
+ import { Position } from './Modal.type';
5
+ export interface OverlayProps {
6
+ views?: {
7
+ container?: ViewProps;
8
+ view?: ViewProps;
9
+ };
10
+ blur?: number;
11
+ isOpen?: boolean;
12
+ isClosePrevented?: boolean;
13
+ onClose?: () => void;
14
+ position?: Position;
15
+ children?: React.ReactNode;
16
+ }
17
+ export declare const ModalOverlay: React.FC<OverlayProps & any>;
4
18
  export declare const ModalContainer: React.FC<ContainerProps>;
5
19
  export declare const ModalHeader: React.FC<HeaderProps>;
6
20
  export declare const ModalBody: React.FC<BodyProps>;
@@ -1,20 +1,23 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React from 'react';
2
+ import { ViewProps } from 'app-studio';
2
3
  export declare type TableViewStyles = {
3
- table?: CSSProperties;
4
- thead?: CSSProperties;
5
- tfoot?: CSSProperties;
6
- tbody?: CSSProperties;
7
- tr?: CSSProperties;
8
- td?: CSSProperties;
9
- th?: CSSProperties;
10
- caption?: CSSProperties;
4
+ table?: ViewProps;
5
+ thead?: ViewProps;
6
+ tfoot?: ViewProps;
7
+ tbody?: ViewProps;
8
+ tr?: ViewProps;
9
+ td?: ViewProps;
10
+ th?: ViewProps;
11
+ caption?: ViewProps;
11
12
  };
13
+ interface TableContextProps {
14
+ views: TableViewStyles;
15
+ onRowClick?: Function;
16
+ }
12
17
  export declare const TableProvider: React.FC<{
13
18
  children: React.ReactNode;
14
- styles?: TableViewStyles;
19
+ views?: TableViewStyles;
15
20
  onRowClick?: Function;
16
21
  }>;
17
- export declare const useTableContext: () => {
18
- styles: TableViewStyles;
19
- onRowClick?: Function | undefined;
20
- };
22
+ export declare const useTableContext: () => TableContextProps;
23
+ export {};
@@ -5,7 +5,7 @@ export interface TableProps {
5
5
  columns: Column[];
6
6
  footer?: FooterCell[];
7
7
  caption?: React.ReactNode;
8
- styles?: TableViewStyles;
8
+ views?: TableViewStyles;
9
9
  onClick?: Function;
10
10
  }
11
11
  export interface TableViewProps extends TableProps {
@@ -19,6 +19,6 @@ export interface TableLayoutProps {
19
19
  Caption?: React.FC<any>;
20
20
  TableContainer?: React.FC<any>;
21
21
  children?: React.ReactNode;
22
- styles?: TableViewStyles;
22
+ views?: TableViewStyles;
23
23
  onClick?: Function;
24
24
  }
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
+ import { ViewProps } from 'app-studio';
2
3
  import { TableViewProps } from './Table.props';
3
- export declare const TableContainer: React.FC<any>;
4
- export declare const TableHead: React.FC<any>;
5
- export declare const TableHeadCell: React.FC<any>;
6
- export declare const TableRow: React.FC<any>;
7
- export declare const TableCell: React.FC<any>;
8
- export declare const TableBody: React.FC<any>;
9
- export declare const TableFooter: React.FC<any>;
10
- export declare const TableCaption: React.FC<any>;
4
+ export declare const TableContainer: React.FC<ViewProps>;
5
+ export declare const TableHead: React.FC<ViewProps>;
6
+ export declare const TableHeadCell: React.FC<ViewProps>;
7
+ export declare const TableRow: React.FC<ViewProps>;
8
+ export declare const TableCell: React.FC<ViewProps>;
9
+ export declare const TableBody: React.FC<ViewProps>;
10
+ export declare const TableFooter: React.FC<ViewProps>;
11
+ export declare const TableCaption: React.FC<ViewProps>;
11
12
  export declare const TableView: React.FC<TableViewProps>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TableLayoutProps } from './Table/Table.props';
3
3
  export declare const Table: {
4
- ({ children, styles, onClick }: TableLayoutProps): React.JSX.Element;
4
+ ({ children, views, onClick }: TableLayoutProps): React.JSX.Element;
5
5
  Head: React.FC<any>;
6
6
  HeadCell: React.FC<any>;
7
7
  Body: React.FC<any>;
@@ -11,7 +11,7 @@ export interface TabsProps {
11
11
  /** Optional callback function triggered when the active tab changes. Receives the newly active tab object. */
12
12
  onTabChange?: (activeTab: Tab) => void;
13
13
  /** Optional styles object to customize the appearance of the tabs container, headers, buttons, text, and content area. */
14
- styles?: TabsStyles;
14
+ views?: TabsStyles;
15
15
  /**
16
16
  * Optional custom renderer for a single tab button/header.
17
17
  * Receives the tab data, whether it's currently active, and an onClick handler to activate the tab.
@@ -36,7 +36,7 @@ export interface TabsViewProps {
36
36
  /** Callback function to handle clicking on a tab header/button. */
37
37
  handleTabClick: (tab: Tab) => void;
38
38
  /** Optional styles object. */
39
- styles?: TabsStyles;
39
+ views?: TabsStyles;
40
40
  /** Optional custom renderer for a tab button/header. */
41
41
  renderTab?: (tab: Tab, isActive: boolean, onClick: () => void) => React.ReactNode;
42
42
  /** Optional custom renderer for the content area. */
@@ -1,7 +1,7 @@
1
- import { CSSProperties } from 'react';
1
+ /// <reference types="react" />
2
2
  import type { TextProps as TextAppProps } from 'app-studio';
3
3
  import { Headings, Size, TextWeights } from './Text.type';
4
- export interface TextProps extends Omit<TextAppProps, 'children' | 'style' | 'pointerEvents'>, CSSProperties {
4
+ export interface TextProps extends Omit<TextAppProps, 'children' | 'style' | 'pointerEvents'> {
5
5
  children?: React.ReactNode;
6
6
  heading?: Headings;
7
7
  isItalic?: boolean;
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
+ import { ViewProps } from 'app-studio';
2
3
  import { TextProps } from './Text.props';
3
- declare const TextView: React.FC<TextProps>;
4
+ interface Props extends TextProps {
5
+ views?: {
6
+ container?: ViewProps;
7
+ };
8
+ }
9
+ declare const TextView: React.FC<Props>;
4
10
  export default TextView;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { TextProps } from './Text/Text.props';
3
2
  /**
4
3
  * The Text component is a simple component that renders a text string or paragraphs as a DOM element in the UI. It is a <p> tag by default.
5
4
  */
6
- export declare const Text: React.FC<TextProps>;
5
+ export declare const Text: React.FC<any>;
@@ -7,10 +7,9 @@ export interface ToggleProps extends Omit<InputProps, 'size'> {
7
7
  isDisabled?: boolean;
8
8
  children: React.ReactNode;
9
9
  variant?: Variant;
10
- colorScheme?: string;
11
10
  onToggle?: (isToggled: boolean) => void;
12
11
  }
13
- export interface ToggleViewProps extends ToggleProps {
12
+ export interface ToggleViewProps extends Omit<ToggleProps, never> {
14
13
  isHovered: boolean;
15
14
  setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
16
15
  isToggle: boolean;
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
+ import { ViewProps } from 'app-studio';
2
3
  import { ToggleViewProps } from './Toggle.props';
3
- declare const ToggleView: React.FC<ToggleViewProps>;
4
+ interface Props extends ToggleViewProps {
5
+ views?: {
6
+ container?: ViewProps;
7
+ };
8
+ }
9
+ declare const ToggleView: React.FC<Props>;
4
10
  export default ToggleView;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ToggleProps } from './Toggle/Toggle.props';
3
- export declare const Toggle: ({ children, shape, colorScheme, variant, isDisabled, isToggled, onToggle, ...props }: ToggleProps) => React.JSX.Element;
3
+ export declare const Toggle: ({ children, shape, variant, isDisabled, isToggled, onToggle, ...props }: ToggleProps) => React.JSX.Element;
@@ -1,4 +1,3 @@
1
- export * from './colorScheme';
2
1
  export * from './default';
3
2
  export * from './isDisabled';
4
3
  export * from './isToggled';
@@ -1,16 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  export interface ToggleGroupProps {
3
3
  }
4
- import { InputProps } from 'app-studio';
4
+ import { InputProps, ViewProps } from 'app-studio';
5
5
  import { Shape, ToggleItem, Variant } from './ToggleGroup.type';
6
6
  export interface ToggleGroupProps extends Omit<InputProps, 'size'> {
7
7
  shape?: Shape;
8
8
  items: ToggleItem[];
9
9
  variant?: Variant;
10
- colorScheme?: string;
11
10
  onToggleChange?: (activeIds: string[]) => void;
12
11
  }
13
- export interface ToggleGroupViewProps extends ToggleGroupProps {
12
+ export interface ToggleGroupViewProps extends Omit<ToggleGroupProps, ''> {
14
13
  activeToggles: string[];
15
14
  setActiveToggles: React.Dispatch<React.SetStateAction<string[]>>;
15
+ views?: {
16
+ container?: ViewProps;
17
+ toggle?: ViewProps;
18
+ };
16
19
  }
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ToggleGroupViewProps } from './ToggleGroup.props';
3
- export declare const ToggleGroupView: ({ items, onToggleChange, activeToggles, setActiveToggles, shape, variant, colorScheme, }: ToggleGroupViewProps) => React.JSX.Element;
3
+ export declare const ToggleGroupView: ({ items, onToggleChange, activeToggles, setActiveToggles, shape, variant, views, }: ToggleGroupViewProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ToggleGroupProps } from './ToggleGroup/ToggleGroup.props';
3
- export declare const ToggleGroup: ({ items, shape, colorScheme, variant, onToggleChange, }: ToggleGroupProps) => React.JSX.Element;
3
+ export declare const ToggleGroup: ({ items, shape, variant, onToggleChange, }: ToggleGroupProps) => React.JSX.Element;
@@ -1,4 +1,3 @@
1
- export * from './colorScheme';
2
1
  export * from './default';
3
2
  export * from './items';
4
3
  export * from './onToggleChange';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ImageProps, TextProps, ViewProps } from 'app-studio';
3
- import { IconProps } from '..';
3
+ import { IconProps } from '../..';
4
4
  export interface UseUploadProps {
5
5
  accept?: string;
6
6
  maxSize?: number;
@@ -9,15 +9,13 @@ export interface UseUploadProps {
9
9
  onError?: (error: string) => void;
10
10
  thumbnail?: string;
11
11
  }
12
- export interface UploadProps {
13
- isLoading?: boolean;
14
- icon?: React.ReactNode;
15
- accept?: string;
16
- text?: string;
17
- maxSize?: number;
18
- progress?: number;
19
- onFileSelect?: (file: File) => void;
20
- validateFile?: (file: File) => string | null;
12
+ export interface UploadStateProps {
13
+ handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
14
+ selectedFile: File | null;
15
+ fileInputRef: React.RefObject<HTMLInputElement>;
16
+ videoRef: React.RefObject<HTMLVideoElement>;
17
+ }
18
+ export interface UploadViewProps {
21
19
  onError?: (error: string) => void;
22
20
  containerProps?: ViewProps;
23
21
  errorMessageProps?: TextProps;
@@ -34,4 +32,26 @@ export interface UploadProps {
34
32
  renderError?: (props: any) => React.ReactNode;
35
33
  renderFile?: (props: any) => React.ReactNode;
36
34
  renderProgress?: (props: any) => React.ReactNode;
35
+ previewUrl?: string | null;
36
+ thumbnailUrl?: string | null;
37
+ errorMessage?: string | null;
38
+ isLoading?: boolean;
39
+ icon?: React.ReactNode;
40
+ accept?: string;
41
+ text?: string;
42
+ maxSize?: number;
43
+ progress?: number;
44
+ fileType?: 'video' | 'image' | 'file';
45
+ handleClick?: () => void;
46
+ onFileSelect?: (file: File) => void;
47
+ validateFile?: (file: File) => string | null;
48
+ views?: {
49
+ container?: ViewProps;
50
+ view?: ViewProps;
51
+ image?: ImageProps;
52
+ horizontal?: ViewProps;
53
+ text?: ViewProps;
54
+ };
55
+ }
56
+ export interface UploadProps extends UseUploadProps, UploadViewProps {
37
57
  }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { UseUploadProps } from '../Uploader/Uploader.props';
3
+ export declare const generateThumbnail: (videoFile: File, setThumbnailUrl: (url: string) => void) => void;
4
+ export declare const useUpload: ({ maxSize, onFileSelect, validateFile, thumbnail, onError, }: UseUploadProps) => {
5
+ previewUrl: string | null;
6
+ thumbnailUrl: string | null;
7
+ errorMessage: string | null;
8
+ fileInputRef: React.RefObject<HTMLInputElement>;
9
+ videoRef: React.RefObject<HTMLVideoElement>;
10
+ selectedFile: File | null;
11
+ handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
12
+ handleClick: () => void | undefined;
13
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { UploadStateProps, UploadViewProps } from './Uploader.props';
3
+ export declare const UploadView: React.FC<UploadViewProps & UploadStateProps>;
@@ -1,14 +1,3 @@
1
1
  import React from 'react';
2
- import { UploadProps, UseUploadProps } from './Uploader.props';
3
- export declare const generateThumbnail: (videoFile: File, setThumbnailUrl: (url: string) => void) => void;
4
- export declare const useUpload: ({ maxSize, onFileSelect, validateFile, thumbnail, onError, }: UseUploadProps) => {
5
- previewUrl: string | null;
6
- thumbnailUrl: string | null;
7
- errorMessage: string | null;
8
- fileInputRef: React.RefObject<HTMLInputElement>;
9
- videoRef: React.RefObject<HTMLVideoElement>;
10
- selectedFile: File | null;
11
- handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
12
- handleClick: () => void | undefined;
13
- };
2
+ import { UploadProps } from './Uploader/Uploader.props';
14
3
  export declare const Uploader: React.FC<UploadProps>;
@@ -54,7 +54,7 @@ export * from './Link/Link/Link.props';
54
54
  export * from './Loader/Loader/Loader.props';
55
55
  export * from './Message/Message/Message.props';
56
56
  export * from './Modal/Modal/Modal.props';
57
- export * from './Uploader/Uploader.props';
57
+ export * from './Uploader/Uploader/Uploader.props';
58
58
  export * from './Table/Table/Table.props';
59
59
  export * from './Tabs/Tabs/Tabs.props';
60
60
  export * from './Text/Text/Text.props';