@classic-homes/theme-mcp 0.2.1 → 0.2.3
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 +574 -81
- package/dist/cli.js.map +1 -1
- package/dist/index.js +574 -81
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,8 +6,201 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
6
6
|
|
|
7
7
|
// src/data/component-catalog.json
|
|
8
8
|
var component_catalog_default = {
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.3",
|
|
10
10
|
components: [
|
|
11
|
+
{
|
|
12
|
+
name: "ActionHeader",
|
|
13
|
+
description: "Responsive app page header with back link, badges and actions that fold into an overflow menu instead of wrapping",
|
|
14
|
+
category: "layout",
|
|
15
|
+
importPath: "@classic-homes/theme-svelte",
|
|
16
|
+
props: [
|
|
17
|
+
{
|
|
18
|
+
name: "title",
|
|
19
|
+
type: "string",
|
|
20
|
+
required: false,
|
|
21
|
+
description: "Page or record title (clamped to two lines)"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "subtitle",
|
|
25
|
+
type: "string",
|
|
26
|
+
required: false,
|
|
27
|
+
description: "Description under the title"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "headingLevel",
|
|
31
|
+
type: "1 | 2 | 3",
|
|
32
|
+
default: "1",
|
|
33
|
+
required: false,
|
|
34
|
+
description: "Heading element for the title"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "caption",
|
|
38
|
+
type: "string",
|
|
39
|
+
required: false,
|
|
40
|
+
description: 'Small note under the actions, right-aligned (e.g. "Updated 5 minutes ago")'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "backHref",
|
|
44
|
+
type: "string",
|
|
45
|
+
required: false,
|
|
46
|
+
description: "Shows a back arrow linking here"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "backLabel",
|
|
50
|
+
type: "string",
|
|
51
|
+
required: false,
|
|
52
|
+
description: 'Back target name; the aria-label becomes "Back to {backLabel}"'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "actions",
|
|
56
|
+
type: "ActionHeaderAction[]",
|
|
57
|
+
default: "[]",
|
|
58
|
+
required: false,
|
|
59
|
+
description: "Header actions (see below)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "collapseAt",
|
|
63
|
+
type: "'auto' | 'sm' | 'md' | 'lg' | 'never'",
|
|
64
|
+
default: "'auto'",
|
|
65
|
+
required: false,
|
|
66
|
+
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`"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "moreLabel",
|
|
70
|
+
type: "string",
|
|
71
|
+
default: "'More actions'",
|
|
72
|
+
required: false,
|
|
73
|
+
description: "Accessible name of the \u22EF trigger"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "media",
|
|
77
|
+
type: "Snippet",
|
|
78
|
+
required: false,
|
|
79
|
+
description: "Leading visual after the back button, e.g. a thumbnail"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "titleSuffix",
|
|
83
|
+
type: "Snippet",
|
|
84
|
+
required: false,
|
|
85
|
+
description: "Small inline content right after the title"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "badges",
|
|
89
|
+
type: "Snippet",
|
|
90
|
+
required: false,
|
|
91
|
+
description: "Status badges or a meta line under the title"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "tools",
|
|
95
|
+
type: "Snippet",
|
|
96
|
+
required: false,
|
|
97
|
+
description: "Icon buttons that are always visible at the end of the header"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "toolbar",
|
|
101
|
+
type: "Snippet",
|
|
102
|
+
required: false,
|
|
103
|
+
description: "Row of controls under the header (view toggles, selects)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "class",
|
|
107
|
+
type: "string",
|
|
108
|
+
required: false,
|
|
109
|
+
description: "Additional classes"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
variants: [
|
|
113
|
+
{
|
|
114
|
+
name: "collapseAt",
|
|
115
|
+
values: [
|
|
116
|
+
"auto",
|
|
117
|
+
"sm",
|
|
118
|
+
"md",
|
|
119
|
+
"lg",
|
|
120
|
+
"never"
|
|
121
|
+
],
|
|
122
|
+
default: "auto"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
slots: [
|
|
126
|
+
{
|
|
127
|
+
name: "children",
|
|
128
|
+
description: "Main content",
|
|
129
|
+
required: false
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
events: [],
|
|
133
|
+
examples: [
|
|
134
|
+
{
|
|
135
|
+
title: "Basic Usage",
|
|
136
|
+
code: `<ActionHeader
|
|
137
|
+
title="Signs"
|
|
138
|
+
subtitle="Physical signage inventory across all communities."
|
|
139
|
+
actions={[
|
|
140
|
+
{ label: 'Export CSV', icon: 'download', onSelect: exportCsv },
|
|
141
|
+
{ label: 'Add sign', icon: 'plus', priority: 'primary', onSelect: openCreate },
|
|
142
|
+
]}
|
|
143
|
+
/>`
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
title: "Record detail",
|
|
147
|
+
code: `<ActionHeader
|
|
148
|
+
title={sign.name}
|
|
149
|
+
subtitle={sign.community}
|
|
150
|
+
backHref="/marketing/signs"
|
|
151
|
+
backLabel="Signs"
|
|
152
|
+
actions={[
|
|
153
|
+
{ label: 'Check in', icon: 'check', priority: 'primary', onSelect: checkIn },
|
|
154
|
+
{ label: 'Edit', icon: 'edit', onSelect: edit },
|
|
155
|
+
{ label: 'Retire', priority: 'overflow', destructive: true, onSelect: retire },
|
|
156
|
+
]}
|
|
157
|
+
>
|
|
158
|
+
{#snippet badges()}
|
|
159
|
+
<Badge>Installed</Badge>
|
|
160
|
+
{/snippet}
|
|
161
|
+
{#snippet tools()}
|
|
162
|
+
<RecordTools />
|
|
163
|
+
{/snippet}
|
|
164
|
+
</ActionHeader>`
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: "With a toolbar",
|
|
168
|
+
code: `<script>
|
|
169
|
+
let groupBy = $state('community');
|
|
170
|
+
let view = $state('list');
|
|
171
|
+
</script>
|
|
172
|
+
|
|
173
|
+
<ActionHeader
|
|
174
|
+
title="All Available Homes"
|
|
175
|
+
subtitle="89 quick move-in homes across all communities"
|
|
176
|
+
caption="Updated 5 minutes ago"
|
|
177
|
+
actions={[{ label: 'PDF', icon: 'file-text', priority: 'primary', variant: 'secondary' }]}
|
|
178
|
+
>
|
|
179
|
+
{#snippet toolbar()}
|
|
180
|
+
<Toolbar label="Inventory tools" class="w-full">
|
|
181
|
+
<Input placeholder="Search homes\u2026" class="max-w-sm" />
|
|
182
|
+
<Button variant="secondary" size="sm">Filters</Button>
|
|
183
|
+
<span class="text-sm">89 homes</span>
|
|
184
|
+
{#snippet end()}
|
|
185
|
+
<SegmentedControl
|
|
186
|
+
label="Group homes by"
|
|
187
|
+
size="sm"
|
|
188
|
+
bind:value={groupBy}
|
|
189
|
+
options={[
|
|
190
|
+
{ value: 'community', label: 'Community' },
|
|
191
|
+
{ value: 'collection', label: 'Collection' },
|
|
192
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
193
|
+
]}
|
|
194
|
+
/>
|
|
195
|
+
<ViewToggle bind:value={view} />
|
|
196
|
+
{/snippet}
|
|
197
|
+
</Toolbar>
|
|
198
|
+
{/snippet}
|
|
199
|
+
</ActionHeader>`
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
relatedComponents: []
|
|
203
|
+
},
|
|
11
204
|
{
|
|
12
205
|
name: "Alert",
|
|
13
206
|
description: "Contextual feedback messages for user actions and system status",
|
|
@@ -1505,21 +1698,11 @@ var component_catalog_default = {
|
|
|
1505
1698
|
description: "The primary action button with solid background.",
|
|
1506
1699
|
code: '<Button variant="default">Default Button</Button>'
|
|
1507
1700
|
},
|
|
1508
|
-
{
|
|
1509
|
-
title: "Secondary",
|
|
1510
|
-
description: "For secondary actions that need less visual emphasis.",
|
|
1511
|
-
code: '<Button variant="secondary">Secondary Button</Button>'
|
|
1512
|
-
},
|
|
1513
1701
|
{
|
|
1514
1702
|
title: "Destructive",
|
|
1515
1703
|
description: "For dangerous or irreversible actions like delete.",
|
|
1516
1704
|
code: '<Button variant="destructive">Delete</Button>'
|
|
1517
1705
|
},
|
|
1518
|
-
{
|
|
1519
|
-
title: "Outline",
|
|
1520
|
-
description: "Bordered button with transparent background.",
|
|
1521
|
-
code: '<Button variant="outline">Outline Button</Button>'
|
|
1522
|
-
},
|
|
1523
1706
|
{
|
|
1524
1707
|
title: "Ghost",
|
|
1525
1708
|
description: "Minimal button with no background until hovered.",
|
|
@@ -6244,7 +6427,7 @@ var component_catalog_default = {
|
|
|
6244
6427
|
type: "SearchResultItem[] | SearchResultGroup[]",
|
|
6245
6428
|
default: "[]",
|
|
6246
6429
|
required: false,
|
|
6247
|
-
description: "Search results to display"
|
|
6430
|
+
description: "Search results to display; grouped results render a heading per group"
|
|
6248
6431
|
},
|
|
6249
6432
|
{
|
|
6250
6433
|
name: "loading",
|
|
@@ -6300,6 +6483,20 @@ var component_catalog_default = {
|
|
|
6300
6483
|
required: false,
|
|
6301
6484
|
description: "Custom empty state renderer"
|
|
6302
6485
|
},
|
|
6486
|
+
{
|
|
6487
|
+
name: "showIcons",
|
|
6488
|
+
type: "boolean",
|
|
6489
|
+
default: "false",
|
|
6490
|
+
required: false,
|
|
6491
|
+
description: "Show each result's `icon` (Icon name) beside it"
|
|
6492
|
+
},
|
|
6493
|
+
{
|
|
6494
|
+
name: "resultsMaxHeight",
|
|
6495
|
+
type: "string",
|
|
6496
|
+
default: "'300px'",
|
|
6497
|
+
required: false,
|
|
6498
|
+
description: "Max height of the results list (CSS length)"
|
|
6499
|
+
},
|
|
6303
6500
|
{
|
|
6304
6501
|
name: "class",
|
|
6305
6502
|
type: "string",
|
|
@@ -7986,7 +8183,7 @@ var component_catalog_default = {
|
|
|
7986
8183
|
name: "subtitle",
|
|
7987
8184
|
type: "string",
|
|
7988
8185
|
required: false,
|
|
7989
|
-
description: "Optional
|
|
8186
|
+
description: "Optional product label (Figtree 600, uppercase, brand red, left-aligned under the wordmark)"
|
|
7990
8187
|
},
|
|
7991
8188
|
{
|
|
7992
8189
|
name: "environment",
|
|
@@ -9742,6 +9939,13 @@ var component_catalog_default = {
|
|
|
9742
9939
|
required: false,
|
|
9743
9940
|
description: "Visual variant"
|
|
9744
9941
|
},
|
|
9942
|
+
{
|
|
9943
|
+
name: "as",
|
|
9944
|
+
type: "'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
|
|
9945
|
+
default: "'h1'",
|
|
9946
|
+
required: false,
|
|
9947
|
+
description: "Heading element"
|
|
9948
|
+
},
|
|
9745
9949
|
{
|
|
9746
9950
|
name: "class",
|
|
9747
9951
|
type: "string",
|
|
@@ -9765,6 +9969,18 @@ var component_catalog_default = {
|
|
|
9765
9969
|
"form"
|
|
9766
9970
|
],
|
|
9767
9971
|
default: "default"
|
|
9972
|
+
},
|
|
9973
|
+
{
|
|
9974
|
+
name: "as",
|
|
9975
|
+
values: [
|
|
9976
|
+
"h1",
|
|
9977
|
+
"h2",
|
|
9978
|
+
"h3",
|
|
9979
|
+
"h4",
|
|
9980
|
+
"h5",
|
|
9981
|
+
"h6"
|
|
9982
|
+
],
|
|
9983
|
+
default: "h1"
|
|
9768
9984
|
}
|
|
9769
9985
|
],
|
|
9770
9986
|
slots: [
|
|
@@ -11042,6 +11258,100 @@ var component_catalog_default = {
|
|
|
11042
11258
|
"Separator"
|
|
11043
11259
|
]
|
|
11044
11260
|
},
|
|
11261
|
+
{
|
|
11262
|
+
name: "SegmentedControl",
|
|
11263
|
+
description: "Single-choice pill group for switching grouping or modes",
|
|
11264
|
+
category: "layout",
|
|
11265
|
+
importPath: "@classic-homes/theme-svelte",
|
|
11266
|
+
props: [
|
|
11267
|
+
{
|
|
11268
|
+
name: "options",
|
|
11269
|
+
type: "SegmentedControlOption[]",
|
|
11270
|
+
required: false,
|
|
11271
|
+
description: "`{ value, label, icon?, disabled? }`"
|
|
11272
|
+
},
|
|
11273
|
+
{
|
|
11274
|
+
name: "value",
|
|
11275
|
+
type: "string",
|
|
11276
|
+
default: "First enabled option",
|
|
11277
|
+
required: false,
|
|
11278
|
+
description: "Selected value (bindable)"
|
|
11279
|
+
},
|
|
11280
|
+
{
|
|
11281
|
+
name: "onValueChange",
|
|
11282
|
+
type: "(value: string) => void",
|
|
11283
|
+
required: false,
|
|
11284
|
+
description: "Called after the selection changes"
|
|
11285
|
+
},
|
|
11286
|
+
{
|
|
11287
|
+
name: "label",
|
|
11288
|
+
type: "string",
|
|
11289
|
+
required: false,
|
|
11290
|
+
description: "Accessible name (required)"
|
|
11291
|
+
},
|
|
11292
|
+
{
|
|
11293
|
+
name: "size",
|
|
11294
|
+
type: "'sm' | 'md'",
|
|
11295
|
+
default: "'md'",
|
|
11296
|
+
required: false,
|
|
11297
|
+
description: "Track height 36px / 40px"
|
|
11298
|
+
},
|
|
11299
|
+
{
|
|
11300
|
+
name: "disabled",
|
|
11301
|
+
type: "boolean",
|
|
11302
|
+
default: "false",
|
|
11303
|
+
required: false,
|
|
11304
|
+
description: "Disables every option"
|
|
11305
|
+
},
|
|
11306
|
+
{
|
|
11307
|
+
name: "class",
|
|
11308
|
+
type: "string",
|
|
11309
|
+
required: false,
|
|
11310
|
+
description: "Additional classes"
|
|
11311
|
+
}
|
|
11312
|
+
],
|
|
11313
|
+
variants: [
|
|
11314
|
+
{
|
|
11315
|
+
name: "size",
|
|
11316
|
+
values: [
|
|
11317
|
+
"sm",
|
|
11318
|
+
"md"
|
|
11319
|
+
],
|
|
11320
|
+
default: "md"
|
|
11321
|
+
}
|
|
11322
|
+
],
|
|
11323
|
+
slots: [
|
|
11324
|
+
{
|
|
11325
|
+
name: "children",
|
|
11326
|
+
description: "Main content",
|
|
11327
|
+
required: false
|
|
11328
|
+
}
|
|
11329
|
+
],
|
|
11330
|
+
events: [],
|
|
11331
|
+
examples: [
|
|
11332
|
+
{
|
|
11333
|
+
title: "Basic Usage",
|
|
11334
|
+
code: `<script>
|
|
11335
|
+
import { SegmentedControl } from '@classic-homes/theme-svelte';
|
|
11336
|
+
|
|
11337
|
+
let groupBy = $state('community');
|
|
11338
|
+
|
|
11339
|
+
const options = [
|
|
11340
|
+
{ value: 'community', label: 'Community' },
|
|
11341
|
+
{ value: 'collection', label: 'Collection' },
|
|
11342
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
11343
|
+
];
|
|
11344
|
+
</script>
|
|
11345
|
+
|
|
11346
|
+
<SegmentedControl label="Group homes by" {options} bind:value={groupBy} />`
|
|
11347
|
+
}
|
|
11348
|
+
],
|
|
11349
|
+
relatedComponents: [
|
|
11350
|
+
"Toolbar",
|
|
11351
|
+
"ViewToggle",
|
|
11352
|
+
"Tabs"
|
|
11353
|
+
]
|
|
11354
|
+
},
|
|
11045
11355
|
{
|
|
11046
11356
|
name: "Select",
|
|
11047
11357
|
description: "Dropdown for selecting from a list of options with grouping support",
|
|
@@ -13143,6 +13453,91 @@ var component_catalog_default = {
|
|
|
13143
13453
|
"AppShell"
|
|
13144
13454
|
]
|
|
13145
13455
|
},
|
|
13456
|
+
{
|
|
13457
|
+
name: "Toolbar",
|
|
13458
|
+
description: "Dark control strip for search, filters, grouping and view toggles under a page header",
|
|
13459
|
+
category: "layout",
|
|
13460
|
+
importPath: "@classic-homes/theme-svelte",
|
|
13461
|
+
props: [
|
|
13462
|
+
{
|
|
13463
|
+
name: "label",
|
|
13464
|
+
type: "string",
|
|
13465
|
+
required: false,
|
|
13466
|
+
description: "Accessible name of the group (required)"
|
|
13467
|
+
},
|
|
13468
|
+
{
|
|
13469
|
+
name: "children",
|
|
13470
|
+
type: "Snippet",
|
|
13471
|
+
required: false,
|
|
13472
|
+
description: "Leading controls (search, filters, count)"
|
|
13473
|
+
},
|
|
13474
|
+
{
|
|
13475
|
+
name: "end",
|
|
13476
|
+
type: "Snippet",
|
|
13477
|
+
required: false,
|
|
13478
|
+
description: "Right-aligned cluster (grouping control, view toggle)"
|
|
13479
|
+
},
|
|
13480
|
+
{
|
|
13481
|
+
name: "class",
|
|
13482
|
+
type: "string",
|
|
13483
|
+
required: false,
|
|
13484
|
+
description: "Additional classes"
|
|
13485
|
+
}
|
|
13486
|
+
],
|
|
13487
|
+
variants: [],
|
|
13488
|
+
slots: [
|
|
13489
|
+
{
|
|
13490
|
+
name: "children",
|
|
13491
|
+
description: "Main content",
|
|
13492
|
+
required: false
|
|
13493
|
+
}
|
|
13494
|
+
],
|
|
13495
|
+
events: [],
|
|
13496
|
+
examples: [
|
|
13497
|
+
{
|
|
13498
|
+
title: "Basic Usage",
|
|
13499
|
+
code: `<script>
|
|
13500
|
+
import {
|
|
13501
|
+
Toolbar,
|
|
13502
|
+
SegmentedControl,
|
|
13503
|
+
ViewToggle,
|
|
13504
|
+
Button,
|
|
13505
|
+
Input,
|
|
13506
|
+
Separator,
|
|
13507
|
+
} from '@classic-homes/theme-svelte';
|
|
13508
|
+
|
|
13509
|
+
let groupBy = $state('community');
|
|
13510
|
+
let view = $state('list');
|
|
13511
|
+
</script>
|
|
13512
|
+
|
|
13513
|
+
<Toolbar label="Inventory tools">
|
|
13514
|
+
<Input placeholder="Search homes, communities, floor plans\u2026" class="max-w-sm" />
|
|
13515
|
+
<Button variant="secondary" size="sm">Filters</Button>
|
|
13516
|
+
<span class="text-sm">89 homes</span>
|
|
13517
|
+
|
|
13518
|
+
{#snippet end()}
|
|
13519
|
+
<SegmentedControl
|
|
13520
|
+
label="Group homes by"
|
|
13521
|
+
size="sm"
|
|
13522
|
+
bind:value={groupBy}
|
|
13523
|
+
options={[
|
|
13524
|
+
{ value: 'community', label: 'Community' },
|
|
13525
|
+
{ value: 'collection', label: 'Collection' },
|
|
13526
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
13527
|
+
]}
|
|
13528
|
+
/>
|
|
13529
|
+
<Separator orientation="vertical" class="h-6 bg-secondary-soft" />
|
|
13530
|
+
<ViewToggle bind:value={view} />
|
|
13531
|
+
{/snippet}
|
|
13532
|
+
</Toolbar>`
|
|
13533
|
+
}
|
|
13534
|
+
],
|
|
13535
|
+
relatedComponents: [
|
|
13536
|
+
"SegmentedControl",
|
|
13537
|
+
"ViewToggle",
|
|
13538
|
+
"ActionHeader"
|
|
13539
|
+
]
|
|
13540
|
+
},
|
|
13146
13541
|
{
|
|
13147
13542
|
name: "Tooltip",
|
|
13148
13543
|
description: "Contextual information displayed on hover",
|
|
@@ -13596,6 +13991,84 @@ var component_catalog_default = {
|
|
|
13596
13991
|
"Lightbox",
|
|
13597
13992
|
"MediaCarousel"
|
|
13598
13993
|
]
|
|
13994
|
+
},
|
|
13995
|
+
{
|
|
13996
|
+
name: "ViewToggle",
|
|
13997
|
+
description: "Icon-only switch between list, grid and map views",
|
|
13998
|
+
category: "layout",
|
|
13999
|
+
importPath: "@classic-homes/theme-svelte",
|
|
14000
|
+
props: [
|
|
14001
|
+
{
|
|
14002
|
+
name: "options",
|
|
14003
|
+
type: "ViewToggleOption[]",
|
|
14004
|
+
default: "list / grid / map",
|
|
14005
|
+
required: false,
|
|
14006
|
+
description: "`{ value, icon, label, disabled? }`"
|
|
14007
|
+
},
|
|
14008
|
+
{
|
|
14009
|
+
name: "value",
|
|
14010
|
+
type: "string",
|
|
14011
|
+
default: "First enabled option",
|
|
14012
|
+
required: false,
|
|
14013
|
+
description: "Selected view (bindable)"
|
|
14014
|
+
},
|
|
14015
|
+
{
|
|
14016
|
+
name: "onValueChange",
|
|
14017
|
+
type: "(value: string) => void",
|
|
14018
|
+
required: false,
|
|
14019
|
+
description: "Called after the selection changes"
|
|
14020
|
+
},
|
|
14021
|
+
{
|
|
14022
|
+
name: "label",
|
|
14023
|
+
type: "string",
|
|
14024
|
+
default: "'View'",
|
|
14025
|
+
required: false,
|
|
14026
|
+
description: "Accessible name of the group"
|
|
14027
|
+
},
|
|
14028
|
+
{
|
|
14029
|
+
name: "disabled",
|
|
14030
|
+
type: "boolean",
|
|
14031
|
+
default: "false",
|
|
14032
|
+
required: false,
|
|
14033
|
+
description: "Disables every option"
|
|
14034
|
+
},
|
|
14035
|
+
{
|
|
14036
|
+
name: "class",
|
|
14037
|
+
type: "string",
|
|
14038
|
+
required: false,
|
|
14039
|
+
description: "Additional classes"
|
|
14040
|
+
}
|
|
14041
|
+
],
|
|
14042
|
+
variants: [],
|
|
14043
|
+
slots: [
|
|
14044
|
+
{
|
|
14045
|
+
name: "children",
|
|
14046
|
+
description: "Main content",
|
|
14047
|
+
required: false
|
|
14048
|
+
}
|
|
14049
|
+
],
|
|
14050
|
+
events: [],
|
|
14051
|
+
examples: [
|
|
14052
|
+
{
|
|
14053
|
+
title: "Basic Usage",
|
|
14054
|
+
code: `<script>
|
|
14055
|
+
import { Toolbar, ViewToggle } from '@classic-homes/theme-svelte';
|
|
14056
|
+
|
|
14057
|
+
let view = $state('list');
|
|
14058
|
+
</script>
|
|
14059
|
+
|
|
14060
|
+
<Toolbar label="Inventory tools">
|
|
14061
|
+
<span class="text-sm">89 homes</span>
|
|
14062
|
+
{#snippet end()}
|
|
14063
|
+
<ViewToggle bind:value={view} />
|
|
14064
|
+
{/snippet}
|
|
14065
|
+
</Toolbar>`
|
|
14066
|
+
}
|
|
14067
|
+
],
|
|
14068
|
+
relatedComponents: [
|
|
14069
|
+
"Toolbar",
|
|
14070
|
+
"SegmentedControl"
|
|
14071
|
+
]
|
|
13599
14072
|
}
|
|
13600
14073
|
]
|
|
13601
14074
|
};
|
|
@@ -13680,7 +14153,7 @@ function registerComponentResources(server) {
|
|
|
13680
14153
|
|
|
13681
14154
|
// src/data/token-definitions.json
|
|
13682
14155
|
var token_definitions_default = {
|
|
13683
|
-
version: "0.2.
|
|
14156
|
+
version: "0.2.3",
|
|
13684
14157
|
colors: {
|
|
13685
14158
|
brand: [
|
|
13686
14159
|
{
|
|
@@ -13923,16 +14396,41 @@ var token_definitions_default = {
|
|
|
13923
14396
|
foreground: "#ffffff"
|
|
13924
14397
|
},
|
|
13925
14398
|
secondary: {
|
|
13926
|
-
light: "sage-
|
|
14399
|
+
light: "#6c705b (filled sage controls; spec sage-600 #969a82 fails 4.5:1 under white)",
|
|
13927
14400
|
dark: "sage-800 (#54574e)",
|
|
13928
14401
|
hover: {
|
|
13929
|
-
light: "#
|
|
13930
|
-
dark: "#
|
|
14402
|
+
light: "red-700 (#a91c22)",
|
|
14403
|
+
dark: "red-700 (#a91c22)"
|
|
13931
14404
|
},
|
|
13932
14405
|
foreground: {
|
|
13933
|
-
light: "
|
|
14406
|
+
light: "#ffffff",
|
|
13934
14407
|
dark: "gray-100 (#f3f4f6)"
|
|
13935
|
-
}
|
|
14408
|
+
},
|
|
14409
|
+
border: {
|
|
14410
|
+
light: "#ffffff",
|
|
14411
|
+
dark: "charcoal-900 (#292424)"
|
|
14412
|
+
},
|
|
14413
|
+
soft: {
|
|
14414
|
+
light: "sage-600 (#969a82)",
|
|
14415
|
+
dark: "sage-700 (#757968)"
|
|
14416
|
+
},
|
|
14417
|
+
note: "Filled sage action color (e.g. PDF / Filters buttons). Use `muted` for subtle light-sage surfaces."
|
|
14418
|
+
},
|
|
14419
|
+
outline: {
|
|
14420
|
+
light: "sage-600 (#969a82)",
|
|
14421
|
+
dark: "sage-500 (#b6baa4)",
|
|
14422
|
+
hover: {
|
|
14423
|
+
light: "#d5d7cd",
|
|
14424
|
+
dark: "sage-300 (#d0d3c5)"
|
|
14425
|
+
},
|
|
14426
|
+
note: "Outline button border; hover pairs with the primary fill."
|
|
14427
|
+
},
|
|
14428
|
+
toolbar: {
|
|
14429
|
+
light: "#1b373b",
|
|
14430
|
+
dark: "#1b373b",
|
|
14431
|
+
foreground: "#ffffff",
|
|
14432
|
+
border: "#d5d7cd",
|
|
14433
|
+
note: "Dark toolbar strip under page headers (Toolbar component)."
|
|
13936
14434
|
},
|
|
13937
14435
|
accent: {
|
|
13938
14436
|
light: "teal-500 (#3ba4a7)",
|
|
@@ -14218,7 +14716,7 @@ var token_definitions_default = {
|
|
|
14218
14716
|
typography: {
|
|
14219
14717
|
fontFamilies: {
|
|
14220
14718
|
sans: "Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif",
|
|
14221
|
-
serif: "
|
|
14719
|
+
serif: "Spectral, ui-serif, Georgia, Cambria, Times New Roman, Times, serif",
|
|
14222
14720
|
mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
|
|
14223
14721
|
},
|
|
14224
14722
|
fontSizes: {
|
|
@@ -14290,39 +14788,46 @@ var token_definitions_default = {
|
|
|
14290
14788
|
},
|
|
14291
14789
|
headingSizes: {
|
|
14292
14790
|
h1: {
|
|
14293
|
-
size: "2.
|
|
14294
|
-
lineHeight: "
|
|
14295
|
-
fontWeight: "
|
|
14296
|
-
|
|
14791
|
+
size: "2.5rem",
|
|
14792
|
+
lineHeight: "2rem",
|
|
14793
|
+
fontWeight: "500",
|
|
14794
|
+
fontFamily: "serif (Spectral)",
|
|
14795
|
+
fontStyle: "italic",
|
|
14796
|
+
pixels: "40px"
|
|
14297
14797
|
},
|
|
14298
14798
|
h2: {
|
|
14299
|
-
size: "1.
|
|
14799
|
+
size: "1.75rem",
|
|
14300
14800
|
lineHeight: "2.25rem",
|
|
14301
14801
|
fontWeight: "600",
|
|
14302
|
-
|
|
14802
|
+
fontFamily: "sans (Figtree)",
|
|
14803
|
+
pixels: "28px"
|
|
14303
14804
|
},
|
|
14304
14805
|
h3: {
|
|
14305
14806
|
size: "1.5rem",
|
|
14306
14807
|
lineHeight: "2rem",
|
|
14307
14808
|
fontWeight: "600",
|
|
14809
|
+
fontFamily: "sans (Figtree)",
|
|
14308
14810
|
pixels: "24px"
|
|
14309
14811
|
},
|
|
14310
14812
|
h4: {
|
|
14311
14813
|
size: "1.25rem",
|
|
14312
14814
|
lineHeight: "1.75rem",
|
|
14313
14815
|
fontWeight: "600",
|
|
14816
|
+
fontFamily: "sans (Figtree)",
|
|
14314
14817
|
pixels: "20px"
|
|
14315
14818
|
},
|
|
14316
14819
|
h5: {
|
|
14317
14820
|
size: "1.125rem",
|
|
14318
|
-
lineHeight: "1.
|
|
14821
|
+
lineHeight: "1.5rem",
|
|
14319
14822
|
fontWeight: "600",
|
|
14823
|
+
fontFamily: "sans (Figtree)",
|
|
14320
14824
|
pixels: "18px"
|
|
14321
14825
|
},
|
|
14322
14826
|
h6: {
|
|
14323
14827
|
size: "1rem",
|
|
14324
14828
|
lineHeight: "1.5rem",
|
|
14325
14829
|
fontWeight: "600",
|
|
14830
|
+
fontFamily: "sans (Figtree)",
|
|
14326
14831
|
pixels: "16px"
|
|
14327
14832
|
}
|
|
14328
14833
|
},
|
|
@@ -14497,6 +15002,8 @@ var token_definitions_default = {
|
|
|
14497
15002
|
"border",
|
|
14498
15003
|
"input",
|
|
14499
15004
|
"ring",
|
|
15005
|
+
"outline",
|
|
15006
|
+
"toolbar",
|
|
14500
15007
|
"background",
|
|
14501
15008
|
"foreground",
|
|
14502
15009
|
"primary",
|
|
@@ -14516,6 +15023,7 @@ var token_definitions_default = {
|
|
|
14516
15023
|
withForeground: [
|
|
14517
15024
|
"primary",
|
|
14518
15025
|
"secondary",
|
|
15026
|
+
"toolbar",
|
|
14519
15027
|
"destructive",
|
|
14520
15028
|
"muted",
|
|
14521
15029
|
"accent",
|
|
@@ -14531,7 +15039,8 @@ var token_definitions_default = {
|
|
|
14531
15039
|
"secondary",
|
|
14532
15040
|
"destructive",
|
|
14533
15041
|
"muted",
|
|
14534
|
-
"accent"
|
|
15042
|
+
"accent",
|
|
15043
|
+
"outline"
|
|
14535
15044
|
]
|
|
14536
15045
|
}
|
|
14537
15046
|
},
|
|
@@ -14627,7 +15136,7 @@ function registerTokenResources(server) {
|
|
|
14627
15136
|
|
|
14628
15137
|
// src/data/styles-catalog.json
|
|
14629
15138
|
var styles_catalog_default = {
|
|
14630
|
-
version: "0.2.
|
|
15139
|
+
version: "0.2.3",
|
|
14631
15140
|
package: "@classic-homes/theme-styles",
|
|
14632
15141
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
14633
15142
|
integration: {
|
|
@@ -14652,7 +15161,7 @@ var styles_catalog_default = {
|
|
|
14652
15161
|
features: [
|
|
14653
15162
|
{
|
|
14654
15163
|
name: "Brand Fonts",
|
|
14655
|
-
description: "Imports Google Fonts: Figtree (sans-serif) and
|
|
15164
|
+
description: "Imports Google Fonts: Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics)",
|
|
14656
15165
|
cssVariables: [
|
|
14657
15166
|
"--font-sans",
|
|
14658
15167
|
"--font-serif"
|
|
@@ -14664,10 +15173,10 @@ var styles_catalog_default = {
|
|
|
14664
15173
|
},
|
|
14665
15174
|
{
|
|
14666
15175
|
name: "Heading Styles",
|
|
14667
|
-
description: "h1
|
|
15176
|
+
description: "h1 is the display face (Spectral 500 italic); h2-h6 are Figtree 600",
|
|
14668
15177
|
sizes: {
|
|
14669
|
-
h1: "2.
|
|
14670
|
-
h2: "1.
|
|
15178
|
+
h1: "2.5rem (40px) / line-height 2rem, Spectral 500 italic",
|
|
15179
|
+
h2: "1.75rem (28px) / line-height 2.25rem, Figtree 600",
|
|
14671
15180
|
h3: "1.5rem (24px)",
|
|
14672
15181
|
h4: "1.25rem (20px)",
|
|
14673
15182
|
h5: "1.125rem (18px)",
|
|
@@ -15000,7 +15509,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
15000
15509
|
|
|
15001
15510
|
// src/data/pattern-library.json
|
|
15002
15511
|
var pattern_library_default = {
|
|
15003
|
-
version: "0.2.
|
|
15512
|
+
version: "0.2.3",
|
|
15004
15513
|
layouts: [
|
|
15005
15514
|
{
|
|
15006
15515
|
id: "dashboard-page",
|
|
@@ -15752,14 +16261,11 @@ var pattern_library_default = {
|
|
|
15752
16261
|
description: "Notification bell icon with dropdown panel for header integration",
|
|
15753
16262
|
components: [
|
|
15754
16263
|
"NotificationBadge",
|
|
15755
|
-
"
|
|
15756
|
-
"NotificationItem",
|
|
15757
|
-
"DropdownMenu",
|
|
15758
|
-
"Button"
|
|
16264
|
+
"DropdownMenu"
|
|
15759
16265
|
],
|
|
15760
16266
|
example: `<script lang="ts">
|
|
15761
|
-
import {
|
|
15762
|
-
import { NotificationBadge
|
|
16267
|
+
import { DropdownMenu } from '@classic-homes/theme-svelte';
|
|
16268
|
+
import { NotificationBadge } from '@classic-homes/theme-svelte/notifications';
|
|
15763
16269
|
import { notificationService } from '@classic-homes/notifications/core';
|
|
15764
16270
|
import type { Notification } from '@classic-homes/notifications/core';
|
|
15765
16271
|
import { goto } from '$app/navigation';
|
|
@@ -15780,39 +16286,26 @@ var pattern_library_default = {
|
|
|
15780
16286
|
}
|
|
15781
16287
|
</script>
|
|
15782
16288
|
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
<
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
onNotificationClick={handleNotificationClick}
|
|
15804
|
-
emptyTitle="No notifications"
|
|
15805
|
-
emptyDescription="You're all caught up!"
|
|
15806
|
-
/>
|
|
15807
|
-
</div>
|
|
15808
|
-
|
|
15809
|
-
<div class="p-2 border-t">
|
|
15810
|
-
<Button variant="ghost" class="w-full" onclick={() => goto('/notifications')}>
|
|
15811
|
-
View all notifications
|
|
15812
|
-
</Button>
|
|
15813
|
-
</div>
|
|
15814
|
-
</DropdownMenu.Content>
|
|
15815
|
-
</DropdownMenu.Root>`
|
|
16289
|
+
<!-- DropdownMenu takes an items array (not compound parts); style the trigger via triggerClass. -->
|
|
16290
|
+
<DropdownMenu
|
|
16291
|
+
align="end"
|
|
16292
|
+
triggerLabel="Notifications"
|
|
16293
|
+
triggerClass="relative inline-flex h-10 w-10 items-center justify-center rounded-lg hover:bg-muted-hover"
|
|
16294
|
+
items={[
|
|
16295
|
+
{ label: 'Notifications', type: 'label' },
|
|
16296
|
+
...notifications.map((n) => ({
|
|
16297
|
+
label: n.title,
|
|
16298
|
+
onSelect: () => handleNotificationClick(n),
|
|
16299
|
+
})),
|
|
16300
|
+
{ type: 'separator' },
|
|
16301
|
+
{ label: 'Mark all read', icon: 'check', onSelect: () => notificationService.markAllRead() },
|
|
16302
|
+
{ label: 'View all notifications', href: '/notifications' },
|
|
16303
|
+
]}
|
|
16304
|
+
>
|
|
16305
|
+
{#snippet trigger()}
|
|
16306
|
+
<NotificationBadge count={unreadCount} />
|
|
16307
|
+
{/snippet}
|
|
16308
|
+
</DropdownMenu>`
|
|
15816
16309
|
}
|
|
15817
16310
|
],
|
|
15818
16311
|
panels: [
|
|
@@ -16110,7 +16603,7 @@ function registerLayoutResources(server) {
|
|
|
16110
16603
|
|
|
16111
16604
|
// src/data/schema-catalog.json
|
|
16112
16605
|
var schema_catalog_default = {
|
|
16113
|
-
version: "0.2.
|
|
16606
|
+
version: "0.2.3",
|
|
16114
16607
|
packageName: "@classic-homes/theme-svelte",
|
|
16115
16608
|
importPath: "@classic-homes/theme-svelte",
|
|
16116
16609
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -16918,7 +17411,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
16918
17411
|
|
|
16919
17412
|
// src/data/auth-catalog.json
|
|
16920
17413
|
var auth_catalog_default = {
|
|
16921
|
-
version: "0.2.
|
|
17414
|
+
version: "0.2.3",
|
|
16922
17415
|
packageName: "@classic-homes/auth",
|
|
16923
17416
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
16924
17417
|
subpackages: {
|
|
@@ -19955,7 +20448,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
19955
20448
|
|
|
19956
20449
|
// src/data/notifications-catalog.json
|
|
19957
20450
|
var notifications_catalog_default = {
|
|
19958
|
-
version: "0.2.
|
|
20451
|
+
version: "0.2.3",
|
|
19959
20452
|
packageName: "@classic-homes/notifications",
|
|
19960
20453
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
19961
20454
|
subpackages: {
|
|
@@ -20867,7 +21360,7 @@ function registerNotificationsResources(server) {
|
|
|
20867
21360
|
|
|
20868
21361
|
// src/data/docs-catalog.json
|
|
20869
21362
|
var docs_catalog_default = {
|
|
20870
|
-
version: "0.2.
|
|
21363
|
+
version: "0.2.3",
|
|
20871
21364
|
packageName: "@classic-homes/theme-docs",
|
|
20872
21365
|
description: "Markdown documentation components for the Classic theme system",
|
|
20873
21366
|
exports: {
|
|
@@ -21795,7 +22288,7 @@ function registerDocsResources(server) {
|
|
|
21795
22288
|
|
|
21796
22289
|
// src/data/charts-catalog.json
|
|
21797
22290
|
var charts_catalog_default = {
|
|
21798
|
-
version: "0.2.
|
|
22291
|
+
version: "0.2.3",
|
|
21799
22292
|
packageName: "@classic-homes/charts-core",
|
|
21800
22293
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
21801
22294
|
subpackages: {
|
|
@@ -23632,7 +24125,7 @@ interface SankeyData {
|
|
|
23632
24125
|
|
|
23633
24126
|
// src/data/maps-catalog.json
|
|
23634
24127
|
var maps_catalog_default = {
|
|
23635
|
-
version: "0.2.
|
|
24128
|
+
version: "0.2.3",
|
|
23636
24129
|
packageName: "@classic-homes/maps-core",
|
|
23637
24130
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
23638
24131
|
subpackages: {
|
|
@@ -28963,7 +29456,7 @@ ${catalog5.quickReference.tailwindConfig}
|
|
|
28963
29456
|
|
|
28964
29457
|
// src/data/native-catalog.json
|
|
28965
29458
|
var native_catalog_default = {
|
|
28966
|
-
version: "0.2.
|
|
29459
|
+
version: "0.2.3",
|
|
28967
29460
|
packageName: "@classic-homes/native",
|
|
28968
29461
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
28969
29462
|
subpackages: {
|
|
@@ -31338,7 +31831,7 @@ function registerPrompts(server) {
|
|
|
31338
31831
|
// package.json
|
|
31339
31832
|
var package_default = {
|
|
31340
31833
|
name: "@classic-homes/theme-mcp",
|
|
31341
|
-
version: "0.2.
|
|
31834
|
+
version: "0.2.3",
|
|
31342
31835
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
31343
31836
|
type: "module",
|
|
31344
31837
|
main: "dist/index.js",
|