anentrypoint-design 0.0.288 → 0.0.290
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/app-shell.css +13 -0
- package/chat.css +7 -7
- package/dist/247420.css +20 -7
- package/dist/247420.js +14 -14
- package/package.json +1 -1
- package/src/components/files.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.290",
|
|
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",
|
package/src/components/files.js
CHANGED
|
@@ -487,7 +487,8 @@ export function UploadProgress({ items = [], onDismiss } = {}) {
|
|
|
487
487
|
if (!items.length) return null;
|
|
488
488
|
return h('div', { class: 'ds-upload-progress' },
|
|
489
489
|
...items.map((it, i) => {
|
|
490
|
-
const
|
|
490
|
+
const indeterminate = !it.error && !it.done && !it.pct && it.indeterminate;
|
|
491
|
+
const status = it.error ? 'error' : (it.done ? 'complete' : (indeterminate ? 'uploading' : `uploading ${it.pct || 0}%`));
|
|
491
492
|
const rowActions = [
|
|
492
493
|
...((it.actions || []).map((a, ai) => h('button', {
|
|
493
494
|
key: 'ua' + ai, type: 'button', class: 'ds-upload-act',
|
|
@@ -508,10 +509,10 @@ export function UploadProgress({ items = [], onDismiss } = {}) {
|
|
|
508
509
|
'aria-live': 'polite'
|
|
509
510
|
},
|
|
510
511
|
h('span', { class: 'ds-upload-name' }, it.name),
|
|
511
|
-
h('span', { class: 'ds-upload-bar' },
|
|
512
|
+
h('span', { class: 'ds-upload-bar' + (indeterminate ? ' indeterminate' : '') },
|
|
512
513
|
h('span', { class: 'ds-upload-fill', 'data-pct': String(Math.max(0, Math.min(100, it.pct || 0))), 'aria-hidden': 'true' })
|
|
513
514
|
),
|
|
514
|
-
h('span', { class: 'ds-upload-pct', 'aria-hidden': 'true' }, (it.error ? 'err' : (it.done ? 'ok' : (it.pct || 0) + '%'))),
|
|
515
|
+
h('span', { class: 'ds-upload-pct', 'aria-hidden': 'true' }, (it.error ? 'err' : (it.done ? 'ok' : (indeterminate ? '...' : (it.pct || 0) + '%')))),
|
|
515
516
|
rowActions.length ? h('span', { class: 'ds-upload-actions', role: 'group', 'aria-label': `actions for ${it.name}` }, ...rowActions) : null
|
|
516
517
|
);
|
|
517
518
|
})
|