@inf-monkeys-tech/monkeys-design 1.0.39 → 1.0.40
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/dist/components/workbench/index.d.mts +24 -3
- package/dist/components/workbench/index.d.ts +24 -3
- package/dist/components/workbench/index.js +189 -230
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +189 -230
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +189 -230
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +189 -230
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as M
|
|
|
7
7
|
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchSidebar, l as AgentWorkbenchSidebarClassNames, m as AgentWorkbenchSidebarIntent, n as AgentWorkbenchSidebarProps, o as AgentWorkbenchTaskDetails, p as AgentWorkbenchTaskDetailsClassNames, q as AgentWorkbenchTaskDetailsProps, r as AgentWorkbenchTerminalModel, s as AgentWorkbenchTool, t as AgentWorkbenchToolClassNames, u as AgentWorkbenchToolProps, v as createAgentWorkbenchActivityModel, w as createAgentWorkbenchDetailsModel } from './details-model-bc28e9593e3f.mjs';
|
|
8
8
|
export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.mjs';
|
|
9
9
|
export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.mjs';
|
|
10
|
-
export { InteractiveTable, InteractiveTableClassNames, InteractiveTableColumn, InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, InteractiveTableEditableTextCellProps, InteractiveTableHeaderContext, InteractiveTableHeaderProps, InteractiveTableProps, InteractiveTableReadonlyCell, InteractiveTableReadonlyCellProps, InteractiveTableRenderContext, InteractiveTableRowState, InteractiveTableSelectCell, InteractiveTableSelectCellProps, InteractiveTableSelectOption, WorkbenchAssetGallery, WorkbenchAssetGalleryItem, WorkbenchAssetGalleryProps, WorkbenchCollection, WorkbenchCollectionActivationEvent, WorkbenchCollectionAppearanceConfig, WorkbenchCollectionCallbacks, WorkbenchCollectionClassNames, WorkbenchCollectionConfig, WorkbenchCollectionGroupContext, WorkbenchCollectionGroupingConfig, WorkbenchCollectionItemContext, WorkbenchCollectionItemSize, WorkbenchCollectionItemSlotName, WorkbenchCollectionItemSlots, WorkbenchCollectionItemStatus, WorkbenchCollectionKey, WorkbenchCollectionLabels, WorkbenchCollectionLayoutConfig, WorkbenchCollectionLayoutContext, WorkbenchCollectionLayoutMode, WorkbenchCollectionLayoutSnapshot, WorkbenchCollectionLoadingConfig, WorkbenchCollectionProps, WorkbenchCollectionResponsive, WorkbenchCollectionSelectionBehavior, WorkbenchCollectionSelectionConfig, WorkbenchCollectionSelectionMode, WorkbenchCollectionSlotContext, WorkbenchCollectionSlots, WorkbenchCollectionStateConfig, WorkbenchCollectionVirtualizationAdapter, WorkbenchCollectionVirtualizationConfig, WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, WorkbenchContentPaneBodyProps, WorkbenchContentPaneClassNames, WorkbenchContentPaneProps, WorkbenchContentToolbar, WorkbenchContentToolbarClassNames, WorkbenchContentToolbarProps, WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, WorkbenchDetailSidebarBodyProps, WorkbenchDetailSidebarClassNames, WorkbenchDetailSidebarField, WorkbenchDetailSidebarProps, WorkbenchDetailSidebarRenderContext, WorkbenchDetailSidebarSection, WorkbenchEvidenceItem, WorkbenchEvidenceList, WorkbenchEvidenceListProps, WorkbenchGalleryCard, WorkbenchGalleryCardMetaContext, WorkbenchGalleryCardProps, WorkbenchGalleryCardRenderContext, WorkbenchGalleryColumn, WorkbenchGalleryLabels, WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsButtonClassNames, WorkbenchGallerySettingsButtonProps, WorkbenchGallerySettingsLabels, WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, WorkbenchGallerySettingsPanelClassNames, WorkbenchGallerySettingsPanelProps, WorkbenchGallerySettingsValue, WorkbenchGalleryView, WorkbenchGalleryViewProps, WorkbenchJourneyItem, WorkbenchJourneyItemState, WorkbenchJourneyNavigation, WorkbenchJourneyNavigationProps, WorkbenchLaneClassNames, WorkbenchLaneColumn, WorkbenchLaneRenderCardContext, WorkbenchLaneView, WorkbenchLaneViewProps, WorkbenchMasonryItemSize, WorkbenchMasonryLayout, WorkbenchMasonryLayoutContext, WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, WorkbenchMetricGridDensity, WorkbenchMetricGridProps, WorkbenchMetricGridVariant, WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarLegendItem, WorkbenchRadarMatrix, WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, WorkbenchRadarNavigationChild, WorkbenchRadarNavigationItem, WorkbenchRadarNavigationProps, WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, WorkbenchRadarWorkspaceProps, WorkbenchRankedList, WorkbenchRankedListItem, WorkbenchRankedListMetric, WorkbenchRankedListProps, WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, WorkbenchRelationshipGraphProps, WorkbenchRelationshipNode, WorkbenchResizableSidebar, WorkbenchResizableSidebarClassNames, WorkbenchResizableSidebarItem, WorkbenchResizableSidebarProps, WorkbenchResizableSidebarSection, WorkbenchScatterAxis, WorkbenchScatterPlot, WorkbenchScatterPlotProps, WorkbenchScatterPoint, WorkbenchScatterThresholds, WorkbenchSelectionTray, WorkbenchSelectionTrayItem, WorkbenchSelectionTrayProps, WorkbenchTableView, WorkbenchTableViewClassNames, WorkbenchTableViewColumn, WorkbenchTableViewHeaderContext, WorkbenchTableViewProps, WorkbenchTableViewRenderContext, WorkbenchVisualizationTone } from './components/workbench/index.mjs';
|
|
10
|
+
export { InteractiveTable, InteractiveTableClassNames, InteractiveTableColumn, InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, InteractiveTableEditableTextCellProps, InteractiveTableHeaderContext, InteractiveTableHeaderProps, InteractiveTableProps, InteractiveTableReadonlyCell, InteractiveTableReadonlyCellProps, InteractiveTableRenderContext, InteractiveTableRowState, InteractiveTableSelectCell, InteractiveTableSelectCellProps, InteractiveTableSelectOption, WorkbenchAssetGallery, WorkbenchAssetGalleryItem, WorkbenchAssetGalleryProps, WorkbenchCollection, WorkbenchCollectionActivationEvent, WorkbenchCollectionAppearanceConfig, WorkbenchCollectionCallbacks, WorkbenchCollectionClassNames, WorkbenchCollectionConfig, WorkbenchCollectionGroupContext, WorkbenchCollectionGroupingConfig, WorkbenchCollectionHoverEffect, WorkbenchCollectionItemConfig, WorkbenchCollectionItemContext, WorkbenchCollectionItemSize, WorkbenchCollectionItemSlotName, WorkbenchCollectionItemSlots, WorkbenchCollectionItemStatus, WorkbenchCollectionItemTitleConfig, WorkbenchCollectionKey, WorkbenchCollectionLabels, WorkbenchCollectionLayoutConfig, WorkbenchCollectionLayoutContext, WorkbenchCollectionLayoutMode, WorkbenchCollectionLayoutSnapshot, WorkbenchCollectionLoadingConfig, WorkbenchCollectionProps, WorkbenchCollectionResponsive, WorkbenchCollectionSelectionBehavior, WorkbenchCollectionSelectionConfig, WorkbenchCollectionSelectionMode, WorkbenchCollectionSlotContext, WorkbenchCollectionSlots, WorkbenchCollectionStateConfig, WorkbenchCollectionTitlePlacement, WorkbenchCollectionTitleVisibility, WorkbenchCollectionVirtualizationAdapter, WorkbenchCollectionVirtualizationConfig, WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, WorkbenchContentPaneBodyProps, WorkbenchContentPaneClassNames, WorkbenchContentPaneProps, WorkbenchContentToolbar, WorkbenchContentToolbarClassNames, WorkbenchContentToolbarProps, WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, WorkbenchDetailSidebarBodyProps, WorkbenchDetailSidebarClassNames, WorkbenchDetailSidebarField, WorkbenchDetailSidebarProps, WorkbenchDetailSidebarRenderContext, WorkbenchDetailSidebarSection, WorkbenchEvidenceItem, WorkbenchEvidenceList, WorkbenchEvidenceListProps, WorkbenchGalleryCard, WorkbenchGalleryCardMetaContext, WorkbenchGalleryCardProps, WorkbenchGalleryCardRenderContext, WorkbenchGalleryColumn, WorkbenchGalleryLabels, WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsButtonClassNames, WorkbenchGallerySettingsButtonProps, WorkbenchGallerySettingsLabels, WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, WorkbenchGallerySettingsPanelClassNames, WorkbenchGallerySettingsPanelProps, WorkbenchGallerySettingsValue, WorkbenchGalleryView, WorkbenchGalleryViewProps, WorkbenchJourneyItem, WorkbenchJourneyItemState, WorkbenchJourneyNavigation, WorkbenchJourneyNavigationProps, WorkbenchLaneClassNames, WorkbenchLaneColumn, WorkbenchLaneRenderCardContext, WorkbenchLaneView, WorkbenchLaneViewProps, WorkbenchMasonryItemSize, WorkbenchMasonryLayout, WorkbenchMasonryLayoutContext, WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, WorkbenchMetricGridDensity, WorkbenchMetricGridProps, WorkbenchMetricGridVariant, WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarLegendItem, WorkbenchRadarMatrix, WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, WorkbenchRadarNavigationChild, WorkbenchRadarNavigationItem, WorkbenchRadarNavigationProps, WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, WorkbenchRadarWorkspaceProps, WorkbenchRankedList, WorkbenchRankedListItem, WorkbenchRankedListMetric, WorkbenchRankedListProps, WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, WorkbenchRelationshipGraphProps, WorkbenchRelationshipNode, WorkbenchResizableSidebar, WorkbenchResizableSidebarClassNames, WorkbenchResizableSidebarItem, WorkbenchResizableSidebarProps, WorkbenchResizableSidebarSection, WorkbenchScatterAxis, WorkbenchScatterPlot, WorkbenchScatterPlotProps, WorkbenchScatterPoint, WorkbenchScatterThresholds, WorkbenchSelectionTray, WorkbenchSelectionTrayItem, WorkbenchSelectionTrayProps, WorkbenchTableView, WorkbenchTableViewClassNames, WorkbenchTableViewColumn, WorkbenchTableViewHeaderContext, WorkbenchTableViewProps, WorkbenchTableViewRenderContext, WorkbenchVisualizationTone } from './components/workbench/index.mjs';
|
|
11
11
|
export { MonkeysToastApi, MonkeysToastProvider, MonkeysToastProviderProps, MonkeysToaster, MonkeysToasterProps, ToastInput, MonkeysToastProvider as ToastProvider, ToastVariant, MonkeysToaster as Toaster, extractToastMessage, resolveToastVariantForMessage, toast, useToastFeed, useToastOnValue } from './components/toast/index.mjs';
|
|
12
12
|
export { B as BaseAccordion, a as BaseAspectRatio, b as BaseAvatar, c as BaseBadge, d as BaseBreadcrumb, e as BaseButton, f as BaseCheckbox, g as BaseCode, h as BaseContainer, i as BaseContextMenu, j as BaseContextMenuCheckboxItem, k as BaseContextMenuContent, l as BaseContextMenuItem, m as BaseContextMenuLabel, n as BaseContextMenuRadioGroup, o as BaseContextMenuRadioItem, p as BaseContextMenuSeparator, q as BaseContextMenuSub, r as BaseContextMenuSubContent, s as BaseContextMenuSubTrigger, t as BaseContextMenuTrigger, u as BaseDescriptionList, v as BaseDialog, w as BaseDivider, x as BaseDropdownMenu, y as BaseEmptyState, z as BaseField, A as BaseFieldset, C as BaseGrid, D as BaseHeading, E as BaseInline, F as BaseInput, G as BaseInputGroup, H as BaseKbd, I as BaseLayout, J as BaseLayoutPane, K as BaseLayoutResizeHandle, L as BaseLayoutSplit, M as BaseLink, N as BaseList, O as BaseListItem, P as BaseLoadingState, Q as BaseMultiSelect, R as BaseNotice, S as BaseNumberInput, T as BasePagination, U as BasePanel, V as BasePasswordInput, W as BasePortal, X as BaseProgress, Y as BaseRadioGroup, Z as BaseScrollArea, _ as BaseSectionHeader, $ as BaseSegmentedControl, a0 as BaseSelect, a1 as BaseSkeleton, a2 as BaseSpinner, a3 as BaseStack, a4 as BaseSteps, a5 as BaseSwitch, a6 as BaseTable, a7 as BaseTableBody, a8 as BaseTableCaption, a9 as BaseTableCell, aa as BaseTableContainer, ab as BaseTableEmpty, ac as BaseTableFooter, ad as BaseTableFooterBar, ae as BaseTableHead, af as BaseTableHeader, ag as BaseTableLoading, ah as BaseTableRow, ai as BaseTabs, aj as BaseText, ak as BaseTextarea, al as BaseToolbar, am as BaseTooltip, an as BaseVisuallyHidden, ao as getBaseBadgeToneClassName, ap as getBaseButtonToneClassName, aq as getBaseMenuItemToneClassName, ar as getBaseNoticeToneClassName, as as resolveBaseAppearance } from './theme-7bf5602208e8.mjs';
|
|
13
13
|
export { B as BaseAccordionClassNames, a as BaseAccordionItem, b as BaseAccordionProps, c as BaseAppearance, d as BaseAspectRatioClassNames, e as BaseAspectRatioProps, f as BaseAvatarClassNames, g as BaseAvatarProps, h as BaseBackground, i as BaseBadgeClassNames, j as BaseBadgeProps, k as BaseBorder, l as BaseBreadcrumbClassNames, m as BaseBreadcrumbItem, n as BaseBreadcrumbProps, o as BaseButtonClassNames, p as BaseButtonProps, q as BaseCheckboxClassNames, r as BaseCheckboxProps, s as BaseCodeClassNames, t as BaseCodeDisplay, u as BaseCodeProps, v as BaseComponentState, w as BaseContainerClassNames, x as BaseContainerProps, y as BaseContextMenuCheckboxItemProps, z as BaseContextMenuClassNames, A as BaseContextMenuContentClassNames, C as BaseContextMenuContentProps, D as BaseContextMenuItemClassNames, E as BaseContextMenuItemProps, F as BaseContextMenuLabelProps, G as BaseContextMenuProps, H as BaseContextMenuRadioGroupProps, I as BaseContextMenuRadioItemProps, J as BaseContextMenuSeparatorProps, K as BaseContextMenuSubContentProps, L as BaseContextMenuSubProps, M as BaseContextMenuSubTriggerProps, N as BaseContextMenuTriggerProps, O as BaseControlClassNames, P as BaseControlSize, Q as BaseControlTone, R as BaseDensity, S as BaseDescriptionListClassNames, T as BaseDescriptionListItem, U as BaseDescriptionListProps, V as BaseDialogClassNames, W as BaseDialogProps, X as BaseDividerClassNames, Y as BaseDividerProps, Z as BaseDropdownMenuClassNames, _ as BaseDropdownMenuItem, $ as BaseDropdownMenuPlacement, a0 as BaseDropdownMenuProps, a1 as BaseEmptyStateProps, a2 as BaseFieldClassNames, a3 as BaseFieldControlProps, a4 as BaseFieldProps, a5 as BaseFieldValidate, a6 as BaseFieldValidationMode, a7 as BaseFieldValidationResult, a8 as BaseFieldsetClassNames, a9 as BaseFieldsetProps, aa as BaseGridClassNames, ab as BaseGridColumns, ac as BaseGridProps, ad as BaseHeadingClassNames, ae as BaseHeadingLevel, af as BaseHeadingProps, ag as BaseHeadingSize, ah as BaseInlineClassNames, ai as BaseInlineProps, aj as BaseInputGroupClassNames, ak as BaseInputGroupProps, al as BaseInputProps, am as BaseKbdClassNames, an as BaseKbdProps, ao as BaseLayoutAlign, ap as BaseLayoutClassNames, aq as BaseLayoutGap, ar as BaseLayoutJustify, as as BaseLayoutLength, at as BaseLayoutOrientation, au as BaseLayoutPaneClassNames, av as BaseLayoutPaneProps, aw as BaseLayoutPaneSurface, ax as BaseLayoutProps, ay as BaseLayoutResizeHandleClassNames, az as BaseLayoutResizeHandleProps, aA as BaseLayoutSize, aB as BaseLayoutSplitClassNames, aC as BaseLayoutSplitProps, aD as BaseLinkClassNames, aE as BaseLinkProps, aF as BaseListClassNames, aG as BaseListItemClassNames, aH as BaseListItemProps, aI as BaseListMarker, aJ as BaseListProps, aK as BaseListSpacing, aL as BaseLoadingStateProps, aM as BaseMultiSelectClassNames, aN as BaseMultiSelectOption, aO as BaseMultiSelectProps, aP as BaseNoticeClassNames, aQ as BaseNoticeProps, aR as BaseNumberInputChangeReason, aS as BaseNumberInputClassNames, aT as BaseNumberInputProps, aU as BaseNumberInputValueChangeDetails, aV as BasePaginationClassNames, aW as BasePaginationProps, aX as BasePanelClassNames, aY as BasePanelProps, aZ as BasePasswordInputClassNames, a_ as BasePasswordInputProps, a$ as BasePortalContainer, b0 as BasePortalProps, b1 as BaseProgressClassNames, b2 as BaseProgressProps, b3 as BaseRadioGroupClassNames, b4 as BaseRadioGroupProps, b5 as BaseRadioOption, b6 as BaseRadius, b7 as BaseResolvedTheme, b8 as BaseScrollAreaAxis, b9 as BaseScrollAreaClassNames, ba as BaseScrollAreaProps, bb as BaseSectionHeaderClassNames, bc as BaseSectionHeaderProps, bd as BaseSegmentedControlClassNames, be as BaseSegmentedControlOption, bf as BaseSegmentedControlProps, bg as BaseSelectOption, bh as BaseSelectProps, bi as BaseSkeletonClassNames, bj as BaseSkeletonProps, bk as BaseSpinnerClassNames, bl as BaseSpinnerProps, bm as BaseStackClassNames, bn as BaseStackProps, bo as BaseStateClassNames, bp as BaseStepItem, bq as BaseStepStatus, br as BaseStepsClassNames, bs as BaseStepsProps, bt as BaseStepsStatusLabels, bu as BaseSwitchClassNames, bv as BaseSwitchProps, bw as BaseTableAlign, bx as BaseTableBodyProps, by as BaseTableCaptionClassNames, bz as BaseTableCaptionProps, bA as BaseTableCellClassNames, bB as BaseTableCellProps, bC as BaseTableClassNames, bD as BaseTableColumnDefinition, bE as BaseTableColumnInteractionOptions, bF as BaseTableColumnOrderChangeDetail, bG as BaseTableColumnSizeChangeDetail, bH as BaseTableColumnSizes, bI as BaseTableContainerClassNames, bJ as BaseTableContainerProps, bK as BaseTableEmptyClassNames, bL as BaseTableEmptyProps, bM as BaseTableFooterBarClassNames, bN as BaseTableFooterBarProps, bO as BaseTableFooterProps, bP as BaseTableHeadClassNames, bQ as BaseTableHeadProps, bR as BaseTableHeaderProps, bS as BaseTableLayout, bT as BaseTableLoadingClassNames, bU as BaseTableLoadingProps, bV as BaseTableProps, bW as BaseTableRowClassNames, bX as BaseTableRowProps, bY as BaseTableSectionClassNames, bZ as BaseTableSortDirection, b_ as BaseTableVerticalAlign, b$ as BaseTabsClassNames, c0 as BaseTabsItem, c1 as BaseTabsProps, c2 as BaseTextClassNames, c3 as BaseTextProps, c4 as BaseTextareaProps, c5 as BaseThemePresetId, c6 as BaseThemeSlots, c7 as BaseThemeStyles, c8 as BaseToolbarClassNames, c9 as BaseToolbarProps, ca as BaseTooltipClassNames, cb as BaseTooltipPlacement, cc as BaseTooltipProps, cd as BaseTypographySize, ce as BaseTypographyTone, cf as BaseVariant, cg as BaseVisuallyHiddenClassNames, ch as BaseVisuallyHiddenProps } from './types-3c51850d34c1.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as M
|
|
|
7
7
|
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchSidebar, l as AgentWorkbenchSidebarClassNames, m as AgentWorkbenchSidebarIntent, n as AgentWorkbenchSidebarProps, o as AgentWorkbenchTaskDetails, p as AgentWorkbenchTaskDetailsClassNames, q as AgentWorkbenchTaskDetailsProps, r as AgentWorkbenchTerminalModel, s as AgentWorkbenchTool, t as AgentWorkbenchToolClassNames, u as AgentWorkbenchToolProps, v as createAgentWorkbenchActivityModel, w as createAgentWorkbenchDetailsModel } from './details-model-bc28e9593e3f.js';
|
|
8
8
|
export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.js';
|
|
9
9
|
export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.js';
|
|
10
|
-
export { InteractiveTable, InteractiveTableClassNames, InteractiveTableColumn, InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, InteractiveTableEditableTextCellProps, InteractiveTableHeaderContext, InteractiveTableHeaderProps, InteractiveTableProps, InteractiveTableReadonlyCell, InteractiveTableReadonlyCellProps, InteractiveTableRenderContext, InteractiveTableRowState, InteractiveTableSelectCell, InteractiveTableSelectCellProps, InteractiveTableSelectOption, WorkbenchAssetGallery, WorkbenchAssetGalleryItem, WorkbenchAssetGalleryProps, WorkbenchCollection, WorkbenchCollectionActivationEvent, WorkbenchCollectionAppearanceConfig, WorkbenchCollectionCallbacks, WorkbenchCollectionClassNames, WorkbenchCollectionConfig, WorkbenchCollectionGroupContext, WorkbenchCollectionGroupingConfig, WorkbenchCollectionItemContext, WorkbenchCollectionItemSize, WorkbenchCollectionItemSlotName, WorkbenchCollectionItemSlots, WorkbenchCollectionItemStatus, WorkbenchCollectionKey, WorkbenchCollectionLabels, WorkbenchCollectionLayoutConfig, WorkbenchCollectionLayoutContext, WorkbenchCollectionLayoutMode, WorkbenchCollectionLayoutSnapshot, WorkbenchCollectionLoadingConfig, WorkbenchCollectionProps, WorkbenchCollectionResponsive, WorkbenchCollectionSelectionBehavior, WorkbenchCollectionSelectionConfig, WorkbenchCollectionSelectionMode, WorkbenchCollectionSlotContext, WorkbenchCollectionSlots, WorkbenchCollectionStateConfig, WorkbenchCollectionVirtualizationAdapter, WorkbenchCollectionVirtualizationConfig, WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, WorkbenchContentPaneBodyProps, WorkbenchContentPaneClassNames, WorkbenchContentPaneProps, WorkbenchContentToolbar, WorkbenchContentToolbarClassNames, WorkbenchContentToolbarProps, WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, WorkbenchDetailSidebarBodyProps, WorkbenchDetailSidebarClassNames, WorkbenchDetailSidebarField, WorkbenchDetailSidebarProps, WorkbenchDetailSidebarRenderContext, WorkbenchDetailSidebarSection, WorkbenchEvidenceItem, WorkbenchEvidenceList, WorkbenchEvidenceListProps, WorkbenchGalleryCard, WorkbenchGalleryCardMetaContext, WorkbenchGalleryCardProps, WorkbenchGalleryCardRenderContext, WorkbenchGalleryColumn, WorkbenchGalleryLabels, WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsButtonClassNames, WorkbenchGallerySettingsButtonProps, WorkbenchGallerySettingsLabels, WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, WorkbenchGallerySettingsPanelClassNames, WorkbenchGallerySettingsPanelProps, WorkbenchGallerySettingsValue, WorkbenchGalleryView, WorkbenchGalleryViewProps, WorkbenchJourneyItem, WorkbenchJourneyItemState, WorkbenchJourneyNavigation, WorkbenchJourneyNavigationProps, WorkbenchLaneClassNames, WorkbenchLaneColumn, WorkbenchLaneRenderCardContext, WorkbenchLaneView, WorkbenchLaneViewProps, WorkbenchMasonryItemSize, WorkbenchMasonryLayout, WorkbenchMasonryLayoutContext, WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, WorkbenchMetricGridDensity, WorkbenchMetricGridProps, WorkbenchMetricGridVariant, WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarLegendItem, WorkbenchRadarMatrix, WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, WorkbenchRadarNavigationChild, WorkbenchRadarNavigationItem, WorkbenchRadarNavigationProps, WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, WorkbenchRadarWorkspaceProps, WorkbenchRankedList, WorkbenchRankedListItem, WorkbenchRankedListMetric, WorkbenchRankedListProps, WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, WorkbenchRelationshipGraphProps, WorkbenchRelationshipNode, WorkbenchResizableSidebar, WorkbenchResizableSidebarClassNames, WorkbenchResizableSidebarItem, WorkbenchResizableSidebarProps, WorkbenchResizableSidebarSection, WorkbenchScatterAxis, WorkbenchScatterPlot, WorkbenchScatterPlotProps, WorkbenchScatterPoint, WorkbenchScatterThresholds, WorkbenchSelectionTray, WorkbenchSelectionTrayItem, WorkbenchSelectionTrayProps, WorkbenchTableView, WorkbenchTableViewClassNames, WorkbenchTableViewColumn, WorkbenchTableViewHeaderContext, WorkbenchTableViewProps, WorkbenchTableViewRenderContext, WorkbenchVisualizationTone } from './components/workbench/index.js';
|
|
10
|
+
export { InteractiveTable, InteractiveTableClassNames, InteractiveTableColumn, InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, InteractiveTableEditableTextCellProps, InteractiveTableHeaderContext, InteractiveTableHeaderProps, InteractiveTableProps, InteractiveTableReadonlyCell, InteractiveTableReadonlyCellProps, InteractiveTableRenderContext, InteractiveTableRowState, InteractiveTableSelectCell, InteractiveTableSelectCellProps, InteractiveTableSelectOption, WorkbenchAssetGallery, WorkbenchAssetGalleryItem, WorkbenchAssetGalleryProps, WorkbenchCollection, WorkbenchCollectionActivationEvent, WorkbenchCollectionAppearanceConfig, WorkbenchCollectionCallbacks, WorkbenchCollectionClassNames, WorkbenchCollectionConfig, WorkbenchCollectionGroupContext, WorkbenchCollectionGroupingConfig, WorkbenchCollectionHoverEffect, WorkbenchCollectionItemConfig, WorkbenchCollectionItemContext, WorkbenchCollectionItemSize, WorkbenchCollectionItemSlotName, WorkbenchCollectionItemSlots, WorkbenchCollectionItemStatus, WorkbenchCollectionItemTitleConfig, WorkbenchCollectionKey, WorkbenchCollectionLabels, WorkbenchCollectionLayoutConfig, WorkbenchCollectionLayoutContext, WorkbenchCollectionLayoutMode, WorkbenchCollectionLayoutSnapshot, WorkbenchCollectionLoadingConfig, WorkbenchCollectionProps, WorkbenchCollectionResponsive, WorkbenchCollectionSelectionBehavior, WorkbenchCollectionSelectionConfig, WorkbenchCollectionSelectionMode, WorkbenchCollectionSlotContext, WorkbenchCollectionSlots, WorkbenchCollectionStateConfig, WorkbenchCollectionTitlePlacement, WorkbenchCollectionTitleVisibility, WorkbenchCollectionVirtualizationAdapter, WorkbenchCollectionVirtualizationConfig, WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, WorkbenchContentPaneBodyProps, WorkbenchContentPaneClassNames, WorkbenchContentPaneProps, WorkbenchContentToolbar, WorkbenchContentToolbarClassNames, WorkbenchContentToolbarProps, WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, WorkbenchDetailSidebarBodyProps, WorkbenchDetailSidebarClassNames, WorkbenchDetailSidebarField, WorkbenchDetailSidebarProps, WorkbenchDetailSidebarRenderContext, WorkbenchDetailSidebarSection, WorkbenchEvidenceItem, WorkbenchEvidenceList, WorkbenchEvidenceListProps, WorkbenchGalleryCard, WorkbenchGalleryCardMetaContext, WorkbenchGalleryCardProps, WorkbenchGalleryCardRenderContext, WorkbenchGalleryColumn, WorkbenchGalleryLabels, WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsButtonClassNames, WorkbenchGallerySettingsButtonProps, WorkbenchGallerySettingsLabels, WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, WorkbenchGallerySettingsPanelClassNames, WorkbenchGallerySettingsPanelProps, WorkbenchGallerySettingsValue, WorkbenchGalleryView, WorkbenchGalleryViewProps, WorkbenchJourneyItem, WorkbenchJourneyItemState, WorkbenchJourneyNavigation, WorkbenchJourneyNavigationProps, WorkbenchLaneClassNames, WorkbenchLaneColumn, WorkbenchLaneRenderCardContext, WorkbenchLaneView, WorkbenchLaneViewProps, WorkbenchMasonryItemSize, WorkbenchMasonryLayout, WorkbenchMasonryLayoutContext, WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, WorkbenchMetricGridDensity, WorkbenchMetricGridProps, WorkbenchMetricGridVariant, WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarLegendItem, WorkbenchRadarMatrix, WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, WorkbenchRadarNavigationChild, WorkbenchRadarNavigationItem, WorkbenchRadarNavigationProps, WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, WorkbenchRadarWorkspaceProps, WorkbenchRankedList, WorkbenchRankedListItem, WorkbenchRankedListMetric, WorkbenchRankedListProps, WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, WorkbenchRelationshipGraphProps, WorkbenchRelationshipNode, WorkbenchResizableSidebar, WorkbenchResizableSidebarClassNames, WorkbenchResizableSidebarItem, WorkbenchResizableSidebarProps, WorkbenchResizableSidebarSection, WorkbenchScatterAxis, WorkbenchScatterPlot, WorkbenchScatterPlotProps, WorkbenchScatterPoint, WorkbenchScatterThresholds, WorkbenchSelectionTray, WorkbenchSelectionTrayItem, WorkbenchSelectionTrayProps, WorkbenchTableView, WorkbenchTableViewClassNames, WorkbenchTableViewColumn, WorkbenchTableViewHeaderContext, WorkbenchTableViewProps, WorkbenchTableViewRenderContext, WorkbenchVisualizationTone } from './components/workbench/index.js';
|
|
11
11
|
export { MonkeysToastApi, MonkeysToastProvider, MonkeysToastProviderProps, MonkeysToaster, MonkeysToasterProps, ToastInput, MonkeysToastProvider as ToastProvider, ToastVariant, MonkeysToaster as Toaster, extractToastMessage, resolveToastVariantForMessage, toast, useToastFeed, useToastOnValue } from './components/toast/index.js';
|
|
12
12
|
export { B as BaseAccordion, a as BaseAspectRatio, b as BaseAvatar, c as BaseBadge, d as BaseBreadcrumb, e as BaseButton, f as BaseCheckbox, g as BaseCode, h as BaseContainer, i as BaseContextMenu, j as BaseContextMenuCheckboxItem, k as BaseContextMenuContent, l as BaseContextMenuItem, m as BaseContextMenuLabel, n as BaseContextMenuRadioGroup, o as BaseContextMenuRadioItem, p as BaseContextMenuSeparator, q as BaseContextMenuSub, r as BaseContextMenuSubContent, s as BaseContextMenuSubTrigger, t as BaseContextMenuTrigger, u as BaseDescriptionList, v as BaseDialog, w as BaseDivider, x as BaseDropdownMenu, y as BaseEmptyState, z as BaseField, A as BaseFieldset, C as BaseGrid, D as BaseHeading, E as BaseInline, F as BaseInput, G as BaseInputGroup, H as BaseKbd, I as BaseLayout, J as BaseLayoutPane, K as BaseLayoutResizeHandle, L as BaseLayoutSplit, M as BaseLink, N as BaseList, O as BaseListItem, P as BaseLoadingState, Q as BaseMultiSelect, R as BaseNotice, S as BaseNumberInput, T as BasePagination, U as BasePanel, V as BasePasswordInput, W as BasePortal, X as BaseProgress, Y as BaseRadioGroup, Z as BaseScrollArea, _ as BaseSectionHeader, $ as BaseSegmentedControl, a0 as BaseSelect, a1 as BaseSkeleton, a2 as BaseSpinner, a3 as BaseStack, a4 as BaseSteps, a5 as BaseSwitch, a6 as BaseTable, a7 as BaseTableBody, a8 as BaseTableCaption, a9 as BaseTableCell, aa as BaseTableContainer, ab as BaseTableEmpty, ac as BaseTableFooter, ad as BaseTableFooterBar, ae as BaseTableHead, af as BaseTableHeader, ag as BaseTableLoading, ah as BaseTableRow, ai as BaseTabs, aj as BaseText, ak as BaseTextarea, al as BaseToolbar, am as BaseTooltip, an as BaseVisuallyHidden, ao as getBaseBadgeToneClassName, ap as getBaseButtonToneClassName, aq as getBaseMenuItemToneClassName, ar as getBaseNoticeToneClassName, as as resolveBaseAppearance } from './theme-61b15c3b7960.js';
|
|
13
13
|
export { B as BaseAccordionClassNames, a as BaseAccordionItem, b as BaseAccordionProps, c as BaseAppearance, d as BaseAspectRatioClassNames, e as BaseAspectRatioProps, f as BaseAvatarClassNames, g as BaseAvatarProps, h as BaseBackground, i as BaseBadgeClassNames, j as BaseBadgeProps, k as BaseBorder, l as BaseBreadcrumbClassNames, m as BaseBreadcrumbItem, n as BaseBreadcrumbProps, o as BaseButtonClassNames, p as BaseButtonProps, q as BaseCheckboxClassNames, r as BaseCheckboxProps, s as BaseCodeClassNames, t as BaseCodeDisplay, u as BaseCodeProps, v as BaseComponentState, w as BaseContainerClassNames, x as BaseContainerProps, y as BaseContextMenuCheckboxItemProps, z as BaseContextMenuClassNames, A as BaseContextMenuContentClassNames, C as BaseContextMenuContentProps, D as BaseContextMenuItemClassNames, E as BaseContextMenuItemProps, F as BaseContextMenuLabelProps, G as BaseContextMenuProps, H as BaseContextMenuRadioGroupProps, I as BaseContextMenuRadioItemProps, J as BaseContextMenuSeparatorProps, K as BaseContextMenuSubContentProps, L as BaseContextMenuSubProps, M as BaseContextMenuSubTriggerProps, N as BaseContextMenuTriggerProps, O as BaseControlClassNames, P as BaseControlSize, Q as BaseControlTone, R as BaseDensity, S as BaseDescriptionListClassNames, T as BaseDescriptionListItem, U as BaseDescriptionListProps, V as BaseDialogClassNames, W as BaseDialogProps, X as BaseDividerClassNames, Y as BaseDividerProps, Z as BaseDropdownMenuClassNames, _ as BaseDropdownMenuItem, $ as BaseDropdownMenuPlacement, a0 as BaseDropdownMenuProps, a1 as BaseEmptyStateProps, a2 as BaseFieldClassNames, a3 as BaseFieldControlProps, a4 as BaseFieldProps, a5 as BaseFieldValidate, a6 as BaseFieldValidationMode, a7 as BaseFieldValidationResult, a8 as BaseFieldsetClassNames, a9 as BaseFieldsetProps, aa as BaseGridClassNames, ab as BaseGridColumns, ac as BaseGridProps, ad as BaseHeadingClassNames, ae as BaseHeadingLevel, af as BaseHeadingProps, ag as BaseHeadingSize, ah as BaseInlineClassNames, ai as BaseInlineProps, aj as BaseInputGroupClassNames, ak as BaseInputGroupProps, al as BaseInputProps, am as BaseKbdClassNames, an as BaseKbdProps, ao as BaseLayoutAlign, ap as BaseLayoutClassNames, aq as BaseLayoutGap, ar as BaseLayoutJustify, as as BaseLayoutLength, at as BaseLayoutOrientation, au as BaseLayoutPaneClassNames, av as BaseLayoutPaneProps, aw as BaseLayoutPaneSurface, ax as BaseLayoutProps, ay as BaseLayoutResizeHandleClassNames, az as BaseLayoutResizeHandleProps, aA as BaseLayoutSize, aB as BaseLayoutSplitClassNames, aC as BaseLayoutSplitProps, aD as BaseLinkClassNames, aE as BaseLinkProps, aF as BaseListClassNames, aG as BaseListItemClassNames, aH as BaseListItemProps, aI as BaseListMarker, aJ as BaseListProps, aK as BaseListSpacing, aL as BaseLoadingStateProps, aM as BaseMultiSelectClassNames, aN as BaseMultiSelectOption, aO as BaseMultiSelectProps, aP as BaseNoticeClassNames, aQ as BaseNoticeProps, aR as BaseNumberInputChangeReason, aS as BaseNumberInputClassNames, aT as BaseNumberInputProps, aU as BaseNumberInputValueChangeDetails, aV as BasePaginationClassNames, aW as BasePaginationProps, aX as BasePanelClassNames, aY as BasePanelProps, aZ as BasePasswordInputClassNames, a_ as BasePasswordInputProps, a$ as BasePortalContainer, b0 as BasePortalProps, b1 as BaseProgressClassNames, b2 as BaseProgressProps, b3 as BaseRadioGroupClassNames, b4 as BaseRadioGroupProps, b5 as BaseRadioOption, b6 as BaseRadius, b7 as BaseResolvedTheme, b8 as BaseScrollAreaAxis, b9 as BaseScrollAreaClassNames, ba as BaseScrollAreaProps, bb as BaseSectionHeaderClassNames, bc as BaseSectionHeaderProps, bd as BaseSegmentedControlClassNames, be as BaseSegmentedControlOption, bf as BaseSegmentedControlProps, bg as BaseSelectOption, bh as BaseSelectProps, bi as BaseSkeletonClassNames, bj as BaseSkeletonProps, bk as BaseSpinnerClassNames, bl as BaseSpinnerProps, bm as BaseStackClassNames, bn as BaseStackProps, bo as BaseStateClassNames, bp as BaseStepItem, bq as BaseStepStatus, br as BaseStepsClassNames, bs as BaseStepsProps, bt as BaseStepsStatusLabels, bu as BaseSwitchClassNames, bv as BaseSwitchProps, bw as BaseTableAlign, bx as BaseTableBodyProps, by as BaseTableCaptionClassNames, bz as BaseTableCaptionProps, bA as BaseTableCellClassNames, bB as BaseTableCellProps, bC as BaseTableClassNames, bD as BaseTableColumnDefinition, bE as BaseTableColumnInteractionOptions, bF as BaseTableColumnOrderChangeDetail, bG as BaseTableColumnSizeChangeDetail, bH as BaseTableColumnSizes, bI as BaseTableContainerClassNames, bJ as BaseTableContainerProps, bK as BaseTableEmptyClassNames, bL as BaseTableEmptyProps, bM as BaseTableFooterBarClassNames, bN as BaseTableFooterBarProps, bO as BaseTableFooterProps, bP as BaseTableHeadClassNames, bQ as BaseTableHeadProps, bR as BaseTableHeaderProps, bS as BaseTableLayout, bT as BaseTableLoadingClassNames, bU as BaseTableLoadingProps, bV as BaseTableProps, bW as BaseTableRowClassNames, bX as BaseTableRowProps, bY as BaseTableSectionClassNames, bZ as BaseTableSortDirection, b_ as BaseTableVerticalAlign, b$ as BaseTabsClassNames, c0 as BaseTabsItem, c1 as BaseTabsProps, c2 as BaseTextClassNames, c3 as BaseTextProps, c4 as BaseTextareaProps, c5 as BaseThemePresetId, c6 as BaseThemeSlots, c7 as BaseThemeStyles, c8 as BaseToolbarClassNames, c9 as BaseToolbarProps, ca as BaseTooltipClassNames, cb as BaseTooltipPlacement, cc as BaseTooltipProps, cd as BaseTypographySize, ce as BaseTypographyTone, cf as BaseVariant, cg as BaseVisuallyHiddenClassNames, ch as BaseVisuallyHiddenProps } from './types-3c51850d34c1.js';
|
package/dist/index.js
CHANGED
|
@@ -22479,13 +22479,15 @@ function resolveColumnCount({
|
|
|
22479
22479
|
itemCount,
|
|
22480
22480
|
gap,
|
|
22481
22481
|
columns,
|
|
22482
|
+
maxColumns,
|
|
22482
22483
|
minCardWidth,
|
|
22483
22484
|
idealCardWidth,
|
|
22484
22485
|
maxCardWidth,
|
|
22485
22486
|
node
|
|
22486
22487
|
}) {
|
|
22487
22488
|
const fixedColumns = resolveResponsiveColumns(columns, containerWidth);
|
|
22488
|
-
|
|
22489
|
+
const resolvedMaxColumns = resolveResponsiveColumns(maxColumns, containerWidth);
|
|
22490
|
+
if (fixedColumns) return resolvedMaxColumns ? Math.min(fixedColumns, resolvedMaxColumns) : fixedColumns;
|
|
22489
22491
|
if (!containerWidth) return 1;
|
|
22490
22492
|
const idealWidth = resolveLengthToPixels2(idealCardWidth, DEFAULT_CARD_WIDTH_PX, node);
|
|
22491
22493
|
const minWidth = resolveLengthToPixels2(minCardWidth, idealWidth * 0.78, node);
|
|
@@ -22512,7 +22514,7 @@ function resolveColumnCount({
|
|
|
22512
22514
|
bestCount = candidate;
|
|
22513
22515
|
}
|
|
22514
22516
|
}
|
|
22515
|
-
return bestCount;
|
|
22517
|
+
return resolvedMaxColumns ? Math.min(bestCount, resolvedMaxColumns) : bestCount;
|
|
22516
22518
|
}
|
|
22517
22519
|
function normalizeGap(value) {
|
|
22518
22520
|
return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : DEFAULT_GAP_PX;
|
|
@@ -22579,6 +22581,10 @@ function warnOnDuplicateKeys(keys) {
|
|
|
22579
22581
|
console.warn(`WorkbenchCollection received duplicate item keys: ${Array.from(duplicates).join(", ")}`);
|
|
22580
22582
|
}
|
|
22581
22583
|
}
|
|
22584
|
+
function normalizeTitleMaxLines(value) {
|
|
22585
|
+
if (!Number.isFinite(value) || Number(value) <= 0) return void 0;
|
|
22586
|
+
return clamp4(Math.round(Number(value)), 1, 12);
|
|
22587
|
+
}
|
|
22582
22588
|
function WorkbenchCollection({
|
|
22583
22589
|
items,
|
|
22584
22590
|
config,
|
|
@@ -22663,6 +22669,7 @@ function WorkbenchCollection({
|
|
|
22663
22669
|
itemCount: normalizedItems.length,
|
|
22664
22670
|
gap,
|
|
22665
22671
|
columns: config.layout.columns,
|
|
22672
|
+
maxColumns: config.layout.maxColumns,
|
|
22666
22673
|
minCardWidth: config.layout.minCardWidth,
|
|
22667
22674
|
idealCardWidth: config.layout.idealCardWidth ?? config.layout.columnWidth,
|
|
22668
22675
|
maxCardWidth: config.layout.maxCardWidth,
|
|
@@ -22750,25 +22757,29 @@ function WorkbenchCollection({
|
|
|
22750
22757
|
React2.useEffect(() => {
|
|
22751
22758
|
if (!loadingMore || !hasMore) loadMoreLockedRef.current = false;
|
|
22752
22759
|
}, [hasMore, loadingMore, normalizedItems.length, keysSignature]);
|
|
22760
|
+
const requestLoadMore = React2.useCallback(() => {
|
|
22761
|
+
if (!canLoadMore || !hasMore || loadingMore || loadMoreLockedRef.current) return;
|
|
22762
|
+
loadMoreLockedRef.current = true;
|
|
22763
|
+
try {
|
|
22764
|
+
const result = callbacksRef.current?.onLoadMore?.();
|
|
22765
|
+
if (result && typeof result.then === "function") {
|
|
22766
|
+
void result.catch(() => {
|
|
22767
|
+
loadMoreLockedRef.current = false;
|
|
22768
|
+
});
|
|
22769
|
+
}
|
|
22770
|
+
} catch (error) {
|
|
22771
|
+
loadMoreLockedRef.current = false;
|
|
22772
|
+
throw error;
|
|
22773
|
+
}
|
|
22774
|
+
}, [canLoadMore, hasMore, loadingMore]);
|
|
22753
22775
|
React2.useEffect(() => {
|
|
22754
22776
|
const sentinel = loadMoreRef.current;
|
|
22755
22777
|
if (!sentinel || !canLoadMore || !hasMore || loadingMore) return void 0;
|
|
22756
22778
|
if (typeof IntersectionObserver !== "function") return void 0;
|
|
22757
22779
|
const owner = resolveScrollOwner();
|
|
22758
22780
|
const observer = new IntersectionObserver((entries) => {
|
|
22759
|
-
if (!entries.some((entry) => entry.isIntersecting)
|
|
22760
|
-
|
|
22761
|
-
try {
|
|
22762
|
-
const result = callbacksRef.current?.onLoadMore?.();
|
|
22763
|
-
if (result && typeof result.then === "function") {
|
|
22764
|
-
void result.catch(() => {
|
|
22765
|
-
loadMoreLockedRef.current = false;
|
|
22766
|
-
});
|
|
22767
|
-
}
|
|
22768
|
-
} catch (error) {
|
|
22769
|
-
loadMoreLockedRef.current = false;
|
|
22770
|
-
throw error;
|
|
22771
|
-
}
|
|
22781
|
+
if (!entries.some((entry) => entry.isIntersecting)) return;
|
|
22782
|
+
requestLoadMore();
|
|
22772
22783
|
}, {
|
|
22773
22784
|
root: owner === rootRef.current ? owner : owner || null,
|
|
22774
22785
|
rootMargin: config.loading?.rootMargin ?? "240px",
|
|
@@ -22776,7 +22787,25 @@ function WorkbenchCollection({
|
|
|
22776
22787
|
});
|
|
22777
22788
|
observer.observe(sentinel);
|
|
22778
22789
|
return () => observer.disconnect();
|
|
22779
|
-
}, [canLoadMore, config.loading?.rootMargin, config.loading?.threshold, hasMore, keysSignature, loadingMore, normalizedItems.length, resolveScrollOwner]);
|
|
22790
|
+
}, [canLoadMore, config.loading?.rootMargin, config.loading?.threshold, hasMore, keysSignature, loadingMore, normalizedItems.length, requestLoadMore, resolveScrollOwner]);
|
|
22791
|
+
React2.useEffect(() => {
|
|
22792
|
+
if (!config.loading?.autoFill || !canLoadMore || !hasMore || loadingMore) return;
|
|
22793
|
+
const sentinel = loadMoreRef.current;
|
|
22794
|
+
if (!sentinel) return;
|
|
22795
|
+
const owner = resolveScrollOwner() ?? (config.layout.scrollOwner === "parent" ? rootRef.current?.parentElement ?? null : null) ?? rootRef.current;
|
|
22796
|
+
if (!owner || owner.clientHeight <= 0) return;
|
|
22797
|
+
if (owner.scrollHeight <= owner.clientHeight + 1) requestLoadMore();
|
|
22798
|
+
}, [
|
|
22799
|
+
canLoadMore,
|
|
22800
|
+
config.layout.scrollOwner,
|
|
22801
|
+
config.loading?.autoFill,
|
|
22802
|
+
hasMore,
|
|
22803
|
+
keysSignature,
|
|
22804
|
+
loadingMore,
|
|
22805
|
+
normalizedItems.length,
|
|
22806
|
+
requestLoadMore,
|
|
22807
|
+
resolveScrollOwner
|
|
22808
|
+
]);
|
|
22780
22809
|
const groups = React2.useMemo(() => {
|
|
22781
22810
|
if (!config.grouping) {
|
|
22782
22811
|
return [{ key: "__all__", stringKey: "__all__", items: normalizedItems }];
|
|
@@ -22862,11 +22891,16 @@ function WorkbenchCollection({
|
|
|
22862
22891
|
role: selectionMode === "none" ? "listitem" : "option",
|
|
22863
22892
|
"aria-selected": selectionMode === "none" ? void 0 : context.selected,
|
|
22864
22893
|
"aria-disabled": context.disabled || void 0,
|
|
22865
|
-
tabIndex: callbacks?.onItemClick || selectionMode !== "none" ? 0 : void 0,
|
|
22894
|
+
tabIndex: callbacks?.onItemClick || selectionMode !== "none" || config.item?.title?.visibility === "hover" ? 0 : void 0,
|
|
22866
22895
|
draggable: callbacks?.onItemDragStart ? true : void 0,
|
|
22867
22896
|
className: cn(
|
|
22868
|
-
"min-w-0 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
22869
|
-
config.appearance?.hover
|
|
22897
|
+
"min-w-0 group/workbench-collection-item outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
22898
|
+
config.appearance?.hover && config.appearance.hover !== "none" && "transition-[transform,box-shadow,background-color] duration-200",
|
|
22899
|
+
config.appearance?.hover === "highlight" && "hover:bg-muted/30",
|
|
22900
|
+
config.appearance?.hover === "lift" && "hover:-translate-y-0.5 motion-reduce:transform-none",
|
|
22901
|
+
config.appearance?.hover === "scale" && "hover:scale-[1.01] motion-reduce:transform-none",
|
|
22902
|
+
config.appearance?.hover === "shadow" && "hover:shadow-md",
|
|
22903
|
+
config.appearance?.hover === "lift-shadow" && "hover:-translate-y-0.5 hover:shadow-md motion-reduce:transform-none",
|
|
22870
22904
|
config.appearance?.selection === "ring" && context.selected && "ring-2 ring-primary",
|
|
22871
22905
|
config.appearance?.selection === "outline" && context.selected && "outline outline-2 outline-primary",
|
|
22872
22906
|
classNames?.item
|
|
@@ -22880,17 +22914,70 @@ function WorkbenchCollection({
|
|
|
22880
22914
|
if (isInteractiveEventTarget(event.target, event.currentTarget)) return;
|
|
22881
22915
|
callbacks?.onItemDoubleClick?.(entry.item, context, event);
|
|
22882
22916
|
},
|
|
22917
|
+
onMouseEnter: (event) => callbacks?.onItemHoverChange?.(entry.item, context, true, event),
|
|
22918
|
+
onMouseLeave: (event) => callbacks?.onItemHoverChange?.(entry.item, context, false, event),
|
|
22883
22919
|
onKeyDown: handleKeyboard,
|
|
22884
22920
|
onDragStart: (event) => callbacks?.onItemDragStart?.(entry.item, context, event),
|
|
22885
22921
|
onDragOver: callbacks?.onItemDrop ? (event) => event.preventDefault() : void 0,
|
|
22886
22922
|
onDrop: (event) => callbacks?.onItemDrop?.(entry.item, context, event)
|
|
22887
22923
|
};
|
|
22888
|
-
}, [callbacks, classNames?.item, componentId, config.appearance, selectionMode]);
|
|
22924
|
+
}, [callbacks, classNames?.item, componentId, config.appearance, config.item?.title?.visibility, selectionMode]);
|
|
22925
|
+
const renderItemContent2 = React2.useCallback((entry, context) => {
|
|
22926
|
+
const content = renderItem(entry.item, context);
|
|
22927
|
+
const titleConfig = config.item?.title;
|
|
22928
|
+
const visibility = titleConfig?.visibility ?? "always";
|
|
22929
|
+
if (!titleConfig || visibility === "never") return content;
|
|
22930
|
+
const title = titleConfig.getContent?.(entry.item, context) ?? context.renderSlot("title");
|
|
22931
|
+
if (!hasRenderableNode(title)) return content;
|
|
22932
|
+
const placement = titleConfig.placement ?? "below";
|
|
22933
|
+
const overlay2 = placement.startsWith("overlay-");
|
|
22934
|
+
const maxLines = normalizeTitleMaxLines(titleConfig.maxLines);
|
|
22935
|
+
const surface = titleConfig.surface ?? (overlay2 ? "scrim" : "none");
|
|
22936
|
+
const titleNode = /* @__PURE__ */ jsxRuntime.jsx(
|
|
22937
|
+
"div",
|
|
22938
|
+
{
|
|
22939
|
+
"data-collection-item-title": "",
|
|
22940
|
+
"data-title-placement": placement,
|
|
22941
|
+
"data-title-visibility": visibility,
|
|
22942
|
+
className: cn(
|
|
22943
|
+
"min-w-0 px-1 py-2 text-sm font-medium text-foreground",
|
|
22944
|
+
titleConfig.align === "center" && "text-center",
|
|
22945
|
+
titleConfig.align === "end" && "text-right",
|
|
22946
|
+
visibility === "hover" && "opacity-0 transition-opacity group-hover/workbench-collection-item:opacity-100 group-focus-within/workbench-collection-item:opacity-100",
|
|
22947
|
+
overlay2 && "pointer-events-none absolute inset-x-0 z-10 px-3 py-2",
|
|
22948
|
+
placement === "overlay-top" && "top-0",
|
|
22949
|
+
placement === "overlay-center" && "top-1/2 -translate-y-1/2 motion-reduce:transform-none",
|
|
22950
|
+
placement === "overlay-bottom" && "bottom-0",
|
|
22951
|
+
surface === "surface" && "bg-background/90 backdrop-blur-sm",
|
|
22952
|
+
surface === "scrim" && placement === "overlay-top" && "bg-gradient-to-b from-background/90 to-transparent pb-8",
|
|
22953
|
+
surface === "scrim" && placement === "overlay-bottom" && "bg-gradient-to-t from-background/90 to-transparent pt-8",
|
|
22954
|
+
surface === "scrim" && placement === "overlay-center" && "bg-background/75 backdrop-blur-sm",
|
|
22955
|
+
Boolean(maxLines) && "overflow-hidden [display:-webkit-box] [-webkit-box-orient:vertical]",
|
|
22956
|
+
classNames?.itemTitle
|
|
22957
|
+
),
|
|
22958
|
+
style: maxLines ? { WebkitLineClamp: maxLines } : void 0,
|
|
22959
|
+
children: title
|
|
22960
|
+
}
|
|
22961
|
+
);
|
|
22962
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22963
|
+
"div",
|
|
22964
|
+
{
|
|
22965
|
+
className: cn("min-w-0", overlay2 && "relative", classNames?.itemContent),
|
|
22966
|
+
"data-collection-item-content": "",
|
|
22967
|
+
children: [
|
|
22968
|
+
placement === "above" ? titleNode : null,
|
|
22969
|
+
content,
|
|
22970
|
+
placement === "below" || overlay2 ? titleNode : null
|
|
22971
|
+
]
|
|
22972
|
+
}
|
|
22973
|
+
);
|
|
22974
|
+
}, [classNames?.itemContent, classNames?.itemTitle, config.item?.title, renderItem]);
|
|
22889
22975
|
const renderEntry = React2.useCallback((entry, layout, includeShell = true) => {
|
|
22890
22976
|
const context = createItemContext(entry, layout);
|
|
22891
|
-
|
|
22892
|
-
|
|
22893
|
-
|
|
22977
|
+
const content = renderItemContent2(entry, context);
|
|
22978
|
+
if (!includeShell) return content;
|
|
22979
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...getItemInteractionProps(entry, context), children: content });
|
|
22980
|
+
}, [createItemContext, getItemInteractionProps, renderItemContent2]);
|
|
22894
22981
|
const baseLayoutContext = React2.useMemo(() => ({
|
|
22895
22982
|
mode,
|
|
22896
22983
|
columnCount,
|
|
@@ -22917,7 +23004,7 @@ function WorkbenchCollection({
|
|
|
22917
23004
|
scrollOwner: resolveScrollOwner(),
|
|
22918
23005
|
renderItem: (item, localIndex, layout) => {
|
|
22919
23006
|
const entry = group.items[localIndex];
|
|
22920
|
-
return entry ? renderEntry(entry, layout) : null;
|
|
23007
|
+
return entry ? /* @__PURE__ */ jsxRuntime.jsx(React2.Fragment, { children: renderEntry(entry, layout) }, entry.stringKey) : null;
|
|
22921
23008
|
}
|
|
22922
23009
|
});
|
|
22923
23010
|
}
|
|
@@ -23044,6 +23131,7 @@ function WorkbenchCollection({
|
|
|
23044
23131
|
"data-density": config.appearance?.density,
|
|
23045
23132
|
"data-radius": config.appearance?.radius,
|
|
23046
23133
|
"data-media-fit": config.appearance?.mediaFit,
|
|
23134
|
+
"data-hover-effect": config.appearance?.hover,
|
|
23047
23135
|
"aria-label": ariaLabel ?? labels.collection,
|
|
23048
23136
|
"aria-busy": loading || loadingMore || void 0,
|
|
23049
23137
|
className: cn("min-h-0 min-w-0", config.layout.fillHeight && "h-full", classNames?.root, className),
|
|
@@ -23140,14 +23228,6 @@ function getGalleryCardWidthMetrics(density) {
|
|
|
23140
23228
|
if (density === "detailed") return { min: 320, ideal: 372, max: 420 };
|
|
23141
23229
|
return { min: 260, ideal: 304, max: 348 };
|
|
23142
23230
|
}
|
|
23143
|
-
function getGalleryCardWidthForColumnCount({
|
|
23144
|
-
containerWidth,
|
|
23145
|
-
columnCount,
|
|
23146
|
-
gap
|
|
23147
|
-
}) {
|
|
23148
|
-
if (!containerWidth || !columnCount) return 0;
|
|
23149
|
-
return (containerWidth - gap * Math.max(columnCount - 1, 0)) / columnCount;
|
|
23150
|
-
}
|
|
23151
23231
|
function getNormalizedGalleryGridColumns(columns) {
|
|
23152
23232
|
if (columns === void 0 || columns === null || columns === "" || columns === "auto") {
|
|
23153
23233
|
return void 0;
|
|
@@ -23156,90 +23236,6 @@ function getNormalizedGalleryGridColumns(columns) {
|
|
|
23156
23236
|
if (!Number.isFinite(parsedColumns) || parsedColumns <= 0) return void 0;
|
|
23157
23237
|
return Math.max(1, Math.min(parsedColumns, 8));
|
|
23158
23238
|
}
|
|
23159
|
-
function getGalleryGridColumnCount({
|
|
23160
|
-
containerWidth,
|
|
23161
|
-
rowCount,
|
|
23162
|
-
minCardWidth,
|
|
23163
|
-
idealCardWidth,
|
|
23164
|
-
maxCardWidth,
|
|
23165
|
-
gap
|
|
23166
|
-
}) {
|
|
23167
|
-
if (!containerWidth) return 1;
|
|
23168
|
-
const safeRowCount = Math.max(rowCount, 1);
|
|
23169
|
-
const lowerBound = Math.max(1, Math.ceil((containerWidth + gap) / (maxCardWidth + gap)));
|
|
23170
|
-
const upperBound = Math.max(1, Math.floor((containerWidth + gap) / (minCardWidth + gap)));
|
|
23171
|
-
const idealCount = Math.max(1, Math.round((containerWidth + gap) / (idealCardWidth + gap)));
|
|
23172
|
-
const phantomPenalty = Math.round((idealCardWidth - minCardWidth) / 2) + gap;
|
|
23173
|
-
const maxCandidate = Math.max(1, lowerBound, upperBound + 1, idealCount + 1);
|
|
23174
|
-
let bestCount = 1;
|
|
23175
|
-
let bestScore = Number.POSITIVE_INFINITY;
|
|
23176
|
-
for (let candidateCount = 1; candidateCount <= maxCandidate; candidateCount += 1) {
|
|
23177
|
-
const cardWidth = getGalleryCardWidthForColumnCount({ containerWidth, columnCount: candidateCount, gap });
|
|
23178
|
-
const overflowPenalty = Math.max(0, cardWidth - maxCardWidth);
|
|
23179
|
-
const underflowPenalty = Math.max(0, minCardWidth - cardWidth);
|
|
23180
|
-
const idealPenalty = Math.abs(cardWidth - idealCardWidth);
|
|
23181
|
-
const phantomColumns = Math.max(0, candidateCount - safeRowCount);
|
|
23182
|
-
const candidateScore = overflowPenalty * 3 + underflowPenalty * 2 + idealPenalty + phantomColumns * phantomPenalty;
|
|
23183
|
-
if (candidateScore < bestScore) {
|
|
23184
|
-
bestScore = candidateScore;
|
|
23185
|
-
bestCount = candidateCount;
|
|
23186
|
-
}
|
|
23187
|
-
}
|
|
23188
|
-
return bestCount;
|
|
23189
|
-
}
|
|
23190
|
-
function getGalleryGridLayoutStyle({
|
|
23191
|
-
isRailLayout,
|
|
23192
|
-
railCardWidth,
|
|
23193
|
-
fixedCardWidth,
|
|
23194
|
-
fixedColumnCount,
|
|
23195
|
-
containerWidth,
|
|
23196
|
-
rowCount,
|
|
23197
|
-
minCardWidth,
|
|
23198
|
-
idealCardWidth,
|
|
23199
|
-
maxCardWidth
|
|
23200
|
-
}) {
|
|
23201
|
-
if (isRailLayout) {
|
|
23202
|
-
return { gridAutoColumns: `${railCardWidth}px` };
|
|
23203
|
-
}
|
|
23204
|
-
if (fixedColumnCount) {
|
|
23205
|
-
const responsiveColumnCount = containerWidth ? Math.max(1, Math.min(
|
|
23206
|
-
fixedColumnCount,
|
|
23207
|
-
Math.floor((containerWidth + GALLERY_GRID_GAP_PX) / (minCardWidth + GALLERY_GRID_GAP_PX)) || 1
|
|
23208
|
-
)) : fixedColumnCount;
|
|
23209
|
-
return {
|
|
23210
|
-
gridTemplateColumns: `repeat(${responsiveColumnCount}, minmax(0, 1fr))`,
|
|
23211
|
-
justifyContent: "start",
|
|
23212
|
-
alignContent: "start"
|
|
23213
|
-
};
|
|
23214
|
-
}
|
|
23215
|
-
if (fixedCardWidth) {
|
|
23216
|
-
return {
|
|
23217
|
-
gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${fixedCardWidth}), ${fixedCardWidth}))`,
|
|
23218
|
-
justifyContent: "start",
|
|
23219
|
-
alignContent: "start"
|
|
23220
|
-
};
|
|
23221
|
-
}
|
|
23222
|
-
if (!containerWidth) {
|
|
23223
|
-
return {
|
|
23224
|
-
gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${minCardWidth}px), min(100%, ${maxCardWidth}px)))`,
|
|
23225
|
-
justifyContent: "start",
|
|
23226
|
-
alignContent: "start"
|
|
23227
|
-
};
|
|
23228
|
-
}
|
|
23229
|
-
const columnCount = getGalleryGridColumnCount({
|
|
23230
|
-
containerWidth,
|
|
23231
|
-
rowCount,
|
|
23232
|
-
minCardWidth,
|
|
23233
|
-
idealCardWidth,
|
|
23234
|
-
maxCardWidth,
|
|
23235
|
-
gap: GALLERY_GRID_GAP_PX
|
|
23236
|
-
});
|
|
23237
|
-
return {
|
|
23238
|
-
gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
|
|
23239
|
-
justifyContent: "start",
|
|
23240
|
-
alignContent: "start"
|
|
23241
|
-
};
|
|
23242
|
-
}
|
|
23243
23239
|
function getGalleryTextLength(value) {
|
|
23244
23240
|
if (value === null || value === void 0) return 0;
|
|
23245
23241
|
const text = String(value).trim();
|
|
@@ -23447,8 +23443,6 @@ function WorkbenchGalleryView({
|
|
|
23447
23443
|
formatLabel,
|
|
23448
23444
|
getMasonryItemSize
|
|
23449
23445
|
}) {
|
|
23450
|
-
const containerRef = React2.useRef(null);
|
|
23451
|
-
const [containerWidth, setContainerWidth] = React2.useState(0);
|
|
23452
23446
|
const { min: resolvedMinCardWidth, ideal: resolvedIdealCardWidth, max: resolvedMaxCardWidth } = getGalleryCardWidthMetrics(galleryDensity);
|
|
23453
23447
|
const resolvedRailCardWidth = galleryRailCardWidth || resolvedMinCardWidth;
|
|
23454
23448
|
const resolvedGridColumnCount = getNormalizedGalleryGridColumns(galleryGridColumns);
|
|
@@ -23468,44 +23462,6 @@ function WorkbenchGalleryView({
|
|
|
23468
23462
|
const resolvedIsTitleCandidate = isTitleCandidate || ((column, row) => isDefaultGalleryTitleCandidate(column, row, { isMediaColumn: resolvedIsMediaColumn }));
|
|
23469
23463
|
const resolvedIsSummaryCandidate = isSummaryCandidate || ((column, row) => isDefaultGallerySummaryCandidate(column, row, { isMediaColumn: resolvedIsMediaColumn }));
|
|
23470
23464
|
const resolvedRenderFieldValue = renderFieldValue || ((column, row, { compact } = {}) => /* @__PURE__ */ jsxRuntime.jsx("span", { children: resolvedGetDisplayText(resolvedGetFieldValue(column, row)) }));
|
|
23471
|
-
React2.useEffect(() => {
|
|
23472
|
-
if (isMasonry || isRailLayout || resolvedGridCardWidth) return void 0;
|
|
23473
|
-
const node = containerRef.current;
|
|
23474
|
-
if (!node) return void 0;
|
|
23475
|
-
const updateWidth = () => {
|
|
23476
|
-
const nextWidth = Math.round(node.getBoundingClientRect().width);
|
|
23477
|
-
setContainerWidth((prevWidth) => prevWidth === nextWidth ? prevWidth : nextWidth);
|
|
23478
|
-
};
|
|
23479
|
-
updateWidth();
|
|
23480
|
-
if (typeof ResizeObserver === "function") {
|
|
23481
|
-
const observer = new ResizeObserver(() => updateWidth());
|
|
23482
|
-
observer.observe(node);
|
|
23483
|
-
return () => observer.disconnect();
|
|
23484
|
-
}
|
|
23485
|
-
window.addEventListener("resize", updateWidth);
|
|
23486
|
-
return () => window.removeEventListener("resize", updateWidth);
|
|
23487
|
-
}, [isMasonry, isRailLayout, resolvedGridCardWidth]);
|
|
23488
|
-
const layoutStyle = React2.useMemo(() => getGalleryGridLayoutStyle({
|
|
23489
|
-
isRailLayout,
|
|
23490
|
-
railCardWidth: resolvedRailCardWidth,
|
|
23491
|
-
fixedCardWidth: resolvedGridCardWidth,
|
|
23492
|
-
fixedColumnCount: resolvedGridColumnCount,
|
|
23493
|
-
containerWidth,
|
|
23494
|
-
rowCount: rows.length,
|
|
23495
|
-
minCardWidth: resolvedMinCardWidth,
|
|
23496
|
-
idealCardWidth: resolvedIdealCardWidth,
|
|
23497
|
-
maxCardWidth: resolvedMaxCardWidth
|
|
23498
|
-
}), [
|
|
23499
|
-
containerWidth,
|
|
23500
|
-
isRailLayout,
|
|
23501
|
-
resolvedGridCardWidth,
|
|
23502
|
-
resolvedGridColumnCount,
|
|
23503
|
-
resolvedIdealCardWidth,
|
|
23504
|
-
resolvedMaxCardWidth,
|
|
23505
|
-
resolvedMinCardWidth,
|
|
23506
|
-
resolvedRailCardWidth,
|
|
23507
|
-
rows.length
|
|
23508
|
-
]);
|
|
23509
23465
|
const renderGalleryCard = (row, rowIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
23510
23466
|
WorkbenchGalleryCard,
|
|
23511
23467
|
{
|
|
@@ -23541,69 +23497,64 @@ function WorkbenchGalleryView({
|
|
|
23541
23497
|
},
|
|
23542
23498
|
row?.id || row?.linkKey || rowIndex
|
|
23543
23499
|
);
|
|
23544
|
-
|
|
23545
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23546
|
-
WorkbenchCollection,
|
|
23547
|
-
{
|
|
23548
|
-
items: rows,
|
|
23549
|
-
classNames: { layout: className },
|
|
23550
|
-
config: {
|
|
23551
|
-
getItemKey: (row, rowIndex) => row?.id || row?.linkKey || rowIndex,
|
|
23552
|
-
layout: {
|
|
23553
|
-
mode: masonryPlacementStrategy === "dense" ? "dense" : "masonry",
|
|
23554
|
-
gap: GALLERY_GRID_GAP_PX,
|
|
23555
|
-
idealCardWidth: resolvedMasonryColumnWidth,
|
|
23556
|
-
placementStrategy: masonryPlacementStrategy,
|
|
23557
|
-
getItemSize: (row, layout) => {
|
|
23558
|
-
const defaultSize = getDefaultGalleryMasonryItemSize({
|
|
23559
|
-
row,
|
|
23560
|
-
columns,
|
|
23561
|
-
galleryFieldKey,
|
|
23562
|
-
galleryDensity,
|
|
23563
|
-
galleryBentoColumns,
|
|
23564
|
-
galleryDetailVisibility,
|
|
23565
|
-
galleryDetailLimit,
|
|
23566
|
-
getFieldValue: resolvedGetFieldValue,
|
|
23567
|
-
isMediaColumn: resolvedIsMediaColumn,
|
|
23568
|
-
isTitleCandidate: resolvedIsTitleCandidate,
|
|
23569
|
-
isSummaryCandidate: resolvedIsSummaryCandidate,
|
|
23570
|
-
getDisplayText: resolvedGetDisplayText,
|
|
23571
|
-
isImageField: resolvedIsImageField,
|
|
23572
|
-
isAudioField: resolvedIsAudioField,
|
|
23573
|
-
cardVariant,
|
|
23574
|
-
renderPreview,
|
|
23575
|
-
renderLeadingVisual,
|
|
23576
|
-
hiddenDetailFieldKeys,
|
|
23577
|
-
layout,
|
|
23578
|
-
resolveRecordVisual
|
|
23579
|
-
});
|
|
23580
|
-
if (typeof getMasonryItemSize !== "function") return defaultSize;
|
|
23581
|
-
const customSize = getMasonryItemSize(row, {
|
|
23582
|
-
...layout,
|
|
23583
|
-
placementStrategy: layout.placementStrategy === "dense" ? "dense" : "shelf",
|
|
23584
|
-
defaultSize
|
|
23585
|
-
}) || {};
|
|
23586
|
-
return {
|
|
23587
|
-
...defaultSize,
|
|
23588
|
-
...customSize
|
|
23589
|
-
};
|
|
23590
|
-
}
|
|
23591
|
-
}
|
|
23592
|
-
},
|
|
23593
|
-
renderItem: (row, context) => renderGalleryCard(row, context.index)
|
|
23594
|
-
}
|
|
23595
|
-
);
|
|
23596
|
-
}
|
|
23500
|
+
const collectionMode = isMasonry ? masonryPlacementStrategy === "dense" ? "dense" : "masonry" : isRailLayout ? "rail" : "grid";
|
|
23597
23501
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23598
|
-
|
|
23502
|
+
WorkbenchCollection,
|
|
23599
23503
|
{
|
|
23600
|
-
|
|
23601
|
-
|
|
23602
|
-
|
|
23603
|
-
|
|
23604
|
-
|
|
23605
|
-
|
|
23606
|
-
|
|
23504
|
+
items: rows,
|
|
23505
|
+
classNames: { layout: className },
|
|
23506
|
+
config: {
|
|
23507
|
+
getItemKey: (row, rowIndex) => row?.id || row?.linkKey || rowIndex,
|
|
23508
|
+
layout: {
|
|
23509
|
+
mode: collectionMode,
|
|
23510
|
+
gap: GALLERY_GRID_GAP_PX,
|
|
23511
|
+
columns: isMasonry ? "auto" : resolvedGridColumnCount ? {
|
|
23512
|
+
mobile: 1,
|
|
23513
|
+
tablet: Math.min(2, resolvedGridColumnCount),
|
|
23514
|
+
desktop: resolvedGridColumnCount
|
|
23515
|
+
} : "auto",
|
|
23516
|
+
cardWidth: isRailLayout ? resolvedRailCardWidth : void 0,
|
|
23517
|
+
minCardWidth: resolvedGridCardWidth ?? resolvedMinCardWidth,
|
|
23518
|
+
idealCardWidth: isMasonry ? resolvedMasonryColumnWidth : resolvedGridCardWidth ?? resolvedIdealCardWidth,
|
|
23519
|
+
maxCardWidth: resolvedGridCardWidth ?? resolvedMaxCardWidth,
|
|
23520
|
+
placementStrategy: masonryPlacementStrategy,
|
|
23521
|
+
getItemSize: isMasonry ? (row, layout) => {
|
|
23522
|
+
const defaultSize = getDefaultGalleryMasonryItemSize({
|
|
23523
|
+
row,
|
|
23524
|
+
columns,
|
|
23525
|
+
galleryFieldKey,
|
|
23526
|
+
galleryDensity,
|
|
23527
|
+
galleryBentoColumns,
|
|
23528
|
+
galleryDetailVisibility,
|
|
23529
|
+
galleryDetailLimit,
|
|
23530
|
+
getFieldValue: resolvedGetFieldValue,
|
|
23531
|
+
isMediaColumn: resolvedIsMediaColumn,
|
|
23532
|
+
isTitleCandidate: resolvedIsTitleCandidate,
|
|
23533
|
+
isSummaryCandidate: resolvedIsSummaryCandidate,
|
|
23534
|
+
getDisplayText: resolvedGetDisplayText,
|
|
23535
|
+
isImageField: resolvedIsImageField,
|
|
23536
|
+
isAudioField: resolvedIsAudioField,
|
|
23537
|
+
cardVariant,
|
|
23538
|
+
renderPreview,
|
|
23539
|
+
renderLeadingVisual,
|
|
23540
|
+
hiddenDetailFieldKeys,
|
|
23541
|
+
layout,
|
|
23542
|
+
resolveRecordVisual
|
|
23543
|
+
});
|
|
23544
|
+
if (typeof getMasonryItemSize !== "function") return defaultSize;
|
|
23545
|
+
const customSize = getMasonryItemSize(row, {
|
|
23546
|
+
...layout,
|
|
23547
|
+
placementStrategy: layout.placementStrategy === "dense" ? "dense" : "shelf",
|
|
23548
|
+
defaultSize
|
|
23549
|
+
}) || {};
|
|
23550
|
+
return {
|
|
23551
|
+
...defaultSize,
|
|
23552
|
+
...customSize
|
|
23553
|
+
};
|
|
23554
|
+
} : void 0
|
|
23555
|
+
}
|
|
23556
|
+
},
|
|
23557
|
+
renderItem: (row, context) => renderGalleryCard(row, context.index)
|
|
23607
23558
|
}
|
|
23608
23559
|
);
|
|
23609
23560
|
}
|
|
@@ -24520,18 +24471,26 @@ function WorkbenchAssetGallery({
|
|
|
24520
24471
|
if (!items.length) {
|
|
24521
24472
|
return hasRenderableNode(emptyState) ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: emptyState }) : null;
|
|
24522
24473
|
}
|
|
24523
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24524
|
-
|
|
24474
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-monkeys-component": "workbench-asset-gallery", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24475
|
+
WorkbenchCollection,
|
|
24525
24476
|
{
|
|
24526
|
-
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
24530
|
-
|
|
24531
|
-
|
|
24532
|
-
|
|
24477
|
+
items,
|
|
24478
|
+
config: {
|
|
24479
|
+
getItemKey: (item) => item.id,
|
|
24480
|
+
layout: {
|
|
24481
|
+
mode: "grid",
|
|
24482
|
+
columns: "auto",
|
|
24483
|
+
minCardWidth: "12rem",
|
|
24484
|
+
idealCardWidth: "16rem",
|
|
24485
|
+
gap: 12
|
|
24486
|
+
},
|
|
24487
|
+
appearance: { hover: "none" }
|
|
24488
|
+
},
|
|
24489
|
+
ariaLabel,
|
|
24490
|
+
className,
|
|
24491
|
+
renderItem: (item) => {
|
|
24533
24492
|
const selected = selectedItemId === item.id;
|
|
24534
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
24493
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
24535
24494
|
"button",
|
|
24536
24495
|
{
|
|
24537
24496
|
type: "button",
|
|
@@ -24567,10 +24526,10 @@ function WorkbenchAssetGallery({
|
|
|
24567
24526
|
] })
|
|
24568
24527
|
]
|
|
24569
24528
|
}
|
|
24570
|
-
)
|
|
24571
|
-
}
|
|
24529
|
+
);
|
|
24530
|
+
}
|
|
24572
24531
|
}
|
|
24573
|
-
);
|
|
24532
|
+
) });
|
|
24574
24533
|
}
|
|
24575
24534
|
var radarWorkspaceStyle = {
|
|
24576
24535
|
backgroundColor: "hsl(var(--radar-canvas, var(--background)))",
|