@app-studio/web 0.9.41 → 0.9.43

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 (88) hide show
  1. package/dist/bot/Bot.d.ts +15 -0
  2. package/dist/bot/Cache.d.ts +13 -0
  3. package/dist/bot/Config.d.ts +13 -0
  4. package/dist/bot/ContentFetcher.d.ts +9 -0
  5. package/dist/bot/DocuCode.d.ts +19 -0
  6. package/dist/bot/FileHandler.d.ts +39 -0
  7. package/dist/bot/ai/AnthropicConnector.d.ts +6 -0
  8. package/dist/bot/ai/GeminiConnector.d.ts +7 -0
  9. package/dist/bot/ai/GroqConnector.d.ts +7 -0
  10. package/dist/bot/ai/HuggingFaceConnector.d.ts +6 -0
  11. package/dist/bot/ai/OpenAIConnector.d.ts +11 -0
  12. package/dist/bot/ai/ReplicateConnector.d.ts +7 -0
  13. package/dist/bot/ai/SambaNovaConnector.d.ts +6 -0
  14. package/dist/bot/ai/ai.config.d.ts +12 -0
  15. package/dist/bot/ai/ai.service.d.ts +36 -0
  16. package/dist/bot/data.d.ts +19 -0
  17. package/dist/bot/extractors.d.ts +8 -0
  18. package/dist/bot/index.d.ts +1 -0
  19. package/dist/bot/prompt/1-project.d.ts +1 -0
  20. package/dist/bot/prompt/2-response.d.ts +1 -0
  21. package/dist/bot/prompt/3-comment.d.ts +1 -0
  22. package/docs/components/Accordion.mdx +74 -121
  23. package/docs/components/Alert.mdx +19 -70
  24. package/docs/components/AspectRatio.mdx +13 -11
  25. package/docs/components/AudioInput.mdx +43 -0
  26. package/docs/components/Avatar.mdx +18 -43
  27. package/docs/components/Background.mdx +100 -492
  28. package/docs/components/Badge.mdx +45 -130
  29. package/docs/components/Button.mdx +76 -128
  30. package/docs/components/Calendar.mdx +7 -7
  31. package/docs/components/Card.mdx +247 -290
  32. package/docs/components/Carousel.mdx +94 -321
  33. package/docs/components/Chart.mdx +171 -26
  34. package/docs/components/ChatInput.mdx +327 -275
  35. package/docs/components/Checkbox.mdx +3 -5
  36. package/docs/components/ColorInput.mdx +6 -6
  37. package/docs/components/ColorPicker.mdx +452 -0
  38. package/docs/components/ComboBox.mdx +13 -13
  39. package/docs/components/Command.mdx +140 -188
  40. package/docs/components/ContextMenu.mdx +47 -171
  41. package/docs/components/CookieConsent.mdx +53 -0
  42. package/docs/components/CountryPicker.mdx +8 -8
  43. package/docs/components/DatePicker.mdx +3 -3
  44. package/docs/components/DragAndDrop.mdx +279 -463
  45. package/docs/components/Drawer.mdx +392 -231
  46. package/docs/components/DropdownMenu.mdx +37 -155
  47. package/docs/components/EmojiPicker.mdx +84 -0
  48. package/docs/components/File.mdx +130 -4
  49. package/docs/components/Formik.mdx +39 -39
  50. package/docs/components/Gradient.mdx +359 -182
  51. package/docs/components/Horizontal.mdx +1 -2
  52. package/docs/components/HoverCard.mdx +57 -125
  53. package/docs/components/KanbanBoard.mdx +9 -9
  54. package/docs/components/Link.mdx +22 -30
  55. package/docs/components/Loader.mdx +230 -413
  56. package/docs/components/Menubar.mdx +73 -69
  57. package/docs/components/Message.mdx +210 -525
  58. package/docs/components/Modal.mdx +351 -475
  59. package/docs/components/NavigationMenu.mdx +8 -8
  60. package/docs/components/OTPInput.mdx +194 -0
  61. package/docs/components/Pagination.mdx +451 -107
  62. package/docs/components/Password.mdx +8 -8
  63. package/docs/components/ProgressBar.mdx +460 -0
  64. package/docs/components/Resizable.mdx +103 -102
  65. package/docs/components/Select.mdx +5 -5
  66. package/docs/components/Separator.mdx +11 -98
  67. package/docs/components/ShareButton.mdx +29 -0
  68. package/docs/components/Sidebar.mdx +70 -131
  69. package/docs/components/Slider.mdx +99 -185
  70. package/docs/components/StatusIndicator.mdx +373 -0
  71. package/docs/components/Switch.mdx +3 -3
  72. package/docs/components/Table.mdx +25 -105
  73. package/docs/components/Tabs.mdx +40 -143
  74. package/docs/components/TagInput.mdx +17 -17
  75. package/docs/components/Text.mdx +3 -3
  76. package/docs/components/TextArea.mdx +6 -6
  77. package/docs/components/TextField.mdx +12 -12
  78. package/docs/components/Title.mdx +267 -525
  79. package/docs/components/Toast.mdx +65 -142
  80. package/docs/components/Toggle.mdx +37 -49
  81. package/docs/components/ToggleGroup.mdx +36 -57
  82. package/docs/components/Tooltip.mdx +501 -138
  83. package/docs/components/Uploader.mdx +205 -351
  84. package/package.json +1 -1
  85. package/dist/components/AuthGuard/AuthGuard.d.ts +0 -35
  86. package/dist/components/AuthGuard/index.d.ts +0 -1
  87. package/docs/adk-components.md +0 -319
  88. package/docs/adk-quick-start.md +0 -268
@@ -1,17 +1,17 @@
1
1
  # AspectRatio
2
2
 
3
- Maintains a set aspect ratio for child content
3
+ This component ensures its content maintains a specified aspect ratio, adjusting its size responsively while preserving visual proportions.
4
4
 
5
5
  ### **Import**
6
- ```tsx
7
- import { AspectRatio } from '@app-studio/web';
8
- ```
6
+ ```tsx
7
+ import { AspectRatio } from '@app-studio/web';
8
+ ```
9
9
 
10
10
  ### **Default**
11
11
  ```tsx
12
12
  import React from 'react';
13
- import { Image } from '@app-studio/web';
14
- import { AspectRatio } from '../AspectRatio';
13
+ import { Image } from 'app-studio';
14
+ import { AspectRatio } from '@app-studio/web';
15
15
 
16
16
  export const DefaultDemo = () => {
17
17
  return (
@@ -26,16 +26,19 @@ export const DefaultDemo = () => {
26
26
  </AspectRatio>
27
27
  );
28
28
  };
29
-
30
29
  ```
31
30
 
32
31
  ### **ratio**
33
- specifying the aspect ratio
32
+ Set a default aspect ratio of 16:9 if no ratio is provided as a prop.
33
+
34
+ - **Type:** `number`
35
+ - **Default:** `16 / 9`
36
+ - **Possible Values:** ``
34
37
 
35
38
  ```tsx
36
39
  import React from 'react';
37
- import { Image } from '@app-studio/web';
38
- import { AspectRatio } from '../AspectRatio';
40
+ import { Image } from 'app-studio';
41
+ import { AspectRatio } from '@app-studio/web';
39
42
 
40
43
  export const RatioDemo = () => {
41
44
  return (
@@ -50,6 +53,5 @@ export const RatioDemo = () => {
50
53
  </AspectRatio>
51
54
  );
52
55
  };
53
-
54
56
  ```
55
57
 
@@ -0,0 +1,43 @@
1
+ # AudioInput
2
+
3
+ Provides a user interface for recording, playing, and uploading audio content.
4
+
5
+ ### **Import**
6
+ ```tsx
7
+ import { AudioInput } from '@app-studio/web';
8
+ ```
9
+
10
+ ### **Default**
11
+ ```tsx
12
+ import React, { useState } from 'react';
13
+ import { AudioInput } from '@app-studio/web';
14
+ import { View, Text, Button } from 'app-studio';
15
+
16
+ export const Default = () => {
17
+ const [audioFile, setAudioFile] = useState<File | null>(null);
18
+
19
+ const handleAudio = (file: File) => {
20
+ setAudioFile(file);
21
+ };
22
+
23
+ return (
24
+ <View flexDirection="column" gap={4} padding={4} alignItems="flex-start">
25
+ <Text variant="heading" size="lg">
26
+ Audio Input Example
27
+ </Text>
28
+ <AudioInput onAudio={handleAudio} />
29
+ {audioFile && (
30
+ <View flexDirection="column" gap={2}>
31
+ <Text>
32
+ Recorded Audio: <strong>{audioFile.name}</strong> (
33
+ {(audioFile.size / 1024).toFixed(2)} KB)
34
+ </Text>
35
+ <audio controls src={URL.createObjectURL(audioFile)} />
36
+ <Button onPress={() => setAudioFile(null)}>Clear Audio</Button>
37
+ </View>
38
+ )}
39
+ </View>
40
+ );
41
+ };
42
+ ```
43
+
@@ -1,31 +1,34 @@
1
1
  # Avatar
2
2
 
3
- Displays a circular avatar with image fallback and custom styling options.
3
+ Displays a user's avatar, which can be an image or initials, with customizable size and styles.
4
4
 
5
5
  ### **Import**
6
- ```tsx
7
- import { Avatar } from '@app-studio/web';
8
- ```
6
+ ```tsx
7
+ import { Avatar } from '@app-studio/web';
8
+ ```
9
9
 
10
10
  ### **Default**
11
11
  ```tsx
12
12
  import React from 'react';
13
- import { Avatar } from '../Avatar';
13
+ import { Avatar } from '@app-studio/web';
14
14
 
15
15
  export const DefaultDemo = () => (
16
16
  <Avatar src="https://t3.ftcdn.net/jpg/06/17/13/26/360_F_617132669_YptvM7fIuczaUbYYpMe3VTLimwZwzlWf.jpg" />
17
17
  );
18
-
19
18
  ```
20
19
 
21
20
  ### **size**
22
- Optional property to specify the size of the avatar, from predefined Size options.
21
+ Optional size of the avatar, predefined in 'Size' type.
22
+
23
+ - **Type:** `Size`
24
+ - **Default:** `md`
25
+ - **Possible Values:** `xs, sm, md, lg, xl`
23
26
 
24
27
  ```tsx
25
28
  import React from 'react';
26
- import { Vertical } from '@app-studio/web';
27
- import { Avatar } from '../Avatar';
28
- import { Size } from '../Avatar/Avatar.type';
29
+ import { Vertical } from 'app-studio';
30
+ import { Avatar } from '@app-studio/web';
31
+ import { Size } from '@app-studio/web';
29
32
 
30
33
  export const SizeDemo = () => {
31
34
  return (
@@ -40,46 +43,18 @@ export const SizeDemo = () => {
40
43
  </Vertical>
41
44
  );
42
45
  };
43
-
44
46
  ```
45
47
 
46
48
  ### **fallback**
47
- Optional string for an image URL to use if the primary 'src' fails to load.
49
+ URL or path for the fallback image if the source fails to load.
48
50
 
49
- ```tsx
50
- import React from 'react';
51
- import { Avatar } from '../Avatar';
52
-
53
- export const FallbackDemo = () => <Avatar src="" fallback="ML" />;
54
-
55
- ```
56
-
57
- ### **styles**
58
- Optional object to apply custom styles to the avatar component.
51
+ - **Type:** `string`
52
+ - **Default:** `IM`
59
53
 
60
54
  ```tsx
61
55
  import React from 'react';
62
- import { Avatar } from '../Avatar';
63
-
64
- export const StylesDemo = () => {
65
- return (
66
- <Avatar
67
- src="https://t3.ftcdn.net/jpg/06/17/13/26/360_F_617132669_YptvM7fIuczaUbYYpMe3VTLimwZwzlWf.jpg"
68
- views={{
69
- container: {
70
- boxShadow: 'none', // Add shadow effect
71
- },
72
- fallback: {
73
- color: 'theme.secondary',
74
- },
75
- image: {
76
- objectFit: 'fill',
77
- },
78
- }}
79
- onClick={() => console.log('hello')}
80
- />
81
- );
82
- };
56
+ import { Avatar } from '@app-studio/web';
83
57
 
58
+ export const FallbackDemo = () => <Avatar src="" fallback="ML" />;
84
59
  ```
85
60