@idealyst/mcp-server 1.2.28 → 1.2.30
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/{chunk-QMHFAEAR.js → chunk-WJCICXOJ.js} +5 -5
- package/dist/{chunk-QMHFAEAR.js.map → chunk-WJCICXOJ.js.map} +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/index.cjs +6 -3
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +1 -1
- package/examples/components/ActivityIndicator.examples.tsx +22 -22
- package/examples/components/Alert.examples.tsx +14 -14
- package/examples/components/Avatar.examples.tsx +7 -7
- package/examples/components/Breadcrumb.examples.tsx +6 -6
- package/examples/components/Button.examples.tsx +1 -1
- package/examples/components/Card.examples.tsx +1 -1
- package/examples/components/Checkbox.examples.tsx +26 -26
- package/examples/components/Chip.examples.tsx +1 -1
- package/examples/components/Dialog.examples.tsx +25 -25
- package/examples/components/Divider.examples.tsx +31 -27
- package/examples/components/Icon.examples.tsx +12 -12
- package/examples/components/Menu.examples.tsx +3 -3
- package/examples/components/Popover.examples.tsx +36 -36
- package/examples/components/Progress.examples.tsx +42 -42
- package/examples/components/RadioButton.examples.tsx +21 -21
- package/examples/components/Screen.examples.tsx +35 -35
- package/examples/components/Select.examples.tsx +17 -17
- package/examples/components/Skeleton.examples.tsx +1 -1
- package/examples/components/Slider.examples.tsx +23 -23
- package/examples/components/Switch.examples.tsx +17 -17
- package/examples/components/TabBar.examples.tsx +13 -13
- package/examples/components/Text.examples.tsx +26 -26
- package/examples/components/{Input.examples.tsx → TextInput.examples.tsx} +47 -47
- package/examples/components/Tooltip.examples.tsx +11 -11
- package/examples/components/View.examples.tsx +22 -22
- package/package.json +4 -4
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { Popover, View, Text, Button, Icon, Pressable } from '@idealyst/components';
|
|
9
|
+
import { Popover, View, Text, Button, Icon, Pressable, IdealystElement } from '@idealyst/components';
|
|
10
10
|
|
|
11
11
|
// Example 1: Basic Popover
|
|
12
12
|
export function BasicPopover() {
|
|
13
13
|
const [open, setOpen] = React.useState(false);
|
|
14
|
-
const anchorRef = React.useRef<
|
|
14
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<View spacing="md">
|
|
18
18
|
<Button ref={anchorRef} onPress={() => setOpen(true)}>
|
|
19
19
|
Open Popover
|
|
20
20
|
</Button>
|
|
21
|
-
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef
|
|
21
|
+
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef}>
|
|
22
22
|
<View spacing="md" background="primary" radius="md">
|
|
23
23
|
<Text>This is a basic popover content</Text>
|
|
24
24
|
</View>
|
|
@@ -44,7 +44,7 @@ export function PopoverPlacements() {
|
|
|
44
44
|
| 'right-end'
|
|
45
45
|
>('bottom');
|
|
46
46
|
const [open, setOpen] = React.useState(false);
|
|
47
|
-
const anchorRef = React.useRef<
|
|
47
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
50
|
<View spacing="lg">
|
|
@@ -63,7 +63,7 @@ export function PopoverPlacements() {
|
|
|
63
63
|
</Button>
|
|
64
64
|
</View>
|
|
65
65
|
<Button ref={anchorRef}>Anchor Element</Button>
|
|
66
|
-
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef
|
|
66
|
+
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef} placement={placement}>
|
|
67
67
|
<View spacing="md" background="primary" radius="md">
|
|
68
68
|
<Text>Popover at {placement}</Text>
|
|
69
69
|
</View>
|
|
@@ -75,14 +75,14 @@ export function PopoverPlacements() {
|
|
|
75
75
|
// Example 3: Popover with Arrow
|
|
76
76
|
export function PopoverWithArrow() {
|
|
77
77
|
const [open, setOpen] = React.useState(false);
|
|
78
|
-
const anchorRef = React.useRef<
|
|
78
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
79
79
|
|
|
80
80
|
return (
|
|
81
81
|
<View spacing="md">
|
|
82
82
|
<Button ref={anchorRef} onPress={() => setOpen(true)}>
|
|
83
83
|
Open Popover with Arrow
|
|
84
84
|
</Button>
|
|
85
|
-
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef
|
|
85
|
+
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef} showArrow>
|
|
86
86
|
<View spacing="md" background="primary" radius="md">
|
|
87
87
|
<Text>This popover has an arrow pointing to the anchor</Text>
|
|
88
88
|
</View>
|
|
@@ -94,14 +94,14 @@ export function PopoverWithArrow() {
|
|
|
94
94
|
// Example 4: Popover with Offset
|
|
95
95
|
export function PopoverWithOffset() {
|
|
96
96
|
const [open, setOpen] = React.useState(false);
|
|
97
|
-
const anchorRef = React.useRef<
|
|
97
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
98
98
|
|
|
99
99
|
return (
|
|
100
100
|
<View spacing="md">
|
|
101
101
|
<Button ref={anchorRef} onPress={() => setOpen(true)}>
|
|
102
102
|
Open Popover
|
|
103
103
|
</Button>
|
|
104
|
-
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef
|
|
104
|
+
<Popover open={open} onOpenChange={setOpen} anchor={anchorRef} offset={20} showArrow>
|
|
105
105
|
<View spacing="md" background="primary" radius="md">
|
|
106
106
|
<Text>This popover has 20px offset from anchor</Text>
|
|
107
107
|
</View>
|
|
@@ -114,8 +114,8 @@ export function PopoverWithOffset() {
|
|
|
114
114
|
export function PopoverWithCloseBehaviors() {
|
|
115
115
|
const [open1, setOpen1] = React.useState(false);
|
|
116
116
|
const [open2, setOpen2] = React.useState(false);
|
|
117
|
-
const anchor1Ref = React.useRef<
|
|
118
|
-
const anchor2Ref = React.useRef<
|
|
117
|
+
const anchor1Ref = React.useRef<IdealystElement>(null);
|
|
118
|
+
const anchor2Ref = React.useRef<IdealystElement>(null);
|
|
119
119
|
|
|
120
120
|
return (
|
|
121
121
|
<View spacing="lg">
|
|
@@ -127,7 +127,7 @@ export function PopoverWithCloseBehaviors() {
|
|
|
127
127
|
<Popover
|
|
128
128
|
open={open1}
|
|
129
129
|
onOpenChange={setOpen1}
|
|
130
|
-
anchor={anchor1Ref
|
|
130
|
+
anchor={anchor1Ref}
|
|
131
131
|
closeOnClickOutside
|
|
132
132
|
>
|
|
133
133
|
<View spacing="md" background="primary" radius="md">
|
|
@@ -144,7 +144,7 @@ export function PopoverWithCloseBehaviors() {
|
|
|
144
144
|
<Popover
|
|
145
145
|
open={open2}
|
|
146
146
|
onOpenChange={setOpen2}
|
|
147
|
-
anchor={anchor2Ref
|
|
147
|
+
anchor={anchor2Ref}
|
|
148
148
|
closeOnClickOutside={false}
|
|
149
149
|
>
|
|
150
150
|
<View spacing="md" background="primary" radius="md">
|
|
@@ -164,7 +164,7 @@ export function PopoverWithForm() {
|
|
|
164
164
|
const [open, setOpen] = React.useState(false);
|
|
165
165
|
const [name, setName] = React.useState('');
|
|
166
166
|
const [email, setEmail] = React.useState('');
|
|
167
|
-
const anchorRef = React.useRef<
|
|
167
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
168
168
|
|
|
169
169
|
const handleSubmit = () => {
|
|
170
170
|
console.log('Submitted:', { name, email });
|
|
@@ -179,15 +179,15 @@ export function PopoverWithForm() {
|
|
|
179
179
|
<Popover
|
|
180
180
|
open={open}
|
|
181
181
|
onOpenChange={setOpen}
|
|
182
|
-
anchor={anchorRef
|
|
182
|
+
anchor={anchorRef}
|
|
183
183
|
placement="bottom-start"
|
|
184
184
|
closeOnClickOutside={false}
|
|
185
185
|
>
|
|
186
186
|
<View spacing="lg" background="primary" radius="md">
|
|
187
187
|
<Text weight="bold">Add New User</Text>
|
|
188
188
|
<View spacing="sm">
|
|
189
|
-
<Text
|
|
190
|
-
<Text
|
|
189
|
+
<Text typography="body2">Name (placeholder for input)</Text>
|
|
190
|
+
<Text typography="body2">Email (placeholder for input)</Text>
|
|
191
191
|
</View>
|
|
192
192
|
<View spacing="sm">
|
|
193
193
|
<Button size="sm" onPress={handleSubmit}>
|
|
@@ -206,7 +206,7 @@ export function PopoverWithForm() {
|
|
|
206
206
|
// Example 7: Popover with Rich Content
|
|
207
207
|
export function PopoverWithRichContent() {
|
|
208
208
|
const [open, setOpen] = React.useState(false);
|
|
209
|
-
const anchorRef = React.useRef<
|
|
209
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
210
210
|
|
|
211
211
|
return (
|
|
212
212
|
<View spacing="md">
|
|
@@ -216,30 +216,30 @@ export function PopoverWithRichContent() {
|
|
|
216
216
|
<Popover
|
|
217
217
|
open={open}
|
|
218
218
|
onOpenChange={setOpen}
|
|
219
|
-
anchor={anchorRef
|
|
219
|
+
anchor={anchorRef}
|
|
220
220
|
placement="bottom-start"
|
|
221
221
|
showArrow
|
|
222
222
|
>
|
|
223
223
|
<View spacing="md" background="primary" radius="lg">
|
|
224
224
|
<View spacing="sm">
|
|
225
|
-
<Text
|
|
225
|
+
<Text typography="subtitle1" weight="bold">
|
|
226
226
|
John Doe
|
|
227
227
|
</Text>
|
|
228
|
-
<Text
|
|
228
|
+
<Text typography="body2">
|
|
229
229
|
@johndoe
|
|
230
230
|
</Text>
|
|
231
231
|
</View>
|
|
232
232
|
<View spacing="xs">
|
|
233
|
-
<Text
|
|
234
|
-
<Text
|
|
233
|
+
<Text typography="body2">Software Engineer at Tech Corp</Text>
|
|
234
|
+
<Text typography="body2">
|
|
235
235
|
San Francisco, CA
|
|
236
236
|
</Text>
|
|
237
237
|
</View>
|
|
238
238
|
<View spacing="sm">
|
|
239
|
-
<Text
|
|
239
|
+
<Text typography="body2" weight="semibold">
|
|
240
240
|
Bio
|
|
241
241
|
</Text>
|
|
242
|
-
<Text
|
|
242
|
+
<Text typography="body2">
|
|
243
243
|
Passionate about building great products and writing clean code.
|
|
244
244
|
</Text>
|
|
245
245
|
</View>
|
|
@@ -253,7 +253,7 @@ export function PopoverWithRichContent() {
|
|
|
253
253
|
// Example 8: Popover Menu
|
|
254
254
|
export function PopoverMenu() {
|
|
255
255
|
const [open, setOpen] = React.useState(false);
|
|
256
|
-
const anchorRef = React.useRef<
|
|
256
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
257
257
|
|
|
258
258
|
const menuItems = [
|
|
259
259
|
{ icon: 'pencil' as const, label: 'Edit', onClick: () => console.log('Edit') },
|
|
@@ -270,7 +270,7 @@ export function PopoverMenu() {
|
|
|
270
270
|
<Popover
|
|
271
271
|
open={open}
|
|
272
272
|
onOpenChange={setOpen}
|
|
273
|
-
anchor={anchorRef
|
|
273
|
+
anchor={anchorRef}
|
|
274
274
|
placement="bottom-end"
|
|
275
275
|
closeOnClickOutside
|
|
276
276
|
>
|
|
@@ -285,7 +285,7 @@ export function PopoverMenu() {
|
|
|
285
285
|
}}
|
|
286
286
|
>
|
|
287
287
|
<Icon name={item.icon} size="sm" />
|
|
288
|
-
<Text
|
|
288
|
+
<Text typography="body2">{item.label}</Text>
|
|
289
289
|
</Pressable>
|
|
290
290
|
))}
|
|
291
291
|
</View>
|
|
@@ -298,7 +298,7 @@ export function PopoverMenu() {
|
|
|
298
298
|
export function ColorPickerPopover() {
|
|
299
299
|
const [open, setOpen] = React.useState(false);
|
|
300
300
|
const [selectedColor, setSelectedColor] = React.useState('#3b82f6');
|
|
301
|
-
const anchorRef = React.useRef<
|
|
301
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
302
302
|
|
|
303
303
|
const colors = [
|
|
304
304
|
'#ef4444',
|
|
@@ -323,7 +323,7 @@ export function ColorPickerPopover() {
|
|
|
323
323
|
<Popover
|
|
324
324
|
open={open}
|
|
325
325
|
onOpenChange={setOpen}
|
|
326
|
-
anchor={anchorRef
|
|
326
|
+
anchor={anchorRef}
|
|
327
327
|
placement="bottom"
|
|
328
328
|
closeOnClickOutside
|
|
329
329
|
>
|
|
@@ -358,7 +358,7 @@ export function ColorPickerPopover() {
|
|
|
358
358
|
// Example 10: Info Popover
|
|
359
359
|
export function InfoPopover() {
|
|
360
360
|
const [open, setOpen] = React.useState(false);
|
|
361
|
-
const anchorRef = React.useRef<
|
|
361
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
362
362
|
|
|
363
363
|
return (
|
|
364
364
|
<View spacing="md">
|
|
@@ -375,16 +375,16 @@ export function InfoPopover() {
|
|
|
375
375
|
<Popover
|
|
376
376
|
open={open}
|
|
377
377
|
onOpenChange={setOpen}
|
|
378
|
-
anchor={anchorRef
|
|
378
|
+
anchor={anchorRef}
|
|
379
379
|
placement="right"
|
|
380
380
|
showArrow
|
|
381
381
|
offset={8}
|
|
382
382
|
>
|
|
383
383
|
<View spacing="sm" background="primary" radius="md">
|
|
384
|
-
<Text weight="semibold"
|
|
384
|
+
<Text weight="semibold" typography="body2">
|
|
385
385
|
What does this mean?
|
|
386
386
|
</Text>
|
|
387
|
-
<Text
|
|
387
|
+
<Text typography="body2">
|
|
388
388
|
Your account status determines which features you have access to. Active accounts have
|
|
389
389
|
full access to all features.
|
|
390
390
|
</Text>
|
|
@@ -397,7 +397,7 @@ export function InfoPopover() {
|
|
|
397
397
|
// Example 11: Share Popover
|
|
398
398
|
export function SharePopover() {
|
|
399
399
|
const [open, setOpen] = React.useState(false);
|
|
400
|
-
const anchorRef = React.useRef<
|
|
400
|
+
const anchorRef = React.useRef<IdealystElement>(null);
|
|
401
401
|
|
|
402
402
|
return (
|
|
403
403
|
<View spacing="md">
|
|
@@ -408,7 +408,7 @@ export function SharePopover() {
|
|
|
408
408
|
<Popover
|
|
409
409
|
open={open}
|
|
410
410
|
onOpenChange={setOpen}
|
|
411
|
-
anchor={anchorRef
|
|
411
|
+
anchor={anchorRef}
|
|
412
412
|
placement="bottom"
|
|
413
413
|
showArrow
|
|
414
414
|
>
|
|
@@ -12,8 +12,8 @@ import { Progress, View, Text, Button } from '@idealyst/components';
|
|
|
12
12
|
export function BasicLinearProgress() {
|
|
13
13
|
return (
|
|
14
14
|
<View spacing="md">
|
|
15
|
-
<Progress value={50} max={100}
|
|
16
|
-
<Text
|
|
15
|
+
<Progress value={50} max={100} type="linear" />
|
|
16
|
+
<Text typography="body2">
|
|
17
17
|
50% complete
|
|
18
18
|
</Text>
|
|
19
19
|
</View>
|
|
@@ -24,8 +24,8 @@ export function BasicLinearProgress() {
|
|
|
24
24
|
export function BasicCircularProgress() {
|
|
25
25
|
return (
|
|
26
26
|
<View spacing="md">
|
|
27
|
-
<Progress value={75} max={100}
|
|
28
|
-
<Text
|
|
27
|
+
<Progress value={75} max={100} type="circular" />
|
|
28
|
+
<Text typography="body2">
|
|
29
29
|
75% complete
|
|
30
30
|
</Text>
|
|
31
31
|
</View>
|
|
@@ -38,20 +38,20 @@ export function ProgressSizes() {
|
|
|
38
38
|
<View spacing="lg">
|
|
39
39
|
<View spacing="sm">
|
|
40
40
|
<Text weight="semibold">Linear Sizes</Text>
|
|
41
|
-
<Progress value={60}
|
|
42
|
-
<Progress value={60}
|
|
43
|
-
<Progress value={60}
|
|
44
|
-
<Progress value={60}
|
|
45
|
-
<Progress value={60}
|
|
41
|
+
<Progress value={60} type="linear" size="xs" />
|
|
42
|
+
<Progress value={60} type="linear" size="sm" />
|
|
43
|
+
<Progress value={60} type="linear" size="md" />
|
|
44
|
+
<Progress value={60} type="linear" size="lg" />
|
|
45
|
+
<Progress value={60} type="linear" size="xl" />
|
|
46
46
|
</View>
|
|
47
47
|
<View spacing="sm">
|
|
48
48
|
<Text weight="semibold">Circular Sizes</Text>
|
|
49
49
|
<View spacing="sm">
|
|
50
|
-
<Progress value={60}
|
|
51
|
-
<Progress value={60}
|
|
52
|
-
<Progress value={60}
|
|
53
|
-
<Progress value={60}
|
|
54
|
-
<Progress value={60}
|
|
50
|
+
<Progress value={60} type="circular" size="xs" />
|
|
51
|
+
<Progress value={60} type="circular" size="sm" />
|
|
52
|
+
<Progress value={60} type="circular" size="md" />
|
|
53
|
+
<Progress value={60} type="circular" size="lg" />
|
|
54
|
+
<Progress value={60} type="circular" size="xl" />
|
|
55
55
|
</View>
|
|
56
56
|
</View>
|
|
57
57
|
</View>
|
|
@@ -63,24 +63,24 @@ export function ProgressWithIntent() {
|
|
|
63
63
|
return (
|
|
64
64
|
<View spacing="md">
|
|
65
65
|
<View spacing="sm">
|
|
66
|
-
<Text
|
|
67
|
-
<Progress value={70} intent="primary"
|
|
66
|
+
<Text typography="body2">Primary</Text>
|
|
67
|
+
<Progress value={70} intent="primary" type="linear" />
|
|
68
68
|
</View>
|
|
69
69
|
<View spacing="sm">
|
|
70
|
-
<Text
|
|
71
|
-
<Progress value={70} intent="success"
|
|
70
|
+
<Text typography="body2">Success</Text>
|
|
71
|
+
<Progress value={70} intent="success" type="linear" />
|
|
72
72
|
</View>
|
|
73
73
|
<View spacing="sm">
|
|
74
|
-
<Text
|
|
75
|
-
<Progress value={70} intent="
|
|
74
|
+
<Text typography="body2">Danger</Text>
|
|
75
|
+
<Progress value={70} intent="danger" type="linear" />
|
|
76
76
|
</View>
|
|
77
77
|
<View spacing="sm">
|
|
78
|
-
<Text
|
|
79
|
-
<Progress value={70} intent="warning"
|
|
78
|
+
<Text typography="body2">Warning</Text>
|
|
79
|
+
<Progress value={70} intent="warning" type="linear" />
|
|
80
80
|
</View>
|
|
81
81
|
<View spacing="sm">
|
|
82
|
-
<Text
|
|
83
|
-
<Progress value={70} intent="info"
|
|
82
|
+
<Text typography="body2">Info</Text>
|
|
83
|
+
<Progress value={70} intent="info" type="linear" />
|
|
84
84
|
</View>
|
|
85
85
|
</View>
|
|
86
86
|
);
|
|
@@ -90,9 +90,9 @@ export function ProgressWithIntent() {
|
|
|
90
90
|
export function ProgressWithLabels() {
|
|
91
91
|
return (
|
|
92
92
|
<View spacing="md">
|
|
93
|
-
<Progress value={45} showLabel
|
|
94
|
-
<Progress value={80} showLabel label="Installing..."
|
|
95
|
-
<Progress value={100} showLabel label="Complete!"
|
|
93
|
+
<Progress value={45} showLabel type="linear" />
|
|
94
|
+
<Progress value={80} showLabel label="Installing..." type="linear" intent="info" />
|
|
95
|
+
<Progress value={100} showLabel label="Complete!" type="linear" intent="success" />
|
|
96
96
|
</View>
|
|
97
97
|
);
|
|
98
98
|
}
|
|
@@ -103,11 +103,11 @@ export function IndeterminateProgress() {
|
|
|
103
103
|
<View spacing="md">
|
|
104
104
|
<View spacing="sm">
|
|
105
105
|
<Text weight="semibold">Linear Indeterminate</Text>
|
|
106
|
-
<Progress indeterminate
|
|
106
|
+
<Progress indeterminate type="linear" intent="primary" />
|
|
107
107
|
</View>
|
|
108
108
|
<View spacing="sm">
|
|
109
109
|
<Text weight="semibold">Circular Indeterminate</Text>
|
|
110
|
-
<Progress indeterminate
|
|
110
|
+
<Progress indeterminate type="circular" intent="primary" />
|
|
111
111
|
</View>
|
|
112
112
|
</View>
|
|
113
113
|
);
|
|
@@ -119,11 +119,11 @@ export function RoundedProgress() {
|
|
|
119
119
|
<View spacing="md">
|
|
120
120
|
<View spacing="sm">
|
|
121
121
|
<Text>Standard corners</Text>
|
|
122
|
-
<Progress value={65}
|
|
122
|
+
<Progress value={65} type="linear" rounded={false} />
|
|
123
123
|
</View>
|
|
124
124
|
<View spacing="sm">
|
|
125
125
|
<Text>Rounded corners</Text>
|
|
126
|
-
<Progress value={65}
|
|
126
|
+
<Progress value={65} type="linear" rounded />
|
|
127
127
|
</View>
|
|
128
128
|
</View>
|
|
129
129
|
);
|
|
@@ -146,8 +146,8 @@ export function AnimatedProgress() {
|
|
|
146
146
|
|
|
147
147
|
return (
|
|
148
148
|
<View spacing="md">
|
|
149
|
-
<Progress value={progress} showLabel
|
|
150
|
-
<Progress value={progress} showLabel
|
|
149
|
+
<Progress value={progress} showLabel type="linear" intent="success" />
|
|
150
|
+
<Progress value={progress} showLabel type="circular" intent="success" />
|
|
151
151
|
</View>
|
|
152
152
|
);
|
|
153
153
|
}
|
|
@@ -184,13 +184,13 @@ export function FileUploadProgress() {
|
|
|
184
184
|
value={progress}
|
|
185
185
|
showLabel
|
|
186
186
|
label="Uploading file..."
|
|
187
|
-
|
|
187
|
+
type="linear"
|
|
188
188
|
intent="info"
|
|
189
189
|
/>
|
|
190
190
|
</View>
|
|
191
191
|
)}
|
|
192
192
|
{progress === 100 && !uploading && (
|
|
193
|
-
<Text
|
|
193
|
+
<Text typography="body2">
|
|
194
194
|
Upload complete!
|
|
195
195
|
</Text>
|
|
196
196
|
)}
|
|
@@ -210,7 +210,7 @@ export function MultiStepProgress() {
|
|
|
210
210
|
<Text weight="semibold">
|
|
211
211
|
Step {currentStep} of {totalSteps}
|
|
212
212
|
</Text>
|
|
213
|
-
<Progress value={progress} showLabel
|
|
213
|
+
<Progress value={progress} showLabel type="linear" intent="primary" />
|
|
214
214
|
</View>
|
|
215
215
|
<View spacing="sm">
|
|
216
216
|
<Button
|
|
@@ -262,8 +262,8 @@ export function DownloadProgress() {
|
|
|
262
262
|
</Button>
|
|
263
263
|
{downloading && (
|
|
264
264
|
<View spacing="md">
|
|
265
|
-
<Progress value={progress}
|
|
266
|
-
<Text
|
|
265
|
+
<Progress value={progress} type="linear" intent="success" />
|
|
266
|
+
<Text typography="body2">
|
|
267
267
|
{progress}% downloaded
|
|
268
268
|
</Text>
|
|
269
269
|
</View>
|
|
@@ -288,14 +288,14 @@ export function StorageUsageProgress() {
|
|
|
288
288
|
<View spacing="md">
|
|
289
289
|
<View spacing="xs">
|
|
290
290
|
<Text weight="semibold">Storage Usage</Text>
|
|
291
|
-
<Text
|
|
291
|
+
<Text typography="body2">
|
|
292
292
|
{usedStorage} GB of {totalStorage} GB used
|
|
293
293
|
</Text>
|
|
294
294
|
</View>
|
|
295
295
|
<Progress
|
|
296
296
|
value={percentage}
|
|
297
297
|
showLabel
|
|
298
|
-
|
|
298
|
+
type="linear"
|
|
299
299
|
intent={getIntent()}
|
|
300
300
|
rounded
|
|
301
301
|
/>
|
|
@@ -317,13 +317,13 @@ export function BatteryLevelProgress() {
|
|
|
317
317
|
<View spacing="md">
|
|
318
318
|
<View spacing="xs">
|
|
319
319
|
<Text weight="semibold">Battery Level</Text>
|
|
320
|
-
<Text
|
|
320
|
+
<Text typography="body2">
|
|
321
321
|
{batteryLevel}% remaining
|
|
322
322
|
</Text>
|
|
323
323
|
</View>
|
|
324
324
|
<Progress
|
|
325
325
|
value={batteryLevel}
|
|
326
|
-
|
|
326
|
+
type="circular"
|
|
327
327
|
showLabel
|
|
328
328
|
intent={getIntent()}
|
|
329
329
|
/>
|
|
@@ -102,11 +102,11 @@ export function RadioButtonWithIntent() {
|
|
|
102
102
|
intent="success"
|
|
103
103
|
/>
|
|
104
104
|
<RadioButton
|
|
105
|
-
value="
|
|
106
|
-
checked={selected === '
|
|
107
|
-
onPress={() => setSelected('
|
|
108
|
-
label="
|
|
109
|
-
intent="
|
|
105
|
+
value="danger"
|
|
106
|
+
checked={selected === 'danger'}
|
|
107
|
+
onPress={() => setSelected('danger')}
|
|
108
|
+
label="Danger"
|
|
109
|
+
intent="danger"
|
|
110
110
|
/>
|
|
111
111
|
<RadioButton
|
|
112
112
|
value="warning"
|
|
@@ -139,7 +139,7 @@ export function RadioButtonGroup() {
|
|
|
139
139
|
|
|
140
140
|
return (
|
|
141
141
|
<View spacing="md">
|
|
142
|
-
<Text weight="bold"
|
|
142
|
+
<Text weight="bold" typography="body1">
|
|
143
143
|
Contact Preference
|
|
144
144
|
</Text>
|
|
145
145
|
<View spacing="sm">
|
|
@@ -168,7 +168,7 @@ export function RadioButtonGroup() {
|
|
|
168
168
|
label="Do not contact me"
|
|
169
169
|
/>
|
|
170
170
|
</View>
|
|
171
|
-
<Text
|
|
171
|
+
<Text typography="body2">
|
|
172
172
|
Selected: {preference}
|
|
173
173
|
</Text>
|
|
174
174
|
</View>
|
|
@@ -217,7 +217,7 @@ export function ShippingMethodSelection() {
|
|
|
217
217
|
|
|
218
218
|
return (
|
|
219
219
|
<View spacing="lg">
|
|
220
|
-
<Text weight="bold"
|
|
220
|
+
<Text weight="bold" typography="subtitle1">
|
|
221
221
|
Select Shipping Method
|
|
222
222
|
</Text>
|
|
223
223
|
<View spacing="md">
|
|
@@ -239,7 +239,7 @@ export function ShippingMethodSelection() {
|
|
|
239
239
|
label={option.label}
|
|
240
240
|
/>
|
|
241
241
|
<View spacing="xs">
|
|
242
|
-
<Text
|
|
242
|
+
<Text typography="body2">
|
|
243
243
|
{option.price} • {option.duration}
|
|
244
244
|
</Text>
|
|
245
245
|
</View>
|
|
@@ -256,7 +256,7 @@ export function PaymentMethodSelection() {
|
|
|
256
256
|
|
|
257
257
|
return (
|
|
258
258
|
<View spacing="lg">
|
|
259
|
-
<Text weight="bold"
|
|
259
|
+
<Text weight="bold" typography="subtitle1">
|
|
260
260
|
Payment Method
|
|
261
261
|
</Text>
|
|
262
262
|
<View spacing="md">
|
|
@@ -301,7 +301,7 @@ export function SubscriptionPlanSelection() {
|
|
|
301
301
|
|
|
302
302
|
return (
|
|
303
303
|
<View spacing="lg">
|
|
304
|
-
<Text weight="bold"
|
|
304
|
+
<Text weight="bold" typography="subtitle1">
|
|
305
305
|
Choose Your Plan
|
|
306
306
|
</Text>
|
|
307
307
|
<View spacing="md">
|
|
@@ -324,10 +324,10 @@ export function SubscriptionPlanSelection() {
|
|
|
324
324
|
intent={plan === planOption.value ? 'primary' : 'neutral'}
|
|
325
325
|
/>
|
|
326
326
|
<View spacing="xs">
|
|
327
|
-
<Text weight="bold"
|
|
327
|
+
<Text weight="bold" typography="subtitle1">
|
|
328
328
|
{planOption.price}
|
|
329
329
|
</Text>
|
|
330
|
-
<Text
|
|
330
|
+
<Text typography="body2">
|
|
331
331
|
{planOption.features}
|
|
332
332
|
</Text>
|
|
333
333
|
</View>
|
|
@@ -345,10 +345,10 @@ export function SurveyQuestion() {
|
|
|
345
345
|
return (
|
|
346
346
|
<View spacing="lg">
|
|
347
347
|
<View spacing="sm">
|
|
348
|
-
<Text weight="bold"
|
|
348
|
+
<Text weight="bold" typography="body1">
|
|
349
349
|
How satisfied are you with our service?
|
|
350
350
|
</Text>
|
|
351
|
-
<Text
|
|
351
|
+
<Text typography="body2">
|
|
352
352
|
Please select one option
|
|
353
353
|
</Text>
|
|
354
354
|
</View>
|
|
@@ -384,7 +384,7 @@ export function SurveyQuestion() {
|
|
|
384
384
|
checked={satisfaction === 'very-dissatisfied'}
|
|
385
385
|
onPress={() => setSatisfaction('very-dissatisfied')}
|
|
386
386
|
label="Very Dissatisfied"
|
|
387
|
-
intent="
|
|
387
|
+
intent="danger"
|
|
388
388
|
/>
|
|
389
389
|
</View>
|
|
390
390
|
</View>
|
|
@@ -397,7 +397,7 @@ export function NotificationFrequency() {
|
|
|
397
397
|
|
|
398
398
|
return (
|
|
399
399
|
<View spacing="lg">
|
|
400
|
-
<Text weight="bold"
|
|
400
|
+
<Text weight="bold" typography="subtitle1">
|
|
401
401
|
Notification Frequency
|
|
402
402
|
</Text>
|
|
403
403
|
<View spacing="md">
|
|
@@ -407,7 +407,7 @@ export function NotificationFrequency() {
|
|
|
407
407
|
onPress={() => setFrequency('realtime')}
|
|
408
408
|
label="Real-time"
|
|
409
409
|
/>
|
|
410
|
-
<Text
|
|
410
|
+
<Text typography="body2" style={{ marginLeft: 32 }}>
|
|
411
411
|
Get notified immediately when something happens
|
|
412
412
|
</Text>
|
|
413
413
|
<RadioButton
|
|
@@ -416,7 +416,7 @@ export function NotificationFrequency() {
|
|
|
416
416
|
onPress={() => setFrequency('daily')}
|
|
417
417
|
label="Daily Digest"
|
|
418
418
|
/>
|
|
419
|
-
<Text
|
|
419
|
+
<Text typography="body2" style={{ marginLeft: 32 }}>
|
|
420
420
|
Receive a summary once per day
|
|
421
421
|
</Text>
|
|
422
422
|
<RadioButton
|
|
@@ -425,7 +425,7 @@ export function NotificationFrequency() {
|
|
|
425
425
|
onPress={() => setFrequency('weekly')}
|
|
426
426
|
label="Weekly Digest"
|
|
427
427
|
/>
|
|
428
|
-
<Text
|
|
428
|
+
<Text typography="body2" style={{ marginLeft: 32 }}>
|
|
429
429
|
Receive a summary once per week
|
|
430
430
|
</Text>
|
|
431
431
|
<RadioButton
|
|
@@ -434,7 +434,7 @@ export function NotificationFrequency() {
|
|
|
434
434
|
onPress={() => setFrequency('never')}
|
|
435
435
|
label="Never"
|
|
436
436
|
/>
|
|
437
|
-
<Text
|
|
437
|
+
<Text typography="body2" style={{ marginLeft: 32 }}>
|
|
438
438
|
Don't send me any notifications
|
|
439
439
|
</Text>
|
|
440
440
|
</View>
|