@tensor_1/react 2.57.1 → 2.59.0
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/README.md +13 -4
- package/component-inventory.json +4 -0
- package/dist/components/DashboardCanvas.js +3 -1
- package/dist/components/DataWorkspace.d.ts +12 -1
- package/dist/components/DataWorkspace.js +111 -25
- package/dist/components/FileKindIcon.d.ts +5 -1
- package/dist/components/FileKindIcon.js +5 -1
- package/dist/components/MotionList.d.ts +7 -1
- package/dist/components/MotionList.js +9 -1
- package/dist/file-model.d.ts +14 -7
- package/dist/file-model.js +18 -6
- package/dist/icons/components.d.ts +2 -1
- package/dist/icons/components.js +2 -0
- package/dist/icons/glyphs.d.ts +3 -1
- package/dist/icons/glyphs.js +3 -0
- package/dist/icons.cjs +5 -0
- package/dist/icons.d.cts +3 -1
- package/dist/icons.d.ts +1 -1
- package/dist/index.cjs +145 -33
- package/dist/index.d.cts +38 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,15 @@ workflow surfaces, the main entry exports `Pipeline`/`PipelineStage` (compact or
|
|
|
45
45
|
Large fixed-height tables can use `useVirtualRows(rows, { rowHeight })`; attach its `containerRef` to
|
|
46
46
|
`TableWrap` and render the returned row window between spacer rows.
|
|
47
47
|
|
|
48
|
+
`PageHeader` keeps complete record names readable in a narrow container: long words wrap,
|
|
49
|
+
including a title passed as a React node, while the help control stays beside the heading
|
|
50
|
+
and actions can move below it. Set the document's `lang` for language-aware hyphenation;
|
|
51
|
+
no consumer CSS override or plain-string-only title is needed. The default and display
|
|
52
|
+
presets are exercised with German names, help and actions in the live specimen at
|
|
53
|
+
`tests/page-header/harness.html` (build it with `node tests/page-header/build.mjs` and
|
|
54
|
+
serve the repo with `npm run serve:styleguide`). The browser regression checks the title's
|
|
55
|
+
text fragments as well as page width, so clipping by an ancestor cannot hide an overflow.
|
|
56
|
+
|
|
48
57
|
## Rich text, markdown and emoji
|
|
49
58
|
|
|
50
59
|
Three optional entries (RTE-01). None of them is imported by the root entry.
|
|
@@ -511,7 +520,7 @@ toast.dismiss(id); // or toast.dismiss() for all
|
|
|
511
520
|
- **Modal feedback (HAR-2754):** keep one `Toaster` in the shell. It moves its stable host into the most recently opened UIx modal (`Modal`, `Drawer`, `Peek`, `ConfirmDialog`) and promotes the region to a manual popover. Both are necessary: a page z-index cannot cover a modal, and a top-layer popover outside the modal remains inert. Closing a nested dialog returns the same queue to its parent; closing the last dialog returns it to its original shell location. No caller z-index or extra toaster is needed. The live [German modal-feedback specimen](../../tests/toast-top-layer/harness.html) exercises error, pending, success, retry and dismissal in a drawer and a nested modal; bundle it with `node tests/toast-top-layer/build.mjs` when serving the repository. Browser regression: `tests/a11y/toast-top-layer.spec.mjs` hit-tests toast pixels and operates its controls at desktop and 320 px in both themes.
|
|
512
521
|
### Icons (`@tensor_1/react/icons`)
|
|
513
522
|
|
|
514
|
-
The UIx icon set (HAR-996):
|
|
523
|
+
The UIx icon set (HAR-996): 237 glyphs drawn in `currentColor` at the `--uix-icon-*` sizes. Icons come only from UIx
|
|
515
524
|
(workspace ADR-0038); no product adds an icon library. The glyphs are Lucide's (ISC); the licence travels in
|
|
516
525
|
`THIRD_PARTY_NOTICES.md`. Import the CSS once: `@tensor_1/tokens/components/icon` (also in the bundle).
|
|
517
526
|
|
|
@@ -922,7 +931,7 @@ A full-screen media viewer (HAR-1367; TENSOR's capture viewer, MOTUS's programme
|
|
|
922
931
|
- **Attachment:** the name is the link (`href`, `download`, `renderLink`). It has a quieter `meta` line, a `state` slot (e.g. a "Scanning" `StatusPill`), `actions`, `onRemove`, and `status` `loading` | `error` | `forbidden` (no link, and the reason shown). It's server-renderable.
|
|
923
932
|
- Pure helpers: `formatFileSize`, `fileMatchesAccept`, `partitionFiles`, `fileKind`.
|
|
924
933
|
|
|
925
|
-
### File kit: kinds, the file row and the slim drop row (2.57.0)
|
|
934
|
+
### File kit: kinds, the file row and the slim drop row (2.57.0; office kinds 2.59.0)
|
|
926
935
|
|
|
927
936
|
Attachments that show what they are before you read the name, and an upload you can watch (variation H of the 2026-11-05 attachments study; TENSOR's Anhänge panel). Each kind of file has a hue (`--uix-file-<kind>`) and a Lucide glyph; a row's left edge carries the kind's tint, and that tint becomes the upload fill.
|
|
928
937
|
|
|
@@ -940,8 +949,8 @@ Attachments that show what they are before you read the name, and an upload you
|
|
|
940
949
|
</section>
|
|
941
950
|
```
|
|
942
951
|
|
|
943
|
-
- **Kinds:** `fileKind(name, mime)` gives one of `img` Bild, `doc` Dokument, `sheet` Tabelle, `mail` E-Mail, `code` Code & Konfiguration, `log` Protokoll, `archive` Archiv, `other` Datei. A known extension wins over the MIME type (a `.log` arrives as `text/plain`); pass `''` as the name when only the type is known, as in a drag event. The lists are `FILE_KIND_EXTENSIONS`.
|
|
944
|
-
- **`FileKindIcon`:** the glyph in the kind's colour with the extension (`fileTypeLabel`: at most four capitals) as a solid label on the corner, ringed in the surface colour. `size` `sm` 30 px (a compact row), `md` 34 px, `lg` 52 px. Decorative unless you pass `label`. It is server-renderable. (`FileIcon` in `./icons` is the plain `file` glyph, hence the name.)
|
|
952
|
+
- **Kinds:** `fileKind(name, mime)` gives one of `img` Bild, `doc` Dokument (Word and other word-processor files), `sheet` Tabelle, `slides` Präsentation, `pdf` PDF, `mail` E-Mail, `code` Code & Konfiguration, `log` Protokoll, `archive` Archiv, `text` Text (`.txt`, `.md`), `other` Datei. `.key` stays `other`: in a ticket it is far more often a private key than a Keynote file. A known extension wins over the MIME type (a `.log` arrives as `text/plain`); pass `''` as the name when only the type is known, as in a drag event. The lists are `FILE_KIND_EXTENSIONS`. The office kinds take the colour people know from the program: Word blue (`doc`), Excel green (`sheet`), PowerPoint orange (`slides`), PDF red (`pdf`), each tuned so it never reads as the danger red (red stays for broken), the attention orange or the brand blue (blue stays for actions); `file-kinds.test.mjs` holds them there. `text` is the grey of `other`. In light four kinds are the calm chart slots. Before 2.59 Word, PowerPoint, PDF and text files were one rose `doc` kind.
|
|
953
|
+
- **`FileKindIcon`:** the glyph in the kind's colour (`slides` draws the presentation board, which is new in the icon set; `doc`, `pdf` and `text` share the page glyph) with the extension (`fileTypeLabel`: at most four capitals) as a solid label on the corner, ringed in the surface colour. `size` `sm` 30 px (a compact row), `md` 34 px, `lg` 52 px. Decorative unless you pass `label`. It is server-renderable. (`FileIcon` in `./icons` is the plain `file` glyph, hence the name.)
|
|
945
954
|
- **`FileRow` states:** `idle` (files that were already there), `uploading` (the fill scales to `progress`, 0 to 1, or `loaded / size`, with a thin leading edge; "Wird hochgeladen · 62 % · 1,5 von 2,4 MB" and Abbrechen with `onCancel`), `done` (just finished: a check draws on the icon and the fill fades over 1.2 s; render `idle` afterwards), `scanning` ("Wird auf Schadsoftware geprüft", no motion), `blocked` (amber, Details with `onDetails`) and `failed` (red, Erneut versuchen with `onRetry`). `message` replaces the words of the last two. The outcome of an upload is announced once, never the progress.
|
|
946
955
|
- **Actions:** `href` makes the download a link (`download` sets the saved name), or pass `onDownload`; `onMoreActions` adds "Weitere Aktionen" for your `Menu`; `actions` replaces both. With a fine pointer they appear on hover and focus; on touch they are always there.
|
|
947
956
|
- **`FileDrop`:** one dashed line, "Dateien ablegen oder auswählen", backed by a real file input. The choose button is the one tab stop and opens the chooser; a click anywhere on the row does too. While files are dragged over it (or over `targetRef`, such as the whole panel), it reads their MIME types and names them ("2 Dateien: Bild, Protokoll") and tints itself from the pointer outwards, one colour per kind. A drop hands the files that match `accept` to `onFiles` and the rest to `onReject`.
|
package/component-inventory.json
CHANGED
|
@@ -119,7 +119,7 @@ function DashboardCanvas({
|
|
|
119
119
|
const placed = placeCanvasItem(live.current.layout, item.id, targetFor(move)).find((candidate) => candidate.id === item.id);
|
|
120
120
|
if (!placed) return;
|
|
121
121
|
last = { col: placed.col, row: placed.row, w: placed.w, h: placed.h };
|
|
122
|
-
setPreview({ id: item.id, placement: last });
|
|
122
|
+
setPreview({ id: item.id, kind, placement: last });
|
|
123
123
|
};
|
|
124
124
|
const finish = (drop) => {
|
|
125
125
|
drag.stop();
|
|
@@ -182,10 +182,12 @@ function DashboardCanvas({
|
|
|
182
182
|
layout.map((item) => {
|
|
183
183
|
const name = itemLabel(item);
|
|
184
184
|
const dragging = preview?.id === item.id;
|
|
185
|
+
const lifted = dragging && preview.kind === "move";
|
|
185
186
|
return /* @__PURE__ */ jsxs(
|
|
186
187
|
"div",
|
|
187
188
|
{
|
|
188
189
|
className: cx("uix-dashboard-canvas__item", dragging && "uix-dashboard-canvas__item--dragging"),
|
|
190
|
+
"data-uix-drag": lifted ? "lifted" : void 0,
|
|
189
191
|
style: placementStyle(item, order.get(item.id) ?? 0),
|
|
190
192
|
"data-canvas-id": item.id,
|
|
191
193
|
children: [
|
|
@@ -317,6 +317,17 @@ interface DataWorkspaceProps<T, S extends DataWorkspaceSortState = DataWorkspace
|
|
|
317
317
|
status?: 'ready' | 'loading' | 'error';
|
|
318
318
|
/** A refetch (filter, sort, page, saved view): the rows stay under `TableWrap refreshing`. */
|
|
319
319
|
refreshing?: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Row motion (HAR-2755, list motion of the motion standard §2.5): a row that arrives (a live
|
|
322
|
+
* update, the "new items" pill) rises in; a row that leaves (a bulk close, a row handled
|
|
323
|
+
* elsewhere) fades out while the rows after it glide into its place, and the empty state waits
|
|
324
|
+
* for the last one; a re-sort glides. A new page, filter or view that replaces most rows swaps
|
|
325
|
+
* at once. Focus moves to a neighbour when its row leaves. Reduced motion keeps the fades only.
|
|
326
|
+
* Not for grouped or windowed bodies, which keep plain rows. A leaving row stays in the DOM
|
|
327
|
+
* (inert, `aria-hidden`) until its exit ends, so a test that counts rows right after a removal
|
|
328
|
+
* sees it for up to a second. Default `false`.
|
|
329
|
+
*/
|
|
330
|
+
rowMotion?: boolean;
|
|
320
331
|
onRetry?: () => void;
|
|
321
332
|
/** Skeleton rows on a first load. Default 6. */
|
|
322
333
|
loadingRows?: number;
|
|
@@ -376,6 +387,6 @@ interface DataWorkspaceProps<T, S extends DataWorkspaceSortState = DataWorkspace
|
|
|
376
387
|
* rich id cell, multi-column sort, the product's state bodies and `beforeBody`, row groups,
|
|
377
388
|
* windowing (`virtualize`) and a keyboard row model (`onRowActivate`).
|
|
378
389
|
*/
|
|
379
|
-
declare function DataWorkspace<T, S extends DataWorkspaceSortState = DataWorkspaceSort | null>({ label, rows, getRowId, rowLabel, columns, idColumn, sort, onSortChange, selection, onSelectionChange, maxSelection, bulkActions, rowActions, rowActionsColumn, getRowProps, density, zebra, freezeFirstColumn, fixed, mobile, search, filters, savedViews, viewMenu, viewChanged, onSaveView, onSaveViewAs, saveViewAs, maximized, onMaximizedChange, toolbarEnd, beforeBody, pagination, status, refreshing, onRetry, loadingRows, empty, emptyAction, filteredEmpty, filteredEmptyAction, error, stateOverride, groups, collapsedGroups, onCollapsedGroupsChange, virtualize, rowNavigation, onRowActivate, activateOnClick, activeRowId, onActiveRowChange, multiSort, labels: labelOverrides, className, ...props }: DataWorkspaceProps<T, S>): react.JSX.Element;
|
|
390
|
+
declare function DataWorkspace<T, S extends DataWorkspaceSortState = DataWorkspaceSort | null>({ label, rows, getRowId, rowLabel, columns, idColumn, sort, onSortChange, selection, onSelectionChange, maxSelection, bulkActions, rowActions, rowActionsColumn, getRowProps, density, zebra, freezeFirstColumn, fixed, mobile, search, filters, savedViews, viewMenu, viewChanged, onSaveView, onSaveViewAs, saveViewAs, maximized, onMaximizedChange, toolbarEnd, beforeBody, pagination, status, refreshing, rowMotion, onRetry, loadingRows, empty, emptyAction, filteredEmpty, filteredEmptyAction, error, stateOverride, groups, collapsedGroups, onCollapsedGroupsChange, virtualize, rowNavigation, onRowActivate, activateOnClick, activeRowId, onActiveRowChange, multiSort, labels: labelOverrides, className, ...props }: DataWorkspaceProps<T, S>): react.JSX.Element;
|
|
380
391
|
|
|
381
392
|
export { DEFAULT_DATA_WORKSPACE_LABELS, DataWorkspace, type DataWorkspaceColumn, type DataWorkspaceGroup, type DataWorkspaceIdColumn, type DataWorkspaceLabels, type DataWorkspacePagination, type DataWorkspaceProps, type DataWorkspaceRowActionsContext, type DataWorkspaceSort, type DataWorkspaceSortState, type DataWorkspaceSortValue, type DataWorkspaceVirtualize };
|
|
@@ -15,6 +15,7 @@ import { Checkbox } from "./Checkbox.js";
|
|
|
15
15
|
import { Chip } from "./Chip.js";
|
|
16
16
|
import { FilterEditor } from "./FilterEditor.js";
|
|
17
17
|
import { Menu, MenuItem } from "./Menu.js";
|
|
18
|
+
import { MotionList } from "./MotionList.js";
|
|
18
19
|
import { Pagination } from "./Pagination.js";
|
|
19
20
|
import { Popover } from "./Popover.js";
|
|
20
21
|
import { SearchBar } from "./SearchBar.js";
|
|
@@ -74,6 +75,7 @@ const hiddenBy = (ladder, priority) => ladder === "priority" && priority === "lo
|
|
|
74
75
|
const ROW_HEIGHT = { compact: 44, standard: 56, comfortable: 68 };
|
|
75
76
|
const CONTROLS = 'a, button, input, select, textarea, label, summary, dialog, [role="button"], [role="menuitem"], [contenteditable="true"], [popover], td.uix-table__selcell, td.uix-table__actions';
|
|
76
77
|
const RESERVED_COLS = /* @__PURE__ */ new Set(["select", "id", "actions", "expand"]);
|
|
78
|
+
const MOTION_ROW_LIMIT = 12;
|
|
77
79
|
const textOf = (node) => typeof node === "string" ? node : void 0;
|
|
78
80
|
const columnLabel = (column) => column.label ?? textOf(column.header);
|
|
79
81
|
const ladderAttrs = (on, column, body) => on ? {
|
|
@@ -117,6 +119,7 @@ function DataWorkspace({
|
|
|
117
119
|
pagination,
|
|
118
120
|
status = "ready",
|
|
119
121
|
refreshing = false,
|
|
122
|
+
rowMotion = false,
|
|
120
123
|
onRetry,
|
|
121
124
|
loadingRows = 6,
|
|
122
125
|
empty,
|
|
@@ -203,6 +206,13 @@ function DataWorkspace({
|
|
|
203
206
|
const view = flat.length > 0 ? current : refreshing || source === settled.source ? settled : current;
|
|
204
207
|
const shownRows = view.flat;
|
|
205
208
|
const shownGroups = view.groups;
|
|
209
|
+
const [exitHold, setExitHold] = useState({ count: shownRows.length, filtered: view.filtered, refreshing, held: false });
|
|
210
|
+
if (exitHold.count !== shownRows.length || exitHold.filtered !== view.filtered || exitHold.refreshing !== refreshing) {
|
|
211
|
+
const held = rowMotion && shownRows.length === 0 && exitHold.count > 0 && exitHold.filtered === view.filtered && !exitHold.refreshing && !refreshing && !shownGroups && status === "ready" && stateOverride == null;
|
|
212
|
+
setExitHold({ count: shownRows.length, filtered: view.filtered, refreshing, held });
|
|
213
|
+
}
|
|
214
|
+
const holdingExit = exitHold.held && shownRows.length === 0;
|
|
215
|
+
const onRowsExited = useCallback(() => setExitHold((current2) => current2.held ? { ...current2, held: false } : current2), []);
|
|
206
216
|
const [ownCollapsed, setOwnCollapsed] = useState(() => /* @__PURE__ */ new Set());
|
|
207
217
|
const collapsed = collapsedGroups ?? ownCollapsed;
|
|
208
218
|
const toggleGroupOpen = (groupId) => {
|
|
@@ -317,7 +327,7 @@ function DataWorkspace({
|
|
|
317
327
|
if (stateOverride != null) body = busy(stateOverride);
|
|
318
328
|
else if (status === "loading") body = /* @__PURE__ */ jsx(LoadingState, { rows: loadingRows, label: labels.loading, className: "uix-data-workspace__loading" });
|
|
319
329
|
else if (status === "error") body = error != null ? busy(error) : /* @__PURE__ */ jsx(ErrorState, { title: labels.error, action: onRetry && /* @__PURE__ */ jsx(Button, { size: "sm", onClick: onRetry, children: labels.retry }) });
|
|
320
|
-
else if (shownRows.length === 0) {
|
|
330
|
+
else if (shownRows.length === 0 && !holdingExit) {
|
|
321
331
|
const clear = /* @__PURE__ */ jsx(Button, { size: "sm", onClick: clearAll, children: labels.clearFilters });
|
|
322
332
|
body = busy(view.filtered ? filteredEmpty ?? /* @__PURE__ */ jsx(
|
|
323
333
|
FilteredEmptyState,
|
|
@@ -352,6 +362,7 @@ function DataWorkspace({
|
|
|
352
362
|
ladderOn: mobile != null,
|
|
353
363
|
ladder,
|
|
354
364
|
refreshing,
|
|
365
|
+
rowMotion,
|
|
355
366
|
selectable,
|
|
356
367
|
selected,
|
|
357
368
|
onPage,
|
|
@@ -372,7 +383,8 @@ function DataWorkspace({
|
|
|
372
383
|
activateOnClick,
|
|
373
384
|
activeRowId,
|
|
374
385
|
onActiveRowChange,
|
|
375
|
-
labels
|
|
386
|
+
labels,
|
|
387
|
+
onRowsExited
|
|
376
388
|
}
|
|
377
389
|
);
|
|
378
390
|
}
|
|
@@ -445,6 +457,7 @@ function WorkspaceTable({
|
|
|
445
457
|
ladderOn,
|
|
446
458
|
ladder,
|
|
447
459
|
refreshing,
|
|
460
|
+
rowMotion,
|
|
448
461
|
selectable,
|
|
449
462
|
selected,
|
|
450
463
|
onPage,
|
|
@@ -466,7 +479,8 @@ function WorkspaceTable({
|
|
|
466
479
|
onActiveRowChange,
|
|
467
480
|
labels,
|
|
468
481
|
windowing,
|
|
469
|
-
virtual
|
|
482
|
+
virtual,
|
|
483
|
+
onRowsExited
|
|
470
484
|
}) {
|
|
471
485
|
const cards = ladder === "cards";
|
|
472
486
|
const wrapRef = useRef(null);
|
|
@@ -791,6 +805,44 @@ function WorkspaceTable({
|
|
|
791
805
|
rowId
|
|
792
806
|
);
|
|
793
807
|
};
|
|
808
|
+
const renderLeavingRow = (row) => {
|
|
809
|
+
const rowId = getRowId(row);
|
|
810
|
+
return /* @__PURE__ */ jsx(
|
|
811
|
+
WorkspaceRow,
|
|
812
|
+
{
|
|
813
|
+
row,
|
|
814
|
+
rowId,
|
|
815
|
+
rowLabel,
|
|
816
|
+
columns,
|
|
817
|
+
idColumn,
|
|
818
|
+
getRowProps,
|
|
819
|
+
selectable,
|
|
820
|
+
selected: false,
|
|
821
|
+
selectDisabled: true,
|
|
822
|
+
hasActions,
|
|
823
|
+
actions: null,
|
|
824
|
+
ladder,
|
|
825
|
+
ladderOn,
|
|
826
|
+
selectRowLabel,
|
|
827
|
+
openLabel,
|
|
828
|
+
marked: false,
|
|
829
|
+
nav: false,
|
|
830
|
+
tabStop: false,
|
|
831
|
+
handlers
|
|
832
|
+
},
|
|
833
|
+
rowId
|
|
834
|
+
);
|
|
835
|
+
};
|
|
836
|
+
const indexById = useMemo(() => new Map(ids.map((rowId, index) => [rowId, index])), [ids]);
|
|
837
|
+
const motion = useRef({ ids, generation: 0 });
|
|
838
|
+
if (motion.current.ids !== ids) {
|
|
839
|
+
const before = new Set(motion.current.ids);
|
|
840
|
+
const kept = ids.reduce((count, rowId) => count + (before.has(rowId) ? 1 : 0), 0);
|
|
841
|
+
const changed = ids.length - kept + (before.size - kept);
|
|
842
|
+
const replaced = before.size > 0 && ids.length > 0 && (kept === 0 || changed > MOTION_ROW_LIMIT);
|
|
843
|
+
motion.current = { ids, generation: motion.current.generation + (replaced ? 1 : 0) };
|
|
844
|
+
}
|
|
845
|
+
const motionGeneration = motion.current.generation;
|
|
794
846
|
let tbody;
|
|
795
847
|
if (groups) {
|
|
796
848
|
let offset = 0;
|
|
@@ -843,12 +895,30 @@ function WorkspaceTable({
|
|
|
843
895
|
});
|
|
844
896
|
} else {
|
|
845
897
|
const spacer = (height, key) => /* @__PURE__ */ jsx("tr", { "aria-hidden": "true", className: "uix-data-workspace__spacer", children: /* @__PURE__ */ jsx("td", { colSpan: colCount, style: { height } }) }, key);
|
|
846
|
-
tbody = /* @__PURE__ */ jsxs("tbody", { children: [
|
|
847
|
-
virtual &&
|
|
848
|
-
|
|
898
|
+
tbody = windowed || !rowMotion ? /* @__PURE__ */ jsxs("tbody", { children: [
|
|
899
|
+
virtual && start > 0 && spacer(virtual.padTop, "pad-top"),
|
|
900
|
+
start > 0 && start % 2 === 0 && spacer(0, "pad-zebra"),
|
|
849
901
|
mountedRows.map((row, at) => renderRow(row, start + at)),
|
|
850
|
-
virtual &&
|
|
851
|
-
] })
|
|
902
|
+
virtual && virtual.padBottom > 0 && spacer(virtual.padBottom, "pad-bottom")
|
|
903
|
+
] }) : (
|
|
904
|
+
// Row motion (HAR-2755): a row a live update adds rises in, a row a bulk action removes fades
|
|
905
|
+
// out while the rows after it glide up, a re-sort glides. A new page, filter or view that
|
|
906
|
+
// replaces most rows remounts the body instead (`motionGeneration`), so it swaps at once.
|
|
907
|
+
/* @__PURE__ */ jsx(
|
|
908
|
+
MotionList,
|
|
909
|
+
{
|
|
910
|
+
as: "tbody",
|
|
911
|
+
items: rows,
|
|
912
|
+
getKey: getRowId,
|
|
913
|
+
onExited: onRowsExited,
|
|
914
|
+
renderItem: (row, { exiting }) => {
|
|
915
|
+
const index = exiting ? void 0 : indexById.get(getRowId(row));
|
|
916
|
+
return index === void 0 ? renderLeavingRow(row) : renderRow(row, index);
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
motionGeneration
|
|
920
|
+
)
|
|
921
|
+
);
|
|
852
922
|
}
|
|
853
923
|
const wrapStyle = long ? { "--uix-table-max-height": `${maxHeight}px` } : void 0;
|
|
854
924
|
return /* @__PURE__ */ jsx(
|
|
@@ -944,7 +1014,10 @@ function WorkspaceRowInner({
|
|
|
944
1014
|
ariaRowIndex,
|
|
945
1015
|
nav,
|
|
946
1016
|
tabStop,
|
|
947
|
-
handlers
|
|
1017
|
+
handlers,
|
|
1018
|
+
"data-uix-key": motionKey,
|
|
1019
|
+
"data-uix-exiting": motionExiting,
|
|
1020
|
+
"aria-hidden": motionHidden
|
|
948
1021
|
}) {
|
|
949
1022
|
const renderedActions = useMemo(
|
|
950
1023
|
() => lazyRowActions ? lazyRowActions(row, { ladder, compact: ladder === "priority-mid" }) : actions,
|
|
@@ -971,22 +1044,35 @@ function WorkspaceRowInner({
|
|
|
971
1044
|
handlers.blur(rowId, event);
|
|
972
1045
|
}
|
|
973
1046
|
} : {};
|
|
974
|
-
return /* @__PURE__ */ jsxs(
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1047
|
+
return /* @__PURE__ */ jsxs(
|
|
1048
|
+
Tr,
|
|
1049
|
+
{
|
|
1050
|
+
selected,
|
|
1051
|
+
"data-uix-row-id": marked ? rowId : void 0,
|
|
1052
|
+
"aria-rowindex": ariaRowIndex,
|
|
1053
|
+
...extra,
|
|
1054
|
+
...navProps,
|
|
1055
|
+
"data-uix-key": motionKey,
|
|
1056
|
+
"data-uix-exiting": motionExiting,
|
|
1057
|
+
"aria-hidden": motionHidden,
|
|
1058
|
+
children: [
|
|
1059
|
+
selectable && /* @__PURE__ */ jsx("td", { className: "uix-table__selcell", "data-col": ladderOn ? "select" : void 0, children: /* @__PURE__ */ jsx(
|
|
1060
|
+
Checkbox,
|
|
1061
|
+
{
|
|
1062
|
+
"aria-label": fillLabel(selectRowLabel, { label: text }),
|
|
1063
|
+
checked: selected,
|
|
1064
|
+
disabled: selectDisabled,
|
|
1065
|
+
onClick: (event) => handlers.toggle(rowId, event.currentTarget.checked, event),
|
|
1066
|
+
onChange: () => {
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
) }),
|
|
1070
|
+
idColumn && /* @__PURE__ */ jsx(Td, { className: "uix-id-cell", "data-col": ladderOn ? "id" : void 0, children: /* @__PURE__ */ jsx(IdCell, { row, text, idColumn, openLabel }) }),
|
|
1071
|
+
columns.map((column) => /* @__PURE__ */ jsx(Td, { className: cx(column.align === "end" && "uix-col--num", column.className) || void 0, ...ladderAttrs(ladderOn, column, true), children: column.cell(row) }, column.id)),
|
|
1072
|
+
hasActions && /* @__PURE__ */ jsx(RowActions, { "data-col": ladderOn ? "actions" : void 0, children: renderedActions })
|
|
1073
|
+
]
|
|
1074
|
+
}
|
|
1075
|
+
);
|
|
990
1076
|
}
|
|
991
1077
|
const WorkspaceRow = memo(WorkspaceRowInner);
|
|
992
1078
|
function IdCell({ row, text, idColumn, openLabel }) {
|
|
@@ -3,7 +3,11 @@ import { HTMLAttributes } from 'react';
|
|
|
3
3
|
import { FileKind } from '../file-model.js';
|
|
4
4
|
import { UixIcon } from '../icons/types.js';
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The Lucide glyph of each kind. E-Mail keeps the envelope and Präsentation the presentation
|
|
8
|
+
* board: Lucide has no file-shaped icon for either. Dokument, PDF and Text share the page with
|
|
9
|
+
* lines; their colour and the type label on the corner tell them apart.
|
|
10
|
+
*/
|
|
7
11
|
declare const FILE_KIND_GLYPHS: Readonly<Record<FileKind, UixIcon>>;
|
|
8
12
|
/** `md` 34 px (a list row), `sm` 30 px (a compact panel row), `lg` 52 px. */
|
|
9
13
|
type FileKindIconSize = 'sm' | 'md' | 'lg';
|
|
@@ -9,16 +9,20 @@ import {
|
|
|
9
9
|
FileSpreadsheetIcon,
|
|
10
10
|
FileTerminalIcon,
|
|
11
11
|
FileTextIcon,
|
|
12
|
-
MailIcon
|
|
12
|
+
MailIcon,
|
|
13
|
+
PresentationIcon
|
|
13
14
|
} from "../icons/components.js";
|
|
14
15
|
const FILE_KIND_GLYPHS = {
|
|
15
16
|
img: FileImageIcon,
|
|
16
17
|
doc: FileTextIcon,
|
|
17
18
|
sheet: FileSpreadsheetIcon,
|
|
19
|
+
slides: PresentationIcon,
|
|
20
|
+
pdf: FileTextIcon,
|
|
18
21
|
mail: MailIcon,
|
|
19
22
|
code: FileCodeIcon,
|
|
20
23
|
log: FileTerminalIcon,
|
|
21
24
|
archive: FileArchiveIcon,
|
|
25
|
+
text: FileTextIcon,
|
|
22
26
|
other: FileIcon
|
|
23
27
|
};
|
|
24
28
|
const STROKE = { sm: 1.5, md: 1.5, lg: 1.4 };
|
|
@@ -17,6 +17,12 @@ interface MotionListProps<T> extends Omit<HTMLAttributes<HTMLElement>, 'children
|
|
|
17
17
|
}) => ReactElement;
|
|
18
18
|
/** The list element (default `ul`). */
|
|
19
19
|
as?: 'ul' | 'ol' | 'div' | 'tbody';
|
|
20
|
+
/**
|
|
21
|
+
* Called once the last leaving item has gone (its exit ended, or its deadline passed). A list
|
|
22
|
+
* that shows an empty state in its place keeps rendering the list, with no items, until this
|
|
23
|
+
* fires, so its last item leaves visibly too (HAR-2755).
|
|
24
|
+
*/
|
|
25
|
+
onExited?: () => void;
|
|
20
26
|
}
|
|
21
27
|
/**
|
|
22
28
|
* A list whose items arrive, leave and move visibly (HAR-2586, motion standard §2.5):
|
|
@@ -31,7 +37,7 @@ interface MotionListProps<T> extends Omit<HTMLAttributes<HTMLElement>, 'children
|
|
|
31
37
|
* Reduced motion keeps the fades and drops every glide and rise. For a list that re-sorts
|
|
32
38
|
* itself (live data), hold the order while the person is pointing at it: `useDeferredReorder`.
|
|
33
39
|
*/
|
|
34
|
-
declare function MotionList<T>({ items, getKey, renderItem, as, className, ...props }: MotionListProps<T>): react.DetailedReactHTMLElement<{
|
|
40
|
+
declare function MotionList<T>({ items, getKey, renderItem, as, onExited, className, ...props }: MotionListProps<T>): react.DetailedReactHTMLElement<{
|
|
35
41
|
ref: react.RefObject<HTMLElement>;
|
|
36
42
|
className: string;
|
|
37
43
|
onTransitionEnd: (event: TransitionEvent<HTMLElement>) => void;
|
|
@@ -5,7 +5,7 @@ import { prefersReducedMotion } from "../hooks/useReducedMotion.js";
|
|
|
5
5
|
const useIsomorphicLayoutEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect;
|
|
6
6
|
const EXIT_FALLBACK_MS = 1e3;
|
|
7
7
|
const FOCUSABLE = 'a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])';
|
|
8
|
-
function MotionList({ items, getKey, renderItem, as = "ul", className, ...props }) {
|
|
8
|
+
function MotionList({ items, getKey, renderItem, as = "ul", onExited, className, ...props }) {
|
|
9
9
|
const containerRef = useRef(null);
|
|
10
10
|
const [state, setState] = useState(() => ({
|
|
11
11
|
items,
|
|
@@ -93,6 +93,14 @@ function MotionList({ items, getKey, renderItem, as = "ul", className, ...props
|
|
|
93
93
|
const deadlines = useRef(/* @__PURE__ */ new Map());
|
|
94
94
|
const exitingKeys = entries.filter((e) => e.exiting).map((e) => e.key);
|
|
95
95
|
const exitingSignature = exitingKeys.join("\n");
|
|
96
|
+
const exitedRef = useRef(onExited);
|
|
97
|
+
exitedRef.current = onExited;
|
|
98
|
+
const wasExiting = useRef(false);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
const leaving = exitingSignature !== "";
|
|
101
|
+
if (wasExiting.current && !leaving) exitedRef.current?.();
|
|
102
|
+
wasExiting.current = leaving;
|
|
103
|
+
}, [exitingSignature]);
|
|
96
104
|
useEffect(() => {
|
|
97
105
|
const container = containerRef.current;
|
|
98
106
|
const now = Date.now();
|
package/dist/file-model.d.ts
CHANGED
|
@@ -47,16 +47,23 @@ declare function partitionFiles<F extends {
|
|
|
47
47
|
accepted: F[];
|
|
48
48
|
rejected: FileRejection<F>[];
|
|
49
49
|
};
|
|
50
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* The coarse kinds of the object form of `fileKind`, read by `FileUpload` and `Attachment`. Older
|
|
52
|
+
* than the file kit and separate from `FileKind`: here `text` means any document (Word files
|
|
53
|
+
* included), there it means plain text only.
|
|
54
|
+
*/
|
|
51
55
|
type LegacyFileKind = 'image' | 'video' | 'pdf' | 'sheet' | 'archive' | 'text' | 'other';
|
|
52
56
|
/**
|
|
53
|
-
* What a service-desk agent does with a file, as one of
|
|
54
|
-
*
|
|
55
|
-
* `
|
|
56
|
-
* (
|
|
57
|
+
* What a service-desk agent does with a file, as one of eleven kinds (file kit 2.57, office
|
|
58
|
+
* formats split out in 2.59): `img` (Bild), `doc` (Dokument: Word and other word-processor
|
|
59
|
+
* files), `sheet` (Tabelle), `slides` (Präsentation), `pdf` (PDF), `mail` (E-Mail), `code`
|
|
60
|
+
* (Code & Konfiguration), `log` (Protokoll), `archive` (Archiv), `text` (Text) and `other`
|
|
61
|
+
* (Datei). Each has a colour (`--uix-file-<kind>`) and a glyph; `FileIcon`, `FileRow` and
|
|
62
|
+
* `FileDrop` read it. The office kinds take the colour people know from the program (Word
|
|
63
|
+
* blue, Excel green, PowerPoint orange, PDF red), tuned to stay clear of the status colours.
|
|
57
64
|
*/
|
|
58
|
-
type FileKind = 'img' | 'doc' | 'sheet' | 'mail' | 'code' | 'log' | 'archive' | 'other';
|
|
59
|
-
/** The
|
|
65
|
+
type FileKind = 'img' | 'doc' | 'sheet' | 'slides' | 'pdf' | 'mail' | 'code' | 'log' | 'archive' | 'text' | 'other';
|
|
66
|
+
/** The eleven kinds in display order (`other` last). */
|
|
60
67
|
declare const FILE_KINDS: readonly FileKind[];
|
|
61
68
|
/** The extensions of each kind, lower case and without the dot. `other` has none. */
|
|
62
69
|
declare const FILE_KIND_EXTENSIONS: Readonly<Record<FileKind, readonly string[]>>;
|
package/dist/file-model.js
CHANGED
|
@@ -44,15 +44,18 @@ function legacyFileKind(file) {
|
|
|
44
44
|
if (type.startsWith("text/") || ["txt", "md", "log", "json", "xml", "doc", "docx", "odt", "rtf"].includes(ext)) return "text";
|
|
45
45
|
return "other";
|
|
46
46
|
}
|
|
47
|
-
const FILE_KINDS = ["img", "doc", "sheet", "mail", "code", "log", "archive", "other"];
|
|
47
|
+
const FILE_KINDS = ["img", "doc", "sheet", "slides", "pdf", "mail", "code", "log", "archive", "text", "other"];
|
|
48
48
|
const FILE_KIND_EXTENSIONS = {
|
|
49
49
|
img: ["png", "jpg", "jpeg", "gif", "webp", "heic", "bmp", "svg"],
|
|
50
|
-
doc: ["
|
|
51
|
-
sheet: ["xlsx", "xls", "csv", "ods", "tsv"],
|
|
50
|
+
doc: ["docx", "doc", "docm", "dotx", "dotm", "dot", "odt", "rtf", "pages"],
|
|
51
|
+
sheet: ["xlsx", "xls", "xlsm", "xlsb", "xltx", "xltm", "csv", "ods", "tsv", "numbers"],
|
|
52
|
+
slides: ["pptx", "ppt", "pptm", "ppsx", "ppsm", "pps", "potx", "potm", "pot", "odp"],
|
|
53
|
+
pdf: ["pdf"],
|
|
52
54
|
mail: ["eml", "msg"],
|
|
53
55
|
code: ["json", "yaml", "yml", "xml", "ps1", "sh", "py", "js", "ts", "ini", "conf", "toml"],
|
|
54
56
|
log: ["log", "evtx", "har", "dmp", "trace"],
|
|
55
57
|
archive: ["zip", "7z", "rar", "tar", "gz", "tgz"],
|
|
58
|
+
text: ["txt", "md", "markdown"],
|
|
56
59
|
other: []
|
|
57
60
|
};
|
|
58
61
|
const KIND_BY_EXTENSION = /* @__PURE__ */ new Map();
|
|
@@ -61,20 +64,26 @@ const DEFAULT_FILE_KIND_LABELS = {
|
|
|
61
64
|
img: "Bild",
|
|
62
65
|
doc: "Dokument",
|
|
63
66
|
sheet: "Tabelle",
|
|
67
|
+
slides: "Pr\xE4sentation",
|
|
68
|
+
pdf: "PDF",
|
|
64
69
|
mail: "E-Mail",
|
|
65
70
|
code: "Code & Konfiguration",
|
|
66
71
|
log: "Protokoll",
|
|
67
72
|
archive: "Archiv",
|
|
73
|
+
text: "Text",
|
|
68
74
|
other: "Datei"
|
|
69
75
|
};
|
|
70
76
|
const FILE_KIND_LABELS_EN = {
|
|
71
77
|
img: "Image",
|
|
72
78
|
doc: "Document",
|
|
73
79
|
sheet: "Spreadsheet",
|
|
80
|
+
slides: "Presentation",
|
|
81
|
+
pdf: "PDF",
|
|
74
82
|
mail: "Email",
|
|
75
83
|
code: "Code & configuration",
|
|
76
84
|
log: "Log",
|
|
77
85
|
archive: "Archive",
|
|
86
|
+
text: "Text",
|
|
78
87
|
other: "File"
|
|
79
88
|
};
|
|
80
89
|
function fileExtension(name) {
|
|
@@ -86,13 +95,16 @@ function kindOfMime(mime) {
|
|
|
86
95
|
const m = mime.trim().toLowerCase();
|
|
87
96
|
if (!m) return "other";
|
|
88
97
|
if (m.startsWith("image/")) return "img";
|
|
89
|
-
if (
|
|
90
|
-
if (/
|
|
98
|
+
if (/\bpdf\b/.test(m)) return "pdf";
|
|
99
|
+
if (/presentation|powerpoint|apple\.keynote/.test(m)) return "slides";
|
|
100
|
+
if (/ms-?word|wordprocessing|opendocument\.text|rtf|apple\.pages/.test(m)) return "doc";
|
|
101
|
+
if (/spreadsheet|excel|csv|tab-separated|apple\.numbers/.test(m)) return "sheet";
|
|
102
|
+
if (/markdown/.test(m)) return "text";
|
|
91
103
|
if (/rfc822|outlook/.test(m)) return "mail";
|
|
92
104
|
if (/x-log\b/.test(m)) return "log";
|
|
93
105
|
if (/json|xml|yaml|x-sh|javascript|typescript|x-python|toml/.test(m)) return "code";
|
|
94
106
|
if (/zip|x-7z|x-rar|vnd\.rar|gzip|x-tar|compressed-tar/.test(m)) return "archive";
|
|
95
|
-
if (m === "text/plain") return "
|
|
107
|
+
if (m === "text/plain") return "text";
|
|
96
108
|
return "other";
|
|
97
109
|
}
|
|
98
110
|
function fileKind(nameOrFile, mime) {
|
|
@@ -163,6 +163,7 @@ declare const PlaneIcon: UixIcon;
|
|
|
163
163
|
declare const PlayIcon: UixIcon;
|
|
164
164
|
declare const PlugIcon: UixIcon;
|
|
165
165
|
declare const PlusIcon: UixIcon;
|
|
166
|
+
declare const PresentationIcon: UixIcon;
|
|
166
167
|
declare const PrinterIcon: UixIcon;
|
|
167
168
|
declare const QrCodeIcon: UixIcon;
|
|
168
169
|
declare const RadioIcon: UixIcon;
|
|
@@ -257,4 +258,4 @@ declare const PlayCircleIcon: UixIcon;
|
|
|
257
258
|
declare const SmileIcon: UixIcon;
|
|
258
259
|
declare const XCircleIcon: UixIcon;
|
|
259
260
|
|
|
260
|
-
export { AccessibilityIcon, ActivityIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AwardIcon, BadgeCheckIcon, BanknoteIcon, BarChart3Icon, BellIcon, BellOffIcon, BellRingIcon, BookOpenIcon, BookmarkIcon, BotIcon, BoxesIcon, BriefcaseIcon, Building2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarDaysIcon, CalendarIcon, CalendarOffIcon, CalendarXIcon, CameraIcon, ChartColumnIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckBigIcon, CircleCheckIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CirclePauseIcon, CirclePlayIcon, CircleQuestionMarkIcon, CircleXIcon, ClipboardCheckIcon, ClipboardListIcon, ClockIcon, CloudIcon, CloudOffIcon, CoinsIcon, Columns3Icon, CommandIcon, ComponentIcon, CopyIcon, CornerUpLeftIcon, CreditCardIcon, DatabaseBackupIcon, DatabaseIcon, DoorOpenIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FaceSlightlySmilingIcon, FileArchiveIcon, FileBarChartIcon, FileChartColumnIncreasingIcon, FileCheck2Icon, FileCheckCornerIcon, FileCheckIcon, FileCodeIcon, FileDownIcon, FileIcon, FileImageIcon, FileInputIcon, FileQuestionIcon, FileQuestionMarkIcon, FileSearchIcon, FileSpreadsheetIcon, FileTerminalIcon, FileTextIcon, FileUpIcon, FilterIcon, FlagIcon, FolderCheckIcon, FolderKanbanIcon, FolderTreeIcon, FunnelIcon, GanttChartSquareIcon, GaugeIcon, GitBranchIcon, GitBranchPlusIcon, GitCompareArrowsIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GlobeIcon, GraduationCapIcon, Grid3x3Icon, GripVerticalIcon, HandHeartIcon, HeartIcon, HeartPulseIcon, HexagonIcon, HistoryIcon, HourglassIcon, HouseIcon, IdCardIcon, ImageIcon, InboxIcon, InfoIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutTemplateIcon, LibraryIcon, LifeBuoyIcon, LightbulbIcon, Link2Icon, Link2OffIcon, LinkIcon, ListChecksIcon, ListFilterIcon, ListTreeIcon, Loader2Icon, LoaderCircleIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, Maximize2Icon, MegaphoneIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, Minimize2Icon, MinusIcon, MonitorCogIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewspaperIcon, NotebookPenIcon, OctagonAlertIcon, PackageIcon, PackageOpenIcon, PackageSearchIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PartyPopperIcon, PauseCircleIcon, PauseIcon, PenLineIcon, PencilIcon, PhoneIcon, PlaneIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusIcon, PrinterIcon, QrCodeIcon, RadioIcon, RadioTowerIcon, ReceiptIcon, RefreshCwIcon, RotateCcwClockIcon, RotateCcwIcon, RouteIcon, Rows2Icon, Rows3Icon, Rows4Icon, SaveIcon, ScaleIcon, ScanBarcodeIcon, ScanIcon, ScanSearchIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShieldAlertIcon, ShieldCheckIcon, ShieldHalfIcon, ShieldIcon, ShieldOffIcon, ShieldXIcon, ShoppingCartIcon, SignpostIcon, SirenIcon, SlidersHorizontalIcon, SmileIcon, SparklesIcon, SquareChartGanttIcon, SquareIcon, StampIcon, StarIcon, StarOffIcon, StoreIcon, SunIcon, TagIcon, TagsIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, TimerIcon, TimerOffIcon, Trash2Icon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UnlinkIcon, UploadIcon, UserCheckIcon, UserCogIcon, UserIcon, UserPlusIcon, UserRoundIcon, UserXIcon, UsersIcon, UsersRoundIcon, WalletIcon, WaypointsIcon, WebhookIcon, WifiIcon, WifiOffIcon, WorkflowIcon, WrenchIcon, XCircleIcon, XIcon, ZapIcon };
|
|
261
|
+
export { AccessibilityIcon, ActivityIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AwardIcon, BadgeCheckIcon, BanknoteIcon, BarChart3Icon, BellIcon, BellOffIcon, BellRingIcon, BookOpenIcon, BookmarkIcon, BotIcon, BoxesIcon, BriefcaseIcon, Building2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarDaysIcon, CalendarIcon, CalendarOffIcon, CalendarXIcon, CameraIcon, ChartColumnIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckBigIcon, CircleCheckIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CirclePauseIcon, CirclePlayIcon, CircleQuestionMarkIcon, CircleXIcon, ClipboardCheckIcon, ClipboardListIcon, ClockIcon, CloudIcon, CloudOffIcon, CoinsIcon, Columns3Icon, CommandIcon, ComponentIcon, CopyIcon, CornerUpLeftIcon, CreditCardIcon, DatabaseBackupIcon, DatabaseIcon, DoorOpenIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FaceSlightlySmilingIcon, FileArchiveIcon, FileBarChartIcon, FileChartColumnIncreasingIcon, FileCheck2Icon, FileCheckCornerIcon, FileCheckIcon, FileCodeIcon, FileDownIcon, FileIcon, FileImageIcon, FileInputIcon, FileQuestionIcon, FileQuestionMarkIcon, FileSearchIcon, FileSpreadsheetIcon, FileTerminalIcon, FileTextIcon, FileUpIcon, FilterIcon, FlagIcon, FolderCheckIcon, FolderKanbanIcon, FolderTreeIcon, FunnelIcon, GanttChartSquareIcon, GaugeIcon, GitBranchIcon, GitBranchPlusIcon, GitCompareArrowsIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GlobeIcon, GraduationCapIcon, Grid3x3Icon, GripVerticalIcon, HandHeartIcon, HeartIcon, HeartPulseIcon, HexagonIcon, HistoryIcon, HourglassIcon, HouseIcon, IdCardIcon, ImageIcon, InboxIcon, InfoIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutTemplateIcon, LibraryIcon, LifeBuoyIcon, LightbulbIcon, Link2Icon, Link2OffIcon, LinkIcon, ListChecksIcon, ListFilterIcon, ListTreeIcon, Loader2Icon, LoaderCircleIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, Maximize2Icon, MegaphoneIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, Minimize2Icon, MinusIcon, MonitorCogIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewspaperIcon, NotebookPenIcon, OctagonAlertIcon, PackageIcon, PackageOpenIcon, PackageSearchIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PartyPopperIcon, PauseCircleIcon, PauseIcon, PenLineIcon, PencilIcon, PhoneIcon, PlaneIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusIcon, PresentationIcon, PrinterIcon, QrCodeIcon, RadioIcon, RadioTowerIcon, ReceiptIcon, RefreshCwIcon, RotateCcwClockIcon, RotateCcwIcon, RouteIcon, Rows2Icon, Rows3Icon, Rows4Icon, SaveIcon, ScaleIcon, ScanBarcodeIcon, ScanIcon, ScanSearchIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShieldAlertIcon, ShieldCheckIcon, ShieldHalfIcon, ShieldIcon, ShieldOffIcon, ShieldXIcon, ShoppingCartIcon, SignpostIcon, SirenIcon, SlidersHorizontalIcon, SmileIcon, SparklesIcon, SquareChartGanttIcon, SquareIcon, StampIcon, StarIcon, StarOffIcon, StoreIcon, SunIcon, TagIcon, TagsIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, TimerIcon, TimerOffIcon, Trash2Icon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UnlinkIcon, UploadIcon, UserCheckIcon, UserCogIcon, UserIcon, UserPlusIcon, UserRoundIcon, UserXIcon, UsersIcon, UsersRoundIcon, WalletIcon, WaypointsIcon, WebhookIcon, WifiIcon, WifiOffIcon, WorkflowIcon, WrenchIcon, XCircleIcon, XIcon, ZapIcon };
|
package/dist/icons/components.js
CHANGED
|
@@ -162,6 +162,7 @@ const PlaneIcon = /* @__PURE__ */ createIcon("PlaneIcon", g.glyphPlane);
|
|
|
162
162
|
const PlayIcon = /* @__PURE__ */ createIcon("PlayIcon", g.glyphPlay);
|
|
163
163
|
const PlugIcon = /* @__PURE__ */ createIcon("PlugIcon", g.glyphPlug);
|
|
164
164
|
const PlusIcon = /* @__PURE__ */ createIcon("PlusIcon", g.glyphPlus);
|
|
165
|
+
const PresentationIcon = /* @__PURE__ */ createIcon("PresentationIcon", g.glyphPresentation);
|
|
165
166
|
const PrinterIcon = /* @__PURE__ */ createIcon("PrinterIcon", g.glyphPrinter);
|
|
166
167
|
const QrCodeIcon = /* @__PURE__ */ createIcon("QrCodeIcon", g.glyphQrCode);
|
|
167
168
|
const RadioIcon = /* @__PURE__ */ createIcon("RadioIcon", g.glyphRadio);
|
|
@@ -435,6 +436,7 @@ export {
|
|
|
435
436
|
PlayIcon,
|
|
436
437
|
PlugIcon,
|
|
437
438
|
PlusIcon,
|
|
439
|
+
PresentationIcon,
|
|
438
440
|
PrinterIcon,
|
|
439
441
|
QrCodeIcon,
|
|
440
442
|
RadioIcon,
|
package/dist/icons/glyphs.d.ts
CHANGED
|
@@ -163,6 +163,7 @@ declare const glyphPlane: IconNode;
|
|
|
163
163
|
declare const glyphPlay: IconNode;
|
|
164
164
|
declare const glyphPlug: IconNode;
|
|
165
165
|
declare const glyphPlus: IconNode;
|
|
166
|
+
declare const glyphPresentation: IconNode;
|
|
166
167
|
declare const glyphPrinter: IconNode;
|
|
167
168
|
declare const glyphQrCode: IconNode;
|
|
168
169
|
declare const glyphRadio: IconNode;
|
|
@@ -401,6 +402,7 @@ declare const ICON_GLYPHS: {
|
|
|
401
402
|
readonly play: IconNode;
|
|
402
403
|
readonly plug: IconNode;
|
|
403
404
|
readonly plus: IconNode;
|
|
405
|
+
readonly presentation: IconNode;
|
|
404
406
|
readonly printer: IconNode;
|
|
405
407
|
readonly 'qr-code': IconNode;
|
|
406
408
|
readonly radio: IconNode;
|
|
@@ -479,4 +481,4 @@ declare const ICON_GLYPHS: {
|
|
|
479
481
|
/** A glyph name for `<Icon name>`. */
|
|
480
482
|
type IconName = keyof typeof ICON_GLYPHS;
|
|
481
483
|
|
|
482
|
-
export { ICON_GLYPHS, type IconName, glyphAccessibility, glyphActivity, glyphArchive, glyphArrowDown, glyphArrowLeft, glyphArrowLeftRight, glyphArrowRight, glyphArrowUp, glyphArrowUpDown, glyphArrowUpRight, glyphAward, glyphBadgeCheck, glyphBanknote, glyphBell, glyphBellOff, glyphBellRing, glyphBookOpen, glyphBookmark, glyphBot, glyphBoxes, glyphBriefcase, glyphBuilding2, glyphCalendar, glyphCalendarCheck, glyphCalendarClock, glyphCalendarDays, glyphCalendarOff, glyphCalendarX, glyphCamera, glyphChartColumn, glyphCheck, glyphCheckCheck, glyphChevronDown, glyphChevronLeft, glyphChevronRight, glyphChevronUp, glyphChevronsDownUp, glyphChevronsLeft, glyphChevronsRight, glyphChevronsUpDown, glyphCircle, glyphCircleAlert, glyphCircleCheck, glyphCircleCheckBig, glyphCircleDot, glyphCirclePause, glyphCirclePlay, glyphCircleQuestionMark, glyphCircleX, glyphClipboardCheck, glyphClipboardList, glyphClock, glyphCloud, glyphCloudOff, glyphCoins, glyphColumns3, glyphCommand, glyphComponent, glyphCopy, glyphCornerUpLeft, glyphCreditCard, glyphDatabase, glyphDatabaseBackup, glyphDoorOpen, glyphDownload, glyphEllipsis, glyphEllipsisVertical, glyphExternalLink, glyphEye, glyphEyeOff, glyphFaceSlightlySmiling, glyphFile, glyphFileArchive, glyphFileChartColumnIncreasing, glyphFileCheck, glyphFileCheckCorner, glyphFileCode, glyphFileDown, glyphFileImage, glyphFileInput, glyphFileQuestionMark, glyphFileSearch, glyphFileSpreadsheet, glyphFileTerminal, glyphFileText, glyphFileUp, glyphFlag, glyphFolderCheck, glyphFolderKanban, glyphFolderTree, glyphFunnel, glyphGauge, glyphGitBranch, glyphGitBranchPlus, glyphGitCompareArrows, glyphGitMerge, glyphGitPullRequestArrow, glyphGitPullRequestClosed, glyphGlobe, glyphGraduationCap, glyphGrid3x3, glyphGripVertical, glyphHandHeart, glyphHeart, glyphHeartPulse, glyphHexagon, glyphHourglass, glyphHouse, glyphIdCard, glyphImage, glyphInbox, glyphInfo, glyphKey, glyphKeyRound, glyphLanguages, glyphLaptop, glyphLayers, glyphLayoutDashboard, glyphLayoutTemplate, glyphLibrary, glyphLifeBuoy, glyphLightbulb, glyphLink, glyphLink2, glyphLink2Off, glyphListChecks, glyphListFilter, glyphListTree, glyphLoaderCircle, glyphLock, glyphLogIn, glyphLogOut, glyphMail, glyphMapPin, glyphMaximize2, glyphMegaphone, glyphMenu, glyphMessageCircle, glyphMessageSquare, glyphMinimize2, glyphMinus, glyphMonitor, glyphMonitorCog, glyphMoon, glyphNewspaper, glyphNotebookPen, glyphOctagonAlert, glyphPackage, glyphPackageOpen, glyphPackageSearch, glyphPalette, glyphPanelLeft, glyphPaperclip, glyphPartyPopper, glyphPause, glyphPenLine, glyphPencil, glyphPhone, glyphPlane, glyphPlay, glyphPlug, glyphPlus, glyphPrinter, glyphQrCode, glyphRadio, glyphRadioTower, glyphReceipt, glyphRefreshCw, glyphRotateCcw, glyphRotateCcwClock, glyphRoute, glyphRows2, glyphRows3, glyphRows4, glyphSave, glyphScale, glyphScan, glyphScanBarcode, glyphScanSearch, glyphScrollText, glyphSearch, glyphSearchX, glyphSend, glyphServer, glyphSettings, glyphSettings2, glyphShapes, glyphShare2, glyphShield, glyphShieldAlert, glyphShieldCheck, glyphShieldHalf, glyphShieldOff, glyphShieldX, glyphShoppingCart, glyphSignpost, glyphSiren, glyphSlidersHorizontal, glyphSparkles, glyphSquare, glyphSquareChartGantt, glyphStamp, glyphStar, glyphStarOff, glyphStore, glyphSun, glyphTag, glyphTags, glyphThumbsDown, glyphThumbsUp, glyphTicket, glyphTimer, glyphTimerOff, glyphTrash2, glyphTrendingDown, glyphTrendingUp, glyphTriangleAlert, glyphUnlink, glyphUpload, glyphUser, glyphUserCheck, glyphUserCog, glyphUserPlus, glyphUserRound, glyphUserX, glyphUsers, glyphUsersRound, glyphWallet, glyphWaypoints, glyphWebhook, glyphWifi, glyphWifiOff, glyphWorkflow, glyphWrench, glyphX, glyphZap };
|
|
484
|
+
export { ICON_GLYPHS, type IconName, glyphAccessibility, glyphActivity, glyphArchive, glyphArrowDown, glyphArrowLeft, glyphArrowLeftRight, glyphArrowRight, glyphArrowUp, glyphArrowUpDown, glyphArrowUpRight, glyphAward, glyphBadgeCheck, glyphBanknote, glyphBell, glyphBellOff, glyphBellRing, glyphBookOpen, glyphBookmark, glyphBot, glyphBoxes, glyphBriefcase, glyphBuilding2, glyphCalendar, glyphCalendarCheck, glyphCalendarClock, glyphCalendarDays, glyphCalendarOff, glyphCalendarX, glyphCamera, glyphChartColumn, glyphCheck, glyphCheckCheck, glyphChevronDown, glyphChevronLeft, glyphChevronRight, glyphChevronUp, glyphChevronsDownUp, glyphChevronsLeft, glyphChevronsRight, glyphChevronsUpDown, glyphCircle, glyphCircleAlert, glyphCircleCheck, glyphCircleCheckBig, glyphCircleDot, glyphCirclePause, glyphCirclePlay, glyphCircleQuestionMark, glyphCircleX, glyphClipboardCheck, glyphClipboardList, glyphClock, glyphCloud, glyphCloudOff, glyphCoins, glyphColumns3, glyphCommand, glyphComponent, glyphCopy, glyphCornerUpLeft, glyphCreditCard, glyphDatabase, glyphDatabaseBackup, glyphDoorOpen, glyphDownload, glyphEllipsis, glyphEllipsisVertical, glyphExternalLink, glyphEye, glyphEyeOff, glyphFaceSlightlySmiling, glyphFile, glyphFileArchive, glyphFileChartColumnIncreasing, glyphFileCheck, glyphFileCheckCorner, glyphFileCode, glyphFileDown, glyphFileImage, glyphFileInput, glyphFileQuestionMark, glyphFileSearch, glyphFileSpreadsheet, glyphFileTerminal, glyphFileText, glyphFileUp, glyphFlag, glyphFolderCheck, glyphFolderKanban, glyphFolderTree, glyphFunnel, glyphGauge, glyphGitBranch, glyphGitBranchPlus, glyphGitCompareArrows, glyphGitMerge, glyphGitPullRequestArrow, glyphGitPullRequestClosed, glyphGlobe, glyphGraduationCap, glyphGrid3x3, glyphGripVertical, glyphHandHeart, glyphHeart, glyphHeartPulse, glyphHexagon, glyphHourglass, glyphHouse, glyphIdCard, glyphImage, glyphInbox, glyphInfo, glyphKey, glyphKeyRound, glyphLanguages, glyphLaptop, glyphLayers, glyphLayoutDashboard, glyphLayoutTemplate, glyphLibrary, glyphLifeBuoy, glyphLightbulb, glyphLink, glyphLink2, glyphLink2Off, glyphListChecks, glyphListFilter, glyphListTree, glyphLoaderCircle, glyphLock, glyphLogIn, glyphLogOut, glyphMail, glyphMapPin, glyphMaximize2, glyphMegaphone, glyphMenu, glyphMessageCircle, glyphMessageSquare, glyphMinimize2, glyphMinus, glyphMonitor, glyphMonitorCog, glyphMoon, glyphNewspaper, glyphNotebookPen, glyphOctagonAlert, glyphPackage, glyphPackageOpen, glyphPackageSearch, glyphPalette, glyphPanelLeft, glyphPaperclip, glyphPartyPopper, glyphPause, glyphPenLine, glyphPencil, glyphPhone, glyphPlane, glyphPlay, glyphPlug, glyphPlus, glyphPresentation, glyphPrinter, glyphQrCode, glyphRadio, glyphRadioTower, glyphReceipt, glyphRefreshCw, glyphRotateCcw, glyphRotateCcwClock, glyphRoute, glyphRows2, glyphRows3, glyphRows4, glyphSave, glyphScale, glyphScan, glyphScanBarcode, glyphScanSearch, glyphScrollText, glyphSearch, glyphSearchX, glyphSend, glyphServer, glyphSettings, glyphSettings2, glyphShapes, glyphShare2, glyphShield, glyphShieldAlert, glyphShieldCheck, glyphShieldHalf, glyphShieldOff, glyphShieldX, glyphShoppingCart, glyphSignpost, glyphSiren, glyphSlidersHorizontal, glyphSparkles, glyphSquare, glyphSquareChartGantt, glyphStamp, glyphStar, glyphStarOff, glyphStore, glyphSun, glyphTag, glyphTags, glyphThumbsDown, glyphThumbsUp, glyphTicket, glyphTimer, glyphTimerOff, glyphTrash2, glyphTrendingDown, glyphTrendingUp, glyphTriangleAlert, glyphUnlink, glyphUpload, glyphUser, glyphUserCheck, glyphUserCog, glyphUserPlus, glyphUserRound, glyphUserX, glyphUsers, glyphUsersRound, glyphWallet, glyphWaypoints, glyphWebhook, glyphWifi, glyphWifiOff, glyphWorkflow, glyphWrench, glyphX, glyphZap };
|
package/dist/icons/glyphs.js
CHANGED
|
@@ -160,6 +160,7 @@ const glyphPlane = [["path", { "d": "M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-
|
|
|
160
160
|
const glyphPlay = [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]];
|
|
161
161
|
const glyphPlug = [["path", { "d": "M12 22v-5" }], ["path", { "d": "M15 8V2" }], ["path", { "d": "M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" }], ["path", { "d": "M9 8V2" }]];
|
|
162
162
|
const glyphPlus = [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]];
|
|
163
|
+
const glyphPresentation = [["path", { "d": "M2 3h20" }], ["path", { "d": "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3" }], ["path", { "d": "m7 21 5-5 5 5" }]];
|
|
163
164
|
const glyphPrinter = [["path", { "d": "M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2" }], ["path", { "d": "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6" }], ["rect", { "x": "6", "y": "14", "width": "12", "height": "8", "rx": "1" }]];
|
|
164
165
|
const glyphQrCode = [["rect", { "width": "5", "height": "5", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "5", "height": "5", "x": "16", "y": "3", "rx": "1" }], ["rect", { "width": "5", "height": "5", "x": "3", "y": "16", "rx": "1" }], ["path", { "d": "M21 16h-3a2 2 0 0 0-2 2v3" }], ["path", { "d": "M21 21v.01" }], ["path", { "d": "M12 7v3a2 2 0 0 1-2 2H7" }], ["path", { "d": "M3 12h.01" }], ["path", { "d": "M12 3h.01" }], ["path", { "d": "M12 16v.01" }], ["path", { "d": "M16 12h1" }], ["path", { "d": "M21 12v.01" }], ["path", { "d": "M12 21v-1" }]];
|
|
165
166
|
const glyphRadio = [["path", { "d": "M16.247 7.761a6 6 0 0 1 0 8.478" }], ["path", { "d": "M19.075 4.933a10 10 0 0 1 0 14.134" }], ["path", { "d": "M4.925 19.067a10 10 0 0 1 0-14.134" }], ["path", { "d": "M7.753 16.239a6 6 0 0 1 0-8.478" }], ["circle", { "cx": "12", "cy": "12", "r": "2" }]];
|
|
@@ -397,6 +398,7 @@ const ICON_GLYPHS = {
|
|
|
397
398
|
"play": glyphPlay,
|
|
398
399
|
"plug": glyphPlug,
|
|
399
400
|
"plus": glyphPlus,
|
|
401
|
+
"presentation": glyphPresentation,
|
|
400
402
|
"printer": glyphPrinter,
|
|
401
403
|
"qr-code": glyphQrCode,
|
|
402
404
|
"radio": glyphRadio,
|
|
@@ -636,6 +638,7 @@ export {
|
|
|
636
638
|
glyphPlay,
|
|
637
639
|
glyphPlug,
|
|
638
640
|
glyphPlus,
|
|
641
|
+
glyphPresentation,
|
|
639
642
|
glyphPrinter,
|
|
640
643
|
glyphQrCode,
|
|
641
644
|
glyphRadio,
|
package/dist/icons.cjs
CHANGED
|
@@ -201,6 +201,7 @@ __export(icons_exports, {
|
|
|
201
201
|
PlayIcon: () => PlayIcon,
|
|
202
202
|
PlugIcon: () => PlugIcon,
|
|
203
203
|
PlusIcon: () => PlusIcon,
|
|
204
|
+
PresentationIcon: () => PresentationIcon,
|
|
204
205
|
PrinterIcon: () => PrinterIcon,
|
|
205
206
|
QrCodeIcon: () => QrCodeIcon,
|
|
206
207
|
RadioIcon: () => RadioIcon,
|
|
@@ -488,6 +489,7 @@ var glyphPlane = [["path", { "d": "M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-
|
|
|
488
489
|
var glyphPlay = [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]];
|
|
489
490
|
var glyphPlug = [["path", { "d": "M12 22v-5" }], ["path", { "d": "M15 8V2" }], ["path", { "d": "M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" }], ["path", { "d": "M9 8V2" }]];
|
|
490
491
|
var glyphPlus = [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]];
|
|
492
|
+
var glyphPresentation = [["path", { "d": "M2 3h20" }], ["path", { "d": "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3" }], ["path", { "d": "m7 21 5-5 5 5" }]];
|
|
491
493
|
var glyphPrinter = [["path", { "d": "M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2" }], ["path", { "d": "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6" }], ["rect", { "x": "6", "y": "14", "width": "12", "height": "8", "rx": "1" }]];
|
|
492
494
|
var glyphQrCode = [["rect", { "width": "5", "height": "5", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "5", "height": "5", "x": "16", "y": "3", "rx": "1" }], ["rect", { "width": "5", "height": "5", "x": "3", "y": "16", "rx": "1" }], ["path", { "d": "M21 16h-3a2 2 0 0 0-2 2v3" }], ["path", { "d": "M21 21v.01" }], ["path", { "d": "M12 7v3a2 2 0 0 1-2 2H7" }], ["path", { "d": "M3 12h.01" }], ["path", { "d": "M12 3h.01" }], ["path", { "d": "M12 16v.01" }], ["path", { "d": "M16 12h1" }], ["path", { "d": "M21 12v.01" }], ["path", { "d": "M12 21v-1" }]];
|
|
493
495
|
var glyphRadio = [["path", { "d": "M16.247 7.761a6 6 0 0 1 0 8.478" }], ["path", { "d": "M19.075 4.933a10 10 0 0 1 0 14.134" }], ["path", { "d": "M4.925 19.067a10 10 0 0 1 0-14.134" }], ["path", { "d": "M7.753 16.239a6 6 0 0 1 0-8.478" }], ["circle", { "cx": "12", "cy": "12", "r": "2" }]];
|
|
@@ -725,6 +727,7 @@ var ICON_GLYPHS = {
|
|
|
725
727
|
"play": glyphPlay,
|
|
726
728
|
"plug": glyphPlug,
|
|
727
729
|
"plus": glyphPlus,
|
|
730
|
+
"presentation": glyphPresentation,
|
|
728
731
|
"printer": glyphPrinter,
|
|
729
732
|
"qr-code": glyphQrCode,
|
|
730
733
|
"radio": glyphRadio,
|
|
@@ -969,6 +972,7 @@ var PlaneIcon = /* @__PURE__ */ createIcon("PlaneIcon", glyphPlane);
|
|
|
969
972
|
var PlayIcon = /* @__PURE__ */ createIcon("PlayIcon", glyphPlay);
|
|
970
973
|
var PlugIcon = /* @__PURE__ */ createIcon("PlugIcon", glyphPlug);
|
|
971
974
|
var PlusIcon = /* @__PURE__ */ createIcon("PlusIcon", glyphPlus);
|
|
975
|
+
var PresentationIcon = /* @__PURE__ */ createIcon("PresentationIcon", glyphPresentation);
|
|
972
976
|
var PrinterIcon = /* @__PURE__ */ createIcon("PrinterIcon", glyphPrinter);
|
|
973
977
|
var QrCodeIcon = /* @__PURE__ */ createIcon("QrCodeIcon", glyphQrCode);
|
|
974
978
|
var RadioIcon = /* @__PURE__ */ createIcon("RadioIcon", glyphRadio);
|
|
@@ -1245,6 +1249,7 @@ var XCircleIcon = CircleXIcon;
|
|
|
1245
1249
|
PlayIcon,
|
|
1246
1250
|
PlugIcon,
|
|
1247
1251
|
PlusIcon,
|
|
1252
|
+
PresentationIcon,
|
|
1248
1253
|
PrinterIcon,
|
|
1249
1254
|
QrCodeIcon,
|
|
1250
1255
|
RadioIcon,
|
package/dist/icons.d.cts
CHANGED
|
@@ -166,6 +166,7 @@ declare const ICON_GLYPHS: {
|
|
|
166
166
|
readonly play: IconNode;
|
|
167
167
|
readonly plug: IconNode;
|
|
168
168
|
readonly plus: IconNode;
|
|
169
|
+
readonly presentation: IconNode;
|
|
169
170
|
readonly printer: IconNode;
|
|
170
171
|
readonly 'qr-code': IconNode;
|
|
171
172
|
readonly radio: IconNode;
|
|
@@ -419,6 +420,7 @@ declare const PlaneIcon: UixIcon;
|
|
|
419
420
|
declare const PlayIcon: UixIcon;
|
|
420
421
|
declare const PlugIcon: UixIcon;
|
|
421
422
|
declare const PlusIcon: UixIcon;
|
|
423
|
+
declare const PresentationIcon: UixIcon;
|
|
422
424
|
declare const PrinterIcon: UixIcon;
|
|
423
425
|
declare const QrCodeIcon: UixIcon;
|
|
424
426
|
declare const RadioIcon: UixIcon;
|
|
@@ -513,4 +515,4 @@ declare const PlayCircleIcon: UixIcon;
|
|
|
513
515
|
declare const SmileIcon: UixIcon;
|
|
514
516
|
declare const XCircleIcon: UixIcon;
|
|
515
517
|
|
|
516
|
-
export { AccessibilityIcon, ActivityIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AwardIcon, BadgeCheckIcon, BanknoteIcon, BarChart3Icon, BellIcon, BellOffIcon, BellRingIcon, BookOpenIcon, BookmarkIcon, BotIcon, BoxesIcon, BriefcaseIcon, Building2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarDaysIcon, CalendarIcon, CalendarOffIcon, CalendarXIcon, CameraIcon, ChartColumnIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckBigIcon, CircleCheckIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CirclePauseIcon, CirclePlayIcon, CircleQuestionMarkIcon, CircleXIcon, ClipboardCheckIcon, ClipboardListIcon, ClockIcon, CloudIcon, CloudOffIcon, CoinsIcon, Columns3Icon, CommandIcon, ComponentIcon, CopyIcon, CornerUpLeftIcon, CreditCardIcon, DatabaseBackupIcon, DatabaseIcon, DoorOpenIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FaceSlightlySmilingIcon, FileArchiveIcon, FileBarChartIcon, FileChartColumnIncreasingIcon, FileCheck2Icon, FileCheckCornerIcon, FileCheckIcon, FileCodeIcon, FileDownIcon, FileIcon, FileImageIcon, FileInputIcon, FileQuestionIcon, FileQuestionMarkIcon, FileSearchIcon, FileSpreadsheetIcon, FileTerminalIcon, FileTextIcon, FileUpIcon, FilterIcon, FlagIcon, FolderCheckIcon, FolderKanbanIcon, FolderTreeIcon, FunnelIcon, GanttChartSquareIcon, GaugeIcon, GitBranchIcon, GitBranchPlusIcon, GitCompareArrowsIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GlobeIcon, GraduationCapIcon, Grid3x3Icon, GripVerticalIcon, HandHeartIcon, HeartIcon, HeartPulseIcon, HexagonIcon, HistoryIcon, HourglassIcon, HouseIcon, ICON_GLYPHS, Icon, type IconByNameProps, type IconName, IconNode, IconProps, IdCardIcon, ImageIcon, InboxIcon, InfoIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutTemplateIcon, LibraryIcon, LifeBuoyIcon, LightbulbIcon, Link2Icon, Link2OffIcon, LinkIcon, ListChecksIcon, ListFilterIcon, ListTreeIcon, Loader2Icon, LoaderCircleIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, Maximize2Icon, MegaphoneIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, Minimize2Icon, MinusIcon, MonitorCogIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewspaperIcon, NotebookPenIcon, OctagonAlertIcon, PackageIcon, PackageOpenIcon, PackageSearchIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PartyPopperIcon, PauseCircleIcon, PauseIcon, PenLineIcon, PencilIcon, PhoneIcon, PlaneIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusIcon, PrinterIcon, QrCodeIcon, RadioIcon, RadioTowerIcon, ReceiptIcon, RefreshCwIcon, RotateCcwClockIcon, RotateCcwIcon, RouteIcon, Rows2Icon, Rows3Icon, Rows4Icon, SaveIcon, ScaleIcon, ScanBarcodeIcon, ScanIcon, ScanSearchIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShieldAlertIcon, ShieldCheckIcon, ShieldHalfIcon, ShieldIcon, ShieldOffIcon, ShieldXIcon, ShoppingCartIcon, SignpostIcon, SirenIcon, SlidersHorizontalIcon, SmileIcon, SparklesIcon, SquareChartGanttIcon, SquareIcon, StampIcon, StarIcon, StarOffIcon, StoreIcon, SunIcon, TagIcon, TagsIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, TimerIcon, TimerOffIcon, Trash2Icon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UixIcon, UnlinkIcon, UploadIcon, UserCheckIcon, UserCogIcon, UserIcon, UserPlusIcon, UserRoundIcon, UserXIcon, UsersIcon, UsersRoundIcon, WalletIcon, WaypointsIcon, WebhookIcon, WifiIcon, WifiOffIcon, WorkflowIcon, WrenchIcon, XCircleIcon, XIcon, ZapIcon, createIcon };
|
|
518
|
+
export { AccessibilityIcon, ActivityIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AwardIcon, BadgeCheckIcon, BanknoteIcon, BarChart3Icon, BellIcon, BellOffIcon, BellRingIcon, BookOpenIcon, BookmarkIcon, BotIcon, BoxesIcon, BriefcaseIcon, Building2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarDaysIcon, CalendarIcon, CalendarOffIcon, CalendarXIcon, CameraIcon, ChartColumnIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckBigIcon, CircleCheckIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CirclePauseIcon, CirclePlayIcon, CircleQuestionMarkIcon, CircleXIcon, ClipboardCheckIcon, ClipboardListIcon, ClockIcon, CloudIcon, CloudOffIcon, CoinsIcon, Columns3Icon, CommandIcon, ComponentIcon, CopyIcon, CornerUpLeftIcon, CreditCardIcon, DatabaseBackupIcon, DatabaseIcon, DoorOpenIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FaceSlightlySmilingIcon, FileArchiveIcon, FileBarChartIcon, FileChartColumnIncreasingIcon, FileCheck2Icon, FileCheckCornerIcon, FileCheckIcon, FileCodeIcon, FileDownIcon, FileIcon, FileImageIcon, FileInputIcon, FileQuestionIcon, FileQuestionMarkIcon, FileSearchIcon, FileSpreadsheetIcon, FileTerminalIcon, FileTextIcon, FileUpIcon, FilterIcon, FlagIcon, FolderCheckIcon, FolderKanbanIcon, FolderTreeIcon, FunnelIcon, GanttChartSquareIcon, GaugeIcon, GitBranchIcon, GitBranchPlusIcon, GitCompareArrowsIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GlobeIcon, GraduationCapIcon, Grid3x3Icon, GripVerticalIcon, HandHeartIcon, HeartIcon, HeartPulseIcon, HexagonIcon, HistoryIcon, HourglassIcon, HouseIcon, ICON_GLYPHS, Icon, type IconByNameProps, type IconName, IconNode, IconProps, IdCardIcon, ImageIcon, InboxIcon, InfoIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutTemplateIcon, LibraryIcon, LifeBuoyIcon, LightbulbIcon, Link2Icon, Link2OffIcon, LinkIcon, ListChecksIcon, ListFilterIcon, ListTreeIcon, Loader2Icon, LoaderCircleIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, Maximize2Icon, MegaphoneIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, Minimize2Icon, MinusIcon, MonitorCogIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewspaperIcon, NotebookPenIcon, OctagonAlertIcon, PackageIcon, PackageOpenIcon, PackageSearchIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PartyPopperIcon, PauseCircleIcon, PauseIcon, PenLineIcon, PencilIcon, PhoneIcon, PlaneIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusIcon, PresentationIcon, PrinterIcon, QrCodeIcon, RadioIcon, RadioTowerIcon, ReceiptIcon, RefreshCwIcon, RotateCcwClockIcon, RotateCcwIcon, RouteIcon, Rows2Icon, Rows3Icon, Rows4Icon, SaveIcon, ScaleIcon, ScanBarcodeIcon, ScanIcon, ScanSearchIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShieldAlertIcon, ShieldCheckIcon, ShieldHalfIcon, ShieldIcon, ShieldOffIcon, ShieldXIcon, ShoppingCartIcon, SignpostIcon, SirenIcon, SlidersHorizontalIcon, SmileIcon, SparklesIcon, SquareChartGanttIcon, SquareIcon, StampIcon, StarIcon, StarOffIcon, StoreIcon, SunIcon, TagIcon, TagsIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, TimerIcon, TimerOffIcon, Trash2Icon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UixIcon, UnlinkIcon, UploadIcon, UserCheckIcon, UserCogIcon, UserIcon, UserPlusIcon, UserRoundIcon, UserXIcon, UsersIcon, UsersRoundIcon, WalletIcon, WaypointsIcon, WebhookIcon, WifiIcon, WifiOffIcon, WorkflowIcon, WrenchIcon, XCircleIcon, XIcon, ZapIcon, createIcon };
|
package/dist/icons.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { Icon, IconByNameProps } from './icons/NamedIcon.js';
|
|
|
2
2
|
export { createIcon } from './icons/Icon.js';
|
|
3
3
|
export { IconNode, IconProps, IconSize, IconTone, UixIcon } from './icons/types.js';
|
|
4
4
|
export { ICON_GLYPHS, IconName } from './icons/glyphs.js';
|
|
5
|
-
export { AccessibilityIcon, ActivityIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AwardIcon, BadgeCheckIcon, BanknoteIcon, BarChart3Icon, BellIcon, BellOffIcon, BellRingIcon, BookOpenIcon, BookmarkIcon, BotIcon, BoxesIcon, BriefcaseIcon, Building2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarDaysIcon, CalendarIcon, CalendarOffIcon, CalendarXIcon, CameraIcon, ChartColumnIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckBigIcon, CircleCheckIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CirclePauseIcon, CirclePlayIcon, CircleQuestionMarkIcon, CircleXIcon, ClipboardCheckIcon, ClipboardListIcon, ClockIcon, CloudIcon, CloudOffIcon, CoinsIcon, Columns3Icon, CommandIcon, ComponentIcon, CopyIcon, CornerUpLeftIcon, CreditCardIcon, DatabaseBackupIcon, DatabaseIcon, DoorOpenIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FaceSlightlySmilingIcon, FileArchiveIcon, FileBarChartIcon, FileChartColumnIncreasingIcon, FileCheck2Icon, FileCheckCornerIcon, FileCheckIcon, FileCodeIcon, FileDownIcon, FileIcon, FileImageIcon, FileInputIcon, FileQuestionIcon, FileQuestionMarkIcon, FileSearchIcon, FileSpreadsheetIcon, FileTerminalIcon, FileTextIcon, FileUpIcon, FilterIcon, FlagIcon, FolderCheckIcon, FolderKanbanIcon, FolderTreeIcon, FunnelIcon, GanttChartSquareIcon, GaugeIcon, GitBranchIcon, GitBranchPlusIcon, GitCompareArrowsIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GlobeIcon, GraduationCapIcon, Grid3x3Icon, GripVerticalIcon, HandHeartIcon, HeartIcon, HeartPulseIcon, HexagonIcon, HistoryIcon, HourglassIcon, HouseIcon, IdCardIcon, ImageIcon, InboxIcon, InfoIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutTemplateIcon, LibraryIcon, LifeBuoyIcon, LightbulbIcon, Link2Icon, Link2OffIcon, LinkIcon, ListChecksIcon, ListFilterIcon, ListTreeIcon, Loader2Icon, LoaderCircleIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, Maximize2Icon, MegaphoneIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, Minimize2Icon, MinusIcon, MonitorCogIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewspaperIcon, NotebookPenIcon, OctagonAlertIcon, PackageIcon, PackageOpenIcon, PackageSearchIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PartyPopperIcon, PauseCircleIcon, PauseIcon, PenLineIcon, PencilIcon, PhoneIcon, PlaneIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusIcon, PrinterIcon, QrCodeIcon, RadioIcon, RadioTowerIcon, ReceiptIcon, RefreshCwIcon, RotateCcwClockIcon, RotateCcwIcon, RouteIcon, Rows2Icon, Rows3Icon, Rows4Icon, SaveIcon, ScaleIcon, ScanBarcodeIcon, ScanIcon, ScanSearchIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShieldAlertIcon, ShieldCheckIcon, ShieldHalfIcon, ShieldIcon, ShieldOffIcon, ShieldXIcon, ShoppingCartIcon, SignpostIcon, SirenIcon, SlidersHorizontalIcon, SmileIcon, SparklesIcon, SquareChartGanttIcon, SquareIcon, StampIcon, StarIcon, StarOffIcon, StoreIcon, SunIcon, TagIcon, TagsIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, TimerIcon, TimerOffIcon, Trash2Icon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UnlinkIcon, UploadIcon, UserCheckIcon, UserCogIcon, UserIcon, UserPlusIcon, UserRoundIcon, UserXIcon, UsersIcon, UsersRoundIcon, WalletIcon, WaypointsIcon, WebhookIcon, WifiIcon, WifiOffIcon, WorkflowIcon, WrenchIcon, XCircleIcon, XIcon, ZapIcon } from './icons/components.js';
|
|
5
|
+
export { AccessibilityIcon, ActivityIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftRightIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AwardIcon, BadgeCheckIcon, BanknoteIcon, BarChart3Icon, BellIcon, BellOffIcon, BellRingIcon, BookOpenIcon, BookmarkIcon, BotIcon, BoxesIcon, BriefcaseIcon, Building2Icon, CalendarCheckIcon, CalendarClockIcon, CalendarDaysIcon, CalendarIcon, CalendarOffIcon, CalendarXIcon, CameraIcon, ChartColumnIcon, CheckCheckIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckBigIcon, CircleCheckIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CirclePauseIcon, CirclePlayIcon, CircleQuestionMarkIcon, CircleXIcon, ClipboardCheckIcon, ClipboardListIcon, ClockIcon, CloudIcon, CloudOffIcon, CoinsIcon, Columns3Icon, CommandIcon, ComponentIcon, CopyIcon, CornerUpLeftIcon, CreditCardIcon, DatabaseBackupIcon, DatabaseIcon, DoorOpenIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FaceSlightlySmilingIcon, FileArchiveIcon, FileBarChartIcon, FileChartColumnIncreasingIcon, FileCheck2Icon, FileCheckCornerIcon, FileCheckIcon, FileCodeIcon, FileDownIcon, FileIcon, FileImageIcon, FileInputIcon, FileQuestionIcon, FileQuestionMarkIcon, FileSearchIcon, FileSpreadsheetIcon, FileTerminalIcon, FileTextIcon, FileUpIcon, FilterIcon, FlagIcon, FolderCheckIcon, FolderKanbanIcon, FolderTreeIcon, FunnelIcon, GanttChartSquareIcon, GaugeIcon, GitBranchIcon, GitBranchPlusIcon, GitCompareArrowsIcon, GitMergeIcon, GitPullRequestArrowIcon, GitPullRequestClosedIcon, GlobeIcon, GraduationCapIcon, Grid3x3Icon, GripVerticalIcon, HandHeartIcon, HeartIcon, HeartPulseIcon, HexagonIcon, HistoryIcon, HourglassIcon, HouseIcon, IdCardIcon, ImageIcon, InboxIcon, InfoIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutTemplateIcon, LibraryIcon, LifeBuoyIcon, LightbulbIcon, Link2Icon, Link2OffIcon, LinkIcon, ListChecksIcon, ListFilterIcon, ListTreeIcon, Loader2Icon, LoaderCircleIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, Maximize2Icon, MegaphoneIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, Minimize2Icon, MinusIcon, MonitorCogIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewspaperIcon, NotebookPenIcon, OctagonAlertIcon, PackageIcon, PackageOpenIcon, PackageSearchIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PartyPopperIcon, PauseCircleIcon, PauseIcon, PenLineIcon, PencilIcon, PhoneIcon, PlaneIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusIcon, PresentationIcon, PrinterIcon, QrCodeIcon, RadioIcon, RadioTowerIcon, ReceiptIcon, RefreshCwIcon, RotateCcwClockIcon, RotateCcwIcon, RouteIcon, Rows2Icon, Rows3Icon, Rows4Icon, SaveIcon, ScaleIcon, ScanBarcodeIcon, ScanIcon, ScanSearchIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, SettingsIcon, ShapesIcon, Share2Icon, ShieldAlertIcon, ShieldCheckIcon, ShieldHalfIcon, ShieldIcon, ShieldOffIcon, ShieldXIcon, ShoppingCartIcon, SignpostIcon, SirenIcon, SlidersHorizontalIcon, SmileIcon, SparklesIcon, SquareChartGanttIcon, SquareIcon, StampIcon, StarIcon, StarOffIcon, StoreIcon, SunIcon, TagIcon, TagsIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, TimerIcon, TimerOffIcon, Trash2Icon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UnlinkIcon, UploadIcon, UserCheckIcon, UserCogIcon, UserIcon, UserPlusIcon, UserRoundIcon, UserXIcon, UsersIcon, UsersRoundIcon, WalletIcon, WaypointsIcon, WebhookIcon, WifiIcon, WifiOffIcon, WorkflowIcon, WrenchIcon, XCircleIcon, XIcon, ZapIcon } from './icons/components.js';
|
|
6
6
|
import 'react';
|
package/dist/index.cjs
CHANGED
|
@@ -1494,6 +1494,7 @@ var glyphMoon = [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022
|
|
|
1494
1494
|
var glyphOctagonAlert = [["path", { "d": "M12 16h.01" }], ["path", { "d": "M12 8v4" }], ["path", { "d": "M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z" }]];
|
|
1495
1495
|
var glyphPencil = [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]];
|
|
1496
1496
|
var glyphPlus = [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]];
|
|
1497
|
+
var glyphPresentation = [["path", { "d": "M2 3h20" }], ["path", { "d": "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3" }], ["path", { "d": "m7 21 5-5 5 5" }]];
|
|
1497
1498
|
var glyphRotateCcw = [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]];
|
|
1498
1499
|
var glyphScan = [["path", { "d": "M3 7V5a2 2 0 0 1 2-2h2" }], ["path", { "d": "M17 3h2a2 2 0 0 1 2 2v2" }], ["path", { "d": "M21 17v2a2 2 0 0 1-2 2h-2" }], ["path", { "d": "M7 21H5a2 2 0 0 1-2-2v-2" }]];
|
|
1499
1500
|
var glyphSearch = [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]];
|
|
@@ -1536,6 +1537,7 @@ var MoonIcon = /* @__PURE__ */ createIcon("MoonIcon", glyphMoon);
|
|
|
1536
1537
|
var OctagonAlertIcon = /* @__PURE__ */ createIcon("OctagonAlertIcon", glyphOctagonAlert);
|
|
1537
1538
|
var PencilIcon = /* @__PURE__ */ createIcon("PencilIcon", glyphPencil);
|
|
1538
1539
|
var PlusIcon = /* @__PURE__ */ createIcon("PlusIcon", glyphPlus);
|
|
1540
|
+
var PresentationIcon = /* @__PURE__ */ createIcon("PresentationIcon", glyphPresentation);
|
|
1539
1541
|
var RotateCcwIcon = /* @__PURE__ */ createIcon("RotateCcwIcon", glyphRotateCcw);
|
|
1540
1542
|
var ScanIcon = /* @__PURE__ */ createIcon("ScanIcon", glyphScan);
|
|
1541
1543
|
var SearchIcon = /* @__PURE__ */ createIcon("SearchIcon", glyphSearch);
|
|
@@ -7555,7 +7557,7 @@ function DashboardCanvas({
|
|
|
7555
7557
|
const placed = placeCanvasItem(live.current.layout, item.id, targetFor(move)).find((candidate) => candidate.id === item.id);
|
|
7556
7558
|
if (!placed) return;
|
|
7557
7559
|
last = { col: placed.col, row: placed.row, w: placed.w, h: placed.h };
|
|
7558
|
-
setPreview({ id: item.id, placement: last });
|
|
7560
|
+
setPreview({ id: item.id, kind, placement: last });
|
|
7559
7561
|
};
|
|
7560
7562
|
const finish = (drop) => {
|
|
7561
7563
|
drag.stop();
|
|
@@ -7618,10 +7620,12 @@ function DashboardCanvas({
|
|
|
7618
7620
|
layout.map((item) => {
|
|
7619
7621
|
const name = itemLabel(item);
|
|
7620
7622
|
const dragging = preview?.id === item.id;
|
|
7623
|
+
const lifted = dragging && preview.kind === "move";
|
|
7621
7624
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
7622
7625
|
"div",
|
|
7623
7626
|
{
|
|
7624
7627
|
className: cx("uix-dashboard-canvas__item", dragging && "uix-dashboard-canvas__item--dragging"),
|
|
7628
|
+
"data-uix-drag": lifted ? "lifted" : void 0,
|
|
7625
7629
|
style: placementStyle(item, order.get(item.id) ?? 0),
|
|
7626
7630
|
"data-canvas-id": item.id,
|
|
7627
7631
|
children: [
|
|
@@ -10213,15 +10217,18 @@ function legacyFileKind(file) {
|
|
|
10213
10217
|
if (type.startsWith("text/") || ["txt", "md", "log", "json", "xml", "doc", "docx", "odt", "rtf"].includes(ext)) return "text";
|
|
10214
10218
|
return "other";
|
|
10215
10219
|
}
|
|
10216
|
-
var FILE_KINDS = ["img", "doc", "sheet", "mail", "code", "log", "archive", "other"];
|
|
10220
|
+
var FILE_KINDS = ["img", "doc", "sheet", "slides", "pdf", "mail", "code", "log", "archive", "text", "other"];
|
|
10217
10221
|
var FILE_KIND_EXTENSIONS = {
|
|
10218
10222
|
img: ["png", "jpg", "jpeg", "gif", "webp", "heic", "bmp", "svg"],
|
|
10219
|
-
doc: ["
|
|
10220
|
-
sheet: ["xlsx", "xls", "csv", "ods", "tsv"],
|
|
10223
|
+
doc: ["docx", "doc", "docm", "dotx", "dotm", "dot", "odt", "rtf", "pages"],
|
|
10224
|
+
sheet: ["xlsx", "xls", "xlsm", "xlsb", "xltx", "xltm", "csv", "ods", "tsv", "numbers"],
|
|
10225
|
+
slides: ["pptx", "ppt", "pptm", "ppsx", "ppsm", "pps", "potx", "potm", "pot", "odp"],
|
|
10226
|
+
pdf: ["pdf"],
|
|
10221
10227
|
mail: ["eml", "msg"],
|
|
10222
10228
|
code: ["json", "yaml", "yml", "xml", "ps1", "sh", "py", "js", "ts", "ini", "conf", "toml"],
|
|
10223
10229
|
log: ["log", "evtx", "har", "dmp", "trace"],
|
|
10224
10230
|
archive: ["zip", "7z", "rar", "tar", "gz", "tgz"],
|
|
10231
|
+
text: ["txt", "md", "markdown"],
|
|
10225
10232
|
other: []
|
|
10226
10233
|
};
|
|
10227
10234
|
var KIND_BY_EXTENSION = /* @__PURE__ */ new Map();
|
|
@@ -10230,20 +10237,26 @@ var DEFAULT_FILE_KIND_LABELS = {
|
|
|
10230
10237
|
img: "Bild",
|
|
10231
10238
|
doc: "Dokument",
|
|
10232
10239
|
sheet: "Tabelle",
|
|
10240
|
+
slides: "Pr\xE4sentation",
|
|
10241
|
+
pdf: "PDF",
|
|
10233
10242
|
mail: "E-Mail",
|
|
10234
10243
|
code: "Code & Konfiguration",
|
|
10235
10244
|
log: "Protokoll",
|
|
10236
10245
|
archive: "Archiv",
|
|
10246
|
+
text: "Text",
|
|
10237
10247
|
other: "Datei"
|
|
10238
10248
|
};
|
|
10239
10249
|
var FILE_KIND_LABELS_EN = {
|
|
10240
10250
|
img: "Image",
|
|
10241
10251
|
doc: "Document",
|
|
10242
10252
|
sheet: "Spreadsheet",
|
|
10253
|
+
slides: "Presentation",
|
|
10254
|
+
pdf: "PDF",
|
|
10243
10255
|
mail: "Email",
|
|
10244
10256
|
code: "Code & configuration",
|
|
10245
10257
|
log: "Log",
|
|
10246
10258
|
archive: "Archive",
|
|
10259
|
+
text: "Text",
|
|
10247
10260
|
other: "File"
|
|
10248
10261
|
};
|
|
10249
10262
|
function fileExtension(name) {
|
|
@@ -10255,13 +10268,16 @@ function kindOfMime(mime) {
|
|
|
10255
10268
|
const m = mime.trim().toLowerCase();
|
|
10256
10269
|
if (!m) return "other";
|
|
10257
10270
|
if (m.startsWith("image/")) return "img";
|
|
10258
|
-
if (
|
|
10259
|
-
if (/
|
|
10271
|
+
if (/\bpdf\b/.test(m)) return "pdf";
|
|
10272
|
+
if (/presentation|powerpoint|apple\.keynote/.test(m)) return "slides";
|
|
10273
|
+
if (/ms-?word|wordprocessing|opendocument\.text|rtf|apple\.pages/.test(m)) return "doc";
|
|
10274
|
+
if (/spreadsheet|excel|csv|tab-separated|apple\.numbers/.test(m)) return "sheet";
|
|
10275
|
+
if (/markdown/.test(m)) return "text";
|
|
10260
10276
|
if (/rfc822|outlook/.test(m)) return "mail";
|
|
10261
10277
|
if (/x-log\b/.test(m)) return "log";
|
|
10262
10278
|
if (/json|xml|yaml|x-sh|javascript|typescript|x-python|toml/.test(m)) return "code";
|
|
10263
10279
|
if (/zip|x-7z|x-rar|vnd\.rar|gzip|x-tar|compressed-tar/.test(m)) return "archive";
|
|
10264
|
-
if (m === "text/plain") return "
|
|
10280
|
+
if (m === "text/plain") return "text";
|
|
10265
10281
|
return "other";
|
|
10266
10282
|
}
|
|
10267
10283
|
function fileKind(nameOrFile, mime) {
|
|
@@ -10527,10 +10543,13 @@ var FILE_KIND_GLYPHS = {
|
|
|
10527
10543
|
img: FileImageIcon,
|
|
10528
10544
|
doc: FileTextIcon,
|
|
10529
10545
|
sheet: FileSpreadsheetIcon,
|
|
10546
|
+
slides: PresentationIcon,
|
|
10547
|
+
pdf: FileTextIcon,
|
|
10530
10548
|
mail: MailIcon,
|
|
10531
10549
|
code: FileCodeIcon,
|
|
10532
10550
|
log: FileTerminalIcon,
|
|
10533
10551
|
archive: FileArchiveIcon,
|
|
10552
|
+
text: FileTextIcon,
|
|
10534
10553
|
other: FileIcon
|
|
10535
10554
|
};
|
|
10536
10555
|
var STROKE = { sm: 1.5, md: 1.5, lg: 1.4 };
|
|
@@ -12918,7 +12937,7 @@ var import_react85 = require("react");
|
|
|
12918
12937
|
var useIsomorphicLayoutEffect20 = typeof document !== "undefined" ? import_react85.useLayoutEffect : import_react85.useEffect;
|
|
12919
12938
|
var EXIT_FALLBACK_MS = 1e3;
|
|
12920
12939
|
var FOCUSABLE = 'a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])';
|
|
12921
|
-
function MotionList({ items, getKey, renderItem, as = "ul", className, ...props }) {
|
|
12940
|
+
function MotionList({ items, getKey, renderItem, as = "ul", onExited, className, ...props }) {
|
|
12922
12941
|
const containerRef = (0, import_react85.useRef)(null);
|
|
12923
12942
|
const [state, setState] = (0, import_react85.useState)(() => ({
|
|
12924
12943
|
items,
|
|
@@ -13006,6 +13025,14 @@ function MotionList({ items, getKey, renderItem, as = "ul", className, ...props
|
|
|
13006
13025
|
const deadlines = (0, import_react85.useRef)(/* @__PURE__ */ new Map());
|
|
13007
13026
|
const exitingKeys = entries.filter((e) => e.exiting).map((e) => e.key);
|
|
13008
13027
|
const exitingSignature = exitingKeys.join("\n");
|
|
13028
|
+
const exitedRef = (0, import_react85.useRef)(onExited);
|
|
13029
|
+
exitedRef.current = onExited;
|
|
13030
|
+
const wasExiting = (0, import_react85.useRef)(false);
|
|
13031
|
+
(0, import_react85.useEffect)(() => {
|
|
13032
|
+
const leaving = exitingSignature !== "";
|
|
13033
|
+
if (wasExiting.current && !leaving) exitedRef.current?.();
|
|
13034
|
+
wasExiting.current = leaving;
|
|
13035
|
+
}, [exitingSignature]);
|
|
13009
13036
|
(0, import_react85.useEffect)(() => {
|
|
13010
13037
|
const container = containerRef.current;
|
|
13011
13038
|
const now2 = Date.now();
|
|
@@ -15400,6 +15427,7 @@ var hiddenBy = (ladder, priority) => ladder === "priority" && priority === "low"
|
|
|
15400
15427
|
var ROW_HEIGHT = { compact: 44, standard: 56, comfortable: 68 };
|
|
15401
15428
|
var CONTROLS = 'a, button, input, select, textarea, label, summary, dialog, [role="button"], [role="menuitem"], [contenteditable="true"], [popover], td.uix-table__selcell, td.uix-table__actions';
|
|
15402
15429
|
var RESERVED_COLS = /* @__PURE__ */ new Set(["select", "id", "actions", "expand"]);
|
|
15430
|
+
var MOTION_ROW_LIMIT = 12;
|
|
15403
15431
|
var textOf2 = (node) => typeof node === "string" ? node : void 0;
|
|
15404
15432
|
var columnLabel = (column) => column.label ?? textOf2(column.header);
|
|
15405
15433
|
var ladderAttrs = (on, column, body) => on ? {
|
|
@@ -15443,6 +15471,7 @@ function DataWorkspace({
|
|
|
15443
15471
|
pagination,
|
|
15444
15472
|
status = "ready",
|
|
15445
15473
|
refreshing = false,
|
|
15474
|
+
rowMotion = false,
|
|
15446
15475
|
onRetry,
|
|
15447
15476
|
loadingRows = 6,
|
|
15448
15477
|
empty,
|
|
@@ -15529,6 +15558,13 @@ function DataWorkspace({
|
|
|
15529
15558
|
const view = flat.length > 0 ? current : refreshing || source === settled.source ? settled : current;
|
|
15530
15559
|
const shownRows = view.flat;
|
|
15531
15560
|
const shownGroups = view.groups;
|
|
15561
|
+
const [exitHold, setExitHold] = (0, import_react93.useState)({ count: shownRows.length, filtered: view.filtered, refreshing, held: false });
|
|
15562
|
+
if (exitHold.count !== shownRows.length || exitHold.filtered !== view.filtered || exitHold.refreshing !== refreshing) {
|
|
15563
|
+
const held = rowMotion && shownRows.length === 0 && exitHold.count > 0 && exitHold.filtered === view.filtered && !exitHold.refreshing && !refreshing && !shownGroups && status === "ready" && stateOverride == null;
|
|
15564
|
+
setExitHold({ count: shownRows.length, filtered: view.filtered, refreshing, held });
|
|
15565
|
+
}
|
|
15566
|
+
const holdingExit = exitHold.held && shownRows.length === 0;
|
|
15567
|
+
const onRowsExited = (0, import_react93.useCallback)(() => setExitHold((current2) => current2.held ? { ...current2, held: false } : current2), []);
|
|
15532
15568
|
const [ownCollapsed, setOwnCollapsed] = (0, import_react93.useState)(() => /* @__PURE__ */ new Set());
|
|
15533
15569
|
const collapsed = collapsedGroups ?? ownCollapsed;
|
|
15534
15570
|
const toggleGroupOpen = (groupId) => {
|
|
@@ -15643,7 +15679,7 @@ function DataWorkspace({
|
|
|
15643
15679
|
if (stateOverride != null) body = busy(stateOverride);
|
|
15644
15680
|
else if (status === "loading") body = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(LoadingState, { rows: loadingRows, label: labels.loading, className: "uix-data-workspace__loading" });
|
|
15645
15681
|
else if (status === "error") body = error != null ? busy(error) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ErrorState, { title: labels.error, action: onRetry && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Button, { size: "sm", onClick: onRetry, children: labels.retry }) });
|
|
15646
|
-
else if (shownRows.length === 0) {
|
|
15682
|
+
else if (shownRows.length === 0 && !holdingExit) {
|
|
15647
15683
|
const clear = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Button, { size: "sm", onClick: clearAll, children: labels.clearFilters });
|
|
15648
15684
|
body = busy(view.filtered ? filteredEmpty ?? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
15649
15685
|
FilteredEmptyState,
|
|
@@ -15678,6 +15714,7 @@ function DataWorkspace({
|
|
|
15678
15714
|
ladderOn: mobile != null,
|
|
15679
15715
|
ladder,
|
|
15680
15716
|
refreshing,
|
|
15717
|
+
rowMotion,
|
|
15681
15718
|
selectable,
|
|
15682
15719
|
selected,
|
|
15683
15720
|
onPage,
|
|
@@ -15698,7 +15735,8 @@ function DataWorkspace({
|
|
|
15698
15735
|
activateOnClick,
|
|
15699
15736
|
activeRowId,
|
|
15700
15737
|
onActiveRowChange,
|
|
15701
|
-
labels
|
|
15738
|
+
labels,
|
|
15739
|
+
onRowsExited
|
|
15702
15740
|
}
|
|
15703
15741
|
);
|
|
15704
15742
|
}
|
|
@@ -15771,6 +15809,7 @@ function WorkspaceTable({
|
|
|
15771
15809
|
ladderOn,
|
|
15772
15810
|
ladder,
|
|
15773
15811
|
refreshing,
|
|
15812
|
+
rowMotion,
|
|
15774
15813
|
selectable,
|
|
15775
15814
|
selected,
|
|
15776
15815
|
onPage,
|
|
@@ -15792,7 +15831,8 @@ function WorkspaceTable({
|
|
|
15792
15831
|
onActiveRowChange,
|
|
15793
15832
|
labels,
|
|
15794
15833
|
windowing,
|
|
15795
|
-
virtual
|
|
15834
|
+
virtual,
|
|
15835
|
+
onRowsExited
|
|
15796
15836
|
}) {
|
|
15797
15837
|
const cards = ladder === "cards";
|
|
15798
15838
|
const wrapRef = (0, import_react93.useRef)(null);
|
|
@@ -16117,6 +16157,44 @@ function WorkspaceTable({
|
|
|
16117
16157
|
rowId
|
|
16118
16158
|
);
|
|
16119
16159
|
};
|
|
16160
|
+
const renderLeavingRow = (row) => {
|
|
16161
|
+
const rowId = getRowId(row);
|
|
16162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
16163
|
+
WorkspaceRow,
|
|
16164
|
+
{
|
|
16165
|
+
row,
|
|
16166
|
+
rowId,
|
|
16167
|
+
rowLabel,
|
|
16168
|
+
columns,
|
|
16169
|
+
idColumn,
|
|
16170
|
+
getRowProps,
|
|
16171
|
+
selectable,
|
|
16172
|
+
selected: false,
|
|
16173
|
+
selectDisabled: true,
|
|
16174
|
+
hasActions,
|
|
16175
|
+
actions: null,
|
|
16176
|
+
ladder,
|
|
16177
|
+
ladderOn,
|
|
16178
|
+
selectRowLabel,
|
|
16179
|
+
openLabel,
|
|
16180
|
+
marked: false,
|
|
16181
|
+
nav: false,
|
|
16182
|
+
tabStop: false,
|
|
16183
|
+
handlers: handlers2
|
|
16184
|
+
},
|
|
16185
|
+
rowId
|
|
16186
|
+
);
|
|
16187
|
+
};
|
|
16188
|
+
const indexById = (0, import_react93.useMemo)(() => new Map(ids.map((rowId, index) => [rowId, index])), [ids]);
|
|
16189
|
+
const motion = (0, import_react93.useRef)({ ids, generation: 0 });
|
|
16190
|
+
if (motion.current.ids !== ids) {
|
|
16191
|
+
const before = new Set(motion.current.ids);
|
|
16192
|
+
const kept = ids.reduce((count2, rowId) => count2 + (before.has(rowId) ? 1 : 0), 0);
|
|
16193
|
+
const changed = ids.length - kept + (before.size - kept);
|
|
16194
|
+
const replaced = before.size > 0 && ids.length > 0 && (kept === 0 || changed > MOTION_ROW_LIMIT);
|
|
16195
|
+
motion.current = { ids, generation: motion.current.generation + (replaced ? 1 : 0) };
|
|
16196
|
+
}
|
|
16197
|
+
const motionGeneration = motion.current.generation;
|
|
16120
16198
|
let tbody;
|
|
16121
16199
|
if (groups) {
|
|
16122
16200
|
let offset = 0;
|
|
@@ -16169,12 +16247,30 @@ function WorkspaceTable({
|
|
|
16169
16247
|
});
|
|
16170
16248
|
} else {
|
|
16171
16249
|
const spacer = (height, key) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("tr", { "aria-hidden": "true", className: "uix-data-workspace__spacer", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("td", { colSpan: colCount, style: { height } }) }, key);
|
|
16172
|
-
tbody = /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("tbody", { children: [
|
|
16173
|
-
virtual &&
|
|
16174
|
-
|
|
16250
|
+
tbody = windowed || !rowMotion ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("tbody", { children: [
|
|
16251
|
+
virtual && start > 0 && spacer(virtual.padTop, "pad-top"),
|
|
16252
|
+
start > 0 && start % 2 === 0 && spacer(0, "pad-zebra"),
|
|
16175
16253
|
mountedRows.map((row, at2) => renderRow(row, start + at2)),
|
|
16176
|
-
virtual &&
|
|
16177
|
-
] })
|
|
16254
|
+
virtual && virtual.padBottom > 0 && spacer(virtual.padBottom, "pad-bottom")
|
|
16255
|
+
] }) : (
|
|
16256
|
+
// Row motion (HAR-2755): a row a live update adds rises in, a row a bulk action removes fades
|
|
16257
|
+
// out while the rows after it glide up, a re-sort glides. A new page, filter or view that
|
|
16258
|
+
// replaces most rows remounts the body instead (`motionGeneration`), so it swaps at once.
|
|
16259
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
16260
|
+
MotionList,
|
|
16261
|
+
{
|
|
16262
|
+
as: "tbody",
|
|
16263
|
+
items: rows,
|
|
16264
|
+
getKey: getRowId,
|
|
16265
|
+
onExited: onRowsExited,
|
|
16266
|
+
renderItem: (row, { exiting }) => {
|
|
16267
|
+
const index = exiting ? void 0 : indexById.get(getRowId(row));
|
|
16268
|
+
return index === void 0 ? renderLeavingRow(row) : renderRow(row, index);
|
|
16269
|
+
}
|
|
16270
|
+
},
|
|
16271
|
+
motionGeneration
|
|
16272
|
+
)
|
|
16273
|
+
);
|
|
16178
16274
|
}
|
|
16179
16275
|
const wrapStyle = long ? { "--uix-table-max-height": `${maxHeight}px` } : void 0;
|
|
16180
16276
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
@@ -16270,7 +16366,10 @@ function WorkspaceRowInner({
|
|
|
16270
16366
|
ariaRowIndex,
|
|
16271
16367
|
nav,
|
|
16272
16368
|
tabStop,
|
|
16273
|
-
handlers: handlers2
|
|
16369
|
+
handlers: handlers2,
|
|
16370
|
+
"data-uix-key": motionKey,
|
|
16371
|
+
"data-uix-exiting": motionExiting,
|
|
16372
|
+
"aria-hidden": motionHidden
|
|
16274
16373
|
}) {
|
|
16275
16374
|
const renderedActions = (0, import_react93.useMemo)(
|
|
16276
16375
|
() => lazyRowActions ? lazyRowActions(row, { ladder, compact: ladder === "priority-mid" }) : actions,
|
|
@@ -16297,22 +16396,35 @@ function WorkspaceRowInner({
|
|
|
16297
16396
|
handlers2.blur(rowId, event);
|
|
16298
16397
|
}
|
|
16299
16398
|
} : {};
|
|
16300
|
-
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
16400
|
+
Tr,
|
|
16401
|
+
{
|
|
16402
|
+
selected,
|
|
16403
|
+
"data-uix-row-id": marked ? rowId : void 0,
|
|
16404
|
+
"aria-rowindex": ariaRowIndex,
|
|
16405
|
+
...extra,
|
|
16406
|
+
...navProps,
|
|
16407
|
+
"data-uix-key": motionKey,
|
|
16408
|
+
"data-uix-exiting": motionExiting,
|
|
16409
|
+
"aria-hidden": motionHidden,
|
|
16410
|
+
children: [
|
|
16411
|
+
selectable && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("td", { className: "uix-table__selcell", "data-col": ladderOn ? "select" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
16412
|
+
Checkbox,
|
|
16413
|
+
{
|
|
16414
|
+
"aria-label": fillLabel(selectRowLabel, { label: text }),
|
|
16415
|
+
checked: selected,
|
|
16416
|
+
disabled: selectDisabled,
|
|
16417
|
+
onClick: (event) => handlers2.toggle(rowId, event.currentTarget.checked, event),
|
|
16418
|
+
onChange: () => {
|
|
16419
|
+
}
|
|
16420
|
+
}
|
|
16421
|
+
) }),
|
|
16422
|
+
idColumn && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Td, { className: "uix-id-cell", "data-col": ladderOn ? "id" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(IdCell, { row, text, idColumn, openLabel }) }),
|
|
16423
|
+
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Td, { className: cx(column.align === "end" && "uix-col--num", column.className) || void 0, ...ladderAttrs(ladderOn, column, true), children: column.cell(row) }, column.id)),
|
|
16424
|
+
hasActions && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(RowActions, { "data-col": ladderOn ? "actions" : void 0, children: renderedActions })
|
|
16425
|
+
]
|
|
16426
|
+
}
|
|
16427
|
+
);
|
|
16316
16428
|
}
|
|
16317
16429
|
var WorkspaceRow = (0, import_react93.memo)(WorkspaceRowInner);
|
|
16318
16430
|
function IdCell({ row, text, idColumn, openLabel }) {
|
package/dist/index.d.cts
CHANGED
|
@@ -2956,16 +2956,23 @@ declare function partitionFiles<F extends {
|
|
|
2956
2956
|
accepted: F[];
|
|
2957
2957
|
rejected: FileRejection<F>[];
|
|
2958
2958
|
};
|
|
2959
|
-
/**
|
|
2959
|
+
/**
|
|
2960
|
+
* The coarse kinds of the object form of `fileKind`, read by `FileUpload` and `Attachment`. Older
|
|
2961
|
+
* than the file kit and separate from `FileKind`: here `text` means any document (Word files
|
|
2962
|
+
* included), there it means plain text only.
|
|
2963
|
+
*/
|
|
2960
2964
|
type LegacyFileKind = 'image' | 'video' | 'pdf' | 'sheet' | 'archive' | 'text' | 'other';
|
|
2961
2965
|
/**
|
|
2962
|
-
* What a service-desk agent does with a file, as one of
|
|
2963
|
-
*
|
|
2964
|
-
* `
|
|
2965
|
-
* (
|
|
2966
|
+
* What a service-desk agent does with a file, as one of eleven kinds (file kit 2.57, office
|
|
2967
|
+
* formats split out in 2.59): `img` (Bild), `doc` (Dokument: Word and other word-processor
|
|
2968
|
+
* files), `sheet` (Tabelle), `slides` (Präsentation), `pdf` (PDF), `mail` (E-Mail), `code`
|
|
2969
|
+
* (Code & Konfiguration), `log` (Protokoll), `archive` (Archiv), `text` (Text) and `other`
|
|
2970
|
+
* (Datei). Each has a colour (`--uix-file-<kind>`) and a glyph; `FileIcon`, `FileRow` and
|
|
2971
|
+
* `FileDrop` read it. The office kinds take the colour people know from the program (Word
|
|
2972
|
+
* blue, Excel green, PowerPoint orange, PDF red), tuned to stay clear of the status colours.
|
|
2966
2973
|
*/
|
|
2967
|
-
type FileKind = 'img' | 'doc' | 'sheet' | 'mail' | 'code' | 'log' | 'archive' | 'other';
|
|
2968
|
-
/** The
|
|
2974
|
+
type FileKind = 'img' | 'doc' | 'sheet' | 'slides' | 'pdf' | 'mail' | 'code' | 'log' | 'archive' | 'text' | 'other';
|
|
2975
|
+
/** The eleven kinds in display order (`other` last). */
|
|
2969
2976
|
declare const FILE_KINDS: readonly FileKind[];
|
|
2970
2977
|
/** The extensions of each kind, lower case and without the dot. `other` has none. */
|
|
2971
2978
|
declare const FILE_KIND_EXTENSIONS: Readonly<Record<FileKind, readonly string[]>>;
|
|
@@ -5553,6 +5560,17 @@ interface DataWorkspaceProps<T, S extends DataWorkspaceSortState = DataWorkspace
|
|
|
5553
5560
|
status?: 'ready' | 'loading' | 'error';
|
|
5554
5561
|
/** A refetch (filter, sort, page, saved view): the rows stay under `TableWrap refreshing`. */
|
|
5555
5562
|
refreshing?: boolean;
|
|
5563
|
+
/**
|
|
5564
|
+
* Row motion (HAR-2755, list motion of the motion standard §2.5): a row that arrives (a live
|
|
5565
|
+
* update, the "new items" pill) rises in; a row that leaves (a bulk close, a row handled
|
|
5566
|
+
* elsewhere) fades out while the rows after it glide into its place, and the empty state waits
|
|
5567
|
+
* for the last one; a re-sort glides. A new page, filter or view that replaces most rows swaps
|
|
5568
|
+
* at once. Focus moves to a neighbour when its row leaves. Reduced motion keeps the fades only.
|
|
5569
|
+
* Not for grouped or windowed bodies, which keep plain rows. A leaving row stays in the DOM
|
|
5570
|
+
* (inert, `aria-hidden`) until its exit ends, so a test that counts rows right after a removal
|
|
5571
|
+
* sees it for up to a second. Default `false`.
|
|
5572
|
+
*/
|
|
5573
|
+
rowMotion?: boolean;
|
|
5556
5574
|
onRetry?: () => void;
|
|
5557
5575
|
/** Skeleton rows on a first load. Default 6. */
|
|
5558
5576
|
loadingRows?: number;
|
|
@@ -5612,7 +5630,7 @@ interface DataWorkspaceProps<T, S extends DataWorkspaceSortState = DataWorkspace
|
|
|
5612
5630
|
* rich id cell, multi-column sort, the product's state bodies and `beforeBody`, row groups,
|
|
5613
5631
|
* windowing (`virtualize`) and a keyboard row model (`onRowActivate`).
|
|
5614
5632
|
*/
|
|
5615
|
-
declare function DataWorkspace<T, S extends DataWorkspaceSortState = DataWorkspaceSort | null>({ label, rows, getRowId, rowLabel, columns, idColumn, sort, onSortChange, selection, onSelectionChange, maxSelection, bulkActions, rowActions, rowActionsColumn, getRowProps, density, zebra, freezeFirstColumn, fixed, mobile, search, filters, savedViews, viewMenu, viewChanged, onSaveView, onSaveViewAs, saveViewAs, maximized, onMaximizedChange, toolbarEnd, beforeBody, pagination, status, refreshing, onRetry, loadingRows, empty, emptyAction, filteredEmpty, filteredEmptyAction, error, stateOverride, groups, collapsedGroups, onCollapsedGroupsChange, virtualize, rowNavigation, onRowActivate, activateOnClick, activeRowId, onActiveRowChange, multiSort, labels: labelOverrides, className, ...props }: DataWorkspaceProps<T, S>): react.JSX.Element;
|
|
5633
|
+
declare function DataWorkspace<T, S extends DataWorkspaceSortState = DataWorkspaceSort | null>({ label, rows, getRowId, rowLabel, columns, idColumn, sort, onSortChange, selection, onSelectionChange, maxSelection, bulkActions, rowActions, rowActionsColumn, getRowProps, density, zebra, freezeFirstColumn, fixed, mobile, search, filters, savedViews, viewMenu, viewChanged, onSaveView, onSaveViewAs, saveViewAs, maximized, onMaximizedChange, toolbarEnd, beforeBody, pagination, status, refreshing, rowMotion, onRetry, loadingRows, empty, emptyAction, filteredEmpty, filteredEmptyAction, error, stateOverride, groups, collapsedGroups, onCollapsedGroupsChange, virtualize, rowNavigation, onRowActivate, activateOnClick, activeRowId, onActiveRowChange, multiSort, labels: labelOverrides, className, ...props }: DataWorkspaceProps<T, S>): react.JSX.Element;
|
|
5616
5634
|
|
|
5617
5635
|
/**
|
|
5618
5636
|
* Kit chrome strings by component (HAR-1358; TENSOR C20, MOTUS executive summary #3).
|
|
@@ -7175,7 +7193,11 @@ interface AttachmentListProps extends HTMLAttributes<HTMLUListElement> {
|
|
|
7175
7193
|
/** A list of `Attachment` rows. */
|
|
7176
7194
|
declare function AttachmentList({ label, className, children, ...props }: AttachmentListProps): react.JSX.Element;
|
|
7177
7195
|
|
|
7178
|
-
/**
|
|
7196
|
+
/**
|
|
7197
|
+
* The Lucide glyph of each kind. E-Mail keeps the envelope and Präsentation the presentation
|
|
7198
|
+
* board: Lucide has no file-shaped icon for either. Dokument, PDF and Text share the page with
|
|
7199
|
+
* lines; their colour and the type label on the corner tell them apart.
|
|
7200
|
+
*/
|
|
7179
7201
|
declare const FILE_KIND_GLYPHS: Readonly<Record<FileKind, UixIcon>>;
|
|
7180
7202
|
/** `md` 34 px (a list row), `sm` 30 px (a compact panel row), `lg` 52 px. */
|
|
7181
7203
|
type FileKindIconSize = 'sm' | 'md' | 'lg';
|
|
@@ -8251,6 +8273,12 @@ interface MotionListProps<T> extends Omit<HTMLAttributes<HTMLElement>, 'children
|
|
|
8251
8273
|
}) => ReactElement;
|
|
8252
8274
|
/** The list element (default `ul`). */
|
|
8253
8275
|
as?: 'ul' | 'ol' | 'div' | 'tbody';
|
|
8276
|
+
/**
|
|
8277
|
+
* Called once the last leaving item has gone (its exit ended, or its deadline passed). A list
|
|
8278
|
+
* that shows an empty state in its place keeps rendering the list, with no items, until this
|
|
8279
|
+
* fires, so its last item leaves visibly too (HAR-2755).
|
|
8280
|
+
*/
|
|
8281
|
+
onExited?: () => void;
|
|
8254
8282
|
}
|
|
8255
8283
|
/**
|
|
8256
8284
|
* A list whose items arrive, leave and move visibly (HAR-2586, motion standard §2.5):
|
|
@@ -8265,7 +8293,7 @@ interface MotionListProps<T> extends Omit<HTMLAttributes<HTMLElement>, 'children
|
|
|
8265
8293
|
* Reduced motion keeps the fades and drops every glide and rise. For a list that re-sorts
|
|
8266
8294
|
* itself (live data), hold the order while the person is pointing at it: `useDeferredReorder`.
|
|
8267
8295
|
*/
|
|
8268
|
-
declare function MotionList<T>({ items, getKey, renderItem, as, className, ...props }: MotionListProps<T>): react.DetailedReactHTMLElement<{
|
|
8296
|
+
declare function MotionList<T>({ items, getKey, renderItem, as, onExited, className, ...props }: MotionListProps<T>): react.DetailedReactHTMLElement<{
|
|
8269
8297
|
ref: react.RefObject<HTMLElement>;
|
|
8270
8298
|
className: string;
|
|
8271
8299
|
onTransitionEnd: (event: TransitionEvent<HTMLElement>) => void;
|