@app-studio/web 0.9.38 → 0.9.41
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/Title/Title/Title.style.d.ts +0 -1
- package/dist/web.cjs.development.js +0 -19
- 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 +0 -19
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +0 -19
- 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/docs/components/Accordion.mdx +4 -4
- package/docs/components/Alert.mdx +3 -3
- package/docs/components/AspectRatio.mdx +2 -2
- package/docs/components/Avatar.mdx +1 -1
- package/docs/components/Background.mdx +6 -6
- package/docs/components/Badge.mdx +11 -11
- package/docs/components/Button.mdx +7 -7
- package/docs/components/Card.mdx +15 -15
- package/docs/components/Carousel.mdx +13 -13
- package/docs/components/Center.mdx +22 -22
- package/docs/components/Chart.mdx +6 -6
- package/docs/components/ChatInput.mdx +7 -7
- package/docs/components/Checkbox.mdx +1 -1
- package/docs/components/ColorInput.mdx +4 -4
- package/docs/components/ComboBox.mdx +1 -1
- package/docs/components/ContextMenu.mdx +4 -4
- package/docs/components/CountryPicker.mdx +2 -2
- package/docs/components/DatePicker.mdx +1 -1
- package/docs/components/DragAndDrop.mdx +3 -3
- package/docs/components/Drawer.mdx +242 -102
- package/docs/components/Flow.mdx +3 -3
- package/docs/components/Form.mdx +4 -4
- package/docs/components/Formik.mdx +2 -2
- package/docs/components/Gradient.mdx +14 -14
- package/docs/components/Horizontal.mdx +1 -1
- package/docs/components/HoverCard.mdx +5 -5
- package/docs/components/Icon.mdx +10 -10
- package/docs/components/KanbanBoard.mdx +3 -3
- package/docs/components/Label.mdx +8 -8
- package/docs/components/Link.mdx +3 -3
- package/docs/components/Loader.mdx +12 -12
- package/docs/components/Menubar.mdx +2 -2
- package/docs/components/Message.mdx +5 -5
- package/docs/components/Modal.mdx +5 -5
- package/docs/components/Slider.mdx +1 -1
- package/docs/components/Tabs.mdx +1 -1
- package/docs/components/TagInput.mdx +15 -15
- package/docs/components/TextArea.mdx +3 -3
- package/docs/components/TextField.mdx +5 -5
- package/docs/components/Toggle.mdx +4 -4
- package/docs/components/ToggleGroup.mdx +9 -9
- package/docs/components/Tooltip.mdx +6 -6
- package/docs/components/Tree.mdx +4 -4
- package/docs/components/Uploader.mdx +2 -2
- package/docs/components/Vertical.mdx +22 -22
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ A component that displays collapsible content panels for presenting information
|
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Accordion } from '../Accordion';
|
|
14
|
-
import { Text } from 'app-studio';
|
|
14
|
+
import { Text } from '@app-studio/web';
|
|
15
15
|
|
|
16
16
|
export const DefaultAccordion = () => {
|
|
17
17
|
return (
|
|
@@ -48,7 +48,7 @@ Allow multiple items to be expanded at once.
|
|
|
48
48
|
```tsx
|
|
49
49
|
import React from 'react';
|
|
50
50
|
import { Accordion } from '../Accordion';
|
|
51
|
-
import { Text } from 'app-studio';
|
|
51
|
+
import { Text } from '@app-studio/web';
|
|
52
52
|
|
|
53
53
|
export const MultipleAccordion = () => {
|
|
54
54
|
return (
|
|
@@ -85,7 +85,7 @@ Different visual styles for the accordion.
|
|
|
85
85
|
```tsx
|
|
86
86
|
import React from 'react';
|
|
87
87
|
import { Accordion } from '../Accordion';
|
|
88
|
-
import { Text } from 'app-studio';
|
|
88
|
+
import { Text } from '@app-studio/web';
|
|
89
89
|
|
|
90
90
|
export const AccordionVariants = () => {
|
|
91
91
|
return (
|
|
@@ -126,7 +126,7 @@ Disable specific accordion items.
|
|
|
126
126
|
```tsx
|
|
127
127
|
import React from 'react';
|
|
128
128
|
import { Accordion } from '../Accordion';
|
|
129
|
-
import { Text } from 'app-studio';
|
|
129
|
+
import { Text } from '@app-studio/web';
|
|
130
130
|
|
|
131
131
|
export const DisabledAccordion = () => {
|
|
132
132
|
return (
|
|
@@ -48,7 +48,7 @@ Optional variant property to determine the style of the alert
|
|
|
48
48
|
|
|
49
49
|
```tsx
|
|
50
50
|
import React from 'react';
|
|
51
|
-
import { Horizontal } from 'app-studio';
|
|
51
|
+
import { Horizontal } from '@app-studio/web';
|
|
52
52
|
import { Alert } from '../Alert';
|
|
53
53
|
import { Variant } from '../Alert/Alert.type';
|
|
54
54
|
|
|
@@ -95,8 +95,8 @@ The Alert component supports both light and dark themes through the `themeMode`
|
|
|
95
95
|
```tsx
|
|
96
96
|
import React from 'react';
|
|
97
97
|
import { Alert } from '../Alert';
|
|
98
|
-
import { Vertical } from 'app-studio';
|
|
99
|
-
import { Text } from 'app-studio';
|
|
98
|
+
import { Vertical } from '@app-studio/web';
|
|
99
|
+
import { Text } from '@app-studio/web';
|
|
100
100
|
|
|
101
101
|
export const DarkModeDemo = () => {
|
|
102
102
|
return (
|
|
@@ -10,7 +10,7 @@ Maintains a set aspect ratio for child content
|
|
|
10
10
|
### **Default**
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { Image } from 'app-studio';
|
|
13
|
+
import { Image } from '@app-studio/web';
|
|
14
14
|
import { AspectRatio } from '../AspectRatio';
|
|
15
15
|
|
|
16
16
|
export const DefaultDemo = () => {
|
|
@@ -34,7 +34,7 @@ specifying the aspect ratio
|
|
|
34
34
|
|
|
35
35
|
```tsx
|
|
36
36
|
import React from 'react';
|
|
37
|
-
import { Image } from 'app-studio';
|
|
37
|
+
import { Image } from '@app-studio/web';
|
|
38
38
|
import { AspectRatio } from '../AspectRatio';
|
|
39
39
|
|
|
40
40
|
export const RatioDemo = () => {
|
|
@@ -23,7 +23,7 @@ Optional property to specify the size of the avatar, from predefined Size option
|
|
|
23
23
|
|
|
24
24
|
```tsx
|
|
25
25
|
import React from 'react';
|
|
26
|
-
import { Vertical } from 'app-studio';
|
|
26
|
+
import { Vertical } from '@app-studio/web';
|
|
27
27
|
import { Avatar } from '../Avatar';
|
|
28
28
|
import { Size } from '../Avatar/Avatar.type';
|
|
29
29
|
|
|
@@ -13,7 +13,7 @@ Creates a beautiful animated aurora gradient background effect.
|
|
|
13
13
|
```tsx
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { Background } from '../Background';
|
|
16
|
-
import { Text } from 'app-studio';
|
|
16
|
+
import { Text } from '@app-studio/web';
|
|
17
17
|
|
|
18
18
|
export const AuroraDemo = () => (
|
|
19
19
|
<Background.Aurora height="300px" showRadialGradient={true}>
|
|
@@ -30,7 +30,7 @@ Animated falling meteors effect with customizable count.
|
|
|
30
30
|
```tsx
|
|
31
31
|
import React from 'react';
|
|
32
32
|
import { Background } from '../Background';
|
|
33
|
-
import { Text } from 'app-studio';
|
|
33
|
+
import { Text } from '@app-studio/web';
|
|
34
34
|
|
|
35
35
|
export const MeteorsDemo = () => (
|
|
36
36
|
<Background.Meteors number={20} height="300px">
|
|
@@ -106,7 +106,7 @@ Display images as backgrounds with overlay support and blend modes.
|
|
|
106
106
|
```tsx
|
|
107
107
|
import React from 'react';
|
|
108
108
|
import { Background } from '../Background';
|
|
109
|
-
import { Text } from 'app-studio';
|
|
109
|
+
import { Text } from '@app-studio/web';
|
|
110
110
|
|
|
111
111
|
export const BackgroundImageDemo = () => (
|
|
112
112
|
<Background.Image
|
|
@@ -129,7 +129,7 @@ Create beautiful gradient backgrounds with animation support.
|
|
|
129
129
|
```tsx
|
|
130
130
|
import React from 'react';
|
|
131
131
|
import { Background } from '../Background';
|
|
132
|
-
import { Text } from 'app-studio';
|
|
132
|
+
import { Text } from '@app-studio/web';
|
|
133
133
|
|
|
134
134
|
// Simple two-color gradient
|
|
135
135
|
export const SimpleGradientDemo = () => (
|
|
@@ -228,8 +228,8 @@ Multiple background effects can be combined for rich visual experiences.
|
|
|
228
228
|
```tsx
|
|
229
229
|
import React from 'react';
|
|
230
230
|
import { Background } from '../Background';
|
|
231
|
-
import { Text } from 'app-studio';
|
|
232
|
-
import { Vertical, Horizontal } from 'app-studio';
|
|
231
|
+
import { Text } from '@app-studio/web';
|
|
232
|
+
import { Vertical, Horizontal } from '@app-studio/web';
|
|
233
233
|
|
|
234
234
|
// Aurora with content
|
|
235
235
|
export const CombinedAuroraDemo = () => (
|
|
@@ -32,11 +32,11 @@ Determines the Badge's style variant.
|
|
|
32
32
|
|
|
33
33
|
```tsx
|
|
34
34
|
import React from 'react';
|
|
35
|
-
import { Vertical } from 'app-studio';
|
|
35
|
+
import { Vertical } from '@app-studio/web';
|
|
36
36
|
|
|
37
37
|
import { Badge } from '../Badge';
|
|
38
38
|
import { Variant } from '../Badge/Badge.type';
|
|
39
|
-
import { View } from 'app-studio';
|
|
39
|
+
import { View } from '@app-studio/web';
|
|
40
40
|
export const VariantDemo = () => (
|
|
41
41
|
<Vertical gap={15}>
|
|
42
42
|
{['filled', 'outline', 'link', 'ghost'].map((variant, index) => (
|
|
@@ -59,7 +59,7 @@ Specifies a custom color scheme for the Badge.
|
|
|
59
59
|
```tsx
|
|
60
60
|
import React from 'react';
|
|
61
61
|
import { Badge } from '../Badge';
|
|
62
|
-
import { Horizontal } from 'app-studio';
|
|
62
|
+
import { Horizontal } from '@app-studio/web';
|
|
63
63
|
|
|
64
64
|
export const ColorSchemeDemo = () => (
|
|
65
65
|
<Horizontal gap={10}>
|
|
@@ -83,8 +83,8 @@ Defines the position of the Badge relative to its container.
|
|
|
83
83
|
```tsx
|
|
84
84
|
import React from 'react';
|
|
85
85
|
import { Badge } from '../Badge';
|
|
86
|
-
import { View } from 'app-studio';
|
|
87
|
-
import { Horizontal } from 'app-studio';
|
|
86
|
+
import { View } from '@app-studio/web';
|
|
87
|
+
import { Horizontal } from '@app-studio/web';
|
|
88
88
|
import { Position } from '../Badge/Badge.type';
|
|
89
89
|
|
|
90
90
|
export const PositionDemo = () => (
|
|
@@ -112,11 +112,11 @@ Determines the size of the Badge.
|
|
|
112
112
|
|
|
113
113
|
```tsx
|
|
114
114
|
import React from 'react';
|
|
115
|
-
import { Vertical } from 'app-studio';
|
|
115
|
+
import { Vertical } from '@app-studio/web';
|
|
116
116
|
|
|
117
117
|
import { Badge } from '../Badge';
|
|
118
118
|
import { Size } from '../Badge/Badge.type';
|
|
119
|
-
import { View } from 'app-studio';
|
|
119
|
+
import { View } from '@app-studio/web';
|
|
120
120
|
export const SizeDemo = () => (
|
|
121
121
|
<Vertical gap={10}>
|
|
122
122
|
{['xs', 'sm', 'md', 'lg', 'xl'].map((size, index) => (
|
|
@@ -134,10 +134,10 @@ Specifies the shape of the Badge.
|
|
|
134
134
|
|
|
135
135
|
```tsx
|
|
136
136
|
import React from 'react';
|
|
137
|
-
import { Horizontal } from 'app-studio';
|
|
137
|
+
import { Horizontal } from '@app-studio/web';
|
|
138
138
|
import { Badge } from '../Badge';
|
|
139
139
|
import { Shape } from '../Badge/Badge.type';
|
|
140
|
-
import { View } from 'app-studio';
|
|
140
|
+
import { View } from '@app-studio/web';
|
|
141
141
|
export const ShapeDemo = () => (
|
|
142
142
|
<Horizontal gap={15}>
|
|
143
143
|
{['sharp', 'rounded', 'pillShaped'].map((border, index) => (
|
|
@@ -181,8 +181,8 @@ The Badge component supports both light and dark themes through the `themeMode`
|
|
|
181
181
|
```tsx
|
|
182
182
|
import React from 'react';
|
|
183
183
|
import { Badge } from '../Badge';
|
|
184
|
-
import { Vertical, Horizontal } from 'app-studio';
|
|
185
|
-
import { Text } from 'app-studio';
|
|
184
|
+
import { Vertical, Horizontal } from '@app-studio/web';
|
|
185
|
+
import { Text } from '@app-studio/web';
|
|
186
186
|
import { Variant } from '../Badge/Badge.type';
|
|
187
187
|
|
|
188
188
|
export const DarkModeDemo = () => {
|
|
@@ -24,7 +24,7 @@ Optional string to define the color scheme of the button.
|
|
|
24
24
|
```tsx
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import { Button } from '../Button';
|
|
27
|
-
import { Horizontal } from 'app-studio';
|
|
27
|
+
import { Horizontal } from '@app-studio/web';
|
|
28
28
|
|
|
29
29
|
export const ColoredButtons = () => (
|
|
30
30
|
<Horizontal gap={10}>
|
|
@@ -50,7 +50,7 @@ Optional LoaderProps object to configure the appearance and behavior of the load
|
|
|
50
50
|
```tsx
|
|
51
51
|
import React from 'react';
|
|
52
52
|
import { Button } from '../Button';
|
|
53
|
-
import { Vertical } from 'app-studio';
|
|
53
|
+
import { Vertical } from '@app-studio/web';
|
|
54
54
|
|
|
55
55
|
export const LoaderButtons = () => (
|
|
56
56
|
<Vertical gap={15}>
|
|
@@ -97,7 +97,7 @@ Optional React node(s) defining the icon to be displayed within the button.
|
|
|
97
97
|
```tsx
|
|
98
98
|
import React from 'react';
|
|
99
99
|
import { Button } from '../Button';
|
|
100
|
-
import { Center } from 'app-studio';
|
|
100
|
+
import { Center } from '@app-studio/web';
|
|
101
101
|
|
|
102
102
|
import { DustBinIcon } from '../../Icon/Icon';
|
|
103
103
|
|
|
@@ -154,7 +154,7 @@ Optional boolean indicating if the button size should automatically adjust to it
|
|
|
154
154
|
```tsx
|
|
155
155
|
import React from 'react';
|
|
156
156
|
import { Button } from '../Button';
|
|
157
|
-
import { Horizontal } from 'app-studio';
|
|
157
|
+
import { Horizontal } from '@app-studio/web';
|
|
158
158
|
|
|
159
159
|
import { Shape } from '../Button/Button.type';
|
|
160
160
|
|
|
@@ -176,7 +176,7 @@ Optional Size to specify the size of the button.
|
|
|
176
176
|
```tsx
|
|
177
177
|
import React from 'react';
|
|
178
178
|
import { Button } from '../Button';
|
|
179
|
-
import { Vertical } from 'app-studio';
|
|
179
|
+
import { Vertical } from '@app-studio/web';
|
|
180
180
|
|
|
181
181
|
import { Size } from '../Button/Button.type';
|
|
182
182
|
|
|
@@ -213,7 +213,7 @@ Optional Variant to define the stylistic variation of the button.
|
|
|
213
213
|
```tsx
|
|
214
214
|
import React from 'react';
|
|
215
215
|
import { Button } from '../Button';
|
|
216
|
-
import { Vertical } from 'app-studio';
|
|
216
|
+
import { Vertical } from '@app-studio/web';
|
|
217
217
|
|
|
218
218
|
import { Variant } from '../Button/Button.type';
|
|
219
219
|
|
|
@@ -251,7 +251,7 @@ Optional effect to apply interactive effects (e.g., ripple) to the button.
|
|
|
251
251
|
```tsx
|
|
252
252
|
import React from 'react';
|
|
253
253
|
import { Button } from '../../Button/Button';
|
|
254
|
-
import { Horizontal } from 'app-studio';
|
|
254
|
+
import { Horizontal } from '@app-studio/web';
|
|
255
255
|
|
|
256
256
|
export const EffectButton = () => (
|
|
257
257
|
<Horizontal gap={10}>
|
package/docs/components/Card.mdx
CHANGED
|
@@ -11,7 +11,7 @@ A flexible container component for organizing and displaying content.
|
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Card } from '../Card';
|
|
14
|
-
import { Text } from 'app-studio';
|
|
14
|
+
import { Text } from '@app-studio/web';
|
|
15
15
|
|
|
16
16
|
export const DefaultDemo = () => {
|
|
17
17
|
return (
|
|
@@ -28,8 +28,8 @@ Different visual styles for the card.
|
|
|
28
28
|
```tsx
|
|
29
29
|
import React from 'react';
|
|
30
30
|
import { Card } from '../Card';
|
|
31
|
-
import { Text } from 'app-studio';
|
|
32
|
-
import { Vertical } from 'app-studio';
|
|
31
|
+
import { Text } from '@app-studio/web';
|
|
32
|
+
import { Vertical } from '@app-studio/web';
|
|
33
33
|
|
|
34
34
|
export const VariantsDemo = () => {
|
|
35
35
|
return (
|
|
@@ -65,8 +65,8 @@ Using Card.Header, Card.Content, and Card.Footer for structured layout.
|
|
|
65
65
|
```tsx
|
|
66
66
|
import React from 'react';
|
|
67
67
|
import { Card } from '../Card';
|
|
68
|
-
import { Text } from 'app-studio';
|
|
69
|
-
import { Horizontal } from 'app-studio';
|
|
68
|
+
import { Text } from '@app-studio/web';
|
|
69
|
+
import { Horizontal } from '@app-studio/web';
|
|
70
70
|
import { Button } from '../../Button/Button';
|
|
71
71
|
|
|
72
72
|
export const StructuredDemo = () => {
|
|
@@ -100,8 +100,8 @@ Different corner styles for the card.
|
|
|
100
100
|
```tsx
|
|
101
101
|
import React from 'react';
|
|
102
102
|
import { Card } from '../Card';
|
|
103
|
-
import { Text } from 'app-studio';
|
|
104
|
-
import { Vertical } from 'app-studio';
|
|
103
|
+
import { Text } from '@app-studio/web';
|
|
104
|
+
import { Vertical } from '@app-studio/web';
|
|
105
105
|
import { Shape } from '../Card/Card.type';
|
|
106
106
|
|
|
107
107
|
export const ShapesDemo = () => {
|
|
@@ -128,8 +128,8 @@ Different padding sizes for the card.
|
|
|
128
128
|
```tsx
|
|
129
129
|
import React from 'react';
|
|
130
130
|
import { Card } from '../Card';
|
|
131
|
-
import { Text } from 'app-studio';
|
|
132
|
-
import { Vertical } from 'app-studio';
|
|
131
|
+
import { Text } from '@app-studio/web';
|
|
132
|
+
import { Vertical } from '@app-studio/web';
|
|
133
133
|
import { Size } from '../Card/Card.type';
|
|
134
134
|
|
|
135
135
|
export const SizesDemo = () => {
|
|
@@ -156,8 +156,8 @@ Customize the appearance of the card.
|
|
|
156
156
|
```tsx
|
|
157
157
|
import React from 'react';
|
|
158
158
|
import { Card } from '../Card';
|
|
159
|
-
import { Text } from 'app-studio';
|
|
160
|
-
import { Horizontal } from 'app-studio';
|
|
159
|
+
import { Text } from '@app-studio/web';
|
|
160
|
+
import { Horizontal } from '@app-studio/web';
|
|
161
161
|
import { Button } from '../../Button/Button';
|
|
162
162
|
|
|
163
163
|
export const CustomDemo = () => {
|
|
@@ -215,9 +215,9 @@ The Card component uses a context-based styling system that allows styles to be
|
|
|
215
215
|
```tsx
|
|
216
216
|
import React from 'react';
|
|
217
217
|
import { Card } from '../Card';
|
|
218
|
-
import { Text } from 'app-studio';
|
|
218
|
+
import { Text } from '@app-studio/web';
|
|
219
219
|
import { Button } from '../../Button/Button';
|
|
220
|
-
import { Horizontal } from 'app-studio';
|
|
220
|
+
import { Horizontal } from '@app-studio/web';
|
|
221
221
|
|
|
222
222
|
export const ContextStylingDemo = () => {
|
|
223
223
|
return (
|
|
@@ -275,8 +275,8 @@ The Card component supports both light and dark themes through the `themeMode` p
|
|
|
275
275
|
```tsx
|
|
276
276
|
import React from 'react';
|
|
277
277
|
import { Card } from '../Card';
|
|
278
|
-
import { Text } from 'app-studio';
|
|
279
|
-
import { Horizontal, Vertical } from 'app-studio';
|
|
278
|
+
import { Text } from '@app-studio/web';
|
|
279
|
+
import { Horizontal, Vertical } from '@app-studio/web';
|
|
280
280
|
import { Button } from '../../Button/Button';
|
|
281
281
|
|
|
282
282
|
export const DarkModeExample = () => {
|
|
@@ -14,8 +14,8 @@ A component for displaying a series of content items that can be navigated throu
|
|
|
14
14
|
```tsx
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { Carousel } from '../Carousel';
|
|
17
|
-
import { View } from 'app-studio';
|
|
18
|
-
import { Text } from 'app-studio';
|
|
17
|
+
import { View } from '@app-studio/web';
|
|
18
|
+
import { Text } from '@app-studio/web';
|
|
19
19
|
|
|
20
20
|
export const DefaultDemo = () => {
|
|
21
21
|
// Create an array of slides with different background colors
|
|
@@ -55,8 +55,8 @@ Use the compound component pattern for more flexibility and control over the car
|
|
|
55
55
|
```tsx
|
|
56
56
|
import React from 'react';
|
|
57
57
|
import { Carousel } from '../Carousel';
|
|
58
|
-
import { View } from 'app-studio';
|
|
59
|
-
import { Text } from 'app-studio';
|
|
58
|
+
import { View } from '@app-studio/web';
|
|
59
|
+
import { Text } from '@app-studio/web';
|
|
60
60
|
|
|
61
61
|
export const CompoundDemo = () => {
|
|
62
62
|
const slides = [
|
|
@@ -129,7 +129,7 @@ Restrict navigation to specific slide indices using the `stepIndices` prop.
|
|
|
129
129
|
```tsx
|
|
130
130
|
import React, { useState } from 'react';
|
|
131
131
|
import { Carousel } from '../Carousel';
|
|
132
|
-
import { View } from 'app-studio';
|
|
132
|
+
import { View } from '@app-studio/web';
|
|
133
133
|
import { Button } from '../../Button/Button';
|
|
134
134
|
|
|
135
135
|
export const StepIndicesDemo = () => {
|
|
@@ -181,8 +181,8 @@ Automatically advance through slides with customizable interval.
|
|
|
181
181
|
```tsx
|
|
182
182
|
import React from 'react';
|
|
183
183
|
import { Carousel } from '../Carousel';
|
|
184
|
-
import { View } from 'app-studio';
|
|
185
|
-
import { Text } from 'app-studio';
|
|
184
|
+
import { View } from '@app-studio/web';
|
|
185
|
+
import { Text } from '@app-studio/web';
|
|
186
186
|
|
|
187
187
|
export const AutoPlayDemo = () => {
|
|
188
188
|
const slides = [
|
|
@@ -225,8 +225,8 @@ Different styles of indicators to show the current slide position.
|
|
|
225
225
|
```tsx
|
|
226
226
|
import React from 'react';
|
|
227
227
|
import { Carousel } from '../Carousel';
|
|
228
|
-
import { View } from 'app-studio';
|
|
229
|
-
import { Text } from 'app-studio';
|
|
228
|
+
import { View } from '@app-studio/web';
|
|
229
|
+
import { Text } from '@app-studio/web';
|
|
230
230
|
|
|
231
231
|
export const IndicatorsDemo = () => {
|
|
232
232
|
const slides = [
|
|
@@ -268,8 +268,8 @@ Customize the navigation controls.
|
|
|
268
268
|
```tsx
|
|
269
269
|
import React from 'react';
|
|
270
270
|
import { Carousel } from '../Carousel';
|
|
271
|
-
import { View } from 'app-studio';
|
|
272
|
-
import { Text } from 'app-studio';
|
|
271
|
+
import { View } from '@app-studio/web';
|
|
272
|
+
import { Text } from '@app-studio/web';
|
|
273
273
|
import { Button } from '../../Button/Button';
|
|
274
274
|
|
|
275
275
|
export const NavigationDemo = () => {
|
|
@@ -321,8 +321,8 @@ Customize the appearance of the carousel.
|
|
|
321
321
|
```tsx
|
|
322
322
|
import React from 'react';
|
|
323
323
|
import { Carousel } from '../Carousel';
|
|
324
|
-
import { View } from 'app-studio';
|
|
325
|
-
import { Text } from 'app-studio';
|
|
324
|
+
import { View } from '@app-studio/web';
|
|
325
|
+
import { Text } from '@app-studio/web';
|
|
326
326
|
import { Card } from '../../Card/Card';
|
|
327
327
|
|
|
328
328
|
export const CustomDemo = () => {
|
|
@@ -6,14 +6,14 @@ A layout component that centers its children both horizontally and vertically wi
|
|
|
6
6
|
```tsx
|
|
7
7
|
import { Center } from '@app-studio/web';
|
|
8
8
|
// or from app-studio
|
|
9
|
-
import { Center } from 'app-studio';
|
|
9
|
+
import { Center } from '@app-studio/web';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
### **Basic Usage**
|
|
13
13
|
```tsx
|
|
14
14
|
import React from 'react';
|
|
15
|
-
import { Center } from 'app-studio';
|
|
16
|
-
import { Text } from 'app-studio';
|
|
15
|
+
import { Center } from '@app-studio/web';
|
|
16
|
+
import { Text } from '@app-studio/web';
|
|
17
17
|
|
|
18
18
|
export const BasicCenter = () => (
|
|
19
19
|
<Center height={200} backgroundColor="color.gray.100">
|
|
@@ -27,9 +27,9 @@ export const BasicCenter = () => (
|
|
|
27
27
|
### **Loading State Example**
|
|
28
28
|
```tsx
|
|
29
29
|
import React from 'react';
|
|
30
|
-
import { Center } from 'app-studio';
|
|
30
|
+
import { Center } from '@app-studio/web';
|
|
31
31
|
import { Loader } from '@app-studio/web';
|
|
32
|
-
import { Text, Vertical } from 'app-studio';
|
|
32
|
+
import { Text, Vertical } from '@app-studio/web';
|
|
33
33
|
|
|
34
34
|
export const LoadingCenter = () => (
|
|
35
35
|
<Center height="100vh" backgroundColor="color.white">
|
|
@@ -44,9 +44,9 @@ export const LoadingCenter = () => (
|
|
|
44
44
|
### **Empty State Example**
|
|
45
45
|
```tsx
|
|
46
46
|
import React from 'react';
|
|
47
|
-
import { Center } from 'app-studio';
|
|
47
|
+
import { Center } from '@app-studio/web';
|
|
48
48
|
import { Button } from '@app-studio/web';
|
|
49
|
-
import { Text, Vertical } from 'app-studio';
|
|
49
|
+
import { Text, Vertical } from '@app-studio/web';
|
|
50
50
|
import { EmptyIcon } from '@app-studio/web';
|
|
51
51
|
|
|
52
52
|
export const EmptyStateCenter = () => (
|
|
@@ -72,9 +72,9 @@ export const EmptyStateCenter = () => (
|
|
|
72
72
|
### **Modal Content Example**
|
|
73
73
|
```tsx
|
|
74
74
|
import React from 'react';
|
|
75
|
-
import { Center } from 'app-studio';
|
|
75
|
+
import { Center } from '@app-studio/web';
|
|
76
76
|
import { Modal, Button } from '@app-studio/web';
|
|
77
|
-
import { Text, Vertical, Horizontal } from 'app-studio';
|
|
77
|
+
import { Text, Vertical, Horizontal } from '@app-studio/web';
|
|
78
78
|
|
|
79
79
|
export const ModalCenter = () => {
|
|
80
80
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
@@ -120,9 +120,9 @@ export const ModalCenter = () => {
|
|
|
120
120
|
### **Hero Section Example**
|
|
121
121
|
```tsx
|
|
122
122
|
import React from 'react';
|
|
123
|
-
import { Center } from 'app-studio';
|
|
123
|
+
import { Center } from '@app-studio/web';
|
|
124
124
|
import { Button } from '@app-studio/web';
|
|
125
|
-
import { Text, Vertical, Horizontal } from 'app-studio';
|
|
125
|
+
import { Text, Vertical, Horizontal } from '@app-studio/web';
|
|
126
126
|
|
|
127
127
|
export const HeroCenter = () => (
|
|
128
128
|
<Center
|
|
@@ -167,8 +167,8 @@ export const HeroCenter = () => (
|
|
|
167
167
|
### **Card Center Example**
|
|
168
168
|
```tsx
|
|
169
169
|
import React from 'react';
|
|
170
|
-
import { Center } from 'app-studio';
|
|
171
|
-
import { View, Text, Vertical } from 'app-studio';
|
|
170
|
+
import { Center } from '@app-studio/web';
|
|
171
|
+
import { View, Text, Vertical } from '@app-studio/web';
|
|
172
172
|
import { StarIcon } from '@app-studio/web';
|
|
173
173
|
|
|
174
174
|
export const CardCenter = () => (
|
|
@@ -216,8 +216,8 @@ The Center component extends ViewProps from app-studio, inheriting all standard
|
|
|
216
216
|
### **Responsive Centering**
|
|
217
217
|
```tsx
|
|
218
218
|
import React from 'react';
|
|
219
|
-
import { Center } from 'app-studio';
|
|
220
|
-
import { Text, Vertical } from 'app-studio';
|
|
219
|
+
import { Center } from '@app-studio/web';
|
|
220
|
+
import { Text, Vertical } from '@app-studio/web';
|
|
221
221
|
|
|
222
222
|
export const ResponsiveCenter = () => (
|
|
223
223
|
<Center
|
|
@@ -250,8 +250,8 @@ export const ResponsiveCenter = () => (
|
|
|
250
250
|
### **Multiple Children with Gap**
|
|
251
251
|
```tsx
|
|
252
252
|
import React from 'react';
|
|
253
|
-
import { Center } from 'app-studio';
|
|
254
|
-
import { View } from 'app-studio';
|
|
253
|
+
import { Center } from '@app-studio/web';
|
|
254
|
+
import { View } from '@app-studio/web';
|
|
255
255
|
|
|
256
256
|
export const CenterWithGap = () => (
|
|
257
257
|
<Center height={300} gap={16}>
|
|
@@ -280,9 +280,9 @@ export const CenterWithGap = () => (
|
|
|
280
280
|
### **Error State Example**
|
|
281
281
|
```tsx
|
|
282
282
|
import React from 'react';
|
|
283
|
-
import { Center } from 'app-studio';
|
|
283
|
+
import { Center } from '@app-studio/web';
|
|
284
284
|
import { Button } from '@app-studio/web';
|
|
285
|
-
import { Text, Vertical } from 'app-studio';
|
|
285
|
+
import { Text, Vertical } from '@app-studio/web';
|
|
286
286
|
import { ErrorIcon } from '@app-studio/web';
|
|
287
287
|
|
|
288
288
|
export const ErrorStateCenter = () => (
|
|
@@ -319,8 +319,8 @@ export const ErrorStateCenter = () => (
|
|
|
319
319
|
### **Image Placeholder Example**
|
|
320
320
|
```tsx
|
|
321
321
|
import React from 'react';
|
|
322
|
-
import { Center } from 'app-studio';
|
|
323
|
-
import { Text } from 'app-studio';
|
|
322
|
+
import { Center } from '@app-studio/web';
|
|
323
|
+
import { Text } from '@app-studio/web';
|
|
324
324
|
import { ImageIcon } from '@app-studio/web';
|
|
325
325
|
|
|
326
326
|
export const ImagePlaceholder = () => (
|
|
@@ -412,7 +412,7 @@ export const ImagePlaceholder = () => (
|
|
|
412
412
|
The Center component works well with other layout components:
|
|
413
413
|
|
|
414
414
|
```tsx
|
|
415
|
-
import { Center, Vertical, Horizontal } from 'app-studio';
|
|
415
|
+
import { Center, Vertical, Horizontal } from '@app-studio/web';
|
|
416
416
|
|
|
417
417
|
// Centered content within a larger layout
|
|
418
418
|
<Vertical height="100vh">
|
|
@@ -11,7 +11,7 @@ A component for visualizing data in various chart formats.
|
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Chart } from '../Chart';
|
|
14
|
-
import { View } from 'app-studio';
|
|
14
|
+
import { View } from '@app-studio/web';
|
|
15
15
|
|
|
16
16
|
export const BarChartDemo = () => {
|
|
17
17
|
const data = {
|
|
@@ -48,7 +48,7 @@ export const BarChartDemo = () => {
|
|
|
48
48
|
```tsx
|
|
49
49
|
import React from 'react';
|
|
50
50
|
import { Chart } from '../Chart';
|
|
51
|
-
import { View } from 'app-studio';
|
|
51
|
+
import { View } from '@app-studio/web';
|
|
52
52
|
|
|
53
53
|
export const LineChartDemo = () => {
|
|
54
54
|
const data = {
|
|
@@ -86,7 +86,7 @@ export const LineChartDemo = () => {
|
|
|
86
86
|
```tsx
|
|
87
87
|
import React from 'react';
|
|
88
88
|
import { Chart } from '../Chart';
|
|
89
|
-
import { View } from 'app-studio';
|
|
89
|
+
import { View } from '@app-studio/web';
|
|
90
90
|
|
|
91
91
|
export const AreaChartDemo = () => {
|
|
92
92
|
const data = {
|
|
@@ -123,7 +123,7 @@ export const AreaChartDemo = () => {
|
|
|
123
123
|
```tsx
|
|
124
124
|
import React from 'react';
|
|
125
125
|
import { Chart } from '../Chart';
|
|
126
|
-
import { View } from 'app-studio';
|
|
126
|
+
import { View } from '@app-studio/web';
|
|
127
127
|
|
|
128
128
|
export const PieChartDemo = () => {
|
|
129
129
|
const dataPoints = [
|
|
@@ -150,7 +150,7 @@ export const PieChartDemo = () => {
|
|
|
150
150
|
```tsx
|
|
151
151
|
import React from 'react';
|
|
152
152
|
import { Chart } from '../Chart';
|
|
153
|
-
import { View } from 'app-studio';
|
|
153
|
+
import { View } from '@app-studio/web';
|
|
154
154
|
|
|
155
155
|
export const DonutChartDemo = () => {
|
|
156
156
|
const dataPoints = [
|
|
@@ -176,7 +176,7 @@ export const DonutChartDemo = () => {
|
|
|
176
176
|
```tsx
|
|
177
177
|
import React from 'react';
|
|
178
178
|
import { Chart } from '../Chart';
|
|
179
|
-
import { View } from 'app-studio';
|
|
179
|
+
import { View } from '@app-studio/web';
|
|
180
180
|
|
|
181
181
|
export const CustomChartDemo = () => {
|
|
182
182
|
const data = {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
```tsx
|
|
11
11
|
import React, { useState } from 'react';
|
|
12
12
|
import { ChatInput } from '@app-studio/web';
|
|
13
|
-
import { View } from 'app-studio';
|
|
13
|
+
import { View } from '@app-studio/web';
|
|
14
14
|
|
|
15
15
|
export const BasicChatInput = () => {
|
|
16
16
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -40,7 +40,7 @@ The ChatInput component uses the integrated Uploader component for seamless file
|
|
|
40
40
|
```tsx
|
|
41
41
|
import React, { useState } from 'react';
|
|
42
42
|
import { ChatInput } from '@app-studio/web';
|
|
43
|
-
import { View } from 'app-studio';
|
|
43
|
+
import { View } from '@app-studio/web';
|
|
44
44
|
|
|
45
45
|
export const ChatInputWithFileUploads = () => {
|
|
46
46
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -75,7 +75,7 @@ export const ChatInputWithFileUploads = () => {
|
|
|
75
75
|
```tsx
|
|
76
76
|
import React, { useState } from 'react';
|
|
77
77
|
import { ChatInput } from '@app-studio/web';
|
|
78
|
-
import { View } from 'app-studio';
|
|
78
|
+
import { View } from '@app-studio/web';
|
|
79
79
|
import { PromptExample } from '@app-studio/web';
|
|
80
80
|
|
|
81
81
|
export const ChatInputWithPromptExamples = () => {
|
|
@@ -119,7 +119,7 @@ The ChatInput supports drag & drop functionality for easy file uploads:
|
|
|
119
119
|
```tsx
|
|
120
120
|
import React, { useState } from 'react';
|
|
121
121
|
import { ChatInput } from '@app-studio/web';
|
|
122
|
-
import { View } from 'app-studio';
|
|
122
|
+
import { View } from '@app-studio/web';
|
|
123
123
|
|
|
124
124
|
export const ChatInputWithDragDrop = () => {
|
|
125
125
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -152,7 +152,7 @@ export const ChatInputWithDragDrop = () => {
|
|
|
152
152
|
```tsx
|
|
153
153
|
import React from 'react';
|
|
154
154
|
import { ChatInput } from '@app-studio/web';
|
|
155
|
-
import { View } from 'app-studio';
|
|
155
|
+
import { View } from '@app-studio/web';
|
|
156
156
|
|
|
157
157
|
export const StyledChatInput = () => {
|
|
158
158
|
const handleSubmit = (message) => {
|
|
@@ -187,7 +187,7 @@ export const StyledChatInput = () => {
|
|
|
187
187
|
```tsx
|
|
188
188
|
import React, { useState } from 'react';
|
|
189
189
|
import { ChatInput } from '@app-studio/web';
|
|
190
|
-
import { View } from 'app-studio';
|
|
190
|
+
import { View } from '@app-studio/web';
|
|
191
191
|
|
|
192
192
|
export const ChatInputWithAgent = () => {
|
|
193
193
|
const [isAgentRunning, setIsAgentRunning] = useState(false);
|
|
@@ -322,7 +322,7 @@ The ChatInput component includes a demo page with simulate upload functionality
|
|
|
322
322
|
// Available in src/pages/chat.page.tsx
|
|
323
323
|
import React, { useState } from 'react';
|
|
324
324
|
import { ChatInput } from '@app-studio/web';
|
|
325
|
-
import { Button } from 'app-studio';
|
|
325
|
+
import { Button } from '@app-studio/web';
|
|
326
326
|
|
|
327
327
|
export const ChatInputDemo = () => {
|
|
328
328
|
const [isSimulatingUpload, setIsSimulatingUpload] = useState(false);
|