@idealyst/mcp-server 1.0.93 → 1.0.95

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 (187) hide show
  1. package/dist/data/cli-commands.d.ts +2 -0
  2. package/dist/data/cli-commands.d.ts.map +1 -0
  3. package/dist/data/cli-commands.js +100 -0
  4. package/dist/data/cli-commands.js.map +1 -0
  5. package/dist/data/components/Accordion.d.ts +15 -0
  6. package/dist/data/components/Accordion.d.ts.map +1 -0
  7. package/{src/data/components/Accordion.ts → dist/data/components/Accordion.js} +26 -28
  8. package/dist/data/components/Accordion.js.map +1 -0
  9. package/dist/data/components/ActivityIndicator.d.ts +15 -0
  10. package/dist/data/components/ActivityIndicator.d.ts.map +1 -0
  11. package/{src/data/components/ActivityIndicator.ts → dist/data/components/ActivityIndicator.js} +26 -28
  12. package/dist/data/components/ActivityIndicator.js.map +1 -0
  13. package/dist/data/components/Alert.d.ts +15 -0
  14. package/dist/data/components/Alert.d.ts.map +1 -0
  15. package/{src/data/components/Alert.ts → dist/data/components/Alert.js} +28 -30
  16. package/dist/data/components/Alert.js.map +1 -0
  17. package/dist/data/components/Avatar.d.ts +15 -0
  18. package/dist/data/components/Avatar.d.ts.map +1 -0
  19. package/{src/data/components/Avatar.ts → dist/data/components/Avatar.js} +26 -28
  20. package/dist/data/components/Avatar.js.map +1 -0
  21. package/dist/data/components/Badge.d.ts +15 -0
  22. package/dist/data/components/Badge.d.ts.map +1 -0
  23. package/{src/data/components/Badge.ts → dist/data/components/Badge.js} +16 -15
  24. package/dist/data/components/Badge.js.map +1 -0
  25. package/dist/data/components/Breadcrumb.d.ts +15 -0
  26. package/dist/data/components/Breadcrumb.d.ts.map +1 -0
  27. package/{src/data/components/Breadcrumb.ts → dist/data/components/Breadcrumb.js} +27 -29
  28. package/dist/data/components/Breadcrumb.js.map +1 -0
  29. package/dist/data/components/Button.d.ts +15 -0
  30. package/dist/data/components/Button.d.ts.map +1 -0
  31. package/{src/data/components/Button.ts → dist/data/components/Button.js} +18 -17
  32. package/dist/data/components/Button.js.map +1 -0
  33. package/dist/data/components/Card.d.ts +15 -0
  34. package/dist/data/components/Card.d.ts.map +1 -0
  35. package/{src/data/components/Card.ts → dist/data/components/Card.js} +16 -15
  36. package/dist/data/components/Card.js.map +1 -0
  37. package/dist/data/components/Checkbox.d.ts +15 -0
  38. package/dist/data/components/Checkbox.d.ts.map +1 -0
  39. package/{src/data/components/Checkbox.ts → dist/data/components/Checkbox.js} +27 -29
  40. package/dist/data/components/Checkbox.js.map +1 -0
  41. package/dist/data/components/Chip.d.ts +15 -0
  42. package/dist/data/components/Chip.d.ts.map +1 -0
  43. package/{src/data/components/Chip.ts → dist/data/components/Chip.js} +19 -18
  44. package/dist/data/components/Chip.js.map +1 -0
  45. package/dist/data/components/Dialog.d.ts +15 -0
  46. package/dist/data/components/Dialog.d.ts.map +1 -0
  47. package/{src/data/components/Dialog.ts → dist/data/components/Dialog.js} +18 -17
  48. package/dist/data/components/Dialog.js.map +1 -0
  49. package/dist/data/components/Divider.d.ts +15 -0
  50. package/dist/data/components/Divider.d.ts.map +1 -0
  51. package/{src/data/components/Divider.ts → dist/data/components/Divider.js} +26 -28
  52. package/dist/data/components/Divider.js.map +1 -0
  53. package/dist/data/components/Icon.d.ts +15 -0
  54. package/dist/data/components/Icon.d.ts.map +1 -0
  55. package/{src/data/components/Icon.ts → dist/data/components/Icon.js} +26 -28
  56. package/dist/data/components/Icon.js.map +1 -0
  57. package/dist/data/components/Image.d.ts +15 -0
  58. package/dist/data/components/Image.d.ts.map +1 -0
  59. package/{src/data/components/Image.ts → dist/data/components/Image.js} +29 -31
  60. package/dist/data/components/Image.js.map +1 -0
  61. package/dist/data/components/Input.d.ts +15 -0
  62. package/dist/data/components/Input.d.ts.map +1 -0
  63. package/{src/data/components/Input.ts → dist/data/components/Input.js} +20 -19
  64. package/dist/data/components/Input.js.map +1 -0
  65. package/dist/data/components/Link.d.ts +15 -0
  66. package/dist/data/components/Link.d.ts.map +1 -0
  67. package/dist/data/components/Link.js +142 -0
  68. package/dist/data/components/Link.js.map +1 -0
  69. package/dist/data/components/List.d.ts +15 -0
  70. package/dist/data/components/List.d.ts.map +1 -0
  71. package/{src/data/components/List.ts → dist/data/components/List.js} +18 -17
  72. package/dist/data/components/List.js.map +1 -0
  73. package/dist/data/components/Menu.d.ts +15 -0
  74. package/dist/data/components/Menu.d.ts.map +1 -0
  75. package/{src/data/components/Menu.ts → dist/data/components/Menu.js} +27 -29
  76. package/dist/data/components/Menu.js.map +1 -0
  77. package/dist/data/components/Popover.d.ts +15 -0
  78. package/dist/data/components/Popover.d.ts.map +1 -0
  79. package/{src/data/components/Popover.ts → dist/data/components/Popover.js} +28 -30
  80. package/dist/data/components/Popover.js.map +1 -0
  81. package/dist/data/components/Pressable.d.ts +15 -0
  82. package/dist/data/components/Pressable.d.ts.map +1 -0
  83. package/{src/data/components/Pressable.ts → dist/data/components/Pressable.js} +27 -29
  84. package/dist/data/components/Pressable.js.map +1 -0
  85. package/dist/data/components/Progress.d.ts +15 -0
  86. package/dist/data/components/Progress.d.ts.map +1 -0
  87. package/{src/data/components/Progress.ts → dist/data/components/Progress.js} +27 -29
  88. package/dist/data/components/Progress.js.map +1 -0
  89. package/dist/data/components/RadioButton.d.ts +15 -0
  90. package/dist/data/components/RadioButton.d.ts.map +1 -0
  91. package/{src/data/components/RadioButton.ts → dist/data/components/RadioButton.js} +28 -30
  92. package/dist/data/components/RadioButton.js.map +1 -0
  93. package/dist/data/components/SVGImage.d.ts +15 -0
  94. package/dist/data/components/SVGImage.d.ts.map +1 -0
  95. package/{src/data/components/SVGImage.ts → dist/data/components/SVGImage.js} +27 -29
  96. package/dist/data/components/SVGImage.js.map +1 -0
  97. package/dist/data/components/Screen.d.ts +15 -0
  98. package/dist/data/components/Screen.d.ts.map +1 -0
  99. package/{src/data/components/Screen.ts → dist/data/components/Screen.js} +27 -29
  100. package/dist/data/components/Screen.js.map +1 -0
  101. package/dist/data/components/Select.d.ts +15 -0
  102. package/dist/data/components/Select.d.ts.map +1 -0
  103. package/{src/data/components/Select.ts → dist/data/components/Select.js} +30 -32
  104. package/dist/data/components/Select.js.map +1 -0
  105. package/dist/data/components/Skeleton.d.ts +15 -0
  106. package/dist/data/components/Skeleton.d.ts.map +1 -0
  107. package/{src/data/components/Skeleton.ts → dist/data/components/Skeleton.js} +27 -29
  108. package/dist/data/components/Skeleton.js.map +1 -0
  109. package/dist/data/components/Slider.d.ts +15 -0
  110. package/dist/data/components/Slider.d.ts.map +1 -0
  111. package/{src/data/components/Slider.ts → dist/data/components/Slider.js} +31 -33
  112. package/dist/data/components/Slider.js.map +1 -0
  113. package/dist/data/components/Switch.d.ts +15 -0
  114. package/dist/data/components/Switch.d.ts.map +1 -0
  115. package/{src/data/components/Switch.ts → dist/data/components/Switch.js} +28 -30
  116. package/dist/data/components/Switch.js.map +1 -0
  117. package/dist/data/components/TabBar.d.ts +15 -0
  118. package/dist/data/components/TabBar.d.ts.map +1 -0
  119. package/{src/data/components/TabBar.ts → dist/data/components/TabBar.js} +27 -29
  120. package/dist/data/components/TabBar.js.map +1 -0
  121. package/dist/data/components/Table.d.ts +15 -0
  122. package/dist/data/components/Table.d.ts.map +1 -0
  123. package/{src/data/components/Table.ts → dist/data/components/Table.js} +29 -31
  124. package/dist/data/components/Table.js.map +1 -0
  125. package/dist/data/components/Tabs.d.ts +15 -0
  126. package/dist/data/components/Tabs.d.ts.map +1 -0
  127. package/{src/data/components/Tabs.ts → dist/data/components/Tabs.js} +28 -30
  128. package/dist/data/components/Tabs.js.map +1 -0
  129. package/dist/data/components/Text.d.ts +15 -0
  130. package/dist/data/components/Text.d.ts.map +1 -0
  131. package/{src/data/components/Text.ts → dist/data/components/Text.js} +27 -29
  132. package/dist/data/components/Text.js.map +1 -0
  133. package/dist/data/components/TextArea.d.ts +15 -0
  134. package/dist/data/components/TextArea.d.ts.map +1 -0
  135. package/{src/data/components/TextArea.ts → dist/data/components/TextArea.js} +31 -33
  136. package/dist/data/components/TextArea.js.map +1 -0
  137. package/dist/data/components/Tooltip.d.ts +15 -0
  138. package/dist/data/components/Tooltip.d.ts.map +1 -0
  139. package/{src/data/components/Tooltip.ts → dist/data/components/Tooltip.js} +28 -30
  140. package/dist/data/components/Tooltip.js.map +1 -0
  141. package/dist/data/components/Video.d.ts +15 -0
  142. package/dist/data/components/Video.d.ts.map +1 -0
  143. package/{src/data/components/Video.ts → dist/data/components/Video.js} +31 -33
  144. package/dist/data/components/Video.js.map +1 -0
  145. package/dist/data/components/View.d.ts +15 -0
  146. package/dist/data/components/View.d.ts.map +1 -0
  147. package/{src/data/components/View.ts → dist/data/components/View.js} +28 -30
  148. package/dist/data/components/View.js.map +1 -0
  149. package/dist/data/components/index.d.ts +38 -0
  150. package/dist/data/components/index.d.ts.map +1 -0
  151. package/{src/data/components/index.ts → dist/data/components/index.js} +40 -38
  152. package/dist/data/components/index.js.map +1 -0
  153. package/dist/data/framework-guides.d.ts +2 -0
  154. package/dist/data/framework-guides.d.ts.map +1 -0
  155. package/{src/data/framework-guides.ts → dist/data/framework-guides.js} +8 -12
  156. package/dist/data/framework-guides.js.map +1 -0
  157. package/dist/data/icon-guide.d.ts +2 -0
  158. package/dist/data/icon-guide.d.ts.map +1 -0
  159. package/{src/data/icon-guide.ts → dist/data/icon-guide.js} +1 -0
  160. package/dist/data/icon-guide.js.map +1 -0
  161. package/dist/data/icons.json +7452 -0
  162. package/dist/data/navigation-guides.d.ts +2 -0
  163. package/dist/data/navigation-guides.d.ts.map +1 -0
  164. package/{src/data/navigation-guides.ts → dist/data/navigation-guides.js} +7 -10
  165. package/dist/data/navigation-guides.js.map +1 -0
  166. package/dist/generated/types.json +2556 -0
  167. package/dist/index.d.ts +3 -0
  168. package/dist/index.d.ts.map +1 -0
  169. package/dist/index.js +1 -1
  170. package/dist/index.js.map +1 -0
  171. package/dist/tools/get-types.d.ts +26 -0
  172. package/dist/tools/get-types.d.ts.map +1 -0
  173. package/dist/tools/get-types.js +123 -0
  174. package/dist/tools/get-types.js.map +1 -0
  175. package/package.json +9 -4
  176. package/ARCHITECTURE.md +0 -313
  177. package/TYPE-SYSTEM.md +0 -397
  178. package/scripts/extract-types.ts +0 -71
  179. package/scripts/type-extractor.ts +0 -286
  180. package/scripts/validate-examples.ts +0 -142
  181. package/src/data/cli-commands.ts +0 -103
  182. package/src/data/icons.json +0 -7452
  183. package/src/index.ts +0 -653
  184. package/src/tools/get-types.ts +0 -169
  185. package/test-client.js +0 -86
  186. package/tsconfig.examples.json +0 -14
  187. package/tsconfig.json +0 -20
@@ -1,30 +1,30 @@
1
1
  export const Skeleton = {
2
- category: "feedback",
3
- description: "Loading placeholder that mimics content structure while data loads",
4
- props: `
2
+ category: "feedback",
3
+ description: "Loading placeholder that mimics content structure while data loads",
4
+ props: `
5
5
  - \`width\`: number | string - Width of the skeleton (number in pixels or string with units)
6
6
  - \`height\`: number | string - Height of the skeleton (number in pixels or string with units)
7
7
  - \`shape\`: SkeletonShape - Shape of the skeleton
8
8
  - \`borderRadius\`: number - Border radius for 'rounded' shape (in pixels)
9
9
  - \`animation\`: SkeletonAnimation - Animation type
10
10
  `,
11
- features: [
12
- "Three shapes: rectangle, circle, rounded",
13
- "Three animation types",
14
- "Configurable dimensions",
15
- "Group component for multiple skeletons",
16
- "Customizable spacing",
17
- "Mimics content structure",
18
- ],
19
- bestPractices: [
20
- "Match skeleton shape to actual content",
21
- "Use pulse animation for general loading",
22
- "Use wave animation for feed-like content",
23
- "Show skeleton while data is loading",
24
- "Replace skeleton with actual content smoothly",
25
- "Use SkeletonGroup for consistent layouts",
26
- ],
27
- usage: `
11
+ features: [
12
+ "Three shapes: rectangle, circle, rounded",
13
+ "Three animation types",
14
+ "Configurable dimensions",
15
+ "Group component for multiple skeletons",
16
+ "Customizable spacing",
17
+ "Mimics content structure",
18
+ ],
19
+ bestPractices: [
20
+ "Match skeleton shape to actual content",
21
+ "Use pulse animation for general loading",
22
+ "Use wave animation for feed-like content",
23
+ "Show skeleton while data is loading",
24
+ "Replace skeleton with actual content smoothly",
25
+ "Use SkeletonGroup for consistent layouts",
26
+ ],
27
+ usage: `
28
28
  import { Skeleton, SkeletonGroup } from '@idealyst/components';
29
29
 
30
30
  // Single skeleton
@@ -37,20 +37,18 @@ import { Skeleton, SkeletonGroup } from '@idealyst/components';
37
37
  skeletonProps={{ width: '100%', height: 60, shape: 'rounded' }}
38
38
  />
39
39
  `,
40
- examples: {
41
- basic: `import { Skeleton } from '@idealyst/components';
40
+ examples: {
41
+ basic: `import { Skeleton } from '@idealyst/components';
42
42
 
43
43
  <Skeleton width={150} height={20} />`,
44
-
45
- variants: `import { Skeleton, View } from '@idealyst/components';
44
+ variants: `import { Skeleton, View } from '@idealyst/components';
46
45
 
47
46
  <View spacing="md">
48
47
  <Skeleton width="100%" height={20} shape="rectangle" />
49
48
  <Skeleton width={100} height={100} shape="circle" />
50
49
  <Skeleton width={200} height={40} shape="rounded" />
51
50
  </View>`,
52
-
53
- "with-icons": `import { Skeleton, View } from '@idealyst/components';
51
+ "with-icons": `import { Skeleton, View } from '@idealyst/components';
54
52
 
55
53
  // Mimicking a user card
56
54
  <View style={{ flexDirection: 'row', gap: 12, alignItems: 'center' }}>
@@ -60,8 +58,7 @@ import { Skeleton, SkeletonGroup } from '@idealyst/components';
60
58
  <Skeleton width="40%" height={14} />
61
59
  </View>
62
60
  </View>`,
63
-
64
- interactive: `import { Skeleton, SkeletonGroup, View, Card, Text, Button } from '@idealyst/components';
61
+ interactive: `import { Skeleton, SkeletonGroup, View, Card, Text, Button } from '@idealyst/components';
65
62
  import { useState, useEffect } from 'react';
66
63
 
67
64
  function Example() {
@@ -98,5 +95,6 @@ function Example() {
98
95
  </Card>
99
96
  );
100
97
  }`,
101
- },
98
+ },
102
99
  };
100
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/data/components/Skeleton.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,oEAAoE;IAC7E,KAAK,EAAE;;;;;;CAMZ;IACC,QAAQ,EAAE;QACR,0CAA0C;QAC1C,uBAAuB;QACvB,yBAAyB;QACzB,wCAAwC;QACxC,sBAAsB;QACtB,0BAA0B;KAC3B;IACD,aAAa,EAAE;QACb,wCAAwC;QACxC,yCAAyC;QACzC,0CAA0C;QAC1C,qCAAqC;QACrC,+CAA+C;QAC/C,0CAA0C;KAC3C;IACD,KAAK,EAAE;;;;;;;;;;;;CAYR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;qCAE0B;QAEjC,QAAQ,EAAE;;;;;;QAMN;QAEJ,YAAY,EAAE;;;;;;;;;QASV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Slider: {
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=Slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/data/components/Slider.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAqJlB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const Slider = {
2
- category: "form",
3
- description: "Input slider for selecting numeric values from a range",
4
- props: `
2
+ category: "form",
3
+ description: "Input slider for selecting numeric values from a range",
4
+ props: `
5
5
  - \`value\`: number - The current value of the slider (controlled)
6
6
  - \`defaultValue\`: number - The default value for uncontrolled usage
7
7
  - \`min\`: number - The minimum value of the slider range
@@ -17,27 +17,27 @@ export const Slider = {
17
17
  - \`onValueChange\`: function - Called when the slider value changes during dragging
18
18
  - \`onValueCommit\`: function - Called when the user finishes changing the value (on release)
19
19
  `,
20
- features: [
21
- "Controlled and uncontrolled modes",
22
- "Min/max value constraints",
23
- "Step increment",
24
- "Custom marks",
25
- "Value display",
26
- "Min/max labels",
27
- "Three sizes",
28
- "Five intent colors",
29
- "Icon support in thumb",
30
- "Change and commit callbacks",
31
- ],
32
- bestPractices: [
33
- "Use for continuous numeric values",
34
- "Show current value for user feedback",
35
- "Use marks for important values",
36
- "Set appropriate step size for precision",
37
- "Use onValueCommit for expensive operations",
38
- "Provide min/max labels for context",
39
- ],
40
- usage: `
20
+ features: [
21
+ "Controlled and uncontrolled modes",
22
+ "Min/max value constraints",
23
+ "Step increment",
24
+ "Custom marks",
25
+ "Value display",
26
+ "Min/max labels",
27
+ "Three sizes",
28
+ "Five intent colors",
29
+ "Icon support in thumb",
30
+ "Change and commit callbacks",
31
+ ],
32
+ bestPractices: [
33
+ "Use for continuous numeric values",
34
+ "Show current value for user feedback",
35
+ "Use marks for important values",
36
+ "Set appropriate step size for precision",
37
+ "Use onValueCommit for expensive operations",
38
+ "Provide min/max labels for context",
39
+ ],
40
+ usage: `
41
41
  import { Slider } from '@idealyst/components';
42
42
  import { useState } from 'react';
43
43
 
@@ -57,20 +57,18 @@ function Example() {
57
57
  );
58
58
  }
59
59
  `,
60
- examples: {
61
- basic: `import { Slider } from '@idealyst/components';
60
+ examples: {
61
+ basic: `import { Slider } from '@idealyst/components';
62
62
 
63
63
  <Slider min={0} max={100} defaultValue={50} />`,
64
-
65
- variants: `import { Slider, View } from '@idealyst/components';
64
+ variants: `import { Slider, View } from '@idealyst/components';
66
65
 
67
66
  <View spacing="md">
68
67
  <Slider size="sm" value={25} />
69
68
  <Slider size="md" value={50} />
70
69
  <Slider size="lg" value={75} />
71
70
  </View>`,
72
-
73
- "with-icons": `import { Slider, View, Text, Icon } from '@idealyst/components';
71
+ "with-icons": `import { Slider, View, Text, Icon } from '@idealyst/components';
74
72
  import { useState } from 'react';
75
73
 
76
74
  function VolumeControl() {
@@ -114,8 +112,7 @@ function BrightnessControl() {
114
112
  </View>
115
113
  );
116
114
  }`,
117
-
118
- interactive: `import { Slider, View, Text, Button } from '@idealyst/components';
115
+ interactive: `import { Slider, View, Text, Button } from '@idealyst/components';
119
116
  import { useState } from 'react';
120
117
 
121
118
  function Example() {
@@ -146,5 +143,6 @@ function Example() {
146
143
  </View>
147
144
  );
148
145
  }`,
149
- },
146
+ },
150
147
  };
148
+ //# sourceMappingURL=Slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/data/components/Slider.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,wDAAwD;IACjE,KAAK,EAAE;;;;;;;;;;;;;;;CAeZ;IACC,QAAQ,EAAE;QACR,mCAAmC;QACnC,2BAA2B;QAC3B,gBAAgB;QAChB,cAAc;QACd,eAAe;QACf,gBAAgB;QAChB,aAAa;QACb,oBAAoB;QACpB,uBAAuB;QACvB,6BAA6B;KAC9B;IACD,aAAa,EAAE;QACb,mCAAmC;QACnC,sCAAsC;QACtC,gCAAgC;QAChC,yCAAyC;QACzC,4CAA4C;QAC5C,oCAAoC;KACrC;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;;;;CAmBR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;+CAEoC;QAE3C,QAAQ,EAAE;;;;;;QAMN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ChB;QAEE,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Switch: {
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=Switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/data/components/Switch.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA8HlB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const Switch = {
2
- category: "form",
3
- description: "Toggle switch for binary on/off states",
4
- props: `
2
+ category: "form",
3
+ description: "Toggle switch for binary on/off states",
4
+ props: `
5
5
  - \`checked\`: boolean - Whether the switch is in the on/checked state
6
6
  - \`onCheckedChange\`: function - Called when the switch state changes
7
7
  - \`disabled\`: boolean - Whether the switch is disabled
@@ -12,24 +12,24 @@ export const Switch = {
12
12
  - \`enabledIcon\`: IconName | React.ReactNode - Icon to display when switch is on
13
13
  - \`disabledIcon\`: IconName | React.ReactNode - Icon to display when switch is off
14
14
  `,
15
- features: [
16
- "Binary on/off toggle",
17
- "Label with configurable position",
18
- "Three sizes",
19
- "Five intent colors",
20
- "Custom icons for states",
21
- "Disabled state",
22
- "Animated transition",
23
- ],
24
- bestPractices: [
25
- "Use for binary settings (on/off, enabled/disabled)",
26
- "Provide clear labels",
27
- "Use intent colors to indicate state meaning",
28
- "Place label on left for form layouts",
29
- "Use icons sparingly for clarity",
30
- "Immediate effect - no submit button needed",
31
- ],
32
- usage: `
15
+ features: [
16
+ "Binary on/off toggle",
17
+ "Label with configurable position",
18
+ "Three sizes",
19
+ "Five intent colors",
20
+ "Custom icons for states",
21
+ "Disabled state",
22
+ "Animated transition",
23
+ ],
24
+ bestPractices: [
25
+ "Use for binary settings (on/off, enabled/disabled)",
26
+ "Provide clear labels",
27
+ "Use intent colors to indicate state meaning",
28
+ "Place label on left for form layouts",
29
+ "Use icons sparingly for clarity",
30
+ "Immediate effect - no submit button needed",
31
+ ],
32
+ usage: `
33
33
  import { Switch } from '@idealyst/components';
34
34
  import { useState } from 'react';
35
35
 
@@ -46,20 +46,18 @@ function Example() {
46
46
  );
47
47
  }
48
48
  `,
49
- examples: {
50
- basic: `import { Switch } from '@idealyst/components';
49
+ examples: {
50
+ basic: `import { Switch } from '@idealyst/components';
51
51
 
52
52
  <Switch label="Enable feature" />`,
53
-
54
- variants: `import { Switch, View } from '@idealyst/components';
53
+ variants: `import { Switch, View } from '@idealyst/components';
55
54
 
56
55
  <View spacing="md">
57
56
  <Switch label="Small" size="sm" checked />
58
57
  <Switch label="Medium" size="md" checked />
59
58
  <Switch label="Large" size="lg" checked />
60
59
  </View>`,
61
-
62
- "with-icons": `import { Switch, View } from '@idealyst/components';
60
+ "with-icons": `import { Switch, View } from '@idealyst/components';
63
61
  import { useState } from 'react';
64
62
 
65
63
  function Example() {
@@ -76,8 +74,7 @@ function Example() {
76
74
  />
77
75
  );
78
76
  }`,
79
-
80
- interactive: `import { Switch, View, Text, Card } from '@idealyst/components';
77
+ interactive: `import { Switch, View, Text, Card } from '@idealyst/components';
81
78
  import { useState } from 'react';
82
79
 
83
80
  function SettingsPanel() {
@@ -123,5 +120,6 @@ function SettingsPanel() {
123
120
  </Card>
124
121
  );
125
122
  }`,
126
- },
123
+ },
127
124
  };
125
+ //# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/data/components/Switch.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,wCAAwC;IACjD,KAAK,EAAE;;;;;;;;;;CAUZ;IACC,QAAQ,EAAE;QACR,sBAAsB;QACtB,kCAAkC;QAClC,aAAa;QACb,oBAAoB;QACpB,yBAAyB;QACzB,gBAAgB;QAChB,qBAAqB;KACtB;IACD,aAAa,EAAE;QACb,oDAAoD;QACpD,sBAAsB;QACtB,6CAA6C;QAC7C,sCAAsC;QACtC,iCAAiC;QACjC,4CAA4C;KAC7C;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;CAgBR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;kCAEuB;QAE9B,QAAQ,EAAE;;;;;;QAMN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;;EAgBhB;QAEE,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Cf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const TabBar: {
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=TabBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../../src/data/components/TabBar.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA6IlB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const TabBar = {
2
- category: "navigation",
3
- description: "Tab bar navigation component for switching between views or sections",
4
- props: `
2
+ category: "navigation",
3
+ description: "Tab bar navigation component for switching between views or sections",
4
+ props: `
5
5
  - \`items\`: TabBarItem[] - Array of tab items to display
6
6
  - \`value\`: string - The currently selected tab value (controlled)
7
7
  - \`defaultValue\`: string - The default selected tab for uncontrolled usage
@@ -10,23 +10,23 @@ export const TabBar = {
10
10
  - \`size\`: TabBarSizeVariant - The size variant of the tabs
11
11
  - \`pillMode\`: TabBarPillMode - Mode for pills variant: 'light' for light backgrounds (dark pill), 'dark' for dark backgrounds (light pill)
12
12
  `,
13
- features: [
14
- "Three visual variants",
15
- "Controlled and uncontrolled modes",
16
- "Three sizes",
17
- "Five intent colors",
18
- "Disabled tabs",
19
- "Simple configuration",
20
- ],
21
- bestPractices: [
22
- "Use 'underline' variant for page-level navigation",
23
- "Use 'pills' variant for contained sections",
24
- "Keep tab labels short (1-2 words)",
25
- "Use 3-5 tabs for optimal UX",
26
- "Disable tabs when content is unavailable",
27
- "Preload tab content for smooth transitions",
28
- ],
29
- usage: `
13
+ features: [
14
+ "Three visual variants",
15
+ "Controlled and uncontrolled modes",
16
+ "Three sizes",
17
+ "Five intent colors",
18
+ "Disabled tabs",
19
+ "Simple configuration",
20
+ ],
21
+ bestPractices: [
22
+ "Use 'underline' variant for page-level navigation",
23
+ "Use 'pills' variant for contained sections",
24
+ "Keep tab labels short (1-2 words)",
25
+ "Use 3-5 tabs for optimal UX",
26
+ "Disable tabs when content is unavailable",
27
+ "Preload tab content for smooth transitions",
28
+ ],
29
+ usage: `
30
30
  import { TabBar } from '@idealyst/components';
31
31
  import { useState } from 'react';
32
32
 
@@ -49,8 +49,8 @@ function Example() {
49
49
  );
50
50
  }
51
51
  `,
52
- examples: {
53
- basic: `import { TabBar } from '@idealyst/components';
52
+ examples: {
53
+ basic: `import { TabBar } from '@idealyst/components';
54
54
 
55
55
  const items = [
56
56
  { value: '1', label: 'Tab 1' },
@@ -58,8 +58,7 @@ const items = [
58
58
  ];
59
59
 
60
60
  <TabBar items={items} defaultValue="1" />`,
61
-
62
- variants: `import { TabBar, View } from '@idealyst/components';
61
+ variants: `import { TabBar, View } from '@idealyst/components';
63
62
 
64
63
  const items = [
65
64
  { value: 'a', label: 'First' },
@@ -71,8 +70,7 @@ const items = [
71
70
  <TabBar items={items} type="pills" />
72
71
  <TabBar items={items} type="underline" />
73
72
  </View>`,
74
-
75
- "with-icons": `import { TabBar, View, Text } from '@idealyst/components';
73
+ "with-icons": `import { TabBar, View, Text } from '@idealyst/components';
76
74
  import { useState } from 'react';
77
75
 
78
76
  function Example() {
@@ -97,8 +95,7 @@ function Example() {
97
95
  </View>
98
96
  );
99
97
  }`,
100
-
101
- interactive: `import { TabBar, View, Text, Card } from '@idealyst/components';
98
+ interactive: `import { TabBar, View, Text, Card } from '@idealyst/components';
102
99
  import { useState } from 'react';
103
100
 
104
101
  function Example() {
@@ -138,5 +135,6 @@ function Example() {
138
135
  </View>
139
136
  );
140
137
  }`,
141
- },
138
+ },
142
139
  };
140
+ //# sourceMappingURL=TabBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../../../src/data/components/TabBar.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,sEAAsE;IAC/E,KAAK,EAAE;;;;;;;;CAQZ;IACC,QAAQ,EAAE;QACR,uBAAuB;QACvB,mCAAmC;QACnC,aAAa;QACb,oBAAoB;QACpB,eAAe;QACf,sBAAsB;KACvB;IACD,aAAa,EAAE;QACb,mDAAmD;QACnD,4CAA4C;QAC5C,mCAAmC;QACnC,6BAA6B;QAC7B,0CAA0C;QAC1C,4CAA4C;KAC7C;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;CAsBR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;;;;;;0CAO+B;QAEtC,QAAQ,EAAE;;;;;;;;;;;QAWN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;EAwBhB;QAEE,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Table: {
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=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/data/components/Table.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAwJjB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const Table = {
2
- category: "data",
3
- description: "Data table component for displaying structured tabular data",
4
- props: `
2
+ category: "data",
3
+ description: "Data table component for displaying structured tabular data",
4
+ props: `
5
5
  - \`columns\`: TableColumn<T>[] - Column definitions
6
6
  - \`key\`: string - Unique column key
7
7
  - \`title\`: string - Column header title
@@ -17,25 +17,25 @@ export const Table = {
17
17
  - \`style\`: ViewStyle - Additional styles
18
18
  - \`testID\`: string - Test identifier
19
19
  `,
20
- features: [
21
- "Column-based configuration",
22
- "Custom cell renderers",
23
- "Three visual variants",
24
- "Three sizes",
25
- "Sticky header support",
26
- "Row click handling",
27
- "Column alignment",
28
- "Custom column widths",
29
- ],
30
- bestPractices: [
31
- "Use render function for complex cell content",
32
- "Enable stickyHeader for long tables",
33
- "Use 'striped' variant for better readability",
34
- "Set column widths for important columns",
35
- "Keep column count reasonable for mobile",
36
- "Use appropriate size for data density",
37
- ],
38
- usage: `
20
+ features: [
21
+ "Column-based configuration",
22
+ "Custom cell renderers",
23
+ "Three visual variants",
24
+ "Three sizes",
25
+ "Sticky header support",
26
+ "Row click handling",
27
+ "Column alignment",
28
+ "Custom column widths",
29
+ ],
30
+ bestPractices: [
31
+ "Use render function for complex cell content",
32
+ "Enable stickyHeader for long tables",
33
+ "Use 'striped' variant for better readability",
34
+ "Set column widths for important columns",
35
+ "Keep column count reasonable for mobile",
36
+ "Use appropriate size for data density",
37
+ ],
38
+ usage: `
39
39
  import { Table } from '@idealyst/components';
40
40
 
41
41
  const columns = [
@@ -55,8 +55,8 @@ const data = [
55
55
 
56
56
  <Table columns={columns} data={data} variant="striped" />
57
57
  `,
58
- examples: {
59
- basic: `import { Table } from '@idealyst/components';
58
+ examples: {
59
+ basic: `import { Table } from '@idealyst/components';
60
60
 
61
61
  const columns = [
62
62
  { key: 'id', title: 'ID', dataIndex: 'id' },
@@ -69,8 +69,7 @@ const data = [
69
69
  ];
70
70
 
71
71
  <Table columns={columns} data={data} />`,
72
-
73
- variants: `import { Table, View } from '@idealyst/components';
72
+ variants: `import { Table, View } from '@idealyst/components';
74
73
 
75
74
  const columns = [{ key: 'name', title: 'Name', dataIndex: 'name' }];
76
75
  const data = [{ name: 'Test' }];
@@ -80,8 +79,7 @@ const data = [{ name: 'Test' }];
80
79
  <Table columns={columns} data={data} variant="bordered" />
81
80
  <Table columns={columns} data={data} variant="striped" />
82
81
  </View>`,
83
-
84
- "with-icons": `import { Table, Badge, Icon, View, Text } from '@idealyst/components';
82
+ "with-icons": `import { Table, Badge, Icon, View, Text } from '@idealyst/components';
85
83
 
86
84
  const columns = [
87
85
  {
@@ -106,8 +104,7 @@ const columns = [
106
104
  ];
107
105
 
108
106
  <Table columns={columns} data={users} />`,
109
-
110
- interactive: `import { Table, Button, View, Text } from '@idealyst/components';
107
+ interactive: `import { Table, Button, View, Text } from '@idealyst/components';
111
108
  import { useState } from 'react';
112
109
 
113
110
  function Example() {
@@ -149,5 +146,6 @@ function Example() {
149
146
  </View>
150
147
  );
151
148
  }`,
152
- },
149
+ },
153
150
  };
151
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
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,6DAA6D;IAC1E,KAAK,EAAE;;;;;;;;;;;;;;;CAeR;IACC,QAAQ,EAAE;QACR,4BAA4B;QAC5B,uBAAuB;QACvB,uBAAuB;QACvB,aAAa;QACb,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"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/data/components/Tabs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAuJhB,CAAC"}