@app-studio/web 0.9.39 → 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/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 +1 -1
|
@@ -10,7 +10,7 @@ A form input component for managing a list of tags. Users can add tags by typing
|
|
|
10
10
|
### **Default**
|
|
11
11
|
```tsx
|
|
12
12
|
import React, { useState } from 'react';
|
|
13
|
-
import { Vertical, Text } from 'app-studio';
|
|
13
|
+
import { Vertical, Text } from '@app-studio/web';
|
|
14
14
|
import { TagInput } from '../TagInput';
|
|
15
15
|
|
|
16
16
|
export const DefaultTagInput = () => {
|
|
@@ -38,7 +38,7 @@ Characters that trigger tag creation. Supports 'enter', 'comma', 'space', and 't
|
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
40
40
|
import React, { useState } from 'react';
|
|
41
|
-
import { Vertical } from 'app-studio';
|
|
41
|
+
import { Vertical } from '@app-studio/web';
|
|
42
42
|
import { TagInput } from '../TagInput';
|
|
43
43
|
|
|
44
44
|
export const CustomSeparatorsTagInput = () => {
|
|
@@ -67,7 +67,7 @@ Maximum number of tags allowed.
|
|
|
67
67
|
|
|
68
68
|
```tsx
|
|
69
69
|
import React, { useState } from 'react';
|
|
70
|
-
import { Vertical } from 'app-studio';
|
|
70
|
+
import { Vertical } from '@app-studio/web';
|
|
71
71
|
import { TagInput } from '../TagInput';
|
|
72
72
|
|
|
73
73
|
export const LimitedTagInput = () => {
|
|
@@ -95,7 +95,7 @@ Validation constraints for tag length.
|
|
|
95
95
|
|
|
96
96
|
```tsx
|
|
97
97
|
import React, { useState } from 'react';
|
|
98
|
-
import { Vertical } from 'app-studio';
|
|
98
|
+
import { Vertical } from '@app-studio/web';
|
|
99
99
|
import { TagInput } from '../TagInput';
|
|
100
100
|
|
|
101
101
|
export const ValidatedTagInput = () => {
|
|
@@ -126,7 +126,7 @@ Whether to allow duplicate tags.
|
|
|
126
126
|
|
|
127
127
|
```tsx
|
|
128
128
|
import React, { useState } from 'react';
|
|
129
|
-
import { Vertical } from 'app-studio';
|
|
129
|
+
import { Vertical } from '@app-studio/web';
|
|
130
130
|
import { TagInput } from '../TagInput';
|
|
131
131
|
|
|
132
132
|
export const NoDuplicatesTagInput = () => {
|
|
@@ -171,7 +171,7 @@ Disabled and read-only states.
|
|
|
171
171
|
|
|
172
172
|
```tsx
|
|
173
173
|
import React from 'react';
|
|
174
|
-
import { Vertical } from 'app-studio';
|
|
174
|
+
import { Vertical } from '@app-studio/web';
|
|
175
175
|
import { TagInput } from '../TagInput';
|
|
176
176
|
|
|
177
177
|
export const DisabledTagInput = () => {
|
|
@@ -202,7 +202,7 @@ Visual variant of the component: 'outline', 'default', or 'none'.
|
|
|
202
202
|
|
|
203
203
|
```tsx
|
|
204
204
|
import React, { useState } from 'react';
|
|
205
|
-
import { Vertical } from 'app-studio';
|
|
205
|
+
import { Vertical } from '@app-studio/web';
|
|
206
206
|
import { TagInput } from '../TagInput';
|
|
207
207
|
|
|
208
208
|
export const VariantTagInput = () => {
|
|
@@ -238,7 +238,7 @@ Size of the component: 'xs', 'sm', 'md', 'lg', or 'xl'.
|
|
|
238
238
|
|
|
239
239
|
```tsx
|
|
240
240
|
import React, { useState } from 'react';
|
|
241
|
-
import { Vertical } from 'app-studio';
|
|
241
|
+
import { Vertical } from '@app-studio/web';
|
|
242
242
|
import { TagInput } from '../TagInput';
|
|
243
243
|
|
|
244
244
|
export const SizeTagInput = () => {
|
|
@@ -266,7 +266,7 @@ Shape/border radius: 'default', 'sharp', 'rounded', or 'pillShaped'.
|
|
|
266
266
|
|
|
267
267
|
```tsx
|
|
268
268
|
import React, { useState } from 'react';
|
|
269
|
-
import { Vertical } from 'app-studio';
|
|
269
|
+
import { Vertical } from '@app-studio/web';
|
|
270
270
|
import { TagInput } from '../TagInput';
|
|
271
271
|
|
|
272
272
|
export const ShapeTagInput = () => {
|
|
@@ -294,7 +294,7 @@ React nodes to render on the left and right sides of the input.
|
|
|
294
294
|
|
|
295
295
|
```tsx
|
|
296
296
|
import React, { useState } from 'react';
|
|
297
|
-
import { Vertical } from 'app-studio';
|
|
297
|
+
import { Vertical } from '@app-studio/web';
|
|
298
298
|
import { TagInput } from '../TagInput';
|
|
299
299
|
import { SearchIcon, TagIcon } from '../../../Icon';
|
|
300
300
|
|
|
@@ -329,7 +329,7 @@ Custom styling for different parts of the component.
|
|
|
329
329
|
|
|
330
330
|
```tsx
|
|
331
331
|
import React, { useState } from 'react';
|
|
332
|
-
import { Vertical } from 'app-studio';
|
|
332
|
+
import { Vertical } from '@app-studio/web';
|
|
333
333
|
import { TagInput } from '../TagInput';
|
|
334
334
|
|
|
335
335
|
export const StyledTagInput = () => {
|
|
@@ -378,7 +378,7 @@ Callbacks for individual tag operations.
|
|
|
378
378
|
|
|
379
379
|
```tsx
|
|
380
380
|
import React, { useState } from 'react';
|
|
381
|
-
import { Vertical, Text } from 'app-studio';
|
|
381
|
+
import { Vertical, Text } from '@app-studio/web';
|
|
382
382
|
import { TagInput } from '../TagInput';
|
|
383
383
|
|
|
384
384
|
export const CallbackTagInput = () => {
|
|
@@ -409,7 +409,7 @@ Whether tags can be removed by clicking the X button.
|
|
|
409
409
|
|
|
410
410
|
```tsx
|
|
411
411
|
import React, { useState } from 'react';
|
|
412
|
-
import { Vertical } from 'app-studio';
|
|
412
|
+
import { Vertical } from '@app-studio/web';
|
|
413
413
|
import { TagInput } from '../TagInput';
|
|
414
414
|
|
|
415
415
|
export const NonRemovableTagInput = () => {
|
|
@@ -440,7 +440,7 @@ TagInput works seamlessly with forms and form libraries.
|
|
|
440
440
|
|
|
441
441
|
```tsx
|
|
442
442
|
import React, { useState } from 'react';
|
|
443
|
-
import { Vertical, Button } from 'app-studio';
|
|
443
|
+
import { Vertical, Button } from '@app-studio/web';
|
|
444
444
|
import { TagInput } from '../TagInput';
|
|
445
445
|
|
|
446
446
|
export const FormTagInput = () => {
|
|
@@ -491,7 +491,7 @@ Display validation errors and helper messages.
|
|
|
491
491
|
|
|
492
492
|
```tsx
|
|
493
493
|
import React, { useState } from 'react';
|
|
494
|
-
import { Vertical } from 'app-studio';
|
|
494
|
+
import { Vertical } from '@app-studio/web';
|
|
495
495
|
import { TagInput } from '../TagInput';
|
|
496
496
|
|
|
497
497
|
export const ErrorTagInput = () => {
|
|
@@ -24,7 +24,7 @@ Optional color scheme for the component.
|
|
|
24
24
|
|
|
25
25
|
```tsx
|
|
26
26
|
import React from 'react';
|
|
27
|
-
import { Vertical } from 'app-studio';
|
|
27
|
+
import { Vertical } from '@app-studio/web';
|
|
28
28
|
|
|
29
29
|
import { TextArea } from '../TextArea';
|
|
30
30
|
|
|
@@ -54,7 +54,7 @@ import React from 'react';
|
|
|
54
54
|
import { Button } from '../../../Button/Button';
|
|
55
55
|
import { TextArea } from '../../../Form/TextArea/TextArea';
|
|
56
56
|
|
|
57
|
-
import { Vertical } from 'app-studio';
|
|
57
|
+
import { Vertical } from '@app-studio/web';
|
|
58
58
|
|
|
59
59
|
export const HelperTextArea = () => {
|
|
60
60
|
const initialValues = {
|
|
@@ -110,7 +110,7 @@ Placeholder text for the text area when it is empty.
|
|
|
110
110
|
import React from 'react';
|
|
111
111
|
import { Button } from '../../../Button/Button';
|
|
112
112
|
|
|
113
|
-
import { Horizontal } from 'app-studio';
|
|
113
|
+
import { Horizontal } from '@app-studio/web';
|
|
114
114
|
|
|
115
115
|
import { TextArea } from '../TextArea';
|
|
116
116
|
|
|
@@ -12,7 +12,7 @@ A customizable text input field with optional helpers, labels, and icons.
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Button } from '../../../Button/Button';
|
|
14
14
|
|
|
15
|
-
import { Horizontal } from 'app-studio';
|
|
15
|
+
import { Horizontal } from '@app-studio/web';
|
|
16
16
|
|
|
17
17
|
import { TextField } from '../TextField';
|
|
18
18
|
|
|
@@ -46,7 +46,7 @@ import { Button } from '../../../Button/Button';
|
|
|
46
46
|
|
|
47
47
|
import { TextField } from '../../../Form/TextField/TextField';
|
|
48
48
|
|
|
49
|
-
import { Vertical } from 'app-studio';
|
|
49
|
+
import { Vertical } from '@app-studio/web';
|
|
50
50
|
|
|
51
51
|
export const HelperTextInput = () => {
|
|
52
52
|
const initialValues = {
|
|
@@ -110,7 +110,7 @@ Optional property to specify the color scheme of the TextField.
|
|
|
110
110
|
|
|
111
111
|
```tsx
|
|
112
112
|
import React from 'react';
|
|
113
|
-
import { Vertical } from 'app-studio';
|
|
113
|
+
import { Vertical } from '@app-studio/web';
|
|
114
114
|
|
|
115
115
|
import { TextField } from '../TextField';
|
|
116
116
|
|
|
@@ -179,7 +179,7 @@ Optional placeholder text shown inside the TextField when empty.
|
|
|
179
179
|
import React from 'react';
|
|
180
180
|
import { Button } from '../../../Button/Button';
|
|
181
181
|
|
|
182
|
-
import { Horizontal } from 'app-studio';
|
|
182
|
+
import { Horizontal } from '@app-studio/web';
|
|
183
183
|
|
|
184
184
|
import { TextField } from '../TextField';
|
|
185
185
|
|
|
@@ -208,7 +208,7 @@ Optional flag that when true allows the TextField to be cleared.
|
|
|
208
208
|
|
|
209
209
|
```tsx
|
|
210
210
|
import React from 'react';
|
|
211
|
-
import { Vertical } from 'app-studio';
|
|
211
|
+
import { Vertical } from '@app-studio/web';
|
|
212
212
|
|
|
213
213
|
import { TextField } from '../TextField';
|
|
214
214
|
|
|
@@ -23,10 +23,10 @@ Optional property to determine the shape of the toggle component.
|
|
|
23
23
|
|
|
24
24
|
```tsx
|
|
25
25
|
import React from 'react';
|
|
26
|
-
import { Horizontal } from 'app-studio';
|
|
26
|
+
import { Horizontal } from '@app-studio/web';
|
|
27
27
|
import { Toggle } from '../Toggle';
|
|
28
28
|
import { Shape } from '../Toggle/Toggle.type';
|
|
29
|
-
import { View } from 'app-studio';
|
|
29
|
+
import { View } from '@app-studio/web';
|
|
30
30
|
export const ShapeDemo = () => (
|
|
31
31
|
<Horizontal gap={15}>
|
|
32
32
|
{['sharp', 'rounded', 'pillShaped'].map((border, index) => (
|
|
@@ -75,7 +75,7 @@ Optional property to style the toggle component with predefined sets of visual t
|
|
|
75
75
|
```tsx
|
|
76
76
|
import React from 'react';
|
|
77
77
|
import { Toggle } from '../Toggle';
|
|
78
|
-
import { Vertical } from 'app-studio';
|
|
78
|
+
import { Vertical } from '@app-studio/web';
|
|
79
79
|
import { Variant } from '../Toggle/Toggle.type';
|
|
80
80
|
|
|
81
81
|
export const VariantDemo = () => (
|
|
@@ -96,7 +96,7 @@ Optional string to set the color scheme for the toggle component's appearance.
|
|
|
96
96
|
```tsx
|
|
97
97
|
import React from 'react';
|
|
98
98
|
import { Toggle } from '../Toggle';
|
|
99
|
-
import { Horizontal } from 'app-studio';
|
|
99
|
+
import { Horizontal } from '@app-studio/web';
|
|
100
100
|
|
|
101
101
|
export const ColorSchemeDemo = () => (
|
|
102
102
|
<Horizontal gap={10}>
|
|
@@ -31,8 +31,8 @@ import React from 'react';
|
|
|
31
31
|
import { DustBinIcon } from '../../Icon';
|
|
32
32
|
import { ToggleGroup } from '../ToggleGroup';
|
|
33
33
|
import { Shape } from '../ToggleGroup/ToggleGroup.type';
|
|
34
|
-
import { Horizontal } from 'app-studio';
|
|
35
|
-
import { View } from 'app-studio';
|
|
34
|
+
import { Horizontal } from '@app-studio/web';
|
|
35
|
+
import { View } from '@app-studio/web';
|
|
36
36
|
|
|
37
37
|
export const ShapeDemo = () => {
|
|
38
38
|
const items = [
|
|
@@ -61,7 +61,7 @@ Mandatory array of items defining each toggle in the group.
|
|
|
61
61
|
```tsx
|
|
62
62
|
import React from 'react';
|
|
63
63
|
import { ToggleGroup } from '../ToggleGroup';
|
|
64
|
-
import { Text } from 'app-studio';
|
|
64
|
+
import { Text } from '@app-studio/web';
|
|
65
65
|
|
|
66
66
|
export const ItemsDemo = () => {
|
|
67
67
|
const items = [
|
|
@@ -79,10 +79,10 @@ Optional variant prop to specify the visual style of the toggle group.
|
|
|
79
79
|
|
|
80
80
|
```tsx
|
|
81
81
|
import React from 'react';
|
|
82
|
-
import { Text } from 'app-studio';
|
|
82
|
+
import { Text } from '@app-studio/web';
|
|
83
83
|
import { ToggleGroup } from '../ToggleGroup';
|
|
84
84
|
import { Variant } from '../ToggleGroup/ToggleGroup.type';
|
|
85
|
-
import { Vertical } from 'app-studio';
|
|
85
|
+
import { Vertical } from '@app-studio/web';
|
|
86
86
|
|
|
87
87
|
export const VariantDemo = () => {
|
|
88
88
|
const items = [
|
|
@@ -107,8 +107,8 @@ Optional colorScheme prop for theming the toggle group.
|
|
|
107
107
|
```tsx
|
|
108
108
|
import React from 'react';
|
|
109
109
|
import { ToggleGroup } from '../ToggleGroup';
|
|
110
|
-
import { Vertical } from 'app-studio';
|
|
111
|
-
import { Text } from 'app-studio';
|
|
110
|
+
import { Vertical } from '@app-studio/web';
|
|
111
|
+
import { Text } from '@app-studio/web';
|
|
112
112
|
|
|
113
113
|
export const ColorSchemeDemo = () => {
|
|
114
114
|
const items = [
|
|
@@ -139,8 +139,8 @@ Optional callback function that fires when the active toggle changes, providing
|
|
|
139
139
|
```tsx
|
|
140
140
|
import React, { useState } from 'react';
|
|
141
141
|
import { ToggleGroup } from '../ToggleGroup';
|
|
142
|
-
import { Text } from 'app-studio';
|
|
143
|
-
import { Vertical } from 'app-studio';
|
|
142
|
+
import { Text } from '@app-studio/web';
|
|
143
|
+
import { Vertical } from '@app-studio/web';
|
|
144
144
|
|
|
145
145
|
export const OnToggleChangeDemo = () => {
|
|
146
146
|
const [newItems, setNewItems] = useState<any>([]);
|
|
@@ -29,7 +29,7 @@ Tooltips can be positioned relative to the trigger element.
|
|
|
29
29
|
import React from 'react';
|
|
30
30
|
import { Tooltip } from '../Tooltip';
|
|
31
31
|
import { Button } from '../../Button/Button';
|
|
32
|
-
import { Horizontal } from 'app-studio';
|
|
32
|
+
import { Horizontal } from '@app-studio/web';
|
|
33
33
|
|
|
34
34
|
export const TooltipPositionsExample = () => {
|
|
35
35
|
return (
|
|
@@ -61,7 +61,7 @@ Different visual styles for tooltips.
|
|
|
61
61
|
import React from 'react';
|
|
62
62
|
import { Tooltip } from '../Tooltip';
|
|
63
63
|
import { Button } from '../../Button/Button';
|
|
64
|
-
import { Horizontal } from 'app-studio';
|
|
64
|
+
import { Horizontal } from '@app-studio/web';
|
|
65
65
|
|
|
66
66
|
export const TooltipVariantsExample = () => {
|
|
67
67
|
return (
|
|
@@ -89,7 +89,7 @@ Tooltips come in different sizes.
|
|
|
89
89
|
import React from 'react';
|
|
90
90
|
import { Tooltip } from '../Tooltip';
|
|
91
91
|
import { Button } from '../../Button/Button';
|
|
92
|
-
import { Horizontal } from 'app-studio';
|
|
92
|
+
import { Horizontal } from '@app-studio/web';
|
|
93
93
|
|
|
94
94
|
export const TooltipSizesExample = () => {
|
|
95
95
|
return (
|
|
@@ -117,8 +117,8 @@ Tooltips can contain rich content, not just text.
|
|
|
117
117
|
import React from 'react';
|
|
118
118
|
import { Tooltip } from '../Tooltip';
|
|
119
119
|
import { Button } from '../../Button/Button';
|
|
120
|
-
import { Text } from 'app-studio';
|
|
121
|
-
import { Vertical } from 'app-studio';
|
|
120
|
+
import { Text } from '@app-studio/web';
|
|
121
|
+
import { Vertical } from '@app-studio/web';
|
|
122
122
|
|
|
123
123
|
export const CustomContentTooltip = () => {
|
|
124
124
|
return (
|
|
@@ -153,7 +153,7 @@ For more control, you can use the compound component pattern.
|
|
|
153
153
|
import React from 'react';
|
|
154
154
|
import { Tooltip } from '../Tooltip';
|
|
155
155
|
import { Button } from '../../Button/Button';
|
|
156
|
-
import { Text } from 'app-studio';
|
|
156
|
+
import { Text } from '@app-studio/web';
|
|
157
157
|
|
|
158
158
|
export const CompoundTooltip = () => {
|
|
159
159
|
return (
|
package/docs/components/Tree.mdx
CHANGED
|
@@ -11,7 +11,7 @@ A component for displaying hierarchical data with expandable/collapsible nodes.
|
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Tree } from '@app-studio/web';
|
|
14
|
-
import { Text, Vertical } from 'app-studio';
|
|
14
|
+
import { Text, Vertical } from '@app-studio/web';
|
|
15
15
|
import { FolderIcon, FileIcon, DocumentIcon } from '@app-studio/web';
|
|
16
16
|
|
|
17
17
|
export const DefaultTree = () => {
|
|
@@ -63,7 +63,7 @@ export const DefaultTree = () => {
|
|
|
63
63
|
```tsx
|
|
64
64
|
import React from 'react';
|
|
65
65
|
import { Tree } from '@app-studio/web';
|
|
66
|
-
import { Text, Vertical } from 'app-studio';
|
|
66
|
+
import { Text, Vertical } from '@app-studio/web';
|
|
67
67
|
import { FolderIcon, FileIcon, DocumentIcon } from '@app-studio/web';
|
|
68
68
|
import { TreeNode } from '@app-studio/web';
|
|
69
69
|
|
|
@@ -144,7 +144,7 @@ export const DataDrivenTree = () => {
|
|
|
144
144
|
```tsx
|
|
145
145
|
import React, { useState } from 'react';
|
|
146
146
|
import { Tree } from '@app-studio/web';
|
|
147
|
-
import { Text, View, Vertical } from 'app-studio';
|
|
147
|
+
import { Text, View, Vertical } from '@app-studio/web';
|
|
148
148
|
import { FolderIcon, FileIcon, DragHandleIcon } from '@app-studio/web';
|
|
149
149
|
import { TreeNode } from '@app-studio/web';
|
|
150
150
|
|
|
@@ -216,7 +216,7 @@ export const DraggableTree = () => {
|
|
|
216
216
|
```tsx
|
|
217
217
|
import React from 'react';
|
|
218
218
|
import { Tree } from '@app-studio/web';
|
|
219
|
-
import { Text, Horizontal, Vertical } from 'app-studio';
|
|
219
|
+
import { Text, Horizontal, Vertical } from '@app-studio/web';
|
|
220
220
|
import { FolderIcon, FileIcon } from '@app-studio/web';
|
|
221
221
|
import { TreeNode } from '@app-studio/web';
|
|
222
222
|
|
|
@@ -204,7 +204,7 @@ export const ValidatedUploader = () => {
|
|
|
204
204
|
```tsx
|
|
205
205
|
import React from 'react';
|
|
206
206
|
import { Uploader } from '@app-studio/web';
|
|
207
|
-
import { View, Text } from 'app-studio';
|
|
207
|
+
import { View, Text } from '@app-studio/web';
|
|
208
208
|
import { CheckIcon, ErrorIcon } from '@app-studio/web';
|
|
209
209
|
|
|
210
210
|
export const CustomUploader = () => {
|
|
@@ -271,7 +271,7 @@ The Uploader component is seamlessly integrated into the ChatInput component for
|
|
|
271
271
|
```tsx
|
|
272
272
|
import React, { useState } from 'react';
|
|
273
273
|
import { ChatInput } from '@app-studio/web';
|
|
274
|
-
import { View } from 'app-studio';
|
|
274
|
+
import { View } from '@app-studio/web';
|
|
275
275
|
|
|
276
276
|
export const ChatWithFileUpload = () => {
|
|
277
277
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -6,14 +6,14 @@ A flexible layout component that arranges its children in a vertical stack using
|
|
|
6
6
|
```tsx
|
|
7
7
|
import { Vertical } from '@app-studio/web';
|
|
8
8
|
// or from app-studio
|
|
9
|
-
import { Vertical } from 'app-studio';
|
|
9
|
+
import { Vertical } from '@app-studio/web';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
### **Basic Usage**
|
|
13
13
|
```tsx
|
|
14
14
|
import React from 'react';
|
|
15
|
-
import { Vertical } from 'app-studio';
|
|
16
|
-
import { View, Text } from 'app-studio';
|
|
15
|
+
import { Vertical } from '@app-studio/web';
|
|
16
|
+
import { View, Text } from '@app-studio/web';
|
|
17
17
|
|
|
18
18
|
export const BasicVertical = () => (
|
|
19
19
|
<Vertical>
|
|
@@ -27,8 +27,8 @@ export const BasicVertical = () => (
|
|
|
27
27
|
### **With Gap Spacing**
|
|
28
28
|
```tsx
|
|
29
29
|
import React from 'react';
|
|
30
|
-
import { Vertical } from 'app-studio';
|
|
31
|
-
import { View, Text } from 'app-studio';
|
|
30
|
+
import { Vertical } from '@app-studio/web';
|
|
31
|
+
import { View, Text } from '@app-studio/web';
|
|
32
32
|
|
|
33
33
|
export const VerticalWithGap = () => (
|
|
34
34
|
<Vertical gap={16}>
|
|
@@ -48,8 +48,8 @@ export const VerticalWithGap = () => (
|
|
|
48
48
|
### **Alignment Options**
|
|
49
49
|
```tsx
|
|
50
50
|
import React from 'react';
|
|
51
|
-
import { Vertical } from 'app-studio';
|
|
52
|
-
import { View, Text } from 'app-studio';
|
|
51
|
+
import { Vertical } from '@app-studio/web';
|
|
52
|
+
import { View, Text } from '@app-studio/web';
|
|
53
53
|
|
|
54
54
|
export const VerticalAlignment = () => (
|
|
55
55
|
<Vertical gap={20}>
|
|
@@ -91,8 +91,8 @@ export const VerticalAlignment = () => (
|
|
|
91
91
|
### **Justification Options**
|
|
92
92
|
```tsx
|
|
93
93
|
import React from 'react';
|
|
94
|
-
import { Vertical } from 'app-studio';
|
|
95
|
-
import { View, Text } from 'app-studio';
|
|
94
|
+
import { Vertical } from '@app-studio/web';
|
|
95
|
+
import { View, Text } from '@app-studio/web';
|
|
96
96
|
|
|
97
97
|
export const VerticalJustification = () => (
|
|
98
98
|
<Vertical gap={20}>
|
|
@@ -138,9 +138,9 @@ export const VerticalJustification = () => (
|
|
|
138
138
|
### **Form Layout Example**
|
|
139
139
|
```tsx
|
|
140
140
|
import React from 'react';
|
|
141
|
-
import { Vertical } from 'app-studio';
|
|
141
|
+
import { Vertical } from '@app-studio/web';
|
|
142
142
|
import { TextField, Button, Checkbox } from '@app-studio/web';
|
|
143
|
-
import { Text } from 'app-studio';
|
|
143
|
+
import { Text } from '@app-studio/web';
|
|
144
144
|
|
|
145
145
|
export const FormLayout = () => (
|
|
146
146
|
<Vertical gap={20} width="100%" maxWidth={400} padding={24}>
|
|
@@ -188,8 +188,8 @@ export const FormLayout = () => (
|
|
|
188
188
|
### **Navigation Menu Example**
|
|
189
189
|
```tsx
|
|
190
190
|
import React from 'react';
|
|
191
|
-
import { Vertical } from 'app-studio';
|
|
192
|
-
import { View, Text, Horizontal } from 'app-studio';
|
|
191
|
+
import { Vertical } from '@app-studio/web';
|
|
192
|
+
import { View, Text, Horizontal } from '@app-studio/web';
|
|
193
193
|
import { HomeIcon, UserIcon, SettingsIcon, LogoutIcon } from '@app-studio/web';
|
|
194
194
|
|
|
195
195
|
export const NavigationMenu = () => (
|
|
@@ -261,8 +261,8 @@ export const NavigationMenu = () => (
|
|
|
261
261
|
### **Card Layout Example**
|
|
262
262
|
```tsx
|
|
263
263
|
import React from 'react';
|
|
264
|
-
import { Vertical } from 'app-studio';
|
|
265
|
-
import { View, Text, Horizontal } from 'app-studio';
|
|
264
|
+
import { Vertical } from '@app-studio/web';
|
|
265
|
+
import { View, Text, Horizontal } from '@app-studio/web';
|
|
266
266
|
import { Button } from '@app-studio/web';
|
|
267
267
|
import { StarIcon, HeartIcon, ShareIcon } from '@app-studio/web';
|
|
268
268
|
|
|
@@ -344,8 +344,8 @@ The Vertical component extends ViewProps from app-studio, inheriting all standar
|
|
|
344
344
|
### **Responsive Design**
|
|
345
345
|
```tsx
|
|
346
346
|
import React from 'react';
|
|
347
|
-
import { Vertical } from 'app-studio';
|
|
348
|
-
import { View, Text } from 'app-studio';
|
|
347
|
+
import { Vertical } from '@app-studio/web';
|
|
348
|
+
import { View, Text } from '@app-studio/web';
|
|
349
349
|
|
|
350
350
|
export const ResponsiveVertical = () => (
|
|
351
351
|
<Vertical
|
|
@@ -377,8 +377,8 @@ export const ResponsiveVertical = () => (
|
|
|
377
377
|
**Sticky Header with Scrollable Content:**
|
|
378
378
|
```tsx
|
|
379
379
|
import React from 'react';
|
|
380
|
-
import { Vertical } from 'app-studio';
|
|
381
|
-
import { View, Text } from 'app-studio';
|
|
380
|
+
import { Vertical } from '@app-studio/web';
|
|
381
|
+
import { View, Text } from '@app-studio/web';
|
|
382
382
|
|
|
383
383
|
export const StickyHeaderLayout = () => (
|
|
384
384
|
<Vertical height="100vh">
|
|
@@ -417,8 +417,8 @@ export const StickyHeaderLayout = () => (
|
|
|
417
417
|
**Split Layout:**
|
|
418
418
|
```tsx
|
|
419
419
|
import React from 'react';
|
|
420
|
-
import { Vertical, Horizontal } from 'app-studio';
|
|
421
|
-
import { View, Text } from 'app-studio';
|
|
420
|
+
import { Vertical, Horizontal } from '@app-studio/web';
|
|
421
|
+
import { View, Text } from '@app-studio/web';
|
|
422
422
|
|
|
423
423
|
export const SplitLayout = () => (
|
|
424
424
|
<Horizontal height="100vh">
|
|
@@ -544,7 +544,7 @@ export const SplitLayout = () => (
|
|
|
544
544
|
The Vertical component works seamlessly with other layout components:
|
|
545
545
|
|
|
546
546
|
```tsx
|
|
547
|
-
import { Vertical, Horizontal, Center } from 'app-studio';
|
|
547
|
+
import { Vertical, Horizontal, Center } from '@app-studio/web';
|
|
548
548
|
|
|
549
549
|
// Nested layouts
|
|
550
550
|
<Vertical gap={20}>
|