@triptease/design-system-mcp 1.2.2 → 1.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.
Files changed (2) hide show
  1. package/dist/index.js +35 -12
  2. package/package.json +1 -1
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.2",
23305
+ version: "1.2.3",
23306
23306
  description: "MCP server for Triptease design system documentation",
23307
23307
  type: "module",
23308
23308
  main: "dist/index.js",
@@ -25368,13 +25368,16 @@ var paginator_default = {
25368
25368
  element: "tt-paginator",
25369
25369
  usageGuidance: {
25370
25370
  whenToUse: [
25371
- "Tables, lists, or grids with more than 25 items",
25371
+ "Lists, grids, or tables with more than 25 items",
25372
25372
  "When the consumer controls data fetching and needs to know which page to display"
25373
25373
  ],
25374
25374
  avoid: [
25375
- "Datasets with 25 or fewer items \u2014 display them all on a single page instead",
25375
+ "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
25376
  "Infinite scroll or load more patterns"
25377
25377
  ],
25378
+ bestPractices: [
25379
+ "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."
25380
+ ],
25378
25381
  accessibility: [
25379
25382
  'The component uses role="navigation" with aria-label="Pagination"',
25380
25383
  'Page buttons include aria-label="Go to page N" and aria-current="page" for the active page',
@@ -25405,7 +25408,7 @@ var paginator_default = {
25405
25408
  },
25406
25409
  "page-size": {
25407
25410
  type: "number",
25408
- default: "10",
25411
+ default: "25",
25409
25412
  description: "Number of rows per page."
25410
25413
  }
25411
25414
  },
@@ -25419,20 +25422,40 @@ var paginator_default = {
25419
25422
  examples: [
25420
25423
  {
25421
25424
  title: "Basic usage",
25422
- description: "Paginator for 100 items with a page size of 25. Listen for the page-change event to display the correct slice of data.",
25423
- code: `<tt-paginator total-rows="100" page-size="25"></tt-paginator>
25425
+ code: `<div>
25426
+ <div style="display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-scale-3);">
25427
+ <div class="card" style="padding: 0; overflow: hidden;">
25428
+ <div style="background: var(--color-primary-200); padding: var(--space-scale-3);">
25429
+ <p class="small">Book Direct &amp; Save</p>
25430
+ <p class="strong">Best rate guaranteed</p>
25431
+ <p class="small">Book directly with us and get our lowest available rate \u2014 no booking fees, no middlemen.</p>
25432
+ </div>
25433
+ <div style="display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-scale-3) var(--space-scale-3);">
25434
+ <span class="badge" data-theme="info">Onsite</span>
25435
+ <button data-theme="secondary">Use template</button>
25436
+ </div>
25437
+ </div>
25438
+ <div class="card" style="padding: 0; overflow: hidden;">
25439
+ <div style="background: var(--color-primary-200); padding: var(--space-scale-3);">
25440
+ <p class="small">Members Only Rate</p>
25441
+ <p class="strong">Exclusive rate for members</p>
25442
+ <p class="small">Sign in to unlock a loyalty rate available only to members. Up to 15% off.</p>
25443
+ </div>
25444
+ <div style="display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-scale-3) var(--space-scale-3);">
25445
+ <span class="badge" data-theme="info">Onsite</span>
25446
+ <button data-theme="secondary">Use template</button>
25447
+ </div>
25448
+ </div>
25449
+ </div>
25450
+ <tt-paginator total-rows="12" page-size="6"></tt-paginator>
25451
+ </div>
25424
25452
 
25425
25453
  <script>
25426
25454
  document.querySelector('tt-paginator')
25427
25455
  .addEventListener('page-change', (e) => {
25428
- console.log('Page:', e.detail.page);
25456
+ // fetch or slice items for e.detail.page and re-render the grid
25429
25457
  });
25430
25458
  </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
25459
  }
25437
25460
  ]
25438
25461
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triptease/design-system-mcp",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "MCP server for Triptease design system documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",