@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/cli.js
CHANGED
|
@@ -11,8 +11,201 @@ 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.2.
|
|
14
|
+
version: "0.2.3",
|
|
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
|
+
},
|
|
16
209
|
{
|
|
17
210
|
name: "Alert",
|
|
18
211
|
description: "Contextual feedback messages for user actions and system status",
|
|
@@ -1510,21 +1703,11 @@ var component_catalog_default = {
|
|
|
1510
1703
|
description: "The primary action button with solid background.",
|
|
1511
1704
|
code: '<Button variant="default">Default Button</Button>'
|
|
1512
1705
|
},
|
|
1513
|
-
{
|
|
1514
|
-
title: "Secondary",
|
|
1515
|
-
description: "For secondary actions that need less visual emphasis.",
|
|
1516
|
-
code: '<Button variant="secondary">Secondary Button</Button>'
|
|
1517
|
-
},
|
|
1518
1706
|
{
|
|
1519
1707
|
title: "Destructive",
|
|
1520
1708
|
description: "For dangerous or irreversible actions like delete.",
|
|
1521
1709
|
code: '<Button variant="destructive">Delete</Button>'
|
|
1522
1710
|
},
|
|
1523
|
-
{
|
|
1524
|
-
title: "Outline",
|
|
1525
|
-
description: "Bordered button with transparent background.",
|
|
1526
|
-
code: '<Button variant="outline">Outline Button</Button>'
|
|
1527
|
-
},
|
|
1528
1711
|
{
|
|
1529
1712
|
title: "Ghost",
|
|
1530
1713
|
description: "Minimal button with no background until hovered.",
|
|
@@ -6249,7 +6432,7 @@ var component_catalog_default = {
|
|
|
6249
6432
|
type: "SearchResultItem[] | SearchResultGroup[]",
|
|
6250
6433
|
default: "[]",
|
|
6251
6434
|
required: false,
|
|
6252
|
-
description: "Search results to display"
|
|
6435
|
+
description: "Search results to display; grouped results render a heading per group"
|
|
6253
6436
|
},
|
|
6254
6437
|
{
|
|
6255
6438
|
name: "loading",
|
|
@@ -6305,6 +6488,20 @@ var component_catalog_default = {
|
|
|
6305
6488
|
required: false,
|
|
6306
6489
|
description: "Custom empty state renderer"
|
|
6307
6490
|
},
|
|
6491
|
+
{
|
|
6492
|
+
name: "showIcons",
|
|
6493
|
+
type: "boolean",
|
|
6494
|
+
default: "false",
|
|
6495
|
+
required: false,
|
|
6496
|
+
description: "Show each result's `icon` (Icon name) beside it"
|
|
6497
|
+
},
|
|
6498
|
+
{
|
|
6499
|
+
name: "resultsMaxHeight",
|
|
6500
|
+
type: "string",
|
|
6501
|
+
default: "'300px'",
|
|
6502
|
+
required: false,
|
|
6503
|
+
description: "Max height of the results list (CSS length)"
|
|
6504
|
+
},
|
|
6308
6505
|
{
|
|
6309
6506
|
name: "class",
|
|
6310
6507
|
type: "string",
|
|
@@ -7991,7 +8188,7 @@ var component_catalog_default = {
|
|
|
7991
8188
|
name: "subtitle",
|
|
7992
8189
|
type: "string",
|
|
7993
8190
|
required: false,
|
|
7994
|
-
description: "Optional
|
|
8191
|
+
description: "Optional product label (Figtree 600, uppercase, brand red, left-aligned under the wordmark)"
|
|
7995
8192
|
},
|
|
7996
8193
|
{
|
|
7997
8194
|
name: "environment",
|
|
@@ -9747,6 +9944,13 @@ var component_catalog_default = {
|
|
|
9747
9944
|
required: false,
|
|
9748
9945
|
description: "Visual variant"
|
|
9749
9946
|
},
|
|
9947
|
+
{
|
|
9948
|
+
name: "as",
|
|
9949
|
+
type: "'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
|
|
9950
|
+
default: "'h1'",
|
|
9951
|
+
required: false,
|
|
9952
|
+
description: "Heading element"
|
|
9953
|
+
},
|
|
9750
9954
|
{
|
|
9751
9955
|
name: "class",
|
|
9752
9956
|
type: "string",
|
|
@@ -9770,6 +9974,18 @@ var component_catalog_default = {
|
|
|
9770
9974
|
"form"
|
|
9771
9975
|
],
|
|
9772
9976
|
default: "default"
|
|
9977
|
+
},
|
|
9978
|
+
{
|
|
9979
|
+
name: "as",
|
|
9980
|
+
values: [
|
|
9981
|
+
"h1",
|
|
9982
|
+
"h2",
|
|
9983
|
+
"h3",
|
|
9984
|
+
"h4",
|
|
9985
|
+
"h5",
|
|
9986
|
+
"h6"
|
|
9987
|
+
],
|
|
9988
|
+
default: "h1"
|
|
9773
9989
|
}
|
|
9774
9990
|
],
|
|
9775
9991
|
slots: [
|
|
@@ -11047,6 +11263,100 @@ var component_catalog_default = {
|
|
|
11047
11263
|
"Separator"
|
|
11048
11264
|
]
|
|
11049
11265
|
},
|
|
11266
|
+
{
|
|
11267
|
+
name: "SegmentedControl",
|
|
11268
|
+
description: "Single-choice pill group for switching grouping or modes",
|
|
11269
|
+
category: "layout",
|
|
11270
|
+
importPath: "@classic-homes/theme-svelte",
|
|
11271
|
+
props: [
|
|
11272
|
+
{
|
|
11273
|
+
name: "options",
|
|
11274
|
+
type: "SegmentedControlOption[]",
|
|
11275
|
+
required: false,
|
|
11276
|
+
description: "`{ value, label, icon?, disabled? }`"
|
|
11277
|
+
},
|
|
11278
|
+
{
|
|
11279
|
+
name: "value",
|
|
11280
|
+
type: "string",
|
|
11281
|
+
default: "First enabled option",
|
|
11282
|
+
required: false,
|
|
11283
|
+
description: "Selected value (bindable)"
|
|
11284
|
+
},
|
|
11285
|
+
{
|
|
11286
|
+
name: "onValueChange",
|
|
11287
|
+
type: "(value: string) => void",
|
|
11288
|
+
required: false,
|
|
11289
|
+
description: "Called after the selection changes"
|
|
11290
|
+
},
|
|
11291
|
+
{
|
|
11292
|
+
name: "label",
|
|
11293
|
+
type: "string",
|
|
11294
|
+
required: false,
|
|
11295
|
+
description: "Accessible name (required)"
|
|
11296
|
+
},
|
|
11297
|
+
{
|
|
11298
|
+
name: "size",
|
|
11299
|
+
type: "'sm' | 'md'",
|
|
11300
|
+
default: "'md'",
|
|
11301
|
+
required: false,
|
|
11302
|
+
description: "Track height 36px / 40px"
|
|
11303
|
+
},
|
|
11304
|
+
{
|
|
11305
|
+
name: "disabled",
|
|
11306
|
+
type: "boolean",
|
|
11307
|
+
default: "false",
|
|
11308
|
+
required: false,
|
|
11309
|
+
description: "Disables every option"
|
|
11310
|
+
},
|
|
11311
|
+
{
|
|
11312
|
+
name: "class",
|
|
11313
|
+
type: "string",
|
|
11314
|
+
required: false,
|
|
11315
|
+
description: "Additional classes"
|
|
11316
|
+
}
|
|
11317
|
+
],
|
|
11318
|
+
variants: [
|
|
11319
|
+
{
|
|
11320
|
+
name: "size",
|
|
11321
|
+
values: [
|
|
11322
|
+
"sm",
|
|
11323
|
+
"md"
|
|
11324
|
+
],
|
|
11325
|
+
default: "md"
|
|
11326
|
+
}
|
|
11327
|
+
],
|
|
11328
|
+
slots: [
|
|
11329
|
+
{
|
|
11330
|
+
name: "children",
|
|
11331
|
+
description: "Main content",
|
|
11332
|
+
required: false
|
|
11333
|
+
}
|
|
11334
|
+
],
|
|
11335
|
+
events: [],
|
|
11336
|
+
examples: [
|
|
11337
|
+
{
|
|
11338
|
+
title: "Basic Usage",
|
|
11339
|
+
code: `<script>
|
|
11340
|
+
import { SegmentedControl } from '@classic-homes/theme-svelte';
|
|
11341
|
+
|
|
11342
|
+
let groupBy = $state('community');
|
|
11343
|
+
|
|
11344
|
+
const options = [
|
|
11345
|
+
{ value: 'community', label: 'Community' },
|
|
11346
|
+
{ value: 'collection', label: 'Collection' },
|
|
11347
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
11348
|
+
];
|
|
11349
|
+
</script>
|
|
11350
|
+
|
|
11351
|
+
<SegmentedControl label="Group homes by" {options} bind:value={groupBy} />`
|
|
11352
|
+
}
|
|
11353
|
+
],
|
|
11354
|
+
relatedComponents: [
|
|
11355
|
+
"Toolbar",
|
|
11356
|
+
"ViewToggle",
|
|
11357
|
+
"Tabs"
|
|
11358
|
+
]
|
|
11359
|
+
},
|
|
11050
11360
|
{
|
|
11051
11361
|
name: "Select",
|
|
11052
11362
|
description: "Dropdown for selecting from a list of options with grouping support",
|
|
@@ -13148,6 +13458,91 @@ var component_catalog_default = {
|
|
|
13148
13458
|
"AppShell"
|
|
13149
13459
|
]
|
|
13150
13460
|
},
|
|
13461
|
+
{
|
|
13462
|
+
name: "Toolbar",
|
|
13463
|
+
description: "Dark control strip for search, filters, grouping and view toggles under a page header",
|
|
13464
|
+
category: "layout",
|
|
13465
|
+
importPath: "@classic-homes/theme-svelte",
|
|
13466
|
+
props: [
|
|
13467
|
+
{
|
|
13468
|
+
name: "label",
|
|
13469
|
+
type: "string",
|
|
13470
|
+
required: false,
|
|
13471
|
+
description: "Accessible name of the group (required)"
|
|
13472
|
+
},
|
|
13473
|
+
{
|
|
13474
|
+
name: "children",
|
|
13475
|
+
type: "Snippet",
|
|
13476
|
+
required: false,
|
|
13477
|
+
description: "Leading controls (search, filters, count)"
|
|
13478
|
+
},
|
|
13479
|
+
{
|
|
13480
|
+
name: "end",
|
|
13481
|
+
type: "Snippet",
|
|
13482
|
+
required: false,
|
|
13483
|
+
description: "Right-aligned cluster (grouping control, view toggle)"
|
|
13484
|
+
},
|
|
13485
|
+
{
|
|
13486
|
+
name: "class",
|
|
13487
|
+
type: "string",
|
|
13488
|
+
required: false,
|
|
13489
|
+
description: "Additional classes"
|
|
13490
|
+
}
|
|
13491
|
+
],
|
|
13492
|
+
variants: [],
|
|
13493
|
+
slots: [
|
|
13494
|
+
{
|
|
13495
|
+
name: "children",
|
|
13496
|
+
description: "Main content",
|
|
13497
|
+
required: false
|
|
13498
|
+
}
|
|
13499
|
+
],
|
|
13500
|
+
events: [],
|
|
13501
|
+
examples: [
|
|
13502
|
+
{
|
|
13503
|
+
title: "Basic Usage",
|
|
13504
|
+
code: `<script>
|
|
13505
|
+
import {
|
|
13506
|
+
Toolbar,
|
|
13507
|
+
SegmentedControl,
|
|
13508
|
+
ViewToggle,
|
|
13509
|
+
Button,
|
|
13510
|
+
Input,
|
|
13511
|
+
Separator,
|
|
13512
|
+
} from '@classic-homes/theme-svelte';
|
|
13513
|
+
|
|
13514
|
+
let groupBy = $state('community');
|
|
13515
|
+
let view = $state('list');
|
|
13516
|
+
</script>
|
|
13517
|
+
|
|
13518
|
+
<Toolbar label="Inventory tools">
|
|
13519
|
+
<Input placeholder="Search homes, communities, floor plans\u2026" class="max-w-sm" />
|
|
13520
|
+
<Button variant="secondary" size="sm">Filters</Button>
|
|
13521
|
+
<span class="text-sm">89 homes</span>
|
|
13522
|
+
|
|
13523
|
+
{#snippet end()}
|
|
13524
|
+
<SegmentedControl
|
|
13525
|
+
label="Group homes by"
|
|
13526
|
+
size="sm"
|
|
13527
|
+
bind:value={groupBy}
|
|
13528
|
+
options={[
|
|
13529
|
+
{ value: 'community', label: 'Community' },
|
|
13530
|
+
{ value: 'collection', label: 'Collection' },
|
|
13531
|
+
{ value: 'floor-plan', label: 'Floor Plan' },
|
|
13532
|
+
]}
|
|
13533
|
+
/>
|
|
13534
|
+
<Separator orientation="vertical" class="h-6 bg-secondary-soft" />
|
|
13535
|
+
<ViewToggle bind:value={view} />
|
|
13536
|
+
{/snippet}
|
|
13537
|
+
</Toolbar>`
|
|
13538
|
+
}
|
|
13539
|
+
],
|
|
13540
|
+
relatedComponents: [
|
|
13541
|
+
"SegmentedControl",
|
|
13542
|
+
"ViewToggle",
|
|
13543
|
+
"ActionHeader"
|
|
13544
|
+
]
|
|
13545
|
+
},
|
|
13151
13546
|
{
|
|
13152
13547
|
name: "Tooltip",
|
|
13153
13548
|
description: "Contextual information displayed on hover",
|
|
@@ -13601,6 +13996,84 @@ var component_catalog_default = {
|
|
|
13601
13996
|
"Lightbox",
|
|
13602
13997
|
"MediaCarousel"
|
|
13603
13998
|
]
|
|
13999
|
+
},
|
|
14000
|
+
{
|
|
14001
|
+
name: "ViewToggle",
|
|
14002
|
+
description: "Icon-only switch between list, grid and map views",
|
|
14003
|
+
category: "layout",
|
|
14004
|
+
importPath: "@classic-homes/theme-svelte",
|
|
14005
|
+
props: [
|
|
14006
|
+
{
|
|
14007
|
+
name: "options",
|
|
14008
|
+
type: "ViewToggleOption[]",
|
|
14009
|
+
default: "list / grid / map",
|
|
14010
|
+
required: false,
|
|
14011
|
+
description: "`{ value, icon, label, disabled? }`"
|
|
14012
|
+
},
|
|
14013
|
+
{
|
|
14014
|
+
name: "value",
|
|
14015
|
+
type: "string",
|
|
14016
|
+
default: "First enabled option",
|
|
14017
|
+
required: false,
|
|
14018
|
+
description: "Selected view (bindable)"
|
|
14019
|
+
},
|
|
14020
|
+
{
|
|
14021
|
+
name: "onValueChange",
|
|
14022
|
+
type: "(value: string) => void",
|
|
14023
|
+
required: false,
|
|
14024
|
+
description: "Called after the selection changes"
|
|
14025
|
+
},
|
|
14026
|
+
{
|
|
14027
|
+
name: "label",
|
|
14028
|
+
type: "string",
|
|
14029
|
+
default: "'View'",
|
|
14030
|
+
required: false,
|
|
14031
|
+
description: "Accessible name of the group"
|
|
14032
|
+
},
|
|
14033
|
+
{
|
|
14034
|
+
name: "disabled",
|
|
14035
|
+
type: "boolean",
|
|
14036
|
+
default: "false",
|
|
14037
|
+
required: false,
|
|
14038
|
+
description: "Disables every option"
|
|
14039
|
+
},
|
|
14040
|
+
{
|
|
14041
|
+
name: "class",
|
|
14042
|
+
type: "string",
|
|
14043
|
+
required: false,
|
|
14044
|
+
description: "Additional classes"
|
|
14045
|
+
}
|
|
14046
|
+
],
|
|
14047
|
+
variants: [],
|
|
14048
|
+
slots: [
|
|
14049
|
+
{
|
|
14050
|
+
name: "children",
|
|
14051
|
+
description: "Main content",
|
|
14052
|
+
required: false
|
|
14053
|
+
}
|
|
14054
|
+
],
|
|
14055
|
+
events: [],
|
|
14056
|
+
examples: [
|
|
14057
|
+
{
|
|
14058
|
+
title: "Basic Usage",
|
|
14059
|
+
code: `<script>
|
|
14060
|
+
import { Toolbar, ViewToggle } from '@classic-homes/theme-svelte';
|
|
14061
|
+
|
|
14062
|
+
let view = $state('list');
|
|
14063
|
+
</script>
|
|
14064
|
+
|
|
14065
|
+
<Toolbar label="Inventory tools">
|
|
14066
|
+
<span class="text-sm">89 homes</span>
|
|
14067
|
+
{#snippet end()}
|
|
14068
|
+
<ViewToggle bind:value={view} />
|
|
14069
|
+
{/snippet}
|
|
14070
|
+
</Toolbar>`
|
|
14071
|
+
}
|
|
14072
|
+
],
|
|
14073
|
+
relatedComponents: [
|
|
14074
|
+
"Toolbar",
|
|
14075
|
+
"SegmentedControl"
|
|
14076
|
+
]
|
|
13604
14077
|
}
|
|
13605
14078
|
]
|
|
13606
14079
|
};
|
|
@@ -13685,7 +14158,7 @@ function registerComponentResources(server) {
|
|
|
13685
14158
|
|
|
13686
14159
|
// src/data/token-definitions.json
|
|
13687
14160
|
var token_definitions_default = {
|
|
13688
|
-
version: "0.2.
|
|
14161
|
+
version: "0.2.3",
|
|
13689
14162
|
colors: {
|
|
13690
14163
|
brand: [
|
|
13691
14164
|
{
|
|
@@ -13928,16 +14401,41 @@ var token_definitions_default = {
|
|
|
13928
14401
|
foreground: "#ffffff"
|
|
13929
14402
|
},
|
|
13930
14403
|
secondary: {
|
|
13931
|
-
light: "sage-
|
|
14404
|
+
light: "#6c705b (filled sage controls; spec sage-600 #969a82 fails 4.5:1 under white)",
|
|
13932
14405
|
dark: "sage-800 (#54574e)",
|
|
13933
14406
|
hover: {
|
|
13934
|
-
light: "#
|
|
13935
|
-
dark: "#
|
|
14407
|
+
light: "red-700 (#a91c22)",
|
|
14408
|
+
dark: "red-700 (#a91c22)"
|
|
13936
14409
|
},
|
|
13937
14410
|
foreground: {
|
|
13938
|
-
light: "
|
|
14411
|
+
light: "#ffffff",
|
|
13939
14412
|
dark: "gray-100 (#f3f4f6)"
|
|
13940
|
-
}
|
|
14413
|
+
},
|
|
14414
|
+
border: {
|
|
14415
|
+
light: "#ffffff",
|
|
14416
|
+
dark: "charcoal-900 (#292424)"
|
|
14417
|
+
},
|
|
14418
|
+
soft: {
|
|
14419
|
+
light: "sage-600 (#969a82)",
|
|
14420
|
+
dark: "sage-700 (#757968)"
|
|
14421
|
+
},
|
|
14422
|
+
note: "Filled sage action color (e.g. PDF / Filters buttons). Use `muted` for subtle light-sage surfaces."
|
|
14423
|
+
},
|
|
14424
|
+
outline: {
|
|
14425
|
+
light: "sage-600 (#969a82)",
|
|
14426
|
+
dark: "sage-500 (#b6baa4)",
|
|
14427
|
+
hover: {
|
|
14428
|
+
light: "#d5d7cd",
|
|
14429
|
+
dark: "sage-300 (#d0d3c5)"
|
|
14430
|
+
},
|
|
14431
|
+
note: "Outline button border; hover pairs with the primary fill."
|
|
14432
|
+
},
|
|
14433
|
+
toolbar: {
|
|
14434
|
+
light: "#1b373b",
|
|
14435
|
+
dark: "#1b373b",
|
|
14436
|
+
foreground: "#ffffff",
|
|
14437
|
+
border: "#d5d7cd",
|
|
14438
|
+
note: "Dark toolbar strip under page headers (Toolbar component)."
|
|
13941
14439
|
},
|
|
13942
14440
|
accent: {
|
|
13943
14441
|
light: "teal-500 (#3ba4a7)",
|
|
@@ -14223,7 +14721,7 @@ var token_definitions_default = {
|
|
|
14223
14721
|
typography: {
|
|
14224
14722
|
fontFamilies: {
|
|
14225
14723
|
sans: "Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif",
|
|
14226
|
-
serif: "
|
|
14724
|
+
serif: "Spectral, ui-serif, Georgia, Cambria, Times New Roman, Times, serif",
|
|
14227
14725
|
mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
|
|
14228
14726
|
},
|
|
14229
14727
|
fontSizes: {
|
|
@@ -14295,39 +14793,46 @@ var token_definitions_default = {
|
|
|
14295
14793
|
},
|
|
14296
14794
|
headingSizes: {
|
|
14297
14795
|
h1: {
|
|
14298
|
-
size: "2.
|
|
14299
|
-
lineHeight: "
|
|
14300
|
-
fontWeight: "
|
|
14301
|
-
|
|
14796
|
+
size: "2.5rem",
|
|
14797
|
+
lineHeight: "2rem",
|
|
14798
|
+
fontWeight: "500",
|
|
14799
|
+
fontFamily: "serif (Spectral)",
|
|
14800
|
+
fontStyle: "italic",
|
|
14801
|
+
pixels: "40px"
|
|
14302
14802
|
},
|
|
14303
14803
|
h2: {
|
|
14304
|
-
size: "1.
|
|
14804
|
+
size: "1.75rem",
|
|
14305
14805
|
lineHeight: "2.25rem",
|
|
14306
14806
|
fontWeight: "600",
|
|
14307
|
-
|
|
14807
|
+
fontFamily: "sans (Figtree)",
|
|
14808
|
+
pixels: "28px"
|
|
14308
14809
|
},
|
|
14309
14810
|
h3: {
|
|
14310
14811
|
size: "1.5rem",
|
|
14311
14812
|
lineHeight: "2rem",
|
|
14312
14813
|
fontWeight: "600",
|
|
14814
|
+
fontFamily: "sans (Figtree)",
|
|
14313
14815
|
pixels: "24px"
|
|
14314
14816
|
},
|
|
14315
14817
|
h4: {
|
|
14316
14818
|
size: "1.25rem",
|
|
14317
14819
|
lineHeight: "1.75rem",
|
|
14318
14820
|
fontWeight: "600",
|
|
14821
|
+
fontFamily: "sans (Figtree)",
|
|
14319
14822
|
pixels: "20px"
|
|
14320
14823
|
},
|
|
14321
14824
|
h5: {
|
|
14322
14825
|
size: "1.125rem",
|
|
14323
|
-
lineHeight: "1.
|
|
14826
|
+
lineHeight: "1.5rem",
|
|
14324
14827
|
fontWeight: "600",
|
|
14828
|
+
fontFamily: "sans (Figtree)",
|
|
14325
14829
|
pixels: "18px"
|
|
14326
14830
|
},
|
|
14327
14831
|
h6: {
|
|
14328
14832
|
size: "1rem",
|
|
14329
14833
|
lineHeight: "1.5rem",
|
|
14330
14834
|
fontWeight: "600",
|
|
14835
|
+
fontFamily: "sans (Figtree)",
|
|
14331
14836
|
pixels: "16px"
|
|
14332
14837
|
}
|
|
14333
14838
|
},
|
|
@@ -14502,6 +15007,8 @@ var token_definitions_default = {
|
|
|
14502
15007
|
"border",
|
|
14503
15008
|
"input",
|
|
14504
15009
|
"ring",
|
|
15010
|
+
"outline",
|
|
15011
|
+
"toolbar",
|
|
14505
15012
|
"background",
|
|
14506
15013
|
"foreground",
|
|
14507
15014
|
"primary",
|
|
@@ -14521,6 +15028,7 @@ var token_definitions_default = {
|
|
|
14521
15028
|
withForeground: [
|
|
14522
15029
|
"primary",
|
|
14523
15030
|
"secondary",
|
|
15031
|
+
"toolbar",
|
|
14524
15032
|
"destructive",
|
|
14525
15033
|
"muted",
|
|
14526
15034
|
"accent",
|
|
@@ -14536,7 +15044,8 @@ var token_definitions_default = {
|
|
|
14536
15044
|
"secondary",
|
|
14537
15045
|
"destructive",
|
|
14538
15046
|
"muted",
|
|
14539
|
-
"accent"
|
|
15047
|
+
"accent",
|
|
15048
|
+
"outline"
|
|
14540
15049
|
]
|
|
14541
15050
|
}
|
|
14542
15051
|
},
|
|
@@ -14632,7 +15141,7 @@ function registerTokenResources(server) {
|
|
|
14632
15141
|
|
|
14633
15142
|
// src/data/styles-catalog.json
|
|
14634
15143
|
var styles_catalog_default = {
|
|
14635
|
-
version: "0.2.
|
|
15144
|
+
version: "0.2.3",
|
|
14636
15145
|
package: "@classic-homes/theme-styles",
|
|
14637
15146
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
14638
15147
|
integration: {
|
|
@@ -14657,7 +15166,7 @@ var styles_catalog_default = {
|
|
|
14657
15166
|
features: [
|
|
14658
15167
|
{
|
|
14659
15168
|
name: "Brand Fonts",
|
|
14660
|
-
description: "Imports Google Fonts: Figtree (sans-serif) and
|
|
15169
|
+
description: "Imports Google Fonts: Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics)",
|
|
14661
15170
|
cssVariables: [
|
|
14662
15171
|
"--font-sans",
|
|
14663
15172
|
"--font-serif"
|
|
@@ -14669,10 +15178,10 @@ var styles_catalog_default = {
|
|
|
14669
15178
|
},
|
|
14670
15179
|
{
|
|
14671
15180
|
name: "Heading Styles",
|
|
14672
|
-
description: "h1
|
|
15181
|
+
description: "h1 is the display face (Spectral 500 italic); h2-h6 are Figtree 600",
|
|
14673
15182
|
sizes: {
|
|
14674
|
-
h1: "2.
|
|
14675
|
-
h2: "1.
|
|
15183
|
+
h1: "2.5rem (40px) / line-height 2rem, Spectral 500 italic",
|
|
15184
|
+
h2: "1.75rem (28px) / line-height 2.25rem, Figtree 600",
|
|
14676
15185
|
h3: "1.5rem (24px)",
|
|
14677
15186
|
h4: "1.25rem (20px)",
|
|
14678
15187
|
h5: "1.125rem (18px)",
|
|
@@ -15005,7 +15514,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
15005
15514
|
|
|
15006
15515
|
// src/data/pattern-library.json
|
|
15007
15516
|
var pattern_library_default = {
|
|
15008
|
-
version: "0.2.
|
|
15517
|
+
version: "0.2.3",
|
|
15009
15518
|
layouts: [
|
|
15010
15519
|
{
|
|
15011
15520
|
id: "dashboard-page",
|
|
@@ -15757,14 +16266,11 @@ var pattern_library_default = {
|
|
|
15757
16266
|
description: "Notification bell icon with dropdown panel for header integration",
|
|
15758
16267
|
components: [
|
|
15759
16268
|
"NotificationBadge",
|
|
15760
|
-
"
|
|
15761
|
-
"NotificationItem",
|
|
15762
|
-
"DropdownMenu",
|
|
15763
|
-
"Button"
|
|
16269
|
+
"DropdownMenu"
|
|
15764
16270
|
],
|
|
15765
16271
|
example: `<script lang="ts">
|
|
15766
|
-
import {
|
|
15767
|
-
import { NotificationBadge
|
|
16272
|
+
import { DropdownMenu } from '@classic-homes/theme-svelte';
|
|
16273
|
+
import { NotificationBadge } from '@classic-homes/theme-svelte/notifications';
|
|
15768
16274
|
import { notificationService } from '@classic-homes/notifications/core';
|
|
15769
16275
|
import type { Notification } from '@classic-homes/notifications/core';
|
|
15770
16276
|
import { goto } from '$app/navigation';
|
|
@@ -15785,39 +16291,26 @@ var pattern_library_default = {
|
|
|
15785
16291
|
}
|
|
15786
16292
|
</script>
|
|
15787
16293
|
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
<
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
onNotificationClick={handleNotificationClick}
|
|
15809
|
-
emptyTitle="No notifications"
|
|
15810
|
-
emptyDescription="You're all caught up!"
|
|
15811
|
-
/>
|
|
15812
|
-
</div>
|
|
15813
|
-
|
|
15814
|
-
<div class="p-2 border-t">
|
|
15815
|
-
<Button variant="ghost" class="w-full" onclick={() => goto('/notifications')}>
|
|
15816
|
-
View all notifications
|
|
15817
|
-
</Button>
|
|
15818
|
-
</div>
|
|
15819
|
-
</DropdownMenu.Content>
|
|
15820
|
-
</DropdownMenu.Root>`
|
|
16294
|
+
<!-- DropdownMenu takes an items array (not compound parts); style the trigger via triggerClass. -->
|
|
16295
|
+
<DropdownMenu
|
|
16296
|
+
align="end"
|
|
16297
|
+
triggerLabel="Notifications"
|
|
16298
|
+
triggerClass="relative inline-flex h-10 w-10 items-center justify-center rounded-lg hover:bg-muted-hover"
|
|
16299
|
+
items={[
|
|
16300
|
+
{ label: 'Notifications', type: 'label' },
|
|
16301
|
+
...notifications.map((n) => ({
|
|
16302
|
+
label: n.title,
|
|
16303
|
+
onSelect: () => handleNotificationClick(n),
|
|
16304
|
+
})),
|
|
16305
|
+
{ type: 'separator' },
|
|
16306
|
+
{ label: 'Mark all read', icon: 'check', onSelect: () => notificationService.markAllRead() },
|
|
16307
|
+
{ label: 'View all notifications', href: '/notifications' },
|
|
16308
|
+
]}
|
|
16309
|
+
>
|
|
16310
|
+
{#snippet trigger()}
|
|
16311
|
+
<NotificationBadge count={unreadCount} />
|
|
16312
|
+
{/snippet}
|
|
16313
|
+
</DropdownMenu>`
|
|
15821
16314
|
}
|
|
15822
16315
|
],
|
|
15823
16316
|
panels: [
|
|
@@ -16115,7 +16608,7 @@ function registerLayoutResources(server) {
|
|
|
16115
16608
|
|
|
16116
16609
|
// src/data/schema-catalog.json
|
|
16117
16610
|
var schema_catalog_default = {
|
|
16118
|
-
version: "0.2.
|
|
16611
|
+
version: "0.2.3",
|
|
16119
16612
|
packageName: "@classic-homes/theme-svelte",
|
|
16120
16613
|
importPath: "@classic-homes/theme-svelte",
|
|
16121
16614
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -16923,7 +17416,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
16923
17416
|
|
|
16924
17417
|
// src/data/auth-catalog.json
|
|
16925
17418
|
var auth_catalog_default = {
|
|
16926
|
-
version: "0.2.
|
|
17419
|
+
version: "0.2.3",
|
|
16927
17420
|
packageName: "@classic-homes/auth",
|
|
16928
17421
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
16929
17422
|
subpackages: {
|
|
@@ -19960,7 +20453,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
19960
20453
|
|
|
19961
20454
|
// src/data/notifications-catalog.json
|
|
19962
20455
|
var notifications_catalog_default = {
|
|
19963
|
-
version: "0.2.
|
|
20456
|
+
version: "0.2.3",
|
|
19964
20457
|
packageName: "@classic-homes/notifications",
|
|
19965
20458
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
19966
20459
|
subpackages: {
|
|
@@ -20872,7 +21365,7 @@ function registerNotificationsResources(server) {
|
|
|
20872
21365
|
|
|
20873
21366
|
// src/data/docs-catalog.json
|
|
20874
21367
|
var docs_catalog_default = {
|
|
20875
|
-
version: "0.2.
|
|
21368
|
+
version: "0.2.3",
|
|
20876
21369
|
packageName: "@classic-homes/theme-docs",
|
|
20877
21370
|
description: "Markdown documentation components for the Classic theme system",
|
|
20878
21371
|
exports: {
|
|
@@ -21800,7 +22293,7 @@ function registerDocsResources(server) {
|
|
|
21800
22293
|
|
|
21801
22294
|
// src/data/charts-catalog.json
|
|
21802
22295
|
var charts_catalog_default = {
|
|
21803
|
-
version: "0.2.
|
|
22296
|
+
version: "0.2.3",
|
|
21804
22297
|
packageName: "@classic-homes/charts-core",
|
|
21805
22298
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
21806
22299
|
subpackages: {
|
|
@@ -23637,7 +24130,7 @@ interface SankeyData {
|
|
|
23637
24130
|
|
|
23638
24131
|
// src/data/maps-catalog.json
|
|
23639
24132
|
var maps_catalog_default = {
|
|
23640
|
-
version: "0.2.
|
|
24133
|
+
version: "0.2.3",
|
|
23641
24134
|
packageName: "@classic-homes/maps-core",
|
|
23642
24135
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
23643
24136
|
subpackages: {
|
|
@@ -28968,7 +29461,7 @@ ${catalog5.quickReference.tailwindConfig}
|
|
|
28968
29461
|
|
|
28969
29462
|
// src/data/native-catalog.json
|
|
28970
29463
|
var native_catalog_default = {
|
|
28971
|
-
version: "0.2.
|
|
29464
|
+
version: "0.2.3",
|
|
28972
29465
|
packageName: "@classic-homes/native",
|
|
28973
29466
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
28974
29467
|
subpackages: {
|
|
@@ -31343,7 +31836,7 @@ function registerPrompts(server) {
|
|
|
31343
31836
|
// package.json
|
|
31344
31837
|
var package_default = {
|
|
31345
31838
|
name: "@classic-homes/theme-mcp",
|
|
31346
|
-
version: "0.2.
|
|
31839
|
+
version: "0.2.3",
|
|
31347
31840
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
31348
31841
|
type: "module",
|
|
31349
31842
|
main: "dist/index.js",
|