@inf-monkeys-tech/monkeys-design 0.4.32 → 0.4.34
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/LICENSE +21 -21
- package/README.md +226 -226
- package/dist/components/base/index.d.mts +2 -2
- package/dist/components/base/index.d.ts +2 -2
- package/dist/components/base/index.js +990 -28
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +987 -30
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/login/index.js.map +1 -1
- package/dist/components/login/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +193 -2
- package/dist/components/workbench/index.d.ts +193 -2
- package/dist/components/workbench/index.js +2164 -585
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +2367 -813
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/icons/oauth/index.js.map +1 -1
- package/dist/icons/oauth/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1958 -170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1950 -172
- package/dist/index.mjs.map +1 -1
- package/dist/palette/index.js.map +1 -1
- package/dist/palette/index.mjs.map +1 -1
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/index.mjs.map +1 -1
- package/dist/styles/artist-login.scss +374 -374
- package/dist/styles/global.scss +21 -21
- package/dist/styles/workflow-board.scss +440 -440
- package/dist/styles/workflow-nodes.css +340 -340
- package/dist/{theme-CvbotXXr.d.ts → theme-Clm5dVb0.d.mts} +10 -3
- package/dist/{theme-6RDum855.d.mts → theme-sIoU5-YC.d.ts} +10 -3
- package/dist/theme-system/index.d.mts +1 -1
- package/dist/theme-system/index.d.ts +1 -1
- package/dist/theme-system/index.js +842 -18
- package/dist/theme-system/index.js.map +1 -1
- package/dist/theme-system/index.mjs +843 -19
- package/dist/theme-system/index.mjs.map +1 -1
- package/dist/themes/artist/index.js.map +1 -1
- package/dist/themes/artist/index.mjs.map +1 -1
- package/dist/themes/bsd/index.js.map +1 -1
- package/dist/themes/bsd/index.mjs.map +1 -1
- package/dist/themes/concept/index.js.map +1 -1
- package/dist/themes/concept/index.mjs.map +1 -1
- package/dist/themes/default/index.js.map +1 -1
- package/dist/themes/default/index.mjs.map +1 -1
- package/dist/{types-BgEEUqSm.d.mts → types-Bn6PEDsX.d.mts} +163 -1
- package/dist/{types-BgEEUqSm.d.ts → types-Bn6PEDsX.d.ts} +163 -1
- package/package.json +139 -138
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode, MouseEvent, ElementType, CSSProperties, ComponentPropsWithoutRef, ComponentType } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
4
|
+
import { b0 as BaseTableSortDirection, c as BaseAppearance, aL as BaseTableColumnSizes, aJ as BaseTableColumnOrderChangeDetail, aK as BaseTableColumnSizeChangeDetail } from '../../types-Bn6PEDsX.js';
|
|
5
5
|
import '@radix-ui/react-context-menu';
|
|
6
6
|
|
|
7
7
|
interface WorkbenchResizableSidebarItem {
|
|
@@ -420,6 +420,150 @@ interface WorkbenchTableViewProps<Row = any> {
|
|
|
420
420
|
}
|
|
421
421
|
declare function WorkbenchTableView<Row = any>({ rows, columns, onRowClick, selectedRowKey, selectedLinkKey, activePrimaryColumn, activeTablePrimaryColumn, renderedRowCount, totalRowCount, tableMinWidth, minWidth, bodyMaxHeight, stickyFirstColumn, appearance, columnOrder, columnSizes, columnDragEnabled, columnResizeEnabled, className, tableClassName, rowClassName, classNames, style, renderCell, renderFieldValue, renderColumnHeader, onColumnOrderChange, onColumnSizeChange, onSort, formatLabel, getColumnDataType, getColumnIcon, getColumnTypeIcon, getRowKey, getRowSelectionKey, isActionColumn, isActionField, isRowDisabled, isWorkbenchPlaceholderRow, emptyState, hiddenRowsMessage, }: WorkbenchTableViewProps<Row>): react_jsx_runtime.JSX.Element;
|
|
422
422
|
|
|
423
|
+
interface InteractiveTableColumn {
|
|
424
|
+
key: string;
|
|
425
|
+
label?: ReactNode;
|
|
426
|
+
description?: ReactNode;
|
|
427
|
+
align?: 'left' | 'center' | 'right';
|
|
428
|
+
width?: number | string;
|
|
429
|
+
minWidth?: number;
|
|
430
|
+
maxWidth?: number;
|
|
431
|
+
sortable?: boolean;
|
|
432
|
+
sortDirection?: BaseTableSortDirection;
|
|
433
|
+
sortLabel?: string;
|
|
434
|
+
draggable?: boolean;
|
|
435
|
+
resizable?: boolean;
|
|
436
|
+
className?: string;
|
|
437
|
+
headerClassName?: string;
|
|
438
|
+
cellClassName?: string;
|
|
439
|
+
wrap?: boolean;
|
|
440
|
+
[key: string]: any;
|
|
441
|
+
}
|
|
442
|
+
interface InteractiveTableClassNames {
|
|
443
|
+
root?: string;
|
|
444
|
+
header?: string;
|
|
445
|
+
headerLeading?: string;
|
|
446
|
+
headerTitle?: string;
|
|
447
|
+
headerDescription?: string;
|
|
448
|
+
headerActions?: string;
|
|
449
|
+
scrollArea?: string;
|
|
450
|
+
table?: string;
|
|
451
|
+
tableHeader?: string;
|
|
452
|
+
headerRow?: string;
|
|
453
|
+
headerCell?: string;
|
|
454
|
+
body?: string;
|
|
455
|
+
row?: string;
|
|
456
|
+
pinnedTopRow?: string;
|
|
457
|
+
cell?: string;
|
|
458
|
+
empty?: string;
|
|
459
|
+
}
|
|
460
|
+
interface InteractiveTableRenderContext<Row = any> {
|
|
461
|
+
row: Row;
|
|
462
|
+
rowIndex: number;
|
|
463
|
+
column: InteractiveTableColumn;
|
|
464
|
+
columnIndex: number;
|
|
465
|
+
isPinnedTopRow: boolean;
|
|
466
|
+
}
|
|
467
|
+
interface InteractiveTableHeaderContext<Row = any> {
|
|
468
|
+
column: InteractiveTableColumn;
|
|
469
|
+
columnIndex: number;
|
|
470
|
+
columns: InteractiveTableColumn[];
|
|
471
|
+
rows: Row[];
|
|
472
|
+
}
|
|
473
|
+
interface InteractiveTableRowState {
|
|
474
|
+
disabled?: boolean;
|
|
475
|
+
pending?: boolean;
|
|
476
|
+
saving?: boolean;
|
|
477
|
+
selected?: boolean;
|
|
478
|
+
}
|
|
479
|
+
interface InteractiveTableHeaderProps {
|
|
480
|
+
title?: ReactNode;
|
|
481
|
+
description?: ReactNode;
|
|
482
|
+
actions?: ReactNode;
|
|
483
|
+
resetColumnSizesLabel?: ReactNode;
|
|
484
|
+
}
|
|
485
|
+
interface InteractiveTableColumnMenuLabels {
|
|
486
|
+
columnActions?: ReactNode;
|
|
487
|
+
freezeColumn?: ReactNode;
|
|
488
|
+
freezeEndColumn?: ReactNode;
|
|
489
|
+
unfreezeColumn?: ReactNode;
|
|
490
|
+
unfreezeEndColumn?: ReactNode;
|
|
491
|
+
unfreezeAllColumns?: ReactNode;
|
|
492
|
+
resetColumnWidth?: ReactNode;
|
|
493
|
+
frozenColumnTitle?: string;
|
|
494
|
+
}
|
|
495
|
+
interface InteractiveTableProps<Row = any, PinnedTopRow = Row> {
|
|
496
|
+
rows?: Row[];
|
|
497
|
+
columns?: InteractiveTableColumn[];
|
|
498
|
+
pinnedTopRows?: PinnedTopRow[];
|
|
499
|
+
getRowKey?: (row: Row, rowIndex: number) => string | number;
|
|
500
|
+
getPinnedTopRowKey?: (row: PinnedTopRow, rowIndex: number) => string | number;
|
|
501
|
+
renderCell?: (column: InteractiveTableColumn, row: Row, context: InteractiveTableRenderContext<Row>) => ReactNode;
|
|
502
|
+
renderPinnedTopCell?: (column: InteractiveTableColumn, row: PinnedTopRow, context: InteractiveTableRenderContext<PinnedTopRow>) => ReactNode;
|
|
503
|
+
renderColumnHeader?: (column: InteractiveTableColumn, context: InteractiveTableHeaderContext<Row>) => ReactNode;
|
|
504
|
+
onRowClick?: (row: Row, rowIndex: number) => void;
|
|
505
|
+
getRowState?: (row: Row, rowIndex: number) => InteractiveTableRowState | undefined;
|
|
506
|
+
rowClassName?: string | ((row: Row, rowIndex: number) => string | undefined);
|
|
507
|
+
pinnedTopRowClassName?: string | ((row: PinnedTopRow, rowIndex: number) => string | undefined);
|
|
508
|
+
emptyState?: ReactNode;
|
|
509
|
+
header?: InteractiveTableHeaderProps;
|
|
510
|
+
showResetColumnSizes?: boolean;
|
|
511
|
+
columnMenuLabels?: InteractiveTableColumnMenuLabels;
|
|
512
|
+
columnStorageKey?: string;
|
|
513
|
+
columnOrder?: string[];
|
|
514
|
+
columnSizes?: BaseTableColumnSizes;
|
|
515
|
+
defaultColumnSizes?: BaseTableColumnSizes;
|
|
516
|
+
columnDragEnabled?: boolean;
|
|
517
|
+
columnResizeEnabled?: boolean;
|
|
518
|
+
frozenColumnCount?: number;
|
|
519
|
+
frozenEndColumnCount?: number;
|
|
520
|
+
tableMinWidth?: number;
|
|
521
|
+
bodyMaxHeight?: number | string;
|
|
522
|
+
appearance?: BaseAppearance;
|
|
523
|
+
className?: string;
|
|
524
|
+
tableClassName?: string;
|
|
525
|
+
classNames?: InteractiveTableClassNames;
|
|
526
|
+
style?: CSSProperties;
|
|
527
|
+
onColumnOrderChange?: (nextOrder: string[], detail: BaseTableColumnOrderChangeDetail) => void;
|
|
528
|
+
onColumnSizeChange?: (columnId: string, width: number, detail: BaseTableColumnSizeChangeDetail) => void;
|
|
529
|
+
onResetColumnSizes?: (nextSizes: BaseTableColumnSizes) => void;
|
|
530
|
+
onFrozenColumnCountChange?: (nextCount: number) => void;
|
|
531
|
+
onFrozenEndColumnCountChange?: (nextCount: number) => void;
|
|
532
|
+
onSort?: (columnKey: string, column: InteractiveTableColumn) => void;
|
|
533
|
+
}
|
|
534
|
+
interface InteractiveTableEditableTextCellProps {
|
|
535
|
+
value?: string | null;
|
|
536
|
+
placeholder?: string;
|
|
537
|
+
disabled?: boolean;
|
|
538
|
+
multiline?: boolean;
|
|
539
|
+
commitOnBlur?: boolean;
|
|
540
|
+
className?: string;
|
|
541
|
+
inputClassName?: string;
|
|
542
|
+
onCommit?: (value: string) => void | Promise<void>;
|
|
543
|
+
}
|
|
544
|
+
interface InteractiveTableReadonlyCellProps {
|
|
545
|
+
children?: ReactNode;
|
|
546
|
+
mono?: boolean;
|
|
547
|
+
className?: string;
|
|
548
|
+
}
|
|
549
|
+
interface InteractiveTableSelectOption<T extends string = string> {
|
|
550
|
+
value: T;
|
|
551
|
+
label: string;
|
|
552
|
+
}
|
|
553
|
+
interface InteractiveTableSelectCellProps<T extends string = string> {
|
|
554
|
+
value: T;
|
|
555
|
+
options: Array<InteractiveTableSelectOption<T>>;
|
|
556
|
+
disabled?: boolean;
|
|
557
|
+
ariaLabel: string;
|
|
558
|
+
children: ReactNode;
|
|
559
|
+
className?: string;
|
|
560
|
+
onChange?: (nextValue: T) => void;
|
|
561
|
+
}
|
|
562
|
+
declare function InteractiveTable<Row = any, PinnedTopRow = Row>({ rows, columns, pinnedTopRows, getRowKey, getPinnedTopRowKey, renderCell, renderPinnedTopCell, renderColumnHeader, onRowClick, getRowState, rowClassName, pinnedTopRowClassName, emptyState, columnMenuLabels, columnStorageKey, columnOrder, columnSizes, defaultColumnSizes, columnDragEnabled, columnResizeEnabled, frozenColumnCount, frozenEndColumnCount, tableMinWidth, bodyMaxHeight, appearance, className, tableClassName, classNames, style, onColumnOrderChange, onColumnSizeChange, onResetColumnSizes, onFrozenColumnCountChange, onFrozenEndColumnCountChange, onSort, }: InteractiveTableProps<Row, PinnedTopRow>): react_jsx_runtime.JSX.Element;
|
|
563
|
+
declare function InteractiveTableEditableTextCell({ value, placeholder, disabled, multiline, commitOnBlur, className, inputClassName, onCommit, }: InteractiveTableEditableTextCellProps): react_jsx_runtime.JSX.Element;
|
|
564
|
+
declare function InteractiveTableReadonlyCell({ children, mono, className, }: InteractiveTableReadonlyCellProps): react_jsx_runtime.JSX.Element;
|
|
565
|
+
declare function InteractiveTableSelectCell<T extends string = string>({ value, options, disabled, ariaLabel, children, className, onChange, }: InteractiveTableSelectCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
566
|
+
|
|
423
567
|
interface WorkbenchGalleryRecordVisual {
|
|
424
568
|
Icon?: ComponentType<{
|
|
425
569
|
className?: string;
|
|
@@ -558,4 +702,51 @@ interface WorkbenchGalleryViewProps<Row = any> extends Omit<WorkbenchGalleryCard
|
|
|
558
702
|
}
|
|
559
703
|
declare function WorkbenchGalleryView<Row = any>({ rows, columns, onRowClick, selectedLinkKey, selectedRowKey, className, isMasonry, galleryLayoutMode, galleryRailCardWidth, galleryGridColumns, galleryGridCardWidth, galleryMasonryColumnWidth, masonryPlacementStrategy, galleryFieldKey, galleryDensity, galleryBentoColumns, galleryDetailVisibility, galleryDetailLimit, shouldEnhanceMultimodal, getFieldValue, isMediaColumn, isTitleCandidate, isSummaryCandidate, getDisplayText, renderFieldValue, getImagePreviewSrc, isImageField, isAudioField, AudioPlayerComponent, cardVariant, renderPreview, renderMeta, renderLeadingVisual, resolveRecordVisual, hiddenDetailFieldKeys, labels, formatLabel, getMasonryItemSize, }: WorkbenchGalleryViewProps<Row>): react_jsx_runtime.JSX.Element;
|
|
560
704
|
|
|
561
|
-
|
|
705
|
+
interface WorkbenchLaneColumn<ColumnId extends string = string> {
|
|
706
|
+
id: ColumnId;
|
|
707
|
+
label?: ReactNode;
|
|
708
|
+
icon?: ReactNode;
|
|
709
|
+
className?: string;
|
|
710
|
+
headerClassName?: string;
|
|
711
|
+
bodyClassName?: string;
|
|
712
|
+
badgeClassName?: string;
|
|
713
|
+
iconClassName?: string;
|
|
714
|
+
}
|
|
715
|
+
interface WorkbenchLaneClassNames {
|
|
716
|
+
root?: string;
|
|
717
|
+
column?: string;
|
|
718
|
+
columnHeader?: string;
|
|
719
|
+
columnIcon?: string;
|
|
720
|
+
columnBadge?: string;
|
|
721
|
+
columnCount?: string;
|
|
722
|
+
columnBody?: string;
|
|
723
|
+
cardWrapper?: string;
|
|
724
|
+
overlayWrapper?: string;
|
|
725
|
+
emptyColumn?: string;
|
|
726
|
+
}
|
|
727
|
+
interface WorkbenchLaneRenderCardContext<Row = any, ColumnId extends string = string> {
|
|
728
|
+
row: Row;
|
|
729
|
+
rowIndex: number;
|
|
730
|
+
column: WorkbenchLaneColumn<ColumnId>;
|
|
731
|
+
isDragging: boolean;
|
|
732
|
+
isOverlay: boolean;
|
|
733
|
+
}
|
|
734
|
+
interface WorkbenchLaneViewProps<Row = any, ColumnId extends string = string> {
|
|
735
|
+
rows?: Row[];
|
|
736
|
+
columns?: Array<WorkbenchLaneColumn<ColumnId>>;
|
|
737
|
+
getRowId?: (row: Row, rowIndex: number) => string;
|
|
738
|
+
getColumnId?: (row: Row, rowIndex: number) => ColumnId;
|
|
739
|
+
renderCard?: (row: Row, context: WorkbenchLaneRenderCardContext<Row, ColumnId>) => ReactNode;
|
|
740
|
+
renderOverlayCard?: (row: Row, context: WorkbenchLaneRenderCardContext<Row, ColumnId>) => ReactNode;
|
|
741
|
+
onMoveRow?: (rowId: string, nextColumnId: ColumnId, row: Row) => void;
|
|
742
|
+
emptyColumn?: ReactNode;
|
|
743
|
+
activationDistance?: number;
|
|
744
|
+
columnWidth?: number | string;
|
|
745
|
+
columnMinHeight?: number | string;
|
|
746
|
+
className?: string;
|
|
747
|
+
classNames?: WorkbenchLaneClassNames;
|
|
748
|
+
style?: CSSProperties;
|
|
749
|
+
}
|
|
750
|
+
declare function WorkbenchLaneView<Row = any, ColumnId extends string = string>({ rows, columns, getRowId, getColumnId, renderCard, renderOverlayCard, onMoveRow, emptyColumn, activationDistance, columnWidth, columnMinHeight, className, classNames, style, }: WorkbenchLaneViewProps<Row, ColumnId>): react_jsx_runtime.JSX.Element;
|
|
751
|
+
|
|
752
|
+
export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext };
|