@app-studio/web 0.9.83 → 0.9.85
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/Button/Button/Button.view.d.ts +1 -1
- package/dist/components/Formik/Formik.ColorInput.d.ts +1 -1
- package/dist/components/Gradient/Gradient.d.ts +4 -4
- package/dist/components/Title/Title/Title.props.d.ts +3 -3
- package/dist/components/Title/Title/Title.type.d.ts +1 -1
- package/dist/web.cjs.development.js +755 -784
- 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 +755 -784
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +755 -784
- 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/app-studio/Components.md +8 -8
- package/docs/app-studio/Design.md +2 -2
- package/docs/app-studio/Events.md +31 -31
- package/docs/app-studio/Hooks.md +6 -6
- package/docs/app-studio/Providers.md +2 -2
- package/docs/app-studio/README.md +30 -30
- package/docs/app-studio/Responsive.md +3 -3
- package/docs/app-studio/Theming.md +114 -113
- package/docs/app-studio.md +2 -2
- package/docs/component-development/guide.md +10 -10
- package/docs/components/Background.mdx +2 -2
- package/docs/components/Badge.mdx +1 -1
- package/docs/components/Button.mdx +2 -2
- package/docs/components/Carousel.mdx +15 -15
- package/docs/components/Center.mdx +40 -40
- package/docs/components/Checkbox.mdx +5 -5
- package/docs/components/ColorInput.mdx +13 -13
- package/docs/components/ColorPicker.mdx +17 -17
- package/docs/components/ContextMenu.mdx +1 -1
- package/docs/components/DatePicker.mdx +6 -6
- package/docs/components/DragAndDrop.mdx +8 -8
- package/docs/components/Drawer.mdx +3 -3
- package/docs/components/Form.mdx +2 -2
- package/docs/components/Formik.mdx +3 -3
- package/docs/components/Gradient.mdx +32 -32
- package/docs/components/Horizontal.mdx +3 -3
- package/docs/components/HoverCard.mdx +3 -3
- package/docs/components/Icon.mdx +14 -14
- package/docs/components/Label.mdx +28 -28
- package/docs/components/Link.mdx +2 -2
- package/docs/components/Loader.mdx +16 -16
- package/docs/components/OTPInput.mdx +9 -9
- package/docs/components/Password.mdx +1 -1
- package/docs/components/ProgressBar.mdx +9 -9
- package/docs/components/Resizable.mdx +6 -6
- package/docs/components/Selector.mdx +4 -4
- package/docs/components/Sidebar.mdx +2 -2
- package/docs/components/Slider.mdx +10 -10
- package/docs/components/StatusIndicator.mdx +5 -5
- package/docs/components/Switch.mdx +1 -1
- package/docs/components/TagInput.mdx +8 -8
- package/docs/components/Text.mdx +1 -1
- package/docs/components/TextArea.mdx +2 -2
- package/docs/components/TextField.mdx +2 -2
- package/docs/components/Title.mdx +1 -1
- package/docs/components/Vertical.mdx +64 -64
- package/docs/components.md +4 -4
- package/docs/conventions.md +1 -1
- package/docs/design-system/theming.md +19 -19
- package/docs/tutorials/README.md +1 -1
- package/docs/tutorials/basic/creating-a-simple-form.md +2 -2
- package/package.json +2 -2
|
@@ -25,7 +25,7 @@ export const DefaultResizable = () => {
|
|
|
25
25
|
>
|
|
26
26
|
<Resizable>
|
|
27
27
|
<Resizable.Panel id="panel1" defaultSize="30%">
|
|
28
|
-
<View padding="16px" height="100%" backgroundColor="color
|
|
28
|
+
<View padding="16px" height="100%" backgroundColor="color-blue.50">
|
|
29
29
|
<Text fontWeight="bold" marginBottom="8px">
|
|
30
30
|
Panel 1
|
|
31
31
|
</Text>
|
|
@@ -36,7 +36,7 @@ export const DefaultResizable = () => {
|
|
|
36
36
|
<Resizable.Handle id="handle1" withVisualIndicator />
|
|
37
37
|
|
|
38
38
|
<Resizable.Panel id="panel2" defaultSize="40%">
|
|
39
|
-
<View padding="16px" height="100%" backgroundColor="color
|
|
39
|
+
<View padding="16px" height="100%" backgroundColor="color-green.50">
|
|
40
40
|
<Text fontWeight="bold" marginBottom="8px">
|
|
41
41
|
Panel 2
|
|
42
42
|
</Text>
|
|
@@ -47,7 +47,7 @@ export const DefaultResizable = () => {
|
|
|
47
47
|
<Resizable.Handle id="handle2" withVisualIndicator />
|
|
48
48
|
|
|
49
49
|
<Resizable.Panel id="panel3" defaultSize="30%">
|
|
50
|
-
<View padding="16px" height="100%" backgroundColor="color
|
|
50
|
+
<View padding="16px" height="100%" backgroundColor="color-purple.50">
|
|
51
51
|
<Text fontWeight="bold" marginBottom="8px">
|
|
52
52
|
Panel 3
|
|
53
53
|
</Text>
|
|
@@ -93,7 +93,7 @@ export const CollapsibleResizable = () => {
|
|
|
93
93
|
minSize={100}
|
|
94
94
|
maxSize={300}
|
|
95
95
|
>
|
|
96
|
-
<View padding="16px" height="100%" backgroundColor="color
|
|
96
|
+
<View padding="16px" height="100%" backgroundColor="color-blue.50">
|
|
97
97
|
<Text fontWeight="bold" marginBottom="8px">
|
|
98
98
|
Collapsible Panel
|
|
99
99
|
</Text>
|
|
@@ -107,7 +107,7 @@ export const CollapsibleResizable = () => {
|
|
|
107
107
|
<Resizable.Handle id="handle1" withVisualIndicator withCollapseButton />
|
|
108
108
|
|
|
109
109
|
<Resizable.Panel id="panel2" defaultSize="50%">
|
|
110
|
-
<View padding="16px" height="100%" backgroundColor="color
|
|
110
|
+
<View padding="16px" height="100%" backgroundColor="color-green.50">
|
|
111
111
|
<Text fontWeight="bold" marginBottom="8px">
|
|
112
112
|
Main Panel
|
|
113
113
|
</Text>
|
|
@@ -131,7 +131,7 @@ export const CollapsibleResizable = () => {
|
|
|
131
131
|
collapsible={true}
|
|
132
132
|
defaultCollapsed={true}
|
|
133
133
|
>
|
|
134
|
-
<View padding="16px" height="100%" backgroundColor="color
|
|
134
|
+
<View padding="16px" height="100%" backgroundColor="color-purple.50">
|
|
135
135
|
<Text fontWeight="bold" marginBottom="8px">
|
|
136
136
|
Initially Collapsed Panel
|
|
137
137
|
</Text>
|
|
@@ -47,9 +47,9 @@ export const ComplexitySelector = () => (
|
|
|
47
47
|
<Selector
|
|
48
48
|
label="Complexity"
|
|
49
49
|
options={[
|
|
50
|
-
{ label: 'Low', value: 'Low', color: 'color
|
|
51
|
-
{ label: 'Medium', value: 'Medium', color: 'color
|
|
52
|
-
{ label: 'High', value: 'High', color: 'color
|
|
50
|
+
{ label: 'Low', value: 'Low', color: 'color-emerald-500' },
|
|
51
|
+
{ label: 'Medium', value: 'Medium', color: 'color-amber-500' },
|
|
52
|
+
{ label: 'High', value: 'High', color: 'color-red-500' },
|
|
53
53
|
]}
|
|
54
54
|
/>
|
|
55
55
|
);
|
|
@@ -66,7 +66,7 @@ export const CustomStyleSelector = () => (
|
|
|
66
66
|
<Selector
|
|
67
67
|
label="Custom Styled"
|
|
68
68
|
views={{
|
|
69
|
-
container: { backgroundColor: 'color
|
|
69
|
+
container: { backgroundColor: 'color-gray.50' },
|
|
70
70
|
item: { fontSize: '14px', fontStyle: 'italic' }
|
|
71
71
|
}}
|
|
72
72
|
options={[
|
|
@@ -64,12 +64,12 @@ export const DefaultSidebar = () => {
|
|
|
64
64
|
</Vertical>
|
|
65
65
|
</Sidebar.Content>
|
|
66
66
|
<Sidebar.Footer>
|
|
67
|
-
<Text size="sm" color="color
|
|
67
|
+
<Text size="sm" color="color-gray-500">
|
|
68
68
|
© 2023 App Studio
|
|
69
69
|
</Text>
|
|
70
70
|
</Sidebar.Footer>
|
|
71
71
|
</Sidebar>
|
|
72
|
-
<View flex="1" padding="16px" backgroundColor="color
|
|
72
|
+
<View flex="1" padding="16px" backgroundColor="color-gray.50">
|
|
73
73
|
<Text fontWeight="bold" size="xl" marginBottom="16px">
|
|
74
74
|
Main Content
|
|
75
75
|
</Text>
|
|
@@ -68,7 +68,7 @@ export const StepValuesDemo = () => {
|
|
|
68
68
|
|
|
69
69
|
<Horizontal justifyContent="space-between" width="100%">
|
|
70
70
|
{stepValues.map((step) => (
|
|
71
|
-
<Text key={step} fontSize={12} color="color
|
|
71
|
+
<Text key={step} fontSize={12} color="color-blueGray-500">
|
|
72
72
|
{step}
|
|
73
73
|
</Text>
|
|
74
74
|
))}
|
|
@@ -98,19 +98,19 @@ export const PricingTiersDemo = () => {
|
|
|
98
98
|
showValue
|
|
99
99
|
views={{
|
|
100
100
|
track: {
|
|
101
|
-
backgroundColor: 'color
|
|
101
|
+
backgroundColor: 'color-green-100',
|
|
102
102
|
height: 8,
|
|
103
103
|
},
|
|
104
104
|
progress: {
|
|
105
|
-
backgroundColor: 'color
|
|
105
|
+
backgroundColor: 'color-green-500',
|
|
106
106
|
},
|
|
107
107
|
thumb: {
|
|
108
|
-
backgroundColor: 'color
|
|
109
|
-
border: '2px solid color
|
|
108
|
+
backgroundColor: 'color-white',
|
|
109
|
+
border: '2px solid color-green-500',
|
|
110
110
|
},
|
|
111
111
|
valueLabel: {
|
|
112
|
-
backgroundColor: 'color
|
|
113
|
-
color: 'color
|
|
112
|
+
backgroundColor: 'color-green-500',
|
|
113
|
+
color: 'color-white',
|
|
114
114
|
padding: '2px 8px',
|
|
115
115
|
borderRadius: 4,
|
|
116
116
|
fontWeight: 600,
|
|
@@ -118,7 +118,7 @@ export const PricingTiersDemo = () => {
|
|
|
118
118
|
stepMarks: {
|
|
119
119
|
width: 6,
|
|
120
120
|
height: 6,
|
|
121
|
-
backgroundColor: 'color
|
|
121
|
+
backgroundColor: 'color-green-700',
|
|
122
122
|
},
|
|
123
123
|
}}
|
|
124
124
|
/>
|
|
@@ -128,7 +128,7 @@ export const PricingTiersDemo = () => {
|
|
|
128
128
|
<Text
|
|
129
129
|
key={price}
|
|
130
130
|
fontSize={12}
|
|
131
|
-
color="color
|
|
131
|
+
color="color-green-700"
|
|
132
132
|
fontWeight={500}
|
|
133
133
|
>
|
|
134
134
|
${price}
|
|
@@ -136,7 +136,7 @@ export const PricingTiersDemo = () => {
|
|
|
136
136
|
))}
|
|
137
137
|
</Horizontal>
|
|
138
138
|
|
|
139
|
-
<Text fontSize={14} color="color
|
|
139
|
+
<Text fontSize={14} color="color-blueGray-600" textAlign="center">
|
|
140
140
|
Selected Plan: ${value}/month
|
|
141
141
|
</Text>
|
|
142
142
|
</Vertical>
|
|
@@ -154,7 +154,7 @@ export const OrderStatus = () => (
|
|
|
154
154
|
<Vertical gap={15}>
|
|
155
155
|
<Text fontSize={18} fontWeight="bold">Order #12345</Text>
|
|
156
156
|
<StatusIndicator status="success" label="Delivered" />
|
|
157
|
-
<Text fontSize={14} color="color
|
|
157
|
+
<Text fontSize={14} color="color-coolGray-500">
|
|
158
158
|
Your order was delivered on March 15, 2024
|
|
159
159
|
</Text>
|
|
160
160
|
</Vertical>
|
|
@@ -242,12 +242,12 @@ export const PaymentStatus = () => (
|
|
|
242
242
|
<Horizontal justifyContent="space-between" alignItems="center">
|
|
243
243
|
<Vertical gap={5}>
|
|
244
244
|
<Text fontSize={16} fontWeight="bold">Payment to Acme Corp</Text>
|
|
245
|
-
<Text fontSize={14} color="color
|
|
245
|
+
<Text fontSize={14} color="color-coolGray-500">$1,234.56</Text>
|
|
246
246
|
</Vertical>
|
|
247
247
|
<StatusIndicator status="success" label="Paid" />
|
|
248
248
|
</Horizontal>
|
|
249
249
|
|
|
250
|
-
<Text fontSize={14} color="color
|
|
250
|
+
<Text fontSize={14} color="color-coolGray-500">
|
|
251
251
|
Transaction ID: TXN-2024-03-15-001
|
|
252
252
|
</Text>
|
|
253
253
|
</Vertical>
|
|
@@ -283,7 +283,7 @@ export const ServerStatusDashboard = () => {
|
|
|
283
283
|
<Horizontal justifyContent="space-between" alignItems="center">
|
|
284
284
|
<Vertical gap={5}>
|
|
285
285
|
<Text fontWeight="bold">{server.name}</Text>
|
|
286
|
-
<Text fontSize={14} color="color
|
|
286
|
+
<Text fontSize={14} color="color-coolGray-500">
|
|
287
287
|
Uptime: {server.uptime}
|
|
288
288
|
</Text>
|
|
289
289
|
</Vertical>
|
|
@@ -342,7 +342,7 @@ export const NotificationStatus = () => {
|
|
|
342
342
|
<StatusIndicator status={notification.status} />
|
|
343
343
|
<Vertical gap={2}>
|
|
344
344
|
<Text>{notification.message}</Text>
|
|
345
|
-
<Text fontSize={12} color="color
|
|
345
|
+
<Text fontSize={12} color="color-coolGray-500">{notification.time}</Text>
|
|
346
346
|
</Vertical>
|
|
347
347
|
</Horizontal>
|
|
348
348
|
))}
|
|
@@ -25,7 +25,7 @@ export const DefaultTagInput = () => {
|
|
|
25
25
|
onTagsChange={setTags}
|
|
26
26
|
helperText="Add relevant tags for your content"
|
|
27
27
|
/>
|
|
28
|
-
<Text fontSize={14} color="color
|
|
28
|
+
<Text fontSize={14} color="color-gray-600">
|
|
29
29
|
Current tags: {Array.isArray(tags) ? tags.join(', ') : 'None'}
|
|
30
30
|
</Text>
|
|
31
31
|
</Vertical>
|
|
@@ -347,16 +347,16 @@ export const StyledTagInput = () => {
|
|
|
347
347
|
shadow={{ boxShadow: 'rgba(0, 0, 0, 0.1) 0px 4px 12px' }}
|
|
348
348
|
views={{
|
|
349
349
|
inputContainer: {
|
|
350
|
-
borderColor: 'theme
|
|
350
|
+
borderColor: 'theme-primary',
|
|
351
351
|
borderWidth: '2px',
|
|
352
|
-
backgroundColor: 'color
|
|
352
|
+
backgroundColor: 'color-blue.50',
|
|
353
353
|
},
|
|
354
354
|
tag: {
|
|
355
|
-
backgroundColor: 'theme
|
|
356
|
-
borderColor: 'theme
|
|
355
|
+
backgroundColor: 'theme-primary',
|
|
356
|
+
borderColor: 'theme-primary',
|
|
357
357
|
},
|
|
358
358
|
tagText: {
|
|
359
|
-
color: 'color
|
|
359
|
+
color: 'color-white',
|
|
360
360
|
},
|
|
361
361
|
tagRemove: {
|
|
362
362
|
_hover: {
|
|
@@ -364,7 +364,7 @@ export const StyledTagInput = () => {
|
|
|
364
364
|
},
|
|
365
365
|
},
|
|
366
366
|
label: {
|
|
367
|
-
color: 'theme
|
|
367
|
+
color: 'theme-primary',
|
|
368
368
|
fontWeight: 'bold',
|
|
369
369
|
},
|
|
370
370
|
}}
|
|
@@ -396,7 +396,7 @@ export const CallbackTagInput = () => {
|
|
|
396
396
|
onTagRemove={(tag, index) => setLastAction(`Removed: ${tag} at index ${index}`)}
|
|
397
397
|
variant="outline"
|
|
398
398
|
/>
|
|
399
|
-
<Text fontSize={14} color="color
|
|
399
|
+
<Text fontSize={14} color="color-gray-600">
|
|
400
400
|
Last action: {lastAction || 'None'}
|
|
401
401
|
</Text>
|
|
402
402
|
</Vertical>
|
package/docs/components/Text.mdx
CHANGED
|
@@ -49,7 +49,7 @@ import { Vertical, Text } from "@app-studio/web";
|
|
|
49
49
|
“**_isStriked_**” marks up a text to indicate that it is no longer valid.
|
|
50
50
|
|
|
51
51
|
```tsx
|
|
52
|
-
<Text color="theme
|
|
52
|
+
<Text color="theme-secondary" isStriked>
|
|
53
53
|
Some text here
|
|
54
54
|
</Text>
|
|
55
55
|
```
|
|
@@ -31,11 +31,11 @@ import { TextArea } from '@app-studio/web';
|
|
|
31
31
|
export const ColorArea = () => {
|
|
32
32
|
return (
|
|
33
33
|
<Vertical gap={10}>
|
|
34
|
-
<TextArea name="surname" label="Surname" colorScheme="theme
|
|
34
|
+
<TextArea name="surname" label="Surname" colorScheme="theme-secondary" />
|
|
35
35
|
<TextArea
|
|
36
36
|
name="name"
|
|
37
37
|
label="Name"
|
|
38
|
-
colorScheme="theme
|
|
38
|
+
colorScheme="theme-primary"
|
|
39
39
|
variant="outline"
|
|
40
40
|
/>
|
|
41
41
|
</Vertical>
|
|
@@ -117,11 +117,11 @@ import { TextField } from '@app-studio/web';
|
|
|
117
117
|
export const ColorSchemeDemo = () => {
|
|
118
118
|
return (
|
|
119
119
|
<Vertical gap={10} width="300px">
|
|
120
|
-
<TextField name="surname" label="Surname" colorScheme="theme
|
|
120
|
+
<TextField name="surname" label="Surname" colorScheme="theme-secondary" />
|
|
121
121
|
<TextField
|
|
122
122
|
name="name"
|
|
123
123
|
label="Name"
|
|
124
|
-
colorScheme="theme
|
|
124
|
+
colorScheme="theme-primary"
|
|
125
125
|
variant="outline"
|
|
126
126
|
/>
|
|
127
127
|
</Vertical>
|
|
@@ -47,7 +47,7 @@ Highlight specific words within the title text.
|
|
|
47
47
|
|
|
48
48
|
- **highlightText:** `string | string[]` - Text to match and highlight.
|
|
49
49
|
- **highlightStyle:** `HighlightStyle` - Visual style (`background`, `gradient`, `underline`, `glow`, `outline`).
|
|
50
|
-
- **highlightColor:** `string` - Primary highlight color
|
|
50
|
+
- **highlightColor:** `string` - Primary highlight color-
|
|
51
51
|
- **highlightSecondaryColor:** `string` - Secondary color for gradients.
|
|
52
52
|
|
|
53
53
|
```tsx
|
|
@@ -17,9 +17,9 @@ import { View, Text } from '@app-studio/web';
|
|
|
17
17
|
|
|
18
18
|
export const BasicVertical = () => (
|
|
19
19
|
<Vertical>
|
|
20
|
-
<View height={50} backgroundColor="theme
|
|
21
|
-
<View height={50} backgroundColor="theme
|
|
22
|
-
<View height={50} backgroundColor="theme
|
|
20
|
+
<View height={50} backgroundColor="theme-primary" />
|
|
21
|
+
<View height={50} backgroundColor="theme-secondary" />
|
|
22
|
+
<View height={50} backgroundColor="theme-warning" />
|
|
23
23
|
</Vertical>
|
|
24
24
|
);
|
|
25
25
|
```
|
|
@@ -32,13 +32,13 @@ import { View, Text } from '@app-studio/web';
|
|
|
32
32
|
|
|
33
33
|
export const VerticalWithGap = () => (
|
|
34
34
|
<Vertical gap={16}>
|
|
35
|
-
<View padding={16} backgroundColor="color
|
|
35
|
+
<View padding={16} backgroundColor="color-blue-100" borderRadius={8}>
|
|
36
36
|
<Text>First Item</Text>
|
|
37
37
|
</View>
|
|
38
|
-
<View padding={16} backgroundColor="color
|
|
38
|
+
<View padding={16} backgroundColor="color-green-100" borderRadius={8}>
|
|
39
39
|
<Text>Second Item</Text>
|
|
40
40
|
</View>
|
|
41
|
-
<View padding={16} backgroundColor="color
|
|
41
|
+
<View padding={16} backgroundColor="color-purple-100" borderRadius={8}>
|
|
42
42
|
<Text>Third Item</Text>
|
|
43
43
|
</View>
|
|
44
44
|
</Vertical>
|
|
@@ -56,33 +56,33 @@ export const VerticalAlignment = () => (
|
|
|
56
56
|
{/* Left aligned (default) */}
|
|
57
57
|
<Vertical alignItems="flex-start" gap={8}>
|
|
58
58
|
<Text fontWeight="bold">Left Aligned</Text>
|
|
59
|
-
<View width={100} height={40} backgroundColor="color
|
|
60
|
-
<View width={150} height={40} backgroundColor="color
|
|
61
|
-
<View width={80} height={40} backgroundColor="color
|
|
59
|
+
<View width={100} height={40} backgroundColor="color-red-200" />
|
|
60
|
+
<View width={150} height={40} backgroundColor="color-red-300" />
|
|
61
|
+
<View width={80} height={40} backgroundColor="color-red-400" />
|
|
62
62
|
</Vertical>
|
|
63
63
|
|
|
64
64
|
{/* Center aligned */}
|
|
65
65
|
<Vertical alignItems="center" gap={8}>
|
|
66
66
|
<Text fontWeight="bold">Center Aligned</Text>
|
|
67
|
-
<View width={100} height={40} backgroundColor="color
|
|
68
|
-
<View width={150} height={40} backgroundColor="color
|
|
69
|
-
<View width={80} height={40} backgroundColor="color
|
|
67
|
+
<View width={100} height={40} backgroundColor="color-blue-200" />
|
|
68
|
+
<View width={150} height={40} backgroundColor="color-blue-300" />
|
|
69
|
+
<View width={80} height={40} backgroundColor="color-blue-400" />
|
|
70
70
|
</Vertical>
|
|
71
71
|
|
|
72
72
|
{/* Right aligned */}
|
|
73
73
|
<Vertical alignItems="flex-end" gap={8}>
|
|
74
74
|
<Text fontWeight="bold">Right Aligned</Text>
|
|
75
|
-
<View width={100} height={40} backgroundColor="color
|
|
76
|
-
<View width={150} height={40} backgroundColor="color
|
|
77
|
-
<View width={80} height={40} backgroundColor="color
|
|
75
|
+
<View width={100} height={40} backgroundColor="color-green-200" />
|
|
76
|
+
<View width={150} height={40} backgroundColor="color-green-300" />
|
|
77
|
+
<View width={80} height={40} backgroundColor="color-green-400" />
|
|
78
78
|
</Vertical>
|
|
79
79
|
|
|
80
80
|
{/* Stretched */}
|
|
81
81
|
<Vertical alignItems="stretch" gap={8} width={200}>
|
|
82
82
|
<Text fontWeight="bold">Stretched</Text>
|
|
83
|
-
<View height={40} backgroundColor="color
|
|
84
|
-
<View height={40} backgroundColor="color
|
|
85
|
-
<View height={40} backgroundColor="color
|
|
83
|
+
<View height={40} backgroundColor="color-purple-200" />
|
|
84
|
+
<View height={40} backgroundColor="color-purple-300" />
|
|
85
|
+
<View height={40} backgroundColor="color-purple-400" />
|
|
86
86
|
</Vertical>
|
|
87
87
|
</Vertical>
|
|
88
88
|
);
|
|
@@ -97,38 +97,38 @@ import { View, Text } from '@app-studio/web';
|
|
|
97
97
|
export const VerticalJustification = () => (
|
|
98
98
|
<Vertical gap={20}>
|
|
99
99
|
{/* Start justified (default) */}
|
|
100
|
-
<View height={200} border="1px solid" borderColor="color
|
|
100
|
+
<View height={200} border="1px solid" borderColor="color-gray-300">
|
|
101
101
|
<Vertical justifyContent="flex-start" height="100%">
|
|
102
102
|
<Text>Start Justified</Text>
|
|
103
|
-
<View width={100} height={30} backgroundColor="color
|
|
104
|
-
<View width={100} height={30} backgroundColor="color
|
|
103
|
+
<View width={100} height={30} backgroundColor="color-red-300" />
|
|
104
|
+
<View width={100} height={30} backgroundColor="color-red-400" />
|
|
105
105
|
</Vertical>
|
|
106
106
|
</View>
|
|
107
107
|
|
|
108
108
|
{/* Center justified */}
|
|
109
|
-
<View height={200} border="1px solid" borderColor="color
|
|
109
|
+
<View height={200} border="1px solid" borderColor="color-gray-300">
|
|
110
110
|
<Vertical justifyContent="center" height="100%">
|
|
111
111
|
<Text>Center Justified</Text>
|
|
112
|
-
<View width={100} height={30} backgroundColor="color
|
|
113
|
-
<View width={100} height={30} backgroundColor="color
|
|
112
|
+
<View width={100} height={30} backgroundColor="color-blue-300" />
|
|
113
|
+
<View width={100} height={30} backgroundColor="color-blue-400" />
|
|
114
114
|
</Vertical>
|
|
115
115
|
</View>
|
|
116
116
|
|
|
117
117
|
{/* End justified */}
|
|
118
|
-
<View height={200} border="1px solid" borderColor="color
|
|
118
|
+
<View height={200} border="1px solid" borderColor="color-gray-300">
|
|
119
119
|
<Vertical justifyContent="flex-end" height="100%">
|
|
120
120
|
<Text>End Justified</Text>
|
|
121
|
-
<View width={100} height={30} backgroundColor="color
|
|
122
|
-
<View width={100} height={30} backgroundColor="color
|
|
121
|
+
<View width={100} height={30} backgroundColor="color-green-300" />
|
|
122
|
+
<View width={100} height={30} backgroundColor="color-green-400" />
|
|
123
123
|
</Vertical>
|
|
124
124
|
</View>
|
|
125
125
|
|
|
126
126
|
{/* Space between */}
|
|
127
|
-
<View height={200} border="1px solid" borderColor="color
|
|
127
|
+
<View height={200} border="1px solid" borderColor="color-gray-300">
|
|
128
128
|
<Vertical justifyContent="space-between" height="100%">
|
|
129
129
|
<Text>Space Between</Text>
|
|
130
|
-
<View width={100} height={30} backgroundColor="color
|
|
131
|
-
<View width={100} height={30} backgroundColor="color
|
|
130
|
+
<View width={100} height={30} backgroundColor="color-purple-300" />
|
|
131
|
+
<View width={100} height={30} backgroundColor="color-purple-400" />
|
|
132
132
|
</Vertical>
|
|
133
133
|
</View>
|
|
134
134
|
</Vertical>
|
|
@@ -177,7 +177,7 @@ export const FormLayout = () => (
|
|
|
177
177
|
label="I agree to the terms and conditions"
|
|
178
178
|
/>
|
|
179
179
|
|
|
180
|
-
<Button variant="filled" colorScheme="theme
|
|
180
|
+
<Button variant="filled" colorScheme="theme-primary">
|
|
181
181
|
Send Message
|
|
182
182
|
</Button>
|
|
183
183
|
</Vertical>
|
|
@@ -196,12 +196,12 @@ export const NavigationMenu = () => (
|
|
|
196
196
|
<Vertical
|
|
197
197
|
width={250}
|
|
198
198
|
height="100vh"
|
|
199
|
-
backgroundColor="color
|
|
199
|
+
backgroundColor="color-gray-900"
|
|
200
200
|
padding={16}
|
|
201
201
|
gap={8}
|
|
202
202
|
>
|
|
203
203
|
<Text
|
|
204
|
-
color="color
|
|
204
|
+
color="color-white"
|
|
205
205
|
fontSize={20}
|
|
206
206
|
fontWeight="bold"
|
|
207
207
|
marginBottom={24}
|
|
@@ -221,18 +221,18 @@ export const NavigationMenu = () => (
|
|
|
221
221
|
gap={12}
|
|
222
222
|
padding={12}
|
|
223
223
|
borderRadius={8}
|
|
224
|
-
backgroundColor={item.active ? 'color
|
|
224
|
+
backgroundColor={item.active ? 'color-blue-600' : 'transparent'}
|
|
225
225
|
cursor="pointer"
|
|
226
226
|
_hover={{
|
|
227
|
-
backgroundColor: item.active ? 'color
|
|
227
|
+
backgroundColor: item.active ? 'color-blue-600' : 'color-gray-800'
|
|
228
228
|
}}
|
|
229
229
|
>
|
|
230
230
|
<item.icon
|
|
231
231
|
widthHeight={20}
|
|
232
|
-
color={item.active ? 'color
|
|
232
|
+
color={item.active ? 'color-white' : 'color-gray-300'}
|
|
233
233
|
/>
|
|
234
234
|
<Text
|
|
235
|
-
color={item.active ? 'color
|
|
235
|
+
color={item.active ? 'color-white' : 'color-gray-300'}
|
|
236
236
|
fontWeight={item.active ? 'medium' : 'normal'}
|
|
237
237
|
>
|
|
238
238
|
{item.label}
|
|
@@ -249,10 +249,10 @@ export const NavigationMenu = () => (
|
|
|
249
249
|
padding={12}
|
|
250
250
|
borderRadius={8}
|
|
251
251
|
cursor="pointer"
|
|
252
|
-
_hover={{ backgroundColor: 'color
|
|
252
|
+
_hover={{ backgroundColor: 'color-gray-800' }}
|
|
253
253
|
>
|
|
254
|
-
<LogoutIcon widthHeight={20} color="color
|
|
255
|
-
<Text color="color
|
|
254
|
+
<LogoutIcon widthHeight={20} color="color-gray-300" />
|
|
255
|
+
<Text color="color-gray-300">Logout</Text>
|
|
256
256
|
</Horizontal>
|
|
257
257
|
</Vertical>
|
|
258
258
|
);
|
|
@@ -272,15 +272,15 @@ export const CardLayout = () => (
|
|
|
272
272
|
<View
|
|
273
273
|
key={item}
|
|
274
274
|
border="1px solid"
|
|
275
|
-
borderColor="color
|
|
275
|
+
borderColor="color-gray-200"
|
|
276
276
|
borderRadius={12}
|
|
277
277
|
overflow="hidden"
|
|
278
|
-
backgroundColor="color
|
|
278
|
+
backgroundColor="color-white"
|
|
279
279
|
boxShadow="0 2px 8px rgba(0,0,0,0.1)"
|
|
280
280
|
>
|
|
281
281
|
<View
|
|
282
282
|
height={200}
|
|
283
|
-
backgroundColor="color
|
|
283
|
+
backgroundColor="color-blue-100"
|
|
284
284
|
backgroundImage={`url(https://picsum.photos/400/200?random=${item})`}
|
|
285
285
|
backgroundSize="cover"
|
|
286
286
|
backgroundPosition="center"
|
|
@@ -291,7 +291,7 @@ export const CardLayout = () => (
|
|
|
291
291
|
<Text fontSize={20} fontWeight="bold">
|
|
292
292
|
Article Title {item}
|
|
293
293
|
</Text>
|
|
294
|
-
<Text color="color
|
|
294
|
+
<Text color="color-gray-600" >
|
|
295
295
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
296
296
|
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
297
297
|
</Text>
|
|
@@ -300,14 +300,14 @@ export const CardLayout = () => (
|
|
|
300
300
|
<Horizontal justifyContent="space-between" alignItems="center">
|
|
301
301
|
<Horizontal gap={16}>
|
|
302
302
|
<Horizontal alignItems="center" gap={4}>
|
|
303
|
-
<StarIcon widthHeight={16} color="color
|
|
304
|
-
<Text fontSize={14} color="color
|
|
303
|
+
<StarIcon widthHeight={16} color="color-yellow-500" />
|
|
304
|
+
<Text fontSize={14} color="color-gray-600">4.5</Text>
|
|
305
305
|
</Horizontal>
|
|
306
306
|
<Horizontal alignItems="center" gap={4}>
|
|
307
|
-
<HeartIcon widthHeight={16} color="color
|
|
308
|
-
<Text fontSize={14} color="color
|
|
307
|
+
<HeartIcon widthHeight={16} color="color-red-500" />
|
|
308
|
+
<Text fontSize={14} color="color-gray-600">24</Text>
|
|
309
309
|
</Horizontal>
|
|
310
|
-
<ShareIcon widthHeight={16} color="color
|
|
310
|
+
<ShareIcon widthHeight={16} color="color-gray-400" />
|
|
311
311
|
</Horizontal>
|
|
312
312
|
|
|
313
313
|
<Button variant="outline" size="sm">
|
|
@@ -356,17 +356,17 @@ export const ResponsiveVertical = () => (
|
|
|
356
356
|
<View
|
|
357
357
|
width={{ mobile: '100%', tablet: '80%', desktop: '60%' }}
|
|
358
358
|
height={100}
|
|
359
|
-
backgroundColor="color
|
|
359
|
+
backgroundColor="color-blue-200"
|
|
360
360
|
/>
|
|
361
361
|
<View
|
|
362
362
|
width={{ mobile: '100%', tablet: '80%', desktop: '60%' }}
|
|
363
363
|
height={100}
|
|
364
|
-
backgroundColor="color
|
|
364
|
+
backgroundColor="color-green-200"
|
|
365
365
|
/>
|
|
366
366
|
<View
|
|
367
367
|
width={{ mobile: '100%', tablet: '80%', desktop: '60%' }}
|
|
368
368
|
height={100}
|
|
369
|
-
backgroundColor="color
|
|
369
|
+
backgroundColor="color-purple-200"
|
|
370
370
|
/>
|
|
371
371
|
</Vertical>
|
|
372
372
|
);
|
|
@@ -385,9 +385,9 @@ export const StickyHeaderLayout = () => (
|
|
|
385
385
|
{/* Sticky Header */}
|
|
386
386
|
<View
|
|
387
387
|
padding={16}
|
|
388
|
-
backgroundColor="color
|
|
388
|
+
backgroundColor="color-white"
|
|
389
389
|
borderBottom="1px solid"
|
|
390
|
-
borderColor="color
|
|
390
|
+
borderColor="color-gray-200"
|
|
391
391
|
position="sticky"
|
|
392
392
|
top={0}
|
|
393
393
|
zIndex={10}
|
|
@@ -403,7 +403,7 @@ export const StickyHeaderLayout = () => (
|
|
|
403
403
|
<View
|
|
404
404
|
key={i}
|
|
405
405
|
padding={16}
|
|
406
|
-
backgroundColor="color
|
|
406
|
+
backgroundColor="color-gray.50"
|
|
407
407
|
borderRadius={8}
|
|
408
408
|
>
|
|
409
409
|
<Text>Content Item {i + 1}</Text>
|
|
@@ -425,7 +425,7 @@ export const SplitLayout = () => (
|
|
|
425
425
|
{/* Sidebar */}
|
|
426
426
|
<Vertical
|
|
427
427
|
width={250}
|
|
428
|
-
backgroundColor="color
|
|
428
|
+
backgroundColor="color-gray-100"
|
|
429
429
|
padding={16}
|
|
430
430
|
gap={8}
|
|
431
431
|
>
|
|
@@ -444,9 +444,9 @@ export const SplitLayout = () => (
|
|
|
444
444
|
</Text>
|
|
445
445
|
<View
|
|
446
446
|
flex={1}
|
|
447
|
-
backgroundColor="color
|
|
447
|
+
backgroundColor="color-white"
|
|
448
448
|
border="1px solid"
|
|
449
|
-
borderColor="color
|
|
449
|
+
borderColor="color-gray-200"
|
|
450
450
|
borderRadius={8}
|
|
451
451
|
padding={24}
|
|
452
452
|
>
|
|
@@ -498,10 +498,10 @@ export const SplitLayout = () => (
|
|
|
498
498
|
<Vertical gap={16}>
|
|
499
499
|
{features.map((feature) => (
|
|
500
500
|
<Horizontal key={feature.id} gap={12} alignItems="flex-start">
|
|
501
|
-
<CheckIcon widthHeight={20} color="color
|
|
501
|
+
<CheckIcon widthHeight={20} color="color-green-500" />
|
|
502
502
|
<Vertical gap={4}>
|
|
503
503
|
<Text fontWeight="medium">{feature.title}</Text>
|
|
504
|
-
<Text color="color
|
|
504
|
+
<Text color="color-gray-600">{feature.description}</Text>
|
|
505
505
|
</Vertical>
|
|
506
506
|
</Horizontal>
|
|
507
507
|
))}
|
|
@@ -518,21 +518,21 @@ export const SplitLayout = () => (
|
|
|
518
518
|
width={12}
|
|
519
519
|
height={12}
|
|
520
520
|
borderRadius="50%"
|
|
521
|
-
backgroundColor="color
|
|
521
|
+
backgroundColor="color-blue-500"
|
|
522
522
|
/>
|
|
523
523
|
{index < timelineItems.length - 1 && (
|
|
524
524
|
<View
|
|
525
525
|
width={2}
|
|
526
526
|
height={40}
|
|
527
|
-
backgroundColor="color
|
|
527
|
+
backgroundColor="color-gray-300"
|
|
528
528
|
marginTop={8}
|
|
529
529
|
/>
|
|
530
530
|
)}
|
|
531
531
|
</Vertical>
|
|
532
532
|
<Vertical gap={4} flex={1}>
|
|
533
533
|
<Text fontWeight="medium">{item.title}</Text>
|
|
534
|
-
<Text color="color
|
|
535
|
-
<Text fontSize={12} color="color
|
|
534
|
+
<Text color="color-gray-600">{item.description}</Text>
|
|
535
|
+
<Text fontSize={12} color="color-gray-500">{item.date}</Text>
|
|
536
536
|
</Vertical>
|
|
537
537
|
</Horizontal>
|
|
538
538
|
))}
|