@app-studio/web 0.8.9 → 0.8.11

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 (54) hide show
  1. package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -1
  2. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +1 -114
  3. package/dist/components/Form/CountryPicker/CountryPicker.d.ts +0 -3
  4. package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +1 -1
  5. package/dist/components/Form/Select/Select/Select.props.d.ts +1 -151
  6. package/dist/components/Form/Select/Select.d.ts +0 -3
  7. package/dist/components/Form/Switch/Switch/Switch.props.d.ts +1 -41
  8. package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +1 -100
  9. package/dist/components/Form/TextArea/TextArea.d.ts +0 -3
  10. package/dist/components/Form/TextField/TextField/TextField.props.d.ts +1 -81
  11. package/dist/components/Form/TextField/TextField.d.ts +0 -3
  12. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -1
  13. package/dist/components/Link/Link/Link.props.d.ts +0 -28
  14. package/dist/components/Link/Link.d.ts +0 -3
  15. package/dist/components/Loader/Loader/Loader.props.d.ts +0 -51
  16. package/dist/components/Loader/Loader.d.ts +0 -3
  17. package/dist/components/Message/Message/Message.props.d.ts +4 -4
  18. package/dist/components/Message/Message/Message.store.d.ts +2 -2
  19. package/dist/components/Message/Message/Message.style.d.ts +2 -2
  20. package/dist/components/Message/Message/Message.type.d.ts +47 -0
  21. package/dist/components/Message/Message.d.ts +2 -2
  22. package/dist/components/Modal/Modal/Modal.props.d.ts +1 -1
  23. package/dist/components/Text/Text/Text.props.d.ts +0 -48
  24. package/dist/docsLoader.d.ts +1 -0
  25. package/dist/pages/docs/components/LiveCode.component.d.ts +3 -0
  26. package/dist/pages/docs/components/MarkdownEditor.component.d.ts +5 -0
  27. package/dist/pages/docs/components/docs.elements.d.ts +3 -0
  28. package/dist/pages/docs/components/docs.request.d.ts +10 -0
  29. package/dist/pages/docs/components/docs.states.d.ts +5 -0
  30. package/dist/pages/docs/docs.page.d.ts +4 -0
  31. package/dist/web.cjs.development.js +102 -50
  32. package/dist/web.cjs.development.js.map +1 -1
  33. package/dist/web.cjs.production.min.js +1 -1
  34. package/dist/web.cjs.production.min.js.map +1 -1
  35. package/dist/web.esm.js +102 -50
  36. package/dist/web.esm.js.map +1 -1
  37. package/dist/web.umd.development.js +102 -50
  38. package/dist/web.umd.development.js.map +1 -1
  39. package/dist/web.umd.production.min.js +1 -1
  40. package/dist/web.umd.production.min.js.map +1 -1
  41. package/package.json +12 -4
  42. package/dist/bot/Bot.d.ts +0 -14
  43. package/dist/bot/Cache.d.ts +0 -13
  44. package/dist/bot/Config.d.ts +0 -13
  45. package/dist/bot/ContentFetcher.d.ts +0 -9
  46. package/dist/bot/DocuCode.d.ts +0 -17
  47. package/dist/bot/FileHandler.d.ts +0 -24
  48. package/dist/bot/OpenAIConnector.d.ts +0 -27
  49. package/dist/bot/data.d.ts +0 -19
  50. package/dist/bot/extractors.d.ts +0 -8
  51. package/dist/bot/index.d.ts +0 -1
  52. package/dist/bot/prompt/1-project.d.ts +0 -1
  53. package/dist/bot/prompt/2-response.d.ts +0 -1
  54. package/dist/bot/prompt/3-comment.d.ts +0 -1
@@ -1,120 +1,40 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { InputProps, Shadow } from 'app-studio';
3
- import { Elevation } from 'src/utils/elevation';
3
+ import { Elevation } from '../../../../utils/elevation';
4
4
  import { Shape, Size, TextFieldStyles, Variant } from './TextField.type';
5
5
  export interface TextFieldProps extends Omit<InputProps, 'size'> {
6
- /**
7
- * The input field identifier.
8
- */
9
6
  id?: string;
10
- /**
11
- * Specifies whether the input field should display an error state.
12
- */
13
7
  error?: any;
14
- /**
15
- * Provides additional information about the input field.
16
- */
17
8
  helperText?: string;
18
- /**
19
- * The name of the input field.
20
- */
21
9
  name?: string;
22
- /**
23
- * Displays a label above the user input.
24
- */
25
10
  label?: string;
26
- /**
27
- * Changes the label and border color of the input field.
28
- */
29
11
  colorScheme?: string;
30
- /**
31
- * The left child to include in the field.
32
- */
33
12
  leftChild?: React.ReactNode;
34
- /**
35
- * The right child to include in the field.
36
- */
37
13
  rightChild?: React.ReactNode;
38
- /**
39
- * Placeholder text to display in the input field until the user enters text.
40
- */
41
14
  placeholder?: string;
42
- /**
43
- * Specifies whether the input field is read-only and cannot be edited.
44
- */
45
15
  isReadOnly?: boolean;
46
- /**
47
- * Specifies whether the input field is disabled and cannot be interacted with.
48
- */
49
16
  isDisabled?: boolean;
50
- /**
51
- * Specifies whether a clear button should be added to the input field that clears its value when clicked.
52
- */
53
17
  isClearable?: boolean;
54
- /**
55
- * Specifies whether the input field should be automatically focused.
56
- */
57
18
  isAutoFocus?: boolean;
58
- /**
59
- * Handler function called when the input field value changes.
60
- */
61
19
  onChange?: (value: any) => void;
62
- /**
63
- * Handler function called when the input field value changes for iOS and Android.
64
- */
65
20
  onChangeText?: (value: string) => void;
66
- /**
67
- * Callback function triggered when the field loses focus.
68
- */
69
21
  onBlur?: (value: any) => void;
70
- /**
71
- * Event called when the input field is clicked/pressed.
72
- */
73
22
  onClick?: () => void;
74
- /**
75
- * Callback function called when the text input receives focus.
76
- */
77
23
  onFocus?: () => void;
78
- /**
79
- * Sets the text size and padding of the input field.
80
- */
81
24
  size?: Size;
82
- /**
83
- * Applies a shadow effect to the input field.
84
- */
85
25
  shadow?: Shadow | Elevation | CSSProperties;
86
- /**
87
- * Changes the shape or outline of the input field.
88
- */
89
26
  shape?: Shape;
90
- /**
91
- * CSS styles for the input container and field.
92
- */
93
27
  styles?: TextFieldStyles;
94
- /**
95
- * The default value of the input field.
96
- */
97
28
  value?: string;
98
- /**
99
- * Changes the style variant of the input field.
100
- */
101
29
  variant?: Variant;
102
30
  }
103
31
  export interface TextFieldViewProps extends TextFieldProps {
104
- /** The hint text for the text field */
105
32
  hint?: string;
106
- /** Function to set the hint text for the text field */
107
33
  setHint?: Function;
108
- /** Indicates whether the text field is currently focused or not */
109
34
  isFocused?: boolean;
110
- /** Function to set the focused state of the text field */
111
35
  setIsFocused?: Function;
112
- /** Indicates whether the mouse pointer is currently hovering over the text field or not */
113
36
  isHovered?: boolean;
114
- /** Function to set the hovered state of the text field */
115
37
  setIsHovered?: Function;
116
- /** The current value of the text field */
117
38
  value?: string;
118
- /** Function to set the value of the text field */
119
39
  setValue?: Function;
120
40
  }
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { TextFieldProps } from './TextField/TextField.props';
3
- /**
4
- * TextField is used to capture text data from users.
5
- */
6
3
  export declare const TextField: React.FC<TextFieldProps>;
@@ -1,6 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { Shape, Size, TextFieldStyles, Variant } from '../../../../Layout/configs/Input.type';
3
- import { Elevation } from 'src/utils/elevation';
3
+ import { Elevation } from '../../../../../utils/elevation';
4
4
  import { Shadow, ViewProps } from 'app-studio';
5
5
  export interface ContentProps extends Omit<ViewProps, 'size'> {
6
6
  /**
@@ -2,43 +2,15 @@ import React from 'react';
2
2
  import { Size, Styles, TextDecorationStyle } from './Link.type';
3
3
  import { ViewProps } from 'app-studio';
4
4
  export interface LinkProps extends Omit<ViewProps, 'size'> {
5
- /**
6
- * The content of the link.
7
- */
8
5
  children: React.ReactNode;
9
- /**
10
- * The style of text decoration for the link.
11
- * Can be one of "default", "hover", or "underline".
12
- */
13
6
  underline?: TextDecorationStyle;
14
- /**
15
- * Indicates whether the link opens in a new tab.
16
- */
17
7
  isExternal?: boolean;
18
- /**
19
- * The size of the icon associated with the link.
20
- */
21
8
  iconSize?: Size;
22
- /**
23
- * Sets the color of the icon and text.
24
- */
25
9
  colorScheme?: string;
26
- /**
27
- * The URL or destination of the link.
28
- */
29
10
  href: string;
30
- /**
31
- * CSS styles for the external icon.
32
- */
33
11
  styles?: Styles;
34
12
  }
35
13
  export interface LinkViewProps extends LinkProps {
36
- /**
37
- * Indicates whether the link is currently being hovered
38
- */
39
14
  isHovered: boolean;
40
- /**
41
- * Function to set the hovered state of the link
42
- */
43
15
  setIsHovered: Function;
44
16
  }
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { LinkProps } from './Link/Link.props';
3
- /**
4
- * Link allows users to navigate from page to page. It have a similar appearance as the hyperlink.
5
- */
6
3
  export declare const Link: React.FC<LinkProps>;
@@ -1,78 +1,27 @@
1
1
  import React from 'react';
2
2
  import { LoaderType, Size, Speed, TextPosition } from './Loader.type';
3
3
  import { ViewProps } from 'app-studio';
4
- /**
5
- * Props for the Loader component.
6
- */
7
4
  export interface LoaderProps extends Omit<ViewProps, 'size'> {
8
- /**
9
- * The text content.
10
- */
11
5
  children?: React.ReactNode;
12
- /**
13
- * The color of the loader.
14
- */
15
6
  loaderColor?: string;
16
- /**
17
- * The type of loader.
18
- */
19
7
  type?: LoaderType;
20
- /**
21
- * The color of the text.
22
- */
23
8
  textColor?: string;
24
- /**
25
- * The position where to place the children.
26
- */
27
9
  textPosition?: TextPosition;
28
- /**
29
- * The width and height of the loader.
30
- */
31
10
  size?: number | Size;
32
- /**
33
- * The rotation speed of the loader.
34
- */
35
11
  speed?: Speed;
36
12
  }
37
13
  export interface DefaultSpinnerProps extends Omit<ViewProps, 'size'> {
38
- /**
39
- * To set the spinner height and width
40
- */
41
14
  size?: number | Size;
42
- /**
43
- * To set the rate at which the spinner moves
44
- */
45
15
  speed?: Speed;
46
- /**
47
- * To change the spinner color
48
- */
49
16
  color?: string;
50
17
  }
51
18
  export interface DottedProps extends Omit<ViewProps, 'size'> {
52
- /**
53
- * To set the spinner height and width
54
- */
55
19
  size?: number | Size;
56
- /**
57
- * To set the rate at which the spinner moves
58
- */
59
20
  speed?: Speed;
60
- /**
61
- * To change the spinner color
62
- */
63
21
  color?: string;
64
22
  }
65
23
  export interface QuarterProps extends Omit<ViewProps, 'size'> {
66
- /**
67
- * To set the spinner height and width
68
- */
69
24
  size?: number | Size;
70
- /**
71
- * To set the rate at which the spinner moves
72
- */
73
25
  speed?: Speed;
74
- /**
75
- * To change the spinner color
76
- */
77
26
  color?: string;
78
27
  }
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { LoaderProps } from './Loader/Loader.props';
3
- /**
4
- * It gives the user an insight about an action being processed. It may have an undefined waiting time or display the process length.
5
- */
6
3
  export declare const Loader: React.FC<LoaderProps>;
@@ -1,4 +1,4 @@
1
- import { Message, MessageViewStyles, Position, ThemesType } from './Message.type';
1
+ import { MessageType, MessageViewStyles, Position, ThemesType } from './Message.type';
2
2
  export interface MessageLayoutProps {
3
3
  icons?: {
4
4
  [x: string]: string;
@@ -17,7 +17,7 @@ export interface ShowMessageProps {
17
17
  }
18
18
  export interface MessageProps extends ShowMessageProps {
19
19
  subtitle?: string;
20
- variant: Message;
20
+ variant: MessageType;
21
21
  show?: boolean;
22
22
  hide: Function;
23
23
  title: string;
@@ -25,7 +25,7 @@ export interface MessageProps extends ShowMessageProps {
25
25
  }
26
26
  export interface MessageState {
27
27
  visible: boolean;
28
- variant: Message;
28
+ variant: MessageType;
29
29
  title: string;
30
30
  subtitle: string;
31
31
  isClosable?: boolean;
@@ -34,6 +34,6 @@ export interface MessageState {
34
34
  actionText?: string;
35
35
  showIcon?: boolean;
36
36
  timeout?: number;
37
- show: (variant: Message, 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, styles?: MessageViewStyles, action?: Function, actionText?: string, showIcon?: boolean, timeout?: number) => void;
38
38
  hide: () => void;
39
39
  }
@@ -1,4 +1,4 @@
1
- import { Message, ShowMessageType } from './Message.type';
1
+ import { MessageType, ShowMessageType } from './Message.type';
2
2
  export declare const useMessageStore: any;
3
- export declare const showMessage: (variant: Message, title?: string | undefined, subtitle?: string | undefined, props?: ShowMessageType | undefined) => void;
3
+ export declare const showMessage: (variant: MessageType, title?: string | undefined, subtitle?: string | undefined, props?: ShowMessageType | undefined) => void;
4
4
  export declare const hideMessage: () => void;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { Message, Shape, Size } from './Message.type';
2
+ import { MessageType, Shape, Size } from './Message.type';
3
3
  export declare const ContainerShapes: Record<Shape, CSSProperties>;
4
4
  export declare const HeaderIconSizes: Record<Size, number>;
5
- export declare const Themes: Record<Message, any>;
5
+ export declare const Themes: Record<MessageType, any>;
@@ -0,0 +1,47 @@
1
+ export declare type Position = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
2
+ export declare type Shape = 'sharp' | 'rounded';
3
+ export declare type CloseButtonPosition = 'left' | 'right' | 'none';
4
+ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ export declare type MessageType = 'info' | 'warning' | 'error' | 'success';
6
+ export declare type MessageViewStyles = {
7
+ container?: any;
8
+ title?: any;
9
+ subtitle?: any;
10
+ icon?: any;
11
+ actionText?: any;
12
+ closingIcon?: {
13
+ container?: any;
14
+ icon?: any;
15
+ };
16
+ };
17
+ export declare type Theme = {
18
+ container: {
19
+ backgroundColor?: string;
20
+ border?: string;
21
+ };
22
+ icon: {
23
+ color?: string;
24
+ name?: string;
25
+ };
26
+ content: {
27
+ color?: string;
28
+ };
29
+ close: {
30
+ color?: string;
31
+ name?: string;
32
+ };
33
+ };
34
+ export declare type ThemesType = {
35
+ info: Theme;
36
+ success: Theme;
37
+ error: Theme;
38
+ warning: Theme;
39
+ };
40
+ export declare type ShowMessageType = {
41
+ isClosable?: boolean;
42
+ styles?: MessageViewStyles;
43
+ action?: Function;
44
+ actionText?: string;
45
+ showIcon?: boolean;
46
+ timeout?: number;
47
+ };
@@ -1,5 +1,5 @@
1
1
  export { MessageLayout } from './Message/Message.layout';
2
2
  export { MessageView } from './Message/Message.view';
3
- export { MessageProps } from './Message/Message.props';
4
- export { Message } from './Message/Message.type';
3
+ export type { MessageProps } from './Message/Message.props';
4
+ export type { MessageType } from './Message/Message.type';
5
5
  export * from './Message/Message.store';
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties } from 'react';
2
- import { Elevation } from 'src/utils/elevation';
2
+ import { Elevation } from '../../../utils/elevation';
3
3
  import { Shadow, ViewProps } from 'app-studio';
4
4
  import { CloseButtonPosition, Position, Shape, Size } from './Modal.type';
5
5
  export interface ModalProps extends Omit<ViewProps, 'size'> {
@@ -2,72 +2,24 @@ import { CSSProperties } from 'react';
2
2
  import type { TextProps as TextAppProps } from 'app-studio';
3
3
  import { Headings, Size, TextWeights } from './Text.type';
4
4
  export interface TextProps extends Omit<TextAppProps, 'children' | 'style' | 'pointerEvents'>, CSSProperties {
5
- /**
6
- * The content of the text.
7
- */
8
5
  children: React.ReactNode;
9
- /**
10
- * Specifies the HTML heading tag to use.
11
- */
12
6
  heading?: Headings;
13
- /**
14
- * Determines whether the text should be displayed in italic style.
15
- */
16
7
  isItalic?: boolean;
17
- /**
18
- * Indicates that the text is no longer valid by applying a strikethrough style.
19
- */
20
8
  isStriked?: boolean;
21
- /**
22
- * Adds an underline to the text.
23
- */
24
9
  isUnderlined?: boolean;
25
- /**
26
- * Truncates the text and adds an ellipsis at the end if it exceeds the available space.
27
- */
28
10
  isTruncated?: boolean;
29
- /**
30
- * Displays the text slightly below the baseline of the surrounding text.
31
- */
32
11
  isSub?: boolean;
33
- /**
34
- * Displays the text slightly above the surrounding text.
35
- */
36
12
  isSup?: boolean;
37
- /**
38
- * The maximum number of lines to display when using text truncation.
39
- */
40
13
  maxLines?: number;
41
- /**
42
- * Adjusts the size of the text. Can be a predefined size or a custom number.
43
- */
44
14
  size?: Size;
45
- /**
46
- * Specifies the font weight of the text.
47
- */
48
15
  weight?: TextWeights;
49
16
  }
50
17
  export interface ContentProps {
51
- /**
52
- * The content to be rendered within the component.
53
- */
54
18
  children: React.ReactNode | string;
55
- /**
56
- * Optional prop indicating if the content should be displayed as a subtext.
57
- */
58
19
  isSub?: boolean;
59
- /**
60
- * Optional prop indicating if the content should be displayed as a supertext.
61
- */
62
20
  isSup?: boolean;
63
21
  }
64
22
  export interface TruncateTextProps {
65
- /**
66
- * The text to be truncated.
67
- */
68
23
  text: string;
69
- /**
70
- * The maximum number of lines to display before truncating the text.
71
- */
72
24
  maxLines?: number;
73
25
  }
@@ -0,0 +1 @@
1
+ export function loadDocs(): Promise<[any, any, any, any, any, any, any, any, any, any] | never[]>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const LiveCode: ({ code, language, scope }: any) => React.JSX.Element;
3
+ export default LiveCode;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import '@mdxeditor/editor/style.css';
3
+ export declare const MarkdownEditor: ({ markdown }: {
4
+ markdown: string;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const SideMenu: ({ docs, ...props }: any) => React.JSX.Element;
3
+ export declare const Text1: () => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare type Sections = {
2
+ title: string;
3
+ items?: {
4
+ name: string;
5
+ link: string;
6
+ }[];
7
+ }[];
8
+ export declare const useDocsRequest: () => {
9
+ sections: Sections;
10
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare function useHomePageStates(): {
3
+ inputValue: string;
4
+ setInputValue: import("react").Dispatch<import("react").SetStateAction<string>>;
5
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import '@mdxeditor/editor/style.css';
3
+ declare const DocsPage: () => React.JSX.Element;
4
+ export default DocsPage;