@idealyst/mcp-server 1.2.24 → 1.2.26

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.
Files changed (193) hide show
  1. package/dist/index.cjs +22366 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +1 -0
  4. package/dist/index.d.ts +0 -2
  5. package/dist/index.js +22186 -1034
  6. package/dist/index.js.map +1 -1
  7. package/package.json +17 -7
  8. package/dist/data/cli-commands.d.ts +0 -2
  9. package/dist/data/cli-commands.d.ts.map +0 -1
  10. package/dist/data/cli-commands.js +0 -100
  11. package/dist/data/cli-commands.js.map +0 -1
  12. package/dist/data/components/Accordion.d.ts +0 -15
  13. package/dist/data/components/Accordion.d.ts.map +0 -1
  14. package/dist/data/components/Accordion.js +0 -113
  15. package/dist/data/components/Accordion.js.map +0 -1
  16. package/dist/data/components/ActivityIndicator.d.ts +0 -15
  17. package/dist/data/components/ActivityIndicator.d.ts.map +0 -1
  18. package/dist/data/components/ActivityIndicator.js +0 -80
  19. package/dist/data/components/ActivityIndicator.js.map +0 -1
  20. package/dist/data/components/Alert.d.ts +0 -15
  21. package/dist/data/components/Alert.d.ts.map +0 -1
  22. package/dist/data/components/Alert.js +0 -130
  23. package/dist/data/components/Alert.js.map +0 -1
  24. package/dist/data/components/Avatar.d.ts +0 -15
  25. package/dist/data/components/Avatar.d.ts.map +0 -1
  26. package/dist/data/components/Avatar.js +0 -91
  27. package/dist/data/components/Avatar.js.map +0 -1
  28. package/dist/data/components/Badge.d.ts +0 -15
  29. package/dist/data/components/Badge.d.ts.map +0 -1
  30. package/dist/data/components/Badge.js +0 -64
  31. package/dist/data/components/Badge.js.map +0 -1
  32. package/dist/data/components/Breadcrumb.d.ts +0 -15
  33. package/dist/data/components/Breadcrumb.d.ts.map +0 -1
  34. package/dist/data/components/Breadcrumb.js +0 -92
  35. package/dist/data/components/Breadcrumb.js.map +0 -1
  36. package/dist/data/components/Button.d.ts +0 -16
  37. package/dist/data/components/Button.d.ts.map +0 -1
  38. package/dist/data/components/Button.js +0 -118
  39. package/dist/data/components/Button.js.map +0 -1
  40. package/dist/data/components/Card.d.ts +0 -15
  41. package/dist/data/components/Card.d.ts.map +0 -1
  42. package/dist/data/components/Card.js +0 -75
  43. package/dist/data/components/Card.js.map +0 -1
  44. package/dist/data/components/Checkbox.d.ts +0 -15
  45. package/dist/data/components/Checkbox.d.ts.map +0 -1
  46. package/dist/data/components/Checkbox.js +0 -118
  47. package/dist/data/components/Checkbox.js.map +0 -1
  48. package/dist/data/components/Chip.d.ts +0 -15
  49. package/dist/data/components/Chip.d.ts.map +0 -1
  50. package/dist/data/components/Chip.js +0 -94
  51. package/dist/data/components/Chip.js.map +0 -1
  52. package/dist/data/components/Dialog.d.ts +0 -15
  53. package/dist/data/components/Dialog.d.ts.map +0 -1
  54. package/dist/data/components/Dialog.js +0 -137
  55. package/dist/data/components/Dialog.js.map +0 -1
  56. package/dist/data/components/Divider.d.ts +0 -15
  57. package/dist/data/components/Divider.d.ts.map +0 -1
  58. package/dist/data/components/Divider.js +0 -68
  59. package/dist/data/components/Divider.js.map +0 -1
  60. package/dist/data/components/Icon.d.ts +0 -15
  61. package/dist/data/components/Icon.d.ts.map +0 -1
  62. package/dist/data/components/Icon.js +0 -68
  63. package/dist/data/components/Icon.js.map +0 -1
  64. package/dist/data/components/Image.d.ts +0 -15
  65. package/dist/data/components/Image.d.ts.map +0 -1
  66. package/dist/data/components/Image.js +0 -119
  67. package/dist/data/components/Image.js.map +0 -1
  68. package/dist/data/components/Input.d.ts +0 -15
  69. package/dist/data/components/Input.d.ts.map +0 -1
  70. package/dist/data/components/Input.js +0 -155
  71. package/dist/data/components/Input.js.map +0 -1
  72. package/dist/data/components/Link.d.ts +0 -15
  73. package/dist/data/components/Link.d.ts.map +0 -1
  74. package/dist/data/components/Link.js +0 -142
  75. package/dist/data/components/Link.js.map +0 -1
  76. package/dist/data/components/List.d.ts +0 -15
  77. package/dist/data/components/List.d.ts.map +0 -1
  78. package/dist/data/components/List.js +0 -113
  79. package/dist/data/components/List.js.map +0 -1
  80. package/dist/data/components/Menu.d.ts +0 -15
  81. package/dist/data/components/Menu.d.ts.map +0 -1
  82. package/dist/data/components/Menu.js +0 -123
  83. package/dist/data/components/Menu.js.map +0 -1
  84. package/dist/data/components/Popover.d.ts +0 -15
  85. package/dist/data/components/Popover.d.ts.map +0 -1
  86. package/dist/data/components/Popover.js +0 -157
  87. package/dist/data/components/Popover.js.map +0 -1
  88. package/dist/data/components/Pressable.d.ts +0 -15
  89. package/dist/data/components/Pressable.d.ts.map +0 -1
  90. package/dist/data/components/Pressable.js +0 -125
  91. package/dist/data/components/Pressable.js.map +0 -1
  92. package/dist/data/components/Progress.d.ts +0 -15
  93. package/dist/data/components/Progress.d.ts.map +0 -1
  94. package/dist/data/components/Progress.js +0 -93
  95. package/dist/data/components/Progress.js.map +0 -1
  96. package/dist/data/components/RadioButton.d.ts +0 -15
  97. package/dist/data/components/RadioButton.d.ts.map +0 -1
  98. package/dist/data/components/RadioButton.js +0 -131
  99. package/dist/data/components/RadioButton.js.map +0 -1
  100. package/dist/data/components/SVGImage.d.ts +0 -15
  101. package/dist/data/components/SVGImage.d.ts.map +0 -1
  102. package/dist/data/components/SVGImage.js +0 -112
  103. package/dist/data/components/SVGImage.js.map +0 -1
  104. package/dist/data/components/Screen.d.ts +0 -15
  105. package/dist/data/components/Screen.d.ts.map +0 -1
  106. package/dist/data/components/Screen.js +0 -109
  107. package/dist/data/components/Screen.js.map +0 -1
  108. package/dist/data/components/Select.d.ts +0 -15
  109. package/dist/data/components/Select.d.ts.map +0 -1
  110. package/dist/data/components/Select.js +0 -141
  111. package/dist/data/components/Select.js.map +0 -1
  112. package/dist/data/components/Skeleton.d.ts +0 -15
  113. package/dist/data/components/Skeleton.d.ts.map +0 -1
  114. package/dist/data/components/Skeleton.js +0 -100
  115. package/dist/data/components/Skeleton.js.map +0 -1
  116. package/dist/data/components/Slider.d.ts +0 -15
  117. package/dist/data/components/Slider.d.ts.map +0 -1
  118. package/dist/data/components/Slider.js +0 -151
  119. package/dist/data/components/Slider.js.map +0 -1
  120. package/dist/data/components/Switch.d.ts +0 -15
  121. package/dist/data/components/Switch.d.ts.map +0 -1
  122. package/dist/data/components/Switch.js +0 -128
  123. package/dist/data/components/Switch.js.map +0 -1
  124. package/dist/data/components/TabBar.d.ts +0 -17
  125. package/dist/data/components/TabBar.d.ts.map +0 -1
  126. package/dist/data/components/TabBar.js +0 -244
  127. package/dist/data/components/TabBar.js.map +0 -1
  128. package/dist/data/components/Table.d.ts +0 -15
  129. package/dist/data/components/Table.d.ts.map +0 -1
  130. package/dist/data/components/Table.js +0 -159
  131. package/dist/data/components/Table.js.map +0 -1
  132. package/dist/data/components/Tabs.d.ts +0 -15
  133. package/dist/data/components/Tabs.d.ts.map +0 -1
  134. package/dist/data/components/Tabs.js +0 -150
  135. package/dist/data/components/Tabs.js.map +0 -1
  136. package/dist/data/components/Text.d.ts +0 -15
  137. package/dist/data/components/Text.d.ts.map +0 -1
  138. package/dist/data/components/Text.js +0 -97
  139. package/dist/data/components/Text.js.map +0 -1
  140. package/dist/data/components/TextArea.d.ts +0 -15
  141. package/dist/data/components/TextArea.d.ts.map +0 -1
  142. package/dist/data/components/TextArea.js +0 -156
  143. package/dist/data/components/TextArea.js.map +0 -1
  144. package/dist/data/components/Tooltip.d.ts +0 -15
  145. package/dist/data/components/Tooltip.d.ts.map +0 -1
  146. package/dist/data/components/Tooltip.js +0 -103
  147. package/dist/data/components/Tooltip.js.map +0 -1
  148. package/dist/data/components/Video.d.ts +0 -15
  149. package/dist/data/components/Video.d.ts.map +0 -1
  150. package/dist/data/components/Video.js +0 -166
  151. package/dist/data/components/Video.js.map +0 -1
  152. package/dist/data/components/View.d.ts +0 -15
  153. package/dist/data/components/View.d.ts.map +0 -1
  154. package/dist/data/components/View.js +0 -127
  155. package/dist/data/components/View.js.map +0 -1
  156. package/dist/data/components/index.d.ts +0 -38
  157. package/dist/data/components/index.d.ts.map +0 -1
  158. package/dist/data/components/index.js +0 -113
  159. package/dist/data/components/index.js.map +0 -1
  160. package/dist/data/framework-guides.d.ts +0 -2
  161. package/dist/data/framework-guides.d.ts.map +0 -1
  162. package/dist/data/framework-guides.js +0 -1730
  163. package/dist/data/framework-guides.js.map +0 -1
  164. package/dist/data/icon-guide.d.ts +0 -2
  165. package/dist/data/icon-guide.d.ts.map +0 -1
  166. package/dist/data/icon-guide.js +0 -285
  167. package/dist/data/icon-guide.js.map +0 -1
  168. package/dist/data/icons.json +0 -7452
  169. package/dist/data/navigation-guides.d.ts +0 -2
  170. package/dist/data/navigation-guides.d.ts.map +0 -1
  171. package/dist/data/navigation-guides.js +0 -2144
  172. package/dist/data/navigation-guides.js.map +0 -1
  173. package/dist/data/packages.d.ts +0 -39
  174. package/dist/data/packages.d.ts.map +0 -1
  175. package/dist/data/packages.js +0 -550
  176. package/dist/data/packages.js.map +0 -1
  177. package/dist/data/recipes.d.ts +0 -36
  178. package/dist/data/recipes.d.ts.map +0 -1
  179. package/dist/data/recipes.js +0 -2945
  180. package/dist/data/recipes.js.map +0 -1
  181. package/dist/data/storage-guides.d.ts +0 -2
  182. package/dist/data/storage-guides.d.ts.map +0 -1
  183. package/dist/data/storage-guides.js +0 -418
  184. package/dist/data/storage-guides.js.map +0 -1
  185. package/dist/data/translate-guides.d.ts +0 -2
  186. package/dist/data/translate-guides.d.ts.map +0 -1
  187. package/dist/data/translate-guides.js +0 -1030
  188. package/dist/data/translate-guides.js.map +0 -1
  189. package/dist/index.d.ts.map +0 -1
  190. package/dist/tools/get-types.d.ts +0 -37
  191. package/dist/tools/get-types.d.ts.map +0 -1
  192. package/dist/tools/get-types.js +0 -148
  193. package/dist/tools/get-types.js.map +0 -1
@@ -1,159 +0,0 @@
1
- export const Table = {
2
- category: "data",
3
- description: "Data table component with spacing variants for displaying structured tabular data",
4
- props: `
5
- - \`columns\`: TableColumn<T>[] - Column definitions
6
- - \`key\`: string - Unique column key
7
- - \`title\`: string - Column header title
8
- - \`dataIndex\`: string - Key in data object (optional)
9
- - \`render\`: (value, row, index) => ReactNode - Custom cell renderer
10
- - \`width\`: number | string - Column width
11
- - \`align\`: 'left' | 'center' | 'right' - Text alignment
12
- - \`data\`: T[] - Array of data objects
13
- - \`variant\`: 'default' | 'bordered' | 'striped' - Visual style
14
- - \`size\`: 'sm' | 'md' | 'lg' - Cell padding/size
15
- - \`gap\`: Size - Space between table elements ('xs' | 'sm' | 'md' | 'lg' | 'xl')
16
- - \`padding\`: Size - Padding on all sides
17
- - \`paddingVertical\`: Size - Top and bottom padding
18
- - \`paddingHorizontal\`: Size - Left and right padding
19
- - \`margin\`: Size - Margin on all sides
20
- - \`marginVertical\`: Size - Top and bottom margin
21
- - \`marginHorizontal\`: Size - Left and right margin
22
- - \`stickyHeader\`: boolean - Keep header fixed on scroll
23
- - \`onRowPress\`: (row: T, index: number) => void - Row click handler
24
- - \`style\`: ViewStyle - Additional styles
25
- - \`testID\`: string - Test identifier
26
- `,
27
- features: [
28
- "Column-based configuration",
29
- "Custom cell renderers",
30
- "Three visual variants",
31
- "Three sizes",
32
- "Gap, padding, and margin variants",
33
- "Sticky header support",
34
- "Row click handling",
35
- "Column alignment",
36
- "Custom column widths",
37
- ],
38
- bestPractices: [
39
- "Use render function for complex cell content",
40
- "Enable stickyHeader for long tables",
41
- "Use 'striped' variant for better readability",
42
- "Set column widths for important columns",
43
- "Keep column count reasonable for mobile",
44
- "Use appropriate size for data density",
45
- ],
46
- usage: `
47
- import { Table } from '@idealyst/components';
48
-
49
- const columns = [
50
- { key: 'name', title: 'Name', dataIndex: 'name' },
51
- { key: 'email', title: 'Email', dataIndex: 'email' },
52
- {
53
- key: 'status',
54
- title: 'Status',
55
- render: (_, row) => <Badge>{row.status}</Badge>,
56
- },
57
- ];
58
-
59
- const data = [
60
- { id: 1, name: 'John Doe', email: 'john@example.com', status: 'Active' },
61
- { id: 2, name: 'Jane Smith', email: 'jane@example.com', status: 'Inactive' },
62
- ];
63
-
64
- <Table columns={columns} data={data} variant="striped" />
65
- `,
66
- examples: {
67
- basic: `import { Table } from '@idealyst/components';
68
-
69
- const columns = [
70
- { key: 'id', title: 'ID', dataIndex: 'id' },
71
- { key: 'name', title: 'Name', dataIndex: 'name' },
72
- ];
73
-
74
- const data = [
75
- { id: 1, name: 'Item 1' },
76
- { id: 2, name: 'Item 2' },
77
- ];
78
-
79
- <Table columns={columns} data={data} />`,
80
- variants: `import { Table, View } from '@idealyst/components';
81
-
82
- const columns = [{ key: 'name', title: 'Name', dataIndex: 'name' }];
83
- const data = [{ name: 'Test' }];
84
-
85
- <View spacing="md">
86
- <Table columns={columns} data={data} variant="default" />
87
- <Table columns={columns} data={data} variant="bordered" />
88
- <Table columns={columns} data={data} variant="striped" />
89
- </View>`,
90
- "with-icons": `import { Table, Badge, Icon, View, Text } from '@idealyst/components';
91
-
92
- const columns = [
93
- {
94
- key: 'user',
95
- title: 'User',
96
- render: (_, row) => (
97
- <View style={{ flexDirection: 'row', gap: 8, alignItems: 'center' }}>
98
- <Icon name="account-circle" size="sm" />
99
- <Text>{row.name}</Text>
100
- </View>
101
- ),
102
- },
103
- {
104
- key: 'status',
105
- title: 'Status',
106
- render: (_, row) => (
107
- <Badge color={row.active ? 'green' : 'gray'}>
108
- {row.active ? 'Active' : 'Inactive'}
109
- </Badge>
110
- ),
111
- },
112
- ];
113
-
114
- <Table columns={columns} data={users} />`,
115
- interactive: `import { Table, Button, View, Text } from '@idealyst/components';
116
- import { useState } from 'react';
117
-
118
- function Example() {
119
- const [selected, setSelected] = useState(null);
120
-
121
- const columns = [
122
- { key: 'id', title: 'ID', dataIndex: 'id', width: 60 },
123
- { key: 'product', title: 'Product', dataIndex: 'name' },
124
- { key: 'price', title: 'Price', dataIndex: 'price', align: 'right' },
125
- {
126
- key: 'actions',
127
- title: 'Actions',
128
- render: (_, row) => (
129
- <Button
130
- size="sm"
131
- variant="outlined"
132
- onPress={() => setSelected(row)}
133
- >
134
- View
135
- </Button>
136
- ),
137
- },
138
- ];
139
-
140
- const data = [
141
- { id: 1, name: 'Product A', price: '$29.99' },
142
- { id: 2, name: 'Product B', price: '$49.99' },
143
- ];
144
-
145
- return (
146
- <View spacing="md">
147
- <Table
148
- columns={columns}
149
- data={data}
150
- variant="bordered"
151
- onRowPress={(row) => setSelected(row)}
152
- />
153
- {selected && <Text>Selected: {selected.name}</Text>}
154
- </View>
155
- );
156
- }`,
157
- },
158
- };
159
- //# sourceMappingURL=Table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/data/components/Table.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,mFAAmF;IAChG,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;CAsBR;IACC,QAAQ,EAAE;QACR,4BAA4B;QAC5B,uBAAuB;QACvB,uBAAuB;QACvB,aAAa;QACb,mCAAmC;QACnC,uBAAuB;QACvB,oBAAoB;QACpB,kBAAkB;QAClB,sBAAsB;KACvB;IACD,aAAa,EAAE;QACb,8CAA8C;QAC9C,qCAAqC;QACrC,8CAA8C;QAC9C,yCAAyC;QACzC,yCAAyC;QACzC,uCAAuC;KACxC;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;;;;CAmBR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;;;;;;;;;;;wCAY6B;QAEpC,QAAQ,EAAE;;;;;;;;;QASN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;yCAwBuB;QAErC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCf;KACC;CACF,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const Tabs: {
2
- category: string;
3
- description: string;
4
- props: string;
5
- features: string[];
6
- bestPractices: string[];
7
- usage: string;
8
- examples: {
9
- basic: string;
10
- variants: string;
11
- "with-icons": string;
12
- interactive: string;
13
- };
14
- };
15
- //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/data/components/Tabs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAuJhB,CAAC"}
@@ -1,150 +0,0 @@
1
- export const Tabs = {
2
- category: "navigation",
3
- description: "Tabs component with content panels for organizing information into tabbed sections",
4
- props: `
5
- Tab Props:
6
- - \`value\`: string - Unique tab identifier
7
- - \`label\`: string - Tab label text
8
- - \`disabled\`: boolean - Whether tab is disabled
9
- - \`children\`: ReactNode - Tab panel content
10
-
11
- Tabs Props:
12
- - \`value\`: string - Currently active tab value
13
- - \`defaultValue\`: string - Default tab (uncontrolled)
14
- - \`onChange\`: (value: string) => void - Tab change handler
15
- - \`variant\`: 'default' | 'pills' | 'underline' - Visual style
16
- - \`size\`: 'sm' | 'md' | 'lg' - Tab size
17
- - \`intent\`: 'primary' | 'neutral' | 'success' | 'error' | 'warning' - Color scheme
18
- - \`style\`: ViewStyle - Additional styles
19
- - \`testID\`: string - Test identifier
20
- - \`children\`: ReactNode - Tab components
21
- `,
22
- features: [
23
- "Integrated tab navigation and content panels",
24
- "Three visual variants",
25
- "Controlled and uncontrolled modes",
26
- "Three sizes",
27
- "Five intent colors",
28
- "Disabled tabs",
29
- "Automatic content switching",
30
- ],
31
- bestPractices: [
32
- "Use Tabs for content that belongs together",
33
- "Use TabBar for navigation without content management",
34
- "Keep 3-5 tabs for optimal UX",
35
- "Lazy load tab content if heavy",
36
- "Use descriptive tab labels",
37
- "Consider vertical tabs for many options",
38
- ],
39
- usage: `
40
- import { Tabs, Tab, Text } from '@idealyst/components';
41
-
42
- <Tabs defaultValue="tab1" variant="underline">
43
- <Tab value="tab1" label="Overview">
44
- <Text>Overview content</Text>
45
- </Tab>
46
- <Tab value="tab2" label="Details">
47
- <Text>Details content</Text>
48
- </Tab>
49
- <Tab value="tab3" label="Settings">
50
- <Text>Settings content</Text>
51
- </Tab>
52
- </Tabs>
53
- `,
54
- examples: {
55
- basic: `import { Tabs, Tab, Text } from '@idealyst/components';
56
-
57
- <Tabs defaultValue="1">
58
- <Tab value="1" label="First">
59
- <Text>First tab content</Text>
60
- </Tab>
61
- <Tab value="2" label="Second">
62
- <Text>Second tab content</Text>
63
- </Tab>
64
- </Tabs>`,
65
- variants: `import { Tabs, Tab, View, Text } from '@idealyst/components';
66
-
67
- <View spacing="lg">
68
- <Tabs defaultValue="a" variant="default">
69
- <Tab value="a" label="Default"><Text>Content A</Text></Tab>
70
- <Tab value="b" label="Style"><Text>Content B</Text></Tab>
71
- </Tabs>
72
-
73
- <Tabs defaultValue="a" variant="pills">
74
- <Tab value="a" label="Pills"><Text>Content A</Text></Tab>
75
- <Tab value="b" label="Style"><Text>Content B</Text></Tab>
76
- </Tabs>
77
-
78
- <Tabs defaultValue="a" variant="underline">
79
- <Tab value="a" label="Underline"><Text>Content A</Text></Tab>
80
- <Tab value="b" label="Style"><Text>Content B</Text></Tab>
81
- </Tabs>
82
- </View>`,
83
- "with-icons": `import { Tabs, Tab, View, Text, Card } from '@idealyst/components';
84
-
85
- <Tabs defaultValue="profile" variant="pills" intent="primary">
86
- <Tab value="profile" label="Profile">
87
- <Card padding="md">
88
- <View spacing="md">
89
- <Text weight="bold">Profile Settings</Text>
90
- <Text>Update your profile information</Text>
91
- </View>
92
- </Card>
93
- </Tab>
94
- <Tab value="security" label="Security">
95
- <Card padding="md">
96
- <View spacing="md">
97
- <Text weight="bold">Security Settings</Text>
98
- <Text>Manage your security preferences</Text>
99
- </View>
100
- </Card>
101
- </Tab>
102
- </Tabs>`,
103
- interactive: `import { Tabs, Tab, View, Text, Input, Button } from '@idealyst/components';
104
- import { useState } from 'react';
105
-
106
- function Example() {
107
- const [activeTab, setActiveTab] = useState('account');
108
- const [name, setName] = useState('');
109
- const [email, setEmail] = useState('');
110
-
111
- return (
112
- <Tabs value={activeTab} onChange={setActiveTab} variant="underline">
113
- <Tab value="account" label="Account">
114
- <View spacing="md" style={{ padding: 16 }}>
115
- <Text weight="bold">Account Information</Text>
116
- <Input
117
- label="Name"
118
- value={name}
119
- onChangeText={setName}
120
- placeholder="Enter your name"
121
- />
122
- <Input
123
- label="Email"
124
- value={email}
125
- onChangeText={setEmail}
126
- placeholder="Enter your email"
127
- />
128
- <Button intent="primary">Save Changes</Button>
129
- </View>
130
- </Tab>
131
-
132
- <Tab value="privacy" label="Privacy">
133
- <View spacing="md" style={{ padding: 16 }}>
134
- <Text weight="bold">Privacy Settings</Text>
135
- <Text>Manage your privacy preferences here</Text>
136
- </View>
137
- </Tab>
138
-
139
- <Tab value="notifications" label="Notifications">
140
- <View spacing="md" style={{ padding: 16 }}>
141
- <Text weight="bold">Notification Preferences</Text>
142
- <Text>Configure how you receive notifications</Text>
143
- </View>
144
- </Tab>
145
- </Tabs>
146
- );
147
- }`,
148
- },
149
- };
150
- //# sourceMappingURL=Tabs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/data/components/Tabs.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,oFAAoF;IACjG,KAAK,EAAE;;;;;;;;;;;;;;;;;CAiBR;IACC,QAAQ,EAAE;QACR,8CAA8C;QAC9C,uBAAuB;QACvB,mCAAmC;QACnC,aAAa;QACb,oBAAoB;QACpB,eAAe;QACf,6BAA6B;KAC9B;IACD,aAAa,EAAE;QACb,4CAA4C;QAC5C,sDAAsD;QACtD,8BAA8B;QAC9B,gCAAgC;QAChC,4BAA4B;QAC5B,yCAAyC;KAC1C;IACD,KAAK,EAAE;;;;;;;;;;;;;;CAcR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;;;;;;;;QASH;QAEJ,QAAQ,EAAE;;;;;;;;;;;;;;;;;QAiBN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;;;;;QAmBV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Cf;KACC;CACF,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const Text: {
2
- category: string;
3
- description: string;
4
- props: string;
5
- features: string[];
6
- bestPractices: string[];
7
- usage: string;
8
- examples: {
9
- basic: string;
10
- variants: string;
11
- "with-icons": string;
12
- interactive: string;
13
- };
14
- };
15
- //# sourceMappingURL=Text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/data/components/Text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAkGhB,CAAC"}
@@ -1,97 +0,0 @@
1
- export const Text = {
2
- category: "typography",
3
- description: "Styled text component with typography variants, weight, color, and spacing options",
4
- props: `
5
- - \`children\`: React.ReactNode - The text content to display
6
- - \`typography\`: Typography - The typography variant (h1, h2, h3, h4, h5, h6, body1, body2, caption). Sets fontSize, lineHeight, and fontWeight automatically.
7
- - \`weight\`: TextWeightVariant - Override the weight ('light' | 'normal' | 'medium' | 'semibold' | 'bold')
8
- - \`color\`: TextColorVariant - The color of the text (theme text colors)
9
- - \`align\`: TextAlignVariant - Text alignment ('left' | 'center' | 'right')
10
- - \`gap\`: Size - Space between nested elements ('xs' | 'sm' | 'md' | 'lg' | 'xl')
11
- - \`padding\`: Size - Padding on all sides
12
- - \`paddingVertical\`: Size - Top and bottom padding
13
- - \`paddingHorizontal\`: Size - Left and right padding
14
- `,
15
- features: [
16
- "Semantic typography variants (headings h1-h6, body1, body2, caption)",
17
- "Typography automatically sets fontSize, lineHeight, fontWeight",
18
- "Weight can be overridden independently",
19
- "Theme color variants",
20
- "Three alignment options",
21
- "Gap variant for nested elements",
22
- "Padding variants (uniform and directional)",
23
- "Cross-platform support",
24
- "Inherits parent text styles",
25
- ],
26
- bestPractices: [
27
- "Use semantic typography variants (h1-h6 for headings, body1/body2 for content, caption for small text)",
28
- "Override weight only when needed - typography variants include sensible defaults",
29
- "Prefer theme colors over custom colors",
30
- "Use 'left' alignment for body text",
31
- "Use 'center' for short, important text",
32
- "Use padding prop for text blocks that need internal spacing",
33
- "Nest Text components for mixed styles",
34
- ],
35
- usage: `
36
- import { Text } from '@idealyst/components';
37
-
38
- <Text typography="h1" color="primary">
39
- Main Heading
40
- </Text>
41
-
42
- <Text typography="body1" color="secondary">
43
- Body text with normal weight
44
- </Text>
45
-
46
- <Text typography="caption" color="tertiary">
47
- Small caption text
48
- </Text>
49
- `,
50
- examples: {
51
- basic: `import { Text } from '@idealyst/components';
52
-
53
- <Text>Simple text content</Text>`,
54
- variants: `import { Text, View } from '@idealyst/components';
55
-
56
- <View spacing="md">
57
- <Text typography="h1">Heading 1</Text>
58
- <Text typography="h2">Heading 2</Text>
59
- <Text typography="h3">Heading 3</Text>
60
- <Text typography="body1">Body text (default)</Text>
61
- <Text typography="body2">Smaller body text</Text>
62
- <Text typography="caption">Caption text</Text>
63
- </View>`,
64
- "with-icons": `import { Text, View, Icon } from '@idealyst/components';
65
-
66
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
67
- <Icon name="check-circle" color="success" />
68
- <Text color="success" weight="medium">
69
- Verified Account
70
- </Text>
71
- </View>`,
72
- interactive: `import { Text, View, Button } from '@idealyst/components';
73
- import { useState } from 'react';
74
-
75
- function Example() {
76
- const [count, setCount] = useState(0);
77
-
78
- return (
79
- <View spacing="md">
80
- <Text typography="h2" weight="bold" align="center">
81
- Counter: {count}
82
- </Text>
83
-
84
- <View style={{ flexDirection: 'row', gap: 8, justifyContent: 'center' }}>
85
- <Button onPress={() => setCount(count - 1)}>-</Button>
86
- <Button onPress={() => setCount(count + 1)}>+</Button>
87
- </View>
88
-
89
- <Text typography="body2" color="secondary" align="center">
90
- Click buttons to change the count
91
- </Text>
92
- </View>
93
- );
94
- }`,
95
- },
96
- };
97
- //# sourceMappingURL=Text.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/data/components/Text.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,oFAAoF;IAC7F,KAAK,EAAE;;;;;;;;;;CAUZ;IACC,QAAQ,EAAE;QACR,sEAAsE;QACtE,gEAAgE;QAChE,wCAAwC;QACxC,sBAAsB;QACtB,yBAAyB;QACzB,iCAAiC;QACjC,4CAA4C;QAC5C,wBAAwB;QACxB,6BAA6B;KAC9B;IACD,aAAa,EAAE;QACb,wGAAwG;QACxG,kFAAkF;QAClF,wCAAwC;QACxC,oCAAoC;QACpC,wCAAwC;QACxC,6DAA6D;QAC7D,uCAAuC;KACxC;IACD,KAAK,EAAE;;;;;;;;;;;;;;CAcR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;iCAEsB;QAE7B,QAAQ,EAAE;;;;;;;;;QASN;QAEJ,YAAY,EAAE;;;;;;;QAOV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;EAsBf;KACC;CACF,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const TextArea: {
2
- category: string;
3
- description: string;
4
- props: string;
5
- features: string[];
6
- bestPractices: string[];
7
- usage: string;
8
- examples: {
9
- basic: string;
10
- variants: string;
11
- "with-icons": string;
12
- interactive: string;
13
- };
14
- };
15
- //# sourceMappingURL=TextArea.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/data/components/TextArea.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;CA6JpB,CAAC"}
@@ -1,156 +0,0 @@
1
- export const TextArea = {
2
- category: "form",
3
- description: "Multi-line text input field with margin variants for longer text content",
4
- props: `
5
- - \`value\`: string - The current value of the textarea (controlled)
6
- - \`defaultValue\`: string - The default value for uncontrolled usage
7
- - \`onChange\`: function - Called when the text content changes
8
- - \`placeholder\`: string - Placeholder text shown when empty
9
- - \`disabled\`: boolean - Whether the textarea is disabled
10
- - \`rows\`: number - Initial number of visible text rows
11
- - \`minHeight\`: number - Minimum height in pixels
12
- - \`maxHeight\`: number - Maximum height in pixels
13
- - \`autoGrow\`: boolean - Whether to automatically grow height to fit content
14
- - \`maxLength\`: number - Maximum number of characters allowed
15
- - \`label\`: string - Label text displayed above the textarea
16
- - \`error\`: string - Error message to display
17
- - \`helperText\`: string - Helper text displayed below the textarea
18
- - \`resize\`: TextAreaResizeVariant - How the textarea can be resized (none, vertical, horizontal, both)
19
- - \`showCharacterCount\`: boolean - Whether to show the character count
20
- - \`intent\`: TextAreaIntentVariant - The intent/color scheme (for validation states)
21
- - \`size\`: TextAreaSizeVariant - The size variant of the textarea
22
- - \`margin\`: Size - Margin on all sides ('xs' | 'sm' | 'md' | 'lg' | 'xl')
23
- - \`marginVertical\`: Size - Top and bottom margin
24
- - \`marginHorizontal\`: Size - Left and right margin
25
- - \`textareaStyle\`: StyleProp<TextStyle> - Additional custom styles for the textarea element
26
- `,
27
- features: [
28
- "Multi-line text input",
29
- "Auto-grow to fit content",
30
- "Character count display",
31
- "Min/max height constraints",
32
- "Max length validation",
33
- "Label and helper text",
34
- "Error state",
35
- "Resize control (web)",
36
- "Three sizes",
37
- ],
38
- bestPractices: [
39
- "Always provide a label",
40
- "Use helperText to guide users",
41
- "Set maxLength to prevent excessive input",
42
- "Show character count for limited fields",
43
- "Use autoGrow for dynamic content",
44
- "Set minHeight for comfortable input area",
45
- "Show inline error messages",
46
- ],
47
- usage: `
48
- import { TextArea } from '@idealyst/components';
49
- import { useState } from 'react';
50
-
51
- function Example() {
52
- const [text, setText] = useState('');
53
-
54
- return (
55
- <TextArea
56
- label="Description"
57
- value={text}
58
- onChange={setText}
59
- placeholder="Enter a detailed description"
60
- rows={4}
61
- maxLength={500}
62
- showCharacterCount
63
- helperText="Provide as much detail as possible"
64
- />
65
- );
66
- }
67
- `,
68
- examples: {
69
- basic: `import { TextArea } from '@idealyst/components';
70
-
71
- <TextArea
72
- label="Message"
73
- placeholder="Enter your message"
74
- rows={4}
75
- />`,
76
- variants: `import { TextArea, View } from '@idealyst/components';
77
-
78
- <View spacing="md">
79
- <TextArea label="Small" size="sm" rows={3} />
80
- <TextArea label="Medium" size="md" rows={4} />
81
- <TextArea label="Large" size="lg" rows={5} />
82
- </View>`,
83
- "with-icons": `import { TextArea, View, Text } from '@idealyst/components';
84
- import { useState } from 'react';
85
-
86
- function Example() {
87
- const [feedback, setFeedback] = useState('');
88
- const maxLength = 200;
89
-
90
- return (
91
- <View spacing="sm">
92
- <TextArea
93
- label="Feedback"
94
- value={feedback}
95
- onChange={setFeedback}
96
- placeholder="Share your thoughts..."
97
- maxLength={maxLength}
98
- showCharacterCount
99
- autoGrow
100
- minHeight={100}
101
- maxHeight={300}
102
- />
103
- <Text size="sm" color="secondary">
104
- {feedback.length}/{maxLength} characters
105
- </Text>
106
- </View>
107
- );
108
- }`,
109
- interactive: `import { TextArea, View, Button, Text } from '@idealyst/components';
110
- import { useState } from 'react';
111
-
112
- function Example() {
113
- const [message, setMessage] = useState('');
114
- const [error, setError] = useState('');
115
- const [submitted, setSubmitted] = useState(false);
116
-
117
- const handleSubmit = () => {
118
- if (message.trim().length < 10) {
119
- setError('Message must be at least 10 characters');
120
- return;
121
- }
122
- setError('');
123
- setSubmitted(true);
124
- // Submit logic here
125
- };
126
-
127
- if (submitted) {
128
- return <Text color="success">Message submitted successfully!</Text>;
129
- }
130
-
131
- return (
132
- <View spacing="md">
133
- <TextArea
134
- label="Your Message"
135
- value={message}
136
- onChange={(val) => {
137
- setMessage(val);
138
- setError('');
139
- }}
140
- placeholder="Type your message here..."
141
- rows={5}
142
- maxLength={500}
143
- showCharacterCount
144
- error={error}
145
- helperText={error || 'Minimum 10 characters required'}
146
- autoGrow
147
- />
148
- <Button intent="primary" onPress={handleSubmit}>
149
- Submit
150
- </Button>
151
- </View>
152
- );
153
- }`,
154
- },
155
- };
156
- //# sourceMappingURL=TextArea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../src/data/components/TextArea.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,0EAA0E;IACnF,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;CAsBZ;IACC,QAAQ,EAAE;QACR,uBAAuB;QACvB,0BAA0B;QAC1B,yBAAyB;QACzB,4BAA4B;QAC5B,uBAAuB;QACvB,uBAAuB;QACvB,aAAa;QACb,sBAAsB;QACtB,aAAa;KACd;IACD,aAAa,EAAE;QACb,wBAAwB;QACxB,+BAA+B;QAC/B,0CAA0C;QAC1C,yCAAyC;QACzC,kCAAkC;QAClC,0CAA0C;QAC1C,4BAA4B;KAC7B;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;CAoBR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;;;;;GAMR;QAEC,QAAQ,EAAE;;;;;;QAMN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;EAyBhB;QAEE,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Cf;KACC;CACF,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const Tooltip: {
2
- category: string;
3
- description: string;
4
- props: string;
5
- features: string[];
6
- bestPractices: string[];
7
- usage: string;
8
- examples: {
9
- basic: string;
10
- variants: string;
11
- "with-icons": string;
12
- interactive: string;
13
- };
14
- };
15
- //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/data/components/Tooltip.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAwGnB,CAAC"}