@inf-monkeys-tech/monkeys-design 1.0.99 → 1.0.100
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/data-explorer/index.d.mts +3 -3
- package/dist/components/data-explorer/index.d.ts +3 -3
- package/dist/components/data-explorer/index.js +296 -70
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +226 -2
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/navigation-sidebar/index.d.mts +1 -1
- package/dist/components/navigation-sidebar/index.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +225 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +225 -2
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +1 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/{theme-0fef4f282e64.d.mts → theme-ba08de180df9.d.ts} +4 -2
- package/dist/{theme-169054c0dfb4.d.ts → theme-bfef5a689024.d.mts} +4 -2
- package/dist/{types-e36d6f4b3ca8.d.mts → types-cc1ff9de4c79.d.mts} +47 -1
- package/dist/{types-e36d6f4b3ca8.d.ts → types-cc1ff9de4c79.d.ts} +47 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ElementType, RefAttributes, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { aR as DataExplorerViewTreeProps } from '../../types-cc1ff9de4c79.mjs';
|
|
3
3
|
type NavigationSidebarKind = "catalog" | "route" | "tree";
|
|
4
4
|
type NavigationSidebarDensity = "comfortable" | "compact" | "default";
|
|
5
5
|
type NavigationSidebarSurface = "frosted" | "outlined" | "panel" | "plain";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ElementType, RefAttributes, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { aR as DataExplorerViewTreeProps } from '../../types-cc1ff9de4c79.js';
|
|
3
3
|
type NavigationSidebarKind = "catalog" | "route" | "tree";
|
|
4
4
|
type NavigationSidebarDensity = "comfortable" | "compact" | "default";
|
|
5
5
|
type NavigationSidebarSurface = "frosted" | "outlined" | "panel" | "plain";
|
package/dist/index.d.mts
CHANGED
|
@@ -13,8 +13,8 @@ export { MonkeysToastApi, MonkeysToastProvider, MonkeysToastProviderProps, Monke
|
|
|
13
13
|
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 BaseListFooter, P as BaseListItem, Q as BaseLoadingState, R as BaseMultiSelect, S as BaseNotice, T as BaseNumberInput, U as BasePagination, V as BasePanel, W as BasePasswordInput, X as BasePortal, Y as BaseProgress, Z as BaseRadioGroup, _ as BaseScrollArea, $ as BaseSectionHeader, a0 as BaseSegmentedControl, a1 as BaseSelect, a2 as BaseSkeleton, a3 as BaseSpinner, a4 as BaseStack, a5 as BaseSteps, a6 as BaseSwitch, a7 as BaseSystemState, a8 as BaseTable, a9 as BaseTableBody, aa as BaseTableCaption, ab as BaseTableCell, ac as BaseTableContainer, ad as BaseTableEmpty, ae as BaseTableFooter, af as BaseTableFooterBar, ag as BaseTableHead, ah as BaseTableHeader, ai as BaseTableLoading, aj as BaseTableRow, ak as BaseTabs, al as BaseText, am as BaseTextarea, an as BaseToolbar, ao as BaseTooltip, ap as BaseVisuallyHidden, aq as getBaseBadgeToneClassName, ar as getBaseButtonToneClassName, as as getBaseMenuItemToneClassName, at as getBaseNoticeToneClassName, au as resolveBaseAppearance } from './theme-860f405c9d2d.mjs';
|
|
14
14
|
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 BaseListFooterClassNames, aH as BaseListFooterProps, aI as BaseListItemClassNames, aJ as BaseListItemProps, aK as BaseListMarker, aL as BaseListProps, aM as BaseListSpacing, aN as BaseLoadingStateProps, aO as BaseMultiSelectClassNames, aP as BaseMultiSelectOption, aQ as BaseMultiSelectProps, aR as BaseNoticeClassNames, aS as BaseNoticeProps, aT as BaseNumberInputChangeReason, aU as BaseNumberInputClassNames, aV as BaseNumberInputProps, aW as BaseNumberInputValueChangeDetails, aX as BasePaginationClassNames, aY as BasePaginationProps, aZ as BasePanelClassNames, a_ as BasePanelProps, a$ as BasePasswordInputClassNames, b0 as BasePasswordInputProps, b1 as BasePortalContainer, b2 as BasePortalProps, b3 as BaseProgressClassNames, b4 as BaseProgressProps, b5 as BaseRadioGroupClassNames, b6 as BaseRadioGroupProps, b7 as BaseRadioOption, b8 as BaseRadius, b9 as BaseResolvedTheme, ba as BaseScrollAreaAxis, bb as BaseScrollAreaClassNames, bc as BaseScrollAreaProps, bd as BaseSectionHeaderClassNames, be as BaseSectionHeaderProps, bf as BaseSegmentedControlClassNames, bg as BaseSegmentedControlOption, bh as BaseSegmentedControlProps, bi as BaseSelectOption, bj as BaseSelectProps, bk as BaseSkeletonClassNames, bl as BaseSkeletonProps, bm as BaseSpinnerClassNames, bn as BaseSpinnerProps, bo as BaseStackClassNames, bp as BaseStackProps, bq as BaseStateClassNames, br as BaseStepItem, bs as BaseStepStatus, bt as BaseStepsClassNames, bu as BaseStepsProps, bv as BaseStepsStatusLabels, bw as BaseSwitchClassNames, bx as BaseSwitchProps, by as BaseSystemStateKind, bz as BaseSystemStateProps, bA as BaseTableAlign, bB as BaseTableBodyProps, bC as BaseTableCaptionClassNames, bD as BaseTableCaptionProps, bE as BaseTableCellClassNames, bF as BaseTableCellProps, bG as BaseTableClassNames, bH as BaseTableColumnDefinition, bI as BaseTableColumnInteractionOptions, bJ as BaseTableColumnOrderChangeDetail, bK as BaseTableColumnSizeChangeDetail, bL as BaseTableColumnSizes, bM as BaseTableContainerClassNames, bN as BaseTableContainerProps, bO as BaseTableEmptyClassNames, bP as BaseTableEmptyProps, bQ as BaseTableFooterBarClassNames, bR as BaseTableFooterBarProps, bS as BaseTableFooterProps, bT as BaseTableHeadClassNames, bU as BaseTableHeadProps, bV as BaseTableHeaderProps, bW as BaseTableLayout, bX as BaseTableLoadingClassNames, bY as BaseTableLoadingProps, bZ as BaseTableProps, b_ as BaseTableRowClassNames, b$ as BaseTableRowProps, c0 as BaseTableSectionClassNames, c1 as BaseTableSortDirection, c2 as BaseTableVerticalAlign, c3 as BaseTabsClassNames, c4 as BaseTabsItem, c5 as BaseTabsProps, c6 as BaseTextClassNames, c7 as BaseTextProps, c8 as BaseTextareaProps, c9 as BaseThemePresetId, ca as BaseThemeSlots, cb as BaseThemeStyles, cc as BaseToolbarClassNames, cd as BaseToolbarProps, ce as BaseTooltipClassNames, cf as BaseTooltipPlacement, cg as BaseTooltipProps, ch as BaseTypographySize, ci as BaseTypographyTone, cj as BaseVariant, ck as BaseVisuallyHiddenClassNames, cl as BaseVisuallyHiddenProps } from './types-c6ec8b90925b.mjs';
|
|
15
15
|
export { A as ApplicationHandoffLink, a as ApplicationHandoffLinkProps, O as OverlayHistoryAdapter, b as OverlayNodeHost, c as OverlayNodeHostProps, d as OverlayNodeRuntimeContext, R as RenderNodeHost, e as RenderNodeHostElement, f as RenderNodeHostProps, g as RenderNodePolicyState, h as RenderNodeRuntimeState, i as RenderNodeScrollPosition, j as RenderNodeScrollRestoration, k as browserOverlayHistoryAdapter, l as buildOverlayUrl, m as getOverlayPresentationClassNames, n as getOverlayZIndex, o as getRenderNodeDataAttributes, p as isOverlayUrlActive, r as resolveRenderNodePolicyState, s as sessionRenderNodeScrollRestoration } from './OverlayNodeHost-14bb9b0f18f4.mjs';
|
|
16
|
-
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, d as DataExplorerDetailField, e as DataExplorerDetailSection, f as DataExplorerDetailShell, g as DataExplorerDisplayActionMenu, h as DataExplorerDisplayCard, i as DataExplorerDisplayCollectionView, j as DataExplorerDisplayListItem, k as DataExplorerDisplayMedia, l as DataExplorerFilterBar, m as DataExplorerImagePreview, n as
|
|
17
|
-
export { D as DataExplorerAction, a as DataExplorerActionBarClassNames, b as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, y as DataExplorerDisplayAction, z as DataExplorerDisplayActionContext, A as DataExplorerDisplayActionMenuClassNames, B as DataExplorerDisplayActionMenuProps, C as DataExplorerDisplayBadge, E as DataExplorerDisplayCardClassNames, F as DataExplorerDisplayCardProps, G as DataExplorerDisplayCollectionItemContext, H as DataExplorerDisplayCollectionItemPropsResolver, I as DataExplorerDisplayCollectionViewProps, J as DataExplorerDisplayItem, K as DataExplorerDisplayListItemClassNames, L as DataExplorerDisplayListItemProps, M as DataExplorerDisplayMediaClassNames, N as DataExplorerDisplayMediaItem, O as DataExplorerDisplayMediaKind, P as DataExplorerDisplayMediaProps, Q as DataExplorerDisplayMetadata, R as DataExplorerFilterBarClassNames, S as DataExplorerFilterBarProps, T as DataExplorerImagePreviewClassNames, U as DataExplorerImagePreviewNaturalSize, V as DataExplorerImagePreviewProps, W as DataExplorerMeasuredGridOptions, X as
|
|
16
|
+
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, d as DataExplorerDetailField, e as DataExplorerDetailSection, f as DataExplorerDetailShell, g as DataExplorerDisplayActionMenu, h as DataExplorerDisplayCard, i as DataExplorerDisplayCollectionView, j as DataExplorerDisplayListItem, k as DataExplorerDisplayMedia, l as DataExplorerFilterBar, m as DataExplorerImagePreview, n as DataExplorerMediaPreview, o as DataExplorerPage, p as DataExplorerRecordCard, q as DataExplorerRecordPicker, r as DataExplorerSelect, s as DataExplorerToolbarActions, t as DataExplorerToolbarShell, u as DataExplorerTree, v as DataExplorerTreeShell, w as DataExplorerUploadSurface, x as DataExplorerView, y as DataExplorerViewCollection, z as DataExplorerViewItem, A as DataExplorerViewItemShell, B as DataExplorerViewShell, C as DataExplorerViewTree, E as getDataExplorerActionToneClassName, F as getDataExplorerMenuItemToneClassName, G as resolveDataExplorerAppearance } from './theme-bfef5a689024.mjs';
|
|
17
|
+
export { D as DataExplorerAction, a as DataExplorerActionBarClassNames, b as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, y as DataExplorerDisplayAction, z as DataExplorerDisplayActionContext, A as DataExplorerDisplayActionMenuClassNames, B as DataExplorerDisplayActionMenuProps, C as DataExplorerDisplayBadge, E as DataExplorerDisplayCardClassNames, F as DataExplorerDisplayCardProps, G as DataExplorerDisplayCollectionItemContext, H as DataExplorerDisplayCollectionItemPropsResolver, I as DataExplorerDisplayCollectionViewProps, J as DataExplorerDisplayItem, K as DataExplorerDisplayListItemClassNames, L as DataExplorerDisplayListItemProps, M as DataExplorerDisplayMediaClassNames, N as DataExplorerDisplayMediaItem, O as DataExplorerDisplayMediaKind, P as DataExplorerDisplayMediaProps, Q as DataExplorerDisplayMetadata, R as DataExplorerFilterBarClassNames, S as DataExplorerFilterBarProps, T as DataExplorerImagePreviewClassNames, U as DataExplorerImagePreviewNaturalSize, V as DataExplorerImagePreviewProps, W as DataExplorerMeasuredGridOptions, X as DataExplorerMediaPreviewClassNames, Y as DataExplorerMediaPreviewKind, Z as DataExplorerMediaPreviewProps, _ as DataExplorerPageClassNames, $ as DataExplorerPageProps, a0 as DataExplorerRadius, a1 as DataExplorerRecordCardClassNames, a2 as DataExplorerRecordCardProps, a3 as DataExplorerRecordPickerClassNames, a4 as DataExplorerRecordPickerOption, a5 as DataExplorerRecordPickerProps, a6 as DataExplorerResolvedTheme, a7 as DataExplorerResolver, a8 as DataExplorerSelectClassNames, a9 as DataExplorerSelectProps, aa as DataExplorerThemePresetId, ab as DataExplorerThemeSlots, ac as DataExplorerThemeStyles, ad as DataExplorerToolbarAction, ae as DataExplorerToolbarActionItem, af as DataExplorerToolbarActionKind, ag as DataExplorerToolbarActionOption, ah as DataExplorerToolbarActionsClassNames, ai as DataExplorerToolbarActionsLayout, aj as DataExplorerToolbarActionsProps, ak as DataExplorerToolbarShellClassNames, al as DataExplorerToolbarShellProps, am as DataExplorerToolbarViewOption, an as DataExplorerTreeClassNames, ao as DataExplorerTreeProps, ap as DataExplorerTreeRenderProps, aq as DataExplorerTreeShellClassNames, ar as DataExplorerTreeShellProps, as as DataExplorerUploadSurfaceClassNames, at as DataExplorerUploadSurfaceProps, au as DataExplorerViewClassNames, av as DataExplorerViewCollectionClassNames, aw as DataExplorerViewCollectionLayout, ax as DataExplorerViewCollectionOptions, ay as DataExplorerViewCollectionProps, az as DataExplorerViewDefinition, aA as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aC as DataExplorerViewItemProps, aD as DataExplorerViewItemShellClassNames, aE as DataExplorerViewItemShellProps, aF as DataExplorerViewOption, aG as DataExplorerViewProps, aH as DataExplorerViewRenderProps, aI as DataExplorerViewShellClassNames, aJ as DataExplorerViewShellProps, aK as DataExplorerViewTreeAction, aL as DataExplorerViewTreeActionContext, aM as DataExplorerViewTreeClassNames, aN as DataExplorerViewTreeEntryType, aO as DataExplorerViewTreeGroup, aP as DataExplorerViewTreeLabels, aQ as DataExplorerViewTreeNode, aR as DataExplorerViewTreeProps, aS as DataExplorerViewTreeReorderPayload } from './types-cc1ff9de4c79.mjs';
|
|
18
18
|
export { NavigationSidebar, NavigationSidebarActiveVariant, NavigationSidebarAppearance, NavigationSidebarCatalogFilter, NavigationSidebarCatalogItem, NavigationSidebarCatalogProps, NavigationSidebarCatalogSection, NavigationSidebarClassNames, NavigationSidebarCollapsePlacement, NavigationSidebarCommonProps, NavigationSidebarComponent, NavigationSidebarDensity, NavigationSidebarEntryDomProps, NavigationSidebarKind, NavigationSidebarMobileConfig, NavigationSidebarProps, NavigationSidebarRouteChild, NavigationSidebarRouteItem, NavigationSidebarRouteProps, NavigationSidebarSearchConfig, NavigationSidebarStorage, NavigationSidebarSurface, NavigationSidebarTreeProps } from './components/navigation-sidebar/index.mjs';
|
|
19
19
|
export { DarkModeSelector, DarkModeSelectorProps, DarkModeSubMenu, DarkModeSubMenuProps, DarkModeValue, I18nLanguage, I18nSelector, I18nSelectorProps, UseDarkModeReturn, useDarkMode } from './components/toolbar/index.mjs';
|
|
20
20
|
export { ExternalToast, ToasterProps } from 'sonner';
|
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export { MonkeysToastApi, MonkeysToastProvider, MonkeysToastProviderProps, Monke
|
|
|
13
13
|
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 BaseListFooter, P as BaseListItem, Q as BaseLoadingState, R as BaseMultiSelect, S as BaseNotice, T as BaseNumberInput, U as BasePagination, V as BasePanel, W as BasePasswordInput, X as BasePortal, Y as BaseProgress, Z as BaseRadioGroup, _ as BaseScrollArea, $ as BaseSectionHeader, a0 as BaseSegmentedControl, a1 as BaseSelect, a2 as BaseSkeleton, a3 as BaseSpinner, a4 as BaseStack, a5 as BaseSteps, a6 as BaseSwitch, a7 as BaseSystemState, a8 as BaseTable, a9 as BaseTableBody, aa as BaseTableCaption, ab as BaseTableCell, ac as BaseTableContainer, ad as BaseTableEmpty, ae as BaseTableFooter, af as BaseTableFooterBar, ag as BaseTableHead, ah as BaseTableHeader, ai as BaseTableLoading, aj as BaseTableRow, ak as BaseTabs, al as BaseText, am as BaseTextarea, an as BaseToolbar, ao as BaseTooltip, ap as BaseVisuallyHidden, aq as getBaseBadgeToneClassName, ar as getBaseButtonToneClassName, as as getBaseMenuItemToneClassName, at as getBaseNoticeToneClassName, au as resolveBaseAppearance } from './theme-2d676ff768b3.js';
|
|
14
14
|
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 BaseListFooterClassNames, aH as BaseListFooterProps, aI as BaseListItemClassNames, aJ as BaseListItemProps, aK as BaseListMarker, aL as BaseListProps, aM as BaseListSpacing, aN as BaseLoadingStateProps, aO as BaseMultiSelectClassNames, aP as BaseMultiSelectOption, aQ as BaseMultiSelectProps, aR as BaseNoticeClassNames, aS as BaseNoticeProps, aT as BaseNumberInputChangeReason, aU as BaseNumberInputClassNames, aV as BaseNumberInputProps, aW as BaseNumberInputValueChangeDetails, aX as BasePaginationClassNames, aY as BasePaginationProps, aZ as BasePanelClassNames, a_ as BasePanelProps, a$ as BasePasswordInputClassNames, b0 as BasePasswordInputProps, b1 as BasePortalContainer, b2 as BasePortalProps, b3 as BaseProgressClassNames, b4 as BaseProgressProps, b5 as BaseRadioGroupClassNames, b6 as BaseRadioGroupProps, b7 as BaseRadioOption, b8 as BaseRadius, b9 as BaseResolvedTheme, ba as BaseScrollAreaAxis, bb as BaseScrollAreaClassNames, bc as BaseScrollAreaProps, bd as BaseSectionHeaderClassNames, be as BaseSectionHeaderProps, bf as BaseSegmentedControlClassNames, bg as BaseSegmentedControlOption, bh as BaseSegmentedControlProps, bi as BaseSelectOption, bj as BaseSelectProps, bk as BaseSkeletonClassNames, bl as BaseSkeletonProps, bm as BaseSpinnerClassNames, bn as BaseSpinnerProps, bo as BaseStackClassNames, bp as BaseStackProps, bq as BaseStateClassNames, br as BaseStepItem, bs as BaseStepStatus, bt as BaseStepsClassNames, bu as BaseStepsProps, bv as BaseStepsStatusLabels, bw as BaseSwitchClassNames, bx as BaseSwitchProps, by as BaseSystemStateKind, bz as BaseSystemStateProps, bA as BaseTableAlign, bB as BaseTableBodyProps, bC as BaseTableCaptionClassNames, bD as BaseTableCaptionProps, bE as BaseTableCellClassNames, bF as BaseTableCellProps, bG as BaseTableClassNames, bH as BaseTableColumnDefinition, bI as BaseTableColumnInteractionOptions, bJ as BaseTableColumnOrderChangeDetail, bK as BaseTableColumnSizeChangeDetail, bL as BaseTableColumnSizes, bM as BaseTableContainerClassNames, bN as BaseTableContainerProps, bO as BaseTableEmptyClassNames, bP as BaseTableEmptyProps, bQ as BaseTableFooterBarClassNames, bR as BaseTableFooterBarProps, bS as BaseTableFooterProps, bT as BaseTableHeadClassNames, bU as BaseTableHeadProps, bV as BaseTableHeaderProps, bW as BaseTableLayout, bX as BaseTableLoadingClassNames, bY as BaseTableLoadingProps, bZ as BaseTableProps, b_ as BaseTableRowClassNames, b$ as BaseTableRowProps, c0 as BaseTableSectionClassNames, c1 as BaseTableSortDirection, c2 as BaseTableVerticalAlign, c3 as BaseTabsClassNames, c4 as BaseTabsItem, c5 as BaseTabsProps, c6 as BaseTextClassNames, c7 as BaseTextProps, c8 as BaseTextareaProps, c9 as BaseThemePresetId, ca as BaseThemeSlots, cb as BaseThemeStyles, cc as BaseToolbarClassNames, cd as BaseToolbarProps, ce as BaseTooltipClassNames, cf as BaseTooltipPlacement, cg as BaseTooltipProps, ch as BaseTypographySize, ci as BaseTypographyTone, cj as BaseVariant, ck as BaseVisuallyHiddenClassNames, cl as BaseVisuallyHiddenProps } from './types-c6ec8b90925b.js';
|
|
15
15
|
export { A as ApplicationHandoffLink, a as ApplicationHandoffLinkProps, O as OverlayHistoryAdapter, b as OverlayNodeHost, c as OverlayNodeHostProps, d as OverlayNodeRuntimeContext, R as RenderNodeHost, e as RenderNodeHostElement, f as RenderNodeHostProps, g as RenderNodePolicyState, h as RenderNodeRuntimeState, i as RenderNodeScrollPosition, j as RenderNodeScrollRestoration, k as browserOverlayHistoryAdapter, l as buildOverlayUrl, m as getOverlayPresentationClassNames, n as getOverlayZIndex, o as getRenderNodeDataAttributes, p as isOverlayUrlActive, r as resolveRenderNodePolicyState, s as sessionRenderNodeScrollRestoration } from './OverlayNodeHost-3c763888b689.js';
|
|
16
|
-
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, d as DataExplorerDetailField, e as DataExplorerDetailSection, f as DataExplorerDetailShell, g as DataExplorerDisplayActionMenu, h as DataExplorerDisplayCard, i as DataExplorerDisplayCollectionView, j as DataExplorerDisplayListItem, k as DataExplorerDisplayMedia, l as DataExplorerFilterBar, m as DataExplorerImagePreview, n as
|
|
17
|
-
export { D as DataExplorerAction, a as DataExplorerActionBarClassNames, b as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, y as DataExplorerDisplayAction, z as DataExplorerDisplayActionContext, A as DataExplorerDisplayActionMenuClassNames, B as DataExplorerDisplayActionMenuProps, C as DataExplorerDisplayBadge, E as DataExplorerDisplayCardClassNames, F as DataExplorerDisplayCardProps, G as DataExplorerDisplayCollectionItemContext, H as DataExplorerDisplayCollectionItemPropsResolver, I as DataExplorerDisplayCollectionViewProps, J as DataExplorerDisplayItem, K as DataExplorerDisplayListItemClassNames, L as DataExplorerDisplayListItemProps, M as DataExplorerDisplayMediaClassNames, N as DataExplorerDisplayMediaItem, O as DataExplorerDisplayMediaKind, P as DataExplorerDisplayMediaProps, Q as DataExplorerDisplayMetadata, R as DataExplorerFilterBarClassNames, S as DataExplorerFilterBarProps, T as DataExplorerImagePreviewClassNames, U as DataExplorerImagePreviewNaturalSize, V as DataExplorerImagePreviewProps, W as DataExplorerMeasuredGridOptions, X as
|
|
16
|
+
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, d as DataExplorerDetailField, e as DataExplorerDetailSection, f as DataExplorerDetailShell, g as DataExplorerDisplayActionMenu, h as DataExplorerDisplayCard, i as DataExplorerDisplayCollectionView, j as DataExplorerDisplayListItem, k as DataExplorerDisplayMedia, l as DataExplorerFilterBar, m as DataExplorerImagePreview, n as DataExplorerMediaPreview, o as DataExplorerPage, p as DataExplorerRecordCard, q as DataExplorerRecordPicker, r as DataExplorerSelect, s as DataExplorerToolbarActions, t as DataExplorerToolbarShell, u as DataExplorerTree, v as DataExplorerTreeShell, w as DataExplorerUploadSurface, x as DataExplorerView, y as DataExplorerViewCollection, z as DataExplorerViewItem, A as DataExplorerViewItemShell, B as DataExplorerViewShell, C as DataExplorerViewTree, E as getDataExplorerActionToneClassName, F as getDataExplorerMenuItemToneClassName, G as resolveDataExplorerAppearance } from './theme-ba08de180df9.js';
|
|
17
|
+
export { D as DataExplorerAction, a as DataExplorerActionBarClassNames, b as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, i as DataExplorerCheckboxClassNames, j as DataExplorerCheckboxProps, k as DataExplorerCollectionFooterClassNames, l as DataExplorerCollectionFooterProps, m as DataExplorerControlOption, n as DataExplorerControlTone, o as DataExplorerDensity, p as DataExplorerDetailFieldClassNames, q as DataExplorerDetailFieldDefinition, r as DataExplorerDetailFieldProps, s as DataExplorerDetailNavigation, t as DataExplorerDetailSectionClassNames, u as DataExplorerDetailSectionDefinition, v as DataExplorerDetailSectionProps, w as DataExplorerDetailShellClassNames, x as DataExplorerDetailShellProps, y as DataExplorerDisplayAction, z as DataExplorerDisplayActionContext, A as DataExplorerDisplayActionMenuClassNames, B as DataExplorerDisplayActionMenuProps, C as DataExplorerDisplayBadge, E as DataExplorerDisplayCardClassNames, F as DataExplorerDisplayCardProps, G as DataExplorerDisplayCollectionItemContext, H as DataExplorerDisplayCollectionItemPropsResolver, I as DataExplorerDisplayCollectionViewProps, J as DataExplorerDisplayItem, K as DataExplorerDisplayListItemClassNames, L as DataExplorerDisplayListItemProps, M as DataExplorerDisplayMediaClassNames, N as DataExplorerDisplayMediaItem, O as DataExplorerDisplayMediaKind, P as DataExplorerDisplayMediaProps, Q as DataExplorerDisplayMetadata, R as DataExplorerFilterBarClassNames, S as DataExplorerFilterBarProps, T as DataExplorerImagePreviewClassNames, U as DataExplorerImagePreviewNaturalSize, V as DataExplorerImagePreviewProps, W as DataExplorerMeasuredGridOptions, X as DataExplorerMediaPreviewClassNames, Y as DataExplorerMediaPreviewKind, Z as DataExplorerMediaPreviewProps, _ as DataExplorerPageClassNames, $ as DataExplorerPageProps, a0 as DataExplorerRadius, a1 as DataExplorerRecordCardClassNames, a2 as DataExplorerRecordCardProps, a3 as DataExplorerRecordPickerClassNames, a4 as DataExplorerRecordPickerOption, a5 as DataExplorerRecordPickerProps, a6 as DataExplorerResolvedTheme, a7 as DataExplorerResolver, a8 as DataExplorerSelectClassNames, a9 as DataExplorerSelectProps, aa as DataExplorerThemePresetId, ab as DataExplorerThemeSlots, ac as DataExplorerThemeStyles, ad as DataExplorerToolbarAction, ae as DataExplorerToolbarActionItem, af as DataExplorerToolbarActionKind, ag as DataExplorerToolbarActionOption, ah as DataExplorerToolbarActionsClassNames, ai as DataExplorerToolbarActionsLayout, aj as DataExplorerToolbarActionsProps, ak as DataExplorerToolbarShellClassNames, al as DataExplorerToolbarShellProps, am as DataExplorerToolbarViewOption, an as DataExplorerTreeClassNames, ao as DataExplorerTreeProps, ap as DataExplorerTreeRenderProps, aq as DataExplorerTreeShellClassNames, ar as DataExplorerTreeShellProps, as as DataExplorerUploadSurfaceClassNames, at as DataExplorerUploadSurfaceProps, au as DataExplorerViewClassNames, av as DataExplorerViewCollectionClassNames, aw as DataExplorerViewCollectionLayout, ax as DataExplorerViewCollectionOptions, ay as DataExplorerViewCollectionProps, az as DataExplorerViewDefinition, aA as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aC as DataExplorerViewItemProps, aD as DataExplorerViewItemShellClassNames, aE as DataExplorerViewItemShellProps, aF as DataExplorerViewOption, aG as DataExplorerViewProps, aH as DataExplorerViewRenderProps, aI as DataExplorerViewShellClassNames, aJ as DataExplorerViewShellProps, aK as DataExplorerViewTreeAction, aL as DataExplorerViewTreeActionContext, aM as DataExplorerViewTreeClassNames, aN as DataExplorerViewTreeEntryType, aO as DataExplorerViewTreeGroup, aP as DataExplorerViewTreeLabels, aQ as DataExplorerViewTreeNode, aR as DataExplorerViewTreeProps, aS as DataExplorerViewTreeReorderPayload } from './types-cc1ff9de4c79.js';
|
|
18
18
|
export { NavigationSidebar, NavigationSidebarActiveVariant, NavigationSidebarAppearance, NavigationSidebarCatalogFilter, NavigationSidebarCatalogItem, NavigationSidebarCatalogProps, NavigationSidebarCatalogSection, NavigationSidebarClassNames, NavigationSidebarCollapsePlacement, NavigationSidebarCommonProps, NavigationSidebarComponent, NavigationSidebarDensity, NavigationSidebarEntryDomProps, NavigationSidebarKind, NavigationSidebarMobileConfig, NavigationSidebarProps, NavigationSidebarRouteChild, NavigationSidebarRouteItem, NavigationSidebarRouteProps, NavigationSidebarSearchConfig, NavigationSidebarStorage, NavigationSidebarSurface, NavigationSidebarTreeProps } from './components/navigation-sidebar/index.js';
|
|
19
19
|
export { DarkModeSelector, DarkModeSelectorProps, DarkModeSubMenu, DarkModeSubMenuProps, DarkModeValue, I18nLanguage, I18nSelector, I18nSelectorProps, UseDarkModeReturn, useDarkMode } from './components/toolbar/index.js';
|
|
20
20
|
export { ExternalToast, ToasterProps } from 'sonner';
|
package/dist/index.js
CHANGED
|
@@ -18444,6 +18444,35 @@ var SelectSeparator = React4__namespace.forwardRef(
|
|
|
18444
18444
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props })
|
|
18445
18445
|
);
|
|
18446
18446
|
SelectSeparator.displayName = "SelectSeparator";
|
|
18447
|
+
var mediaPreviewFrameClassName = ({
|
|
18448
|
+
aspectRatio = "square",
|
|
18449
|
+
maxSquareHeight = true,
|
|
18450
|
+
className
|
|
18451
|
+
} = {}) => cn(
|
|
18452
|
+
"w-full overflow-hidden bg-muted",
|
|
18453
|
+
(aspectRatio === "square" || aspectRatio === "1:1") && "aspect-square",
|
|
18454
|
+
(aspectRatio === "square" || aspectRatio === "1:1") && maxSquareHeight && "max-h-[300px]",
|
|
18455
|
+
aspectRatio === "4:3" && "aspect-[4/3]",
|
|
18456
|
+
aspectRatio === "3:4" && "aspect-[3/4]",
|
|
18457
|
+
(aspectRatio === "video" || aspectRatio === "16:9") && "aspect-video",
|
|
18458
|
+
aspectRatio === "9:16" && "aspect-[9/16]",
|
|
18459
|
+
className
|
|
18460
|
+
);
|
|
18461
|
+
var MediaPreviewFrame = React4__namespace.forwardRef(
|
|
18462
|
+
({ aspectRatio = "square", maxSquareHeight = true, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: mediaPreviewFrameClassName({ aspectRatio, maxSquareHeight, className }), ...props })
|
|
18463
|
+
);
|
|
18464
|
+
MediaPreviewFrame.displayName = "MediaPreviewFrame";
|
|
18465
|
+
var MediaPreviewImage = React4__namespace.forwardRef(
|
|
18466
|
+
({ fit = "contain", className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
18467
|
+
"img",
|
|
18468
|
+
{
|
|
18469
|
+
ref,
|
|
18470
|
+
className: cn("block size-full", fit === "contain" ? "object-contain" : "object-cover", className),
|
|
18471
|
+
...props
|
|
18472
|
+
}
|
|
18473
|
+
)
|
|
18474
|
+
);
|
|
18475
|
+
MediaPreviewImage.displayName = "MediaPreviewImage";
|
|
18447
18476
|
var Sheet = Dialog__namespace.Root;
|
|
18448
18477
|
var SheetPortal = Dialog__namespace.Portal;
|
|
18449
18478
|
var SheetOverlay = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -24806,6 +24835,116 @@ function DataExplorerImagePreview({
|
|
|
24806
24835
|
}
|
|
24807
24836
|
);
|
|
24808
24837
|
}
|
|
24838
|
+
function PreviewIcon({ kind }) {
|
|
24839
|
+
const Icon2 = kind === "image" ? lucideReact.Image : kind === "video" ? lucideReact.Video : kind === "audio" ? lucideReact.Music2 : lucideReact.FileText;
|
|
24840
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "h-6 w-6", "aria-hidden": "true" });
|
|
24841
|
+
}
|
|
24842
|
+
function DataExplorerMediaPreview({
|
|
24843
|
+
src,
|
|
24844
|
+
kind = "image",
|
|
24845
|
+
alt = "Preview",
|
|
24846
|
+
title,
|
|
24847
|
+
aspectRatio = "auto",
|
|
24848
|
+
fit = "contain",
|
|
24849
|
+
controls = true,
|
|
24850
|
+
loading = false,
|
|
24851
|
+
empty = "No preview available",
|
|
24852
|
+
error = "Preview is unavailable right now.",
|
|
24853
|
+
className,
|
|
24854
|
+
classNames,
|
|
24855
|
+
onLoad,
|
|
24856
|
+
onError
|
|
24857
|
+
}) {
|
|
24858
|
+
const [hasError, setHasError] = React4.useState(false);
|
|
24859
|
+
const resolvedSrc = typeof src === "string" ? src.trim() : "";
|
|
24860
|
+
React4.useEffect(() => {
|
|
24861
|
+
setHasError(false);
|
|
24862
|
+
}, [resolvedSrc, kind]);
|
|
24863
|
+
const renderPlaceholder = (content, placeholderClassName) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
24864
|
+
"div",
|
|
24865
|
+
{
|
|
24866
|
+
className: cn3(
|
|
24867
|
+
"flex min-h-24 flex-col items-center justify-center gap-2 bg-muted/30 p-4 text-center text-sm text-muted-foreground",
|
|
24868
|
+
classNames?.placeholder,
|
|
24869
|
+
placeholderClassName
|
|
24870
|
+
),
|
|
24871
|
+
role: loading ? "status" : "img",
|
|
24872
|
+
"aria-label": typeof content === "string" ? content : void 0,
|
|
24873
|
+
children: content
|
|
24874
|
+
}
|
|
24875
|
+
);
|
|
24876
|
+
if (loading) {
|
|
24877
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn3("min-w-0 overflow-hidden", classNames?.root, className), "aria-busy": "true", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
24878
|
+
"div",
|
|
24879
|
+
{
|
|
24880
|
+
className: cn3(
|
|
24881
|
+
"flex min-h-24 flex-col items-center justify-center gap-2 bg-muted/30 p-4 text-sm text-muted-foreground",
|
|
24882
|
+
classNames?.loading
|
|
24883
|
+
),
|
|
24884
|
+
children: [
|
|
24885
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-5 w-5 animate-spin", "aria-hidden": "true" }),
|
|
24886
|
+
title || "Loading preview..."
|
|
24887
|
+
]
|
|
24888
|
+
}
|
|
24889
|
+
) });
|
|
24890
|
+
}
|
|
24891
|
+
if (!resolvedSrc || hasError) {
|
|
24892
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn3("min-w-0 overflow-hidden", classNames?.root, className), children: renderPlaceholder(
|
|
24893
|
+
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
24894
|
+
/* @__PURE__ */ jsxRuntime.jsx(PreviewIcon, { kind }),
|
|
24895
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn3("max-w-full truncate", hasError ? classNames?.error : void 0), children: hasError ? error : empty }),
|
|
24896
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-w-full truncate text-xs", children: title }) : null
|
|
24897
|
+
] })
|
|
24898
|
+
) });
|
|
24899
|
+
}
|
|
24900
|
+
const handleError = () => {
|
|
24901
|
+
setHasError(true);
|
|
24902
|
+
onError?.();
|
|
24903
|
+
};
|
|
24904
|
+
const media = kind === "image" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24905
|
+
MediaPreviewImage,
|
|
24906
|
+
{
|
|
24907
|
+
src: resolvedSrc,
|
|
24908
|
+
alt,
|
|
24909
|
+
fit,
|
|
24910
|
+
className: classNames?.media,
|
|
24911
|
+
loading: "lazy",
|
|
24912
|
+
decoding: "async",
|
|
24913
|
+
draggable: false,
|
|
24914
|
+
onLoad,
|
|
24915
|
+
onError: handleError
|
|
24916
|
+
}
|
|
24917
|
+
) : kind === "video" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24918
|
+
"video",
|
|
24919
|
+
{
|
|
24920
|
+
src: resolvedSrc,
|
|
24921
|
+
className: cn3("block h-auto w-full", fit === "cover" ? "object-cover" : "object-contain", classNames?.media),
|
|
24922
|
+
controls,
|
|
24923
|
+
preload: "metadata",
|
|
24924
|
+
onLoadedData: onLoad,
|
|
24925
|
+
onError: handleError
|
|
24926
|
+
}
|
|
24927
|
+
) : kind === "audio" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24928
|
+
"audio",
|
|
24929
|
+
{
|
|
24930
|
+
src: resolvedSrc,
|
|
24931
|
+
className: cn3("w-full", classNames?.media),
|
|
24932
|
+
controls,
|
|
24933
|
+
preload: "metadata",
|
|
24934
|
+
onCanPlay: onLoad,
|
|
24935
|
+
onError: handleError
|
|
24936
|
+
}
|
|
24937
|
+
) : renderPlaceholder(
|
|
24938
|
+
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
24939
|
+
/* @__PURE__ */ jsxRuntime.jsx(PreviewIcon, { kind: "file" }),
|
|
24940
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-w-full truncate", children: title || resolvedSrc })
|
|
24941
|
+
] })
|
|
24942
|
+
);
|
|
24943
|
+
if (kind === "image") {
|
|
24944
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MediaPreviewFrame, { aspectRatio, className: cn3(classNames?.root, className), children: media });
|
|
24945
|
+
}
|
|
24946
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn3("min-w-0 overflow-hidden", classNames?.root, className), children: media });
|
|
24947
|
+
}
|
|
24809
24948
|
function DataExplorerPage({
|
|
24810
24949
|
sidebar,
|
|
24811
24950
|
tree,
|
|
@@ -25297,6 +25436,90 @@ function DataExplorerRecordPicker({
|
|
|
25297
25436
|
] }, option.value)) }) : null
|
|
25298
25437
|
] });
|
|
25299
25438
|
}
|
|
25439
|
+
function DataExplorerUploadSurface({
|
|
25440
|
+
accept,
|
|
25441
|
+
multiple = false,
|
|
25442
|
+
disabled = false,
|
|
25443
|
+
busy = false,
|
|
25444
|
+
title = "Upload files",
|
|
25445
|
+
description,
|
|
25446
|
+
hint,
|
|
25447
|
+
busyLabel = "Uploading...",
|
|
25448
|
+
icon,
|
|
25449
|
+
className,
|
|
25450
|
+
classNames,
|
|
25451
|
+
onFilesSelected
|
|
25452
|
+
}) {
|
|
25453
|
+
const inputRef = React4.useRef(null);
|
|
25454
|
+
const [isDragging, setIsDragging] = React4.useState(false);
|
|
25455
|
+
const emitFiles = (files) => {
|
|
25456
|
+
if (disabled || busy) return;
|
|
25457
|
+
const selected = Array.from(files);
|
|
25458
|
+
if (selected.length > 0) onFilesSelected?.(selected);
|
|
25459
|
+
};
|
|
25460
|
+
const handleDrop = (event) => {
|
|
25461
|
+
event.preventDefault();
|
|
25462
|
+
setIsDragging(false);
|
|
25463
|
+
emitFiles(event.dataTransfer.files);
|
|
25464
|
+
};
|
|
25465
|
+
const renderText = (value, fallbackClassName, slot) => value ? /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": slot, className: cn3(fallbackClassName), children: value }) : null;
|
|
25466
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
25467
|
+
"div",
|
|
25468
|
+
{
|
|
25469
|
+
"data-monkeys-component": "data-explorer-upload-surface",
|
|
25470
|
+
"data-state": busy ? "busy" : isDragging ? "dragging" : "idle",
|
|
25471
|
+
className: cn3(
|
|
25472
|
+
"rounded-[var(--radius)] border border-dashed border-border bg-muted/20 p-6 text-center transition-colors",
|
|
25473
|
+
isDragging && "border-primary/60 bg-primary/5",
|
|
25474
|
+
(disabled || busy) && "pointer-events-none opacity-60",
|
|
25475
|
+
classNames?.root,
|
|
25476
|
+
className
|
|
25477
|
+
),
|
|
25478
|
+
onDragEnter: (event) => {
|
|
25479
|
+
event.preventDefault();
|
|
25480
|
+
if (!disabled && !busy) setIsDragging(true);
|
|
25481
|
+
},
|
|
25482
|
+
onDragOver: (event) => event.preventDefault(),
|
|
25483
|
+
onDragLeave: (event) => {
|
|
25484
|
+
event.preventDefault();
|
|
25485
|
+
if (event.currentTarget === event.target) setIsDragging(false);
|
|
25486
|
+
},
|
|
25487
|
+
onDrop: handleDrop,
|
|
25488
|
+
children: [
|
|
25489
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25490
|
+
"input",
|
|
25491
|
+
{
|
|
25492
|
+
ref: inputRef,
|
|
25493
|
+
className: "sr-only",
|
|
25494
|
+
type: "file",
|
|
25495
|
+
accept,
|
|
25496
|
+
multiple,
|
|
25497
|
+
disabled: disabled || busy,
|
|
25498
|
+
onChange: (event) => {
|
|
25499
|
+
emitFiles(event.target.files ?? []);
|
|
25500
|
+
event.target.value = "";
|
|
25501
|
+
}
|
|
25502
|
+
}
|
|
25503
|
+
),
|
|
25504
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
25505
|
+
"button",
|
|
25506
|
+
{
|
|
25507
|
+
type: "button",
|
|
25508
|
+
className: cn3("mx-auto flex min-w-0 flex-col items-center gap-2 text-center", classNames?.button),
|
|
25509
|
+
disabled: disabled || busy,
|
|
25510
|
+
onClick: () => inputRef.current?.click(),
|
|
25511
|
+
children: [
|
|
25512
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn3("text-muted-foreground", classNames?.icon), children: busy ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block h-7 w-7 animate-spin rounded-full border-2 border-primary/25 border-t-primary", "aria-hidden": "true" }) : icon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UploadCloud, { className: "h-7 w-7", "aria-hidden": "true" }) }),
|
|
25513
|
+
renderText(busy ? busyLabel : title, "text-sm font-semibold text-foreground", "title"),
|
|
25514
|
+
renderText(description, "max-w-xl text-xs leading-5 text-muted-foreground", "description"),
|
|
25515
|
+
renderText(hint, "max-w-xl text-xs leading-5 text-muted-foreground", "hint")
|
|
25516
|
+
]
|
|
25517
|
+
}
|
|
25518
|
+
)
|
|
25519
|
+
]
|
|
25520
|
+
}
|
|
25521
|
+
);
|
|
25522
|
+
}
|
|
25300
25523
|
function DefaultSearchIcon() {
|
|
25301
25524
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
25302
25525
|
"svg",
|
|
@@ -34383,6 +34606,7 @@ exports.DataExplorerDisplayListItem = DataExplorerDisplayListItem;
|
|
|
34383
34606
|
exports.DataExplorerDisplayMedia = DataExplorerDisplayMedia;
|
|
34384
34607
|
exports.DataExplorerFilterBar = DataExplorerFilterBar;
|
|
34385
34608
|
exports.DataExplorerImagePreview = DataExplorerImagePreview;
|
|
34609
|
+
exports.DataExplorerMediaPreview = DataExplorerMediaPreview;
|
|
34386
34610
|
exports.DataExplorerPage = DataExplorerPage;
|
|
34387
34611
|
exports.DataExplorerRecordCard = DataExplorerRecordCard;
|
|
34388
34612
|
exports.DataExplorerRecordPicker = DataExplorerRecordPicker;
|
|
@@ -34391,6 +34615,7 @@ exports.DataExplorerToolbarActions = DataExplorerToolbarActions;
|
|
|
34391
34615
|
exports.DataExplorerToolbarShell = DataExplorerToolbarShell;
|
|
34392
34616
|
exports.DataExplorerTree = DataExplorerTree;
|
|
34393
34617
|
exports.DataExplorerTreeShell = DataExplorerTreeShell;
|
|
34618
|
+
exports.DataExplorerUploadSurface = DataExplorerUploadSurface;
|
|
34394
34619
|
exports.DataExplorerView = DataExplorerView;
|
|
34395
34620
|
exports.DataExplorerViewCollection = DataExplorerViewCollection;
|
|
34396
34621
|
exports.DataExplorerViewItem = DataExplorerViewItem;
|