@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.
Files changed (47) hide show
  1. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +0 -113
  2. package/dist/components/Form/CountryPicker/CountryPicker.d.ts +0 -3
  3. package/dist/components/Form/Select/Select/Select.props.d.ts +0 -150
  4. package/dist/components/Form/Select/Select.d.ts +0 -3
  5. package/dist/components/Form/Switch/Switch/Switch.props.d.ts +0 -40
  6. package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +0 -99
  7. package/dist/components/Form/TextArea/TextArea.d.ts +0 -3
  8. package/dist/components/Form/TextField/TextField/TextField.props.d.ts +0 -80
  9. package/dist/components/Form/TextField/TextField.d.ts +0 -3
  10. package/dist/components/Formik/Formik.Form.d.ts +1 -1
  11. package/dist/components/Layout/Vertical/examples/index.d.ts +5 -0
  12. package/dist/components/Link/Link/Link.props.d.ts +0 -28
  13. package/dist/components/Link/Link.d.ts +0 -3
  14. package/dist/components/Loader/Loader/Loader.props.d.ts +0 -51
  15. package/dist/components/Loader/Loader.d.ts +0 -3
  16. package/dist/components/Text/Text/Text.props.d.ts +0 -48
  17. package/dist/docsLoader.d.ts +1 -0
  18. package/dist/pages/docs/components/LiveCode.component.d.ts +3 -0
  19. package/dist/pages/docs/components/MarkdownEditor.component.d.ts +5 -0
  20. package/dist/pages/docs/components/docs.elements.d.ts +3 -0
  21. package/dist/pages/docs/components/docs.request.d.ts +10 -0
  22. package/dist/pages/docs/components/docs.states.d.ts +5 -0
  23. package/dist/pages/docs/docs.page.d.ts +4 -0
  24. package/dist/web.cjs.development.js +1868 -2081
  25. package/dist/web.cjs.development.js.map +1 -1
  26. package/dist/web.cjs.production.min.js +1 -1
  27. package/dist/web.cjs.production.min.js.map +1 -1
  28. package/dist/web.esm.js +1859 -2072
  29. package/dist/web.esm.js.map +1 -1
  30. package/dist/web.umd.development.js +1864 -2085
  31. package/dist/web.umd.development.js.map +1 -1
  32. package/dist/web.umd.production.min.js +1 -1
  33. package/dist/web.umd.production.min.js.map +1 -1
  34. package/package.json +17 -7
  35. package/dist/bot/Bot.d.ts +0 -14
  36. package/dist/bot/Cache.d.ts +0 -13
  37. package/dist/bot/Config.d.ts +0 -13
  38. package/dist/bot/ContentFetcher.d.ts +0 -9
  39. package/dist/bot/DocuCode.d.ts +0 -17
  40. package/dist/bot/FileHandler.d.ts +0 -24
  41. package/dist/bot/OpenAIConnector.d.ts +0 -27
  42. package/dist/bot/data.d.ts +0 -19
  43. package/dist/bot/extractors.d.ts +0 -8
  44. package/dist/bot/index.d.ts +0 -1
  45. package/dist/bot/prompt/1-project.d.ts +0 -1
  46. package/dist/bot/prompt/2-response.d.ts +0 -1
  47. package/dist/bot/prompt/3-comment.d.ts +0 -1
@@ -3,159 +3,46 @@ import { Elevation } from '../../../../utils/elevation';
3
3
  import { InputProps, Shadow } from 'app-studio';
4
4
  import { Country, CountryPickerStyles, Shape, Size, Variant } from './CountryPicker.type';
5
5
  export interface CountryPickerProps extends Omit<InputProps, 'size'> {
6
- /**
7
- * The identifier for the CountryPicker component.
8
- */
9
6
  id?: string;
10
- /**
11
- * Indicates whether the field has an error.
12
- */
13
7
  error?: boolean;
14
- /**
15
- * The name of the field.
16
- */
17
8
  name?: string;
18
- /**
19
- * The label text for the field.
20
- */
21
9
  label?: string;
22
- /**
23
- * The color scheme that changes the border color on hover of the field.
24
- */
25
10
  colorScheme?: string;
26
- /**
27
- * Additional helper text that provides information about the field.
28
- */
29
11
  helperText?: string;
30
- /**
31
- * A brief text or hint that appears in the field before the user enters any value.
32
- */
33
12
  placeholder?: string;
34
- /**
35
- * The shape that changes the outlines of the CountryPicker.
36
- */
37
13
  shape?: Shape;
38
- /**
39
- * If true, the field will be automatically focused.
40
- */
41
14
  isAutoFocus?: boolean;
42
- /**
43
- * If true, the CountryPicker cannot be edited.
44
- */
45
15
  isReadOnly?: boolean;
46
- /**
47
- * If true, the field will be unusable.
48
- */
49
16
  isDisabled?: boolean;
50
- /**
51
- * Callback function triggered when the CountryPicker loses focus.
52
- */
53
17
  onBlur?: (value: any) => void;
54
- /**
55
- * Callback function triggered when the field value changes.
56
- */
57
18
  onChange?: (value: any) => void;
58
- /**
59
- * CSS styles for the CountryPicker component.
60
- */
61
19
  styles?: CountryPickerStyles;
62
- /**
63
- * The font size of the CountryPicker.
64
- */
65
20
  size?: Size;
66
- /**
67
- * The default value of the input field.
68
- */
69
21
  value?: string | number;
70
- /**
71
- * Changes the style of the input field.
72
- */
73
22
  variant?: Variant;
74
- /**
75
- * Adds a shadow effect to the CountryPicker.
76
- */
77
23
  shadow?: Shadow | Elevation | CSSProperties;
78
24
  }
79
25
  export interface CountryPickerViewProps extends CountryPickerProps {
80
- /**
81
- * Indicates whether the country picker is currently being hovered.
82
- */
83
26
  isHovered?: boolean;
84
- /**
85
- * A function to set the hovered state of the country picker.
86
- * @param hovered - The hovered state to set.
87
- */
88
27
  setIsHovered?: (hovered: boolean) => void;
89
- /**
90
- * Indicates whether the country picker is focused.
91
- */
92
28
  isFocused?: boolean;
93
- /**
94
- * A function to set the focus state of the country picker.
95
- * @param focused - The focus state to set.
96
- */
97
29
  setIsFocused?: (focused: boolean) => void;
98
- /**
99
- * Indicates the currently selected country.
100
- */
101
30
  selected?: string;
102
- /**
103
- * A function to set the selected country.
104
- * @param selected - The selected country to set.
105
- */
106
31
  setSelected?: (selected: string) => void;
107
- /**
108
- * Indicates whether the country picker should be hidden.
109
- */
110
32
  hide?: boolean;
111
- /**
112
- * A function to set the hide state of the country picker.
113
- * @param hide - The hide state to set.
114
- */
115
33
  setHide?: (hide: boolean) => void;
116
- /**
117
- * Options for the country picker.
118
- */
119
34
  newOptions?: Array<Country>;
120
- /**
121
- * A function to set the new options for the country picker.
122
- * @param newOptions - The new options to set.
123
- */
124
35
  setNewOptions?: (newOptions: Array<Country>) => void;
125
36
  }
126
37
  export interface DropDownProps extends Omit<InputProps, 'size'> {
127
- /**
128
- * To set the height and width of the item list.
129
- */
130
38
  size?: Size;
131
- /**
132
- * Function that will be called when the option is CountryPickered
133
- */
134
39
  callback?: Function;
135
- /**
136
- * List of options
137
- */
138
40
  options: Array<Country>;
139
- /**
140
- * Css styles for the CountryPicker container and label
141
- */
142
41
  styles?: CountryPickerStyles;
143
42
  }
144
43
  export interface DropDownItemProps extends Omit<InputProps, 'size'> {
145
- /**
146
- * Function that will be called when the option is clicked
147
- */
148
44
  callback?: Function;
149
- /**
150
- * Option to be displayed
151
- */
152
45
  option: string;
153
- /**
154
- * To set the DropDownItem's fontSize
155
- */
156
46
  size?: Size;
157
- /**
158
- * Css styles
159
- */
160
47
  styles?: CountryPickerStyles;
161
48
  }
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { CountryPickerProps } from './CountryPicker/CountryPicker.props';
3
- /**
4
- * Country picker allows users to select a country from a dropdown list or search field.
5
- */
6
3
  export declare const CountryPicker: React.FC<CountryPickerProps>;
@@ -3,218 +3,68 @@ import { Elevation } from '../../../../utils/elevation';
3
3
  import { InputProps, Shadow } from 'app-studio';
4
4
  import { SelectStyles, Shape, Size, Variant, Option } from './Select.type';
5
5
  export interface SelectProps extends Omit<InputProps, 'size'> {
6
- /**
7
- * The identifier of the select field.
8
- */
9
6
  id?: string;
10
- /**
11
- * Indicates whether the field has an error.
12
- */
13
7
  error?: boolean;
14
- /**
15
- * The name of the select field.
16
- */
17
8
  name?: string;
18
- /**
19
- * The label text for the select field.
20
- */
21
9
  label?: string;
22
- /**
23
- * Changes the border color when hovering over the field.
24
- */
25
10
  colorScheme?: string;
26
- /**
27
- * Provides additional information or instructions about the field.
28
- */
29
11
  helperText?: string;
30
- /**
31
- * A brief text or hint that appears in the field before the user enters any value.
32
- */
33
12
  placeholder?: string;
34
- /**
35
- * An array of options for the select field.
36
- */
37
13
  options: Option[];
38
- /**
39
- * If true, allows multiple options to be selected.
40
- */
41
14
  isMulti?: boolean;
42
- /**
43
- * If true, the select field cannot be edited.
44
- */
45
15
  isReadOnly?: boolean;
46
- /**
47
- * If true, the select field is disabled and cannot be used.
48
- */
49
16
  isDisabled?: boolean;
50
- /**
51
- * Handler function to be called when the select value changes.
52
- */
53
17
  onChange?: (value: any) => void;
54
- /**
55
- * Changes the shape or outline of the input field.
56
- */
57
18
  shape?: Shape;
58
- /**
59
- * Changes the style variant of the input field.
60
- */
61
19
  variant?: Variant;
62
- /**
63
- * CSS styles for the select box and dropdown.
64
- */
65
20
  styles?: SelectStyles;
66
- /**
67
- * Specifies the height and width of the select.
68
- */
69
21
  size?: Size;
70
- /**
71
- * Applies a shadow effect to the select field.
72
- */
73
22
  shadow?: Shadow | Elevation | CSSProperties;
74
23
  isScrollable?: boolean;
75
24
  }
76
25
  export interface SelectViewProps extends SelectProps {
77
- /**
78
- * Optional prop indicating if an option is selected
79
- */
80
26
  value: string | Array<string>;
81
- /**
82
- * Optional callback prop to update the selected option
83
- */
84
27
  setValue: Function;
85
- /**
86
- * Prop to determine if the select dropdown is hidden
87
- */
88
28
  hide: boolean;
89
- /**
90
- * Callback prop to update the visibility of the select dropdown
91
- */
92
29
  setHide: Function;
93
- /**
94
- * Prop indicating if the select is being hovered
95
- */
96
30
  isHovered: boolean;
97
- /**
98
- * Callback prop to update the hover state of the select
99
- */
100
31
  setIsHovered: Function;
101
- /**
102
- * Prop indicating if the select is currently focused
103
- */
104
32
  isFocused: boolean;
105
- /**
106
- * Callback prop to update the focus state of the select
107
- */
108
33
  setIsFocused: Function;
109
34
  }
110
35
  export interface SelectBoxProps {
111
36
  options: Option[];
112
- /**
113
- * The option that will be selected value
114
- */
115
37
  value?: string | Array<string>;
116
- /**
117
- * If true, the select will be unusable
118
- */
119
38
  isDisabled?: boolean;
120
- /**
121
- * A brief text or hint that appears in the field before the user enters any value
122
- */
123
39
  placeholder?: string;
124
- /**
125
- * Function to be called when clicked on close button
126
- */
127
40
  removeOption?: Function;
128
- /**
129
- * Css styles for the select box and dropdown
130
- */
131
41
  styles?: SelectStyles;
132
- /**
133
- * To set the select's height and width.
134
- */
135
42
  size?: Size;
136
43
  }
137
44
  export interface MultiSelectProps extends Omit<InputProps, 'size'> {
138
- /**
139
- * Option to be displayed
140
- */
141
45
  option: string;
142
- /**
143
- * Function to be called when clicked on close button
144
- */
145
46
  removeOption: Function;
146
- /**
147
- * To set the item's fontSize
148
- */
149
47
  size?: Size;
150
48
  }
151
49
  export interface ItemProps extends Omit<InputProps, 'size'> {
152
- /**
153
- * Function that will be called when the option is clicked
154
- */
155
50
  callback?: Function;
156
- /**
157
- * Option to be displayed
158
- */
159
51
  option: Option;
160
- /**
161
- * To set the item's fontSize
162
- */
163
52
  size?: Size;
164
- /**
165
- * Css styles for the Item
166
- */
167
53
  style?: SelectStyles;
168
54
  }
169
55
  export interface HiddenSelectProps extends Omit<InputProps, 'size'> {
170
- /**
171
- * Identifier
172
- */
173
56
  id?: string;
174
- /**
175
- * The name of the field
176
- */
177
57
  name?: string;
178
- /**
179
- * The option that has been selected
180
- */
181
58
  value: string | Array<string>;
182
- /**
183
- * If true, multiple options can be selected
184
- */
185
59
  isMulti?: boolean;
186
- /**
187
- * If true, select cannot be selected
188
- */
189
60
  isReadOnly?: boolean;
190
- /**
191
- * If true, the dropdown will be unusable
192
- */
193
61
  isDisabled?: boolean;
194
- /**
195
- * Handler when the field value changes
196
- */
197
62
  onChange?: (value: any) => void;
198
- /**
199
- * List of options
200
- */
201
63
  options: Option[];
202
64
  }
203
65
  export interface DropDownProps extends Omit<InputProps, 'size'> {
204
- /**
205
- * To set the height and width of the item list.
206
- */
207
66
  size?: Size;
208
- /**
209
- * Function that will be called when the option is selected
210
- */
211
67
  callback?: Function;
212
- /**
213
- * List of options
214
- */
215
68
  options: Option[];
216
- /**
217
- * Css styles for the select container and label
218
- */
219
69
  styles?: SelectStyles;
220
70
  }
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { SelectProps } from './Select/Select.props';
3
- /**
4
- * Select provides a dropdown list of options for the user to choose from.
5
- */
6
3
  export declare const Select: React.FC<SelectProps>;
@@ -3,62 +3,22 @@ import { Elevation } from '../../../../utils/elevation';
3
3
  import { InputProps, Shadow } from 'app-studio';
4
4
  import { Size, SwitchStyles } from './Switch.type';
5
5
  export interface SwitchProps extends Omit<InputProps, 'size'> {
6
- /**
7
- * The content to be rendered when the switch is active.
8
- */
9
6
  activeChild?: React.ReactNode;
10
- /**
11
- * Specifies the color scheme for the switch's background.
12
- */
13
7
  colorScheme?: string;
14
- /**
15
- * Specifies the unique identifier of the switch.
16
- */
17
8
  id?: string;
18
- /**
19
- * If set to true, the switch is disabled and cannot be interacted with.
20
- */
21
9
  isDisabled?: boolean;
22
- /**
23
- * If set to true, the switch cannot be turned on or off and is in read-only mode.
24
- */
25
10
  isReadOnly?: boolean;
26
- /**
27
- * A callback function that is invoked when the switch's value changes.
28
- */
29
11
  onChange?: Function;
30
- /**
31
- * The name of the switch.
32
- */
33
12
  name?: string;
34
- /**
35
- * The content to be rendered when the switch is inactive.
36
- */
37
13
  inActiveChild?: React.ReactNode;
38
- /**
39
- * Custom CSS styles for the switch container and its components.
40
- */
41
14
  styles?: SwitchStyles;
42
- /**
43
- * Adds a shadow effect to the switch.
44
- */
45
15
  shadow?: Shadow | Elevation | CSSProperties;
46
- /**
47
- * Specifies the size of the switch, affecting its height and width.
48
- */
49
16
  size?: Size;
50
- /**
51
- * Label position
52
- */
53
17
  labelPosition?: 'left' | 'right';
54
18
  }
55
19
  export interface SwitchViewProps extends SwitchProps {
56
- /** Prop indicating if the switch is being hovered */
57
20
  isHovered: boolean;
58
- /** Callback prop to update the hover state of the switch */
59
21
  setIsHovered: Function;
60
- /** Prop indicating the current state of the switch */
61
22
  value?: boolean;
62
- /** Callback prop to update the state of the switch */
63
23
  setValue?: Function;
64
24
  }
@@ -3,138 +3,39 @@ import { InputProps, Shadow } from 'app-studio';
3
3
  import { Elevation } from '../../../../utils/elevation';
4
4
  import { Shape, Size, TextAreaStyles, Variant } from './TextArea.type';
5
5
  export interface TextAreaProps extends Omit<InputProps, 'size'> {
6
- /**
7
- * Changes the label and border color of the input field.
8
- */
9
6
  colorScheme?: string;
10
- /**
11
- * Sets the initial value of the textarea.
12
- */
13
7
  defaultValue?: string;
14
- /**
15
- * Specifies whether the input field should display an error state.
16
- */
17
8
  error?: boolean;
18
- /**
19
- * Specifies whether the text input is editable or not for iOS and Android.
20
- */
21
9
  isEditable?: boolean;
22
- /**
23
- * Provides additional information about the input field.
24
- */
25
10
  helperText?: string;
26
- /**
27
- * The input field identifier.
28
- */
29
11
  id?: string;
30
- /**
31
- * Specifies whether the input field is read-only and cannot be edited.
32
- */
33
12
  isReadOnly?: boolean;
34
- /**
35
- * Specifies whether the input field is disabled and cannot be interacted with.
36
- */
37
13
  isDisabled?: boolean;
38
- /**
39
- * Specifies whether the input field should be automatically focused.
40
- */
41
14
  isAutoFocus?: boolean;
42
- /**
43
- * Specifies whether the input field should allow multiple lines of text.
44
- */
45
15
  isMultiline?: boolean;
46
- /**
47
- * Displays a label above the user input.
48
- */
49
16
  label?: string;
50
- /**
51
- * Specifies the maximum number of rows that the textarea should display.
52
- */
53
17
  maxRows?: number;
54
- /**
55
- * Specifies the maximum number of columns that the textarea should display.
56
- */
57
18
  maxCols?: number;
58
- /**
59
- * The name of the input field.
60
- */
61
19
  name: string;
62
- /**
63
- * Placeholder text to display in the input field until the user enters text.
64
- */
65
20
  placeholder?: string;
66
- /**
67
- * Handler function called when the input field value changes.
68
- */
69
21
  onChange?: (value: any) => void;
70
- /**
71
- * Handler function called when the input field value changes for iOS and Android.
72
- */
73
22
  onChangeText?: (text: string) => void;
74
- /**
75
- * Callback function triggered when the field loses focus.
76
- */
77
23
  onBlur?: (value: any) => void;
78
- /**
79
- * Callback function called when the text input receives focus.
80
- */
81
24
  onFocus?: () => void;
82
- /**
83
- * Sets the text size and padding of the input field.
84
- */
85
25
  size?: Size;
86
- /**
87
- * Applies a shadow effect to the input field.
88
- */
89
26
  shadow?: Shadow | Elevation | CSSProperties;
90
- /**
91
- * Changes the shape or outline of the input field.
92
- */
93
27
  shape?: Shape;
94
- /**
95
- * CSS styles for the input container and field.
96
- */
97
28
  styles?: TextAreaStyles;
98
- /**
99
- * The default value of the input field.
100
- */
101
29
  value?: string | number;
102
- /**
103
- * Changes the style variant of the input field.
104
- */
105
30
  variant?: Variant;
106
31
  }
107
32
  export interface TextAreaViewProps extends TextAreaProps {
108
- /**
109
- * The hint text displayed in the textarea.
110
- */
111
33
  hint?: string;
112
- /**
113
- * Callback prop to update the hint text.
114
- */
115
34
  setHint?: Function;
116
- /**
117
- * Prop indicating if the textarea is being hovered.
118
- */
119
35
  isHovered?: boolean;
120
- /**
121
- * Callback prop to update the hover state of the textarea.
122
- */
123
36
  setIsHovered?: Function;
124
- /**
125
- * The current value of the textarea input.
126
- */
127
37
  value?: string | number;
128
- /**
129
- * Callback prop to update the value of the textarea input.
130
- */
131
38
  setValue?: Function;
132
- /**
133
- * Prop indicating if the textarea is currently focused.
134
- */
135
39
  isFocused?: boolean;
136
- /**
137
- * Callback prop to update the focus state of the textarea.
138
- */
139
40
  setIsFocused?: Function;
140
41
  }
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
2
  import { TextAreaProps } from './TextArea/TextArea.props';
3
- /**
4
- * Text Area is an component used to create a multi-line input field.
5
- */
6
3
  export declare const TextArea: React.FC<TextAreaProps>;