@classic-homes/theme-mcp 0.2.2 → 0.3.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/README.md +1 -1
- package/dist/cli.js +751 -82
- package/dist/cli.js.map +1 -1
- package/dist/index.js +751 -82
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11,8 +11,251 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
11
11
|
|
|
12
12
|
// src/data/component-catalog.json
|
|
13
13
|
var component_catalog_default = {
|
|
14
|
-
version: "0.
|
|
14
|
+
version: "0.3.0",
|
|
15
15
|
components: [
|
|
16
|
+
{
|
|
17
|
+
name: "ActionHeader",
|
|
18
|
+
description: "Responsive app page header with back link, badges and actions that fold into an overflow menu instead of wrapping",
|
|
19
|
+
category: "layout",
|
|
20
|
+
importPath: "@classic-homes/theme-svelte",
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
name: "title",
|
|
24
|
+
type: "string",
|
|
25
|
+
required: false,
|
|
26
|
+
description: "Page or record title (clamped to two lines)"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "subtitle",
|
|
30
|
+
type: "string",
|
|
31
|
+
required: false,
|
|
32
|
+
description: "Description under the title"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "headingLevel",
|
|
36
|
+
type: "1 | 2 | 3",
|
|
37
|
+
default: "1",
|
|
38
|
+
required: false,
|
|
39
|
+
description: "Heading element for the title"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "caption",
|
|
43
|
+
type: "string",
|
|
44
|
+
required: false,
|
|
45
|
+
description: 'Small note under the actions, right-aligned (e.g. "Updated 5 minutes ago")'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "backHref",
|
|
49
|
+
type: "string",
|
|
50
|
+
required: false,
|
|
51
|
+
description: "Shows a back arrow linking here"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "backLabel",
|
|
55
|
+
type: "string",
|
|
56
|
+
required: false,
|
|
57
|
+
description: 'Back target name; the aria-label becomes "Back to {backLabel}"'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "actions",
|
|
61
|
+
type: "ActionHeaderAction[]",
|
|
62
|
+
default: "[]",
|
|
63
|
+
required: false,
|
|
64
|
+
description: "Header actions (see below)"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "collapseAt",
|
|
68
|
+
type: "'auto' | 'sm' | 'md' | 'lg' | 'never'",
|
|
69
|
+
default: "'auto'",
|
|
70
|
+
required: false,
|
|
71
|
+
description: "Header width at which secondary actions fold: `sm` \u2248 28rem, `md` \u2248 40rem, `lg` \u2248 52rem. `auto` means `lg` with 2+ secondary actions, otherwise `md`"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "moreLabel",
|
|
75
|
+
type: "string",
|
|
76
|
+
default: "'More actions'",
|
|
77
|
+
required: false,
|
|
78
|
+
description: "Accessible name of the \u22EF trigger"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "media",
|
|
82
|
+
type: "Snippet",
|
|
83
|
+
required: false,
|
|
84
|
+
description: "Leading visual after the back button, e.g. a thumbnail"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "titleSuffix",
|
|
88
|
+
type: "Snippet",
|
|
89
|
+
required: false,
|
|
90
|
+
description: "Small inline content right after the title"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "badges",
|
|
94
|
+
type: "Snippet",
|
|
95
|
+
required: false,
|
|
96
|
+
description: "Status badges or a meta line under the title"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "tools",
|
|
100
|
+
type: "Snippet",
|
|
101
|
+
required: false,
|
|
102
|
+
description: "Icon buttons that are always visible at the end of the header"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "toolbar",
|
|
106
|
+
type: "Snippet",
|
|
107
|
+
required: false,
|
|
108
|
+
description: "Row of controls under the header (view toggles, selects)"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "class",
|
|
112
|
+
type: "string",
|
|
113
|
+
required: false,
|
|
114
|
+
description: "Additional classes"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
variants: [
|
|
118
|
+
{
|
|
119
|
+
name: "collapseAt",
|
|
120
|
+
values: [
|
|
121
|
+
"auto",
|
|
122
|
+
"sm",
|
|
123
|
+
"md",
|
|
124
|
+
"lg",
|
|
125
|
+
"never"
|
|
126
|
+
],
|
|
127
|
+
default: "auto"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
slots: [
|
|
131
|
+
{
|
|
132
|
+
name: "children",
|
|
133
|
+
description: "Main content",
|
|
134
|
+
required: false
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
events: [],
|
|
138
|
+
examples: [
|
|
139
|
+
{
|
|
140
|
+
title: "Basic Usage",
|
|
141
|
+
code: `<ActionHeader
|
|
142
|
+
title="Signs"
|
|
143
|
+
subtitle="Physical signage inventory across all communities."
|
|
144
|
+
actions={[
|
|
145
|
+
{ label: 'Export CSV', icon: 'download', onSelect: exportCsv },
|
|
146
|
+
{ label: 'Add sign', icon: 'plus', priority: 'primary', onSelect: openCreate },
|
|
147
|
+
]}
|
|
148
|
+
/>`
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
title: "Record detail",
|
|
152
|
+
code: `<ActionHeader
|
|
153
|
+
title={sign.name}
|
|
154
|
+
subtitle={sign.community}
|
|
155
|
+
backHref="/marketing/signs"
|
|
156
|
+
backLabel="Signs"
|
|
157
|
+
actions={[
|
|
158
|
+
{ label: 'Check in', icon: 'check', priority: 'primary', onSelect: checkIn },
|
|
159
|
+
{ label: 'Edit', icon: 'edit', onSelect: edit },
|
|
160
|
+
{ label: 'Retire', priority: 'overflow', destructive: true, onSelect: retire },
|
|
161
|
+
]}
|
|
162
|
+
>
|
|
163
|
+
{#snippet badges()}
|
|
164
|
+
<Badge>Installed</Badge>
|
|
165
|
+
{/snippet}
|
|
166
|
+
{#snippet tools()}
|
|
167
|
+
<RecordTools />
|
|
168
|
+
{/snippet}
|
|
169
|
+
</ActionHeader>`
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: "With a toolbar",
|
|
173
|
+
code: `<script>
|
|
174
|
+
let groupBy = $state('community');
|
|
175
|
+
let view = $state('list');
|
|
176
|
+
</script>
|
|
177
|
+
|
|
178
|
+
<ActionHeader
|
|
179
|
+
title="All Available Homes"
|
|
180
|
+
subtitle="89 quick move-in homes across all communities"
|
|
181
|
+
caption="Updated 5 minutes ago"
|
|
182
|
+
actions={[{ label: 'PDF', icon: 'file-text', priority: 'primary', variant: 'secondary' }]}
|
|
183
|
+
>
|
|
184
|
+
{#snippet toolbar()}
|
|
185
|
+
<Toolbar label="Inventory tools" class="w-full">
|
|
186
|
+
<Input placeholder="Search homes\u2026" class="max-w-sm" />
|
|
187
|
+
<Button variant="secondary" size="sm">Filters</Button>
|
|
188
|
+
<span class="text-sm">89 homes</span>
|
|
189
|
+
{#snippet end()}
|
|
190
|
+
<SegmentedControl
|
|
191
|
+
label="Group homes by"
|
|
192
|
+
size="sm"
|
|
193
|
+
bind:value={groupBy}
|
|
194
|
+
options={[
|
|
195
|
+
{ value: 'community', label: 'Community' },
|
|
196
|
+
{ value: 'collection', label: 'Collection' },
|
|
197
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
198
|
+
]}
|
|
199
|
+
/>
|
|
200
|
+
<ViewToggle bind:value={view} />
|
|
201
|
+
{/snippet}
|
|
202
|
+
</Toolbar>
|
|
203
|
+
{/snippet}
|
|
204
|
+
</ActionHeader>`
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
relatedComponents: []
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: "ActiveFilterChips",
|
|
211
|
+
description: "Row of removable chips naming each filter that narrows a list, with Clear all",
|
|
212
|
+
category: "core",
|
|
213
|
+
importPath: "@classic-homes/theme-svelte",
|
|
214
|
+
props: [
|
|
215
|
+
{
|
|
216
|
+
name: "chips",
|
|
217
|
+
type: "ActiveFilterChip[]",
|
|
218
|
+
required: false,
|
|
219
|
+
description: "`{ key, label, onRemove }` per active filter"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "onClearAll",
|
|
223
|
+
type: "() => void",
|
|
224
|
+
required: false,
|
|
225
|
+
description: 'Shows a trailing "Clear all" button when set'
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "children",
|
|
229
|
+
type: "Snippet",
|
|
230
|
+
required: false,
|
|
231
|
+
description: "Extra notes after the chips"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "class",
|
|
235
|
+
type: "string",
|
|
236
|
+
required: false,
|
|
237
|
+
description: "Additional classes"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
variants: [],
|
|
241
|
+
slots: [
|
|
242
|
+
{
|
|
243
|
+
name: "children",
|
|
244
|
+
description: "Main content",
|
|
245
|
+
required: false
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
events: [],
|
|
249
|
+
examples: [
|
|
250
|
+
{
|
|
251
|
+
title: "Basic Usage",
|
|
252
|
+
code: "<ActiveFilterChips\n chips={[{ key: 'status', label: 'Status: Installed', onRemove: () => (status = '') }]}\n onClearAll={clearFilters}\n/>"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
relatedComponents: [
|
|
256
|
+
"FilterToolbar"
|
|
257
|
+
]
|
|
258
|
+
},
|
|
16
259
|
{
|
|
17
260
|
name: "Alert",
|
|
18
261
|
description: "Contextual feedback messages for user actions and system status",
|
|
@@ -1510,21 +1753,11 @@ var component_catalog_default = {
|
|
|
1510
1753
|
description: "The primary action button with solid background.",
|
|
1511
1754
|
code: '<Button variant="default">Default Button</Button>'
|
|
1512
1755
|
},
|
|
1513
|
-
{
|
|
1514
|
-
title: "Secondary",
|
|
1515
|
-
description: "For secondary actions that need less visual emphasis.",
|
|
1516
|
-
code: '<Button variant="secondary">Secondary Button</Button>'
|
|
1517
|
-
},
|
|
1518
1756
|
{
|
|
1519
1757
|
title: "Destructive",
|
|
1520
1758
|
description: "For dangerous or irreversible actions like delete.",
|
|
1521
1759
|
code: '<Button variant="destructive">Delete</Button>'
|
|
1522
1760
|
},
|
|
1523
|
-
{
|
|
1524
|
-
title: "Outline",
|
|
1525
|
-
description: "Bordered button with transparent background.",
|
|
1526
|
-
code: '<Button variant="outline">Outline Button</Button>'
|
|
1527
|
-
},
|
|
1528
1761
|
{
|
|
1529
1762
|
title: "Ghost",
|
|
1530
1763
|
description: "Minimal button with no background until hovered.",
|
|
@@ -5221,6 +5454,146 @@ var component_catalog_default = {
|
|
|
5221
5454
|
"Button"
|
|
5222
5455
|
]
|
|
5223
5456
|
},
|
|
5457
|
+
{
|
|
5458
|
+
name: "FilterToolbar",
|
|
5459
|
+
description: "Toolbar that folds filter controls behind a Filters button once more than three controls would sit inline",
|
|
5460
|
+
category: "layout",
|
|
5461
|
+
importPath: "@classic-homes/theme-svelte",
|
|
5462
|
+
props: [
|
|
5463
|
+
{
|
|
5464
|
+
name: "label",
|
|
5465
|
+
type: "string",
|
|
5466
|
+
required: false,
|
|
5467
|
+
description: "Accessible name of the strip (required)"
|
|
5468
|
+
},
|
|
5469
|
+
{
|
|
5470
|
+
name: "search",
|
|
5471
|
+
type: "Snippet",
|
|
5472
|
+
required: false,
|
|
5473
|
+
description: "Search field; always inline"
|
|
5474
|
+
},
|
|
5475
|
+
{
|
|
5476
|
+
name: "filters",
|
|
5477
|
+
type: "Snippet<[{ inline: boolean }]>",
|
|
5478
|
+
required: false,
|
|
5479
|
+
description: "Filter controls; `inline` is false inside the panel/dialog"
|
|
5480
|
+
},
|
|
5481
|
+
{
|
|
5482
|
+
name: "filterCount",
|
|
5483
|
+
type: "number",
|
|
5484
|
+
required: false,
|
|
5485
|
+
description: "Controls rendered by `filters` (drives the collapse rule)"
|
|
5486
|
+
},
|
|
5487
|
+
{
|
|
5488
|
+
name: "activeCount",
|
|
5489
|
+
type: "number",
|
|
5490
|
+
default: "0",
|
|
5491
|
+
required: false,
|
|
5492
|
+
description: "Active filters, shown as a badge on the button"
|
|
5493
|
+
},
|
|
5494
|
+
{
|
|
5495
|
+
name: "summary",
|
|
5496
|
+
type: "Snippet",
|
|
5497
|
+
required: false,
|
|
5498
|
+
description: "Result count after the filters / button"
|
|
5499
|
+
},
|
|
5500
|
+
{
|
|
5501
|
+
name: "end",
|
|
5502
|
+
type: "Snippet",
|
|
5503
|
+
required: false,
|
|
5504
|
+
description: "Right-aligned cluster"
|
|
5505
|
+
},
|
|
5506
|
+
{
|
|
5507
|
+
name: "onClear",
|
|
5508
|
+
type: "() => void",
|
|
5509
|
+
required: false,
|
|
5510
|
+
description: 'Resets every filter ("Clear all")'
|
|
5511
|
+
},
|
|
5512
|
+
{
|
|
5513
|
+
name: "maxInline",
|
|
5514
|
+
type: "number",
|
|
5515
|
+
default: "3",
|
|
5516
|
+
required: false,
|
|
5517
|
+
description: "Most left-side controls (search included) allowed inline"
|
|
5518
|
+
},
|
|
5519
|
+
{
|
|
5520
|
+
name: "open",
|
|
5521
|
+
type: "boolean",
|
|
5522
|
+
default: "false",
|
|
5523
|
+
required: false,
|
|
5524
|
+
description: "Panel/dialog open state (bindable)"
|
|
5525
|
+
},
|
|
5526
|
+
{
|
|
5527
|
+
name: "mobileQuery",
|
|
5528
|
+
type: "string",
|
|
5529
|
+
default: "'(max-width: 1023px)'",
|
|
5530
|
+
required: false,
|
|
5531
|
+
description: "Below this viewport filters always collapse into a dialog"
|
|
5532
|
+
},
|
|
5533
|
+
{
|
|
5534
|
+
name: "class",
|
|
5535
|
+
type: "string",
|
|
5536
|
+
required: false,
|
|
5537
|
+
description: "Additional classes on the wrapper"
|
|
5538
|
+
}
|
|
5539
|
+
],
|
|
5540
|
+
variants: [],
|
|
5541
|
+
slots: [
|
|
5542
|
+
{
|
|
5543
|
+
name: "children",
|
|
5544
|
+
description: "Main content",
|
|
5545
|
+
required: false
|
|
5546
|
+
}
|
|
5547
|
+
],
|
|
5548
|
+
events: [],
|
|
5549
|
+
examples: [
|
|
5550
|
+
{
|
|
5551
|
+
title: "Basic Usage",
|
|
5552
|
+
code: `<script>
|
|
5553
|
+
import {
|
|
5554
|
+
FilterToolbar,
|
|
5555
|
+
ActiveFilterChips,
|
|
5556
|
+
Input,
|
|
5557
|
+
Label,
|
|
5558
|
+
Select,
|
|
5559
|
+
} from '@classic-homes/theme-svelte';
|
|
5560
|
+
|
|
5561
|
+
let search = $state('');
|
|
5562
|
+
let status = $state('');
|
|
5563
|
+
let type = $state('');
|
|
5564
|
+
let supplier = $state('');
|
|
5565
|
+
|
|
5566
|
+
const activeCount = $derived([status, type, supplier].filter(Boolean).length);
|
|
5567
|
+
const clear = () => (status = type = supplier = '');
|
|
5568
|
+
</script>
|
|
5569
|
+
|
|
5570
|
+
<FilterToolbar label="Sign tools" filterCount={3} {activeCount} onClear={clear}>
|
|
5571
|
+
{#snippet search()}
|
|
5572
|
+
<Input type="search" aria-label="Search signs" class="w-full sm:w-56" bind:value={search} />
|
|
5573
|
+
{/snippet}
|
|
5574
|
+
{#snippet filters({ inline })}
|
|
5575
|
+
<div class="space-y-1">
|
|
5576
|
+
<Label for="status" class={inline ? 'sr-only' : ''}>Status</Label>
|
|
5577
|
+
<Select id="status" options={statusOptions} bind:value={status} />
|
|
5578
|
+
</div>
|
|
5579
|
+
<!-- \u2026type, supplier -->
|
|
5580
|
+
{/snippet}
|
|
5581
|
+
{#snippet summary()}<span class="text-sm">42 signs</span>{/snippet}
|
|
5582
|
+
</FilterToolbar>
|
|
5583
|
+
|
|
5584
|
+
<ActiveFilterChips
|
|
5585
|
+
chips={status
|
|
5586
|
+
? [{ key: 'status', label: \`Status: \${status}\`, onRemove: () => (status = '') }]
|
|
5587
|
+
: []}
|
|
5588
|
+
onClearAll={clear}
|
|
5589
|
+
/>`
|
|
5590
|
+
}
|
|
5591
|
+
],
|
|
5592
|
+
relatedComponents: [
|
|
5593
|
+
"Toolbar",
|
|
5594
|
+
"ActionHeader"
|
|
5595
|
+
]
|
|
5596
|
+
},
|
|
5224
5597
|
{
|
|
5225
5598
|
name: "Footer",
|
|
5226
5599
|
description: "Site footer with link sections and branding",
|
|
@@ -8005,7 +8378,7 @@ var component_catalog_default = {
|
|
|
8005
8378
|
name: "subtitle",
|
|
8006
8379
|
type: "string",
|
|
8007
8380
|
required: false,
|
|
8008
|
-
description: "Optional
|
|
8381
|
+
description: "Optional product label (Figtree 600, uppercase, brand red, left-aligned under the wordmark)"
|
|
8009
8382
|
},
|
|
8010
8383
|
{
|
|
8011
8384
|
name: "environment",
|
|
@@ -9761,6 +10134,13 @@ var component_catalog_default = {
|
|
|
9761
10134
|
required: false,
|
|
9762
10135
|
description: "Visual variant"
|
|
9763
10136
|
},
|
|
10137
|
+
{
|
|
10138
|
+
name: "as",
|
|
10139
|
+
type: "'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
|
|
10140
|
+
default: "'h1'",
|
|
10141
|
+
required: false,
|
|
10142
|
+
description: "Heading element"
|
|
10143
|
+
},
|
|
9764
10144
|
{
|
|
9765
10145
|
name: "class",
|
|
9766
10146
|
type: "string",
|
|
@@ -9784,6 +10164,18 @@ var component_catalog_default = {
|
|
|
9784
10164
|
"form"
|
|
9785
10165
|
],
|
|
9786
10166
|
default: "default"
|
|
10167
|
+
},
|
|
10168
|
+
{
|
|
10169
|
+
name: "as",
|
|
10170
|
+
values: [
|
|
10171
|
+
"h1",
|
|
10172
|
+
"h2",
|
|
10173
|
+
"h3",
|
|
10174
|
+
"h4",
|
|
10175
|
+
"h5",
|
|
10176
|
+
"h6"
|
|
10177
|
+
],
|
|
10178
|
+
default: "h1"
|
|
9787
10179
|
}
|
|
9788
10180
|
],
|
|
9789
10181
|
slots: [
|
|
@@ -11061,6 +11453,100 @@ var component_catalog_default = {
|
|
|
11061
11453
|
"Separator"
|
|
11062
11454
|
]
|
|
11063
11455
|
},
|
|
11456
|
+
{
|
|
11457
|
+
name: "SegmentedControl",
|
|
11458
|
+
description: "Single-choice pill group for switching grouping or modes",
|
|
11459
|
+
category: "layout",
|
|
11460
|
+
importPath: "@classic-homes/theme-svelte",
|
|
11461
|
+
props: [
|
|
11462
|
+
{
|
|
11463
|
+
name: "options",
|
|
11464
|
+
type: "SegmentedControlOption[]",
|
|
11465
|
+
required: false,
|
|
11466
|
+
description: "`{ value, label, icon?, disabled? }`"
|
|
11467
|
+
},
|
|
11468
|
+
{
|
|
11469
|
+
name: "value",
|
|
11470
|
+
type: "string",
|
|
11471
|
+
default: "First enabled option",
|
|
11472
|
+
required: false,
|
|
11473
|
+
description: "Selected value (bindable)"
|
|
11474
|
+
},
|
|
11475
|
+
{
|
|
11476
|
+
name: "onValueChange",
|
|
11477
|
+
type: "(value: string) => void",
|
|
11478
|
+
required: false,
|
|
11479
|
+
description: "Called after the selection changes"
|
|
11480
|
+
},
|
|
11481
|
+
{
|
|
11482
|
+
name: "label",
|
|
11483
|
+
type: "string",
|
|
11484
|
+
required: false,
|
|
11485
|
+
description: "Accessible name (required)"
|
|
11486
|
+
},
|
|
11487
|
+
{
|
|
11488
|
+
name: "size",
|
|
11489
|
+
type: "'sm' | 'md'",
|
|
11490
|
+
default: "'md'",
|
|
11491
|
+
required: false,
|
|
11492
|
+
description: "Track height 36px / 40px"
|
|
11493
|
+
},
|
|
11494
|
+
{
|
|
11495
|
+
name: "disabled",
|
|
11496
|
+
type: "boolean",
|
|
11497
|
+
default: "false",
|
|
11498
|
+
required: false,
|
|
11499
|
+
description: "Disables every option"
|
|
11500
|
+
},
|
|
11501
|
+
{
|
|
11502
|
+
name: "class",
|
|
11503
|
+
type: "string",
|
|
11504
|
+
required: false,
|
|
11505
|
+
description: "Additional classes"
|
|
11506
|
+
}
|
|
11507
|
+
],
|
|
11508
|
+
variants: [
|
|
11509
|
+
{
|
|
11510
|
+
name: "size",
|
|
11511
|
+
values: [
|
|
11512
|
+
"sm",
|
|
11513
|
+
"md"
|
|
11514
|
+
],
|
|
11515
|
+
default: "md"
|
|
11516
|
+
}
|
|
11517
|
+
],
|
|
11518
|
+
slots: [
|
|
11519
|
+
{
|
|
11520
|
+
name: "children",
|
|
11521
|
+
description: "Main content",
|
|
11522
|
+
required: false
|
|
11523
|
+
}
|
|
11524
|
+
],
|
|
11525
|
+
events: [],
|
|
11526
|
+
examples: [
|
|
11527
|
+
{
|
|
11528
|
+
title: "Basic Usage",
|
|
11529
|
+
code: `<script>
|
|
11530
|
+
import { SegmentedControl } from '@classic-homes/theme-svelte';
|
|
11531
|
+
|
|
11532
|
+
let groupBy = $state('community');
|
|
11533
|
+
|
|
11534
|
+
const options = [
|
|
11535
|
+
{ value: 'community', label: 'Community' },
|
|
11536
|
+
{ value: 'collection', label: 'Collection' },
|
|
11537
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
11538
|
+
];
|
|
11539
|
+
</script>
|
|
11540
|
+
|
|
11541
|
+
<SegmentedControl label="Group homes by" {options} bind:value={groupBy} />`
|
|
11542
|
+
}
|
|
11543
|
+
],
|
|
11544
|
+
relatedComponents: [
|
|
11545
|
+
"Toolbar",
|
|
11546
|
+
"ViewToggle",
|
|
11547
|
+
"Tabs"
|
|
11548
|
+
]
|
|
11549
|
+
},
|
|
11064
11550
|
{
|
|
11065
11551
|
name: "Select",
|
|
11066
11552
|
description: "Dropdown for selecting from a list of options with grouping support",
|
|
@@ -13162,6 +13648,91 @@ var component_catalog_default = {
|
|
|
13162
13648
|
"AppShell"
|
|
13163
13649
|
]
|
|
13164
13650
|
},
|
|
13651
|
+
{
|
|
13652
|
+
name: "Toolbar",
|
|
13653
|
+
description: "Dark control strip for search, filters, grouping and view toggles under a page header",
|
|
13654
|
+
category: "layout",
|
|
13655
|
+
importPath: "@classic-homes/theme-svelte",
|
|
13656
|
+
props: [
|
|
13657
|
+
{
|
|
13658
|
+
name: "label",
|
|
13659
|
+
type: "string",
|
|
13660
|
+
required: false,
|
|
13661
|
+
description: "Accessible name of the group (required)"
|
|
13662
|
+
},
|
|
13663
|
+
{
|
|
13664
|
+
name: "children",
|
|
13665
|
+
type: "Snippet",
|
|
13666
|
+
required: false,
|
|
13667
|
+
description: "Leading controls (search, filters, count)"
|
|
13668
|
+
},
|
|
13669
|
+
{
|
|
13670
|
+
name: "end",
|
|
13671
|
+
type: "Snippet",
|
|
13672
|
+
required: false,
|
|
13673
|
+
description: "Right-aligned cluster (grouping control, view toggle)"
|
|
13674
|
+
},
|
|
13675
|
+
{
|
|
13676
|
+
name: "class",
|
|
13677
|
+
type: "string",
|
|
13678
|
+
required: false,
|
|
13679
|
+
description: "Additional classes"
|
|
13680
|
+
}
|
|
13681
|
+
],
|
|
13682
|
+
variants: [],
|
|
13683
|
+
slots: [
|
|
13684
|
+
{
|
|
13685
|
+
name: "children",
|
|
13686
|
+
description: "Main content",
|
|
13687
|
+
required: false
|
|
13688
|
+
}
|
|
13689
|
+
],
|
|
13690
|
+
events: [],
|
|
13691
|
+
examples: [
|
|
13692
|
+
{
|
|
13693
|
+
title: "Basic Usage",
|
|
13694
|
+
code: `<script>
|
|
13695
|
+
import {
|
|
13696
|
+
Toolbar,
|
|
13697
|
+
SegmentedControl,
|
|
13698
|
+
ViewToggle,
|
|
13699
|
+
Button,
|
|
13700
|
+
Input,
|
|
13701
|
+
Separator,
|
|
13702
|
+
} from '@classic-homes/theme-svelte';
|
|
13703
|
+
|
|
13704
|
+
let groupBy = $state('community');
|
|
13705
|
+
let view = $state('list');
|
|
13706
|
+
</script>
|
|
13707
|
+
|
|
13708
|
+
<Toolbar label="Inventory tools">
|
|
13709
|
+
<Input placeholder="Search homes, communities, floor plans\u2026" class="max-w-sm" />
|
|
13710
|
+
<Button variant="secondary" size="sm">Filters</Button>
|
|
13711
|
+
<span class="text-sm">89 homes</span>
|
|
13712
|
+
|
|
13713
|
+
{#snippet end()}
|
|
13714
|
+
<SegmentedControl
|
|
13715
|
+
label="Group homes by"
|
|
13716
|
+
size="sm"
|
|
13717
|
+
bind:value={groupBy}
|
|
13718
|
+
options={[
|
|
13719
|
+
{ value: 'community', label: 'Community' },
|
|
13720
|
+
{ value: 'collection', label: 'Collection' },
|
|
13721
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
13722
|
+
]}
|
|
13723
|
+
/>
|
|
13724
|
+
<Separator orientation="vertical" class="h-6 bg-secondary-soft" />
|
|
13725
|
+
<ViewToggle bind:value={view} />
|
|
13726
|
+
{/snippet}
|
|
13727
|
+
</Toolbar>`
|
|
13728
|
+
}
|
|
13729
|
+
],
|
|
13730
|
+
relatedComponents: [
|
|
13731
|
+
"SegmentedControl",
|
|
13732
|
+
"ViewToggle",
|
|
13733
|
+
"ActionHeader"
|
|
13734
|
+
]
|
|
13735
|
+
},
|
|
13165
13736
|
{
|
|
13166
13737
|
name: "Tooltip",
|
|
13167
13738
|
description: "Contextual information displayed on hover",
|
|
@@ -13615,6 +14186,84 @@ var component_catalog_default = {
|
|
|
13615
14186
|
"Lightbox",
|
|
13616
14187
|
"MediaCarousel"
|
|
13617
14188
|
]
|
|
14189
|
+
},
|
|
14190
|
+
{
|
|
14191
|
+
name: "ViewToggle",
|
|
14192
|
+
description: "Icon-only switch between list, grid and map views",
|
|
14193
|
+
category: "layout",
|
|
14194
|
+
importPath: "@classic-homes/theme-svelte",
|
|
14195
|
+
props: [
|
|
14196
|
+
{
|
|
14197
|
+
name: "options",
|
|
14198
|
+
type: "ViewToggleOption[]",
|
|
14199
|
+
default: "list / grid / map",
|
|
14200
|
+
required: false,
|
|
14201
|
+
description: "`{ value, icon, label, disabled? }`"
|
|
14202
|
+
},
|
|
14203
|
+
{
|
|
14204
|
+
name: "value",
|
|
14205
|
+
type: "string",
|
|
14206
|
+
default: "First enabled option",
|
|
14207
|
+
required: false,
|
|
14208
|
+
description: "Selected view (bindable)"
|
|
14209
|
+
},
|
|
14210
|
+
{
|
|
14211
|
+
name: "onValueChange",
|
|
14212
|
+
type: "(value: string) => void",
|
|
14213
|
+
required: false,
|
|
14214
|
+
description: "Called after the selection changes"
|
|
14215
|
+
},
|
|
14216
|
+
{
|
|
14217
|
+
name: "label",
|
|
14218
|
+
type: "string",
|
|
14219
|
+
default: "'View'",
|
|
14220
|
+
required: false,
|
|
14221
|
+
description: "Accessible name of the group"
|
|
14222
|
+
},
|
|
14223
|
+
{
|
|
14224
|
+
name: "disabled",
|
|
14225
|
+
type: "boolean",
|
|
14226
|
+
default: "false",
|
|
14227
|
+
required: false,
|
|
14228
|
+
description: "Disables every option"
|
|
14229
|
+
},
|
|
14230
|
+
{
|
|
14231
|
+
name: "class",
|
|
14232
|
+
type: "string",
|
|
14233
|
+
required: false,
|
|
14234
|
+
description: "Additional classes"
|
|
14235
|
+
}
|
|
14236
|
+
],
|
|
14237
|
+
variants: [],
|
|
14238
|
+
slots: [
|
|
14239
|
+
{
|
|
14240
|
+
name: "children",
|
|
14241
|
+
description: "Main content",
|
|
14242
|
+
required: false
|
|
14243
|
+
}
|
|
14244
|
+
],
|
|
14245
|
+
events: [],
|
|
14246
|
+
examples: [
|
|
14247
|
+
{
|
|
14248
|
+
title: "Basic Usage",
|
|
14249
|
+
code: `<script>
|
|
14250
|
+
import { Toolbar, ViewToggle } from '@classic-homes/theme-svelte';
|
|
14251
|
+
|
|
14252
|
+
let view = $state('list');
|
|
14253
|
+
</script>
|
|
14254
|
+
|
|
14255
|
+
<Toolbar label="Inventory tools">
|
|
14256
|
+
<span class="text-sm">89 homes</span>
|
|
14257
|
+
{#snippet end()}
|
|
14258
|
+
<ViewToggle bind:value={view} />
|
|
14259
|
+
{/snippet}
|
|
14260
|
+
</Toolbar>`
|
|
14261
|
+
}
|
|
14262
|
+
],
|
|
14263
|
+
relatedComponents: [
|
|
14264
|
+
"Toolbar",
|
|
14265
|
+
"SegmentedControl"
|
|
14266
|
+
]
|
|
13618
14267
|
}
|
|
13619
14268
|
]
|
|
13620
14269
|
};
|
|
@@ -13699,7 +14348,7 @@ function registerComponentResources(server) {
|
|
|
13699
14348
|
|
|
13700
14349
|
// src/data/token-definitions.json
|
|
13701
14350
|
var token_definitions_default = {
|
|
13702
|
-
version: "0.
|
|
14351
|
+
version: "0.3.0",
|
|
13703
14352
|
colors: {
|
|
13704
14353
|
brand: [
|
|
13705
14354
|
{
|
|
@@ -13942,16 +14591,41 @@ var token_definitions_default = {
|
|
|
13942
14591
|
foreground: "#ffffff"
|
|
13943
14592
|
},
|
|
13944
14593
|
secondary: {
|
|
13945
|
-
light: "sage-
|
|
14594
|
+
light: "#6c705b (filled sage controls; spec sage-600 #969a82 fails 4.5:1 under white)",
|
|
13946
14595
|
dark: "sage-800 (#54574e)",
|
|
13947
14596
|
hover: {
|
|
13948
|
-
light: "#
|
|
13949
|
-
dark: "#
|
|
14597
|
+
light: "red-700 (#a91c22)",
|
|
14598
|
+
dark: "red-700 (#a91c22)"
|
|
13950
14599
|
},
|
|
13951
14600
|
foreground: {
|
|
13952
|
-
light: "
|
|
14601
|
+
light: "#ffffff",
|
|
13953
14602
|
dark: "gray-100 (#f3f4f6)"
|
|
13954
|
-
}
|
|
14603
|
+
},
|
|
14604
|
+
border: {
|
|
14605
|
+
light: "#ffffff",
|
|
14606
|
+
dark: "charcoal-900 (#292424)"
|
|
14607
|
+
},
|
|
14608
|
+
soft: {
|
|
14609
|
+
light: "sage-600 (#969a82)",
|
|
14610
|
+
dark: "sage-700 (#757968)"
|
|
14611
|
+
},
|
|
14612
|
+
note: "Filled sage action color (e.g. PDF / Filters buttons). Use `muted` for subtle light-sage surfaces."
|
|
14613
|
+
},
|
|
14614
|
+
outline: {
|
|
14615
|
+
light: "sage-600 (#969a82)",
|
|
14616
|
+
dark: "sage-500 (#b6baa4)",
|
|
14617
|
+
hover: {
|
|
14618
|
+
light: "#d5d7cd",
|
|
14619
|
+
dark: "sage-300 (#d0d3c5)"
|
|
14620
|
+
},
|
|
14621
|
+
note: "Outline button border; hover pairs with the primary fill."
|
|
14622
|
+
},
|
|
14623
|
+
toolbar: {
|
|
14624
|
+
light: "#1b373b",
|
|
14625
|
+
dark: "#1b373b",
|
|
14626
|
+
foreground: "#ffffff",
|
|
14627
|
+
border: "#d5d7cd",
|
|
14628
|
+
note: "Dark toolbar strip under page headers (Toolbar component)."
|
|
13955
14629
|
},
|
|
13956
14630
|
accent: {
|
|
13957
14631
|
light: "teal-500 (#3ba4a7)",
|
|
@@ -14237,7 +14911,7 @@ var token_definitions_default = {
|
|
|
14237
14911
|
typography: {
|
|
14238
14912
|
fontFamilies: {
|
|
14239
14913
|
sans: "Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif",
|
|
14240
|
-
serif: "
|
|
14914
|
+
serif: "Spectral, ui-serif, Georgia, Cambria, Times New Roman, Times, serif",
|
|
14241
14915
|
mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
|
|
14242
14916
|
},
|
|
14243
14917
|
fontSizes: {
|
|
@@ -14309,39 +14983,46 @@ var token_definitions_default = {
|
|
|
14309
14983
|
},
|
|
14310
14984
|
headingSizes: {
|
|
14311
14985
|
h1: {
|
|
14312
|
-
size: "2.
|
|
14313
|
-
lineHeight: "
|
|
14314
|
-
fontWeight: "
|
|
14315
|
-
|
|
14986
|
+
size: "2.5rem",
|
|
14987
|
+
lineHeight: "2rem",
|
|
14988
|
+
fontWeight: "500",
|
|
14989
|
+
fontFamily: "serif (Spectral)",
|
|
14990
|
+
fontStyle: "italic",
|
|
14991
|
+
pixels: "40px"
|
|
14316
14992
|
},
|
|
14317
14993
|
h2: {
|
|
14318
|
-
size: "1.
|
|
14994
|
+
size: "1.75rem",
|
|
14319
14995
|
lineHeight: "2.25rem",
|
|
14320
14996
|
fontWeight: "600",
|
|
14321
|
-
|
|
14997
|
+
fontFamily: "sans (Figtree)",
|
|
14998
|
+
pixels: "28px"
|
|
14322
14999
|
},
|
|
14323
15000
|
h3: {
|
|
14324
15001
|
size: "1.5rem",
|
|
14325
15002
|
lineHeight: "2rem",
|
|
14326
15003
|
fontWeight: "600",
|
|
15004
|
+
fontFamily: "sans (Figtree)",
|
|
14327
15005
|
pixels: "24px"
|
|
14328
15006
|
},
|
|
14329
15007
|
h4: {
|
|
14330
15008
|
size: "1.25rem",
|
|
14331
15009
|
lineHeight: "1.75rem",
|
|
14332
15010
|
fontWeight: "600",
|
|
15011
|
+
fontFamily: "sans (Figtree)",
|
|
14333
15012
|
pixels: "20px"
|
|
14334
15013
|
},
|
|
14335
15014
|
h5: {
|
|
14336
15015
|
size: "1.125rem",
|
|
14337
|
-
lineHeight: "1.
|
|
15016
|
+
lineHeight: "1.5rem",
|
|
14338
15017
|
fontWeight: "600",
|
|
15018
|
+
fontFamily: "sans (Figtree)",
|
|
14339
15019
|
pixels: "18px"
|
|
14340
15020
|
},
|
|
14341
15021
|
h6: {
|
|
14342
15022
|
size: "1rem",
|
|
14343
15023
|
lineHeight: "1.5rem",
|
|
14344
15024
|
fontWeight: "600",
|
|
15025
|
+
fontFamily: "sans (Figtree)",
|
|
14345
15026
|
pixels: "16px"
|
|
14346
15027
|
}
|
|
14347
15028
|
},
|
|
@@ -14516,6 +15197,8 @@ var token_definitions_default = {
|
|
|
14516
15197
|
"border",
|
|
14517
15198
|
"input",
|
|
14518
15199
|
"ring",
|
|
15200
|
+
"outline",
|
|
15201
|
+
"toolbar",
|
|
14519
15202
|
"background",
|
|
14520
15203
|
"foreground",
|
|
14521
15204
|
"primary",
|
|
@@ -14535,6 +15218,7 @@ var token_definitions_default = {
|
|
|
14535
15218
|
withForeground: [
|
|
14536
15219
|
"primary",
|
|
14537
15220
|
"secondary",
|
|
15221
|
+
"toolbar",
|
|
14538
15222
|
"destructive",
|
|
14539
15223
|
"muted",
|
|
14540
15224
|
"accent",
|
|
@@ -14550,7 +15234,8 @@ var token_definitions_default = {
|
|
|
14550
15234
|
"secondary",
|
|
14551
15235
|
"destructive",
|
|
14552
15236
|
"muted",
|
|
14553
|
-
"accent"
|
|
15237
|
+
"accent",
|
|
15238
|
+
"outline"
|
|
14554
15239
|
]
|
|
14555
15240
|
}
|
|
14556
15241
|
},
|
|
@@ -14646,7 +15331,7 @@ function registerTokenResources(server) {
|
|
|
14646
15331
|
|
|
14647
15332
|
// src/data/styles-catalog.json
|
|
14648
15333
|
var styles_catalog_default = {
|
|
14649
|
-
version: "0.
|
|
15334
|
+
version: "0.3.0",
|
|
14650
15335
|
package: "@classic-homes/theme-styles",
|
|
14651
15336
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
14652
15337
|
integration: {
|
|
@@ -14671,7 +15356,7 @@ var styles_catalog_default = {
|
|
|
14671
15356
|
features: [
|
|
14672
15357
|
{
|
|
14673
15358
|
name: "Brand Fonts",
|
|
14674
|
-
description: "Imports Google Fonts: Figtree (sans-serif) and
|
|
15359
|
+
description: "Imports Google Fonts: Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics)",
|
|
14675
15360
|
cssVariables: [
|
|
14676
15361
|
"--font-sans",
|
|
14677
15362
|
"--font-serif"
|
|
@@ -14683,10 +15368,10 @@ var styles_catalog_default = {
|
|
|
14683
15368
|
},
|
|
14684
15369
|
{
|
|
14685
15370
|
name: "Heading Styles",
|
|
14686
|
-
description: "h1
|
|
15371
|
+
description: "h1 is the display face (Spectral 500 italic); h2-h6 are Figtree 600",
|
|
14687
15372
|
sizes: {
|
|
14688
|
-
h1: "2.
|
|
14689
|
-
h2: "1.
|
|
15373
|
+
h1: "2.5rem (40px) / line-height 2rem, Spectral 500 italic",
|
|
15374
|
+
h2: "1.75rem (28px) / line-height 2.25rem, Figtree 600",
|
|
14690
15375
|
h3: "1.5rem (24px)",
|
|
14691
15376
|
h4: "1.25rem (20px)",
|
|
14692
15377
|
h5: "1.125rem (18px)",
|
|
@@ -15019,7 +15704,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
15019
15704
|
|
|
15020
15705
|
// src/data/pattern-library.json
|
|
15021
15706
|
var pattern_library_default = {
|
|
15022
|
-
version: "0.
|
|
15707
|
+
version: "0.3.0",
|
|
15023
15708
|
layouts: [
|
|
15024
15709
|
{
|
|
15025
15710
|
id: "dashboard-page",
|
|
@@ -15771,14 +16456,11 @@ var pattern_library_default = {
|
|
|
15771
16456
|
description: "Notification bell icon with dropdown panel for header integration",
|
|
15772
16457
|
components: [
|
|
15773
16458
|
"NotificationBadge",
|
|
15774
|
-
"
|
|
15775
|
-
"NotificationItem",
|
|
15776
|
-
"DropdownMenu",
|
|
15777
|
-
"Button"
|
|
16459
|
+
"DropdownMenu"
|
|
15778
16460
|
],
|
|
15779
16461
|
example: `<script lang="ts">
|
|
15780
|
-
import {
|
|
15781
|
-
import { NotificationBadge
|
|
16462
|
+
import { DropdownMenu } from '@classic-homes/theme-svelte';
|
|
16463
|
+
import { NotificationBadge } from '@classic-homes/theme-svelte/notifications';
|
|
15782
16464
|
import { notificationService } from '@classic-homes/notifications/core';
|
|
15783
16465
|
import type { Notification } from '@classic-homes/notifications/core';
|
|
15784
16466
|
import { goto } from '$app/navigation';
|
|
@@ -15799,39 +16481,26 @@ var pattern_library_default = {
|
|
|
15799
16481
|
}
|
|
15800
16482
|
</script>
|
|
15801
16483
|
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
|
|
15818
|
-
|
|
15819
|
-
<
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
onNotificationClick={handleNotificationClick}
|
|
15823
|
-
emptyTitle="No notifications"
|
|
15824
|
-
emptyDescription="You're all caught up!"
|
|
15825
|
-
/>
|
|
15826
|
-
</div>
|
|
15827
|
-
|
|
15828
|
-
<div class="p-2 border-t">
|
|
15829
|
-
<Button variant="ghost" class="w-full" onclick={() => goto('/notifications')}>
|
|
15830
|
-
View all notifications
|
|
15831
|
-
</Button>
|
|
15832
|
-
</div>
|
|
15833
|
-
</DropdownMenu.Content>
|
|
15834
|
-
</DropdownMenu.Root>`
|
|
16484
|
+
<!-- DropdownMenu takes an items array (not compound parts); style the trigger via triggerClass. -->
|
|
16485
|
+
<DropdownMenu
|
|
16486
|
+
align="end"
|
|
16487
|
+
triggerLabel="Notifications"
|
|
16488
|
+
triggerClass="relative inline-flex h-10 w-10 items-center justify-center rounded-lg hover:bg-muted-hover"
|
|
16489
|
+
items={[
|
|
16490
|
+
{ label: 'Notifications', type: 'label' },
|
|
16491
|
+
...notifications.map((n) => ({
|
|
16492
|
+
label: n.title,
|
|
16493
|
+
onSelect: () => handleNotificationClick(n),
|
|
16494
|
+
})),
|
|
16495
|
+
{ type: 'separator' },
|
|
16496
|
+
{ label: 'Mark all read', icon: 'check', onSelect: () => notificationService.markAllRead() },
|
|
16497
|
+
{ label: 'View all notifications', href: '/notifications' },
|
|
16498
|
+
]}
|
|
16499
|
+
>
|
|
16500
|
+
{#snippet trigger()}
|
|
16501
|
+
<NotificationBadge count={unreadCount} />
|
|
16502
|
+
{/snippet}
|
|
16503
|
+
</DropdownMenu>`
|
|
15835
16504
|
}
|
|
15836
16505
|
],
|
|
15837
16506
|
panels: [
|
|
@@ -16129,7 +16798,7 @@ function registerLayoutResources(server) {
|
|
|
16129
16798
|
|
|
16130
16799
|
// src/data/schema-catalog.json
|
|
16131
16800
|
var schema_catalog_default = {
|
|
16132
|
-
version: "0.
|
|
16801
|
+
version: "0.3.0",
|
|
16133
16802
|
packageName: "@classic-homes/theme-svelte",
|
|
16134
16803
|
importPath: "@classic-homes/theme-svelte",
|
|
16135
16804
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -16937,7 +17606,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
16937
17606
|
|
|
16938
17607
|
// src/data/auth-catalog.json
|
|
16939
17608
|
var auth_catalog_default = {
|
|
16940
|
-
version: "0.
|
|
17609
|
+
version: "0.3.0",
|
|
16941
17610
|
packageName: "@classic-homes/auth",
|
|
16942
17611
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
16943
17612
|
subpackages: {
|
|
@@ -17511,12 +18180,12 @@ var auth_catalog_default = {
|
|
|
17511
18180
|
{
|
|
17512
18181
|
name: "ROLE_NAMES",
|
|
17513
18182
|
type: "readonly RoleName[]",
|
|
17514
|
-
description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, warranty_staff, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
|
|
18183
|
+
description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, stormwater_staff, warranty_staff, hotsheet_editor, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
|
|
17515
18184
|
},
|
|
17516
18185
|
{
|
|
17517
18186
|
name: "ROLE_HIERARCHY",
|
|
17518
18187
|
type: "Record<string, number>",
|
|
17519
|
-
description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater
|
|
18188
|
+
description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater, every <department>_staff and hotsheet_editor 2; manager 3; admin 4."
|
|
17520
18189
|
}
|
|
17521
18190
|
],
|
|
17522
18191
|
types: [
|
|
@@ -19974,7 +20643,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
19974
20643
|
|
|
19975
20644
|
// src/data/notifications-catalog.json
|
|
19976
20645
|
var notifications_catalog_default = {
|
|
19977
|
-
version: "0.
|
|
20646
|
+
version: "0.3.0",
|
|
19978
20647
|
packageName: "@classic-homes/notifications",
|
|
19979
20648
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
19980
20649
|
subpackages: {
|
|
@@ -20886,7 +21555,7 @@ function registerNotificationsResources(server) {
|
|
|
20886
21555
|
|
|
20887
21556
|
// src/data/docs-catalog.json
|
|
20888
21557
|
var docs_catalog_default = {
|
|
20889
|
-
version: "0.
|
|
21558
|
+
version: "0.3.0",
|
|
20890
21559
|
packageName: "@classic-homes/theme-docs",
|
|
20891
21560
|
description: "Markdown documentation components for the Classic theme system",
|
|
20892
21561
|
exports: {
|
|
@@ -21814,7 +22483,7 @@ function registerDocsResources(server) {
|
|
|
21814
22483
|
|
|
21815
22484
|
// src/data/charts-catalog.json
|
|
21816
22485
|
var charts_catalog_default = {
|
|
21817
|
-
version: "0.
|
|
22486
|
+
version: "0.3.0",
|
|
21818
22487
|
packageName: "@classic-homes/charts-core",
|
|
21819
22488
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
21820
22489
|
subpackages: {
|
|
@@ -23651,7 +24320,7 @@ interface SankeyData {
|
|
|
23651
24320
|
|
|
23652
24321
|
// src/data/maps-catalog.json
|
|
23653
24322
|
var maps_catalog_default = {
|
|
23654
|
-
version: "0.
|
|
24323
|
+
version: "0.3.0",
|
|
23655
24324
|
packageName: "@classic-homes/maps-core",
|
|
23656
24325
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
23657
24326
|
subpackages: {
|
|
@@ -28982,7 +29651,7 @@ ${catalog5.quickReference.tailwindConfig}
|
|
|
28982
29651
|
|
|
28983
29652
|
// src/data/native-catalog.json
|
|
28984
29653
|
var native_catalog_default = {
|
|
28985
|
-
version: "0.
|
|
29654
|
+
version: "0.3.0",
|
|
28986
29655
|
packageName: "@classic-homes/native",
|
|
28987
29656
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
28988
29657
|
subpackages: {
|
|
@@ -31357,7 +32026,7 @@ function registerPrompts(server) {
|
|
|
31357
32026
|
// package.json
|
|
31358
32027
|
var package_default = {
|
|
31359
32028
|
name: "@classic-homes/theme-mcp",
|
|
31360
|
-
version: "0.
|
|
32029
|
+
version: "0.3.0",
|
|
31361
32030
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
31362
32031
|
type: "module",
|
|
31363
32032
|
main: "dist/index.js",
|