@nimiplatform/app-tools 0.1.3 → 0.2.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/LICENSE +198 -6
- package/README.md +83 -27
- package/bin/nimi-app.mjs +328 -45
- package/lib/app-access-declaration.mjs +49 -0
- package/lib/app-doctor-update.mjs +411 -149
- package/lib/app-pack.mjs +401 -0
- package/lib/app-project-lifecycle.mjs +1141 -0
- package/lib/app-scaffold-capabilities.mjs +769 -0
- package/lib/app-scaffold-default-source.mjs +21 -0
- package/lib/app-scaffold-profiles.mjs +1093 -0
- package/lib/app-scaffold.mjs +1266 -813
- package/lib/index.mjs +194 -42
- package/lib/simulator-conformance-ast.mjs +498 -0
- package/lib/simulator-conformance-css.mjs +116 -0
- package/lib/simulator-conformance-graph.mjs +757 -0
- package/lib/simulator-conformance.d.mts +14 -0
- package/lib/simulator-conformance.mjs +203 -0
- package/lib/simulator-css-profile.d.mts +27 -0
- package/lib/simulator-css-profile.mjs +531 -0
- package/lib/simulator-kit-export-resolution.mjs +70 -0
- package/lib/simulator-manifest.mjs +334 -0
- package/package.json +66 -3
- package/scripts/dev-shell.mjs +465 -0
- package/scripts/sync-app-source.mjs +300 -0
- package/scripts/sync-scaffold-versions.mjs +91 -0
- package/templates/app-source/LICENSE +21 -0
- package/templates/app-source/src/ai-studio-core/ai-config.ts +100 -0
- package/templates/app-source/src/ai-studio-core/ai-studio-core.css +338 -0
- package/templates/app-source/src/ai-studio-core/contexts.tsx +61 -0
- package/templates/app-source/src/ai-studio-core/history-policy.ts +447 -0
- package/templates/app-source/src/ai-studio-core/history.ts +824 -0
- package/templates/app-source/src/ai-studio-core/host-context.tsx +79 -0
- package/templates/app-source/src/ai-studio-core/index.ts +214 -0
- package/templates/app-source/src/ai-studio-core/messages/en.json +310 -0
- package/templates/app-source/src/ai-studio-core/messages/index.ts +47 -0
- package/templates/app-source/src/ai-studio-core/messages/zh.json +310 -0
- package/templates/app-source/src/ai-studio-core/module-registration.ts +109 -0
- package/templates/app-source/src/ai-studio-core/non-success-presentation.ts +65 -0
- package/templates/app-source/src/ai-studio-core/parameter-fields.tsx +247 -0
- package/templates/app-source/src/ai-studio-core/parameters.ts +110 -0
- package/templates/app-source/src/ai-studio-core/prompt-drafts.ts +69 -0
- package/templates/app-source/src/ai-studio-core/run-target.ts +123 -0
- package/templates/app-source/src/ai-studio-core/runtime-dispatcher.ts +35 -0
- package/templates/app-source/src/ai-studio-core/runtime-types.ts +86 -0
- package/templates/app-source/src/ai-studio-core/runtime.ts +306 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-admission.ts +38 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-ai-config.tsx +30 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-artifact-preview.ts +40 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-composer.tsx +257 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-history.tsx +676 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-input.ts +19 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-output.tsx +291 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-result.tsx +413 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-run.ts +174 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-studio-result.tsx +449 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-surface.tsx +45 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing.tsx +494 -0
- package/templates/app-source/src/ai-studio-core/studio-directives.ts +33 -0
- package/templates/app-source/src/ai-studio-core/workspace.tsx +381 -0
- package/templates/app-source/src/product-modules/agent-center/index.tsx +27 -0
- package/templates/app-source/src/product-modules/agent-conversation/index.tsx +19 -0
- package/templates/app-source/src/product-modules/agent-realtime/index.tsx +29 -0
- package/templates/app-source/src/product-modules/kit-recipes/gallery.tsx +142 -0
- package/templates/app-source/src/product-modules/kit-recipes/index.tsx +19 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-data-recipes.tsx +336 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-demos.tsx +165 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-recipes.tsx +682 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-surface.tsx +341 -0
- package/templates/app-source/src/studio-modules/studio-create/descriptors.ts +26 -0
- package/templates/app-source/src/studio-modules/studio-create/index.ts +14 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/en.json +67 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/zh.json +67 -0
- package/templates/app-source/src/studio-modules/studio-create/parameter-panel.tsx +153 -0
- package/templates/app-source/src/studio-modules/studio-create/parameters.ts +70 -0
- package/templates/app-source/src/studio-modules/studio-create/registration.ts +46 -0
- package/templates/app-source/src/studio-modules/studio-create/runtime.ts +339 -0
- package/templates/app-source/src/studio-modules/studio-media/descriptors.ts +22 -0
- package/templates/app-source/src/studio-modules/studio-media/index.ts +12 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/en.json +82 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/zh.json +82 -0
- package/templates/app-source/src/studio-modules/studio-media/parameter-panel.tsx +283 -0
- package/templates/app-source/src/studio-modules/studio-media/parameters.ts +94 -0
- package/templates/app-source/src/studio-modules/studio-media/registration.ts +44 -0
- package/templates/app-source/src/studio-modules/studio-media/runtime.ts +113 -0
- package/templates/app-source/src/studio-modules/studio-voice/descriptors.ts +28 -0
- package/templates/app-source/src/studio-modules/studio-voice/index.ts +16 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/en.json +99 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/zh.json +99 -0
- package/templates/app-source/src/studio-modules/studio-voice/parameter-panel.tsx +284 -0
- package/templates/app-source/src/studio-modules/studio-voice/parameters.ts +116 -0
- package/templates/app-source/src/studio-modules/studio-voice/registration.ts +59 -0
- package/templates/app-source/src/studio-modules/studio-voice/runtime.ts +347 -0
- package/templates/app-source/src/workbench-core/empty-state.tsx +31 -0
- package/templates/app-source/src/workbench-core/index.ts +17 -0
- package/templates/app-source/src/workbench-core/runtime-gate.tsx +131 -0
- package/templates/app-source/src/workbench-core/workbench-core.css +255 -0
- package/templates/app-source/src/workbench-core/workbench-core.tsx +140 -0
- package/templates/app-source.manifest.json +333 -0
- package/templates/default-starter/AGENTS.md +33 -0
- package/templates/default-starter/LICENSE +21 -0
- package/templates/default-starter/README.md +41 -0
- package/templates/default-starter/SECURITY.md +5 -0
- package/templates/default-starter/index.html +12 -0
- package/templates/default-starter/scripts/validate.mjs +26 -0
- package/templates/default-starter/src/shell/App.tsx +27 -0
- package/templates/default-starter/src/shell/auth/app-identity.ts +3 -0
- package/templates/default-starter/src/shell/auth/local-app-client.ts +18 -0
- package/templates/default-starter/src/shell/auth/runtime-platform.ts +110 -0
- package/templates/default-starter/src/shell/authenticated-shell.tsx +20 -0
- package/templates/default-starter/src/shell/workbench-target-adapter.ts +40 -0
- package/templates/default-starter/src/styles.css +26 -0
- package/templates/default-starter/src-tauri/Cargo.toml +17 -0
- package/templates/default-starter/src-tauri/build.rs +5 -0
- package/templates/default-starter/src-tauri/capabilities/default.json +7 -0
- package/templates/default-starter/src-tauri/tauri.conf.json +26 -0
- package/templates/default-starter/tsconfig.json +18 -0
- package/templates/default-starter.manifest.json +99 -0
package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-recipes.tsx
ADDED
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
AppCardSurface,
|
|
4
|
+
Button,
|
|
5
|
+
CompactAction,
|
|
6
|
+
Breadcrumb,
|
|
7
|
+
FieldShell,
|
|
8
|
+
FieldTrigger,
|
|
9
|
+
IconButton,
|
|
10
|
+
IconToggleAction,
|
|
11
|
+
ScrollArea,
|
|
12
|
+
SelectField,
|
|
13
|
+
Steps,
|
|
14
|
+
Surface,
|
|
15
|
+
TextareaField,
|
|
16
|
+
TextField,
|
|
17
|
+
type TypographyRole,
|
|
18
|
+
} from '@nimiplatform/kit/ui';
|
|
19
|
+
import { Check, RefreshCw, Search, Sparkles } from 'lucide-react';
|
|
20
|
+
import {
|
|
21
|
+
CheckboxDemo,
|
|
22
|
+
ConfirmDemo,
|
|
23
|
+
DialogDemo,
|
|
24
|
+
NumberStepperDemo,
|
|
25
|
+
OverlayShellDemo,
|
|
26
|
+
PaginationDemo,
|
|
27
|
+
PillTabsDemo,
|
|
28
|
+
PopoverDemo,
|
|
29
|
+
SegmentedDemo,
|
|
30
|
+
SliderDemo,
|
|
31
|
+
TabsDemo,
|
|
32
|
+
ToggleDemo,
|
|
33
|
+
TooltipDemo,
|
|
34
|
+
} from './kit-component-gallery-demos.js';
|
|
35
|
+
import { DATA_RECIPES } from './kit-component-gallery-data-recipes.js';
|
|
36
|
+
|
|
37
|
+
// UI Recipes - an industrial Nimi Kit component library for a Nimi local app
|
|
38
|
+
// developers. Two panes: an ontology/coverage taxonomy (left) and a live
|
|
39
|
+
// workbench canvas with inline recipe evidence (right). It performs NO runtime
|
|
40
|
+
// work - this is component documentation, rendered from the canonical kit surface.
|
|
41
|
+
|
|
42
|
+
export type CategoryId =
|
|
43
|
+
| 'foundations'
|
|
44
|
+
| 'actions'
|
|
45
|
+
| 'inputs'
|
|
46
|
+
| 'selection'
|
|
47
|
+
| 'overlays'
|
|
48
|
+
| 'layouts'
|
|
49
|
+
| 'data';
|
|
50
|
+
|
|
51
|
+
export type Category = { id: CategoryId; symbol: string; label: string };
|
|
52
|
+
|
|
53
|
+
export const CATEGORIES: Category[] = [
|
|
54
|
+
{ id: 'foundations', symbol: 'F', label: 'Foundations' },
|
|
55
|
+
{ id: 'actions', symbol: 'A', label: 'Actions' },
|
|
56
|
+
{ id: 'inputs', symbol: 'I', label: 'Inputs' },
|
|
57
|
+
{ id: 'selection', symbol: 'S', label: 'Selection' },
|
|
58
|
+
{ id: 'overlays', symbol: 'O', label: 'Overlays' },
|
|
59
|
+
{ id: 'layouts', symbol: 'L', label: 'Layouts' },
|
|
60
|
+
{ id: 'data', symbol: 'D', label: 'Data & Status' },
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
// ---- Foundations data ----
|
|
64
|
+
|
|
65
|
+
export const COLOR_TOKENS: Array<{ token: string; label: string; onDark?: boolean }> = [
|
|
66
|
+
{ token: '--nimi-action-primary-bg', label: 'Action primary', onDark: true },
|
|
67
|
+
{ token: '--nimi-text-primary', label: 'Text primary', onDark: true },
|
|
68
|
+
{ token: '--nimi-text-secondary', label: 'Text secondary' },
|
|
69
|
+
{ token: '--nimi-surface-canvas', label: 'Surface canvas' },
|
|
70
|
+
{ token: '--nimi-surface-card', label: 'Surface card' },
|
|
71
|
+
{ token: '--nimi-border-subtle', label: 'Border subtle' },
|
|
72
|
+
{ token: '--nimi-status-info-soft-bg', label: 'Status info' },
|
|
73
|
+
{ token: '--nimi-status-danger-soft-bg', label: 'Status danger' },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
export const TYPE_ROLES: Array<{ role: TypographyRole; sample: string }> = [
|
|
77
|
+
{ role: 'page-title', sample: 'Page title' },
|
|
78
|
+
{ role: 'section-title', sample: 'Section title' },
|
|
79
|
+
{ role: 'card-title', sample: 'Card title' },
|
|
80
|
+
{ role: 'body', sample: 'Body copy for product surfaces and settings flows.' },
|
|
81
|
+
{ role: 'helper', sample: 'Helper text under form controls.' },
|
|
82
|
+
{ role: 'label', sample: 'Field label' },
|
|
83
|
+
];
|
|
84
|
+
|
|
85
|
+
export const SCALE_TOKENS: Array<{ token: string; label: string }> = [
|
|
86
|
+
{ token: '--nimi-radius-sm', label: 'Radius sm' },
|
|
87
|
+
{ token: '--nimi-radius-md', label: 'Radius md' },
|
|
88
|
+
{ token: '--nimi-radius-lg', label: 'Radius lg' },
|
|
89
|
+
];
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
// ---- Recipe registry ----
|
|
93
|
+
|
|
94
|
+
export type Recipe = {
|
|
95
|
+
id: string;
|
|
96
|
+
category: CategoryId;
|
|
97
|
+
name: string;
|
|
98
|
+
exportsLabel: string;
|
|
99
|
+
importNames: string[];
|
|
100
|
+
extraImports?: string[];
|
|
101
|
+
badge: { label: string; tone: 'success' | 'info' | 'warning' | 'neutral' };
|
|
102
|
+
wide?: boolean;
|
|
103
|
+
stage: ReactNode | ((context: KitRecipeExampleContext) => ReactNode);
|
|
104
|
+
snippet: string | ((context: KitRecipeExampleContext) => string);
|
|
105
|
+
props: Array<{ name: string; desc: string }>;
|
|
106
|
+
accessChecks?: string[];
|
|
107
|
+
tokenFootprint?: Array<{ token: string; role: string; source: string }>;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type KitRecipeExampleContext = {
|
|
111
|
+
readonly appId: string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const RECIPES: Recipe[] = [
|
|
115
|
+
// Actions
|
|
116
|
+
{
|
|
117
|
+
id: 'button',
|
|
118
|
+
category: 'actions',
|
|
119
|
+
name: 'Button / IconButton',
|
|
120
|
+
exportsLabel: 'Button, IconButton',
|
|
121
|
+
importNames: ['Button', 'IconButton'],
|
|
122
|
+
extraImports: ["import { RefreshCw, Sparkles } from 'lucide-react';"],
|
|
123
|
+
badge: { label: 'preview', tone: 'success' },
|
|
124
|
+
stage: (
|
|
125
|
+
<>
|
|
126
|
+
<Button tone="primary" leadingIcon={<Sparkles size={14} />}>Primary</Button>
|
|
127
|
+
<Button tone="secondary">Secondary</Button>
|
|
128
|
+
<Button tone="ghost">Ghost</Button>
|
|
129
|
+
<Button tone="danger">Danger</Button>
|
|
130
|
+
<IconButton aria-label="Refresh" tone="secondary" icon={<RefreshCw size={15} />} />
|
|
131
|
+
</>
|
|
132
|
+
),
|
|
133
|
+
snippet: `<div className="flex flex-wrap items-center gap-3">
|
|
134
|
+
<Button tone="primary" leadingIcon={<Sparkles size={14} />}>Primary</Button>
|
|
135
|
+
<Button tone="secondary">Secondary</Button>
|
|
136
|
+
<Button tone="ghost">Ghost</Button>
|
|
137
|
+
<Button tone="danger">Danger</Button>
|
|
138
|
+
<IconButton aria-label="Refresh" tone="secondary" icon={<RefreshCw size={15} />} />
|
|
139
|
+
</div>`,
|
|
140
|
+
props: [
|
|
141
|
+
{ name: 'tone', desc: 'primary | secondary | ghost | danger' },
|
|
142
|
+
{ name: 'size', desc: 'sm | md | lg' },
|
|
143
|
+
{ name: 'loading', desc: 'disables the action and shows a spinner' },
|
|
144
|
+
{ name: 'leadingIcon', desc: 'ReactNode rendered before the label' },
|
|
145
|
+
],
|
|
146
|
+
accessChecks: [
|
|
147
|
+
'Visible text buttons keep their accessible name from children.',
|
|
148
|
+
'aria-label is required for icon-only actions.',
|
|
149
|
+
'loading sets aria-busy and disables the action while preserving focus treatment.',
|
|
150
|
+
],
|
|
151
|
+
tokenFootprint: [
|
|
152
|
+
{ token: '--nimi-action-primary-bg', role: 'primary action fill', source: 'tables/nimi-ui-tokens.yaml' },
|
|
153
|
+
{ token: '--nimi-action-primary-text', role: 'primary action foreground', source: 'tables/nimi-ui-tokens.yaml' },
|
|
154
|
+
{ token: '--nimi-focus-ring', role: 'keyboard-visible focus ring', source: 'tables/nimi-ui-tokens.yaml' },
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 'app-actions',
|
|
159
|
+
category: 'actions',
|
|
160
|
+
name: 'App surface actions',
|
|
161
|
+
exportsLabel: 'AppCardSurface, CompactAction, IconToggleAction, FieldTrigger',
|
|
162
|
+
importNames: ['AppCardSurface', 'CompactAction', 'IconToggleAction', 'FieldTrigger'],
|
|
163
|
+
extraImports: ["import { Check } from 'lucide-react';"],
|
|
164
|
+
badge: { label: 'app shell', tone: 'success' },
|
|
165
|
+
wide: true,
|
|
166
|
+
stage: (
|
|
167
|
+
<AppCardSurface kind="promoted-glass" className="kit-surface-sample">
|
|
168
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
169
|
+
<CompactAction tone="primary">Apply</CompactAction>
|
|
170
|
+
<CompactAction tone="danger">Reset</CompactAction>
|
|
171
|
+
<IconToggleAction aria-label="Pin panel" icon={<Check size={14} />} active />
|
|
172
|
+
</div>
|
|
173
|
+
<FieldTrigger className="mt-3">Capability · text.generate</FieldTrigger>
|
|
174
|
+
</AppCardSurface>
|
|
175
|
+
),
|
|
176
|
+
snippet: `<AppCardSurface kind="promoted-glass" className="kit-surface-sample">
|
|
177
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
178
|
+
<CompactAction tone="primary">Apply</CompactAction>
|
|
179
|
+
<CompactAction tone="danger">Reset</CompactAction>
|
|
180
|
+
<IconToggleAction aria-label="Pin panel" icon={<Check size={14} />} active />
|
|
181
|
+
</div>
|
|
182
|
+
<FieldTrigger className="mt-3">Capability · text.generate</FieldTrigger>
|
|
183
|
+
</AppCardSurface>`,
|
|
184
|
+
props: [
|
|
185
|
+
{ name: 'kind', desc: 'promoted-glass | operational-solid app surface recipe' },
|
|
186
|
+
{ name: 'tone', desc: 'neutral | primary | danger compact action tone' },
|
|
187
|
+
{ name: 'activeTone', desc: 'primary | danger icon toggle active state' },
|
|
188
|
+
],
|
|
189
|
+
accessChecks: [
|
|
190
|
+
'CompactAction follows Button keyboard and focus semantics.',
|
|
191
|
+
'IconToggleAction needs aria-label because the icon is decorative.',
|
|
192
|
+
'FieldTrigger text must identify the consumer-owned field or capability.',
|
|
193
|
+
],
|
|
194
|
+
tokenFootprint: [
|
|
195
|
+
{ token: '--nimi-material-glass-thin-bg', role: 'promoted app surface material', source: 'tables/nimi-ui-themes.yaml' },
|
|
196
|
+
{ token: '--nimi-action-primary-bg', role: 'primary compact action fill', source: 'tables/nimi-ui-tokens.yaml' },
|
|
197
|
+
{ token: '--nimi-border-subtle', role: 'field trigger and surface boundary', source: 'tables/nimi-ui-tokens.yaml' },
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
// Inputs
|
|
201
|
+
{
|
|
202
|
+
id: 'fields',
|
|
203
|
+
category: 'inputs',
|
|
204
|
+
name: 'Field system',
|
|
205
|
+
exportsLabel: 'FieldShell, TextField, SelectField',
|
|
206
|
+
importNames: ['FieldShell', 'TextField', 'SearchField', 'SelectField', 'TextareaField'],
|
|
207
|
+
extraImports: ["import { Search } from 'lucide-react';"],
|
|
208
|
+
badge: { label: 'forms', tone: 'info' },
|
|
209
|
+
wide: true,
|
|
210
|
+
stage: ({ appId }) => (
|
|
211
|
+
<div className="kit-fields-recipe grid w-full min-w-0 max-w-sm gap-3">
|
|
212
|
+
<FieldShell label="App identity">
|
|
213
|
+
<TextField defaultValue={appId} leading={<Search size={14} />} />
|
|
214
|
+
</FieldShell>
|
|
215
|
+
<FieldShell label="Capability">
|
|
216
|
+
<SelectField
|
|
217
|
+
defaultValue="text.generate"
|
|
218
|
+
options={[
|
|
219
|
+
{ value: 'text.generate', label: 'Text generation' },
|
|
220
|
+
{ value: 'chat.stream', label: 'Chat stream' },
|
|
221
|
+
{ value: 'image.generate', label: 'Image generation' },
|
|
222
|
+
]}
|
|
223
|
+
aria-label="Capability"
|
|
224
|
+
/>
|
|
225
|
+
</FieldShell>
|
|
226
|
+
</div>
|
|
227
|
+
),
|
|
228
|
+
snippet: ({ appId }) => `<div className="kit-fields-recipe grid w-full min-w-0 max-w-sm gap-3">
|
|
229
|
+
<FieldShell label="App identity">
|
|
230
|
+
<TextField defaultValue="${appId}" leading={<Search size={14} />} />
|
|
231
|
+
</FieldShell>
|
|
232
|
+
<FieldShell label="Capability">
|
|
233
|
+
<SelectField
|
|
234
|
+
defaultValue="text.generate"
|
|
235
|
+
options={[
|
|
236
|
+
{ value: 'text.generate', label: 'Text generation' },
|
|
237
|
+
{ value: 'chat.stream', label: 'Chat stream' },
|
|
238
|
+
{ value: 'image.generate', label: 'Image generation' },
|
|
239
|
+
]}
|
|
240
|
+
aria-label="Capability"
|
|
241
|
+
/>
|
|
242
|
+
</FieldShell>
|
|
243
|
+
</div>`,
|
|
244
|
+
props: [
|
|
245
|
+
{ name: 'label', desc: 'FieldShell heading + association' },
|
|
246
|
+
{ name: 'options', desc: 'closed set of { value, label } for SelectField' },
|
|
247
|
+
{ name: 'leading', desc: 'icon node inside TextField' },
|
|
248
|
+
{ name: 'rows', desc: 'TextareaField initial height' },
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: 'textarea',
|
|
253
|
+
category: 'inputs',
|
|
254
|
+
name: 'TextareaField',
|
|
255
|
+
exportsLabel: 'TextareaField',
|
|
256
|
+
importNames: ['TextareaField'],
|
|
257
|
+
badge: { label: 'forms', tone: 'info' },
|
|
258
|
+
stage: <TextareaField rows={3} defaultValue="Write a concise acceptance note for a runtime-backed Nimi App." />,
|
|
259
|
+
snippet: `<TextareaField
|
|
260
|
+
rows={3}
|
|
261
|
+
defaultValue="Write a concise acceptance note for a runtime-backed Nimi App."
|
|
262
|
+
/>`,
|
|
263
|
+
props: [
|
|
264
|
+
{ name: 'rows', desc: 'initial visible rows' },
|
|
265
|
+
{ name: 'wrap', desc: 'soft | hard text wrapping' },
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: 'numeric',
|
|
270
|
+
category: 'inputs',
|
|
271
|
+
name: 'Slider / NumberStepper',
|
|
272
|
+
exportsLabel: 'Slider, NumberStepper',
|
|
273
|
+
importNames: ['Slider', 'NumberStepper'],
|
|
274
|
+
extraImports: ["import { useState } from 'react';"],
|
|
275
|
+
badge: { label: 'numeric', tone: 'info' },
|
|
276
|
+
stage: (
|
|
277
|
+
<>
|
|
278
|
+
<SliderDemo />
|
|
279
|
+
<NumberStepperDemo />
|
|
280
|
+
</>
|
|
281
|
+
),
|
|
282
|
+
snippet: `function NumericControls() {
|
|
283
|
+
const [sliderValue, setSliderValue] = useState(62);
|
|
284
|
+
const [stepperValue, setStepperValue] = useState(4);
|
|
285
|
+
|
|
286
|
+
return (
|
|
287
|
+
<>
|
|
288
|
+
<Slider
|
|
289
|
+
min={1}
|
|
290
|
+
max={100}
|
|
291
|
+
value={sliderValue}
|
|
292
|
+
onChange={(event) => setSliderValue(Number(event.currentTarget.value))}
|
|
293
|
+
showValue
|
|
294
|
+
aria-label="Batch size"
|
|
295
|
+
/>
|
|
296
|
+
<NumberStepper
|
|
297
|
+
value={stepperValue}
|
|
298
|
+
onValueChange={setStepperValue}
|
|
299
|
+
min={1}
|
|
300
|
+
max={16}
|
|
301
|
+
ariaLabel="Batch count"
|
|
302
|
+
/>
|
|
303
|
+
</>
|
|
304
|
+
);
|
|
305
|
+
}`,
|
|
306
|
+
props: [
|
|
307
|
+
{ name: 'min / max', desc: 'numeric bounds' },
|
|
308
|
+
{ name: 'value', desc: 'controlled current value' },
|
|
309
|
+
{ name: 'onValueChange', desc: 'NumberStepper change callback' },
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
// Selection
|
|
313
|
+
{
|
|
314
|
+
id: 'selection',
|
|
315
|
+
category: 'selection',
|
|
316
|
+
name: 'Selection controls',
|
|
317
|
+
exportsLabel: 'Toggle, Checkbox, SegmentedControl',
|
|
318
|
+
importNames: ['Toggle', 'Checkbox', 'SegmentedControl'],
|
|
319
|
+
extraImports: ["import { useState } from 'react';"],
|
|
320
|
+
badge: { label: 'state', tone: 'info' },
|
|
321
|
+
wide: true,
|
|
322
|
+
stage: (
|
|
323
|
+
<div className="kit-selection-recipe grid w-full min-w-0 max-w-md gap-3 justify-items-start">
|
|
324
|
+
<ToggleDemo />
|
|
325
|
+
<CheckboxDemo />
|
|
326
|
+
<SegmentedDemo />
|
|
327
|
+
</div>
|
|
328
|
+
),
|
|
329
|
+
snippet: `function SelectionControls() {
|
|
330
|
+
const [toggleOn, setToggleOn] = useState(true);
|
|
331
|
+
const [checked, setChecked] = useState(true);
|
|
332
|
+
const [mode, setMode] = useState('single');
|
|
333
|
+
|
|
334
|
+
return (
|
|
335
|
+
<div className="kit-selection-recipe grid w-full min-w-0 max-w-md gap-3 justify-items-start">
|
|
336
|
+
<Toggle checked={toggleOn} onChange={setToggleOn} />
|
|
337
|
+
<Checkbox
|
|
338
|
+
checked={checked}
|
|
339
|
+
onChange={(event) => setChecked(event.currentTarget.checked)}
|
|
340
|
+
label="Fail closed on missing SDK"
|
|
341
|
+
/>
|
|
342
|
+
<SegmentedControl
|
|
343
|
+
items={[
|
|
344
|
+
{ value: 'single', label: 'Single' },
|
|
345
|
+
{ value: 'stream', label: 'Stream' },
|
|
346
|
+
{ value: 'batch', label: 'Batch' },
|
|
347
|
+
]}
|
|
348
|
+
value={mode}
|
|
349
|
+
onValueChange={setMode}
|
|
350
|
+
ariaLabel="Run mode"
|
|
351
|
+
size="sm"
|
|
352
|
+
/>
|
|
353
|
+
</div>
|
|
354
|
+
);
|
|
355
|
+
}`,
|
|
356
|
+
props: [
|
|
357
|
+
{ name: 'checked', desc: 'Toggle / Checkbox controlled state' },
|
|
358
|
+
{ name: 'items', desc: 'SegmentedControl { value, label }[]' },
|
|
359
|
+
{ name: 'onValueChange', desc: 'segment selection callback' },
|
|
360
|
+
],
|
|
361
|
+
},
|
|
362
|
+
// Overlays
|
|
363
|
+
{
|
|
364
|
+
id: 'dialog',
|
|
365
|
+
category: 'overlays',
|
|
366
|
+
name: 'Dialog',
|
|
367
|
+
exportsLabel: 'Dialog, DialogContent, Button',
|
|
368
|
+
importNames: ['Dialog', 'DialogContent', 'DialogHeader', 'DialogTitle', 'DialogBody', 'Button'],
|
|
369
|
+
badge: { label: 'interactive', tone: 'info' },
|
|
370
|
+
stage: <DialogDemo />,
|
|
371
|
+
extraImports: ["import { useState } from 'react';"],
|
|
372
|
+
snippet: `function DialogRecipe() {
|
|
373
|
+
const [open, setOpen] = useState(false);
|
|
374
|
+
|
|
375
|
+
return (
|
|
376
|
+
<>
|
|
377
|
+
<Button tone="secondary" size="sm" onClick={() => setOpen(true)}>Open dialog</Button>
|
|
378
|
+
<Dialog open={open} onOpenChange={setOpen}>
|
|
379
|
+
<DialogContent onClose={() => setOpen(false)}>
|
|
380
|
+
<DialogHeader><DialogTitle>Apply AIProfile</DialogTitle></DialogHeader>
|
|
381
|
+
<DialogBody>Review the AIConfig intent diff before applying it to this capability.</DialogBody>
|
|
382
|
+
</DialogContent>
|
|
383
|
+
</Dialog>
|
|
384
|
+
</>
|
|
385
|
+
);
|
|
386
|
+
}`,
|
|
387
|
+
props: [
|
|
388
|
+
{ name: 'open', desc: 'controlled open state' },
|
|
389
|
+
{ name: 'onOpenChange', desc: 'open/close callback' },
|
|
390
|
+
{ name: 'onClose', desc: 'DialogContent dismiss handler' },
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
id: 'overlay-shell',
|
|
395
|
+
category: 'overlays',
|
|
396
|
+
name: 'OverlayShell',
|
|
397
|
+
exportsLabel: 'OverlayShell, Button',
|
|
398
|
+
importNames: ['OverlayShell', 'Button'],
|
|
399
|
+
badge: { label: 'interactive', tone: 'info' },
|
|
400
|
+
stage: <OverlayShellDemo />,
|
|
401
|
+
extraImports: ["import { useState } from 'react';"],
|
|
402
|
+
snippet: `function OverlayShellRecipe() {
|
|
403
|
+
const [open, setOpen] = useState(false);
|
|
404
|
+
|
|
405
|
+
return (
|
|
406
|
+
<>
|
|
407
|
+
<Button tone="secondary" size="sm" onClick={() => setOpen(true)}>Open drawer</Button>
|
|
408
|
+
<OverlayShell
|
|
409
|
+
open={open}
|
|
410
|
+
kind="drawer"
|
|
411
|
+
size="M"
|
|
412
|
+
title="SDK projection detail"
|
|
413
|
+
footer={<Button tone="primary" size="sm" onClick={() => setOpen(false)}>Done</Button>}
|
|
414
|
+
onClose={() => setOpen(false)}
|
|
415
|
+
>
|
|
416
|
+
<div className="kit-pop">
|
|
417
|
+
<strong>Consumer-owned content</strong>
|
|
418
|
+
<span>Overlay chrome comes from Kit UI.</span>
|
|
419
|
+
</div>
|
|
420
|
+
</OverlayShell>
|
|
421
|
+
</>
|
|
422
|
+
);
|
|
423
|
+
}`,
|
|
424
|
+
props: [
|
|
425
|
+
{ name: 'kind', desc: 'dialog | drawer | popover shell chrome' },
|
|
426
|
+
{ name: 'size', desc: 'admitted drawer width token' },
|
|
427
|
+
{ name: 'title / footer', desc: 'consumer-supplied overlay slots' },
|
|
428
|
+
],
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
id: 'popover',
|
|
432
|
+
category: 'overlays',
|
|
433
|
+
name: 'Popover',
|
|
434
|
+
exportsLabel: 'Popover, PopoverContent, Button',
|
|
435
|
+
importNames: ['Popover', 'PopoverTrigger', 'PopoverContent', 'Button'],
|
|
436
|
+
badge: { label: 'interactive', tone: 'info' },
|
|
437
|
+
stage: <PopoverDemo />,
|
|
438
|
+
extraImports: ["import { SlidersHorizontal } from 'lucide-react';"],
|
|
439
|
+
snippet: `<Popover>
|
|
440
|
+
<PopoverTrigger asChild>
|
|
441
|
+
<Button tone="secondary" size="sm" leadingIcon={<SlidersHorizontal size={13} />}>
|
|
442
|
+
Open popover
|
|
443
|
+
</Button>
|
|
444
|
+
</PopoverTrigger>
|
|
445
|
+
<PopoverContent>
|
|
446
|
+
<div className="kit-pop">
|
|
447
|
+
<strong>Capability detail</strong>
|
|
448
|
+
<span>Local runtime - text.generate</span>
|
|
449
|
+
</div>
|
|
450
|
+
</PopoverContent>
|
|
451
|
+
</Popover>`,
|
|
452
|
+
props: [
|
|
453
|
+
{ name: 'PopoverTrigger', desc: 'asChild wraps your own button' },
|
|
454
|
+
{ name: 'PopoverContent', desc: 'floating surface content' },
|
|
455
|
+
],
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: 'tooltip',
|
|
459
|
+
category: 'overlays',
|
|
460
|
+
name: 'Tooltip',
|
|
461
|
+
exportsLabel: 'Tooltip, TooltipProvider, Button',
|
|
462
|
+
importNames: ['Tooltip', 'TooltipProvider', 'Button'],
|
|
463
|
+
badge: { label: 'interactive', tone: 'info' },
|
|
464
|
+
stage: <TooltipDemo />,
|
|
465
|
+
snippet: `<TooltipProvider>
|
|
466
|
+
<Tooltip content="Runs through the admitted SDK surface">
|
|
467
|
+
<Button tone="ghost" size="sm">Hover for tooltip</Button>
|
|
468
|
+
</Tooltip>
|
|
469
|
+
</TooltipProvider>`,
|
|
470
|
+
props: [
|
|
471
|
+
{ name: 'content', desc: 'tooltip body node' },
|
|
472
|
+
{ name: 'placement', desc: 'top | bottom side' },
|
|
473
|
+
],
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
id: 'confirm',
|
|
477
|
+
category: 'overlays',
|
|
478
|
+
name: 'ConfirmDialog',
|
|
479
|
+
exportsLabel: 'ConfirmDialog, Button',
|
|
480
|
+
importNames: ['ConfirmDialog', 'Button'],
|
|
481
|
+
badge: { label: 'interactive', tone: 'warning' },
|
|
482
|
+
stage: <ConfirmDemo />,
|
|
483
|
+
extraImports: ["import { useState } from 'react';"],
|
|
484
|
+
snippet: `function ConfirmDialogRecipe() {
|
|
485
|
+
const [open, setOpen] = useState(false);
|
|
486
|
+
|
|
487
|
+
return (
|
|
488
|
+
<>
|
|
489
|
+
<Button tone="danger" size="sm" onClick={() => setOpen(true)}>Delete draft</Button>
|
|
490
|
+
<ConfirmDialog
|
|
491
|
+
open={open}
|
|
492
|
+
title="Delete prompt draft?"
|
|
493
|
+
message="This removes the local draft for this capability. It cannot be undone."
|
|
494
|
+
confirmLabel="Delete"
|
|
495
|
+
onConfirm={() => setOpen(false)}
|
|
496
|
+
onClose={() => setOpen(false)}
|
|
497
|
+
/>
|
|
498
|
+
</>
|
|
499
|
+
);
|
|
500
|
+
}`,
|
|
501
|
+
props: [
|
|
502
|
+
{ name: 'title / message', desc: 'confirmation copy' },
|
|
503
|
+
{ name: 'confirmTone', desc: 'danger | primary' },
|
|
504
|
+
{ name: 'onConfirm', desc: 'committed action callback' },
|
|
505
|
+
],
|
|
506
|
+
},
|
|
507
|
+
// Layouts
|
|
508
|
+
{
|
|
509
|
+
id: 'tabs',
|
|
510
|
+
category: 'layouts',
|
|
511
|
+
name: 'NimiTabs / PillTabs',
|
|
512
|
+
exportsLabel: 'NimiTabs, PillTabs',
|
|
513
|
+
importNames: ['NimiTabs', 'PillTabs'],
|
|
514
|
+
badge: { label: 'navigation', tone: 'info' },
|
|
515
|
+
wide: true,
|
|
516
|
+
stage: (
|
|
517
|
+
<div className="kit-layout-tabs-recipe grid w-full min-w-0 max-w-2xl gap-6 justify-items-start">
|
|
518
|
+
<TabsDemo />
|
|
519
|
+
<PillTabsDemo />
|
|
520
|
+
</div>
|
|
521
|
+
),
|
|
522
|
+
extraImports: ["import { useState } from 'react';"],
|
|
523
|
+
snippet: `function TabsRecipe() {
|
|
524
|
+
const [tabsValue, setTabsValue] = useState('overview');
|
|
525
|
+
const [pillValue, setPillValue] = useState('preview');
|
|
526
|
+
|
|
527
|
+
return (
|
|
528
|
+
<div className="kit-layout-tabs-recipe grid w-full min-w-0 max-w-2xl gap-6 justify-items-start">
|
|
529
|
+
<NimiTabs
|
|
530
|
+
items={[
|
|
531
|
+
{ value: 'overview', label: 'Overview' },
|
|
532
|
+
{ value: 'key-props', label: 'Key props' },
|
|
533
|
+
{ value: 'design-tokens', label: 'Design tokens' },
|
|
534
|
+
]}
|
|
535
|
+
value={tabsValue}
|
|
536
|
+
onValueChange={setTabsValue}
|
|
537
|
+
ariaLabel="Recipe view"
|
|
538
|
+
/>
|
|
539
|
+
<PillTabs
|
|
540
|
+
items={[
|
|
541
|
+
{ value: 'preview', label: 'Preview' },
|
|
542
|
+
{ value: 'use', label: 'Use' },
|
|
543
|
+
{ value: 'access', label: 'Access' },
|
|
544
|
+
]}
|
|
545
|
+
value={pillValue}
|
|
546
|
+
onValueChange={setPillValue}
|
|
547
|
+
ariaLabel="Preview mode"
|
|
548
|
+
/>
|
|
549
|
+
</div>
|
|
550
|
+
);
|
|
551
|
+
}`,
|
|
552
|
+
props: [
|
|
553
|
+
{ name: 'items', desc: '{ value, label }[]' },
|
|
554
|
+
{ name: 'value', desc: 'active tab value' },
|
|
555
|
+
{ name: 'onValueChange', desc: 'tab change callback' },
|
|
556
|
+
],
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
id: 'navigation-primitives',
|
|
560
|
+
category: 'layouts',
|
|
561
|
+
name: 'Breadcrumb, Steps, Pagination',
|
|
562
|
+
exportsLabel: 'Breadcrumb, Steps, Pagination',
|
|
563
|
+
importNames: ['Breadcrumb', 'Steps', 'Pagination'],
|
|
564
|
+
badge: { label: 'navigation', tone: 'info' },
|
|
565
|
+
wide: true,
|
|
566
|
+
stage: (
|
|
567
|
+
<div className="kit-layout-navigation-recipe grid w-full min-w-0 max-w-2xl gap-6 justify-items-start">
|
|
568
|
+
<Breadcrumb
|
|
569
|
+
items={[
|
|
570
|
+
{ id: 'kit', label: 'Kit', href: '#kit' },
|
|
571
|
+
{ id: 'ui', label: 'UI primitives', href: '#ui' },
|
|
572
|
+
{ id: 'data', label: 'Data display' },
|
|
573
|
+
]}
|
|
574
|
+
/>
|
|
575
|
+
<Steps
|
|
576
|
+
ariaLabel="Kit admission path"
|
|
577
|
+
items={[
|
|
578
|
+
{ id: 'authority', title: 'Spec aligned', status: 'complete' },
|
|
579
|
+
{ id: 'build', title: 'Build surface', status: 'current' },
|
|
580
|
+
{ id: 'consume', title: 'Adopt in app', status: 'pending' },
|
|
581
|
+
]}
|
|
582
|
+
/>
|
|
583
|
+
<PaginationDemo />
|
|
584
|
+
</div>
|
|
585
|
+
),
|
|
586
|
+
extraImports: ["import { useState } from 'react';"],
|
|
587
|
+
snippet: `function NavigationRecipe() {
|
|
588
|
+
const [page, setPage] = useState(2);
|
|
589
|
+
|
|
590
|
+
return (
|
|
591
|
+
<div className="kit-layout-navigation-recipe grid w-full min-w-0 max-w-2xl gap-6 justify-items-start">
|
|
592
|
+
<Breadcrumb
|
|
593
|
+
items={[
|
|
594
|
+
{ id: 'kit', label: 'Kit', href: '#kit' },
|
|
595
|
+
{ id: 'ui', label: 'UI primitives', href: '#ui' },
|
|
596
|
+
{ id: 'data', label: 'Data display' },
|
|
597
|
+
]}
|
|
598
|
+
/>
|
|
599
|
+
<Steps
|
|
600
|
+
ariaLabel="Kit admission path"
|
|
601
|
+
items={[
|
|
602
|
+
{ id: 'authority', title: 'Spec aligned', status: 'complete' },
|
|
603
|
+
{ id: 'build', title: 'Build surface', status: 'current' },
|
|
604
|
+
{ id: 'consume', title: 'Adopt in app', status: 'pending' },
|
|
605
|
+
]}
|
|
606
|
+
/>
|
|
607
|
+
<Pagination page={page} pageCount={7} onPageChange={setPage} />
|
|
608
|
+
</div>
|
|
609
|
+
);
|
|
610
|
+
}`,
|
|
611
|
+
props: [
|
|
612
|
+
{ name: 'items', desc: 'BreadcrumbItem[] or StepItem[] with stable ids' },
|
|
613
|
+
{ name: 'page / pageCount', desc: 'controlled pagination cursor' },
|
|
614
|
+
{ name: 'onPageChange', desc: 'consumer-owned route or state update' },
|
|
615
|
+
],
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
id: 'scrollarea',
|
|
619
|
+
category: 'layouts',
|
|
620
|
+
name: 'ScrollArea',
|
|
621
|
+
exportsLabel: 'ScrollArea',
|
|
622
|
+
importNames: ['ScrollArea'],
|
|
623
|
+
badge: { label: 'layout', tone: 'neutral' },
|
|
624
|
+
stage: (
|
|
625
|
+
<ScrollArea className="kit-scroll-demo" viewportClassName="kit-scroll-demo__vp">
|
|
626
|
+
<div className="kit-scroll-list">
|
|
627
|
+
{['text.generate', 'chat.stream', 'text.embed', 'image.generate', 'video.generate', 'audio.synthesize'].map((row) => (
|
|
628
|
+
<div key={row} className="kit-scroll-row"><code>{row}</code></div>
|
|
629
|
+
))}
|
|
630
|
+
</div>
|
|
631
|
+
</ScrollArea>
|
|
632
|
+
),
|
|
633
|
+
snippet: `<ScrollArea className="kit-scroll-demo" viewportClassName="kit-scroll-demo__vp">
|
|
634
|
+
<div className="kit-scroll-list">
|
|
635
|
+
{[
|
|
636
|
+
'text.generate',
|
|
637
|
+
'chat.stream',
|
|
638
|
+
'text.embed',
|
|
639
|
+
'image.generate',
|
|
640
|
+
'video.generate',
|
|
641
|
+
'audio.synthesize',
|
|
642
|
+
].map((row) => (
|
|
643
|
+
<div key={row} className="kit-scroll-row"><code>{row}</code></div>
|
|
644
|
+
))}
|
|
645
|
+
</div>
|
|
646
|
+
</ScrollArea>`,
|
|
647
|
+
props: [
|
|
648
|
+
{ name: 'viewportClassName', desc: 'styles the scrolling viewport' },
|
|
649
|
+
],
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
id: 'surface',
|
|
653
|
+
category: 'layouts',
|
|
654
|
+
name: 'Surface / glass materials',
|
|
655
|
+
exportsLabel: 'Surface material="glass-*"',
|
|
656
|
+
importNames: ['Surface'],
|
|
657
|
+
badge: { label: 'material', tone: 'success' },
|
|
658
|
+
wide: true,
|
|
659
|
+
stage: (
|
|
660
|
+
<>
|
|
661
|
+
{(['solid', 'glass-thin', 'glass-regular', 'glass-thick', 'glass-chrome'] as const).map((material) => (
|
|
662
|
+
<Surface key={material} material={material} tone="panel" elevation="raised" className="kit-surface-sample">
|
|
663
|
+
<strong>{material}</strong>
|
|
664
|
+
</Surface>
|
|
665
|
+
))}
|
|
666
|
+
</>
|
|
667
|
+
),
|
|
668
|
+
snippet: `<>
|
|
669
|
+
{(['solid', 'glass-thin', 'glass-regular', 'glass-thick', 'glass-chrome'] as const).map((material) => (
|
|
670
|
+
<Surface key={material} material={material} tone="panel" elevation="raised" className="kit-surface-sample">
|
|
671
|
+
<strong>{material}</strong>
|
|
672
|
+
</Surface>
|
|
673
|
+
))}
|
|
674
|
+
</>`,
|
|
675
|
+
props: [
|
|
676
|
+
{ name: 'material', desc: 'solid | glass-thin | glass-regular | glass-thick | glass-chrome' },
|
|
677
|
+
{ name: 'tone', desc: 'canvas | panel | card | hero | overlay' },
|
|
678
|
+
{ name: 'elevation', desc: 'base | raised | floating | modal' },
|
|
679
|
+
],
|
|
680
|
+
},
|
|
681
|
+
...DATA_RECIPES,
|
|
682
|
+
];
|