@inf-monkeys-tech/monkeys-design 1.0.104 → 1.0.107
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 +61 -8
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +61 -8
- 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 +61 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -8
- 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/{theme-a44623472b15.d.mts → theme-6a0e4eb8e1c8.d.ts} +2 -2
- package/dist/{theme-88ae309f0f83.d.ts → theme-6fb6132629cb.d.mts} +2 -2
- package/dist/{types-c3e072f57261.d.mts → types-524c5b792610.d.mts} +57 -32
- package/dist/{types-c3e072f57261.d.ts → types-524c5b792610.d.ts} +57 -32
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-6fb6132629cb.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
4
|
-
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
|
|
3
|
+
import { aV as DataExplorerSplitButtonProps, aW as DataExplorerDraggableTreeProps } from '../../types-524c5b792610.mjs';
|
|
4
|
+
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 DataExplorerDataAttributes, p as DataExplorerDensity, q as DataExplorerDetailFieldClassNames, r as DataExplorerDetailFieldDefinition, s as DataExplorerDetailFieldProps, t as DataExplorerDetailNavigation, u as DataExplorerDetailSectionClassNames, v as DataExplorerDetailSectionDefinition, w as DataExplorerDetailSectionProps, x as DataExplorerDetailShellClassNames, y as DataExplorerDetailShellProps, z as DataExplorerDisplayAction, A as DataExplorerDisplayActionContext, B as DataExplorerDisplayActionMenuClassNames, C as DataExplorerDisplayActionMenuProps, E as DataExplorerDisplayBadge, F as DataExplorerDisplayCardClassNames, G as DataExplorerDisplayCardProps, H as DataExplorerDisplayCollectionItemContext, I as DataExplorerDisplayCollectionItemPropsResolver, J as DataExplorerDisplayCollectionViewProps, K as DataExplorerDisplayItem, L as DataExplorerDisplayListItemClassNames, M as DataExplorerDisplayListItemProps, N as DataExplorerDisplayMediaClassNames, O as DataExplorerDisplayMediaItem, P as DataExplorerDisplayMediaKind, Q as DataExplorerDisplayMediaProps, R as DataExplorerDisplayMetadata, aX as DataExplorerDraggableTreeClassNames, aY as DataExplorerDraggableTreeDragPayload, aZ as DataExplorerDraggableTreeFlattenedNode, a_ as DataExplorerDraggableTreeLabels, a$ as DataExplorerDraggableTreeNode, b0 as DataExplorerDraggableTreeRenderContext, S as DataExplorerFilterBarClassNames, T as DataExplorerFilterBarProps, U as DataExplorerHtmlAttributes, V as DataExplorerImagePreviewClassNames, W as DataExplorerImagePreviewNaturalSize, X as DataExplorerImagePreviewProps, Y as DataExplorerMeasuredGridOptions, Z as DataExplorerMediaPreviewClassNames, _ as DataExplorerMediaPreviewKind, $ as DataExplorerMediaPreviewProps, a0 as DataExplorerPageClassNames, a1 as DataExplorerPageProps, a2 as DataExplorerRadius, a3 as DataExplorerRecordCardClassNames, a4 as DataExplorerRecordCardProps, a5 as DataExplorerRecordPickerClassNames, a6 as DataExplorerRecordPickerOption, a7 as DataExplorerRecordPickerProps, a8 as DataExplorerResolvedTheme, a9 as DataExplorerResolver, aa as DataExplorerSelectClassNames, ab as DataExplorerSelectProps, b1 as DataExplorerSplitButtonClassNames, b2 as DataExplorerSplitButtonItem, ac as DataExplorerThemePresetId, ad as DataExplorerThemeSlots, ae as DataExplorerThemeStyles, af as DataExplorerToolbarAction, ag as DataExplorerToolbarActionItem, ah as DataExplorerToolbarActionKind, ai as DataExplorerToolbarActionOption, aj as DataExplorerToolbarActionsClassNames, ak as DataExplorerToolbarActionsLayout, al as DataExplorerToolbarActionsProps, am as DataExplorerToolbarShellClassNames, an as DataExplorerToolbarShellProps, ao as DataExplorerToolbarViewOption, ap as DataExplorerTreeClassNames, aq as DataExplorerTreeProps, ar as DataExplorerTreeRenderProps, as as DataExplorerTreeShellClassNames, at as DataExplorerTreeShellProps, au as DataExplorerUploadSurfaceClassNames, av as DataExplorerUploadSurfaceProps, aw as DataExplorerViewClassNames, ax as DataExplorerViewCollectionClassNames, ay as DataExplorerViewCollectionLayout, az as DataExplorerViewCollectionOptions, aA as DataExplorerViewCollectionProps, aB as DataExplorerViewDefinition, aC as DataExplorerViewId, aD as DataExplorerViewItemDefinition, aE as DataExplorerViewItemProps, aF as DataExplorerViewItemShellClassNames, aG as DataExplorerViewItemShellProps, aH as DataExplorerViewOption, aI as DataExplorerViewProps, aJ as DataExplorerViewRenderProps, aK as DataExplorerViewShellClassNames, aL as DataExplorerViewShellProps, aM as DataExplorerViewTreeAction, aN as DataExplorerViewTreeActionContext, aO as DataExplorerViewTreeClassNames, aP as DataExplorerViewTreeEntryType, aQ as DataExplorerViewTreeGroup, aR as DataExplorerViewTreeLabels, aS as DataExplorerViewTreeNode, aT as DataExplorerViewTreeProps, aU as DataExplorerViewTreeReorderPayload } from '../../types-524c5b792610.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
declare function DataExplorerSplitButton({ label, icon, items, onPrimaryAction, onAction, menuLabel, triggerLabel, title, tone, active, disabled, appearance, className, classNames, }: DataExplorerSplitButtonProps): react_jsx_runtime.JSX.Element;
|
|
7
7
|
declare function DataExplorerDraggableTree<TSource = unknown, TContext = unknown>({ nodes, context, selectedNodeId, expandedNodeIds, defaultExpandedNodeIds, resetExpansionKey, indentSize, activationMode, loading, empty, labels, appearance, itemRadius, className, classNames, renderNodeActions, renderNodeChildren, onSelectNode, onExpandedNodeIdsChange, onDragEnd, }: DataExplorerDraggableTreeProps<TSource, TContext>): react_jsx_runtime.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-6a0e4eb8e1c8.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
4
|
-
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
|
|
3
|
+
import { aV as DataExplorerSplitButtonProps, aW as DataExplorerDraggableTreeProps } from '../../types-524c5b792610.js';
|
|
4
|
+
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 DataExplorerDataAttributes, p as DataExplorerDensity, q as DataExplorerDetailFieldClassNames, r as DataExplorerDetailFieldDefinition, s as DataExplorerDetailFieldProps, t as DataExplorerDetailNavigation, u as DataExplorerDetailSectionClassNames, v as DataExplorerDetailSectionDefinition, w as DataExplorerDetailSectionProps, x as DataExplorerDetailShellClassNames, y as DataExplorerDetailShellProps, z as DataExplorerDisplayAction, A as DataExplorerDisplayActionContext, B as DataExplorerDisplayActionMenuClassNames, C as DataExplorerDisplayActionMenuProps, E as DataExplorerDisplayBadge, F as DataExplorerDisplayCardClassNames, G as DataExplorerDisplayCardProps, H as DataExplorerDisplayCollectionItemContext, I as DataExplorerDisplayCollectionItemPropsResolver, J as DataExplorerDisplayCollectionViewProps, K as DataExplorerDisplayItem, L as DataExplorerDisplayListItemClassNames, M as DataExplorerDisplayListItemProps, N as DataExplorerDisplayMediaClassNames, O as DataExplorerDisplayMediaItem, P as DataExplorerDisplayMediaKind, Q as DataExplorerDisplayMediaProps, R as DataExplorerDisplayMetadata, aX as DataExplorerDraggableTreeClassNames, aY as DataExplorerDraggableTreeDragPayload, aZ as DataExplorerDraggableTreeFlattenedNode, a_ as DataExplorerDraggableTreeLabels, a$ as DataExplorerDraggableTreeNode, b0 as DataExplorerDraggableTreeRenderContext, S as DataExplorerFilterBarClassNames, T as DataExplorerFilterBarProps, U as DataExplorerHtmlAttributes, V as DataExplorerImagePreviewClassNames, W as DataExplorerImagePreviewNaturalSize, X as DataExplorerImagePreviewProps, Y as DataExplorerMeasuredGridOptions, Z as DataExplorerMediaPreviewClassNames, _ as DataExplorerMediaPreviewKind, $ as DataExplorerMediaPreviewProps, a0 as DataExplorerPageClassNames, a1 as DataExplorerPageProps, a2 as DataExplorerRadius, a3 as DataExplorerRecordCardClassNames, a4 as DataExplorerRecordCardProps, a5 as DataExplorerRecordPickerClassNames, a6 as DataExplorerRecordPickerOption, a7 as DataExplorerRecordPickerProps, a8 as DataExplorerResolvedTheme, a9 as DataExplorerResolver, aa as DataExplorerSelectClassNames, ab as DataExplorerSelectProps, b1 as DataExplorerSplitButtonClassNames, b2 as DataExplorerSplitButtonItem, ac as DataExplorerThemePresetId, ad as DataExplorerThemeSlots, ae as DataExplorerThemeStyles, af as DataExplorerToolbarAction, ag as DataExplorerToolbarActionItem, ah as DataExplorerToolbarActionKind, ai as DataExplorerToolbarActionOption, aj as DataExplorerToolbarActionsClassNames, ak as DataExplorerToolbarActionsLayout, al as DataExplorerToolbarActionsProps, am as DataExplorerToolbarShellClassNames, an as DataExplorerToolbarShellProps, ao as DataExplorerToolbarViewOption, ap as DataExplorerTreeClassNames, aq as DataExplorerTreeProps, ar as DataExplorerTreeRenderProps, as as DataExplorerTreeShellClassNames, at as DataExplorerTreeShellProps, au as DataExplorerUploadSurfaceClassNames, av as DataExplorerUploadSurfaceProps, aw as DataExplorerViewClassNames, ax as DataExplorerViewCollectionClassNames, ay as DataExplorerViewCollectionLayout, az as DataExplorerViewCollectionOptions, aA as DataExplorerViewCollectionProps, aB as DataExplorerViewDefinition, aC as DataExplorerViewId, aD as DataExplorerViewItemDefinition, aE as DataExplorerViewItemProps, aF as DataExplorerViewItemShellClassNames, aG as DataExplorerViewItemShellProps, aH as DataExplorerViewOption, aI as DataExplorerViewProps, aJ as DataExplorerViewRenderProps, aK as DataExplorerViewShellClassNames, aL as DataExplorerViewShellProps, aM as DataExplorerViewTreeAction, aN as DataExplorerViewTreeActionContext, aO as DataExplorerViewTreeClassNames, aP as DataExplorerViewTreeEntryType, aQ as DataExplorerViewTreeGroup, aR as DataExplorerViewTreeLabels, aS as DataExplorerViewTreeNode, aT as DataExplorerViewTreeProps, aU as DataExplorerViewTreeReorderPayload } from '../../types-524c5b792610.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
declare function DataExplorerSplitButton({ label, icon, items, onPrimaryAction, onAction, menuLabel, triggerLabel, title, tone, active, disabled, appearance, className, classNames, }: DataExplorerSplitButtonProps): react_jsx_runtime.JSX.Element;
|
|
7
7
|
declare function DataExplorerDraggableTree<TSource = unknown, TContext = unknown>({ nodes, context, selectedNodeId, expandedNodeIds, defaultExpandedNodeIds, resetExpansionKey, indentSize, activationMode, loading, empty, labels, appearance, itemRadius, className, classNames, renderNodeActions, renderNodeChildren, onSelectNode, onExpandedNodeIdsChange, onDragEnd, }: DataExplorerDraggableTreeProps<TSource, TContext>): react_jsx_runtime.JSX.Element;
|
|
@@ -1074,8 +1074,8 @@ function DataExplorerActionBar({
|
|
|
1074
1074
|
classNames
|
|
1075
1075
|
}) {
|
|
1076
1076
|
const theme = resolveDataExplorerAppearance(appearance);
|
|
1077
|
-
const
|
|
1078
|
-
const hasRenderableContent =
|
|
1077
|
+
const hasContent2 = !!leading || !!trailing || !!children || actions.length > 0;
|
|
1078
|
+
const hasRenderableContent = hasContent2 || !!empty;
|
|
1079
1079
|
if (!hasRenderableContent) {
|
|
1080
1080
|
return null;
|
|
1081
1081
|
}
|
|
@@ -1096,7 +1096,7 @@ function DataExplorerActionBar({
|
|
|
1096
1096
|
actions,
|
|
1097
1097
|
layout: "action-bar",
|
|
1098
1098
|
appearance,
|
|
1099
|
-
empty: !
|
|
1099
|
+
empty: !hasContent2 ? empty : void 0,
|
|
1100
1100
|
classNames: {
|
|
1101
1101
|
root: classNames?.actions,
|
|
1102
1102
|
action: classNames?.action
|
|
@@ -3520,28 +3520,47 @@ function DataExplorerSplitButton({
|
|
|
3520
3520
|
) }) : null
|
|
3521
3521
|
] });
|
|
3522
3522
|
}
|
|
3523
|
+
function hasContent(value) {
|
|
3524
|
+
return value !== null && value !== void 0 && value !== false && value !== "";
|
|
3525
|
+
}
|
|
3523
3526
|
function DataExplorerDetailField({
|
|
3524
3527
|
field,
|
|
3525
3528
|
label = field?.label,
|
|
3526
3529
|
icon = field?.icon,
|
|
3527
3530
|
value = field?.value,
|
|
3531
|
+
helperText = field?.helperText,
|
|
3532
|
+
error = field?.error,
|
|
3533
|
+
required = field?.required ?? false,
|
|
3534
|
+
disabled = field?.disabled ?? false,
|
|
3528
3535
|
children,
|
|
3529
3536
|
context,
|
|
3530
3537
|
className,
|
|
3531
3538
|
valueClassName = field?.valueClassName,
|
|
3532
|
-
classNames
|
|
3539
|
+
classNames,
|
|
3540
|
+
dataAttributes = field?.dataAttributes,
|
|
3541
|
+
labelDataAttributes = field?.labelDataAttributes,
|
|
3542
|
+
valueDataAttributes = field?.valueDataAttributes,
|
|
3543
|
+
helperDataAttributes = field?.helperDataAttributes,
|
|
3544
|
+
errorDataAttributes = field?.errorDataAttributes
|
|
3533
3545
|
}) {
|
|
3534
3546
|
const resolvedClassNames = {
|
|
3535
3547
|
...field?.classNames,
|
|
3536
3548
|
...classNames
|
|
3537
3549
|
};
|
|
3538
3550
|
const content = children ?? (field?.render ? field.render(context) : value);
|
|
3551
|
+
const hasError = hasContent(error);
|
|
3539
3552
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3540
3553
|
"div",
|
|
3541
3554
|
{
|
|
3555
|
+
...dataAttributes,
|
|
3542
3556
|
title: field?.title,
|
|
3557
|
+
"aria-disabled": disabled || void 0,
|
|
3558
|
+
"data-disabled": disabled || void 0,
|
|
3559
|
+
"data-invalid": hasError || void 0,
|
|
3560
|
+
"data-required": required || void 0,
|
|
3543
3561
|
className: cn(
|
|
3544
3562
|
"space-y-1",
|
|
3563
|
+
disabled && "opacity-60",
|
|
3545
3564
|
resolvedClassNames.root,
|
|
3546
3565
|
field?.className,
|
|
3547
3566
|
className
|
|
@@ -3565,13 +3584,22 @@ function DataExplorerDetailField({
|
|
|
3565
3584
|
children: icon
|
|
3566
3585
|
}
|
|
3567
3586
|
) : null,
|
|
3568
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
|
|
3587
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { ...labelDataAttributes, children: label }),
|
|
3588
|
+
required ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3589
|
+
"span",
|
|
3590
|
+
{
|
|
3591
|
+
"aria-hidden": "true",
|
|
3592
|
+
className: cn("text-destructive-text", resolvedClassNames.required),
|
|
3593
|
+
children: "*"
|
|
3594
|
+
}
|
|
3595
|
+
) : null
|
|
3569
3596
|
]
|
|
3570
3597
|
}
|
|
3571
3598
|
),
|
|
3572
3599
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3573
3600
|
"div",
|
|
3574
3601
|
{
|
|
3602
|
+
...valueDataAttributes,
|
|
3575
3603
|
className: cn(
|
|
3576
3604
|
"text-[15px] leading-6 text-foreground",
|
|
3577
3605
|
resolvedClassNames.value,
|
|
@@ -3579,7 +3607,32 @@ function DataExplorerDetailField({
|
|
|
3579
3607
|
),
|
|
3580
3608
|
children: content
|
|
3581
3609
|
}
|
|
3582
|
-
)
|
|
3610
|
+
),
|
|
3611
|
+
hasContent(helperText) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3612
|
+
"div",
|
|
3613
|
+
{
|
|
3614
|
+
...helperDataAttributes,
|
|
3615
|
+
"data-slot": "helper",
|
|
3616
|
+
className: cn(
|
|
3617
|
+
"text-xs leading-5 text-muted-foreground",
|
|
3618
|
+
resolvedClassNames.helper
|
|
3619
|
+
),
|
|
3620
|
+
children: helperText
|
|
3621
|
+
}
|
|
3622
|
+
) : null,
|
|
3623
|
+
hasError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3624
|
+
"div",
|
|
3625
|
+
{
|
|
3626
|
+
...errorDataAttributes,
|
|
3627
|
+
role: "alert",
|
|
3628
|
+
"data-slot": "error",
|
|
3629
|
+
className: cn(
|
|
3630
|
+
"text-xs leading-5 text-destructive-text",
|
|
3631
|
+
resolvedClassNames.error
|
|
3632
|
+
),
|
|
3633
|
+
children: error
|
|
3634
|
+
}
|
|
3635
|
+
) : null
|
|
3583
3636
|
]
|
|
3584
3637
|
}
|
|
3585
3638
|
);
|
|
@@ -3602,8 +3655,8 @@ function DataExplorerDetailSection({
|
|
|
3602
3655
|
(field) => !(resolveDataExplorerValue(field.hidden, context) ?? false)
|
|
3603
3656
|
);
|
|
3604
3657
|
const sectionChildren = children ?? (typeof section?.children === "function" ? section.children(context) : section?.children);
|
|
3605
|
-
const
|
|
3606
|
-
if (!
|
|
3658
|
+
const hasContent2 = Boolean(sectionChildren) || visibleFields.length > 0;
|
|
3659
|
+
if (!hasContent2 || resolveDataExplorerValue(section?.hidden, context)) {
|
|
3607
3660
|
return null;
|
|
3608
3661
|
}
|
|
3609
3662
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|