@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,7 +1,7 @@
1
1
  export const Tabs = {
2
- category: "navigation",
3
- description: "Tabs component with content panels for organizing information into tabbed sections",
4
- props: `
2
+ category: "navigation",
3
+ description: "Tabs component with content panels for organizing information into tabbed sections",
4
+ props: `
5
5
  Tab Props:
6
6
  - \`value\`: string - Unique tab identifier
7
7
  - \`label\`: string - Tab label text
@@ -19,24 +19,24 @@ Tabs Props:
19
19
  - \`testID\`: string - Test identifier
20
20
  - \`children\`: ReactNode - Tab components
21
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: `
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
40
  import { Tabs, Tab, Text } from '@idealyst/components';
41
41
 
42
42
  <Tabs defaultValue="tab1" variant="underline">
@@ -51,8 +51,8 @@ import { Tabs, Tab, Text } from '@idealyst/components';
51
51
  </Tab>
52
52
  </Tabs>
53
53
  `,
54
- examples: {
55
- basic: `import { Tabs, Tab, Text } from '@idealyst/components';
54
+ examples: {
55
+ basic: `import { Tabs, Tab, Text } from '@idealyst/components';
56
56
 
57
57
  <Tabs defaultValue="1">
58
58
  <Tab value="1" label="First">
@@ -62,8 +62,7 @@ import { Tabs, Tab, Text } from '@idealyst/components';
62
62
  <Text>Second tab content</Text>
63
63
  </Tab>
64
64
  </Tabs>`,
65
-
66
- variants: `import { Tabs, Tab, View, Text } from '@idealyst/components';
65
+ variants: `import { Tabs, Tab, View, Text } from '@idealyst/components';
67
66
 
68
67
  <View spacing="lg">
69
68
  <Tabs defaultValue="a" variant="default">
@@ -81,8 +80,7 @@ import { Tabs, Tab, Text } from '@idealyst/components';
81
80
  <Tab value="b" label="Style"><Text>Content B</Text></Tab>
82
81
  </Tabs>
83
82
  </View>`,
84
-
85
- "with-icons": `import { Tabs, Tab, View, Text, Card } from '@idealyst/components';
83
+ "with-icons": `import { Tabs, Tab, View, Text, Card } from '@idealyst/components';
86
84
 
87
85
  <Tabs defaultValue="profile" variant="pills" intent="primary">
88
86
  <Tab value="profile" label="Profile">
@@ -102,8 +100,7 @@ import { Tabs, Tab, Text } from '@idealyst/components';
102
100
  </Card>
103
101
  </Tab>
104
102
  </Tabs>`,
105
-
106
- interactive: `import { Tabs, Tab, View, Text, Input, Button } from '@idealyst/components';
103
+ interactive: `import { Tabs, Tab, View, Text, Input, Button } from '@idealyst/components';
107
104
  import { useState } from 'react';
108
105
 
109
106
  function Example() {
@@ -148,5 +145,6 @@ function Example() {
148
145
  </Tabs>
149
146
  );
150
147
  }`,
151
- },
148
+ },
152
149
  };
150
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/data/components/Text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAoFhB,CAAC"}
@@ -1,30 +1,30 @@
1
1
  export const Text = {
2
- category: "typography",
3
- description: "Styled text component with size, weight, and color variants",
4
- props: `
2
+ category: "typography",
3
+ description: "Styled text component with size, weight, and color variants",
4
+ props: `
5
5
  - \`children\`: React.ReactNode - The text content to display
6
6
  - \`size\`: TextSizeVariant - The size variant of the text
7
7
  - \`weight\`: TextWeightVariant - The weight of the text
8
8
  - \`color\`: TextColorVariant - The color of the text
9
9
  - \`align\`: TextAlignVariant - Text alignment
10
10
  `,
11
- features: [
12
- "Four size variants",
13
- "Five weight options",
14
- "Theme color variants",
15
- "Three alignment options",
16
- "Cross-platform support",
17
- "Inherits parent text styles",
18
- ],
19
- bestPractices: [
20
- "Use semantic sizes (xl for headings, sm for captions)",
21
- "Use appropriate weights for hierarchy",
22
- "Prefer theme colors over custom colors",
23
- "Use 'left' alignment for body text",
24
- "Use 'center' for short, important text",
25
- "Nest Text components for mixed styles",
26
- ],
27
- usage: `
11
+ features: [
12
+ "Four size variants",
13
+ "Five weight options",
14
+ "Theme color variants",
15
+ "Three alignment options",
16
+ "Cross-platform support",
17
+ "Inherits parent text styles",
18
+ ],
19
+ bestPractices: [
20
+ "Use semantic sizes (xl for headings, sm for captions)",
21
+ "Use appropriate weights for hierarchy",
22
+ "Prefer theme colors over custom colors",
23
+ "Use 'left' alignment for body text",
24
+ "Use 'center' for short, important text",
25
+ "Nest Text components for mixed styles",
26
+ ],
27
+ usage: `
28
28
  import { Text } from '@idealyst/components';
29
29
 
30
30
  <Text size="xl" weight="bold" color="primary">
@@ -35,12 +35,11 @@ import { Text } from '@idealyst/components';
35
35
  Body text with normal weight
36
36
  </Text>
37
37
  `,
38
- examples: {
39
- basic: `import { Text } from '@idealyst/components';
38
+ examples: {
39
+ basic: `import { Text } from '@idealyst/components';
40
40
 
41
41
  <Text>Simple text content</Text>`,
42
-
43
- variants: `import { Text, View } from '@idealyst/components';
42
+ variants: `import { Text, View } from '@idealyst/components';
44
43
 
45
44
  <View spacing="md">
46
45
  <Text size="sm">Small text</Text>
@@ -48,8 +47,7 @@ import { Text } from '@idealyst/components';
48
47
  <Text size="lg">Large text</Text>
49
48
  <Text size="xl">Extra large text</Text>
50
49
  </View>`,
51
-
52
- "with-icons": `import { Text, View, Icon } from '@idealyst/components';
50
+ "with-icons": `import { Text, View, Icon } from '@idealyst/components';
53
51
 
54
52
  <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
55
53
  <Icon name="check-circle" size="md" color="success" />
@@ -57,8 +55,7 @@ import { Text } from '@idealyst/components';
57
55
  Verified Account
58
56
  </Text>
59
57
  </View>`,
60
-
61
- interactive: `import { Text, View, Button } from '@idealyst/components';
58
+ interactive: `import { Text, View, Button } from '@idealyst/components';
62
59
  import { useState } from 'react';
63
60
 
64
61
  function Example() {
@@ -81,5 +78,6 @@ function Example() {
81
78
  </View>
82
79
  );
83
80
  }`,
84
- },
81
+ },
85
82
  };
83
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
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,6DAA6D;IACtE,KAAK,EAAE;;;;;;CAMZ;IACC,QAAQ,EAAE;QACR,oBAAoB;QACpB,qBAAqB;QACrB,sBAAsB;QACtB,yBAAyB;QACzB,wBAAwB;QACxB,6BAA6B;KAC9B;IACD,aAAa,EAAE;QACb,uDAAuD;QACvD,uCAAuC;QACvC,wCAAwC;QACxC,oCAAoC;QACpC,wCAAwC;QACxC,uCAAuC;KACxC;IACD,KAAK,EAAE;;;;;;;;;;CAUR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;iCAEsB;QAE7B,QAAQ,EAAE;;;;;;;QAON;QAEJ,YAAY,EAAE;;;;;;;QAOV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;EAsBf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/data/components/TextArea.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;CA0JpB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const TextArea = {
2
- category: "form",
3
- description: "Multi-line text input field for longer text content",
4
- props: `
2
+ category: "form",
3
+ description: "Multi-line text input field for longer text content",
4
+ props: `
5
5
  - \`value\`: string - The current value of the textarea (controlled)
6
6
  - \`defaultValue\`: string - The default value for uncontrolled usage
7
7
  - \`onChange\`: function - Called when the text content changes
@@ -21,27 +21,27 @@ export const TextArea = {
21
21
  - \`size\`: TextAreaSizeVariant - The size variant of the textarea
22
22
  - \`textareaStyle\`: StyleProp<TextStyle> - Additional custom styles for the textarea element
23
23
  `,
24
- features: [
25
- "Multi-line text input",
26
- "Auto-grow to fit content",
27
- "Character count display",
28
- "Min/max height constraints",
29
- "Max length validation",
30
- "Label and helper text",
31
- "Error state",
32
- "Resize control (web)",
33
- "Three sizes",
34
- ],
35
- bestPractices: [
36
- "Always provide a label",
37
- "Use helperText to guide users",
38
- "Set maxLength to prevent excessive input",
39
- "Show character count for limited fields",
40
- "Use autoGrow for dynamic content",
41
- "Set minHeight for comfortable input area",
42
- "Show inline error messages",
43
- ],
44
- usage: `
24
+ features: [
25
+ "Multi-line text input",
26
+ "Auto-grow to fit content",
27
+ "Character count display",
28
+ "Min/max height constraints",
29
+ "Max length validation",
30
+ "Label and helper text",
31
+ "Error state",
32
+ "Resize control (web)",
33
+ "Three sizes",
34
+ ],
35
+ bestPractices: [
36
+ "Always provide a label",
37
+ "Use helperText to guide users",
38
+ "Set maxLength to prevent excessive input",
39
+ "Show character count for limited fields",
40
+ "Use autoGrow for dynamic content",
41
+ "Set minHeight for comfortable input area",
42
+ "Show inline error messages",
43
+ ],
44
+ usage: `
45
45
  import { TextArea } from '@idealyst/components';
46
46
  import { useState } from 'react';
47
47
 
@@ -62,24 +62,22 @@ function Example() {
62
62
  );
63
63
  }
64
64
  `,
65
- examples: {
66
- basic: `import { TextArea } from '@idealyst/components';
65
+ examples: {
66
+ basic: `import { TextArea } from '@idealyst/components';
67
67
 
68
68
  <TextArea
69
69
  label="Message"
70
70
  placeholder="Enter your message"
71
71
  rows={4}
72
72
  />`,
73
-
74
- variants: `import { TextArea, View } from '@idealyst/components';
73
+ variants: `import { TextArea, View } from '@idealyst/components';
75
74
 
76
75
  <View spacing="md">
77
76
  <TextArea label="Small" size="sm" rows={3} />
78
77
  <TextArea label="Medium" size="md" rows={4} />
79
78
  <TextArea label="Large" size="lg" rows={5} />
80
79
  </View>`,
81
-
82
- "with-icons": `import { TextArea, View, Text } from '@idealyst/components';
80
+ "with-icons": `import { TextArea, View, Text } from '@idealyst/components';
83
81
  import { useState } from 'react';
84
82
 
85
83
  function Example() {
@@ -105,8 +103,7 @@ function Example() {
105
103
  </View>
106
104
  );
107
105
  }`,
108
-
109
- interactive: `import { TextArea, View, Button, Text } from '@idealyst/components';
106
+ interactive: `import { TextArea, View, Button, Text } from '@idealyst/components';
110
107
  import { useState } from 'react';
111
108
 
112
109
  function Example() {
@@ -151,5 +148,6 @@ function Example() {
151
148
  </View>
152
149
  );
153
150
  }`,
154
- },
151
+ },
155
152
  };
153
+ //# sourceMappingURL=TextArea.js.map
@@ -0,0 +1 @@
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,qDAAqD;IAC9D,KAAK,EAAE;;;;;;;;;;;;;;;;;;;CAmBZ;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"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/data/components/Tooltip.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAwGnB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const Tooltip = {
2
- category: "overlay",
3
- description: "Contextual tooltip that displays information on hover or focus",
4
- props: `
2
+ category: "overlay",
3
+ description: "Contextual tooltip that displays information on hover or focus",
4
+ props: `
5
5
  - \`content\`: string | React.ReactNode - The tooltip content to display
6
6
  - \`children\`: React.ReactNode - The element that triggers the tooltip on hover/focus
7
7
  - \`placement\`: TooltipPlacement - The placement of the tooltip relative to the trigger
@@ -9,38 +9,37 @@ export const Tooltip = {
9
9
  - \`intent\`: TooltipIntentVariant - The intent/color scheme of the tooltip
10
10
  - \`size\`: TooltipSizeVariant - The size variant of the tooltip
11
11
  `,
12
- features: [
13
- "Hover and focus triggers",
14
- "Four placement options",
15
- "Configurable delay",
16
- "Five intent colors",
17
- "Three sizes",
18
- "String or custom content",
19
- "Auto-positioning on overflow",
20
- ],
21
- bestPractices: [
22
- "Keep tooltip content concise",
23
- "Use for supplementary information only",
24
- "Don't hide critical information in tooltips",
25
- "Ensure tooltips are keyboard accessible",
26
- "Use appropriate placement to avoid obscuring content",
27
- "Add small delay to prevent flashing",
28
- ],
29
- usage: `
12
+ features: [
13
+ "Hover and focus triggers",
14
+ "Four placement options",
15
+ "Configurable delay",
16
+ "Five intent colors",
17
+ "Three sizes",
18
+ "String or custom content",
19
+ "Auto-positioning on overflow",
20
+ ],
21
+ bestPractices: [
22
+ "Keep tooltip content concise",
23
+ "Use for supplementary information only",
24
+ "Don't hide critical information in tooltips",
25
+ "Ensure tooltips are keyboard accessible",
26
+ "Use appropriate placement to avoid obscuring content",
27
+ "Add small delay to prevent flashing",
28
+ ],
29
+ usage: `
30
30
  import { Tooltip, Button } from '@idealyst/components';
31
31
 
32
32
  <Tooltip content="Click to save your changes" placement="top">
33
33
  <Button icon="content-save">Save</Button>
34
34
  </Tooltip>
35
35
  `,
36
- examples: {
37
- basic: `import { Tooltip, Button } from '@idealyst/components';
36
+ examples: {
37
+ basic: `import { Tooltip, Button } from '@idealyst/components';
38
38
 
39
39
  <Tooltip content="This is a tooltip">
40
40
  <Button>Hover me</Button>
41
41
  </Tooltip>`,
42
-
43
- variants: `import { Tooltip, Button, View } from '@idealyst/components';
42
+ variants: `import { Tooltip, Button, View } from '@idealyst/components';
44
43
 
45
44
  <View spacing="md">
46
45
  <Tooltip content="Top placement" placement="top">
@@ -56,8 +55,7 @@ import { Tooltip, Button } from '@idealyst/components';
56
55
  <Button>Right</Button>
57
56
  </Tooltip>
58
57
  </View>`,
59
-
60
- "with-icons": `import { Tooltip, Icon, Text, View } from '@idealyst/components';
58
+ "with-icons": `import { Tooltip, Icon, Text, View } from '@idealyst/components';
61
59
 
62
60
  <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
63
61
  <Text>Need help?</Text>
@@ -69,8 +67,7 @@ import { Tooltip, Button } from '@idealyst/components';
69
67
  <Icon name="help-circle" size="md" color="primary" />
70
68
  </Tooltip>
71
69
  </View>`,
72
-
73
- interactive: `import { Tooltip, Button, View, Text } from '@idealyst/components';
70
+ interactive: `import { Tooltip, Button, View, Text } from '@idealyst/components';
74
71
 
75
72
  function ActionButtons() {
76
73
  return (
@@ -101,5 +98,6 @@ function ActionButtons() {
101
98
  </View>
102
99
  );
103
100
  }`,
104
- },
101
+ },
105
102
  };
103
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/data/components/Tooltip.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,gEAAgE;IACzE,KAAK,EAAE;;;;;;;CAOZ;IACC,QAAQ,EAAE;QACR,0BAA0B;QAC1B,wBAAwB;QACxB,oBAAoB;QACpB,oBAAoB;QACpB,aAAa;QACb,0BAA0B;QAC1B,8BAA8B;KAC/B;IACD,aAAa,EAAE;QACb,8BAA8B;QAC9B,wCAAwC;QACxC,6CAA6C;QAC7C,yCAAyC;QACzC,sDAAsD;QACtD,qCAAqC;KACtC;IACD,KAAK,EAAE;;;;;;CAMR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;;;WAIA;QAEP,QAAQ,EAAE;;;;;;;;;;;;;;;QAeN;QAEJ,YAAY,EAAE;;;;;;;;;;;QAWV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const Video: {
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=Video.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../../src/data/components/Video.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAuKjB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const Video = {
2
- category: "media",
3
- description: "Video player component with playback controls and event handlers",
4
- props: `
2
+ category: "media",
3
+ description: "Video player component with playback controls and event handlers",
4
+ props: `
5
5
  - \`source\`: VideoSource | string - The video source URL or source object with uri and type
6
6
  - \`poster\`: string - URL of the poster image to display before playback
7
7
  - \`width\`: number | string - The width of the video player
@@ -21,27 +21,27 @@ export const Video = {
21
21
  - \`onProgress\`: function - Called periodically during playback with progress information
22
22
  - \`borderRadius\`: number - The border radius of the video player
23
23
  `,
24
- features: [
25
- "Remote and local video sources",
26
- "Poster image support",
27
- "Playback controls",
28
- "Auto-play and loop",
29
- "Multiple event callbacks",
30
- "Progress tracking",
31
- "Aspect ratio control",
32
- "Border radius support",
33
- ],
34
- bestPractices: [
35
- "Always provide a poster image",
36
- "Use appropriate video formats for cross-platform",
37
- "Enable controls for user control",
38
- "Avoid autoPlay with audio (UX best practice)",
39
- "Use playsInline for better mobile experience",
40
- "Provide onError fallback",
41
- "Set explicit dimensions or aspect ratio",
42
- "Use preload: 'metadata' for better performance",
43
- ],
44
- usage: `
24
+ features: [
25
+ "Remote and local video sources",
26
+ "Poster image support",
27
+ "Playback controls",
28
+ "Auto-play and loop",
29
+ "Multiple event callbacks",
30
+ "Progress tracking",
31
+ "Aspect ratio control",
32
+ "Border radius support",
33
+ ],
34
+ bestPractices: [
35
+ "Always provide a poster image",
36
+ "Use appropriate video formats for cross-platform",
37
+ "Enable controls for user control",
38
+ "Avoid autoPlay with audio (UX best practice)",
39
+ "Use playsInline for better mobile experience",
40
+ "Provide onError fallback",
41
+ "Set explicit dimensions or aspect ratio",
42
+ "Use preload: 'metadata' for better performance",
43
+ ],
44
+ usage: `
45
45
  import { Video } from '@idealyst/components';
46
46
 
47
47
  <Video
@@ -55,8 +55,8 @@ import { Video } from '@idealyst/components';
55
55
  onError={(error) => console.error('Video error:', error)}
56
56
  />
57
57
  `,
58
- examples: {
59
- basic: `import { Video } from '@idealyst/components';
58
+ examples: {
59
+ basic: `import { Video } from '@idealyst/components';
60
60
 
61
61
  <Video
62
62
  source="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
@@ -64,8 +64,7 @@ import { Video } from '@idealyst/components';
64
64
  height={360}
65
65
  controls
66
66
  />`,
67
-
68
- variants: `import { Video, View } from '@idealyst/components';
67
+ variants: `import { Video, View } from '@idealyst/components';
69
68
 
70
69
  <View spacing="md">
71
70
  {/* With controls */}
@@ -87,8 +86,7 @@ import { Video } from '@idealyst/components';
87
86
  controls={false}
88
87
  />
89
88
  </View>`,
90
-
91
- "with-icons": `import { Video, Card, View, Text } from '@idealyst/components';
89
+ "with-icons": `import { Video, Card, View, Text } from '@idealyst/components';
92
90
 
93
91
  <Card type="elevated" padding="none">
94
92
  <Video
@@ -104,8 +102,7 @@ import { Video } from '@idealyst/components';
104
102
  <Text size="sm">Video description and details</Text>
105
103
  </View>
106
104
  </Card>`,
107
-
108
- interactive: `import { Video, View, Text, Button } from '@idealyst/components';
105
+ interactive: `import { Video, View, Text, Button } from '@idealyst/components';
109
106
  import { useState, useRef } from 'react';
110
107
 
111
108
  function Example() {
@@ -164,5 +161,6 @@ function Example() {
164
161
  </View>
165
162
  );
166
163
  }`,
167
- },
164
+ },
168
165
  };
166
+ //# sourceMappingURL=Video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/data/components/Video.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,QAAQ,EAAE,OAAO;IACjB,WAAW,EAAE,kEAAkE;IAC3E,KAAK,EAAE;;;;;;;;;;;;;;;;;;;CAmBZ;IACC,QAAQ,EAAE;QACR,gCAAgC;QAChC,sBAAsB;QACtB,mBAAmB;QACnB,oBAAoB;QACpB,0BAA0B;QAC1B,mBAAmB;QACnB,sBAAsB;QACtB,uBAAuB;KACxB;IACD,aAAa,EAAE;QACb,+BAA+B;QAC/B,kDAAkD;QAClD,kCAAkC;QAClC,8CAA8C;QAC9C,8CAA8C;QAC9C,0BAA0B;QAC1B,yCAAyC;QACzC,gDAAgD;KACjD;IACD,KAAK,EAAE;;;;;;;;;;;;;CAaR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;;;;;;GAOR;QAEC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;QAqBN;QAEJ,YAAY,EAAE;;;;;;;;;;;;;;;QAeV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0Df;KACC;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const View: {
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=View.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../src/data/components/View.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CA6HhB,CAAC"}