@triptease/design-system-mcp 1.2.4 → 1.2.6

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 +78 -23
  2. package/package.json +3 -3
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.4",
23305
+ version: "1.2.6",
23306
23306
  description: "MCP server for Triptease design system documentation",
23307
23307
  type: "module",
23308
23308
  main: "dist/index.js",
@@ -23323,7 +23323,7 @@ var package_default = {
23323
23323
  node: ">=18.0.0"
23324
23324
  },
23325
23325
  componentVersions: {
23326
- "@triptease/stylesheet": "2.1.3",
23326
+ "@triptease/stylesheet": "2.1.4",
23327
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",
@@ -23339,7 +23339,7 @@ var package_default = {
23339
23339
  "@triptease/tt-tabs": "1.1.0"
23340
23340
  },
23341
23341
  dependencies: {
23342
- "@triptease/stylesheet": "2.1.3"
23342
+ "@triptease/stylesheet": "2.1.5"
23343
23343
  },
23344
23344
  devDependencies: {
23345
23345
  "@modelcontextprotocol/sdk": "1.26.0",
@@ -24041,10 +24041,14 @@ var table_default = {
24041
24041
  "On small screens where columns cannot fit \u2014 consider alternative layouts"
24042
24042
  ],
24043
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.",
24044
+ "Right-align numeric content (counts, percentages, currency). Left-align all other content. Column headers must match the alignment of their column.",
24045
+ "Place action columns last.",
24046
+ "If rows navigate to a resource or page, use the resource display name as the first column and link the text \u2014 not the entire row. Every value in the first column must be unique.",
24047
+ "Keep column names short \u2014 one or two words where possible. Avoid sentences and sub-headings.",
24045
24048
  "Use a dash (\u2014) for missing or unknown values. Do not leave cells empty \u2014 an empty cell is ambiguous.",
24046
24049
  "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."
24050
+ "Use secondary buttons for row actions.",
24051
+ "Use icons within cells only inside action buttons, or to communicate status where a badge would be less clear. Always include an accessible label. Do not use icons in column headers."
24048
24052
  ],
24049
24053
  accessibility: [
24050
24054
  'Use th scope="col" on column headers to help screen readers associate cells with their headings',
@@ -24129,24 +24133,75 @@ var table_default = {
24129
24133
  examples: [
24130
24134
  {
24131
24135
  title: "Basic table",
24136
+ description: "Numeric columns (counts, percentages, currency) are right-aligned. Text columns are left-aligned. Column headers match the alignment of their content.",
24132
24137
  code: `<table>
24133
24138
  <thead>
24134
24139
  <tr>
24135
24140
  <th scope="col">Property Name</th>
24136
- <th scope="col">Impressions</th>
24137
- <th scope="col">Revenue</th>
24141
+ <th scope="col" style="text-align: right">Impressions</th>
24142
+ <th scope="col" style="text-align: right">Revenue</th>
24138
24143
  </tr>
24139
24144
  </thead>
24140
24145
  <tbody>
24141
24146
  <tr>
24142
24147
  <td>Downtown Suites</td>
24143
- <td>12,450</td>
24144
- <td>$5,760.00</td>
24148
+ <td style="text-align: right">12,450</td>
24149
+ <td style="text-align: right">$5,760.00</td>
24145
24150
  </tr>
24146
24151
  <tr>
24147
24152
  <td>Oceanview Villas</td>
24148
- <td>9,875</td>
24149
- <td>$3,420.00</td>
24153
+ <td style="text-align: right">9,875</td>
24154
+ <td style="text-align: right">$3,420.00</td>
24155
+ </tr>
24156
+ </tbody>
24157
+ </table>`
24158
+ },
24159
+ {
24160
+ title: "Table with actions",
24161
+ description: "Place the actions column last. Use secondary buttons for row actions.",
24162
+ code: `<table>
24163
+ <thead>
24164
+ <tr>
24165
+ <th scope="col">Property Name</th>
24166
+ <th scope="col" style="text-align: right">Revenue</th>
24167
+ <th scope="col">Actions</th>
24168
+ </tr>
24169
+ </thead>
24170
+ <tbody>
24171
+ <tr>
24172
+ <td>Downtown Suites</td>
24173
+ <td style="text-align: right">$5,760.00</td>
24174
+ <td><button data-theme="secondary">Edit</button></td>
24175
+ </tr>
24176
+ <tr>
24177
+ <td>Oceanview Villas</td>
24178
+ <td style="text-align: right">$3,420.00</td>
24179
+ <td><button data-theme="secondary">Edit</button></td>
24180
+ </tr>
24181
+ </tbody>
24182
+ </table>`
24183
+ },
24184
+ {
24185
+ title: "Table with linked rows",
24186
+ description: "When rows navigate to a resource, link the first column text. Do not make the entire row a link.",
24187
+ code: `<table>
24188
+ <thead>
24189
+ <tr>
24190
+ <th scope="col">Property Name</th>
24191
+ <th scope="col" style="text-align: right">Impressions</th>
24192
+ <th scope="col" style="text-align: right">Revenue</th>
24193
+ </tr>
24194
+ </thead>
24195
+ <tbody>
24196
+ <tr>
24197
+ <td><a href="/properties/1">Downtown Suites</a></td>
24198
+ <td style="text-align: right">12,450</td>
24199
+ <td style="text-align: right">$5,760.00</td>
24200
+ </tr>
24201
+ <tr>
24202
+ <td><a href="/properties/2">Oceanview Villas</a></td>
24203
+ <td style="text-align: right">9,875</td>
24204
+ <td style="text-align: right">$3,420.00</td>
24150
24205
  </tr>
24151
24206
  </tbody>
24152
24207
  </table>`
@@ -24159,20 +24214,20 @@ var table_default = {
24159
24214
  <thead>
24160
24215
  <tr>
24161
24216
  <th scope="col" data-sort-key="name">Property Name</th>
24162
- <th scope="col" data-sort-key="impressions">Impressions</th>
24163
- <th scope="col" data-sort-key="revenue">Revenue</th>
24217
+ <th scope="col" data-sort-key="impressions" style="text-align: right">Impressions</th>
24218
+ <th scope="col" data-sort-key="revenue" style="text-align: right">Revenue</th>
24164
24219
  </tr>
24165
24220
  </thead>
24166
24221
  <tbody>
24167
24222
  <tr>
24168
24223
  <td>Downtown Suites</td>
24169
- <td>12,450</td>
24170
- <td>$5,760.00</td>
24224
+ <td style="text-align: right">12,450</td>
24225
+ <td style="text-align: right">$5,760.00</td>
24171
24226
  </tr>
24172
24227
  <tr>
24173
24228
  <td>Oceanview Villas</td>
24174
- <td>9,875</td>
24175
- <td>$3,420.00</td>
24229
+ <td style="text-align: right">9,875</td>
24230
+ <td style="text-align: right">$3,420.00</td>
24176
24231
  </tr>
24177
24232
  </tbody>
24178
24233
  </table>
@@ -24193,20 +24248,20 @@ var table_default = {
24193
24248
  <thead>
24194
24249
  <tr>
24195
24250
  <th scope="col">Property Name</th>
24196
- <th scope="col">Impressions</th>
24197
- <th scope="col">Revenue</th>
24251
+ <th scope="col" style="text-align: right">Impressions</th>
24252
+ <th scope="col" style="text-align: right">Revenue</th>
24198
24253
  </tr>
24199
24254
  </thead>
24200
24255
  <tbody>
24201
24256
  <tr>
24202
24257
  <td>Downtown Suites</td>
24203
- <td>12,450</td>
24204
- <td>$5,760.00</td>
24258
+ <td style="text-align: right">12,450</td>
24259
+ <td style="text-align: right">$5,760.00</td>
24205
24260
  </tr>
24206
24261
  <tr>
24207
24262
  <td>Oceanview Villas</td>
24208
- <td>9,875</td>
24209
- <td>$3,420.00</td>
24263
+ <td style="text-align: right">9,875</td>
24264
+ <td style="text-align: right">$3,420.00</td>
24210
24265
  </tr>
24211
24266
  </tbody>
24212
24267
  </table>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triptease/design-system-mcp",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "MCP server for Triptease design system documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "node": ">=18.0.0"
22
22
  },
23
23
  "componentVersions": {
24
- "@triptease/stylesheet": "2.1.3",
24
+ "@triptease/stylesheet": "2.1.4",
25
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",
@@ -37,7 +37,7 @@
37
37
  "@triptease/tt-tabs": "1.1.0"
38
38
  },
39
39
  "dependencies": {
40
- "@triptease/stylesheet": "2.1.3"
40
+ "@triptease/stylesheet": "2.1.5"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@modelcontextprotocol/sdk": "1.26.0",