anentrypoint-design 0.0.307 → 0.0.309

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.307",
3
+ "version": "0.0.309",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -407,7 +407,7 @@ export function BarChart({ items = [], emptyText = 'no data yet' }) {
407
407
  h('div', { class: 'ds-barchart-value' }, it.display != null ? it.display : String(it.value)))));
408
408
  }
409
409
 
410
- export function Table({ headers = [], rows = [], onRowClick, emptyText = 'nothing here yet', rowLabels }) {
410
+ export function Table({ headers = [], rows = [], onRowClick, emptyText = 'nothing here yet', rowLabels, striped = false, compact = false }) {
411
411
  if (!rows || rows.length === 0) return h('div', { class: 'empty' }, emptyText);
412
412
  // rowLabels lets callers supply a plain-text label per row when the first
413
413
  // cell is a vnode (so the aria-label is meaningful, not the literal 'row').
@@ -421,7 +421,10 @@ export function Table({ headers = [], rows = [], onRowClick, emptyText = 'nothin
421
421
  // risks overriding native semantics, so it is omitted.
422
422
  // Scroll containment lives on the component itself: a wide table used
423
423
  // outside a Panel must never force page-level horizontal scroll.
424
- return h('div', { class: 'ds-table-wrap' }, h('table', {},
424
+ // striped/compact are opt-in density modifiers (webgeist g-table parity) —
425
+ // default false so the existing contract/visual is byte-unchanged.
426
+ const wrapClass = 'ds-table-wrap' + (striped ? ' is-striped' : '') + (compact ? ' is-compact' : '');
427
+ return h('div', { class: wrapClass }, h('table', {},
425
428
  h('thead', {}, h('tr', {}, ...headers.map((hd, i) => h('th', { key: i, scope: 'col' }, hd)))),
426
429
  h('tbody', {}, ...rows.map((row, i) => h('tr', {
427
430
  key: i,