@idealyst/mcp-server 1.0.84
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/README.md +202 -0
- package/dist/data/cli-commands.d.ts +2 -0
- package/dist/data/cli-commands.d.ts.map +1 -0
- package/dist/data/cli-commands.js +100 -0
- package/dist/data/cli-commands.js.map +1 -0
- package/dist/data/components/Accordion.d.ts +15 -0
- package/dist/data/components/Accordion.d.ts.map +1 -0
- package/dist/data/components/Accordion.js +112 -0
- package/dist/data/components/Accordion.js.map +1 -0
- package/dist/data/components/ActivityIndicator.d.ts +15 -0
- package/dist/data/components/ActivityIndicator.d.ts.map +1 -0
- package/dist/data/components/ActivityIndicator.js +82 -0
- package/dist/data/components/ActivityIndicator.js.map +1 -0
- package/dist/data/components/Alert.d.ts +15 -0
- package/dist/data/components/Alert.d.ts.map +1 -0
- package/dist/data/components/Alert.js +132 -0
- package/dist/data/components/Alert.js.map +1 -0
- package/dist/data/components/Avatar.d.ts +15 -0
- package/dist/data/components/Avatar.d.ts.map +1 -0
- package/dist/data/components/Avatar.js +93 -0
- package/dist/data/components/Avatar.js.map +1 -0
- package/dist/data/components/Badge.d.ts +15 -0
- package/dist/data/components/Badge.d.ts.map +1 -0
- package/dist/data/components/Badge.js +64 -0
- package/dist/data/components/Badge.js.map +1 -0
- package/dist/data/components/Breadcrumb.d.ts +15 -0
- package/dist/data/components/Breadcrumb.d.ts.map +1 -0
- package/dist/data/components/Breadcrumb.js +96 -0
- package/dist/data/components/Breadcrumb.js.map +1 -0
- package/dist/data/components/Button.d.ts +15 -0
- package/dist/data/components/Button.d.ts.map +1 -0
- package/dist/data/components/Button.js +87 -0
- package/dist/data/components/Button.js.map +1 -0
- package/dist/data/components/Card.d.ts +15 -0
- package/dist/data/components/Card.d.ts.map +1 -0
- package/dist/data/components/Card.js +67 -0
- package/dist/data/components/Card.js.map +1 -0
- package/dist/data/components/Checkbox.d.ts +15 -0
- package/dist/data/components/Checkbox.d.ts.map +1 -0
- package/dist/data/components/Checkbox.js +118 -0
- package/dist/data/components/Checkbox.js.map +1 -0
- package/dist/data/components/Chip.d.ts +15 -0
- package/dist/data/components/Chip.d.ts.map +1 -0
- package/dist/data/components/Chip.js +76 -0
- package/dist/data/components/Chip.js.map +1 -0
- package/dist/data/components/Dialog.d.ts +15 -0
- package/dist/data/components/Dialog.d.ts.map +1 -0
- package/dist/data/components/Dialog.js +137 -0
- package/dist/data/components/Dialog.js.map +1 -0
- package/dist/data/components/Divider.d.ts +15 -0
- package/dist/data/components/Divider.d.ts.map +1 -0
- package/dist/data/components/Divider.js +71 -0
- package/dist/data/components/Divider.js.map +1 -0
- package/dist/data/components/Icon.d.ts +15 -0
- package/dist/data/components/Icon.d.ts.map +1 -0
- package/dist/data/components/Icon.js +70 -0
- package/dist/data/components/Icon.js.map +1 -0
- package/dist/data/components/Image.d.ts +15 -0
- package/dist/data/components/Image.d.ts.map +1 -0
- package/dist/data/components/Image.js +122 -0
- package/dist/data/components/Image.js.map +1 -0
- package/dist/data/components/Input.d.ts +15 -0
- package/dist/data/components/Input.d.ts.map +1 -0
- package/dist/data/components/Input.js +109 -0
- package/dist/data/components/Input.js.map +1 -0
- package/dist/data/components/List.d.ts +15 -0
- package/dist/data/components/List.d.ts.map +1 -0
- package/dist/data/components/List.js +113 -0
- package/dist/data/components/List.js.map +1 -0
- package/dist/data/components/Menu.d.ts +15 -0
- package/dist/data/components/Menu.d.ts.map +1 -0
- package/dist/data/components/Menu.js +132 -0
- package/dist/data/components/Menu.js.map +1 -0
- package/dist/data/components/Popover.d.ts +15 -0
- package/dist/data/components/Popover.d.ts.map +1 -0
- package/dist/data/components/Popover.js +159 -0
- package/dist/data/components/Popover.js.map +1 -0
- package/dist/data/components/Pressable.d.ts +15 -0
- package/dist/data/components/Pressable.d.ts.map +1 -0
- package/dist/data/components/Pressable.js +125 -0
- package/dist/data/components/Pressable.js.map +1 -0
- package/dist/data/components/Progress.d.ts +15 -0
- package/dist/data/components/Progress.d.ts.map +1 -0
- package/dist/data/components/Progress.js +95 -0
- package/dist/data/components/Progress.js.map +1 -0
- package/dist/data/components/RadioButton.d.ts +15 -0
- package/dist/data/components/RadioButton.d.ts.map +1 -0
- package/dist/data/components/RadioButton.js +140 -0
- package/dist/data/components/RadioButton.js.map +1 -0
- package/dist/data/components/SVGImage.d.ts +15 -0
- package/dist/data/components/SVGImage.d.ts.map +1 -0
- package/dist/data/components/SVGImage.js +112 -0
- package/dist/data/components/SVGImage.js.map +1 -0
- package/dist/data/components/Screen.d.ts +15 -0
- package/dist/data/components/Screen.d.ts.map +1 -0
- package/dist/data/components/Screen.js +99 -0
- package/dist/data/components/Screen.js.map +1 -0
- package/dist/data/components/Select.d.ts +15 -0
- package/dist/data/components/Select.d.ts.map +1 -0
- package/dist/data/components/Select.js +146 -0
- package/dist/data/components/Select.js.map +1 -0
- package/dist/data/components/Skeleton.d.ts +15 -0
- package/dist/data/components/Skeleton.d.ts.map +1 -0
- package/dist/data/components/Skeleton.js +110 -0
- package/dist/data/components/Skeleton.js.map +1 -0
- package/dist/data/components/Slider.d.ts +15 -0
- package/dist/data/components/Slider.d.ts.map +1 -0
- package/dist/data/components/Slider.js +129 -0
- package/dist/data/components/Slider.js.map +1 -0
- package/dist/data/components/Switch.d.ts +15 -0
- package/dist/data/components/Switch.d.ts.map +1 -0
- package/dist/data/components/Switch.js +127 -0
- package/dist/data/components/Switch.js.map +1 -0
- package/dist/data/components/TabBar.d.ts +15 -0
- package/dist/data/components/TabBar.d.ts.map +1 -0
- package/dist/data/components/TabBar.js +145 -0
- package/dist/data/components/TabBar.js.map +1 -0
- package/dist/data/components/Table.d.ts +15 -0
- package/dist/data/components/Table.d.ts.map +1 -0
- package/dist/data/components/Table.js +151 -0
- package/dist/data/components/Table.js.map +1 -0
- package/dist/data/components/Tabs.d.ts +15 -0
- package/dist/data/components/Tabs.d.ts.map +1 -0
- package/dist/data/components/Tabs.js +150 -0
- package/dist/data/components/Tabs.js.map +1 -0
- package/dist/data/components/Text.d.ts +15 -0
- package/dist/data/components/Text.d.ts.map +1 -0
- package/dist/data/components/Text.js +85 -0
- package/dist/data/components/Text.js.map +1 -0
- package/dist/data/components/TextArea.d.ts +15 -0
- package/dist/data/components/TextArea.d.ts.map +1 -0
- package/dist/data/components/TextArea.js +155 -0
- package/dist/data/components/TextArea.js.map +1 -0
- package/dist/data/components/Tooltip.d.ts +15 -0
- package/dist/data/components/Tooltip.d.ts.map +1 -0
- package/dist/data/components/Tooltip.js +105 -0
- package/dist/data/components/Tooltip.js.map +1 -0
- package/dist/data/components/Video.d.ts +15 -0
- package/dist/data/components/Video.d.ts.map +1 -0
- package/dist/data/components/Video.js +168 -0
- package/dist/data/components/Video.js.map +1 -0
- package/dist/data/components/View.d.ts +15 -0
- package/dist/data/components/View.d.ts.map +1 -0
- package/dist/data/components/View.js +126 -0
- package/dist/data/components/View.js.map +1 -0
- package/dist/data/components/index.d.ts +37 -0
- package/dist/data/components/index.d.ts.map +1 -0
- package/dist/data/components/index.js +110 -0
- package/dist/data/components/index.js.map +1 -0
- package/dist/data/framework-guides.d.ts +2 -0
- package/dist/data/framework-guides.d.ts.map +1 -0
- package/dist/data/framework-guides.js +589 -0
- package/dist/data/framework-guides.js.map +1 -0
- package/dist/data/icon-guide.d.ts +2 -0
- package/dist/data/icon-guide.d.ts.map +1 -0
- package/dist/data/icon-guide.js +285 -0
- package/dist/data/icon-guide.js.map +1 -0
- package/dist/data/icons.json +7452 -0
- package/dist/data/navigation-guides.d.ts +2 -0
- package/dist/data/navigation-guides.d.ts.map +1 -0
- package/dist/data/navigation-guides.js +1196 -0
- package/dist/data/navigation-guides.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +422 -0
- package/dist/index.js.map +1 -0
- package/package.json +34 -0
- package/src/data/cli-commands.ts +103 -0
- package/src/data/components/Accordion.ts +106 -0
- package/src/data/components/ActivityIndicator.ts +82 -0
- package/src/data/components/Alert.ts +132 -0
- package/src/data/components/Avatar.ts +93 -0
- package/src/data/components/Badge.ts +63 -0
- package/src/data/components/Breadcrumb.ts +94 -0
- package/src/data/components/Button.ts +86 -0
- package/src/data/components/Card.ts +67 -0
- package/src/data/components/Checkbox.ts +117 -0
- package/src/data/components/Chip.ts +93 -0
- package/src/data/components/Dialog.ts +136 -0
- package/src/data/components/Divider.ts +70 -0
- package/src/data/components/Icon.ts +70 -0
- package/src/data/components/Image.ts +121 -0
- package/src/data/components/Input.ts +150 -0
- package/src/data/components/List.ts +103 -0
- package/src/data/components/Menu.ts +125 -0
- package/src/data/components/Popover.ts +159 -0
- package/src/data/components/Pressable.ts +123 -0
- package/src/data/components/Progress.ts +95 -0
- package/src/data/components/RadioButton.ts +130 -0
- package/src/data/components/SVGImage.ts +114 -0
- package/src/data/components/Screen.ts +103 -0
- package/src/data/components/Select.ts +140 -0
- package/src/data/components/Skeleton.ts +102 -0
- package/src/data/components/Slider.ts +150 -0
- package/src/data/components/Switch.ts +127 -0
- package/src/data/components/TabBar.ts +142 -0
- package/src/data/components/Table.ts +153 -0
- package/src/data/components/Tabs.ts +152 -0
- package/src/data/components/Text.ts +85 -0
- package/src/data/components/TextArea.ts +155 -0
- package/src/data/components/Tooltip.ts +105 -0
- package/src/data/components/Video.ts +168 -0
- package/src/data/components/View.ts +126 -0
- package/src/data/components/index.ts +109 -0
- package/src/data/framework-guides.ts +593 -0
- package/src/data/icon-guide.ts +284 -0
- package/src/data/icons.json +7452 -0
- package/src/data/navigation-guides.ts +1199 -0
- package/src/index.ts +473 -0
- package/test-client.js +86 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export const View = {
|
|
2
|
+
category: "layout",
|
|
3
|
+
description: "Container component with spacing, padding, and background variants",
|
|
4
|
+
props: `
|
|
5
|
+
- \`children\`: React.ReactNode - The content to display inside the view
|
|
6
|
+
- \`spacing\`: ViewSpacingVariant - Padding/spacing variant
|
|
7
|
+
- \`marginVariant\`: ViewSpacingVariant - Margin variant
|
|
8
|
+
- \`background\`: ViewBackgroundVariant - Background variant
|
|
9
|
+
- \`radius\`: ViewRadiusVariant - Border radius variant
|
|
10
|
+
- \`border\`: ViewBorderVariant - Border variant
|
|
11
|
+
- \`backgroundColor\`: string - Custom background color (overrides background variant)
|
|
12
|
+
- \`padding\`: number - Custom padding (overrides spacing variant)
|
|
13
|
+
- \`margin\`: number - Custom margin (overrides marginVariant)
|
|
14
|
+
- \`borderRadius\`: number - Custom border radius (overrides radius variant)
|
|
15
|
+
- \`borderWidth\`: number - Custom border width (overrides border variant)
|
|
16
|
+
- \`borderColor\`: string - Custom border color
|
|
17
|
+
`,
|
|
18
|
+
features: [
|
|
19
|
+
"Automatic gap spacing between children",
|
|
20
|
+
"Six spacing/margin variants",
|
|
21
|
+
"Four background variants",
|
|
22
|
+
"Six border radius variants",
|
|
23
|
+
"Border support",
|
|
24
|
+
"Custom overrides for all variants",
|
|
25
|
+
"Flexbox-based layout",
|
|
26
|
+
],
|
|
27
|
+
bestPractices: [
|
|
28
|
+
"Use View for all layout containers",
|
|
29
|
+
"Use spacing prop for consistent gaps",
|
|
30
|
+
"Prefer variants over custom values",
|
|
31
|
+
"Use 'md' spacing for standard layouts",
|
|
32
|
+
"Combine with Screen for full-screen layouts",
|
|
33
|
+
"Use background variants for semantic colors",
|
|
34
|
+
],
|
|
35
|
+
usage: `
|
|
36
|
+
import { View, Text, Button } from '@idealyst/components';
|
|
37
|
+
|
|
38
|
+
<View spacing="md" background="surface" radius="md" style={{ padding: 16 }}>
|
|
39
|
+
<Text size="lg" weight="bold">Card Title</Text>
|
|
40
|
+
<Text>Card content with consistent spacing</Text>
|
|
41
|
+
<Button>Action</Button>
|
|
42
|
+
</View>
|
|
43
|
+
`,
|
|
44
|
+
examples: {
|
|
45
|
+
basic: `import { View, Text } from '@idealyst/components';
|
|
46
|
+
|
|
47
|
+
<View spacing="md">
|
|
48
|
+
<Text>Item 1</Text>
|
|
49
|
+
<Text>Item 2</Text>
|
|
50
|
+
<Text>Item 3</Text>
|
|
51
|
+
</View>`,
|
|
52
|
+
|
|
53
|
+
variants: `import { View, Text } from '@idealyst/components';
|
|
54
|
+
|
|
55
|
+
<View spacing="lg">
|
|
56
|
+
<View spacing="xs" background="surface" radius="sm" style={{ padding: 12 }}>
|
|
57
|
+
<Text>Extra small spacing</Text>
|
|
58
|
+
<Text>Second item</Text>
|
|
59
|
+
</View>
|
|
60
|
+
|
|
61
|
+
<View spacing="md" background="surface" radius="md" style={{ padding: 16 }}>
|
|
62
|
+
<Text>Medium spacing</Text>
|
|
63
|
+
<Text>Second item</Text>
|
|
64
|
+
</View>
|
|
65
|
+
|
|
66
|
+
<View spacing="xl" background="surface" radius="lg" style={{ padding: 20 }}>
|
|
67
|
+
<Text>Extra large spacing</Text>
|
|
68
|
+
<Text>Second item</Text>
|
|
69
|
+
</View>
|
|
70
|
+
</View>`,
|
|
71
|
+
|
|
72
|
+
"with-icons": `import { View, Icon, Text } from '@idealyst/components';
|
|
73
|
+
|
|
74
|
+
<View
|
|
75
|
+
spacing="sm"
|
|
76
|
+
background="surface"
|
|
77
|
+
radius="md"
|
|
78
|
+
border="thin"
|
|
79
|
+
style={{ padding: 16 }}
|
|
80
|
+
>
|
|
81
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 12 }}>
|
|
82
|
+
<Icon name="information-outline" size="lg" color="primary" />
|
|
83
|
+
<View spacing="xs" style={{ flex: 1 }}>
|
|
84
|
+
<Text weight="bold">Important Information</Text>
|
|
85
|
+
<Text size="sm">This is an informational message</Text>
|
|
86
|
+
</View>
|
|
87
|
+
</View>
|
|
88
|
+
</View>`,
|
|
89
|
+
|
|
90
|
+
interactive: `import { View, Text, Button, Card } from '@idealyst/components';
|
|
91
|
+
import { useState } from 'react';
|
|
92
|
+
|
|
93
|
+
function Example() {
|
|
94
|
+
const [items, setItems] = useState(['Item 1', 'Item 2']);
|
|
95
|
+
|
|
96
|
+
const addItem = () => {
|
|
97
|
+
setItems([...items, \`Item \${items.length + 1}\`]);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<View spacing="lg" style={{ padding: 16 }}>
|
|
102
|
+
<Card type="outlined" padding="md">
|
|
103
|
+
<View spacing="md">
|
|
104
|
+
<Text weight="bold">Dynamic List</Text>
|
|
105
|
+
<View spacing="sm">
|
|
106
|
+
{items.map((item, index) => (
|
|
107
|
+
<View
|
|
108
|
+
key={index}
|
|
109
|
+
background="surface"
|
|
110
|
+
radius="sm"
|
|
111
|
+
style={{ padding: 12 }}
|
|
112
|
+
>
|
|
113
|
+
<Text>{item}</Text>
|
|
114
|
+
</View>
|
|
115
|
+
))}
|
|
116
|
+
</View>
|
|
117
|
+
<Button onPress={addItem} type="outlined">
|
|
118
|
+
Add Item
|
|
119
|
+
</Button>
|
|
120
|
+
</View>
|
|
121
|
+
</Card>
|
|
122
|
+
</View>
|
|
123
|
+
);
|
|
124
|
+
}`,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Component documentation exports
|
|
2
|
+
export { Accordion } from './Accordion.js';
|
|
3
|
+
export { ActivityIndicator } from './ActivityIndicator.js';
|
|
4
|
+
export { Alert } from './Alert.js';
|
|
5
|
+
export { Avatar } from './Avatar.js';
|
|
6
|
+
export { Badge } from './Badge.js';
|
|
7
|
+
export { Breadcrumb } from './Breadcrumb.js';
|
|
8
|
+
export { Button } from './Button.js';
|
|
9
|
+
export { Card } from './Card.js';
|
|
10
|
+
export { Checkbox } from './Checkbox.js';
|
|
11
|
+
export { Chip } from './Chip.js';
|
|
12
|
+
export { Dialog } from './Dialog.js';
|
|
13
|
+
export { Divider } from './Divider.js';
|
|
14
|
+
export { Icon } from './Icon.js';
|
|
15
|
+
export { Image } from './Image.js';
|
|
16
|
+
export { Input } from './Input.js';
|
|
17
|
+
export { List } from './List.js';
|
|
18
|
+
export { Menu } from './Menu.js';
|
|
19
|
+
export { Popover } from './Popover.js';
|
|
20
|
+
export { Pressable } from './Pressable.js';
|
|
21
|
+
export { Progress } from './Progress.js';
|
|
22
|
+
export { RadioButton } from './RadioButton.js';
|
|
23
|
+
export { Screen } from './Screen.js';
|
|
24
|
+
export { Select } from './Select.js';
|
|
25
|
+
export { Skeleton } from './Skeleton.js';
|
|
26
|
+
export { Slider } from './Slider.js';
|
|
27
|
+
export { SVGImage } from './SVGImage.js';
|
|
28
|
+
export { Switch } from './Switch.js';
|
|
29
|
+
export { TabBar } from './TabBar.js';
|
|
30
|
+
export { Table } from './Table.js';
|
|
31
|
+
export { Text } from './Text.js';
|
|
32
|
+
export { TextArea } from './TextArea.js';
|
|
33
|
+
export { Tooltip } from './Tooltip.js';
|
|
34
|
+
export { Video } from './Video.js';
|
|
35
|
+
export { View } from './View.js';
|
|
36
|
+
|
|
37
|
+
// Collect all components into a single object
|
|
38
|
+
import { Accordion } from './Accordion.js';
|
|
39
|
+
import { ActivityIndicator } from './ActivityIndicator.js';
|
|
40
|
+
import { Alert } from './Alert.js';
|
|
41
|
+
import { Avatar } from './Avatar.js';
|
|
42
|
+
import { Badge } from './Badge.js';
|
|
43
|
+
import { Breadcrumb } from './Breadcrumb.js';
|
|
44
|
+
import { Button } from './Button.js';
|
|
45
|
+
import { Card } from './Card.js';
|
|
46
|
+
import { Checkbox } from './Checkbox.js';
|
|
47
|
+
import { Chip } from './Chip.js';
|
|
48
|
+
import { Dialog } from './Dialog.js';
|
|
49
|
+
import { Divider } from './Divider.js';
|
|
50
|
+
import { Icon } from './Icon.js';
|
|
51
|
+
import { Image } from './Image.js';
|
|
52
|
+
import { Input } from './Input.js';
|
|
53
|
+
import { List } from './List.js';
|
|
54
|
+
import { Menu } from './Menu.js';
|
|
55
|
+
import { Popover } from './Popover.js';
|
|
56
|
+
import { Pressable } from './Pressable.js';
|
|
57
|
+
import { Progress } from './Progress.js';
|
|
58
|
+
import { RadioButton } from './RadioButton.js';
|
|
59
|
+
import { Screen } from './Screen.js';
|
|
60
|
+
import { Select } from './Select.js';
|
|
61
|
+
import { Skeleton } from './Skeleton.js';
|
|
62
|
+
import { Slider } from './Slider.js';
|
|
63
|
+
import { SVGImage } from './SVGImage.js';
|
|
64
|
+
import { Switch } from './Switch.js';
|
|
65
|
+
import { TabBar } from './TabBar.js';
|
|
66
|
+
import { Table } from './Table.js';
|
|
67
|
+
import { Text } from './Text.js';
|
|
68
|
+
import { TextArea } from './TextArea.js';
|
|
69
|
+
import { Tooltip } from './Tooltip.js';
|
|
70
|
+
import { Video } from './Video.js';
|
|
71
|
+
import { View } from './View.js';
|
|
72
|
+
|
|
73
|
+
export const components: Record<string, any> = {
|
|
74
|
+
Accordion,
|
|
75
|
+
ActivityIndicator,
|
|
76
|
+
Alert,
|
|
77
|
+
Avatar,
|
|
78
|
+
Badge,
|
|
79
|
+
Breadcrumb,
|
|
80
|
+
Button,
|
|
81
|
+
Card,
|
|
82
|
+
Checkbox,
|
|
83
|
+
Chip,
|
|
84
|
+
Dialog,
|
|
85
|
+
Divider,
|
|
86
|
+
Icon,
|
|
87
|
+
Image,
|
|
88
|
+
Input,
|
|
89
|
+
List,
|
|
90
|
+
Menu,
|
|
91
|
+
Popover,
|
|
92
|
+
Pressable,
|
|
93
|
+
Progress,
|
|
94
|
+
RadioButton,
|
|
95
|
+
Screen,
|
|
96
|
+
Select,
|
|
97
|
+
Skeleton,
|
|
98
|
+
Slider,
|
|
99
|
+
SVGImage,
|
|
100
|
+
Switch,
|
|
101
|
+
TabBar,
|
|
102
|
+
Table,
|
|
103
|
+
Tabs,
|
|
104
|
+
Text,
|
|
105
|
+
TextArea,
|
|
106
|
+
Tooltip,
|
|
107
|
+
Video,
|
|
108
|
+
View,
|
|
109
|
+
};
|