@lando-labs/lando-ds-mcp 4.0.0
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/CHANGELOG.md +526 -0
- package/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +170 -0
- package/build/data/ds-meta.json +1 -0
- package/build/data/ds-meta.schema.json +282 -0
- package/build/data/ds-meta.verbose.json +1 -0
- package/build/data/icon-metadata.d.ts +64 -0
- package/build/data/icon-metadata.d.ts.map +1 -0
- package/build/data/icon-metadata.js +1128 -0
- package/build/data/icon-metadata.js.map +1 -0
- package/build/data/lucide-icon-names.d.ts +12 -0
- package/build/data/lucide-icon-names.d.ts.map +1 -0
- package/build/data/lucide-icon-names.js +1653 -0
- package/build/data/lucide-icon-names.js.map +1 -0
- package/build/data/lucide-icons.d.ts +41 -0
- package/build/data/lucide-icons.d.ts.map +1 -0
- package/build/data/lucide-icons.js +80 -0
- package/build/data/lucide-icons.js.map +1 -0
- package/build/data/rn-tokens-snapshot.d.ts +753 -0
- package/build/data/rn-tokens-snapshot.d.ts.map +1 -0
- package/build/data/rn-tokens-snapshot.js +286 -0
- package/build/data/rn-tokens-snapshot.js.map +1 -0
- package/build/index.d.ts +18 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +411 -0
- package/build/index.js.map +1 -0
- package/build/prompts/index.d.ts +16 -0
- package/build/prompts/index.d.ts.map +1 -0
- package/build/prompts/index.js +145 -0
- package/build/prompts/index.js.map +1 -0
- package/build/resources/code-examples.d.ts +6 -0
- package/build/resources/code-examples.d.ts.map +1 -0
- package/build/resources/code-examples.js +278 -0
- package/build/resources/code-examples.js.map +1 -0
- package/build/resources/design-tokens.d.ts +6 -0
- package/build/resources/design-tokens.d.ts.map +1 -0
- package/build/resources/design-tokens.js +128 -0
- package/build/resources/design-tokens.js.map +1 -0
- package/build/resources/index.d.ts +19 -0
- package/build/resources/index.d.ts.map +1 -0
- package/build/resources/index.js +80 -0
- package/build/resources/index.js.map +1 -0
- package/build/test.d.ts +12 -0
- package/build/test.d.ts.map +1 -0
- package/build/test.js +680 -0
- package/build/test.js.map +1 -0
- package/build/tools/compose-components.d.ts +40 -0
- package/build/tools/compose-components.d.ts.map +1 -0
- package/build/tools/compose-components.js +61 -0
- package/build/tools/compose-components.js.map +1 -0
- package/build/tools/get-animation-examples.d.ts +30 -0
- package/build/tools/get-animation-examples.d.ts.map +1 -0
- package/build/tools/get-animation-examples.js +484 -0
- package/build/tools/get-animation-examples.js.map +1 -0
- package/build/tools/get-component-capabilities.d.ts +43 -0
- package/build/tools/get-component-capabilities.d.ts.map +1 -0
- package/build/tools/get-component-capabilities.js +108 -0
- package/build/tools/get-component-capabilities.js.map +1 -0
- package/build/tools/get-component-props.d.ts +23 -0
- package/build/tools/get-component-props.d.ts.map +1 -0
- package/build/tools/get-component-props.js +46 -0
- package/build/tools/get-component-props.js.map +1 -0
- package/build/tools/get-component-reference.d.ts +25 -0
- package/build/tools/get-component-reference.d.ts.map +1 -0
- package/build/tools/get-component-reference.js +112 -0
- package/build/tools/get-component-reference.js.map +1 -0
- package/build/tools/get-component.d.ts +25 -0
- package/build/tools/get-component.d.ts.map +1 -0
- package/build/tools/get-component.js +60 -0
- package/build/tools/get-component.js.map +1 -0
- package/build/tools/get-composition-hints.d.ts +22 -0
- package/build/tools/get-composition-hints.d.ts.map +1 -0
- package/build/tools/get-composition-hints.js +39 -0
- package/build/tools/get-composition-hints.js.map +1 -0
- package/build/tools/get-design-tokens.d.ts +24 -0
- package/build/tools/get-design-tokens.d.ts.map +1 -0
- package/build/tools/get-design-tokens.js +96 -0
- package/build/tools/get-design-tokens.js.map +1 -0
- package/build/tools/get-ds-metadata.d.ts +16 -0
- package/build/tools/get-ds-metadata.d.ts.map +1 -0
- package/build/tools/get-ds-metadata.js +65 -0
- package/build/tools/get-ds-metadata.js.map +1 -0
- package/build/tools/get-hook.d.ts +19 -0
- package/build/tools/get-hook.d.ts.map +1 -0
- package/build/tools/get-hook.js +46 -0
- package/build/tools/get-hook.js.map +1 -0
- package/build/tools/get-theme-presets.d.ts +13 -0
- package/build/tools/get-theme-presets.d.ts.map +1 -0
- package/build/tools/get-theme-presets.js +41 -0
- package/build/tools/get-theme-presets.js.map +1 -0
- package/build/tools/list-components.d.ts +29 -0
- package/build/tools/list-components.d.ts.map +1 -0
- package/build/tools/list-components.js +88 -0
- package/build/tools/list-components.js.map +1 -0
- package/build/tools/list-hooks.d.ts +22 -0
- package/build/tools/list-hooks.d.ts.map +1 -0
- package/build/tools/list-hooks.js +80 -0
- package/build/tools/list-hooks.js.map +1 -0
- package/build/tools/list-icons.d.ts +28 -0
- package/build/tools/list-icons.d.ts.map +1 -0
- package/build/tools/list-icons.js +161 -0
- package/build/tools/list-icons.js.map +1 -0
- package/build/tools/platform-transform.d.ts +64 -0
- package/build/tools/platform-transform.d.ts.map +1 -0
- package/build/tools/platform-transform.js +117 -0
- package/build/tools/platform-transform.js.map +1 -0
- package/build/tools/platform.d.ts +76 -0
- package/build/tools/platform.d.ts.map +1 -0
- package/build/tools/platform.js +80 -0
- package/build/tools/platform.js.map +1 -0
- package/build/tools/search-icons.d.ts +28 -0
- package/build/tools/search-icons.d.ts.map +1 -0
- package/build/tools/search-icons.js +257 -0
- package/build/tools/search-icons.js.map +1 -0
- package/build/utils/error-envelope.d.ts +14 -0
- package/build/utils/error-envelope.d.ts.map +1 -0
- package/build/utils/error-envelope.js +35 -0
- package/build/utils/error-envelope.js.map +1 -0
- package/build/utils/icon-library.d.ts +17 -0
- package/build/utils/icon-library.d.ts.map +1 -0
- package/build/utils/icon-library.js +24 -0
- package/build/utils/icon-library.js.map +1 -0
- package/build/utils/jsx-safety.d.ts +47 -0
- package/build/utils/jsx-safety.d.ts.map +1 -0
- package/build/utils/jsx-safety.js +63 -0
- package/build/utils/jsx-safety.js.map +1 -0
- package/build/utils/meta-loader.d.ts +37 -0
- package/build/utils/meta-loader.d.ts.map +1 -0
- package/build/utils/meta-loader.js +114 -0
- package/build/utils/meta-loader.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rn-tokens-snapshot.d.ts","sourceRoot":"","sources":["../../src/data/rn-tokens-snapshot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,0DAA0D;AAC1D,MAAM,MAAM,WAAW,GAAG,SAAS,WAAW,EAAE,GAAG,MAAM,CAAA;AAEzD,4BAA4B;AAC5B,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAEpE,iEAAiE;AACjE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiET,CAAA;AAEV,sDAAsD;AACtD,eAAO,MAAM,OAAO;;;;;;;;;;;CAWV,CAAA;AAEV;wEACwE;AACxE,eAAO,MAAM,MAAM;;;;;;;;;;;CAWT,CAAA;AAEV;gEACgE;AAChE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCb,CAAA;AAEV,kFAAkF;AAClF,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAA;AAEV;2EAC2E;AAC3E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CV,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCZ,CAAA;AAEV;iFACiF;AACjF,eAAO,MAAM,WAAW;;;;;;CAMd,CAAA;AAEV;;;;GAIG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAyB,CAAA"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native token snapshot — Sprint 29, Lane H (#245).
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the numeric primitives exported by `@lando-labs/design-system/tokens`
|
|
5
|
+
* as of v0.14.2 (post Sprint 25 normalization). The web rendering path
|
|
6
|
+
* composes CSS strings via `src/utils/tokens-web.ts`; RN consumers want the
|
|
7
|
+
* raw numbers, so we ship them directly.
|
|
8
|
+
*
|
|
9
|
+
* Why embed instead of import? The MCP server is a standalone npm package
|
|
10
|
+
* (`@lando-labs/design-system-mcp`) that does not depend on
|
|
11
|
+
* `@lando-labs/design-system` itself — adding that dependency would couple
|
|
12
|
+
* MCP releases to DS releases and bloat the package. The shapes here are
|
|
13
|
+
* narrow, stable, and small enough that embedding is the pragmatic path
|
|
14
|
+
* for AI consumers.
|
|
15
|
+
*
|
|
16
|
+
* Drift policy: if a token primitive shape changes upstream (e.g. a new
|
|
17
|
+
* radius scale, a new easing tuple), update this snapshot to match and
|
|
18
|
+
* bump the MCP server's minor version. Tests under
|
|
19
|
+
* `mcp-server/src/__tests__/` exercise the RN output shape so drift is
|
|
20
|
+
* caught at CI time.
|
|
21
|
+
*
|
|
22
|
+
* @see /Users/lando/lando-labs/lando-labs-design-system/src/tokens/index.ts
|
|
23
|
+
*/
|
|
24
|
+
/** Colors — hex strings. Works on both platforms identically. */
|
|
25
|
+
export const colors = {
|
|
26
|
+
ocean: {
|
|
27
|
+
lightest: '#E6F4F7',
|
|
28
|
+
lighter: '#B3DDE8',
|
|
29
|
+
light: '#66C2D9',
|
|
30
|
+
base: '#2BA3D4',
|
|
31
|
+
medium: '#1B7FA8',
|
|
32
|
+
dark: '#136080',
|
|
33
|
+
darker: '#0D4358',
|
|
34
|
+
darkest: '#082A38',
|
|
35
|
+
},
|
|
36
|
+
teal: {
|
|
37
|
+
lightest: '#E6F7F7',
|
|
38
|
+
lighter: '#B3EBEB',
|
|
39
|
+
light: '#66D9D9',
|
|
40
|
+
base: '#2DBFBF',
|
|
41
|
+
medium: '#1A9999',
|
|
42
|
+
dark: '#127373',
|
|
43
|
+
darker: '#0C4D4D',
|
|
44
|
+
darkest: '#062929',
|
|
45
|
+
},
|
|
46
|
+
neutral: {
|
|
47
|
+
white: '#FFFFFF',
|
|
48
|
+
50: '#F8FAFB',
|
|
49
|
+
100: '#F1F5F7',
|
|
50
|
+
200: '#E1E8ED',
|
|
51
|
+
300: '#C7D3DB',
|
|
52
|
+
400: '#B0BEC5',
|
|
53
|
+
500: '#90A4AE',
|
|
54
|
+
600: '#607D8B',
|
|
55
|
+
700: '#455A64',
|
|
56
|
+
800: '#37474F',
|
|
57
|
+
900: '#263238',
|
|
58
|
+
black: '#000000',
|
|
59
|
+
},
|
|
60
|
+
semantic: {
|
|
61
|
+
success: {
|
|
62
|
+
lightest: '#E6F7F7',
|
|
63
|
+
light: '#66D9D9',
|
|
64
|
+
base: '#2DBFBF',
|
|
65
|
+
dark: '#1A9999',
|
|
66
|
+
darkest: '#0C4D4D',
|
|
67
|
+
},
|
|
68
|
+
warning: {
|
|
69
|
+
lightest: '#FEF3E2',
|
|
70
|
+
light: '#FCD980',
|
|
71
|
+
base: '#F59E0B',
|
|
72
|
+
dark: '#D97706',
|
|
73
|
+
darkest: '#92400E',
|
|
74
|
+
},
|
|
75
|
+
error: {
|
|
76
|
+
lightest: '#FEE2E2',
|
|
77
|
+
light: '#FCA5A5',
|
|
78
|
+
base: '#EF4444',
|
|
79
|
+
dark: '#DC2626',
|
|
80
|
+
darkest: '#7F1D1D',
|
|
81
|
+
},
|
|
82
|
+
info: {
|
|
83
|
+
lightest: '#E6F4F7',
|
|
84
|
+
light: '#66C2D9',
|
|
85
|
+
base: '#2BA3D4',
|
|
86
|
+
dark: '#1B7FA8',
|
|
87
|
+
darkest: '#0D4358',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
/** Spacing — numbers in px (RN consumes directly). */
|
|
92
|
+
export const spacing = {
|
|
93
|
+
none: 0,
|
|
94
|
+
'2xs': 4,
|
|
95
|
+
xs: 8,
|
|
96
|
+
sm: 12,
|
|
97
|
+
md: 16,
|
|
98
|
+
lg: 24,
|
|
99
|
+
xl: 32,
|
|
100
|
+
'2xl': 48,
|
|
101
|
+
'3xl': 64,
|
|
102
|
+
'4xl': 96,
|
|
103
|
+
};
|
|
104
|
+
/** Radius — numbers in px. `full` maps to a value larger than any practical
|
|
105
|
+
* half-min-dimension, mirroring the canonical `RADIUS_FULL = 9999`. */
|
|
106
|
+
export const radius = {
|
|
107
|
+
none: 0,
|
|
108
|
+
xs: 2,
|
|
109
|
+
sm: 4,
|
|
110
|
+
md: 6,
|
|
111
|
+
lg: 8,
|
|
112
|
+
xl: 12,
|
|
113
|
+
'2xl': 16,
|
|
114
|
+
'3xl': 24,
|
|
115
|
+
'4xl': 32,
|
|
116
|
+
full: 9999,
|
|
117
|
+
};
|
|
118
|
+
/** Typography — numeric font sizes (px), unitless weights + line-heights,
|
|
119
|
+
* letter-spacing in em (RN consumers multiply by fontSize). */
|
|
120
|
+
export const typography = {
|
|
121
|
+
fontSize: {
|
|
122
|
+
'2xs': 10,
|
|
123
|
+
xs: 13,
|
|
124
|
+
sm: 14,
|
|
125
|
+
base: 16,
|
|
126
|
+
lg: 18,
|
|
127
|
+
xl: 20,
|
|
128
|
+
'2xl': 25,
|
|
129
|
+
'3xl': 31,
|
|
130
|
+
'4xl': 39,
|
|
131
|
+
'5xl': 49,
|
|
132
|
+
'6xl': 61,
|
|
133
|
+
'7xl': 76,
|
|
134
|
+
},
|
|
135
|
+
fontWeight: {
|
|
136
|
+
normal: 400,
|
|
137
|
+
medium: 500,
|
|
138
|
+
semibold: 600,
|
|
139
|
+
bold: 700,
|
|
140
|
+
extrabold: 800,
|
|
141
|
+
},
|
|
142
|
+
lineHeight: {
|
|
143
|
+
none: 1,
|
|
144
|
+
tight: 1.25,
|
|
145
|
+
snug: 1.375,
|
|
146
|
+
normal: 1.5,
|
|
147
|
+
relaxed: 1.625,
|
|
148
|
+
loose: 2,
|
|
149
|
+
},
|
|
150
|
+
letterSpacing: {
|
|
151
|
+
tighter: -0.05,
|
|
152
|
+
tight: -0.025,
|
|
153
|
+
normal: 0,
|
|
154
|
+
wide: 0.025,
|
|
155
|
+
wider: 0.05,
|
|
156
|
+
widest: 0.1,
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
/** Single-name font families for RN font loading (`expo-font`, native assets). */
|
|
160
|
+
export const fontFamilyPrimary = {
|
|
161
|
+
base: 'Inter',
|
|
162
|
+
mono: 'JetBrains Mono',
|
|
163
|
+
display: 'Inter',
|
|
164
|
+
};
|
|
165
|
+
/** Shadows — multi-layer arrays. Web composes to `box-shadow`; RN consumes
|
|
166
|
+
* layer-by-layer (iOS shadow props + Android elevation approximation). */
|
|
167
|
+
export const shadows = {
|
|
168
|
+
light: {
|
|
169
|
+
none: 'none',
|
|
170
|
+
xs: [{ x: 0, y: 1, blur: 2, spread: 0, color: 'rgba(27, 127, 168, 0.05)' }],
|
|
171
|
+
sm: [
|
|
172
|
+
{ x: 0, y: 1, blur: 3, spread: 0, color: 'rgba(27, 127, 168, 0.1)' },
|
|
173
|
+
{ x: 0, y: 1, blur: 2, spread: -1, color: 'rgba(27, 127, 168, 0.1)' },
|
|
174
|
+
],
|
|
175
|
+
md: [
|
|
176
|
+
{ x: 0, y: 4, blur: 6, spread: -1, color: 'rgba(27, 127, 168, 0.1)' },
|
|
177
|
+
{ x: 0, y: 2, blur: 4, spread: -2, color: 'rgba(27, 127, 168, 0.1)' },
|
|
178
|
+
],
|
|
179
|
+
lg: [
|
|
180
|
+
{ x: 0, y: 10, blur: 15, spread: -3, color: 'rgba(27, 127, 168, 0.1)' },
|
|
181
|
+
{ x: 0, y: 4, blur: 6, spread: -4, color: 'rgba(27, 127, 168, 0.1)' },
|
|
182
|
+
],
|
|
183
|
+
xl: [
|
|
184
|
+
{ x: 0, y: 20, blur: 25, spread: -5, color: 'rgba(27, 127, 168, 0.1)' },
|
|
185
|
+
{ x: 0, y: 8, blur: 10, spread: -6, color: 'rgba(27, 127, 168, 0.1)' },
|
|
186
|
+
],
|
|
187
|
+
'2xl': [{ x: 0, y: 25, blur: 50, spread: -12, color: 'rgba(27, 127, 168, 0.25)' }],
|
|
188
|
+
inner: [{ x: 0, y: 2, blur: 4, spread: 0, color: 'rgba(27, 127, 168, 0.05)', inset: true }],
|
|
189
|
+
outline: [{ x: 0, y: 0, blur: 0, spread: 3, color: 'rgba(43, 163, 212, 0.5)' }],
|
|
190
|
+
},
|
|
191
|
+
dark: {
|
|
192
|
+
none: 'none',
|
|
193
|
+
xs: [{ x: 0, y: 1, blur: 2, spread: 0, color: 'rgba(0, 0, 0, 0.3)' }],
|
|
194
|
+
sm: [
|
|
195
|
+
{ x: 0, y: 1, blur: 3, spread: 0, color: 'rgba(0, 0, 0, 0.4)' },
|
|
196
|
+
{ x: 0, y: 1, blur: 2, spread: -1, color: 'rgba(0, 0, 0, 0.4)' },
|
|
197
|
+
],
|
|
198
|
+
md: [
|
|
199
|
+
{ x: 0, y: 4, blur: 6, spread: -1, color: 'rgba(0, 0, 0, 0.4)' },
|
|
200
|
+
{ x: 0, y: 2, blur: 4, spread: -2, color: 'rgba(0, 0, 0, 0.4)' },
|
|
201
|
+
],
|
|
202
|
+
lg: [
|
|
203
|
+
{ x: 0, y: 10, blur: 15, spread: -3, color: 'rgba(0, 0, 0, 0.4)' },
|
|
204
|
+
{ x: 0, y: 4, blur: 6, spread: -4, color: 'rgba(0, 0, 0, 0.4)' },
|
|
205
|
+
],
|
|
206
|
+
xl: [
|
|
207
|
+
{ x: 0, y: 20, blur: 25, spread: -5, color: 'rgba(0, 0, 0, 0.5)' },
|
|
208
|
+
{ x: 0, y: 8, blur: 10, spread: -6, color: 'rgba(0, 0, 0, 0.5)' },
|
|
209
|
+
],
|
|
210
|
+
'2xl': [{ x: 0, y: 25, blur: 50, spread: -12, color: 'rgba(0, 0, 0, 0.6)' }],
|
|
211
|
+
inner: [{ x: 0, y: 2, blur: 4, spread: 0, color: 'rgba(0, 0, 0, 0.3)', inset: true }],
|
|
212
|
+
outline: [{ x: 0, y: 0, blur: 0, spread: 3, color: 'rgba(43, 163, 212, 0.5)' }],
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Animation — durations as numbers (ms); easings as cubic-bezier 4-tuples
|
|
217
|
+
* (or the `'linear'` sentinel). RN consumers feed durations to
|
|
218
|
+
* `Animated.timing()` and easings to `Easing.bezier(...args)`.
|
|
219
|
+
*/
|
|
220
|
+
export const animation = {
|
|
221
|
+
duration: {
|
|
222
|
+
instant: 0,
|
|
223
|
+
fastest: 50,
|
|
224
|
+
faster: 100,
|
|
225
|
+
fast: 150,
|
|
226
|
+
normal: 200,
|
|
227
|
+
slow: 300,
|
|
228
|
+
slower: 500,
|
|
229
|
+
slowest: 700,
|
|
230
|
+
},
|
|
231
|
+
easing: {
|
|
232
|
+
linear: 'linear',
|
|
233
|
+
easeIn: [0.4, 0, 1, 1],
|
|
234
|
+
easeOut: [0, 0, 0.2, 1],
|
|
235
|
+
easeInOut: [0.4, 0, 0.2, 1],
|
|
236
|
+
// Custom ocean-inspired easings
|
|
237
|
+
wave: [0.4, 0, 0.2, 1],
|
|
238
|
+
surge: [0.34, 1.56, 0.64, 1],
|
|
239
|
+
ripple: [0.25, 0.46, 0.45, 0.94],
|
|
240
|
+
tide: [0.65, 0, 0.35, 1],
|
|
241
|
+
// Bouncy easings (use sparingly)
|
|
242
|
+
bounce: [0.68, -0.55, 0.265, 1.55],
|
|
243
|
+
elastic: [0.175, 0.885, 0.32, 1.275],
|
|
244
|
+
},
|
|
245
|
+
delay: {
|
|
246
|
+
none: 0,
|
|
247
|
+
shortest: 50,
|
|
248
|
+
short: 100,
|
|
249
|
+
medium: 150,
|
|
250
|
+
long: 200,
|
|
251
|
+
longest: 300,
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
/** Breakpoints — numbers in px. Same on both platforms but RN consumers
|
|
255
|
+
* typically use `Dimensions`/`useWindowDimensions` instead of media queries. */
|
|
256
|
+
export const breakpoints = {
|
|
257
|
+
sm: 640,
|
|
258
|
+
md: 768,
|
|
259
|
+
lg: 1024,
|
|
260
|
+
xl: 1280,
|
|
261
|
+
'2xl': 1536,
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Compose the full RN token bundle in the shape AI consumers expect.
|
|
265
|
+
* Kept as a function (not a top-level const) so test fixtures can call it
|
|
266
|
+
* with a stable identity per invocation.
|
|
267
|
+
*/
|
|
268
|
+
export function buildRnTokenBundle() {
|
|
269
|
+
return {
|
|
270
|
+
colors,
|
|
271
|
+
spacing,
|
|
272
|
+
radius,
|
|
273
|
+
typography,
|
|
274
|
+
fontFamilyPrimary,
|
|
275
|
+
shadows,
|
|
276
|
+
animation,
|
|
277
|
+
breakpoints,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* For consistency with web's `Platform` import, but this snapshot is
|
|
282
|
+
* RN-only — web consumers should use the CSS-variable output from
|
|
283
|
+
* `get-design-tokens.ts`.
|
|
284
|
+
*/
|
|
285
|
+
export const platformForSnapshot = 'react-native';
|
|
286
|
+
//# sourceMappingURL=rn-tokens-snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rn-tokens-snapshot.js","sourceRoot":"","sources":["../../src/data/rn-tokens-snapshot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAoBH,iEAAiE;AACjE,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE;QACL,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAG,SAAS;QACnB,KAAK,EAAK,SAAS;QACnB,IAAI,EAAM,SAAS;QACnB,MAAM,EAAI,SAAS;QACnB,IAAI,EAAM,SAAS;QACnB,MAAM,EAAI,SAAS;QACnB,OAAO,EAAG,SAAS;KACpB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAG,SAAS;QACnB,KAAK,EAAK,SAAS;QACnB,IAAI,EAAM,SAAS;QACnB,MAAM,EAAI,SAAS;QACnB,IAAI,EAAM,SAAS;QACnB,MAAM,EAAI,SAAS;QACnB,OAAO,EAAG,SAAS;KACpB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,EAAE,EAAK,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SAAS;QAChB,GAAG,EAAI,SA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IACR,EAAE,EAAG,IAAI;IACT,EAAE,EAAG,IAAI;IACT,KAAK,EAAE,IAAI;CACH,CAAA;AAEV;;;;GAIG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,MAAM;QACN,OAAO;QACP,MAAM;QACN,UAAU;QACV,iBAAiB;QACjB,OAAO;QACP,SAAS;QACT,WAAW;KACZ,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAa,cAAc,CAAA"}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Lando Labs Design System MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Provides AI agents with access to the Lando Labs Design System through
|
|
6
|
+
* the Model Context Protocol. Meta-backed since v3.0.0 — reads component,
|
|
7
|
+
* token, icon, and capability metadata from the DS-emitted meta artifacts
|
|
8
|
+
* (see src/utils/meta-loader.ts).
|
|
9
|
+
*
|
|
10
|
+
* Version: 4.0.0
|
|
11
|
+
* Tools: 15 (list_components, get_component, get_component_props,
|
|
12
|
+
* get_component_reference, compose_components, get_design_tokens,
|
|
13
|
+
* get_animation_examples, list_icons, search_icons,
|
|
14
|
+
* get_component_capabilities, get_composition_hints,
|
|
15
|
+
* get_theme_presets, get_ds_metadata, list_hooks, get_hook)
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;GAcG"}
|