@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.
- package/dist/bot/Bot.d.ts +15 -0
- package/dist/bot/Cache.d.ts +13 -0
- package/dist/bot/Config.d.ts +13 -0
- package/dist/bot/ContentFetcher.d.ts +9 -0
- package/dist/bot/DocuCode.d.ts +19 -0
- package/dist/bot/FileHandler.d.ts +39 -0
- package/dist/bot/ai/AnthropicConnector.d.ts +6 -0
- package/dist/bot/ai/GeminiConnector.d.ts +7 -0
- package/dist/bot/ai/GroqConnector.d.ts +7 -0
- package/dist/bot/ai/HuggingFaceConnector.d.ts +6 -0
- package/dist/bot/ai/OpenAIConnector.d.ts +11 -0
- package/dist/bot/ai/ReplicateConnector.d.ts +7 -0
- package/dist/bot/ai/SambaNovaConnector.d.ts +6 -0
- package/dist/bot/ai/ai.config.d.ts +12 -0
- package/dist/bot/ai/ai.service.d.ts +36 -0
- package/dist/bot/data.d.ts +19 -0
- package/dist/bot/extractors.d.ts +8 -0
- package/dist/bot/index.d.ts +1 -0
- package/dist/bot/prompt/1-project.d.ts +1 -0
- package/dist/bot/prompt/2-response.d.ts +1 -0
- package/dist/bot/prompt/3-comment.d.ts +1 -0
- package/docs/components/Accordion.mdx +74 -121
- package/docs/components/Alert.mdx +19 -70
- package/docs/components/AspectRatio.mdx +13 -11
- package/docs/components/AudioInput.mdx +43 -0
- package/docs/components/Avatar.mdx +18 -43
- package/docs/components/Background.mdx +100 -492
- package/docs/components/Badge.mdx +45 -130
- package/docs/components/Button.mdx +76 -128
- package/docs/components/Calendar.mdx +7 -7
- package/docs/components/Card.mdx +247 -290
- package/docs/components/Carousel.mdx +94 -321
- package/docs/components/Chart.mdx +171 -26
- package/docs/components/ChatInput.mdx +327 -275
- package/docs/components/Checkbox.mdx +3 -5
- package/docs/components/ColorInput.mdx +6 -6
- package/docs/components/ColorPicker.mdx +452 -0
- package/docs/components/ComboBox.mdx +13 -13
- package/docs/components/Command.mdx +140 -188
- package/docs/components/ContextMenu.mdx +47 -171
- package/docs/components/CookieConsent.mdx +53 -0
- package/docs/components/CountryPicker.mdx +8 -8
- package/docs/components/DatePicker.mdx +3 -3
- package/docs/components/DragAndDrop.mdx +279 -463
- package/docs/components/Drawer.mdx +392 -231
- package/docs/components/DropdownMenu.mdx +37 -155
- package/docs/components/EmojiPicker.mdx +84 -0
- package/docs/components/File.mdx +130 -4
- package/docs/components/Formik.mdx +39 -39
- package/docs/components/Gradient.mdx +359 -182
- package/docs/components/Horizontal.mdx +1 -2
- package/docs/components/HoverCard.mdx +57 -125
- package/docs/components/KanbanBoard.mdx +9 -9
- package/docs/components/Link.mdx +22 -30
- package/docs/components/Loader.mdx +230 -413
- package/docs/components/Menubar.mdx +73 -69
- package/docs/components/Message.mdx +210 -525
- package/docs/components/Modal.mdx +351 -475
- package/docs/components/NavigationMenu.mdx +8 -8
- package/docs/components/OTPInput.mdx +194 -0
- package/docs/components/Pagination.mdx +451 -107
- package/docs/components/Password.mdx +8 -8
- package/docs/components/ProgressBar.mdx +460 -0
- package/docs/components/Resizable.mdx +103 -102
- package/docs/components/Select.mdx +5 -5
- package/docs/components/Separator.mdx +11 -98
- package/docs/components/ShareButton.mdx +29 -0
- package/docs/components/Sidebar.mdx +70 -131
- package/docs/components/Slider.mdx +99 -185
- package/docs/components/StatusIndicator.mdx +373 -0
- package/docs/components/Switch.mdx +3 -3
- package/docs/components/Table.mdx +25 -105
- package/docs/components/Tabs.mdx +40 -143
- package/docs/components/TagInput.mdx +17 -17
- package/docs/components/Text.mdx +3 -3
- package/docs/components/TextArea.mdx +6 -6
- package/docs/components/TextField.mdx +12 -12
- package/docs/components/Title.mdx +267 -525
- package/docs/components/Toast.mdx +65 -142
- package/docs/components/Toggle.mdx +37 -49
- package/docs/components/ToggleGroup.mdx +36 -57
- package/docs/components/Tooltip.mdx +501 -138
- package/docs/components/Uploader.mdx +205 -351
- package/package.json +1 -1
- package/dist/components/AuthGuard/AuthGuard.d.ts +0 -35
- package/dist/components/AuthGuard/index.d.ts +0 -1
- package/docs/adk-components.md +0 -319
- package/docs/adk-quick-start.md +0 -268
|
@@ -1,140 +1,72 @@
|
|
|
1
1
|
# HoverCard
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Displays rich content on hover, with customizable trigger and content presentation.
|
|
4
4
|
|
|
5
5
|
### **Import**
|
|
6
|
-
```tsx
|
|
7
|
-
import { HoverCard } from '@app-studio/web';
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
### **Default**
|
|
11
6
|
```tsx
|
|
12
|
-
import
|
|
13
|
-
import { HoverCard } from '../HoverCard';
|
|
14
|
-
import { Button } from '../../Button/Button';
|
|
15
|
-
import { Text } from '@app-studio/web';
|
|
16
|
-
|
|
17
|
-
export const DefaultHoverCard = () => {
|
|
18
|
-
return (
|
|
19
|
-
<HoverCard>
|
|
20
|
-
<HoverCard.Trigger>
|
|
21
|
-
<Button>Hover Me</Button>
|
|
22
|
-
</HoverCard.Trigger>
|
|
23
|
-
<HoverCard.Content>
|
|
24
|
-
<Text>
|
|
25
|
-
The React Framework – created and maintained by @vercel.
|
|
26
|
-
</Text>
|
|
27
|
-
</HoverCard.Content>
|
|
28
|
-
</HoverCard>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
7
|
+
import { HoverCard } from '@app-studio/web';
|
|
31
8
|
```
|
|
32
9
|
|
|
33
|
-
### **
|
|
34
|
-
You can control the position of the HoverCard content using the `side` and `align` props.
|
|
35
|
-
|
|
36
|
-
```tsx
|
|
37
|
-
import React from 'react';
|
|
38
|
-
import { HoverCard } from '../HoverCard';
|
|
39
|
-
import { Button } from '../../Button/Button';
|
|
40
|
-
import { Text } from '@app-studio/web';
|
|
41
|
-
|
|
42
|
-
export const PositionedHoverCard = () => {
|
|
43
|
-
return (
|
|
44
|
-
<HoverCard>
|
|
45
|
-
<HoverCard.Trigger>
|
|
46
|
-
<Button>Hover Me</Button>
|
|
47
|
-
</HoverCard.Trigger>
|
|
48
|
-
<HoverCard.Content side="top" align="center">
|
|
49
|
-
<Text>
|
|
50
|
-
This content appears above the trigger.
|
|
51
|
-
</Text>
|
|
52
|
-
</HoverCard.Content>
|
|
53
|
-
</HoverCard>
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### **Custom Styling**
|
|
59
|
-
You can customize the appearance of the HoverCard using the `views` prop.
|
|
60
|
-
|
|
61
|
-
```tsx
|
|
62
|
-
import React from 'react';
|
|
63
|
-
import { HoverCard } from '../HoverCard';
|
|
64
|
-
import { Button } from '../../Button/Button';
|
|
65
|
-
import { Text } from '@app-studio/web';
|
|
66
|
-
|
|
67
|
-
export const StyledHoverCard = () => {
|
|
68
|
-
return (
|
|
69
|
-
<HoverCard>
|
|
70
|
-
<HoverCard.Trigger>
|
|
71
|
-
<Button variant="outline">Custom Styled HoverCard</Button>
|
|
72
|
-
</HoverCard.Trigger>
|
|
73
|
-
<HoverCard.Content
|
|
74
|
-
views={{
|
|
75
|
-
container: {
|
|
76
|
-
backgroundColor: 'color.blue',
|
|
77
|
-
color: 'color.white',
|
|
78
|
-
borderRadius: '8px',
|
|
79
|
-
padding: '16px',
|
|
80
|
-
},
|
|
81
|
-
}}
|
|
82
|
-
>
|
|
83
|
-
<Text color="white">
|
|
84
|
-
This HoverCard has custom styling with a primary background color.
|
|
85
|
-
</Text>
|
|
86
|
-
</HoverCard.Content>
|
|
87
|
-
</HoverCard>
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### **Delay Options**
|
|
93
|
-
You can control the timing of when the HoverCard opens and closes using the `openDelay` and `closeDelay` props.
|
|
94
|
-
|
|
10
|
+
### **Default**
|
|
95
11
|
```tsx
|
|
96
12
|
import React from 'react';
|
|
97
|
-
import { HoverCard } from '
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
13
|
+
import { HoverCard } from '@app-studio/web';
|
|
14
|
+
import { Text, Vertical, View } from 'app-studio';
|
|
15
|
+
import { Button } from '@app-studio/web';
|
|
100
16
|
|
|
101
|
-
export const
|
|
17
|
+
export const DefaultHoverCard = () => {
|
|
102
18
|
return (
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
19
|
+
<Vertical gap={20} width="100%" maxWidth={400}>
|
|
20
|
+
<View>
|
|
21
|
+
<Text marginBottom={10}>Default HoverCard</Text>
|
|
22
|
+
<HoverCard>
|
|
23
|
+
<HoverCard.Trigger>
|
|
24
|
+
<Button>Hover Me</Button>
|
|
25
|
+
</HoverCard.Trigger>
|
|
26
|
+
<HoverCard.Content>
|
|
27
|
+
<Text>
|
|
28
|
+
The React Framework – created and maintained by @vercel.
|
|
29
|
+
</Text>
|
|
30
|
+
</HoverCard.Content>
|
|
31
|
+
</HoverCard>
|
|
32
|
+
</View>
|
|
33
|
+
|
|
34
|
+
<View>
|
|
35
|
+
<Text marginBottom={10}>HoverCard with different positions</Text>
|
|
36
|
+
<HoverCard>
|
|
37
|
+
<HoverCard.Trigger>
|
|
38
|
+
<Button>Hover for Top Position</Button>
|
|
39
|
+
</HoverCard.Trigger>
|
|
40
|
+
<HoverCard.Content side="top">
|
|
41
|
+
<Text>This content appears above the trigger.</Text>
|
|
42
|
+
</HoverCard.Content>
|
|
43
|
+
</HoverCard>
|
|
44
|
+
</View>
|
|
45
|
+
|
|
46
|
+
<View>
|
|
47
|
+
<Text marginBottom={10}>HoverCard with custom styling</Text>
|
|
48
|
+
<HoverCard>
|
|
49
|
+
<HoverCard.Trigger>
|
|
50
|
+
<Button variant="outline">Custom Styled HoverCard</Button>
|
|
51
|
+
</HoverCard.Trigger>
|
|
52
|
+
<HoverCard.Content
|
|
53
|
+
views={{
|
|
54
|
+
container: {
|
|
55
|
+
backgroundColor: 'color.blue',
|
|
56
|
+
color: 'color.white',
|
|
57
|
+
borderRadius: '8px',
|
|
58
|
+
padding: '16px',
|
|
59
|
+
},
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
<Text color="white">
|
|
63
|
+
This HoverCard has custom styling with a primary background color.
|
|
64
|
+
</Text>
|
|
65
|
+
</HoverCard.Content>
|
|
66
|
+
</HoverCard>
|
|
67
|
+
</View>
|
|
68
|
+
</Vertical>
|
|
113
69
|
);
|
|
114
70
|
};
|
|
115
71
|
```
|
|
116
72
|
|
|
117
|
-
### **Using with Other Components**
|
|
118
|
-
You can use the `asChild` prop on the Trigger to apply hover behavior directly to another component.
|
|
119
|
-
|
|
120
|
-
```tsx
|
|
121
|
-
import React from 'react';
|
|
122
|
-
import { HoverCard } from '../HoverCard';
|
|
123
|
-
import { Link } from '../../Link/Link';
|
|
124
|
-
import { Text } from '@app-studio/web';
|
|
125
|
-
|
|
126
|
-
export const LinkHoverCard = () => {
|
|
127
|
-
return (
|
|
128
|
-
<HoverCard>
|
|
129
|
-
<HoverCard.Trigger asChild>
|
|
130
|
-
<Link to="https://example.com">example.com</Link>
|
|
131
|
-
</HoverCard.Trigger>
|
|
132
|
-
<HoverCard.Content>
|
|
133
|
-
<Text>
|
|
134
|
-
This card uses the asChild prop to apply hover behavior directly to the Link component.
|
|
135
|
-
</Text>
|
|
136
|
-
</HoverCard.Content>
|
|
137
|
-
</HoverCard>
|
|
138
|
-
);
|
|
139
|
-
};
|
|
140
|
-
```
|
|
@@ -21,8 +21,8 @@ A basic Kanban board with three columns and some cards.
|
|
|
21
21
|
|
|
22
22
|
```tsx
|
|
23
23
|
import React, { useState } from 'react';
|
|
24
|
-
import { KanbanBoard } from '
|
|
25
|
-
import { KanbanBoardColumn } from '
|
|
24
|
+
import { KanbanBoard } from '@app-studio/web';
|
|
25
|
+
import { KanbanBoardColumn } from '@app-studio/web';
|
|
26
26
|
|
|
27
27
|
export const DefaultKanbanBoard = () => {
|
|
28
28
|
const [columns, setColumns] = useState<KanbanBoardColumn[]>([
|
|
@@ -61,8 +61,8 @@ Customize how cards are displayed using the `renderCard` prop. This is useful fo
|
|
|
61
61
|
|
|
62
62
|
```tsx
|
|
63
63
|
import React, { useState } from 'react';
|
|
64
|
-
import { KanbanBoard } from '
|
|
65
|
-
import { KanbanBoardColumn, KanbanBoardCard } from '
|
|
64
|
+
import { KanbanBoard } from '@app-studio/web';
|
|
65
|
+
import { KanbanBoardColumn, KanbanBoardCard } from '@app-studio/web';
|
|
66
66
|
import { View, Text, Horizontal } from '@app-studio/web';
|
|
67
67
|
|
|
68
68
|
export const CustomRenderKanbanBoard = () => {
|
|
@@ -129,9 +129,9 @@ Use `renderColumnHeader` to create a custom header, for example to add an "Add C
|
|
|
129
129
|
|
|
130
130
|
```tsx
|
|
131
131
|
import React, { useState } from 'react';
|
|
132
|
-
import { KanbanBoard } from '
|
|
133
|
-
import { Button } from '
|
|
134
|
-
import { KanbanBoardColumn, KanbanBoardCard } from '
|
|
132
|
+
import { KanbanBoard } from '@app-studio/web';
|
|
133
|
+
import { Button } from '@app-studio/web';
|
|
134
|
+
import { KanbanBoardColumn, KanbanBoardCard } from '@app-studio/web';
|
|
135
135
|
import { View, Text, Horizontal } from '@app-studio/web';
|
|
136
136
|
|
|
137
137
|
export const CustomHeaderKanbanBoard = () => {
|
|
@@ -174,8 +174,8 @@ You can implement inline editing of card titles by using the `onCardTitleChange`
|
|
|
174
174
|
|
|
175
175
|
```tsx
|
|
176
176
|
import React, { useState } from 'react';
|
|
177
|
-
import { KanbanBoard } from '
|
|
178
|
-
import { KanbanBoardColumn, KanbanBoardCard } from '
|
|
177
|
+
import { KanbanBoard } from '@app-studio/web';
|
|
178
|
+
import { KanbanBoardColumn, KanbanBoardCard } from '@app-studio/web';
|
|
179
179
|
import { Input, Text } from '@app-studio/web';
|
|
180
180
|
|
|
181
181
|
export const EditableKanbanBoard = () => {
|
package/docs/components/Link.mdx
CHANGED
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
# Link
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This component provides a navigational link that can render children, manage external links, and apply various text decoration styles.
|
|
4
4
|
|
|
5
5
|
### **Import**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
```tsx
|
|
7
|
+
import { Link } from '@app-studio/web';
|
|
8
|
+
```
|
|
9
9
|
|
|
10
10
|
### **Default**
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
|
-
import { Link } from '
|
|
15
|
-
|
|
16
|
-
export const DefaultLink = () => <Link href="/">Default</Link>;
|
|
14
|
+
import { Link } from '@app-studio/web';
|
|
17
15
|
|
|
16
|
+
export const DefaultLink = () => <Link to="/">Default</Link>;
|
|
18
17
|
```
|
|
19
18
|
|
|
20
19
|
### **underline**
|
|
21
20
|
Optional prop to define the text decoration style of the link as underline views.
|
|
22
21
|
|
|
22
|
+
- **Type:** `TextDecorationStyle`
|
|
23
|
+
- **Default:** `default`
|
|
24
|
+
- **Possible Values:** `default, hover, underline`
|
|
25
|
+
|
|
23
26
|
```tsx
|
|
24
27
|
import React from 'react';
|
|
25
|
-
import { Text } from '
|
|
26
|
-
import { Vertical } from '
|
|
28
|
+
import { Text } from 'app-studio';
|
|
29
|
+
import { Vertical } from 'app-studio';
|
|
27
30
|
|
|
28
|
-
import { Link } from '
|
|
31
|
+
import { Link } from '@app-studio/web';
|
|
29
32
|
|
|
30
33
|
export const UnderlineLink = () => (
|
|
31
34
|
<Vertical gap={10}>
|
|
32
|
-
<Link
|
|
35
|
+
<Link to={'https://www.npmjs.com/package/app-studio'} underline="default">
|
|
33
36
|
Default
|
|
34
37
|
</Link>
|
|
35
|
-
<Link
|
|
38
|
+
<Link to={'https://www.npmjs.com/package/app-studio'} underline="hover">
|
|
36
39
|
Hover
|
|
37
40
|
</Link>
|
|
38
41
|
<Link
|
|
39
|
-
|
|
42
|
+
to={'https://www.npmjs.com/package/app-studio'}
|
|
40
43
|
underline="underline"
|
|
41
44
|
color="theme.primary"
|
|
42
45
|
textDecorationColor="theme.primary"
|
|
@@ -45,39 +48,28 @@ export const UnderlineLink = () => (
|
|
|
45
48
|
</Link>
|
|
46
49
|
</Vertical>
|
|
47
50
|
);
|
|
48
|
-
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
### **isExternal**
|
|
52
54
|
Optional boolean indicating whether the link points to an external resource. Default behavior may vary based on this value.
|
|
53
55
|
|
|
56
|
+
- **Type:** `boolean`
|
|
57
|
+
- **Default:** `false`
|
|
58
|
+
|
|
54
59
|
```tsx
|
|
55
60
|
import React from 'react';
|
|
56
|
-
import { Text } from '
|
|
61
|
+
import { Text } from 'app-studio';
|
|
57
62
|
|
|
58
|
-
import { Link } from '
|
|
63
|
+
import { Link } from '@app-studio/web';
|
|
59
64
|
|
|
60
65
|
export const ExternalLink = () => (
|
|
61
66
|
<Link
|
|
62
|
-
|
|
67
|
+
to={'https://www.npmjs.com/package/app-studio'}
|
|
63
68
|
isExternal
|
|
64
69
|
iconSize="md"
|
|
65
70
|
>
|
|
66
71
|
<Text size="xl">External</Text>
|
|
67
72
|
</Link>
|
|
68
73
|
);
|
|
69
|
-
|
|
70
74
|
```
|
|
71
75
|
|
|
72
|
-
## Props
|
|
73
|
-
|
|
74
|
-
| Prop | Type | Description | Default |
|
|
75
|
-
| ------------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
76
|
-
| href | string | The URL or path the link points to. | |
|
|
77
|
-
| underline | string | The text decoration style of the link ('default', 'hover', 'underline'). | |
|
|
78
|
-
| isExternal | boolean | Whether the link points to an external resource. | false |
|
|
79
|
-
| iconSize | Size | The size of the icon if the link is external ('xs', 'sm', 'md', 'lg', 'xl'). | 'md' |
|
|
80
|
-
| color | string | The color of the link text. | |
|
|
81
|
-
| textDecorationColor | string | The color of the text decoration (e.g., underline). | |
|
|
82
|
-
| styles | CSSProperties | Optional custom styles for the link (container, text, icon). | |
|
|
83
|
-
| children | React.ReactNode | The content of the link (typically text or an icon). | |
|