@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
|
@@ -28,8 +28,8 @@ Specifies the type of gradient to render.
|
|
|
28
28
|
```tsx
|
|
29
29
|
import React from 'react';
|
|
30
30
|
import { Gradient } from '../Gradient';
|
|
31
|
-
import { Vertical } from 'app-studio';
|
|
32
|
-
import { Text } from 'app-studio';
|
|
31
|
+
import { Vertical } from '@app-studio/web';
|
|
32
|
+
import { Text } from '@app-studio/web';
|
|
33
33
|
|
|
34
34
|
export const TypesDemo = () => (
|
|
35
35
|
<Vertical gap={16}>
|
|
@@ -80,9 +80,9 @@ Specifies the direction for linear gradients.
|
|
|
80
80
|
```tsx
|
|
81
81
|
import React from 'react';
|
|
82
82
|
import { Gradient } from '../Gradient';
|
|
83
|
-
import { Vertical } from 'app-studio';
|
|
84
|
-
import { Horizontal } from 'app-studio';
|
|
85
|
-
import { Text } from 'app-studio';
|
|
83
|
+
import { Vertical } from '@app-studio/web';
|
|
84
|
+
import { Horizontal } from '@app-studio/web';
|
|
85
|
+
import { Text } from '@app-studio/web';
|
|
86
86
|
|
|
87
87
|
export const DirectionsDemo = () => (
|
|
88
88
|
<Vertical gap={16}>
|
|
@@ -129,8 +129,8 @@ Specifies an array of color stops for multi-color gradients.
|
|
|
129
129
|
```tsx
|
|
130
130
|
import React from 'react';
|
|
131
131
|
import { Gradient } from '../Gradient';
|
|
132
|
-
import { Vertical } from 'app-studio';
|
|
133
|
-
import { Text } from 'app-studio';
|
|
132
|
+
import { Vertical } from '@app-studio/web';
|
|
133
|
+
import { Text } from '@app-studio/web';
|
|
134
134
|
|
|
135
135
|
export const MulticolorDemo = () => (
|
|
136
136
|
<Vertical gap={16}>
|
|
@@ -177,8 +177,8 @@ Enables animation for the gradient.
|
|
|
177
177
|
```tsx
|
|
178
178
|
import React from 'react';
|
|
179
179
|
import { Gradient } from '../Gradient';
|
|
180
|
-
import { Vertical } from 'app-studio';
|
|
181
|
-
import { Text } from 'app-studio';
|
|
180
|
+
import { Vertical } from '@app-studio/web';
|
|
181
|
+
import { Text } from '@app-studio/web';
|
|
182
182
|
|
|
183
183
|
export const AnimatedDemo = () => (
|
|
184
184
|
<Vertical gap={16}>
|
|
@@ -206,10 +206,10 @@ Content to render inside the gradient.
|
|
|
206
206
|
```tsx
|
|
207
207
|
import React from 'react';
|
|
208
208
|
import { Gradient } from '../Gradient';
|
|
209
|
-
import { Vertical } from 'app-studio';
|
|
210
|
-
import { Text } from 'app-studio';
|
|
209
|
+
import { Vertical } from '@app-studio/web';
|
|
210
|
+
import { Text } from '@app-studio/web';
|
|
211
211
|
import { Button } from '../../Button/Button';
|
|
212
|
-
import { Center } from 'app-studio';
|
|
212
|
+
import { Center } from '@app-studio/web';
|
|
213
213
|
|
|
214
214
|
export const WithContentDemo = () => (
|
|
215
215
|
<Gradient
|
|
@@ -240,8 +240,8 @@ Custom styling that overrides default views.
|
|
|
240
240
|
```tsx
|
|
241
241
|
import React from 'react';
|
|
242
242
|
import { Gradient } from '../Gradient';
|
|
243
|
-
import { Center } from 'app-studio';
|
|
244
|
-
import { Text } from 'app-studio';
|
|
243
|
+
import { Center } from '@app-studio/web';
|
|
244
|
+
import { Text } from '@app-studio/web';
|
|
245
245
|
|
|
246
246
|
export const StylesDemo = () => (
|
|
247
247
|
<Gradient
|
|
@@ -11,7 +11,7 @@ Aligns child components horizontally, with optional reverse order.
|
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
|
-
import { View } from 'app-studio';
|
|
14
|
+
import { View } from '@app-studio/web';
|
|
15
15
|
import { Horizontal } from '../../Horizontal/Horizontal';
|
|
16
16
|
|
|
17
17
|
export const DefaultHorizontal = () => (
|
|
@@ -12,7 +12,7 @@ A floating card that appears when hovering over a trigger element. Supports conf
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { HoverCard } from '../HoverCard';
|
|
14
14
|
import { Button } from '../../Button/Button';
|
|
15
|
-
import { Text } from 'app-studio';
|
|
15
|
+
import { Text } from '@app-studio/web';
|
|
16
16
|
|
|
17
17
|
export const DefaultHoverCard = () => {
|
|
18
18
|
return (
|
|
@@ -37,7 +37,7 @@ You can control the position of the HoverCard content using the `side` and `alig
|
|
|
37
37
|
import React from 'react';
|
|
38
38
|
import { HoverCard } from '../HoverCard';
|
|
39
39
|
import { Button } from '../../Button/Button';
|
|
40
|
-
import { Text } from 'app-studio';
|
|
40
|
+
import { Text } from '@app-studio/web';
|
|
41
41
|
|
|
42
42
|
export const PositionedHoverCard = () => {
|
|
43
43
|
return (
|
|
@@ -62,7 +62,7 @@ You can customize the appearance of the HoverCard using the `views` prop.
|
|
|
62
62
|
import React from 'react';
|
|
63
63
|
import { HoverCard } from '../HoverCard';
|
|
64
64
|
import { Button } from '../../Button/Button';
|
|
65
|
-
import { Text } from 'app-studio';
|
|
65
|
+
import { Text } from '@app-studio/web';
|
|
66
66
|
|
|
67
67
|
export const StyledHoverCard = () => {
|
|
68
68
|
return (
|
|
@@ -96,7 +96,7 @@ You can control the timing of when the HoverCard opens and closes using the `ope
|
|
|
96
96
|
import React from 'react';
|
|
97
97
|
import { HoverCard } from '../HoverCard';
|
|
98
98
|
import { Button } from '../../Button/Button';
|
|
99
|
-
import { Text } from 'app-studio';
|
|
99
|
+
import { Text } from '@app-studio/web';
|
|
100
100
|
|
|
101
101
|
export const DelayedHoverCard = () => {
|
|
102
102
|
return (
|
|
@@ -121,7 +121,7 @@ You can use the `asChild` prop on the Trigger to apply hover behavior directly t
|
|
|
121
121
|
import React from 'react';
|
|
122
122
|
import { HoverCard } from '../HoverCard';
|
|
123
123
|
import { Link } from '../../Link/Link';
|
|
124
|
-
import { Text } from 'app-studio';
|
|
124
|
+
import { Text } from '@app-studio/web';
|
|
125
125
|
|
|
126
126
|
export const LinkHoverCard = () => {
|
|
127
127
|
return (
|
package/docs/components/Icon.mdx
CHANGED
|
@@ -20,7 +20,7 @@ A comprehensive collection of SVG icons with consistent styling, customizable co
|
|
|
20
20
|
```tsx
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { UploadIcon, EditIcon, DeleteIcon } from '@app-studio/web';
|
|
23
|
-
import { Horizontal } from 'app-studio';
|
|
23
|
+
import { Horizontal } from '@app-studio/web';
|
|
24
24
|
|
|
25
25
|
export const BasicIcons = () => (
|
|
26
26
|
<Horizontal gap={16}>
|
|
@@ -35,7 +35,7 @@ export const BasicIcons = () => (
|
|
|
35
35
|
```tsx
|
|
36
36
|
import React from 'react';
|
|
37
37
|
import { StarIcon } from '@app-studio/web';
|
|
38
|
-
import { Horizontal } from 'app-studio';
|
|
38
|
+
import { Horizontal } from '@app-studio/web';
|
|
39
39
|
|
|
40
40
|
export const IconSizes = () => (
|
|
41
41
|
<Horizontal gap={16} alignItems="center">
|
|
@@ -52,7 +52,7 @@ export const IconSizes = () => (
|
|
|
52
52
|
```tsx
|
|
53
53
|
import React from 'react';
|
|
54
54
|
import { HeartIcon } from '@app-studio/web';
|
|
55
|
-
import { Horizontal } from 'app-studio';
|
|
55
|
+
import { Horizontal } from '@app-studio/web';
|
|
56
56
|
|
|
57
57
|
export const IconColors = () => (
|
|
58
58
|
<Horizontal gap={16}>
|
|
@@ -69,7 +69,7 @@ export const IconColors = () => (
|
|
|
69
69
|
```tsx
|
|
70
70
|
import React from 'react';
|
|
71
71
|
import { StarIcon, HeartIcon, BookmarkIcon } from '@app-studio/web';
|
|
72
|
-
import { Horizontal, Vertical, Text } from 'app-studio';
|
|
72
|
+
import { Horizontal, Vertical, Text } from '@app-studio/web';
|
|
73
73
|
|
|
74
74
|
export const IconVariants = () => (
|
|
75
75
|
<Vertical gap={16}>
|
|
@@ -94,7 +94,7 @@ export const IconVariants = () => (
|
|
|
94
94
|
```tsx
|
|
95
95
|
import React from 'react';
|
|
96
96
|
import { ArrowIcon } from '@app-studio/web';
|
|
97
|
-
import { Horizontal, Text } from 'app-studio';
|
|
97
|
+
import { Horizontal, Text } from '@app-studio/web';
|
|
98
98
|
|
|
99
99
|
export const IconOrientations = () => (
|
|
100
100
|
<Horizontal gap={24} alignItems="center">
|
|
@@ -181,7 +181,7 @@ The icon library includes a comprehensive set of icons organized by category:
|
|
|
181
181
|
import React from 'react';
|
|
182
182
|
import { Button } from '@app-studio/web';
|
|
183
183
|
import { EditIcon, DeleteIcon, SaveIcon } from '@app-studio/web';
|
|
184
|
-
import { Horizontal } from 'app-studio';
|
|
184
|
+
import { Horizontal } from '@app-studio/web';
|
|
185
185
|
|
|
186
186
|
export const IconButtons = () => (
|
|
187
187
|
<Horizontal gap={12}>
|
|
@@ -213,7 +213,7 @@ export const IconButtons = () => (
|
|
|
213
213
|
```tsx
|
|
214
214
|
import React from 'react';
|
|
215
215
|
import { StarIcon } from '@app-studio/web';
|
|
216
|
-
import { View } from 'app-studio';
|
|
216
|
+
import { View } from '@app-studio/web';
|
|
217
217
|
|
|
218
218
|
export const CustomStyledIcon = () => (
|
|
219
219
|
<View>
|
|
@@ -265,7 +265,7 @@ All icons inherit from the base `IconWrapper` component which extends `ViewProps
|
|
|
265
265
|
```tsx
|
|
266
266
|
import React from 'react';
|
|
267
267
|
import { MenuIcon } from '@app-studio/web';
|
|
268
|
-
import { useBreakpoint } from 'app-studio';
|
|
268
|
+
import { useBreakpoint } from '@app-studio/web';
|
|
269
269
|
|
|
270
270
|
export const ResponsiveIcon = () => {
|
|
271
271
|
const { isMobile, isTablet, isDesktop } = useBreakpoint();
|
|
@@ -302,7 +302,7 @@ export const IconWithTooltip = () => (
|
|
|
302
302
|
```tsx
|
|
303
303
|
import React, { useState } from 'react';
|
|
304
304
|
import { HeartIcon } from '@app-studio/web';
|
|
305
|
-
import { View } from 'app-studio';
|
|
305
|
+
import { View } from '@app-studio/web';
|
|
306
306
|
|
|
307
307
|
export const AnimatedIcon = () => {
|
|
308
308
|
const [isLiked, setIsLiked] = useState(false);
|
|
@@ -330,7 +330,7 @@ export const AnimatedIcon = () => {
|
|
|
330
330
|
```tsx
|
|
331
331
|
import React from 'react';
|
|
332
332
|
import * as Icons from '@app-studio/web';
|
|
333
|
-
import { View, Text } from 'app-studio';
|
|
333
|
+
import { View, Text } from '@app-studio/web';
|
|
334
334
|
|
|
335
335
|
export const IconGrid = () => {
|
|
336
336
|
const iconNames = Object.keys(Icons).filter(name =>
|
|
@@ -63,7 +63,7 @@ Customize how cards are displayed using the `renderCard` prop. This is useful fo
|
|
|
63
63
|
import React, { useState } from 'react';
|
|
64
64
|
import { KanbanBoard } from '../KanbanBoard';
|
|
65
65
|
import { KanbanBoardColumn, KanbanBoardCard } from '../KanbanBoard/KanbanBoard.props';
|
|
66
|
-
import { View, Text, Horizontal } from 'app-studio';
|
|
66
|
+
import { View, Text, Horizontal } from '@app-studio/web';
|
|
67
67
|
|
|
68
68
|
export const CustomRenderKanbanBoard = () => {
|
|
69
69
|
const [columns, setColumns] = useState<KanbanBoardColumn[]>([
|
|
@@ -132,7 +132,7 @@ import React, { useState } from 'react';
|
|
|
132
132
|
import { KanbanBoard } from '../KanbanBoard';
|
|
133
133
|
import { Button } from '../Button';
|
|
134
134
|
import { KanbanBoardColumn, KanbanBoardCard } from '../KanbanBoard/KanbanBoard.props';
|
|
135
|
-
import { View, Text, Horizontal } from 'app-studio';
|
|
135
|
+
import { View, Text, Horizontal } from '@app-studio/web';
|
|
136
136
|
|
|
137
137
|
export const CustomHeaderKanbanBoard = () => {
|
|
138
138
|
const [columns, setColumns] = useState<KanbanBoardColumn[]>([
|
|
@@ -176,7 +176,7 @@ You can implement inline editing of card titles by using the `onCardTitleChange`
|
|
|
176
176
|
import React, { useState } from 'react';
|
|
177
177
|
import { KanbanBoard } from '../KanbanBoard';
|
|
178
178
|
import { KanbanBoardColumn, KanbanBoardCard } from '../KanbanBoard/KanbanBoard.props';
|
|
179
|
-
import { Input, Text } from 'app-studio';
|
|
179
|
+
import { Input, Text } from '@app-studio/web';
|
|
180
180
|
|
|
181
181
|
export const EditableKanbanBoard = () => {
|
|
182
182
|
const [columns, setColumns] = useState<KanbanBoardColumn[]>([
|
|
@@ -12,7 +12,7 @@ A semantic text element designed for form labels and descriptive text with compr
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Label } from '@app-studio/web';
|
|
14
14
|
import { TextField } from '@app-studio/web';
|
|
15
|
-
import { Vertical } from 'app-studio';
|
|
15
|
+
import { Vertical } from '@app-studio/web';
|
|
16
16
|
|
|
17
17
|
export const BasicLabel = () => (
|
|
18
18
|
<Vertical gap={8}>
|
|
@@ -26,7 +26,7 @@ export const BasicLabel = () => (
|
|
|
26
26
|
```tsx
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { Label } from '@app-studio/web';
|
|
29
|
-
import { Vertical } from 'app-studio';
|
|
29
|
+
import { Vertical } from '@app-studio/web';
|
|
30
30
|
|
|
31
31
|
export const LabelSizes = () => (
|
|
32
32
|
<Vertical gap={16}>
|
|
@@ -43,7 +43,7 @@ export const LabelSizes = () => (
|
|
|
43
43
|
```tsx
|
|
44
44
|
import React from 'react';
|
|
45
45
|
import { Label } from '@app-studio/web';
|
|
46
|
-
import { Vertical } from 'app-studio';
|
|
46
|
+
import { Vertical } from '@app-studio/web';
|
|
47
47
|
|
|
48
48
|
export const LabelWeights = () => (
|
|
49
49
|
<Vertical gap={12}>
|
|
@@ -60,7 +60,7 @@ export const LabelWeights = () => (
|
|
|
60
60
|
```tsx
|
|
61
61
|
import React from 'react';
|
|
62
62
|
import { Label } from '@app-studio/web';
|
|
63
|
-
import { Vertical } from 'app-studio';
|
|
63
|
+
import { Vertical } from '@app-studio/web';
|
|
64
64
|
|
|
65
65
|
export const HeadingLabels = () => (
|
|
66
66
|
<Vertical gap={16}>
|
|
@@ -78,7 +78,7 @@ export const HeadingLabels = () => (
|
|
|
78
78
|
```tsx
|
|
79
79
|
import React from 'react';
|
|
80
80
|
import { Label } from '@app-studio/web';
|
|
81
|
-
import { Vertical } from 'app-studio';
|
|
81
|
+
import { Vertical } from '@app-studio/web';
|
|
82
82
|
|
|
83
83
|
export const TextDecorations = () => (
|
|
84
84
|
<Vertical gap={12}>
|
|
@@ -98,7 +98,7 @@ export const TextDecorations = () => (
|
|
|
98
98
|
import React from 'react';
|
|
99
99
|
import { Label } from '@app-studio/web';
|
|
100
100
|
import { TextField, TextArea } from '@app-studio/web';
|
|
101
|
-
import { Vertical, Horizontal } from 'app-studio';
|
|
101
|
+
import { Vertical, Horizontal } from '@app-studio/web';
|
|
102
102
|
|
|
103
103
|
export const FormLabels = () => (
|
|
104
104
|
<Vertical gap={20}>
|
|
@@ -131,7 +131,7 @@ export const FormLabels = () => (
|
|
|
131
131
|
```tsx
|
|
132
132
|
import React from 'react';
|
|
133
133
|
import { Label } from '@app-studio/web';
|
|
134
|
-
import { View, Vertical } from 'app-studio';
|
|
134
|
+
import { View, Vertical } from '@app-studio/web';
|
|
135
135
|
|
|
136
136
|
export const SectionHeaders = () => (
|
|
137
137
|
<Vertical gap={24}>
|
|
@@ -172,7 +172,7 @@ export const SectionHeaders = () => (
|
|
|
172
172
|
```tsx
|
|
173
173
|
import React from 'react';
|
|
174
174
|
import { Label } from '@app-studio/web';
|
|
175
|
-
import { Vertical } from 'app-studio';
|
|
175
|
+
import { Vertical } from '@app-studio/web';
|
|
176
176
|
|
|
177
177
|
export const ColoredLabels = () => (
|
|
178
178
|
<Vertical gap={12}>
|
package/docs/components/Link.mdx
CHANGED
|
@@ -22,8 +22,8 @@ Optional prop to define the text decoration style of the link as underline views
|
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
24
|
import React from 'react';
|
|
25
|
-
import { Text } from 'app-studio';
|
|
26
|
-
import { Vertical } from 'app-studio';
|
|
25
|
+
import { Text } from '@app-studio/web';
|
|
26
|
+
import { Vertical } from '@app-studio/web';
|
|
27
27
|
|
|
28
28
|
import { Link } from '../Link';
|
|
29
29
|
|
|
@@ -53,7 +53,7 @@ Optional boolean indicating whether the link points to an external resource. Def
|
|
|
53
53
|
|
|
54
54
|
```tsx
|
|
55
55
|
import React from 'react';
|
|
56
|
-
import { Text } from 'app-studio';
|
|
56
|
+
import { Text } from '@app-studio/web';
|
|
57
57
|
|
|
58
58
|
import { Link } from '../Link';
|
|
59
59
|
|
|
@@ -21,7 +21,7 @@ export const BasicLoader = () => (
|
|
|
21
21
|
```tsx
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import { Loader } from '@app-studio/web';
|
|
24
|
-
import { Vertical, Horizontal } from 'app-studio';
|
|
24
|
+
import { Vertical, Horizontal } from '@app-studio/web';
|
|
25
25
|
|
|
26
26
|
export const LoaderTypes = () => (
|
|
27
27
|
<Vertical gap={24}>
|
|
@@ -38,7 +38,7 @@ export const LoaderTypes = () => (
|
|
|
38
38
|
```tsx
|
|
39
39
|
import React from 'react';
|
|
40
40
|
import { Loader } from '@app-studio/web';
|
|
41
|
-
import { Horizontal } from 'app-studio';
|
|
41
|
+
import { Horizontal } from '@app-studio/web';
|
|
42
42
|
|
|
43
43
|
export const LoaderSizes = () => (
|
|
44
44
|
<Horizontal gap={24} alignItems="center">
|
|
@@ -55,7 +55,7 @@ export const LoaderSizes = () => (
|
|
|
55
55
|
```tsx
|
|
56
56
|
import React from 'react';
|
|
57
57
|
import { Loader } from '@app-studio/web';
|
|
58
|
-
import { Horizontal } from 'app-studio';
|
|
58
|
+
import { Horizontal } from '@app-studio/web';
|
|
59
59
|
|
|
60
60
|
export const CustomSizes = () => (
|
|
61
61
|
<Horizontal gap={24} alignItems="center">
|
|
@@ -71,7 +71,7 @@ export const CustomSizes = () => (
|
|
|
71
71
|
```tsx
|
|
72
72
|
import React from 'react';
|
|
73
73
|
import { Loader } from '@app-studio/web';
|
|
74
|
-
import { Vertical } from 'app-studio';
|
|
74
|
+
import { Vertical } from '@app-studio/web';
|
|
75
75
|
|
|
76
76
|
export const TextPositioning = () => (
|
|
77
77
|
<Vertical gap={32}>
|
|
@@ -87,7 +87,7 @@ export const TextPositioning = () => (
|
|
|
87
87
|
```tsx
|
|
88
88
|
import React from 'react';
|
|
89
89
|
import { Loader } from '@app-studio/web';
|
|
90
|
-
import { Vertical } from 'app-studio';
|
|
90
|
+
import { Vertical } from '@app-studio/web';
|
|
91
91
|
|
|
92
92
|
export const ColoredLoaders = () => (
|
|
93
93
|
<Vertical gap={20}>
|
|
@@ -126,7 +126,7 @@ export const ColoredLoaders = () => (
|
|
|
126
126
|
```tsx
|
|
127
127
|
import React from 'react';
|
|
128
128
|
import { Loader } from '@app-studio/web';
|
|
129
|
-
import { Horizontal } from 'app-studio';
|
|
129
|
+
import { Horizontal } from '@app-studio/web';
|
|
130
130
|
|
|
131
131
|
export const AnimationSpeeds = () => (
|
|
132
132
|
<Horizontal gap={32} alignItems="center">
|
|
@@ -142,7 +142,7 @@ export const AnimationSpeeds = () => (
|
|
|
142
142
|
import React, { useState } from 'react';
|
|
143
143
|
import { Loader } from '@app-studio/web';
|
|
144
144
|
import { Button } from '@app-studio/web';
|
|
145
|
-
import { View, Text, Vertical } from 'app-studio';
|
|
145
|
+
import { View, Text, Vertical } from '@app-studio/web';
|
|
146
146
|
|
|
147
147
|
export const LoadingStates = () => {
|
|
148
148
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -209,7 +209,7 @@ export const LoadingStates = () => {
|
|
|
209
209
|
```tsx
|
|
210
210
|
import React from 'react';
|
|
211
211
|
import { Loader } from '@app-studio/web';
|
|
212
|
-
import { Center } from 'app-studio';
|
|
212
|
+
import { Center } from '@app-studio/web';
|
|
213
213
|
|
|
214
214
|
export const FullPageLoader = () => (
|
|
215
215
|
<Center
|
|
@@ -237,7 +237,7 @@ export const FullPageLoader = () => (
|
|
|
237
237
|
import React, { useState } from 'react';
|
|
238
238
|
import { Loader } from '@app-studio/web';
|
|
239
239
|
import { Button } from '@app-studio/web';
|
|
240
|
-
import { Horizontal, Text } from 'app-studio';
|
|
240
|
+
import { Horizontal, Text } from '@app-studio/web';
|
|
241
241
|
|
|
242
242
|
export const InlineLoader = () => {
|
|
243
243
|
const [saving, setSaving] = useState(false);
|
|
@@ -273,7 +273,7 @@ export const InlineLoader = () => {
|
|
|
273
273
|
```tsx
|
|
274
274
|
import React, { useState, useEffect } from 'react';
|
|
275
275
|
import { Loader } from '@app-studio/web';
|
|
276
|
-
import { View, Text, Vertical } from 'app-studio';
|
|
276
|
+
import { View, Text, Vertical } from '@app-studio/web';
|
|
277
277
|
|
|
278
278
|
export const CardLoader = () => {
|
|
279
279
|
const [loading, setLoading] = useState(true);
|
|
@@ -330,7 +330,7 @@ export const CardLoader = () => {
|
|
|
330
330
|
import React, { useState } from 'react';
|
|
331
331
|
import { Loader } from '@app-studio/web';
|
|
332
332
|
import { Button } from '@app-studio/web';
|
|
333
|
-
import { Horizontal } from 'app-studio';
|
|
333
|
+
import { Horizontal } from '@app-studio/web';
|
|
334
334
|
|
|
335
335
|
export const ButtonLoaders = () => {
|
|
336
336
|
const [loading1, setLoading1] = useState(false);
|
|
@@ -374,7 +374,7 @@ export const ButtonLoaders = () => {
|
|
|
374
374
|
```tsx
|
|
375
375
|
import React from 'react';
|
|
376
376
|
import { Loader } from '@app-studio/web';
|
|
377
|
-
import { View } from 'app-studio';
|
|
377
|
+
import { View } from '@app-studio/web';
|
|
378
378
|
|
|
379
379
|
export const CustomLoader = () => (
|
|
380
380
|
<View
|
|
@@ -11,8 +11,8 @@ A flexible menubar component for creating application menus with dropdown submen
|
|
|
11
11
|
```tsx
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Menubar } from '../Menubar';
|
|
14
|
-
import { View } from 'app-studio';
|
|
15
|
-
import { Text } from 'app-studio';
|
|
14
|
+
import { View } from '@app-studio/web';
|
|
15
|
+
import { Text } from '@app-studio/web';
|
|
16
16
|
|
|
17
17
|
export const DefaultMenubar = () => {
|
|
18
18
|
const items = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
### **Import**
|
|
2
2
|
|
|
3
3
|
```tsx
|
|
4
|
-
import { Message } from 'app-studio';
|
|
4
|
+
import { Message } from '@app-studio/web';
|
|
5
5
|
```
|
|
6
6
|
|
|
7
7
|
### **Default**
|
|
@@ -258,7 +258,7 @@ It represents the main container or wrapper that holds all the content and compo
|
|
|
258
258
|
```tsx
|
|
259
259
|
import { useState } from 'react';
|
|
260
260
|
import { Button } from '../Button/Button';
|
|
261
|
-
import { Text } from 'app-studio';
|
|
261
|
+
import { Text } from '@app-studio/web';
|
|
262
262
|
import { Horizontal } from '../Layout/Horizontal/Horizontal';
|
|
263
263
|
|
|
264
264
|
const [showSharp, setShowSharp] = useState(false);
|
|
@@ -306,7 +306,7 @@ const [showRounded, setShowRounded] = useState(false);
|
|
|
306
306
|
```tsx
|
|
307
307
|
import { useState } from 'react';
|
|
308
308
|
import { Button } from '../Button/Button';
|
|
309
|
-
import { Text } from 'app-studio';
|
|
309
|
+
import { Text } from '@app-studio/web';
|
|
310
310
|
|
|
311
311
|
const [show, setShow] = useState(false);
|
|
312
312
|
|
|
@@ -398,7 +398,7 @@ A vertical scroll is displayed, if the content height exceed the body height.
|
|
|
398
398
|
```tsx
|
|
399
399
|
import { useState } from 'react';
|
|
400
400
|
import { Button } from '../Button/Button';
|
|
401
|
-
import { Text } from 'app-studio';
|
|
401
|
+
import { Text } from '@app-studio/web';
|
|
402
402
|
|
|
403
403
|
const [show, setShow] = useState(false);
|
|
404
404
|
|
|
@@ -439,7 +439,7 @@ It represents the footer section of a message, where the primary information or
|
|
|
439
439
|
```tsx
|
|
440
440
|
import { useState } from 'react';
|
|
441
441
|
import { Button } from '../Button/Button';
|
|
442
|
-
import { Text } from 'app-studio';
|
|
442
|
+
import { Text } from '@app-studio/web';
|
|
443
443
|
|
|
444
444
|
const [show, setShow] = useState(false);
|
|
445
445
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
### **Import**
|
|
2
2
|
|
|
3
3
|
```tsx
|
|
4
|
-
import { Modal } from 'app-studio';
|
|
4
|
+
import { Modal } from '@app-studio/web';
|
|
5
5
|
```
|
|
6
6
|
|
|
7
7
|
### **Default**
|
|
@@ -263,7 +263,7 @@ It represents the main container or wrapper that holds all the content and compo
|
|
|
263
263
|
```tsx
|
|
264
264
|
import { useState } from 'react';
|
|
265
265
|
import { Button } from '../Button/Button';
|
|
266
|
-
import { Text } from 'app-studio';
|
|
266
|
+
import { Text } from '@app-studio/web';
|
|
267
267
|
import { Horizontal } from '../Layout/Horizontal/Horizontal';
|
|
268
268
|
|
|
269
269
|
const [showSharp, setShowSharp] = useState(false);
|
|
@@ -311,7 +311,7 @@ const [showRounded, setShowRounded] = useState(false);
|
|
|
311
311
|
```tsx
|
|
312
312
|
import { useState } from 'react';
|
|
313
313
|
import { Button } from '../Button/Button';
|
|
314
|
-
import { Text } from 'app-studio';
|
|
314
|
+
import { Text } from '@app-studio/web';
|
|
315
315
|
|
|
316
316
|
const [show, setShow] = useState(false);
|
|
317
317
|
|
|
@@ -410,7 +410,7 @@ A vertical scroll is displayed, if the content height exceed the body height.
|
|
|
410
410
|
```tsx
|
|
411
411
|
import { useState } from 'react';
|
|
412
412
|
import { Button } from '../Button/Button';
|
|
413
|
-
import { Text } from 'app-studio';
|
|
413
|
+
import { Text } from '@app-studio/web';
|
|
414
414
|
|
|
415
415
|
const [show, setShow] = useState(false);
|
|
416
416
|
|
|
@@ -451,7 +451,7 @@ It represents the footer section of a modal, which typically contains buttons or
|
|
|
451
451
|
```tsx
|
|
452
452
|
import { useState } from 'react';
|
|
453
453
|
import { Button } from '../Button/Button';
|
|
454
|
-
import { Text } from 'app-studio';
|
|
454
|
+
import { Text } from '@app-studio/web';
|
|
455
455
|
|
|
456
456
|
const [show, setShow] = useState(false);
|
|
457
457
|
|
|
@@ -88,7 +88,7 @@ Change the orientation of the slider.
|
|
|
88
88
|
```tsx
|
|
89
89
|
import React, { useState } from 'react';
|
|
90
90
|
import { Slider } from '../Slider';
|
|
91
|
-
import { View } from 'app-studio';
|
|
91
|
+
import { View } from '@app-studio/web';
|
|
92
92
|
|
|
93
93
|
export const VerticalSlider = () => {
|
|
94
94
|
const [value, setValue] = useState(50);
|
package/docs/components/Tabs.mdx
CHANGED
|
@@ -125,7 +125,7 @@ Allows for optional styling to be applied to the tabs via a TabsStyles object.
|
|
|
125
125
|
|
|
126
126
|
```tsx
|
|
127
127
|
import React from 'react';
|
|
128
|
-
import { Text } from 'app-studio';
|
|
128
|
+
import { Text } from '@app-studio/web';
|
|
129
129
|
import { Tabs } from '../../Tabs/Tabs';
|
|
130
130
|
|
|
131
131
|
export const StylesTabs = () => {
|