@app-studio/web 0.9.41 → 0.9.44

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 (101) 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/dist/components/Title/Title/SlideEffect.d.ts +14 -0
  23. package/dist/components/Title/Title/Title.props.d.ts +20 -0
  24. package/dist/components/Title/Title/Title.state.d.ts +4 -0
  25. package/dist/web.cjs.development.js +265 -78
  26. package/dist/web.cjs.development.js.map +1 -1
  27. package/dist/web.cjs.production.min.js +1 -1
  28. package/dist/web.cjs.production.min.js.map +1 -1
  29. package/dist/web.esm.js +265 -78
  30. package/dist/web.esm.js.map +1 -1
  31. package/dist/web.umd.development.js +265 -78
  32. package/dist/web.umd.development.js.map +1 -1
  33. package/dist/web.umd.production.min.js +1 -1
  34. package/dist/web.umd.production.min.js.map +1 -1
  35. package/docs/components/Accordion.mdx +74 -121
  36. package/docs/components/Alert.mdx +19 -70
  37. package/docs/components/AspectRatio.mdx +13 -11
  38. package/docs/components/AudioInput.mdx +43 -0
  39. package/docs/components/Avatar.mdx +18 -43
  40. package/docs/components/Background.mdx +100 -492
  41. package/docs/components/Badge.mdx +45 -130
  42. package/docs/components/Button.mdx +76 -128
  43. package/docs/components/Calendar.mdx +7 -7
  44. package/docs/components/Card.mdx +247 -290
  45. package/docs/components/Carousel.mdx +94 -321
  46. package/docs/components/Chart.mdx +171 -26
  47. package/docs/components/ChatInput.mdx +327 -275
  48. package/docs/components/Checkbox.mdx +3 -5
  49. package/docs/components/ColorInput.mdx +6 -6
  50. package/docs/components/ColorPicker.mdx +452 -0
  51. package/docs/components/ComboBox.mdx +13 -13
  52. package/docs/components/Command.mdx +140 -188
  53. package/docs/components/ContextMenu.mdx +47 -171
  54. package/docs/components/CookieConsent.mdx +53 -0
  55. package/docs/components/CountryPicker.mdx +8 -8
  56. package/docs/components/DatePicker.mdx +3 -3
  57. package/docs/components/DragAndDrop.mdx +279 -463
  58. package/docs/components/Drawer.mdx +392 -231
  59. package/docs/components/DropdownMenu.mdx +37 -155
  60. package/docs/components/EmojiPicker.mdx +84 -0
  61. package/docs/components/File.mdx +130 -4
  62. package/docs/components/Formik.mdx +39 -39
  63. package/docs/components/Gradient.mdx +359 -182
  64. package/docs/components/Horizontal.mdx +1 -2
  65. package/docs/components/HoverCard.mdx +57 -125
  66. package/docs/components/KanbanBoard.mdx +9 -9
  67. package/docs/components/Link.mdx +22 -30
  68. package/docs/components/Loader.mdx +230 -413
  69. package/docs/components/Menubar.mdx +73 -69
  70. package/docs/components/Message.mdx +210 -525
  71. package/docs/components/Modal.mdx +351 -475
  72. package/docs/components/NavigationMenu.mdx +8 -8
  73. package/docs/components/OTPInput.mdx +194 -0
  74. package/docs/components/Pagination.mdx +451 -107
  75. package/docs/components/Password.mdx +8 -8
  76. package/docs/components/ProgressBar.mdx +460 -0
  77. package/docs/components/Resizable.mdx +103 -102
  78. package/docs/components/Select.mdx +5 -5
  79. package/docs/components/Separator.mdx +11 -98
  80. package/docs/components/ShareButton.mdx +29 -0
  81. package/docs/components/Sidebar.mdx +70 -131
  82. package/docs/components/Slider.mdx +99 -185
  83. package/docs/components/StatusIndicator.mdx +373 -0
  84. package/docs/components/Switch.mdx +3 -3
  85. package/docs/components/Table.mdx +25 -105
  86. package/docs/components/Tabs.mdx +40 -143
  87. package/docs/components/TagInput.mdx +17 -17
  88. package/docs/components/Text.mdx +3 -3
  89. package/docs/components/TextArea.mdx +6 -6
  90. package/docs/components/TextField.mdx +12 -12
  91. package/docs/components/Title.mdx +267 -525
  92. package/docs/components/Toast.mdx +65 -142
  93. package/docs/components/Toggle.mdx +37 -49
  94. package/docs/components/ToggleGroup.mdx +36 -57
  95. package/docs/components/Tooltip.mdx +501 -138
  96. package/docs/components/Uploader.mdx +205 -351
  97. package/package.json +1 -1
  98. package/dist/components/AuthGuard/AuthGuard.d.ts +0 -35
  99. package/dist/components/AuthGuard/index.d.ts +0 -1
  100. package/docs/adk-components.md +0 -319
  101. package/docs/adk-quick-start.md +0 -268
@@ -1,21 +1,22 @@
1
1
  # Menubar
2
2
 
3
- A flexible menubar component for creating application menus with dropdown submenus.
3
+ A versatile component for structured navigation, displaying a list of interactive items and their sub-menus.
4
4
 
5
5
  ### **Import**
6
- ```tsx
7
- import { Menubar } from '@app-studio/web';
8
- ```
6
+ ```tsx
7
+ import { Menubar } from '@app-studio/web';
8
+ ```
9
9
 
10
10
  ### **Default**
11
11
  ```tsx
12
12
  import React from 'react';
13
- import { Menubar } from '../Menubar';
14
- import { View } from '@app-studio/web';
15
- import { Text } from '@app-studio/web';
13
+ import { Menubar } from '@app-studio/web';
14
+ import { View } from 'app-studio';
15
+ import { Text } from 'app-studio';
16
+ import { EditIcon } from '@app-studio/web';
16
17
 
17
18
  export const DefaultMenubar = () => {
18
- const items = [
19
+ const items: any[] = [
19
20
  {
20
21
  id: 'file',
21
22
  label: 'File',
@@ -23,6 +24,7 @@ export const DefaultMenubar = () => {
23
24
  {
24
25
  id: 'new',
25
26
  label: 'New',
27
+ icon: <EditIcon size={16} />,
26
28
  onClick: () => console.log('New clicked'),
27
29
  },
28
30
  {
@@ -36,6 +38,11 @@ export const DefaultMenubar = () => {
36
38
  label: 'Save',
37
39
  onClick: () => console.log('Save clicked'),
38
40
  },
41
+ {
42
+ id: 'save-as',
43
+ label: 'Save As',
44
+ onClick: () => console.log('Save As clicked'),
45
+ },
39
46
  ],
40
47
  },
41
48
  {
@@ -52,73 +59,70 @@ export const DefaultMenubar = () => {
52
59
  label: 'Redo',
53
60
  onClick: () => console.log('Redo clicked'),
54
61
  },
62
+ { separator: true },
63
+ {
64
+ id: 'cut',
65
+ label: 'Cut',
66
+ onClick: () => console.log('Cut clicked'),
67
+ },
68
+ {
69
+ id: 'copy',
70
+ label: 'Copy',
71
+ onClick: () => console.log('Copy clicked'),
72
+ },
73
+ {
74
+ id: 'paste',
75
+ label: 'Paste',
76
+ onClick: () => console.log('Paste clicked'),
77
+ },
78
+ ],
79
+ },
80
+ {
81
+ id: 'view',
82
+ label: 'View',
83
+ items: [
84
+ {
85
+ id: 'zoom-in',
86
+ label: 'Zoom In',
87
+ onClick: () => console.log('Zoom In clicked'),
88
+ },
89
+ {
90
+ id: 'zoom-out',
91
+ label: 'Zoom Out',
92
+ onClick: () => console.log('Zoom Out clicked'),
93
+ },
94
+ { separator: true },
95
+ {
96
+ id: 'fullscreen',
97
+ label: 'Fullscreen',
98
+ onClick: () => console.log('Fullscreen clicked'),
99
+ },
100
+ ],
101
+ },
102
+ {
103
+ id: 'help',
104
+ label: 'Help',
105
+ items: [
106
+ {
107
+ id: 'documentation',
108
+ label: 'Documentation',
109
+ onClick: () => console.log('Documentation clicked'),
110
+ },
111
+ {
112
+ id: 'about',
113
+ label: 'About',
114
+ onClick: () => console.log('About clicked'),
115
+ },
55
116
  ],
56
117
  },
57
118
  ];
58
119
 
59
120
  return (
60
- <Menubar items={items} />
121
+ <View width="100%">
122
+ <Text marginBottom={10}>Default Menubar</Text>
123
+ <Menubar items={items} />
124
+ </View>
61
125
  );
62
126
  };
63
127
  ```
64
128
 
65
- ### **Variants**
66
- The Menubar component supports different visual variants:
67
-
68
- ```tsx
69
- <Menubar items={items} variant="default" />
70
- <Menubar items={items} variant="filled" />
71
- <Menubar items={items} variant="outline" />
72
- ```
73
-
74
- ### **Orientation**
75
- The Menubar can be displayed horizontally or vertically:
76
-
77
- ```tsx
78
- <Menubar items={items} orientation="horizontal" />
79
- <Menubar items={items} orientation="vertical" />
80
- ```
81
-
82
- ### **Sizes**
83
- The Menubar supports different sizes:
84
-
85
- ```tsx
86
- <Menubar items={items} size="sm" />
87
- <Menubar items={items} size="md" />
88
- <Menubar items={items} size="lg" />
89
- ```
90
-
91
- ### **Composite Pattern**
92
- You can also use the Menubar's subcomponents for more control:
93
-
94
- ```tsx
95
- <Menubar.Root orientation="horizontal" variant="outline">
96
- <Menubar.Menu id="file">
97
- <Menubar.Trigger>File</Menubar.Trigger>
98
- <Menubar.Content>
99
- <Menubar.Item id="new" onClick={() => console.log('New clicked')}>
100
- New
101
- </Menubar.Item>
102
- <Menubar.Item id="open" onClick={() => console.log('Open clicked')}>
103
- Open
104
- </Menubar.Item>
105
- <Menubar.Separator />
106
- <Menubar.Item id="save" onClick={() => console.log('Save clicked')}>
107
- Save
108
- </Menubar.Item>
109
- </Menubar.Content>
110
- </Menubar.Menu>
111
-
112
- <Menubar.Menu id="edit">
113
- <Menubar.Trigger>Edit</Menubar.Trigger>
114
- <Menubar.Content>
115
- <Menubar.Item id="undo" onClick={() => console.log('Undo clicked')}>
116
- Undo
117
- </Menubar.Item>
118
- <Menubar.Item id="redo" onClick={() => console.log('Redo clicked')}>
119
- Redo
120
- </Menubar.Item>
121
- </Menubar.Content>
122
- </Menubar.Menu>
123
- </Menubar.Root>
124
- ```