@idealyst/mcp-server 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/components/Button.d.ts.map +1 -1
- package/dist/data/components/Button.js +5 -6
- package/dist/data/components/Button.js.map +1 -1
- package/dist/data/components/Input.d.ts.map +1 -1
- package/dist/data/components/Input.js +4 -3
- package/dist/data/components/Input.js.map +1 -1
- package/dist/data/components/Text.d.ts.map +1 -1
- package/dist/data/components/Text.js +26 -19
- package/dist/data/components/Text.js.map +1 -1
- package/dist/data/framework-guides.d.ts.map +1 -1
- package/dist/data/framework-guides.js +842 -174
- package/dist/data/framework-guides.js.map +1 -1
- package/dist/data/translate-guides.d.ts +2 -0
- package/dist/data/translate-guides.d.ts.map +1 -0
- package/dist/data/translate-guides.js +1030 -0
- package/dist/data/translate-guides.js.map +1 -0
- package/dist/generated/types.json +247 -243
- package/dist/index.js +71 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/get-types.d.ts +11 -0
- package/dist/tools/get-types.d.ts.map +1 -1
- package/dist/tools/get-types.js +25 -0
- package/dist/tools/get-types.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/data/components/Button.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/data/components/Button.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CA2GlB,CAAC"}
|
|
@@ -14,13 +14,12 @@ export const Button = {
|
|
|
14
14
|
- \`rightIcon\`: IconName | React.ReactNode - Icon to display on the right side. Can be an icon name or custom component (ReactNode)
|
|
15
15
|
`,
|
|
16
16
|
features: [
|
|
17
|
-
"Three variants: contained, outlined, text",
|
|
18
|
-
"Five intent colors
|
|
19
|
-
"
|
|
17
|
+
"Three type variants: contained, outlined, text",
|
|
18
|
+
"Five intent colors: primary, neutral, success, error, warning",
|
|
19
|
+
"Five sizes: xs, sm, md, lg, xl",
|
|
20
20
|
"Gradient overlay effects (darken/lighten) for contained buttons",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"Full width option",
|
|
21
|
+
"Left and right icon support with MDI icons or custom React elements",
|
|
22
|
+
"Disabled states with visual feedback",
|
|
24
23
|
"Cross-platform (React & React Native)",
|
|
25
24
|
],
|
|
26
25
|
bestPractices: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/data/components/Button.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACtB,QAAQ,EAAE,MAAM;IACZ,WAAW,EAAE,8EAA8E;IACvF,KAAK,EAAE;;;;;;;;;;;CAWd;IACG,QAAQ,EAAE;QACR,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/data/components/Button.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACtB,QAAQ,EAAE,MAAM;IACZ,WAAW,EAAE,8EAA8E;IACvF,KAAK,EAAE;;;;;;;;;;;CAWd;IACG,QAAQ,EAAE;QACR,gDAAgD;QAChD,+DAA+D;QAC/D,gCAAgC;QAChC,iEAAiE;QACjE,qEAAqE;QACrE,sCAAsC;QACtC,uCAAuC;KACxC;IACD,aAAa,EAAE;QACb,uCAAuC;QACvC,+CAA+C;QAC/C,6DAA6D;QAC7D,gDAAgD;QAChD,qEAAqE;KACtE;IACD,KAAK,EAAE;;;;;;;;;;;CAWV;IACG,QAAQ,EAAE;QACR,KAAK,EAAE;;;;;UAKH;QACJ,QAAQ,EAAE;;;;;mDAKmC;QAC7C,YAAY,EAAE;;;;;;;;wBAQI;QAClB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;EAoBjB;QACI,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;UAmBN;KACL;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/data/components/Input.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/data/components/Input.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAyJjB,CAAC"}
|
|
@@ -26,9 +26,10 @@ export const Input = {
|
|
|
26
26
|
"Left and right icon support with MDI icons",
|
|
27
27
|
"Password visibility toggle with eye/eye-off icons",
|
|
28
28
|
"Multiple input types (text, email, password, number)",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
29
|
+
"Five size variants (xs, sm, md, lg, xl)",
|
|
30
|
+
"Three style variants (outlined, filled, bare)",
|
|
31
|
+
"Intent colors for focus/validation states",
|
|
32
|
+
"Disabled and error states",
|
|
32
33
|
"Auto-capitalization control",
|
|
33
34
|
"Focus and blur event handlers",
|
|
34
35
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/data/components/Input.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACrB,QAAQ,EAAE,MAAM;IACZ,WAAW,EAAE,mGAAmG;IAC5G,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;CAoBd;IACG,QAAQ,EAAE;QACR,4CAA4C;QAC5C,mDAAmD;QACnD,sDAAsD;QACtD,
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/data/components/Input.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACrB,QAAQ,EAAE,MAAM;IACZ,WAAW,EAAE,mGAAmG;IAC5G,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;CAoBd;IACG,QAAQ,EAAE;QACR,4CAA4C;QAC5C,mDAAmD;QACnD,sDAAsD;QACtD,yCAAyC;QACzC,+CAA+C;QAC/C,2CAA2C;QAC3C,2BAA2B;QAC3B,6BAA6B;QAC7B,+BAA+B;KAChC;IACD,aAAa,EAAE;QACb,sEAAsE;QACtE,sDAAsD;QACtD,yEAAyE;QACzE,0CAA0C;QAC1C,mEAAmE;KACpE;IACD,KAAK,EAAE;;;;;;;;;;;;;;;;;CAiBV;IACG,QAAQ,EAAE;QACR,KAAK,EAAE;;;;GAIV;QACG,QAAQ,EAAE;;;;;;;;;;;;;;;;;;yCAkByB;QACnC,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCjB;QACG,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;EAyBjB;KACG;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/data/components/Text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/data/components/Text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAkGhB,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
export const Text = {
|
|
2
2
|
category: "typography",
|
|
3
|
-
description: "Styled text component with
|
|
3
|
+
description: "Styled text component with typography variants, weight, color, and spacing options",
|
|
4
4
|
props: `
|
|
5
5
|
- \`children\`: React.ReactNode - The text content to display
|
|
6
|
-
- \`
|
|
7
|
-
- \`weight\`: TextWeightVariant -
|
|
8
|
-
- \`color\`: TextColorVariant - The color of the text
|
|
9
|
-
- \`align\`: TextAlignVariant - Text alignment
|
|
6
|
+
- \`typography\`: Typography - The typography variant (h1, h2, h3, h4, h5, h6, body1, body2, caption). Sets fontSize, lineHeight, and fontWeight automatically.
|
|
7
|
+
- \`weight\`: TextWeightVariant - Override the weight ('light' | 'normal' | 'medium' | 'semibold' | 'bold')
|
|
8
|
+
- \`color\`: TextColorVariant - The color of the text (theme text colors)
|
|
9
|
+
- \`align\`: TextAlignVariant - Text alignment ('left' | 'center' | 'right')
|
|
10
10
|
- \`gap\`: Size - Space between nested elements ('xs' | 'sm' | 'md' | 'lg' | 'xl')
|
|
11
11
|
- \`padding\`: Size - Padding on all sides
|
|
12
12
|
- \`paddingVertical\`: Size - Top and bottom padding
|
|
13
13
|
- \`paddingHorizontal\`: Size - Left and right padding
|
|
14
14
|
`,
|
|
15
15
|
features: [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"Semantic typography variants (headings h1-h6, body1, body2, caption)",
|
|
17
|
+
"Typography automatically sets fontSize, lineHeight, fontWeight",
|
|
18
|
+
"Weight can be overridden independently",
|
|
18
19
|
"Theme color variants",
|
|
19
20
|
"Three alignment options",
|
|
20
21
|
"Gap variant for nested elements",
|
|
@@ -23,8 +24,8 @@ export const Text = {
|
|
|
23
24
|
"Inherits parent text styles",
|
|
24
25
|
],
|
|
25
26
|
bestPractices: [
|
|
26
|
-
"Use semantic
|
|
27
|
-
"
|
|
27
|
+
"Use semantic typography variants (h1-h6 for headings, body1/body2 for content, caption for small text)",
|
|
28
|
+
"Override weight only when needed - typography variants include sensible defaults",
|
|
28
29
|
"Prefer theme colors over custom colors",
|
|
29
30
|
"Use 'left' alignment for body text",
|
|
30
31
|
"Use 'center' for short, important text",
|
|
@@ -34,13 +35,17 @@ export const Text = {
|
|
|
34
35
|
usage: `
|
|
35
36
|
import { Text } from '@idealyst/components';
|
|
36
37
|
|
|
37
|
-
<Text
|
|
38
|
-
Heading
|
|
38
|
+
<Text typography="h1" color="primary">
|
|
39
|
+
Main Heading
|
|
39
40
|
</Text>
|
|
40
41
|
|
|
41
|
-
<Text
|
|
42
|
+
<Text typography="body1" color="secondary">
|
|
42
43
|
Body text with normal weight
|
|
43
44
|
</Text>
|
|
45
|
+
|
|
46
|
+
<Text typography="caption" color="tertiary">
|
|
47
|
+
Small caption text
|
|
48
|
+
</Text>
|
|
44
49
|
`,
|
|
45
50
|
examples: {
|
|
46
51
|
basic: `import { Text } from '@idealyst/components';
|
|
@@ -49,15 +54,17 @@ import { Text } from '@idealyst/components';
|
|
|
49
54
|
variants: `import { Text, View } from '@idealyst/components';
|
|
50
55
|
|
|
51
56
|
<View spacing="md">
|
|
52
|
-
<Text
|
|
53
|
-
<Text
|
|
54
|
-
<Text
|
|
55
|
-
<Text
|
|
57
|
+
<Text typography="h1">Heading 1</Text>
|
|
58
|
+
<Text typography="h2">Heading 2</Text>
|
|
59
|
+
<Text typography="h3">Heading 3</Text>
|
|
60
|
+
<Text typography="body1">Body text (default)</Text>
|
|
61
|
+
<Text typography="body2">Smaller body text</Text>
|
|
62
|
+
<Text typography="caption">Caption text</Text>
|
|
56
63
|
</View>`,
|
|
57
64
|
"with-icons": `import { Text, View, Icon } from '@idealyst/components';
|
|
58
65
|
|
|
59
66
|
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
60
|
-
<Icon name="check-circle"
|
|
67
|
+
<Icon name="check-circle" color="success" />
|
|
61
68
|
<Text color="success" weight="medium">
|
|
62
69
|
Verified Account
|
|
63
70
|
</Text>
|
|
@@ -70,7 +77,7 @@ function Example() {
|
|
|
70
77
|
|
|
71
78
|
return (
|
|
72
79
|
<View spacing="md">
|
|
73
|
-
<Text
|
|
80
|
+
<Text typography="h2" weight="bold" align="center">
|
|
74
81
|
Counter: {count}
|
|
75
82
|
</Text>
|
|
76
83
|
|
|
@@ -79,7 +86,7 @@ function Example() {
|
|
|
79
86
|
<Button onPress={() => setCount(count + 1)}>+</Button>
|
|
80
87
|
</View>
|
|
81
88
|
|
|
82
|
-
<Text
|
|
89
|
+
<Text typography="body2" color="secondary" align="center">
|
|
83
90
|
Click buttons to change the count
|
|
84
91
|
</Text>
|
|
85
92
|
</View>
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/data/components/Text.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,oFAAoF;IAC7F,KAAK,EAAE;;;;;;;;;;CAUZ;IACC,QAAQ,EAAE;QACR,sEAAsE;QACtE,gEAAgE;QAChE,wCAAwC;QACxC,sBAAsB;QACtB,yBAAyB;QACzB,iCAAiC;QACjC,4CAA4C;QAC5C,wBAAwB;QACxB,6BAA6B;KAC9B;IACD,aAAa,EAAE;QACb,wGAAwG;QACxG,kFAAkF;QAClF,wCAAwC;QACxC,oCAAoC;QACpC,wCAAwC;QACxC,6DAA6D;QAC7D,uCAAuC;KACxC;IACD,KAAK,EAAE;;;;;;;;;;;;;;CAcR;IACC,QAAQ,EAAE;QACR,KAAK,EAAE;;iCAEsB;QAE7B,QAAQ,EAAE;;;;;;;;;QASN;QAEJ,YAAY,EAAE;;;;;;;QAOV;QAEJ,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;EAsBf;KACC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-guides.d.ts","sourceRoot":"","sources":["../../src/data/framework-guides.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"framework-guides.d.ts","sourceRoot":"","sources":["../../src/data/framework-guides.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8rDlD,CAAC"}
|