@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.
Files changed (211) hide show
  1. package/README.md +202 -0
  2. package/dist/data/cli-commands.d.ts +2 -0
  3. package/dist/data/cli-commands.d.ts.map +1 -0
  4. package/dist/data/cli-commands.js +100 -0
  5. package/dist/data/cli-commands.js.map +1 -0
  6. package/dist/data/components/Accordion.d.ts +15 -0
  7. package/dist/data/components/Accordion.d.ts.map +1 -0
  8. package/dist/data/components/Accordion.js +112 -0
  9. package/dist/data/components/Accordion.js.map +1 -0
  10. package/dist/data/components/ActivityIndicator.d.ts +15 -0
  11. package/dist/data/components/ActivityIndicator.d.ts.map +1 -0
  12. package/dist/data/components/ActivityIndicator.js +82 -0
  13. package/dist/data/components/ActivityIndicator.js.map +1 -0
  14. package/dist/data/components/Alert.d.ts +15 -0
  15. package/dist/data/components/Alert.d.ts.map +1 -0
  16. package/dist/data/components/Alert.js +132 -0
  17. package/dist/data/components/Alert.js.map +1 -0
  18. package/dist/data/components/Avatar.d.ts +15 -0
  19. package/dist/data/components/Avatar.d.ts.map +1 -0
  20. package/dist/data/components/Avatar.js +93 -0
  21. package/dist/data/components/Avatar.js.map +1 -0
  22. package/dist/data/components/Badge.d.ts +15 -0
  23. package/dist/data/components/Badge.d.ts.map +1 -0
  24. package/dist/data/components/Badge.js +64 -0
  25. package/dist/data/components/Badge.js.map +1 -0
  26. package/dist/data/components/Breadcrumb.d.ts +15 -0
  27. package/dist/data/components/Breadcrumb.d.ts.map +1 -0
  28. package/dist/data/components/Breadcrumb.js +96 -0
  29. package/dist/data/components/Breadcrumb.js.map +1 -0
  30. package/dist/data/components/Button.d.ts +15 -0
  31. package/dist/data/components/Button.d.ts.map +1 -0
  32. package/dist/data/components/Button.js +87 -0
  33. package/dist/data/components/Button.js.map +1 -0
  34. package/dist/data/components/Card.d.ts +15 -0
  35. package/dist/data/components/Card.d.ts.map +1 -0
  36. package/dist/data/components/Card.js +67 -0
  37. package/dist/data/components/Card.js.map +1 -0
  38. package/dist/data/components/Checkbox.d.ts +15 -0
  39. package/dist/data/components/Checkbox.d.ts.map +1 -0
  40. package/dist/data/components/Checkbox.js +118 -0
  41. package/dist/data/components/Checkbox.js.map +1 -0
  42. package/dist/data/components/Chip.d.ts +15 -0
  43. package/dist/data/components/Chip.d.ts.map +1 -0
  44. package/dist/data/components/Chip.js +76 -0
  45. package/dist/data/components/Chip.js.map +1 -0
  46. package/dist/data/components/Dialog.d.ts +15 -0
  47. package/dist/data/components/Dialog.d.ts.map +1 -0
  48. package/dist/data/components/Dialog.js +137 -0
  49. package/dist/data/components/Dialog.js.map +1 -0
  50. package/dist/data/components/Divider.d.ts +15 -0
  51. package/dist/data/components/Divider.d.ts.map +1 -0
  52. package/dist/data/components/Divider.js +71 -0
  53. package/dist/data/components/Divider.js.map +1 -0
  54. package/dist/data/components/Icon.d.ts +15 -0
  55. package/dist/data/components/Icon.d.ts.map +1 -0
  56. package/dist/data/components/Icon.js +70 -0
  57. package/dist/data/components/Icon.js.map +1 -0
  58. package/dist/data/components/Image.d.ts +15 -0
  59. package/dist/data/components/Image.d.ts.map +1 -0
  60. package/dist/data/components/Image.js +122 -0
  61. package/dist/data/components/Image.js.map +1 -0
  62. package/dist/data/components/Input.d.ts +15 -0
  63. package/dist/data/components/Input.d.ts.map +1 -0
  64. package/dist/data/components/Input.js +109 -0
  65. package/dist/data/components/Input.js.map +1 -0
  66. package/dist/data/components/List.d.ts +15 -0
  67. package/dist/data/components/List.d.ts.map +1 -0
  68. package/dist/data/components/List.js +113 -0
  69. package/dist/data/components/List.js.map +1 -0
  70. package/dist/data/components/Menu.d.ts +15 -0
  71. package/dist/data/components/Menu.d.ts.map +1 -0
  72. package/dist/data/components/Menu.js +132 -0
  73. package/dist/data/components/Menu.js.map +1 -0
  74. package/dist/data/components/Popover.d.ts +15 -0
  75. package/dist/data/components/Popover.d.ts.map +1 -0
  76. package/dist/data/components/Popover.js +159 -0
  77. package/dist/data/components/Popover.js.map +1 -0
  78. package/dist/data/components/Pressable.d.ts +15 -0
  79. package/dist/data/components/Pressable.d.ts.map +1 -0
  80. package/dist/data/components/Pressable.js +125 -0
  81. package/dist/data/components/Pressable.js.map +1 -0
  82. package/dist/data/components/Progress.d.ts +15 -0
  83. package/dist/data/components/Progress.d.ts.map +1 -0
  84. package/dist/data/components/Progress.js +95 -0
  85. package/dist/data/components/Progress.js.map +1 -0
  86. package/dist/data/components/RadioButton.d.ts +15 -0
  87. package/dist/data/components/RadioButton.d.ts.map +1 -0
  88. package/dist/data/components/RadioButton.js +140 -0
  89. package/dist/data/components/RadioButton.js.map +1 -0
  90. package/dist/data/components/SVGImage.d.ts +15 -0
  91. package/dist/data/components/SVGImage.d.ts.map +1 -0
  92. package/dist/data/components/SVGImage.js +112 -0
  93. package/dist/data/components/SVGImage.js.map +1 -0
  94. package/dist/data/components/Screen.d.ts +15 -0
  95. package/dist/data/components/Screen.d.ts.map +1 -0
  96. package/dist/data/components/Screen.js +99 -0
  97. package/dist/data/components/Screen.js.map +1 -0
  98. package/dist/data/components/Select.d.ts +15 -0
  99. package/dist/data/components/Select.d.ts.map +1 -0
  100. package/dist/data/components/Select.js +146 -0
  101. package/dist/data/components/Select.js.map +1 -0
  102. package/dist/data/components/Skeleton.d.ts +15 -0
  103. package/dist/data/components/Skeleton.d.ts.map +1 -0
  104. package/dist/data/components/Skeleton.js +110 -0
  105. package/dist/data/components/Skeleton.js.map +1 -0
  106. package/dist/data/components/Slider.d.ts +15 -0
  107. package/dist/data/components/Slider.d.ts.map +1 -0
  108. package/dist/data/components/Slider.js +129 -0
  109. package/dist/data/components/Slider.js.map +1 -0
  110. package/dist/data/components/Switch.d.ts +15 -0
  111. package/dist/data/components/Switch.d.ts.map +1 -0
  112. package/dist/data/components/Switch.js +127 -0
  113. package/dist/data/components/Switch.js.map +1 -0
  114. package/dist/data/components/TabBar.d.ts +15 -0
  115. package/dist/data/components/TabBar.d.ts.map +1 -0
  116. package/dist/data/components/TabBar.js +145 -0
  117. package/dist/data/components/TabBar.js.map +1 -0
  118. package/dist/data/components/Table.d.ts +15 -0
  119. package/dist/data/components/Table.d.ts.map +1 -0
  120. package/dist/data/components/Table.js +151 -0
  121. package/dist/data/components/Table.js.map +1 -0
  122. package/dist/data/components/Tabs.d.ts +15 -0
  123. package/dist/data/components/Tabs.d.ts.map +1 -0
  124. package/dist/data/components/Tabs.js +150 -0
  125. package/dist/data/components/Tabs.js.map +1 -0
  126. package/dist/data/components/Text.d.ts +15 -0
  127. package/dist/data/components/Text.d.ts.map +1 -0
  128. package/dist/data/components/Text.js +85 -0
  129. package/dist/data/components/Text.js.map +1 -0
  130. package/dist/data/components/TextArea.d.ts +15 -0
  131. package/dist/data/components/TextArea.d.ts.map +1 -0
  132. package/dist/data/components/TextArea.js +155 -0
  133. package/dist/data/components/TextArea.js.map +1 -0
  134. package/dist/data/components/Tooltip.d.ts +15 -0
  135. package/dist/data/components/Tooltip.d.ts.map +1 -0
  136. package/dist/data/components/Tooltip.js +105 -0
  137. package/dist/data/components/Tooltip.js.map +1 -0
  138. package/dist/data/components/Video.d.ts +15 -0
  139. package/dist/data/components/Video.d.ts.map +1 -0
  140. package/dist/data/components/Video.js +168 -0
  141. package/dist/data/components/Video.js.map +1 -0
  142. package/dist/data/components/View.d.ts +15 -0
  143. package/dist/data/components/View.d.ts.map +1 -0
  144. package/dist/data/components/View.js +126 -0
  145. package/dist/data/components/View.js.map +1 -0
  146. package/dist/data/components/index.d.ts +37 -0
  147. package/dist/data/components/index.d.ts.map +1 -0
  148. package/dist/data/components/index.js +110 -0
  149. package/dist/data/components/index.js.map +1 -0
  150. package/dist/data/framework-guides.d.ts +2 -0
  151. package/dist/data/framework-guides.d.ts.map +1 -0
  152. package/dist/data/framework-guides.js +589 -0
  153. package/dist/data/framework-guides.js.map +1 -0
  154. package/dist/data/icon-guide.d.ts +2 -0
  155. package/dist/data/icon-guide.d.ts.map +1 -0
  156. package/dist/data/icon-guide.js +285 -0
  157. package/dist/data/icon-guide.js.map +1 -0
  158. package/dist/data/icons.json +7452 -0
  159. package/dist/data/navigation-guides.d.ts +2 -0
  160. package/dist/data/navigation-guides.d.ts.map +1 -0
  161. package/dist/data/navigation-guides.js +1196 -0
  162. package/dist/data/navigation-guides.js.map +1 -0
  163. package/dist/index.d.ts +3 -0
  164. package/dist/index.d.ts.map +1 -0
  165. package/dist/index.js +422 -0
  166. package/dist/index.js.map +1 -0
  167. package/package.json +34 -0
  168. package/src/data/cli-commands.ts +103 -0
  169. package/src/data/components/Accordion.ts +106 -0
  170. package/src/data/components/ActivityIndicator.ts +82 -0
  171. package/src/data/components/Alert.ts +132 -0
  172. package/src/data/components/Avatar.ts +93 -0
  173. package/src/data/components/Badge.ts +63 -0
  174. package/src/data/components/Breadcrumb.ts +94 -0
  175. package/src/data/components/Button.ts +86 -0
  176. package/src/data/components/Card.ts +67 -0
  177. package/src/data/components/Checkbox.ts +117 -0
  178. package/src/data/components/Chip.ts +93 -0
  179. package/src/data/components/Dialog.ts +136 -0
  180. package/src/data/components/Divider.ts +70 -0
  181. package/src/data/components/Icon.ts +70 -0
  182. package/src/data/components/Image.ts +121 -0
  183. package/src/data/components/Input.ts +150 -0
  184. package/src/data/components/List.ts +103 -0
  185. package/src/data/components/Menu.ts +125 -0
  186. package/src/data/components/Popover.ts +159 -0
  187. package/src/data/components/Pressable.ts +123 -0
  188. package/src/data/components/Progress.ts +95 -0
  189. package/src/data/components/RadioButton.ts +130 -0
  190. package/src/data/components/SVGImage.ts +114 -0
  191. package/src/data/components/Screen.ts +103 -0
  192. package/src/data/components/Select.ts +140 -0
  193. package/src/data/components/Skeleton.ts +102 -0
  194. package/src/data/components/Slider.ts +150 -0
  195. package/src/data/components/Switch.ts +127 -0
  196. package/src/data/components/TabBar.ts +142 -0
  197. package/src/data/components/Table.ts +153 -0
  198. package/src/data/components/Tabs.ts +152 -0
  199. package/src/data/components/Text.ts +85 -0
  200. package/src/data/components/TextArea.ts +155 -0
  201. package/src/data/components/Tooltip.ts +105 -0
  202. package/src/data/components/Video.ts +168 -0
  203. package/src/data/components/View.ts +126 -0
  204. package/src/data/components/index.ts +109 -0
  205. package/src/data/framework-guides.ts +593 -0
  206. package/src/data/icon-guide.ts +284 -0
  207. package/src/data/icons.json +7452 -0
  208. package/src/data/navigation-guides.ts +1199 -0
  209. package/src/index.ts +473 -0
  210. package/test-client.js +86 -0
  211. package/tsconfig.json +20 -0
@@ -0,0 +1,15 @@
1
+ export declare const Checkbox: {
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=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/data/components/Checkbox.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;CAuHpB,CAAC"}
@@ -0,0 +1,118 @@
1
+ export const Checkbox = {
2
+ category: "form",
3
+ description: "Form checkbox for boolean selection with label and validation support",
4
+ props: `
5
+ - \`checked\`: boolean - Whether the checkbox is checked
6
+ - \`indeterminate\`: boolean - Whether the checkbox is in an indeterminate state
7
+ - \`disabled\`: boolean - Whether the checkbox is disabled
8
+ - \`onCheckedChange\`: (checked: boolean) => void - Called when checkbox state changes
9
+ - \`size\`: 'small' | 'medium' | 'large' - Checkbox size
10
+ - \`intent\`: IntentVariant - Color scheme
11
+ - \`variant\`: 'default' | 'outlined' - Visual style
12
+ - \`label\`: string - Label text to display next to checkbox
13
+ - \`children\`: ReactNode - Custom label content
14
+ - \`style\`: any - Additional custom styles
15
+ - \`testID\`: string - Test identifier
16
+ - \`accessibilityLabel\`: string - Accessibility label
17
+ - \`required\`: boolean - Whether the checkbox is required
18
+ - \`error\`: string - Error message to display
19
+ - \`helperText\`: string - Helper text to display
20
+ `,
21
+ features: [
22
+ "Checked, unchecked, and indeterminate states",
23
+ "Label support (string or custom ReactNode)",
24
+ "Three sizes",
25
+ "Intent-based colors",
26
+ "Error and helper text",
27
+ "Required field support",
28
+ "Accessible with proper ARIA attributes",
29
+ ],
30
+ bestPractices: [
31
+ "Always provide a label for accessibility",
32
+ "Use indeterminate state for parent checkboxes with partial children selection",
33
+ "Show error messages inline",
34
+ "Use helperText to clarify checkbox meaning",
35
+ "Group related checkboxes visually",
36
+ ],
37
+ usage: `
38
+ import { Checkbox } from '@idealyst/components';
39
+ import { useState } from 'react';
40
+
41
+ function Example() {
42
+ const [checked, setChecked] = useState(false);
43
+
44
+ return (
45
+ <Checkbox
46
+ checked={checked}
47
+ onCheckedChange={setChecked}
48
+ label="Accept terms and conditions"
49
+ required
50
+ />
51
+ );
52
+ }
53
+ `,
54
+ examples: {
55
+ basic: `import { Checkbox } from '@idealyst/components';
56
+
57
+ <Checkbox label="Subscribe to newsletter" />`,
58
+ variants: `import { Checkbox, View } from '@idealyst/components';
59
+
60
+ <View spacing="sm">
61
+ <Checkbox label="Small" size="small" />
62
+ <Checkbox label="Medium" size="medium" />
63
+ <Checkbox label="Large" size="large" />
64
+ </View>`,
65
+ "with-icons": `import { Checkbox, View } from '@idealyst/components';
66
+
67
+ <View spacing="sm">
68
+ <Checkbox
69
+ label="Enable notifications"
70
+ intent="primary"
71
+ checked
72
+ />
73
+ <Checkbox
74
+ label="Dark mode"
75
+ intent="success"
76
+ checked
77
+ />
78
+ </View>`,
79
+ interactive: `import { Checkbox, View, Text } from '@idealyst/components';
80
+ import { useState } from 'react';
81
+
82
+ function Example() {
83
+ const [options, setOptions] = useState({
84
+ email: false,
85
+ sms: false,
86
+ push: false,
87
+ });
88
+
89
+ return (
90
+ <View spacing="md">
91
+ <Text weight="bold">Notification Preferences</Text>
92
+ <Checkbox
93
+ label="Email notifications"
94
+ checked={options.email}
95
+ onCheckedChange={(checked) =>
96
+ setOptions({ ...options, email: checked })
97
+ }
98
+ />
99
+ <Checkbox
100
+ label="SMS notifications"
101
+ checked={options.sms}
102
+ onCheckedChange={(checked) =>
103
+ setOptions({ ...options, sms: checked })
104
+ }
105
+ />
106
+ <Checkbox
107
+ label="Push notifications"
108
+ checked={options.push}
109
+ onCheckedChange={(checked) =>
110
+ setOptions({ ...options, push: checked })
111
+ }
112
+ />
113
+ </View>
114
+ );
115
+ }`,
116
+ },
117
+ };
118
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/data/components/Checkbox.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,uEAAuE;IACpF,KAAK,EAAE;;;;;;;;;;;;;;;;CAgBR;IACC,QAAQ,EAAE;QACR,8CAA8C;QAC9C,4CAA4C;QAC5C,aAAa;QACb,qBAAqB;QACrB,uBAAuB;QACvB,wBAAwB;QACxB,wCAAwC;KACzC;IACD,aAAa,EAAE;QACb,0CAA0C;QAC1C,+EAA+E;QAC/E,4BAA4B;QAC5B,4CAA4C;QAC5C,mCAAmC;KACpC;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;CAgBR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;6CAEkC;QAEzC,QAAQ,EAAE;;;;;;QAMN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;QAaV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Chip: {
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=Chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/data/components/Chip.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CA0EhB,CAAC"}
@@ -0,0 +1,76 @@
1
+ export const Chip = {
2
+ category: "display",
3
+ description: "Compact element for tags, filters, and selections with optional delete action",
4
+ props: `
5
+ - \`label\`: string - Chip text
6
+ - \`variant\`: 'filled' | 'outlined' | 'soft' - Visual style
7
+ - \`intent\`: 'primary' | 'neutral' | 'success' | 'error' | 'warning' - Color scheme
8
+ - \`size\`: 'small' | 'medium' | 'large' - Chip size
9
+ - \`icon\`: string | ReactNode - Leading icon
10
+ - \`deletable\`: boolean - Show delete button
11
+ - \`onDelete\`: () => void - Delete handler
12
+ - \`selectable\`: boolean - Enable selection
13
+ - \`selected\`: boolean - Selected state
14
+ - \`onPress\`: () => void - Press handler
15
+ - \`disabled\`: boolean - Disabled state
16
+ `,
17
+ features: [
18
+ "Three variants: filled, outlined, soft",
19
+ "Five intent colors",
20
+ "Icon support",
21
+ "Deletable with onDelete handler",
22
+ "Selectable with selected state",
23
+ "Three sizes",
24
+ "Disabled state",
25
+ ],
26
+ bestPractices: [
27
+ "Use for tags, filters, and multi-select options",
28
+ "Use deletable chips for removable tags",
29
+ "Use selectable chips for filter options",
30
+ "Keep chip labels concise",
31
+ ],
32
+ usage: `
33
+ import { Chip } from '@idealyst/components';
34
+
35
+ <Chip
36
+ label="React"
37
+ icon="check"
38
+ deletable
39
+ onDelete={() => removeTag('React')}
40
+ />
41
+ `,
42
+ examples: {
43
+ basic: `import { Chip } from '@idealyst/components';
44
+
45
+ <Chip label="Tag" />`,
46
+ variants: `import { Chip } from '@idealyst/components';
47
+
48
+ <Chip label="Filled" variant="filled" intent="primary" />
49
+ <Chip label="Outlined" variant="outlined" intent="success" />
50
+ <Chip label="Soft" variant="soft" intent="warning" />`,
51
+ "with-icons": `import { Chip } from '@idealyst/components';
52
+
53
+ <Chip label="Star" icon="star" />
54
+ <Chip label="Heart" icon="heart" intent="error" />`,
55
+ interactive: `import { Chip, View } from '@idealyst/components';
56
+ import { useState } from 'react';
57
+
58
+ function Example() {
59
+ const [tags, setTags] = useState(['React', 'TypeScript', 'Node.js']);
60
+
61
+ return (
62
+ <View spacing="sm">
63
+ {tags.map(tag => (
64
+ <Chip
65
+ key={tag}
66
+ label={tag}
67
+ deletable
68
+ onDelete={() => setTags(tags.filter(t => t !== tag))}
69
+ />
70
+ ))}
71
+ </View>
72
+ );
73
+ }`,
74
+ }
75
+ };
76
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../src/data/components/Chip.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IACpB,QAAQ,EAAE,SAAS;IACf,WAAW,EAAE,+EAA+E;IAC5F,KAAK,EAAE;;;;;;;;;;;;CAYV;IACG,QAAQ,EAAE;QACR,wCAAwC;QACxC,oBAAoB;QACpB,cAAc;QACd,iCAAiC;QACjC,gCAAgC;QAChC,aAAa;QACb,gBAAgB;KACjB;IACD,aAAa,EAAE;QACb,iDAAiD;QACjD,wCAAwC;QACxC,yCAAyC;QACzC,0BAA0B;KAC3B;IACD,KAAK,EAAE;;;;;;;;;CASV;IACG,QAAQ,EAAE;QACR,KAAK,EAAE;;qBAEQ;QACf,QAAQ,EAAE;;;;sDAIsC;QAChD,YAAY,EAAE;;;mDAG+B;QAC7C,WAAW,EAAE;;;;;;;;;;;;;;;;;;EAkBjB;KACG;CACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Dialog: {
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=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/data/components/Dialog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAuIlB,CAAC"}
@@ -0,0 +1,137 @@
1
+ export const Dialog = {
2
+ category: "overlay",
3
+ description: "Modal overlay for focused user interactions and important information",
4
+ props: `
5
+ - \`open\`: boolean - Control dialog visibility
6
+ - \`onOpenChange\`: (open: boolean) => void - Open state change handler
7
+ - \`title\`: string - Dialog title
8
+ - \`size\`: 'small' | 'medium' | 'large' | 'fullscreen' - Dialog size
9
+ - \`variant\`: 'default' | 'alert' - Visual style
10
+ - \`showCloseButton\`: boolean - Show close button
11
+ - \`closeOnBackdropClick\`: boolean - Close when clicking backdrop
12
+ - \`closeOnEscapeKey\`: boolean - Close on Escape key
13
+ - \`children\`: ReactNode - Dialog content
14
+ `,
15
+ features: [
16
+ "Controlled open state",
17
+ "Multiple sizes including fullscreen",
18
+ "Alert variant for important messages",
19
+ "Optional close button",
20
+ "Backdrop click and Escape key handling",
21
+ "Focus trap and accessibility support",
22
+ ],
23
+ bestPractices: [
24
+ "Use for actions requiring user attention",
25
+ "Keep dialog content focused and concise",
26
+ "Provide clear action buttons",
27
+ "Use alert variant for critical confirmations",
28
+ "Always provide a way to close the dialog",
29
+ ],
30
+ usage: `
31
+ import { Dialog, Button, View, Text } from '@idealyst/components';
32
+ import { useState } from 'react';
33
+
34
+ function Example() {
35
+ const [open, setOpen] = useState(false);
36
+
37
+ return (
38
+ <>
39
+ <Button onPress={() => setOpen(true)}>
40
+ Open Dialog
41
+ </Button>
42
+
43
+ <Dialog
44
+ open={open}
45
+ onOpenChange={setOpen}
46
+ title="Confirm Action"
47
+ size="medium"
48
+ >
49
+ <View spacing="md">
50
+ <Text>Are you sure you want to proceed?</Text>
51
+ <View style={{ flexDirection: 'row', gap: 8 }}>
52
+ <Button variant="outlined" onPress={() => setOpen(false)}>
53
+ Cancel
54
+ </Button>
55
+ <Button onPress={() => { handleConfirm(); setOpen(false); }}>
56
+ Confirm
57
+ </Button>
58
+ </View>
59
+ </View>
60
+ </Dialog>
61
+ </>
62
+ );
63
+ }
64
+ `,
65
+ examples: {
66
+ basic: `import { Dialog, Button, Text } from '@idealyst/components';
67
+
68
+ <Dialog open={true} onOpenChange={setOpen} title="Simple Dialog">
69
+ <Text>Dialog content here</Text>
70
+ </Dialog>`,
71
+ variants: `import { Dialog, Text } from '@idealyst/components';
72
+
73
+ // Default dialog
74
+ <Dialog open={open} onOpenChange={setOpen} title="Information">
75
+ <Text>Information content</Text>
76
+ </Dialog>
77
+
78
+ // Alert dialog
79
+ <Dialog open={open} onOpenChange={setOpen} title="Warning" variant="alert">
80
+ <Text>This action cannot be undone</Text>
81
+ </Dialog>`,
82
+ "with-icons": `import { Dialog, View, Icon, Text, Button } from '@idealyst/components';
83
+
84
+ <Dialog open={open} onOpenChange={setOpen} title="Delete Item">
85
+ <View spacing="md">
86
+ <View style={{ alignItems: 'center' }}>
87
+ <Icon name="delete" size="xlarge" color="error" />
88
+ </View>
89
+ <Text>This action cannot be undone. Continue?</Text>
90
+ <Button intent="error" onPress={handleDelete}>Delete</Button>
91
+ </View>
92
+ </Dialog>`,
93
+ interactive: `import { Dialog, Button, View, Text } from '@idealyst/components';
94
+ import { useState } from 'react';
95
+
96
+ function Example() {
97
+ const [open, setOpen] = useState(false);
98
+ const [confirmed, setConfirmed] = useState(false);
99
+
100
+ const handleConfirm = () => {
101
+ setConfirmed(true);
102
+ setOpen(false);
103
+ };
104
+
105
+ return (
106
+ <View spacing="md">
107
+ <Button onPress={() => setOpen(true)}>
108
+ Open Dialog
109
+ </Button>
110
+
111
+ {confirmed && <Text>Action confirmed!</Text>}
112
+
113
+ <Dialog
114
+ open={open}
115
+ onOpenChange={setOpen}
116
+ title="Confirm Action"
117
+ closeOnBackdropClick
118
+ closeOnEscapeKey
119
+ >
120
+ <View spacing="md">
121
+ <Text>Proceed with this action?</Text>
122
+ <View style={{ flexDirection: 'row', gap: 8 }}>
123
+ <Button variant="outlined" onPress={() => setOpen(false)}>
124
+ Cancel
125
+ </Button>
126
+ <Button intent="primary" onPress={handleConfirm}>
127
+ Confirm
128
+ </Button>
129
+ </View>
130
+ </View>
131
+ </Dialog>
132
+ </View>
133
+ );
134
+ }`,
135
+ }
136
+ };
137
+ //# sourceMappingURL=Dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/data/components/Dialog.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACtB,QAAQ,EAAE,SAAS;IACf,WAAW,EAAE,uEAAuE;IACpF,KAAK,EAAE;;;;;;;;;;CAUV;IACG,QAAQ,EAAE;QACR,uBAAuB;QACvB,qCAAqC;QACrC,sCAAsC;QACtC,uBAAuB;QACvB,wCAAwC;QACxC,sCAAsC;KACvC;IACD,aAAa,EAAE;QACb,0CAA0C;QAC1C,yCAAyC;QACzC,8BAA8B;QAC9B,8CAA8C;QAC9C,0CAA0C;KAC3C;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCV;IACG,QAAQ,EAAE;QACR,KAAK,EAAE;;;;UAIH;QACJ,QAAQ,EAAE;;;;;;;;;;UAUN;QACJ,YAAY,EAAE;;;;;;;;;;UAUV;QACJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCjB;KACG;CACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Divider: {
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=Divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/data/components/Divider.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAwEnB,CAAC"}
@@ -0,0 +1,71 @@
1
+ export const Divider = {
2
+ category: "layout",
3
+ description: "Visual separator for content sections with horizontal or vertical orientation",
4
+ props: `
5
+ - \`orientation\`: 'horizontal' | 'vertical' - The orientation of the divider
6
+ - \`variant\`: 'solid' | 'dashed' | 'dotted' - The visual style
7
+ - \`thickness\`: 'thin' | 'medium' | 'thick' - The thickness of the divider
8
+ - \`intent\`: IntentVariant - The color intent
9
+ - \`length\`: 'full' | 'auto' | number - The length (percentage or fixed)
10
+ - \`spacing\`: 'none' | 'small' | 'medium' | 'large' - Spacing around divider
11
+ - \`children\`: ReactNode - Content in center (horizontal dividers)
12
+ - \`style\`: any - Additional custom styles
13
+ - \`testID\`: string - Test identifier
14
+ - \`accessibilityLabel\`: string - Accessibility label
15
+ `,
16
+ features: [
17
+ "Horizontal and vertical orientations",
18
+ "Three line styles (solid, dashed, dotted)",
19
+ "Three thickness options",
20
+ "Configurable spacing",
21
+ "Text content in center (horizontal)",
22
+ "Intent-based colors",
23
+ ],
24
+ bestPractices: [
25
+ "Use horizontal dividers to separate vertical content",
26
+ "Use vertical dividers in horizontal layouts (toolbars, menus)",
27
+ "Keep divider thickness subtle unless emphasizing separation",
28
+ "Use 'medium' spacing for standard content separation",
29
+ "Add text content sparingly for important section breaks",
30
+ ],
31
+ usage: `
32
+ import { Divider, View, Text } from '@idealyst/components';
33
+
34
+ <View spacing="md">
35
+ <Text>Content above</Text>
36
+ <Divider spacing="medium" />
37
+ <Text>Content below</Text>
38
+ </View>
39
+ `,
40
+ examples: {
41
+ basic: `import { Divider } from '@idealyst/components';
42
+
43
+ <Divider />`,
44
+ variants: `import { Divider, View } from '@idealyst/components';
45
+
46
+ <View spacing="md">
47
+ <Divider variant="solid" />
48
+ <Divider variant="dashed" />
49
+ <Divider variant="dotted" />
50
+ </View>`,
51
+ "with-icons": `import { Divider, View, Text } from '@idealyst/components';
52
+
53
+ <View spacing="lg">
54
+ <Text>Section 1</Text>
55
+ <Divider spacing="medium">
56
+ <Text size="small" color="secondary">OR</Text>
57
+ </Divider>
58
+ <Text>Section 2</Text>
59
+ </View>`,
60
+ interactive: `import { Divider, View, Text } from '@idealyst/components';
61
+
62
+ <View style={{ flexDirection: 'row', alignItems: 'center', gap: 16 }}>
63
+ <Text>Left</Text>
64
+ <Divider orientation="vertical" thickness="medium" style={{ height: 40 }} />
65
+ <Text>Center</Text>
66
+ <Divider orientation="vertical" thickness="medium" style={{ height: 40 }} />
67
+ <Text>Right</Text>
68
+ </View>`,
69
+ },
70
+ };
71
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../../src/data/components/Divider.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,+EAA+E;IAC5F,KAAK,EAAE;;;;;;;;;;;CAWR;IACC,QAAQ,EAAE;QACR,sCAAsC;QACtC,2CAA2C;QAC3C,yBAAyB;QACzB,sBAAsB;QACtB,qCAAqC;QACrC,qBAAqB;KACtB;IACD,aAAa,EAAE;QACb,sDAAsD;QACtD,+DAA+D;QAC/D,6DAA6D;QAC7D,sDAAsD;QACtD,yDAAyD;KAC1D;IACD,KAAK,EAAE;;;;;;;;CAQR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;YAEC;QAER,QAAQ,EAAE;;;;;;QAMN;QAEJ,YAAY,EAAE;;;;;;;;QAQV;QAEJ,WAAW,EAAE;;;;;;;;QAQT;KACL;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Icon: {
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=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/data/components/Icon.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAuEhB,CAAC"}
@@ -0,0 +1,70 @@
1
+ export const Icon = {
2
+ category: "display",
3
+ description: "Material Design icon display component with size and color variants",
4
+ props: `
5
+ - \`name\`: IconName - The name of the Material Design icon
6
+ - \`size\`: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number - Icon size variant or custom number
7
+ - \`color\`: DisplayColorVariant - Predefined theme color variant
8
+ - \`style\`: any - Additional custom styles
9
+ - \`testID\`: string - Test identifier
10
+ - \`accessibilityLabel\`: string - Accessibility label for screen readers
11
+ `,
12
+ features: [
13
+ "Material Design Icons library",
14
+ "Five predefined sizes plus custom numeric size",
15
+ "Theme color variants",
16
+ "Custom color support",
17
+ "Accessible with labels",
18
+ "Cross-platform support",
19
+ ],
20
+ bestPractices: [
21
+ "Use semantic icon names that clearly convey meaning",
22
+ "Provide accessibilityLabel for screen readers",
23
+ "Use theme color variants for consistency",
24
+ "Match icon size to surrounding text size",
25
+ "Don't rely solely on icons - provide text labels when possible",
26
+ ],
27
+ usage: `
28
+ import { Icon } from '@idealyst/components';
29
+
30
+ <Icon name="home" size="md" color="primary" />
31
+ `,
32
+ examples: {
33
+ basic: `import { Icon } from '@idealyst/components';
34
+
35
+ <Icon name="star" size="md" />`,
36
+ variants: `import { Icon, View } from '@idealyst/components';
37
+
38
+ <View style={{ flexDirection: 'row', gap: 8, alignItems: 'center' }}>
39
+ <Icon name="check" size="xs" />
40
+ <Icon name="check" size="sm" />
41
+ <Icon name="check" size="md" />
42
+ <Icon name="check" size="lg" />
43
+ <Icon name="check" size="xl" />
44
+ </View>`,
45
+ "with-icons": `import { Icon, View, Text } from '@idealyst/components';
46
+
47
+ <View spacing="sm" style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
48
+ <Icon name="information" size="md" color="primary" />
49
+ <Text>Informational message with icon</Text>
50
+ </View>`,
51
+ interactive: `import { Icon, Button, View } from '@idealyst/components';
52
+ import { useState } from 'react';
53
+
54
+ function Example() {
55
+ const [favorited, setFavorited] = useState(false);
56
+
57
+ return (
58
+ <Button
59
+ icon={favorited ? 'heart' : 'heart-outline'}
60
+ intent={favorited ? 'error' : 'neutral'}
61
+ variant="text"
62
+ onPress={() => setFavorited(!favorited)}
63
+ >
64
+ {favorited ? 'Favorited' : 'Favorite'}
65
+ </Button>
66
+ );
67
+ }`,
68
+ },
69
+ };
70
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/data/components/Icon.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,qEAAqE;IAClF,KAAK,EAAE;;;;;;;CAOR;IACC,QAAQ,EAAE;QACR,+BAA+B;QAC/B,gDAAgD;QAChD,sBAAsB;QACtB,sBAAsB;QACtB,wBAAwB;QACxB,wBAAwB;KACzB;IACD,aAAa,EAAE;QACb,qDAAqD;QACrD,+CAA+C;QAC/C,0CAA0C;QAC1C,0CAA0C;QAC1C,gEAAgE;KACjE;IACD,KAAK,EAAE;;;;CAIR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;+BAEoB;QAE3B,QAAQ,EAAE;;;;;;;;QAQN;QAEJ,YAAY,EAAE;;;;;QAKV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;EAgBf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Image: {
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=Image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/data/components/Image.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CA2HjB,CAAC"}