@idealyst/mcp-server 1.2.29 → 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.
@@ -15,9 +15,9 @@ export function BasicDialog() {
15
15
  return (
16
16
  <View spacing="md">
17
17
  <Button onPress={() => setOpen(true)}>Open Dialog</Button>
18
- <Dialog open={open} onOpenChange={setOpen}>
18
+ <Dialog open={open} onClose={() => setOpen(false)}>
19
19
  <View spacing="md">
20
- <Text size="lg" weight="bold">
20
+ <Text typography="subtitle1" weight="bold">
21
21
  Welcome!
22
22
  </Text>
23
23
  <Text>This is a basic dialog with some content.</Text>
@@ -35,7 +35,7 @@ export function DialogWithTitle() {
35
35
  return (
36
36
  <View spacing="md">
37
37
  <Button onPress={() => setOpen(true)}>Open Dialog</Button>
38
- <Dialog open={open} onOpenChange={setOpen} title="Dialog Title">
38
+ <Dialog open={open} onClose={() => setOpen(false)} title="Dialog Title">
39
39
  <View spacing="md">
40
40
  <Text>This dialog has a title in the header.</Text>
41
41
  <Button onPress={() => setOpen(false)}>Close</Button>
@@ -66,7 +66,7 @@ export function DialogSizes() {
66
66
  Fullscreen Dialog
67
67
  </Button>
68
68
  </View>
69
- <Dialog open={open} onOpenChange={setOpen} title={`${size.toUpperCase()} Dialog`} size={size}>
69
+ <Dialog open={open} onClose={() => setOpen(false)} title={`${size.toUpperCase()} Dialog`} size={size}>
70
70
  <View spacing="md">
71
71
  <Text>This is a {size} dialog.</Text>
72
72
  <Button onPress={() => setOpen(false)}>Close</Button>
@@ -78,14 +78,14 @@ export function DialogSizes() {
78
78
 
79
79
  // Example 4: Dialog Types
80
80
  export function DialogTypes() {
81
- const [type, setType] = React.useState<'standard' | 'alert' | 'confirmation'>('standard');
81
+ const [type, setType] = React.useState<'default' | 'alert' | 'confirmation'>('default');
82
82
  const [open, setOpen] = React.useState(false);
83
83
 
84
84
  return (
85
85
  <View spacing="md">
86
86
  <View spacing="sm">
87
- <Button onPress={() => { setType('standard'); setOpen(true); }}>
88
- Standard Dialog
87
+ <Button onPress={() => { setType('default'); setOpen(true); }}>
88
+ Default Dialog
89
89
  </Button>
90
90
  <Button onPress={() => { setType('alert'); setOpen(true); }}>
91
91
  Alert Dialog
@@ -94,7 +94,7 @@ export function DialogTypes() {
94
94
  Confirmation Dialog
95
95
  </Button>
96
96
  </View>
97
- <Dialog open={open} onOpenChange={setOpen} title="Dialog" type={type}>
97
+ <Dialog open={open} onClose={() => setOpen(false)} title="Dialog" type={type}>
98
98
  <View spacing="md">
99
99
  <Text>This is a {type} dialog type.</Text>
100
100
  <Button onPress={() => setOpen(false)}>Close</Button>
@@ -113,7 +113,7 @@ export function DialogWithCloseButton() {
113
113
  <Button onPress={() => setOpen(true)}>Open Dialog</Button>
114
114
  <Dialog
115
115
  open={open}
116
- onOpenChange={setOpen}
116
+ onClose={() => setOpen(false)}
117
117
  title="Dialog with Close Button"
118
118
  showCloseButton
119
119
  >
@@ -134,7 +134,7 @@ export function DialogWithBackdropDisabled() {
134
134
  <Button onPress={() => setOpen(true)}>Open Dialog</Button>
135
135
  <Dialog
136
136
  open={open}
137
- onOpenChange={setOpen}
137
+ onClose={() => setOpen(false)}
138
138
  title="Modal Dialog"
139
139
  closeOnBackdropClick={false}
140
140
  >
@@ -165,12 +165,12 @@ export function ConfirmationDialog() {
165
165
 
166
166
  return (
167
167
  <View spacing="md">
168
- <Button intent="error" onPress={() => setOpen(true)}>
168
+ <Button intent="danger" onPress={() => setOpen(true)}>
169
169
  Delete Item
170
170
  </Button>
171
171
  <Dialog
172
172
  open={open}
173
- onOpenChange={setOpen}
173
+ onClose={() => setOpen(false)}
174
174
  title="Confirm Deletion"
175
175
  type="confirmation"
176
176
  size="sm"
@@ -178,7 +178,7 @@ export function ConfirmationDialog() {
178
178
  <View spacing="lg">
179
179
  <Text>Are you sure you want to delete this item? This action cannot be undone.</Text>
180
180
  <View spacing="sm">
181
- <Button intent="error" onPress={handleConfirm}>
181
+ <Button intent="danger" onPress={handleConfirm}>
182
182
  Delete
183
183
  </Button>
184
184
  <Button type="outlined" onPress={handleCancel}>
@@ -209,25 +209,25 @@ export function FormDialog() {
209
209
  <Button onPress={() => setOpen(true)}>Add User</Button>
210
210
  <Dialog
211
211
  open={open}
212
- onOpenChange={setOpen}
212
+ onClose={() => setOpen(false)}
213
213
  title="Add New User"
214
214
  size="md"
215
215
  showCloseButton
216
216
  >
217
217
  <View spacing="lg">
218
218
  <View spacing="sm">
219
- <Text size="sm" weight="semibold">
219
+ <Text typography="body2" weight="semibold">
220
220
  Name
221
221
  </Text>
222
- <Text size="sm" >
222
+ <Text typography="body2">
223
223
  Placeholder for input
224
224
  </Text>
225
225
  </View>
226
226
  <View spacing="sm">
227
- <Text size="sm" weight="semibold">
227
+ <Text typography="body2" weight="semibold">
228
228
  Email
229
229
  </Text>
230
- <Text size="sm" >
230
+ <Text typography="body2">
231
231
  Placeholder for input
232
232
  </Text>
233
233
  </View>
@@ -256,7 +256,7 @@ export function AlertDialog() {
256
256
  </Button>
257
257
  <Dialog
258
258
  open={open}
259
- onOpenChange={setOpen}
259
+ onClose={() => setOpen(false)}
260
260
  title="Important Notice"
261
261
  type="alert"
262
262
  size="sm"
@@ -294,7 +294,7 @@ export function DialogWithAnimations() {
294
294
  </View>
295
295
  <Dialog
296
296
  open={open}
297
- onOpenChange={setOpen}
297
+ onClose={() => setOpen(false)}
298
298
  title="Animated Dialog"
299
299
  animationType={animationType}
300
300
  >
@@ -316,7 +316,7 @@ export function SettingsDialog() {
316
316
  <Button onPress={() => setOpen(true)}>Open Settings</Button>
317
317
  <Dialog
318
318
  open={open}
319
- onOpenChange={setOpen}
319
+ onClose={() => setOpen(false)}
320
320
  title="Settings"
321
321
  size="md"
322
322
  showCloseButton
@@ -325,15 +325,15 @@ export function SettingsDialog() {
325
325
  <View spacing="md">
326
326
  <Text weight="semibold">Notifications</Text>
327
327
  <View spacing="sm">
328
- <Text size="sm">• Email notifications: On</Text>
329
- <Text size="sm">• Push notifications: Off</Text>
328
+ <Text typography="body2">• Email notifications: On</Text>
329
+ <Text typography="body2">• Push notifications: Off</Text>
330
330
  </View>
331
331
  </View>
332
332
  <View spacing="md">
333
333
  <Text weight="semibold">Privacy</Text>
334
334
  <View spacing="sm">
335
- <Text size="sm">• Profile visibility: Public</Text>
336
- <Text size="sm">• Activity status: Visible</Text>
335
+ <Text typography="body2">• Profile visibility: Public</Text>
336
+ <Text typography="body2">• Activity status: Visible</Text>
337
337
  </View>
338
338
  </View>
339
339
  <Button onPress={() => setOpen(false)}>Save Changes</Button>
@@ -53,16 +53,20 @@ export function DividerTypes() {
53
53
  );
54
54
  }
55
55
 
56
- // Example 4: Divider Thickness
57
- export function DividerThickness() {
56
+ // Example 4: Divider Sizes
57
+ export function DividerSizes() {
58
58
  return (
59
59
  <View spacing="md">
60
- <Text>Thin divider</Text>
61
- <Divider thickness="thin" />
60
+ <Text>Extra small divider</Text>
61
+ <Divider size="xs" />
62
+ <Text>Small divider</Text>
63
+ <Divider size="sm" />
62
64
  <Text>Medium divider</Text>
63
- <Divider thickness="md" />
64
- <Text>Thick divider</Text>
65
- <Divider thickness="thick" />
65
+ <Divider size="md" />
66
+ <Text>Large divider</Text>
67
+ <Divider size="lg" />
68
+ <Text>Extra large divider</Text>
69
+ <Divider size="xl" />
66
70
  </View>
67
71
  );
68
72
  }
@@ -76,7 +80,7 @@ export function DividerWithIntent() {
76
80
  <Text>Success intent</Text>
77
81
  <Divider intent="success" />
78
82
  <Text>Error intent</Text>
79
- <Divider intent="error" />
83
+ <Divider intent="danger" />
80
84
  <Text>Warning intent</Text>
81
85
  <Divider intent="warning" />
82
86
  <Text>Info intent</Text>
@@ -95,7 +99,7 @@ export function DividerWithText() {
95
99
  <Divider>OR</Divider>
96
100
  <Text>Section 2 content</Text>
97
101
  <Divider>
98
- <Text size="sm" >
102
+ <Text typography="body2">
99
103
  Continue Reading
100
104
  </Text>
101
105
  </Divider>
@@ -142,7 +146,7 @@ export function SectionDividers() {
142
146
  return (
143
147
  <View spacing="lg">
144
148
  <View spacing="md">
145
- <Text size="lg" weight="bold">
149
+ <Text typography="subtitle1" weight="bold">
146
150
  Section 1
147
151
  </Text>
148
152
  <Text>
@@ -150,10 +154,10 @@ export function SectionDividers() {
150
154
  </Text>
151
155
  </View>
152
156
 
153
- <Divider spacing="lg" thickness="md" />
157
+ <Divider spacing="lg" size="md" />
154
158
 
155
159
  <View spacing="md">
156
- <Text size="lg" weight="bold">
160
+ <Text typography="subtitle1" weight="bold">
157
161
  Section 2
158
162
  </Text>
159
163
  <Text>
@@ -161,10 +165,10 @@ export function SectionDividers() {
161
165
  </Text>
162
166
  </View>
163
167
 
164
- <Divider spacing="lg" thickness="md" />
168
+ <Divider spacing="lg" size="md" />
165
169
 
166
170
  <View spacing="md">
167
- <Text size="lg" weight="bold">
171
+ <Text typography="subtitle1" weight="bold">
168
172
  Section 3
169
173
  </Text>
170
174
  <Text>
@@ -180,16 +184,16 @@ export function StyledDividers() {
180
184
  return (
181
185
  <View spacing="md">
182
186
  <Text weight="bold">Thick Primary Divider</Text>
183
- <Divider thickness="thick" intent="primary" spacing="md" />
187
+ <Divider size="lg" intent="primary" spacing="md" />
184
188
 
185
189
  <Text weight="bold">Dashed Success Divider</Text>
186
190
  <Divider type="dashed" intent="success" spacing="md" />
187
191
 
188
192
  <Text weight="bold">Dotted Warning Divider</Text>
189
- <Divider type="dotted" intent="warning" thickness="md" spacing="md" />
193
+ <Divider type="dotted" intent="warning" size="md" spacing="md" />
190
194
 
191
195
  <Text weight="bold">Thick Error Divider</Text>
192
- <Divider thickness="thick" intent="error" spacing="md" />
196
+ <Divider size="lg" intent="danger" spacing="md" />
193
197
  </View>
194
198
  );
195
199
  }
@@ -199,38 +203,38 @@ export function FormSectionDividers() {
199
203
  return (
200
204
  <View spacing="lg">
201
205
  <View spacing="md">
202
- <Text size="lg" weight="bold">
206
+ <Text typography="subtitle1" weight="bold">
203
207
  Personal Information
204
208
  </Text>
205
209
  <View spacing="sm">
206
- <Text size="sm">Name: John Doe</Text>
207
- <Text size="sm">Email: john@example.com</Text>
210
+ <Text typography="body2">Name: John Doe</Text>
211
+ <Text typography="body2">Email: john@example.com</Text>
208
212
  </View>
209
213
  </View>
210
214
 
211
215
  <Divider spacing="lg">
212
- <Text size="sm" weight="semibold" >
216
+ <Text typography="body2" weight="semibold">
213
217
  CONTACT DETAILS
214
218
  </Text>
215
219
  </Divider>
216
220
 
217
221
  <View spacing="md">
218
222
  <View spacing="sm">
219
- <Text size="sm">Phone: (555) 123-4567</Text>
220
- <Text size="sm">Address: 123 Main St</Text>
223
+ <Text typography="body2">Phone: (555) 123-4567</Text>
224
+ <Text typography="body2">Address: 123 Main St</Text>
221
225
  </View>
222
226
  </View>
223
227
 
224
228
  <Divider spacing="lg">
225
- <Text size="sm" weight="semibold" >
229
+ <Text typography="body2" weight="semibold">
226
230
  PREFERENCES
227
231
  </Text>
228
232
  </Divider>
229
233
 
230
234
  <View spacing="md">
231
235
  <View spacing="sm">
232
- <Text size="sm">Theme: Dark</Text>
233
- <Text size="sm">Notifications: Enabled</Text>
236
+ <Text typography="body2">Theme: Dark</Text>
237
+ <Text typography="body2">Notifications: Enabled</Text>
234
238
  </View>
235
239
  </View>
236
240
  </View>
@@ -249,7 +253,7 @@ export function ListItemDividers() {
249
253
  <Text>{item}</Text>
250
254
  </View>
251
255
  {index < items.length - 1 && (
252
- <Divider spacing="none" thickness="thin" />
256
+ <Divider spacing="none" size="sm" />
253
257
  )}
254
258
  </React.Fragment>
255
259
  ))}
@@ -58,7 +58,7 @@ export function IconWithIntent() {
58
58
  <View spacing="md">
59
59
  <Icon name="information" intent="primary" size="lg" />
60
60
  <Icon name="check-circle" intent="success" size="lg" />
61
- <Icon name="alert-circle" intent="error" size="lg" />
61
+ <Icon name="alert-circle" intent="danger" size="lg" />
62
62
  <Icon name="alert" intent="warning" size="lg" />
63
63
  <Icon name="help-circle" intent="info" size="lg" />
64
64
  </View>
@@ -71,23 +71,23 @@ export function CommonUIIcons() {
71
71
  <View spacing="md">
72
72
  <View spacing="sm">
73
73
  <Icon name="home" />
74
- <Text size="sm">Home</Text>
74
+ <Text typography="body2">Home</Text>
75
75
  </View>
76
76
  <View spacing="sm">
77
77
  <Icon name="magnify" />
78
- <Text size="sm">Search</Text>
78
+ <Text typography="body2">Search</Text>
79
79
  </View>
80
80
  <View spacing="sm">
81
81
  <Icon name="account" />
82
- <Text size="sm">Profile</Text>
82
+ <Text typography="body2">Profile</Text>
83
83
  </View>
84
84
  <View spacing="sm">
85
85
  <Icon name="cog" />
86
- <Text size="sm">Settings</Text>
86
+ <Text typography="body2">Settings</Text>
87
87
  </View>
88
88
  <View spacing="sm">
89
89
  <Icon name="bell" />
90
- <Text size="sm">Notifications</Text>
90
+ <Text typography="body2">Notifications</Text>
91
91
  </View>
92
92
  </View>
93
93
  );
@@ -127,25 +127,25 @@ export function StatusIconsWithText() {
127
127
  <View spacing="md">
128
128
  <View spacing="sm">
129
129
  <Icon name="check-circle" intent="success" size="md" />
130
- <Text size="sm">
130
+ <Text typography="body2">
131
131
  Success
132
132
  </Text>
133
133
  </View>
134
134
  <View spacing="sm">
135
- <Icon name="alert-circle" intent="error" size="md" />
136
- <Text size="sm">
135
+ <Icon name="alert-circle" intent="danger" size="md" />
136
+ <Text typography="body2">
137
137
  Error
138
138
  </Text>
139
139
  </View>
140
140
  <View spacing="sm">
141
141
  <Icon name="alert" intent="warning" size="md" />
142
- <Text size="sm">
142
+ <Text typography="body2">
143
143
  Warning
144
144
  </Text>
145
145
  </View>
146
146
  <View spacing="sm">
147
147
  <Icon name="information" intent="info" size="md" />
148
- <Text size="sm">
148
+ <Text typography="body2">
149
149
  Info
150
150
  </Text>
151
151
  </View>
@@ -173,7 +173,7 @@ export function IconWithMDIPrefix() {
173
173
  <View spacing="md">
174
174
  <Icon name="mdi:home" size="lg" />
175
175
  <Icon name="mdi:account" size="lg" />
176
- <Icon name="mdi:heart" size="lg" intent="error" />
176
+ <Icon name="mdi:heart" size="lg" intent="danger" />
177
177
  </View>
178
178
  );
179
179
  }
@@ -148,7 +148,7 @@ export function MenuWithIntent() {
148
148
  { id: '1', label: 'Edit', icon: 'pencil', intent: 'primary', onClick: () => {} },
149
149
  { id: '2', label: 'Duplicate', icon: 'content-copy', intent: 'info', onClick: () => {} },
150
150
  { id: '3', label: 'Archive', icon: 'archive', intent: 'warning', onClick: () => {} },
151
- { id: '4', label: 'Delete', icon: 'delete', intent: 'error', onClick: () => {} },
151
+ { id: '4', label: 'Delete', icon: 'delete', intent: 'danger', onClick: () => {} },
152
152
  ];
153
153
 
154
154
  return (
@@ -237,7 +237,7 @@ export function MenuWithCloseOnSelection() {
237
237
  <Button onPress={() => setOpen(true)}>Select Option</Button>
238
238
  </Menu>
239
239
  {selected && (
240
- <Text size="sm" >
240
+ <Text typography="body2">
241
241
  Selected: {selected}
242
242
  </Text>
243
243
  )}
@@ -256,7 +256,7 @@ export function ContextMenu() {
256
256
  { id: '4', label: 'Rename', icon: 'pencil', onClick: () => {} },
257
257
  { id: '5', label: 'Move', icon: 'folder-move', onClick: () => {} },
258
258
  { id: '6', label: 'separator-2', separator: true },
259
- { id: '7', label: 'Delete', icon: 'delete', intent: 'error', onClick: () => {} },
259
+ { id: '7', label: 'Delete', icon: 'delete', intent: 'danger', onClick: () => {} },
260
260
  ];
261
261
 
262
262
  return (