@app-studio/web 0.8.10 → 0.8.13
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.
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +0 -113
- package/dist/components/Form/CountryPicker/CountryPicker.d.ts +0 -3
- package/dist/components/Form/Select/Select/Select.props.d.ts +0 -150
- package/dist/components/Form/Select/Select.d.ts +0 -3
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +0 -40
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +0 -99
- package/dist/components/Form/TextArea/TextArea.d.ts +0 -3
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +0 -80
- package/dist/components/Form/TextField/TextField.d.ts +0 -3
- package/dist/components/Formik/Formik.Form.d.ts +1 -1
- package/dist/components/Layout/Vertical/examples/index.d.ts +5 -0
- package/dist/components/Link/Link/Link.props.d.ts +0 -28
- package/dist/components/Link/Link.d.ts +0 -3
- package/dist/components/Loader/Loader/Loader.props.d.ts +0 -51
- package/dist/components/Loader/Loader.d.ts +0 -3
- package/dist/components/Text/Text/Text.props.d.ts +0 -48
- package/dist/docsLoader.d.ts +1 -0
- package/dist/pages/docs/components/LiveCode.component.d.ts +3 -0
- package/dist/pages/docs/components/MarkdownEditor.component.d.ts +5 -0
- package/dist/pages/docs/components/docs.elements.d.ts +3 -0
- package/dist/pages/docs/components/docs.request.d.ts +10 -0
- package/dist/pages/docs/components/docs.states.d.ts +5 -0
- package/dist/pages/docs/docs.page.d.ts +4 -0
- package/dist/web.cjs.development.js +1868 -2081
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +1859 -2072
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +1864 -2085
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +17 -7
- package/dist/bot/Bot.d.ts +0 -14
- package/dist/bot/Cache.d.ts +0 -13
- package/dist/bot/Config.d.ts +0 -13
- package/dist/bot/ContentFetcher.d.ts +0 -9
- package/dist/bot/DocuCode.d.ts +0 -17
- package/dist/bot/FileHandler.d.ts +0 -24
- package/dist/bot/OpenAIConnector.d.ts +0 -27
- package/dist/bot/data.d.ts +0 -19
- package/dist/bot/extractors.d.ts +0 -8
- package/dist/bot/index.d.ts +0 -1
- package/dist/bot/prompt/1-project.d.ts +0 -1
- package/dist/bot/prompt/2-response.d.ts +0 -1
- package/dist/bot/prompt/3-comment.d.ts +0 -1
|
@@ -3,118 +3,38 @@ import { InputProps, Shadow } from 'app-studio';
|
|
|
3
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
|
}
|
|
@@ -21,5 +21,5 @@ interface FocusContextType {
|
|
|
21
21
|
setInputRef: (name: string, ref: HTMLInputElement | null) => void;
|
|
22
22
|
}
|
|
23
23
|
export declare const useFormFocus: () => FocusContextType;
|
|
24
|
-
export declare const FormikForm: <T extends {}>({ children, autoFocus, initFocus, }: any) => React.JSX.Element;
|
|
24
|
+
export declare const FormikForm: <T extends {}>({ children, autoFocus, initFocus, ...props }: any) => React.JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -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,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>;
|
|
@@ -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[]>;
|