anentrypoint-design 0.0.210 → 0.0.211

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.210",
3
+ "version": "0.0.211",
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",
@@ -100,7 +100,13 @@ export function Row({ code, rank, title, sub, meta, active, state = 'default', o
100
100
  onkeydown: (e) => { e.stopPropagation(); },
101
101
  }, a.label)))
102
102
  : null;
103
+ // Color is not the only status channel: emit a visually-hidden word for the
104
+ // meaningful rail tones (error/subagent) so AT and color-blind users get the
105
+ // state. green is the unremarkable default - announcing "ok" everywhere would
106
+ // be AT noise - so it emits nothing.
107
+ const railWord = rail === 'flame' ? 'error' : rail === 'purple' ? 'subagent' : null;
103
108
  return h(isLink ? 'a' : 'div', props,
109
+ railWord ? h('span', { class: 'sr-only' }, railWord) : null,
104
110
  leading != null ? leading : (codeVal != null ? h('span', { class: 'code' }, codeVal) : null),
105
111
  h('span', { class: 'title' }, titleNode, sub ? h('span', { class: 'sub' }, sub) : null),
106
112
  trailing != null ? trailing : (meta != null ? h('span', { class: 'meta' }, meta) : null),
@@ -97,7 +97,7 @@ export function FileRow({ name, type = 'other', size, modified, code, onOpen, on
97
97
  'aria-label': (marked ? 'unselect ' : 'select ') + name,
98
98
  disabled: (noAccess || busy) ? true : null,
99
99
  onclick: onMark ? (e) => onMark({ range: !!e.shiftKey }) : null,
100
- }, h('span', { 'aria-hidden': 'true' }, marked ? '[x]' : '[ ]')) : null;
100
+ }, h('span', { class: 'ds-check-box', 'aria-hidden': 'true' })) : null;
101
101
  // A role=button row containing real <button> action controls is invalid
102
102
  // HTML (interactive nesting). Instead the row is a plain container and the
103
103
  // primary "open" affordance is itself a real <button> (native keyboard +
@@ -243,7 +243,7 @@ export function FileGrid({ files = [], onOpen, onAction, onUp, emptyText = 'No f
243
243
  'aria-checked': allState,
244
244
  'aria-label': allState === 'true' ? 'clear selection' : 'select all ' + selectableKeys.length + ' shown files',
245
245
  onclick: () => (allState === 'true' && onClearSelection) ? onClearSelection() : onSelectAll(selectableKeys) },
246
- h('span', { 'aria-hidden': 'true' }, allState === 'true' ? '[x]' : allState === 'mixed' ? '[-]' : '[ ]'),
246
+ h('span', { class: 'ds-check-box', 'aria-hidden': 'true' }),
247
247
  h('span', {}, 'all'))
248
248
  : null;
249
249
  // Density picker — list / compact / thumbnails. A radiogroup, not tabs:
@@ -334,7 +334,7 @@ function FileCell({ key, f = {}, selectable = false, marked = false, onMark, onO
334
334
  'aria-label': (marked ? 'unselect ' : 'select ') + f.name,
335
335
  disabled: noAccess ? true : null,
336
336
  onclick: onMark ? (e) => onMark({ range: !!e.shiftKey }) : null,
337
- }, h('span', { 'aria-hidden': 'true' }, marked ? '[x]' : '[ ]')) : null,
337
+ }, h('span', { class: 'ds-check-box', 'aria-hidden': 'true' })) : null,
338
338
  h('button', {
339
339
  key: 'open', type: 'button', class: 'ds-file-cell-open',
340
340
  onclick: canOpen ? () => onOpen(f) : null,
@@ -186,7 +186,7 @@ export function SessionCard({ session = {}, onStop, onOpen, onView, active = fal
186
186
  'aria-checked': selected ? 'true' : 'false',
187
187
  'aria-label': (selected ? 'deselect' : 'select') + ' session ' + (s.title || s.agent || s.sid),
188
188
  onclick: () => onToggleSelect && onToggleSelect(s),
189
- }, selected ? '[x]' : '[ ]') : null,
189
+ }, h('span', { class: 'ds-check-box', 'aria-hidden': 'true' })) : null,
190
190
  h('span', { class: 'status-dot-disc ' + STATUS_DISC[st], 'aria-hidden': 'true' }),
191
191
  h('span', { class: 'ds-dash-status is-' + st }, STATUS_WORD[st]),
192
192
  s.external ? h('span', { class: 'ds-dash-external' }, 'external') : null,
@@ -310,7 +310,7 @@ export function SessionDashboard({ sessions = [], onStop, onOpen, onView, onStop
310
310
  ? h('button', { key: 'selall', type: 'button', class: 'ds-dash-selectall', role: 'checkbox',
311
311
  'aria-checked': allState, 'aria-label': allState === 'true' ? 'clear selection' : 'select all sessions',
312
312
  onclick: () => (allState === 'true' && onClearSelection) ? onClearSelection() : onSelectAll(selectableSids) },
313
- h('span', { 'aria-hidden': 'true' }, allState === 'true' ? '[x]' : allState === 'mixed' ? '[-]' : '[ ]'),
313
+ h('span', { class: 'ds-check-box', 'aria-hidden': 'true' }),
314
314
  h('span', {}, 'all'))
315
315
  : null;
316
316
  const clearCtl = (selectable && selCount && onClearSelection)