@triptease/design-system-mcp 1.3.1 → 1.3.2

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 +88 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30362,7 +30362,7 @@ var StdioServerTransport = class {
30362
30362
  // package.json
30363
30363
  var package_default = {
30364
30364
  name: "@triptease/design-system-mcp",
30365
- version: "1.3.1",
30365
+ version: "1.3.2",
30366
30366
  description: "MCP server for Triptease design system documentation",
30367
30367
  type: "module",
30368
30368
  main: "dist/index.js",
@@ -30417,6 +30417,92 @@ var package_default = {
30417
30417
  }
30418
30418
  };
30419
30419
 
30420
+ // src/manifests/components/entries/accordion.ts
30421
+ var accordion_default = {
30422
+ accordion: {
30423
+ name: "Accordion",
30424
+ description: "Collapsible section that reveals or hides content under a clickable header.",
30425
+ element: "details",
30426
+ usageGuidance: {
30427
+ whenToUse: [
30428
+ "Hiding secondary or supplementary content that not all users need to see",
30429
+ "Reducing page length when there are several distinct sections",
30430
+ "Progressive disclosure \u2014 showing details on demand"
30431
+ ],
30432
+ avoid: [
30433
+ "When users need to compare content across multiple sections simultaneously",
30434
+ "For critical information that all users must see \u2014 do not hide it in an accordion"
30435
+ ],
30436
+ accessibility: [
30437
+ "The <summary> element is keyboard-focusable and activatable with Enter or Space",
30438
+ "Native <details>/<summary> provides built-in ARIA semantics with no extra attributes required"
30439
+ ]
30440
+ },
30441
+ classes: {
30442
+ accordion: "Base accordion class (required on the <details> element)"
30443
+ },
30444
+ attributes: {
30445
+ open: {
30446
+ type: "boolean",
30447
+ description: "Expands the accordion when present. Omit to start collapsed."
30448
+ },
30449
+ name: {
30450
+ type: "string",
30451
+ description: "Groups multiple <details> elements so that only one can be open at a time. All elements sharing the same name value form a mutual-exclusion group. This is native browser behaviour \u2014 no JavaScript required."
30452
+ }
30453
+ },
30454
+ examples: [
30455
+ {
30456
+ title: "Basic usage",
30457
+ code: `<details class="accordion">
30458
+ <summary>What is an accordion?</summary>
30459
+ <p>An accordion is a UI pattern that shows or hides content under a clickable header.</p>
30460
+ </details>`
30461
+ },
30462
+ {
30463
+ title: "Open by default",
30464
+ description: "Set the open attribute to have the accordion expanded when first rendered.",
30465
+ code: `<details class="accordion" open>
30466
+ <summary>This section starts open</summary>
30467
+ <p>This content is visible on load because the open attribute is set.</p>
30468
+ </details>`
30469
+ },
30470
+ {
30471
+ title: "Multiple accordions",
30472
+ description: "Stack multiple accordions to create a grouped list of collapsible sections.",
30473
+ code: `<details class="accordion">
30474
+ <summary>Section One</summary>
30475
+ <p>Content for section one.</p>
30476
+ </details>
30477
+ <details class="accordion">
30478
+ <summary>Section Two</summary>
30479
+ <p>Content for section two.</p>
30480
+ </details>
30481
+ <details class="accordion">
30482
+ <summary>Section Three</summary>
30483
+ <p>Content for section three.</p>
30484
+ </details>`
30485
+ },
30486
+ {
30487
+ title: "Exclusive group",
30488
+ description: "Use the name attribute to ensure only one accordion in a group can be open at a time. All details elements sharing the same name value form a mutual-exclusion group. This is native browser behaviour \u2014 no JavaScript is required.",
30489
+ code: `<details class="accordion" name="hotel-policies">
30490
+ <summary>Check-in policy</summary>
30491
+ <p>Standard check-in is from 15:00. Early check-in is subject to availability and may incur an additional charge.</p>
30492
+ </details>
30493
+ <details class="accordion" name="hotel-policies">
30494
+ <summary>Cancellation policy</summary>
30495
+ <p>Free cancellation is available up to 48 hours before arrival. Late cancellations may incur a one-night charge at the Best Available Rate.</p>
30496
+ </details>
30497
+ <details class="accordion" name="hotel-policies">
30498
+ <summary>Rate parity policy</summary>
30499
+ <p>Our Best Available Rate is the lowest non-restricted rate published across all channels, including direct booking via our website.</p>
30500
+ </details>`
30501
+ }
30502
+ ]
30503
+ }
30504
+ };
30505
+
30420
30506
  // src/manifests/components/entries/button.ts
30421
30507
  var button_default = {
30422
30508
  button: {
@@ -32853,6 +32939,7 @@ var repeatDatePicker_default = {
32853
32939
 
32854
32940
  // src/manifests/components/index.ts
32855
32941
  var componentManifest = {
32942
+ ...accordion_default,
32856
32943
  ...button_default,
32857
32944
  ...textinput_default,
32858
32945
  ...numberinput_default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triptease/design-system-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "MCP server for Triptease design system documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",