@app-studio/web 0.3.69 → 0.6.0

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 (95) hide show
  1. package/dist/bot/Bot.d.ts +4 -3
  2. package/dist/bot/DocuCode.d.ts +7 -2
  3. package/dist/bot/FileHandler.d.ts +5 -0
  4. package/dist/bot/OpenAIConnector.d.ts +2 -0
  5. package/dist/bot/prompt/1-project.d.ts +1 -1
  6. package/dist/bot/prompt/2-response.d.ts +1 -1
  7. package/dist/bot/prompt/3-comment.d.ts +1 -1
  8. package/dist/components/Button/Button/Button.props.d.ts +0 -60
  9. package/dist/components/Button/Button.d.ts +0 -3
  10. package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -71
  11. package/dist/components/Form/Checkbox/examples/index.d.ts +1 -0
  12. package/dist/components/Form/Checkbox/examples/infoText.d.ts +2 -0
  13. package/dist/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +10 -0
  14. package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +36 -0
  15. package/dist/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +2 -0
  16. package/dist/components/Form/ComboBox/ComboBox/ComboBox.state.d.ts +2 -0
  17. package/dist/components/Form/ComboBox/ComboBox/ComboBox.type.d.ts +12 -0
  18. package/dist/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +4 -0
  19. package/dist/components/Form/ComboBox/ComboBox.d.ts +3 -0
  20. package/dist/components/Form/ComboBox/examples/default.d.ts +2 -0
  21. package/dist/components/Form/ComboBox/examples/index.d.ts +10 -0
  22. package/dist/components/Form/ComboBox/examples/label.d.ts +2 -0
  23. package/dist/components/Form/ComboBox/examples/left.d.ts +2 -0
  24. package/dist/components/Form/ComboBox/examples/onSelect.d.ts +2 -0
  25. package/dist/components/Form/ComboBox/examples/placeholder.d.ts +2 -0
  26. package/dist/components/Form/ComboBox/examples/right.d.ts +2 -0
  27. package/dist/components/Form/ComboBox/examples/searchEnabled.d.ts +2 -0
  28. package/dist/components/Form/ComboBox/examples/searchPlaceholder.d.ts +2 -0
  29. package/dist/components/Form/ComboBox/examples/showTick.d.ts +2 -0
  30. package/dist/components/Form/ComboBox/examples/styles.d.ts +2 -0
  31. package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +0 -3
  32. package/dist/components/Form/Label/Label/Label.props.d.ts +0 -24
  33. package/dist/components/Form/Select/Select/Select.props.d.ts +1 -0
  34. package/dist/components/Form/Select/Select/Select.state.d.ts +2 -0
  35. package/dist/components/Form/Select/examples/color.d.ts +2 -0
  36. package/dist/components/Form/Select/examples/index.d.ts +2 -1
  37. package/dist/components/Form/Select/examples/isScrollable.d.ts +2 -0
  38. package/dist/components/Form/TextField/examples/index.d.ts +1 -1
  39. package/dist/components/Formik/Formik.ComboBox.d.ts +6 -0
  40. package/dist/components/Formik/examples/FormikComboBox.d.ts +2 -0
  41. package/dist/components/Formik/examples/index.d.ts +1 -0
  42. package/dist/components/Formik/index.d.ts +1 -0
  43. package/dist/components/Layout/index.d.ts +4 -0
  44. package/dist/components/Message/Message/Message.layout.d.ts +1 -1
  45. package/dist/components/Message/Message/Message.props.d.ts +31 -107
  46. package/dist/components/Message/Message/Message.store.d.ts +2 -8
  47. package/dist/components/Message/Message/Message.style.d.ts +2 -2
  48. package/dist/components/Message/Message/Message.view.d.ts +2 -18
  49. package/dist/components/Message/examples/action.d.ts +2 -0
  50. package/dist/components/Message/examples/default.d.ts +2 -0
  51. package/dist/components/Message/examples/index.d.ts +9 -0
  52. package/dist/components/Message/examples/isClosable.d.ts +2 -0
  53. package/dist/components/Message/examples/showIcon.d.ts +2 -0
  54. package/dist/components/Message/examples/styles.d.ts +2 -0
  55. package/dist/components/Message/examples/subtitle.d.ts +2 -0
  56. package/dist/components/Message/examples/timeout.d.ts +2 -0
  57. package/dist/components/Message/examples/title.d.ts +2 -0
  58. package/dist/components/Message/examples/variant.d.ts +2 -0
  59. package/dist/components/Svg/Error.d.ts +8 -0
  60. package/dist/components/Svg/Info.d.ts +8 -0
  61. package/dist/components/Svg/Plus.d.ts +8 -0
  62. package/dist/components/Svg/Search.d.ts +8 -0
  63. package/dist/components/Svg/Success.d.ts +8 -0
  64. package/dist/components/Svg/Tick.d.ts +8 -0
  65. package/dist/components/Svg/index.d.ts +3 -0
  66. package/dist/components/Table/Table/Table.context.d.ts +16 -0
  67. package/dist/components/Table/Table/Table.props.d.ts +22 -0
  68. package/dist/components/Table/Table/Table.state.d.ts +5 -0
  69. package/dist/components/Table/Table/Table.type.d.ts +19 -0
  70. package/dist/components/Table/Table/Table.view.d.ts +11 -0
  71. package/dist/components/Table/Table.d.ts +13 -0
  72. package/dist/components/Table/examples/caption.d.ts +2 -0
  73. package/dist/components/Table/examples/data.d.ts +2 -0
  74. package/dist/components/Table/examples/default.d.ts +2 -0
  75. package/dist/components/Table/examples/footer.d.ts +2 -0
  76. package/dist/components/Table/examples/index.d.ts +5 -0
  77. package/dist/components/Table/examples/styles.d.ts +2 -0
  78. package/dist/components/index.d.ts +1 -0
  79. package/dist/pages/comboBox.page.d.ts +3 -0
  80. package/dist/pages/message.page.d.ts +2 -2
  81. package/dist/pages/table.page.d.ts +3 -0
  82. package/dist/utils/componentsPageImports.d.ts +6 -0
  83. package/dist/web.cjs.development.js +1044 -243
  84. package/dist/web.cjs.development.js.map +1 -1
  85. package/dist/web.cjs.production.min.js +1 -1
  86. package/dist/web.cjs.production.min.js.map +1 -1
  87. package/dist/web.esm.js +1039 -244
  88. package/dist/web.esm.js.map +1 -1
  89. package/package.json +7 -5
  90. package/dist/components/Form/Select/examples/Color.d.ts +0 -2
  91. package/dist/components/Message/Examples/CloseButtonMessage.d.ts +0 -2
  92. package/dist/components/Message/Examples/DefaultMessage.d.ts +0 -2
  93. package/dist/components/Message/Examples/VariantMessage.d.ts +0 -2
  94. package/dist/components/Message/Examples/index.d.ts +0 -3
  95. /package/dist/components/Form/TextField/examples/{ColorScheme.d.ts → colorScheme.d.ts} +0 -0
@@ -1,115 +1,39 @@
1
- import React, { CSSProperties } from 'react';
2
- import { Elevation } from 'src/utils/elevation';
3
- import { Shadow } from 'app-studio';
4
- import { CloseButtonPosition, Position, Shape, Size } from './Message.type';
5
- export interface MessageProps {
6
- /**
7
- * The content to be displayed inside the message.
8
- */
9
- children: React.ReactNode;
10
- /**
11
- * The color of the close button in the header.
12
- */
13
- buttonColor?: string;
14
- /**
15
- * The size of the close button in the header.
16
- */
17
- iconSize?: Size;
18
- /**
19
- * Determines whether the message should have sharp or rounded edges.
20
- */
21
- shape?: Shape;
22
- /**
23
- * If set to true, the message will occupy the full width and height of the screen.
24
- */
25
- isFullScreen?: boolean;
26
- /**
27
- * Indicates the presence of a close button and its position within the header.
28
- */
29
- buttonPosition?: CloseButtonPosition;
30
- /**
31
- * The callback function to be executed when the close button is clicked or pressed.
32
- */
33
- onClose?: () => void;
34
- /**
35
- * The degree of blurriness applied to the overlay.
36
- */
37
- blur?: number;
38
- /**
39
- * If set to true, the message will be visible.
40
- */
41
- isOpen?: boolean;
42
- /**
43
- * If set to true, the message will remain open when the overlay is clicked.
44
- */
45
- isClosePrevented?: boolean;
46
- /**
47
- * The positioning of the message container.
48
- */
49
- position?: Position;
50
- /**
51
- * Applies a shadow effect to the button.
52
- */
53
- shadow?: Shadow | Elevation | CSSProperties;
54
- /**
55
- * Additional properties.
56
- */
57
- [x: string]: any;
58
- }
59
- export interface MessageType extends React.FunctionComponent<MessageProps> {
60
- /**
61
- * The container component of the message.
62
- */
63
- Container: React.FC<ContainerProps>;
64
- /**
65
- * The body component of the message.
66
- */
67
- Body: React.FC<BodyProps>;
68
- /**
69
- * The header component of the message.
70
- */
71
- Layout: React.FC<MessageLayoutProps>;
72
- }
1
+ import { Message, MessageViewStyles, Position, ThemesType } from './Message.type';
73
2
  export interface MessageLayoutProps {
74
3
  icons?: {
75
4
  [x: string]: string;
76
5
  };
77
6
  container?: any;
78
- text?: React.JSX.Element | React.FC<any>;
79
- icon?: React.JSX.Element | React.FC<any>;
80
- theme: {
81
- [x: string]: any;
82
- };
7
+ theme?: ThemesType;
8
+ position?: Position;
9
+ }
10
+ export interface ShowMessageProps {
11
+ isClosable?: boolean;
12
+ styles?: MessageViewStyles;
13
+ action?: Function;
14
+ actionText?: string;
15
+ showIcon?: boolean;
16
+ timeout?: number;
83
17
  }
84
- export interface ContainerProps {
85
- /**
86
- * The content of the message container
87
- */
88
- children: React.ReactNode;
89
- /**
90
- * To give a sharp or rounded edges to the message
91
- */
92
- shape?: Shape;
93
- /**
94
- * If true, the message will take the full width and height
95
- */
96
- isFullScreen?: boolean;
97
- /**
98
- * Set a shadow effect on the button.
99
- */
100
- shadow?: Shadow | Elevation | CSSProperties;
101
- /**
102
- * Other properties
103
- */
104
- [x: string]: any;
18
+ export interface MessageProps extends ShowMessageProps {
19
+ subtitle?: string;
20
+ variant: Message;
21
+ show?: boolean;
22
+ hide: Function;
23
+ title: string;
24
+ theme?: ThemesType;
105
25
  }
106
- export interface BodyProps {
107
- /**
108
- * The content of the Body
109
- */
110
- children?: React.ReactNode;
111
- /**
112
- * Other properties
113
- */
114
- [x: string]: any;
26
+ export interface MessageState {
27
+ visible: boolean;
28
+ variant: Message;
29
+ title: string;
30
+ subtitle: string;
31
+ isClosable?: boolean;
32
+ styles?: MessageViewStyles;
33
+ action?: Function;
34
+ actionText?: string;
35
+ showIcon?: boolean;
36
+ timeout?: number;
37
+ show: (variant: Message, title?: string, subtitle?: string, isClosable?: boolean, styles?: MessageViewStyles, action?: Function, actionText?: string, showIcon?: boolean, timeout?: number) => void;
38
+ hide: () => void;
115
39
  }
@@ -1,10 +1,4 @@
1
- export interface MessageState {
2
- visible: boolean;
3
- variant?: string;
4
- message: string;
5
- show: (variant?: string, message?: string) => void;
6
- hide: () => void;
7
- }
1
+ import { Message, ShowMessageType } from './Message.type';
8
2
  export declare const useMessageStore: any;
9
- export declare const showMessage: (variant: string, message?: string | undefined) => void;
3
+ export declare const showMessage: (variant: Message, title?: string | undefined, subtitle?: string | undefined, props?: ShowMessageType | undefined) => void;
10
4
  export declare const hideMessage: () => void;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { Position, Shape, Size } from './Message.type';
2
+ import { Message, Shape, Size } from './Message.type';
3
3
  export declare const ContainerShapes: Record<Shape, CSSProperties>;
4
- export declare const OverlayAlignments: Record<Position, CSSProperties>;
5
4
  export declare const HeaderIconSizes: Record<Size, number>;
5
+ export declare const Themes: Record<Message, any>;
@@ -1,19 +1,3 @@
1
1
  import React from 'react';
2
- interface IMessage {
3
- message: string;
4
- variant?: string;
5
- show?: boolean;
6
- hide: Function;
7
- closable?: boolean;
8
- timeout?: number;
9
- props?: any;
10
- icons?: Record<string, string>;
11
- text?: any;
12
- icon?: any;
13
- theme?: Record<string, any>;
14
- iconProps?: any;
15
- textProps?: any;
16
- containerProps?: any;
17
- }
18
- export declare const MessageView: ({ variant, message, hide, props, timeout, closable, icons, text, theme, icon, }: IMessage) => React.JSX.Element;
19
- export {};
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;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ActionDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultDemo: () => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ export * from './action';
2
+ export * from './default';
3
+ export * from './isClosable';
4
+ export * from './showIcon';
5
+ export * from './styles';
6
+ export * from './subtitle';
7
+ export * from './timeout';
8
+ export * from './title';
9
+ export * from './variant';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const IsClosableDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ShowIconDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const StylesDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SubtitleDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TimeoutDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TitleDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const VariantDemo: () => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SvgProps {
3
+ size?: number;
4
+ color?: string;
5
+ [x: string]: any;
6
+ }
7
+ export declare const ErrorSvg: React.FC<SvgProps>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SvgProps {
3
+ size?: number;
4
+ color?: string;
5
+ [x: string]: any;
6
+ }
7
+ export declare const InfoSvg: React.FC<SvgProps>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SvgProps {
3
+ size?: number;
4
+ color?: string;
5
+ [x: string]: any;
6
+ }
7
+ export declare const PlusSvg: React.FC<SvgProps>;
8
+ export default PlusSvg;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SvgProps {
3
+ size?: number;
4
+ color?: string;
5
+ [x: string]: any;
6
+ }
7
+ export declare const SearchLoopSvg: React.FC<SvgProps>;
8
+ export default SearchLoopSvg;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SvgProps {
3
+ size?: number;
4
+ color?: string;
5
+ [x: string]: any;
6
+ }
7
+ export declare const SuccessSvg: React.FC<SvgProps>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SvgProps {
3
+ size?: number;
4
+ color?: string;
5
+ [x: string]: any;
6
+ }
7
+ export declare const TickSvg: React.FC<SvgProps>;
8
+ export default TickSvg;
@@ -11,3 +11,6 @@ export * from './OpenEye';
11
11
  export * from './Profile';
12
12
  export * from './RightArrow';
13
13
  export * from './Warning';
14
+ export * from './Success';
15
+ export * from './Info';
16
+ export * from './Error';
@@ -0,0 +1,16 @@
1
+ import React, { CSSProperties } from 'react';
2
+ 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;
11
+ };
12
+ export declare const TableStylesProvider: React.FC<{
13
+ children: React.ReactNode;
14
+ styles?: TableViewStyles;
15
+ }>;
16
+ export declare const useTableStyles: () => TableViewStyles;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { Column, FooterCell, TableViewStyles } from './Table.type';
3
+ export interface TableProps {
4
+ data: any[];
5
+ columns: Column[];
6
+ footer?: FooterCell[];
7
+ caption?: React.ReactNode;
8
+ styles?: TableViewStyles;
9
+ }
10
+ export interface TableViewProps extends TableProps {
11
+ }
12
+ export interface TableLayoutProps {
13
+ Head?: React.FC<any>;
14
+ Body?: React.FC<any>;
15
+ Row?: React.FC<any>;
16
+ Cell?: React.FC<any>;
17
+ Footer?: React.FC<any>;
18
+ Caption?: React.FC<any>;
19
+ TableContainer?: React.FC<any>;
20
+ children?: React.ReactNode;
21
+ styles?: TableViewStyles;
22
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const useTableState: () => {
3
+ isHovered: boolean;
4
+ setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
5
+ };
@@ -0,0 +1,19 @@
1
+ import { CSSProperties } from 'react';
2
+ 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;
11
+ };
12
+ export interface Column {
13
+ title: string;
14
+ field: string;
15
+ }
16
+ export interface FooterCell {
17
+ value: string;
18
+ props?: any;
19
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ 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>;
11
+ export declare const TableView: React.FC<TableViewProps>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { TableLayoutProps } from './Table/Table.props';
3
+ export declare const Table: {
4
+ ({ children, styles }: TableLayoutProps): React.JSX.Element;
5
+ Head: React.FC<any>;
6
+ Body: React.FC<any>;
7
+ Row: React.FC<any>;
8
+ Cell: React.FC<any>;
9
+ Footer: React.FC<any>;
10
+ Caption: React.FC<any>;
11
+ TableContainer: React.FC<any>;
12
+ Template: React.FC<import("./Table/Table.props").TableViewProps>;
13
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CaptionDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DataDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultDemo: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FooterDemo: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ export * from './caption';
2
+ export * from './default';
3
+ export * from './footer';
4
+ export * from './styles';
5
+ export * from './data';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const StylesDemo: () => React.JSX.Element;
@@ -25,3 +25,4 @@ export * from './Avatar/Avatar';
25
25
  export * from './Badge/Badge';
26
26
  export * from './Toggle/Toggle';
27
27
  export * from './ToggleGroup/ToggleGroup';
28
+ export * from './Message/Message';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ComboBoxPage: () => React.JSX.Element;
3
+ export default ComboBoxPage;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- export declare const ModalPage: () => React.JSX.Element;
3
- export default ModalPage;
2
+ declare const MessagePage: () => React.JSX.Element;
3
+ export default MessagePage;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TablePage: () => React.JSX.Element;
3
+ export default TablePage;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const componentList: {
3
+ name: string;
4
+ path: string;
5
+ element: React.JSX.Element;
6
+ }[];