@triptease/design-system-mcp 1.2.2 → 1.2.4
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/dist/index.js +53 -22
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -23302,7 +23302,7 @@ var StdioServerTransport = class {
|
|
|
23302
23302
|
// package.json
|
|
23303
23303
|
var package_default = {
|
|
23304
23304
|
name: "@triptease/design-system-mcp",
|
|
23305
|
-
version: "1.2.
|
|
23305
|
+
version: "1.2.4",
|
|
23306
23306
|
description: "MCP server for Triptease design system documentation",
|
|
23307
23307
|
type: "module",
|
|
23308
23308
|
main: "dist/index.js",
|
|
@@ -23323,23 +23323,23 @@ var package_default = {
|
|
|
23323
23323
|
node: ">=18.0.0"
|
|
23324
23324
|
},
|
|
23325
23325
|
componentVersions: {
|
|
23326
|
-
"@triptease/stylesheet": "2.
|
|
23327
|
-
"@triptease/tt-bar-chart": "1.1.
|
|
23326
|
+
"@triptease/stylesheet": "2.1.3",
|
|
23327
|
+
"@triptease/tt-bar-chart": "1.1.3",
|
|
23328
23328
|
"@triptease/tt-combobox": "5.7.4",
|
|
23329
23329
|
"@triptease/tt-data-point": "1.1.1",
|
|
23330
23330
|
"@triptease/tt-dataset": "1.1.1",
|
|
23331
|
-
"@triptease/tt-date-picker": "6.
|
|
23332
|
-
"@triptease/tt-date-range-picker": "6.
|
|
23331
|
+
"@triptease/tt-date-picker": "6.3.1",
|
|
23332
|
+
"@triptease/tt-date-range-picker": "6.4.1",
|
|
23333
23333
|
"@triptease/tt-dialog": "5.2.1",
|
|
23334
23334
|
"@triptease/tt-highlight": "1.1.1",
|
|
23335
|
-
"@triptease/tt-line-chart": "1.1.
|
|
23335
|
+
"@triptease/tt-line-chart": "1.1.3",
|
|
23336
23336
|
"@triptease/tt-milestone": "1.1.1",
|
|
23337
|
-
"@triptease/tt-paginator": "1.0.
|
|
23338
|
-
"@triptease/tt-table-wrapper": "1.0.
|
|
23337
|
+
"@triptease/tt-paginator": "1.0.6",
|
|
23338
|
+
"@triptease/tt-table-wrapper": "1.0.5",
|
|
23339
23339
|
"@triptease/tt-tabs": "1.1.0"
|
|
23340
23340
|
},
|
|
23341
23341
|
dependencies: {
|
|
23342
|
-
"@triptease/stylesheet": "2.1.
|
|
23342
|
+
"@triptease/stylesheet": "2.1.3"
|
|
23343
23343
|
},
|
|
23344
23344
|
devDependencies: {
|
|
23345
23345
|
"@modelcontextprotocol/sdk": "1.26.0",
|
|
@@ -24040,11 +24040,19 @@ var table_default = {
|
|
|
24040
24040
|
"For small amounts of data that would read more naturally as a list",
|
|
24041
24041
|
"On small screens where columns cannot fit \u2014 consider alternative layouts"
|
|
24042
24042
|
],
|
|
24043
|
+
bestPractices: [
|
|
24044
|
+
"Keep column names short \u2014 one or two words where possible. Do not use sentences or sub-headings; if a column name needs explaining, consider simplifying it.",
|
|
24045
|
+
"Use a dash (\u2014) for missing or unknown values. Do not leave cells empty \u2014 an empty cell is ambiguous.",
|
|
24046
|
+
"Do not use 0 to represent missing data. Zero is a meaningful value \u2014 for example, a \xA30 budget indicates an intentional allocation of nothing, which is different from a budget that has not been set.",
|
|
24047
|
+
"Do not use icons inside data cells. Tables are scanned by text; icons add visual noise without aiding comprehension. If a cell requires an icon to be understood, the text label or column header is not clear enough."
|
|
24048
|
+
],
|
|
24043
24049
|
accessibility: [
|
|
24044
24050
|
'Use th scope="col" on column headers to help screen readers associate cells with their headings',
|
|
24045
|
-
'Sortable column headers receive aria-sort="ascending" or aria-sort="descending" automatically when using tt-table-wrapper',
|
|
24046
24051
|
"Add a caption to provide an accessible label for the table, especially when multiple tables appear on the same page",
|
|
24047
|
-
"Do not rely on visual position alone to convey data relationships \u2014 use semantic HTML (th, scope) so the structure is machine-readable"
|
|
24052
|
+
"Do not rely on visual position alone to convey data relationships \u2014 use semantic HTML (th, scope) so the structure is machine-readable",
|
|
24053
|
+
"When using tt-table-wrapper for sorting, each sortable header is automatically wrapped in a button, making it keyboard accessible via Tab, Enter, and Space",
|
|
24054
|
+
'Sortable columns receive aria-sort="none" initially, and aria-sort="ascending" or aria-sort="descending" when active',
|
|
24055
|
+
'Sort changes are announced via a live region (type status, polite): screen readers hear a message such as "Sorted by Revenue, ascending" or "Sort removed from Revenue" after each interaction'
|
|
24048
24056
|
]
|
|
24049
24057
|
},
|
|
24050
24058
|
installationOptions: {
|
|
@@ -25368,13 +25376,16 @@ var paginator_default = {
|
|
|
25368
25376
|
element: "tt-paginator",
|
|
25369
25377
|
usageGuidance: {
|
|
25370
25378
|
whenToUse: [
|
|
25371
|
-
"
|
|
25379
|
+
"Lists, grids, or tables with more than 25 items",
|
|
25372
25380
|
"When the consumer controls data fetching and needs to know which page to display"
|
|
25373
25381
|
],
|
|
25374
25382
|
avoid: [
|
|
25375
|
-
"Datasets with 25 or fewer items \u2014 display them all on a single page instead",
|
|
25383
|
+
"Datasets with 25 or fewer items \u2014 display them all on a single page instead. The paginator hides itself automatically when all items fit on a single page, so no extra visibility logic is needed. The default page-size is 25, so you can omit the attribute if that fits your use case.",
|
|
25376
25384
|
"Infinite scroll or load more patterns"
|
|
25377
25385
|
],
|
|
25386
|
+
bestPractices: [
|
|
25387
|
+
"Place the paginator immediately after the content it controls \u2014 no extra spacing or positioning needed. The component handles its own top margin and alignment."
|
|
25388
|
+
],
|
|
25378
25389
|
accessibility: [
|
|
25379
25390
|
'The component uses role="navigation" with aria-label="Pagination"',
|
|
25380
25391
|
'Page buttons include aria-label="Go to page N" and aria-current="page" for the active page',
|
|
@@ -25405,7 +25416,7 @@ var paginator_default = {
|
|
|
25405
25416
|
},
|
|
25406
25417
|
"page-size": {
|
|
25407
25418
|
type: "number",
|
|
25408
|
-
default: "
|
|
25419
|
+
default: "25",
|
|
25409
25420
|
description: "Number of rows per page."
|
|
25410
25421
|
}
|
|
25411
25422
|
},
|
|
@@ -25419,20 +25430,40 @@ var paginator_default = {
|
|
|
25419
25430
|
examples: [
|
|
25420
25431
|
{
|
|
25421
25432
|
title: "Basic usage",
|
|
25422
|
-
|
|
25423
|
-
|
|
25433
|
+
code: `<div>
|
|
25434
|
+
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-scale-3);">
|
|
25435
|
+
<div class="card" style="padding: 0; overflow: hidden;">
|
|
25436
|
+
<div style="background: var(--color-primary-200); padding: var(--space-scale-3);">
|
|
25437
|
+
<p class="small">Book Direct & Save</p>
|
|
25438
|
+
<p class="strong">Best rate guaranteed</p>
|
|
25439
|
+
<p class="small">Book directly with us and get our lowest available rate \u2014 no booking fees, no middlemen.</p>
|
|
25440
|
+
</div>
|
|
25441
|
+
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-scale-3) var(--space-scale-3);">
|
|
25442
|
+
<span class="badge" data-theme="info">Onsite</span>
|
|
25443
|
+
<button data-theme="secondary">Use template</button>
|
|
25444
|
+
</div>
|
|
25445
|
+
</div>
|
|
25446
|
+
<div class="card" style="padding: 0; overflow: hidden;">
|
|
25447
|
+
<div style="background: var(--color-primary-200); padding: var(--space-scale-3);">
|
|
25448
|
+
<p class="small">Members Only Rate</p>
|
|
25449
|
+
<p class="strong">Exclusive rate for members</p>
|
|
25450
|
+
<p class="small">Sign in to unlock a loyalty rate available only to members. Up to 15% off.</p>
|
|
25451
|
+
</div>
|
|
25452
|
+
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-scale-3) var(--space-scale-3);">
|
|
25453
|
+
<span class="badge" data-theme="info">Onsite</span>
|
|
25454
|
+
<button data-theme="secondary">Use template</button>
|
|
25455
|
+
</div>
|
|
25456
|
+
</div>
|
|
25457
|
+
</div>
|
|
25458
|
+
<tt-paginator total-rows="12" page-size="6"></tt-paginator>
|
|
25459
|
+
</div>
|
|
25424
25460
|
|
|
25425
25461
|
<script>
|
|
25426
25462
|
document.querySelector('tt-paginator')
|
|
25427
25463
|
.addEventListener('page-change', (e) => {
|
|
25428
|
-
|
|
25464
|
+
// fetch or slice items for e.detail.page and re-render the grid
|
|
25429
25465
|
});
|
|
25430
25466
|
</script>`
|
|
25431
|
-
},
|
|
25432
|
-
{
|
|
25433
|
-
title: "Auto-hides when all items fit on one page",
|
|
25434
|
-
description: "When total-rows is less than or equal to page-size, the paginator hides itself automatically.",
|
|
25435
|
-
code: `<tt-paginator total-rows="10" page-size="25"></tt-paginator>`
|
|
25436
25467
|
}
|
|
25437
25468
|
]
|
|
25438
25469
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triptease/design-system-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "MCP server for Triptease design system documentation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
"node": ">=18.0.0"
|
|
22
22
|
},
|
|
23
23
|
"componentVersions": {
|
|
24
|
-
"@triptease/stylesheet": "2.
|
|
25
|
-
"@triptease/tt-bar-chart": "1.1.
|
|
24
|
+
"@triptease/stylesheet": "2.1.3",
|
|
25
|
+
"@triptease/tt-bar-chart": "1.1.3",
|
|
26
26
|
"@triptease/tt-combobox": "5.7.4",
|
|
27
27
|
"@triptease/tt-data-point": "1.1.1",
|
|
28
28
|
"@triptease/tt-dataset": "1.1.1",
|
|
29
|
-
"@triptease/tt-date-picker": "6.
|
|
30
|
-
"@triptease/tt-date-range-picker": "6.
|
|
29
|
+
"@triptease/tt-date-picker": "6.3.1",
|
|
30
|
+
"@triptease/tt-date-range-picker": "6.4.1",
|
|
31
31
|
"@triptease/tt-dialog": "5.2.1",
|
|
32
32
|
"@triptease/tt-highlight": "1.1.1",
|
|
33
|
-
"@triptease/tt-line-chart": "1.1.
|
|
33
|
+
"@triptease/tt-line-chart": "1.1.3",
|
|
34
34
|
"@triptease/tt-milestone": "1.1.1",
|
|
35
|
-
"@triptease/tt-paginator": "1.0.
|
|
36
|
-
"@triptease/tt-table-wrapper": "1.0.
|
|
35
|
+
"@triptease/tt-paginator": "1.0.6",
|
|
36
|
+
"@triptease/tt-table-wrapper": "1.0.5",
|
|
37
37
|
"@triptease/tt-tabs": "1.1.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@triptease/stylesheet": "2.1.
|
|
40
|
+
"@triptease/stylesheet": "2.1.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "1.26.0",
|