@inf-monkeys-tech/monkeys-design 1.0.97 → 1.0.99
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 +183 -0
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +182 -1
- 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 +180 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -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-cfefa48a0db1.d.ts → theme-0fef4f282e64.d.mts} +3 -2
- package/dist/{theme-21107546ded5.d.mts → theme-169054c0dfb4.d.ts} +3 -2
- package/dist/{types-871f198ea40b.d.mts → types-e36d6f4b3ca8.d.mts} +65 -2
- package/dist/{types-871f198ea40b.d.ts → types-e36d6f4b3ca8.d.ts} +65 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { b as DataExplorerActionBarProps, g as DataExplorerButtonProps, j as DataExplorerCheckboxProps, l as DataExplorerCollectionFooterProps, S as DataExplorerFilterBarProps,
|
|
2
|
+
import { b as DataExplorerActionBarProps, g as DataExplorerButtonProps, j as DataExplorerCheckboxProps, l as DataExplorerCollectionFooterProps, S as DataExplorerFilterBarProps, a6 as DataExplorerSelectProps, ag as DataExplorerToolbarActionsProps, r as DataExplorerDetailFieldProps, v as DataExplorerDetailSectionProps, x as DataExplorerDetailShellProps, B as DataExplorerDisplayActionMenuProps, F as DataExplorerDisplayCardProps, I as DataExplorerDisplayCollectionViewProps, L as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaProps, V as DataExplorerImagePreviewProps, Y as DataExplorerPageProps, $ as DataExplorerRecordCardProps, a2 as DataExplorerRecordPickerProps, ai as DataExplorerToolbarShellProps, al as DataExplorerTreeProps, ao as DataExplorerTreeShellProps, aM as DataExplorerViewTreeProps, av as DataExplorerViewId, aB as DataExplorerViewProps, at as DataExplorerViewCollectionProps, ax as DataExplorerViewItemProps, az as DataExplorerViewItemShellProps, aE as DataExplorerViewShellProps, a3 as DataExplorerResolvedTheme, n as DataExplorerControlTone, c as DataExplorerAppearance } from './types-e36d6f4b3ca8.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function DataExplorerActionBar<TContext = unknown>({ context, actions, leading, trailing, children, empty, appearance, className, classNames, }: DataExplorerActionBarProps<TContext>): null | react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare const DataExplorerButton: React.ForwardRefExoticComponent<DataExplorerButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -19,6 +19,7 @@ declare function DataExplorerDisplayMedia<TSource = unknown>({ media, fallbackTi
|
|
|
19
19
|
declare function DataExplorerImagePreview({ src, alt, empty, actions, actionContext, toolbarActions, zoomStep, stagePadding, minScale, maxScale, controlsVisible, zoomLabelVisible, resetLabel, zoomInLabel, zoomOutLabel, appearance, className, classNames, onLoad, onError, }: DataExplorerImagePreviewProps): react_jsx_runtime.JSX.Element;
|
|
20
20
|
declare function DataExplorerPage({ sidebar, tree, toolbar, controls, notices, content, view, detail, appearance, className, classNames, }: DataExplorerPageProps): react_jsx_runtime.JSX.Element;
|
|
21
21
|
declare function DataExplorerRecordCard<TSource = unknown>({ item, selected, active, disabled, hasMedia, showHeaderWithMedia, selectionVisible, favoriteVisible, overlayControlsAlwaysVisible, favoriteActive, favoriteLabel, favoriteActiveLabel, selectLabel, unselectLabel, actions, media, footer, checkbox, favorite, keywordLimit, appearance, className, classNames, onClick, onToggleSelection, onToggleFavorite, }: DataExplorerRecordCardProps<TSource>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function DataExplorerRecordPicker({ value, activeValue, options, createOption, multiple, placeholder, triggerLabel, triggerIcon, searchPlaceholder, emptyState, loadingState, errorState, loading, disabled, open, defaultOpen, searchValue, defaultSearchValue, appearance, className, classNames, triggerProps, dataAttributes, onOpenChange, onListScroll, onSearchValueChange, onValueChange, }: DataExplorerRecordPickerProps): react_jsx_runtime.JSX.Element;
|
|
22
23
|
declare function DataExplorerToolbarShell<TContext = unknown>({ context, leading, leadingActions, searchValue, searchPlaceholder, searchIcon, viewOptions, activeViewId, actions, toolbarActions, appearance, children, className, classNames, onSearchChange, onSearchSubmit, onViewChange, }: DataExplorerToolbarShellProps<TContext>): react_jsx_runtime.JSX.Element;
|
|
23
24
|
declare function DataExplorerTree<TNode = unknown, TContext = unknown>({ nodes, context, capabilities, className, classNames, empty, selectedNodeId, getNodeId, getChildren, renderNode, onSelect, }: DataExplorerTreeProps<TNode, TContext>): null | react_jsx_runtime.JSX.Element;
|
|
24
25
|
declare function DataExplorerTreeShell({ title, subtitle, toolbar, footer, children, className, classNames, }: DataExplorerTreeShellProps): react_jsx_runtime.JSX.Element;
|
|
@@ -31,4 +32,4 @@ declare function DataExplorerViewShell({ header, footer, overlay, empty, isEmpty
|
|
|
31
32
|
declare function resolveDataExplorerAppearance(appearance?: DataExplorerAppearance): DataExplorerResolvedTheme;
|
|
32
33
|
declare function getDataExplorerActionToneClassName(theme: DataExplorerResolvedTheme, tone: DataExplorerControlTone | undefined, active: boolean): string;
|
|
33
34
|
declare function getDataExplorerMenuItemToneClassName(theme: DataExplorerResolvedTheme, tone: DataExplorerControlTone | undefined): string | undefined;
|
|
34
|
-
export {
|
|
35
|
+
export { DataExplorerViewTree as A, getDataExplorerActionToneClassName as B, getDataExplorerMenuItemToneClassName as C, DataExplorerActionBar as D, resolveDataExplorerAppearance as E, DataExplorerButton as a, DataExplorerCheckbox as b, DataExplorerCollectionFooter as c, DataExplorerDetailField as d, DataExplorerDetailSection as e, DataExplorerDetailShell as f, DataExplorerDisplayActionMenu as g, DataExplorerDisplayCard as h, DataExplorerDisplayCollectionView as i, DataExplorerDisplayListItem as j, DataExplorerDisplayMedia as k, DataExplorerFilterBar as l, DataExplorerImagePreview as m, DataExplorerPage as n, DataExplorerRecordCard as o, DataExplorerRecordPicker as p, DataExplorerSelect as q, DataExplorerToolbarActions as r, DataExplorerToolbarShell as s, DataExplorerTree as t, DataExplorerTreeShell as u, DataExplorerView as v, DataExplorerViewCollection as w, DataExplorerViewItem as x, DataExplorerViewItemShell as y, DataExplorerViewShell as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { b as DataExplorerActionBarProps, g as DataExplorerButtonProps, j as DataExplorerCheckboxProps, l as DataExplorerCollectionFooterProps, S as DataExplorerFilterBarProps,
|
|
2
|
+
import { b as DataExplorerActionBarProps, g as DataExplorerButtonProps, j as DataExplorerCheckboxProps, l as DataExplorerCollectionFooterProps, S as DataExplorerFilterBarProps, a6 as DataExplorerSelectProps, ag as DataExplorerToolbarActionsProps, r as DataExplorerDetailFieldProps, v as DataExplorerDetailSectionProps, x as DataExplorerDetailShellProps, B as DataExplorerDisplayActionMenuProps, F as DataExplorerDisplayCardProps, I as DataExplorerDisplayCollectionViewProps, L as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaProps, V as DataExplorerImagePreviewProps, Y as DataExplorerPageProps, $ as DataExplorerRecordCardProps, a2 as DataExplorerRecordPickerProps, ai as DataExplorerToolbarShellProps, al as DataExplorerTreeProps, ao as DataExplorerTreeShellProps, aM as DataExplorerViewTreeProps, av as DataExplorerViewId, aB as DataExplorerViewProps, at as DataExplorerViewCollectionProps, ax as DataExplorerViewItemProps, az as DataExplorerViewItemShellProps, aE as DataExplorerViewShellProps, a3 as DataExplorerResolvedTheme, n as DataExplorerControlTone, c as DataExplorerAppearance } from './types-e36d6f4b3ca8.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function DataExplorerActionBar<TContext = unknown>({ context, actions, leading, trailing, children, empty, appearance, className, classNames, }: DataExplorerActionBarProps<TContext>): null | react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare const DataExplorerButton: React.ForwardRefExoticComponent<DataExplorerButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -19,6 +19,7 @@ declare function DataExplorerDisplayMedia<TSource = unknown>({ media, fallbackTi
|
|
|
19
19
|
declare function DataExplorerImagePreview({ src, alt, empty, actions, actionContext, toolbarActions, zoomStep, stagePadding, minScale, maxScale, controlsVisible, zoomLabelVisible, resetLabel, zoomInLabel, zoomOutLabel, appearance, className, classNames, onLoad, onError, }: DataExplorerImagePreviewProps): react_jsx_runtime.JSX.Element;
|
|
20
20
|
declare function DataExplorerPage({ sidebar, tree, toolbar, controls, notices, content, view, detail, appearance, className, classNames, }: DataExplorerPageProps): react_jsx_runtime.JSX.Element;
|
|
21
21
|
declare function DataExplorerRecordCard<TSource = unknown>({ item, selected, active, disabled, hasMedia, showHeaderWithMedia, selectionVisible, favoriteVisible, overlayControlsAlwaysVisible, favoriteActive, favoriteLabel, favoriteActiveLabel, selectLabel, unselectLabel, actions, media, footer, checkbox, favorite, keywordLimit, appearance, className, classNames, onClick, onToggleSelection, onToggleFavorite, }: DataExplorerRecordCardProps<TSource>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function DataExplorerRecordPicker({ value, activeValue, options, createOption, multiple, placeholder, triggerLabel, triggerIcon, searchPlaceholder, emptyState, loadingState, errorState, loading, disabled, open, defaultOpen, searchValue, defaultSearchValue, appearance, className, classNames, triggerProps, dataAttributes, onOpenChange, onListScroll, onSearchValueChange, onValueChange, }: DataExplorerRecordPickerProps): react_jsx_runtime.JSX.Element;
|
|
22
23
|
declare function DataExplorerToolbarShell<TContext = unknown>({ context, leading, leadingActions, searchValue, searchPlaceholder, searchIcon, viewOptions, activeViewId, actions, toolbarActions, appearance, children, className, classNames, onSearchChange, onSearchSubmit, onViewChange, }: DataExplorerToolbarShellProps<TContext>): react_jsx_runtime.JSX.Element;
|
|
23
24
|
declare function DataExplorerTree<TNode = unknown, TContext = unknown>({ nodes, context, capabilities, className, classNames, empty, selectedNodeId, getNodeId, getChildren, renderNode, onSelect, }: DataExplorerTreeProps<TNode, TContext>): null | react_jsx_runtime.JSX.Element;
|
|
24
25
|
declare function DataExplorerTreeShell({ title, subtitle, toolbar, footer, children, className, classNames, }: DataExplorerTreeShellProps): react_jsx_runtime.JSX.Element;
|
|
@@ -31,4 +32,4 @@ declare function DataExplorerViewShell({ header, footer, overlay, empty, isEmpty
|
|
|
31
32
|
declare function resolveDataExplorerAppearance(appearance?: DataExplorerAppearance): DataExplorerResolvedTheme;
|
|
32
33
|
declare function getDataExplorerActionToneClassName(theme: DataExplorerResolvedTheme, tone: DataExplorerControlTone | undefined, active: boolean): string;
|
|
33
34
|
declare function getDataExplorerMenuItemToneClassName(theme: DataExplorerResolvedTheme, tone: DataExplorerControlTone | undefined): string | undefined;
|
|
34
|
-
export {
|
|
35
|
+
export { DataExplorerViewTree as A, getDataExplorerActionToneClassName as B, getDataExplorerMenuItemToneClassName as C, DataExplorerActionBar as D, resolveDataExplorerAppearance as E, DataExplorerButton as a, DataExplorerCheckbox as b, DataExplorerCollectionFooter as c, DataExplorerDetailField as d, DataExplorerDetailSection as e, DataExplorerDetailShell as f, DataExplorerDisplayActionMenu as g, DataExplorerDisplayCard as h, DataExplorerDisplayCollectionView as i, DataExplorerDisplayListItem as j, DataExplorerDisplayMedia as k, DataExplorerFilterBar as l, DataExplorerImagePreview as m, DataExplorerPage as n, DataExplorerRecordCard as o, DataExplorerRecordPicker as p, DataExplorerSelect as q, DataExplorerToolbarActions as r, DataExplorerToolbarShell as s, DataExplorerTree as t, DataExplorerTreeShell as u, DataExplorerView as v, DataExplorerViewCollection as w, DataExplorerViewItem as x, DataExplorerViewItemShell as y, DataExplorerViewShell as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties, ButtonHTMLAttributes, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, ReactEventHandler } from 'react';
|
|
1
|
+
import { ReactNode, CSSProperties, ButtonHTMLAttributes, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, ReactEventHandler, UIEvent } from 'react';
|
|
2
2
|
type DataExplorerResolver<TValue, TContext = unknown> = ((context: TContext) => TValue) | TValue;
|
|
3
3
|
interface DataExplorerCapabilities {
|
|
4
4
|
canRead?: boolean;
|
|
@@ -1158,6 +1158,69 @@ interface DataExplorerRecordCardProps<TSource = unknown> {
|
|
|
1158
1158
|
onToggleSelection?: (item: DataExplorerDisplayItem<TSource>) => void;
|
|
1159
1159
|
onToggleFavorite?: (item: DataExplorerDisplayItem<TSource>) => void;
|
|
1160
1160
|
}
|
|
1161
|
+
interface DataExplorerRecordPickerOption {
|
|
1162
|
+
value: string;
|
|
1163
|
+
label: ReactNode;
|
|
1164
|
+
description?: ReactNode;
|
|
1165
|
+
textValue?: string;
|
|
1166
|
+
disabled?: boolean;
|
|
1167
|
+
}
|
|
1168
|
+
interface DataExplorerRecordPickerClassNames {
|
|
1169
|
+
root?: string;
|
|
1170
|
+
trigger?: string;
|
|
1171
|
+
triggerValue?: string;
|
|
1172
|
+
content?: string;
|
|
1173
|
+
search?: string;
|
|
1174
|
+
list?: string;
|
|
1175
|
+
option?: string;
|
|
1176
|
+
optionIndicator?: string;
|
|
1177
|
+
optionLabel?: string;
|
|
1178
|
+
optionDescription?: string;
|
|
1179
|
+
selectedList?: string;
|
|
1180
|
+
selectedItem?: string;
|
|
1181
|
+
selectedItemLabel?: string;
|
|
1182
|
+
selectedItemRemove?: string;
|
|
1183
|
+
status?: string;
|
|
1184
|
+
}
|
|
1185
|
+
interface DataExplorerRecordPickerProps {
|
|
1186
|
+
value?: string | string[];
|
|
1187
|
+
activeValue?: string;
|
|
1188
|
+
options?: DataExplorerRecordPickerOption[];
|
|
1189
|
+
createOption?: DataExplorerRecordPickerOption;
|
|
1190
|
+
multiple?: boolean;
|
|
1191
|
+
placeholder?: ReactNode;
|
|
1192
|
+
triggerLabel?: string;
|
|
1193
|
+
triggerIcon?: ReactNode;
|
|
1194
|
+
searchPlaceholder?: string;
|
|
1195
|
+
emptyState?: ReactNode;
|
|
1196
|
+
loadingState?: ReactNode;
|
|
1197
|
+
errorState?: ReactNode;
|
|
1198
|
+
loading?: boolean;
|
|
1199
|
+
disabled?: boolean;
|
|
1200
|
+
open?: boolean;
|
|
1201
|
+
defaultOpen?: boolean;
|
|
1202
|
+
searchValue?: string;
|
|
1203
|
+
defaultSearchValue?: string;
|
|
1204
|
+
appearance?: DataExplorerAppearance;
|
|
1205
|
+
className?: string;
|
|
1206
|
+
classNames?: DataExplorerRecordPickerClassNames;
|
|
1207
|
+
triggerProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'className' | 'disabled' | 'type'>;
|
|
1208
|
+
dataAttributes?: {
|
|
1209
|
+
root?: Record<string, string | undefined>;
|
|
1210
|
+
trigger?: Record<string, string | undefined>;
|
|
1211
|
+
triggerValue?: Record<string, string | undefined>;
|
|
1212
|
+
content?: Record<string, string | undefined>;
|
|
1213
|
+
list?: Record<string, string | undefined>;
|
|
1214
|
+
option?: Record<string, string | undefined>;
|
|
1215
|
+
loading?: Record<string, string | undefined>;
|
|
1216
|
+
error?: Record<string, string | undefined>;
|
|
1217
|
+
empty?: Record<string, string | undefined>;
|
|
1218
|
+
};
|
|
1219
|
+
onOpenChange?: (open: boolean) => void;
|
|
1220
|
+
onListScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
1221
|
+
onSearchValueChange?: (value: string) => void;
|
|
1222
|
+
onValueChange?: (value: string | string[]) => void;
|
|
1223
|
+
}
|
|
1161
1224
|
interface DataExplorerCollectionFooterClassNames {
|
|
1162
1225
|
root?: string;
|
|
1163
1226
|
summary?: string;
|
|
@@ -1276,4 +1339,4 @@ interface DataExplorerDisplayCollectionItemContext<TSource = unknown> {
|
|
|
1276
1339
|
layout: DataExplorerViewCollectionLayout;
|
|
1277
1340
|
}
|
|
1278
1341
|
type DataExplorerDisplayCollectionItemPropsResolver<TProps, TSource = unknown> = ((context: DataExplorerDisplayCollectionItemContext<TSource>) => Partial<TProps> | undefined) | Partial<TProps>;
|
|
1279
|
-
export type { DataExplorerRecordCardProps as $, DataExplorerDisplayActionMenuClassNames as A, DataExplorerDisplayActionMenuProps as B, DataExplorerDisplayBadge as C, DataExplorerAction as D, DataExplorerDisplayCardClassNames as E, DataExplorerDisplayCardProps as F, DataExplorerDisplayCollectionItemContext as G, DataExplorerDisplayCollectionItemPropsResolver as H, DataExplorerDisplayCollectionViewProps as I, DataExplorerDisplayItem as J, DataExplorerDisplayListItemClassNames as K, DataExplorerDisplayListItemProps as L, DataExplorerDisplayMediaClassNames as M, DataExplorerDisplayMediaItem as N, DataExplorerDisplayMediaKind as O, DataExplorerDisplayMediaProps as P, DataExplorerDisplayMetadata as Q, DataExplorerFilterBarClassNames as R, DataExplorerFilterBarProps as S, DataExplorerImagePreviewClassNames as T, DataExplorerImagePreviewNaturalSize as U, DataExplorerImagePreviewProps as V, DataExplorerMeasuredGridOptions as W, DataExplorerPageClassNames as X, DataExplorerPageProps as Y, DataExplorerRadius as Z, DataExplorerRecordCardClassNames as _, DataExplorerActionBarClassNames as a,
|
|
1342
|
+
export type { DataExplorerRecordCardProps as $, DataExplorerDisplayActionMenuClassNames as A, DataExplorerDisplayActionMenuProps as B, DataExplorerDisplayBadge as C, DataExplorerAction as D, DataExplorerDisplayCardClassNames as E, DataExplorerDisplayCardProps as F, DataExplorerDisplayCollectionItemContext as G, DataExplorerDisplayCollectionItemPropsResolver as H, DataExplorerDisplayCollectionViewProps as I, DataExplorerDisplayItem as J, DataExplorerDisplayListItemClassNames as K, DataExplorerDisplayListItemProps as L, DataExplorerDisplayMediaClassNames as M, DataExplorerDisplayMediaItem as N, DataExplorerDisplayMediaKind as O, DataExplorerDisplayMediaProps as P, DataExplorerDisplayMetadata as Q, DataExplorerFilterBarClassNames as R, DataExplorerFilterBarProps as S, DataExplorerImagePreviewClassNames as T, DataExplorerImagePreviewNaturalSize as U, DataExplorerImagePreviewProps as V, DataExplorerMeasuredGridOptions as W, DataExplorerPageClassNames as X, DataExplorerPageProps as Y, DataExplorerRadius as Z, DataExplorerRecordCardClassNames as _, DataExplorerActionBarClassNames as a, DataExplorerRecordPickerClassNames as a0, DataExplorerRecordPickerOption as a1, DataExplorerRecordPickerProps as a2, DataExplorerResolvedTheme as a3, DataExplorerResolver as a4, DataExplorerSelectClassNames as a5, DataExplorerSelectProps as a6, DataExplorerThemePresetId as a7, DataExplorerThemeSlots as a8, DataExplorerThemeStyles as a9, DataExplorerViewOption as aA, DataExplorerViewProps as aB, DataExplorerViewRenderProps as aC, DataExplorerViewShellClassNames as aD, DataExplorerViewShellProps as aE, DataExplorerViewTreeAction as aF, DataExplorerViewTreeActionContext as aG, DataExplorerViewTreeClassNames as aH, DataExplorerViewTreeEntryType as aI, DataExplorerViewTreeGroup as aJ, DataExplorerViewTreeLabels as aK, DataExplorerViewTreeNode as aL, DataExplorerViewTreeProps as aM, DataExplorerViewTreeReorderPayload as aN, DataExplorerSplitButtonProps as aO, DataExplorerDraggableTreeProps as aP, DataExplorerDraggableTreeClassNames as aQ, DataExplorerDraggableTreeDragPayload as aR, DataExplorerDraggableTreeFlattenedNode as aS, DataExplorerDraggableTreeLabels as aT, DataExplorerDraggableTreeNode as aU, DataExplorerDraggableTreeRenderContext as aV, DataExplorerSplitButtonClassNames as aW, DataExplorerSplitButtonItem as aX, DataExplorerToolbarAction as aa, DataExplorerToolbarActionItem as ab, DataExplorerToolbarActionKind as ac, DataExplorerToolbarActionOption as ad, DataExplorerToolbarActionsClassNames as ae, DataExplorerToolbarActionsLayout as af, DataExplorerToolbarActionsProps as ag, DataExplorerToolbarShellClassNames as ah, DataExplorerToolbarShellProps as ai, DataExplorerToolbarViewOption as aj, DataExplorerTreeClassNames as ak, DataExplorerTreeProps as al, DataExplorerTreeRenderProps as am, DataExplorerTreeShellClassNames as an, DataExplorerTreeShellProps as ao, DataExplorerViewClassNames as ap, DataExplorerViewCollectionClassNames as aq, DataExplorerViewCollectionLayout as ar, DataExplorerViewCollectionOptions as as, DataExplorerViewCollectionProps as at, DataExplorerViewDefinition as au, DataExplorerViewId as av, DataExplorerViewItemDefinition as aw, DataExplorerViewItemProps as ax, DataExplorerViewItemShellClassNames as ay, DataExplorerViewItemShellProps as az, DataExplorerActionBarProps as b, DataExplorerAppearance as c, DataExplorerBackground as d, DataExplorerBorder as e, DataExplorerButtonClassNames as f, DataExplorerButtonProps as g, DataExplorerCapabilities as h, DataExplorerCheckboxClassNames as i, DataExplorerCheckboxProps as j, DataExplorerCollectionFooterClassNames as k, DataExplorerCollectionFooterProps as l, DataExplorerControlOption as m, DataExplorerControlTone as n, DataExplorerDensity as o, DataExplorerDetailFieldClassNames as p, DataExplorerDetailFieldDefinition as q, DataExplorerDetailFieldProps as r, DataExplorerDetailNavigation as s, DataExplorerDetailSectionClassNames as t, DataExplorerDetailSectionDefinition as u, DataExplorerDetailSectionProps as v, DataExplorerDetailShellClassNames as w, DataExplorerDetailShellProps as x, DataExplorerDisplayAction as y, DataExplorerDisplayActionContext as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties, ButtonHTMLAttributes, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, ReactEventHandler } from 'react';
|
|
1
|
+
import { ReactNode, CSSProperties, ButtonHTMLAttributes, MouseEventHandler, KeyboardEventHandler, HTMLAttributes, ReactEventHandler, UIEvent } from 'react';
|
|
2
2
|
type DataExplorerResolver<TValue, TContext = unknown> = ((context: TContext) => TValue) | TValue;
|
|
3
3
|
interface DataExplorerCapabilities {
|
|
4
4
|
canRead?: boolean;
|
|
@@ -1158,6 +1158,69 @@ interface DataExplorerRecordCardProps<TSource = unknown> {
|
|
|
1158
1158
|
onToggleSelection?: (item: DataExplorerDisplayItem<TSource>) => void;
|
|
1159
1159
|
onToggleFavorite?: (item: DataExplorerDisplayItem<TSource>) => void;
|
|
1160
1160
|
}
|
|
1161
|
+
interface DataExplorerRecordPickerOption {
|
|
1162
|
+
value: string;
|
|
1163
|
+
label: ReactNode;
|
|
1164
|
+
description?: ReactNode;
|
|
1165
|
+
textValue?: string;
|
|
1166
|
+
disabled?: boolean;
|
|
1167
|
+
}
|
|
1168
|
+
interface DataExplorerRecordPickerClassNames {
|
|
1169
|
+
root?: string;
|
|
1170
|
+
trigger?: string;
|
|
1171
|
+
triggerValue?: string;
|
|
1172
|
+
content?: string;
|
|
1173
|
+
search?: string;
|
|
1174
|
+
list?: string;
|
|
1175
|
+
option?: string;
|
|
1176
|
+
optionIndicator?: string;
|
|
1177
|
+
optionLabel?: string;
|
|
1178
|
+
optionDescription?: string;
|
|
1179
|
+
selectedList?: string;
|
|
1180
|
+
selectedItem?: string;
|
|
1181
|
+
selectedItemLabel?: string;
|
|
1182
|
+
selectedItemRemove?: string;
|
|
1183
|
+
status?: string;
|
|
1184
|
+
}
|
|
1185
|
+
interface DataExplorerRecordPickerProps {
|
|
1186
|
+
value?: string | string[];
|
|
1187
|
+
activeValue?: string;
|
|
1188
|
+
options?: DataExplorerRecordPickerOption[];
|
|
1189
|
+
createOption?: DataExplorerRecordPickerOption;
|
|
1190
|
+
multiple?: boolean;
|
|
1191
|
+
placeholder?: ReactNode;
|
|
1192
|
+
triggerLabel?: string;
|
|
1193
|
+
triggerIcon?: ReactNode;
|
|
1194
|
+
searchPlaceholder?: string;
|
|
1195
|
+
emptyState?: ReactNode;
|
|
1196
|
+
loadingState?: ReactNode;
|
|
1197
|
+
errorState?: ReactNode;
|
|
1198
|
+
loading?: boolean;
|
|
1199
|
+
disabled?: boolean;
|
|
1200
|
+
open?: boolean;
|
|
1201
|
+
defaultOpen?: boolean;
|
|
1202
|
+
searchValue?: string;
|
|
1203
|
+
defaultSearchValue?: string;
|
|
1204
|
+
appearance?: DataExplorerAppearance;
|
|
1205
|
+
className?: string;
|
|
1206
|
+
classNames?: DataExplorerRecordPickerClassNames;
|
|
1207
|
+
triggerProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'className' | 'disabled' | 'type'>;
|
|
1208
|
+
dataAttributes?: {
|
|
1209
|
+
root?: Record<string, string | undefined>;
|
|
1210
|
+
trigger?: Record<string, string | undefined>;
|
|
1211
|
+
triggerValue?: Record<string, string | undefined>;
|
|
1212
|
+
content?: Record<string, string | undefined>;
|
|
1213
|
+
list?: Record<string, string | undefined>;
|
|
1214
|
+
option?: Record<string, string | undefined>;
|
|
1215
|
+
loading?: Record<string, string | undefined>;
|
|
1216
|
+
error?: Record<string, string | undefined>;
|
|
1217
|
+
empty?: Record<string, string | undefined>;
|
|
1218
|
+
};
|
|
1219
|
+
onOpenChange?: (open: boolean) => void;
|
|
1220
|
+
onListScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
1221
|
+
onSearchValueChange?: (value: string) => void;
|
|
1222
|
+
onValueChange?: (value: string | string[]) => void;
|
|
1223
|
+
}
|
|
1161
1224
|
interface DataExplorerCollectionFooterClassNames {
|
|
1162
1225
|
root?: string;
|
|
1163
1226
|
summary?: string;
|
|
@@ -1276,4 +1339,4 @@ interface DataExplorerDisplayCollectionItemContext<TSource = unknown> {
|
|
|
1276
1339
|
layout: DataExplorerViewCollectionLayout;
|
|
1277
1340
|
}
|
|
1278
1341
|
type DataExplorerDisplayCollectionItemPropsResolver<TProps, TSource = unknown> = ((context: DataExplorerDisplayCollectionItemContext<TSource>) => Partial<TProps> | undefined) | Partial<TProps>;
|
|
1279
|
-
export type { DataExplorerRecordCardProps as $, DataExplorerDisplayActionMenuClassNames as A, DataExplorerDisplayActionMenuProps as B, DataExplorerDisplayBadge as C, DataExplorerAction as D, DataExplorerDisplayCardClassNames as E, DataExplorerDisplayCardProps as F, DataExplorerDisplayCollectionItemContext as G, DataExplorerDisplayCollectionItemPropsResolver as H, DataExplorerDisplayCollectionViewProps as I, DataExplorerDisplayItem as J, DataExplorerDisplayListItemClassNames as K, DataExplorerDisplayListItemProps as L, DataExplorerDisplayMediaClassNames as M, DataExplorerDisplayMediaItem as N, DataExplorerDisplayMediaKind as O, DataExplorerDisplayMediaProps as P, DataExplorerDisplayMetadata as Q, DataExplorerFilterBarClassNames as R, DataExplorerFilterBarProps as S, DataExplorerImagePreviewClassNames as T, DataExplorerImagePreviewNaturalSize as U, DataExplorerImagePreviewProps as V, DataExplorerMeasuredGridOptions as W, DataExplorerPageClassNames as X, DataExplorerPageProps as Y, DataExplorerRadius as Z, DataExplorerRecordCardClassNames as _, DataExplorerActionBarClassNames as a,
|
|
1342
|
+
export type { DataExplorerRecordCardProps as $, DataExplorerDisplayActionMenuClassNames as A, DataExplorerDisplayActionMenuProps as B, DataExplorerDisplayBadge as C, DataExplorerAction as D, DataExplorerDisplayCardClassNames as E, DataExplorerDisplayCardProps as F, DataExplorerDisplayCollectionItemContext as G, DataExplorerDisplayCollectionItemPropsResolver as H, DataExplorerDisplayCollectionViewProps as I, DataExplorerDisplayItem as J, DataExplorerDisplayListItemClassNames as K, DataExplorerDisplayListItemProps as L, DataExplorerDisplayMediaClassNames as M, DataExplorerDisplayMediaItem as N, DataExplorerDisplayMediaKind as O, DataExplorerDisplayMediaProps as P, DataExplorerDisplayMetadata as Q, DataExplorerFilterBarClassNames as R, DataExplorerFilterBarProps as S, DataExplorerImagePreviewClassNames as T, DataExplorerImagePreviewNaturalSize as U, DataExplorerImagePreviewProps as V, DataExplorerMeasuredGridOptions as W, DataExplorerPageClassNames as X, DataExplorerPageProps as Y, DataExplorerRadius as Z, DataExplorerRecordCardClassNames as _, DataExplorerActionBarClassNames as a, DataExplorerRecordPickerClassNames as a0, DataExplorerRecordPickerOption as a1, DataExplorerRecordPickerProps as a2, DataExplorerResolvedTheme as a3, DataExplorerResolver as a4, DataExplorerSelectClassNames as a5, DataExplorerSelectProps as a6, DataExplorerThemePresetId as a7, DataExplorerThemeSlots as a8, DataExplorerThemeStyles as a9, DataExplorerViewOption as aA, DataExplorerViewProps as aB, DataExplorerViewRenderProps as aC, DataExplorerViewShellClassNames as aD, DataExplorerViewShellProps as aE, DataExplorerViewTreeAction as aF, DataExplorerViewTreeActionContext as aG, DataExplorerViewTreeClassNames as aH, DataExplorerViewTreeEntryType as aI, DataExplorerViewTreeGroup as aJ, DataExplorerViewTreeLabels as aK, DataExplorerViewTreeNode as aL, DataExplorerViewTreeProps as aM, DataExplorerViewTreeReorderPayload as aN, DataExplorerSplitButtonProps as aO, DataExplorerDraggableTreeProps as aP, DataExplorerDraggableTreeClassNames as aQ, DataExplorerDraggableTreeDragPayload as aR, DataExplorerDraggableTreeFlattenedNode as aS, DataExplorerDraggableTreeLabels as aT, DataExplorerDraggableTreeNode as aU, DataExplorerDraggableTreeRenderContext as aV, DataExplorerSplitButtonClassNames as aW, DataExplorerSplitButtonItem as aX, DataExplorerToolbarAction as aa, DataExplorerToolbarActionItem as ab, DataExplorerToolbarActionKind as ac, DataExplorerToolbarActionOption as ad, DataExplorerToolbarActionsClassNames as ae, DataExplorerToolbarActionsLayout as af, DataExplorerToolbarActionsProps as ag, DataExplorerToolbarShellClassNames as ah, DataExplorerToolbarShellProps as ai, DataExplorerToolbarViewOption as aj, DataExplorerTreeClassNames as ak, DataExplorerTreeProps as al, DataExplorerTreeRenderProps as am, DataExplorerTreeShellClassNames as an, DataExplorerTreeShellProps as ao, DataExplorerViewClassNames as ap, DataExplorerViewCollectionClassNames as aq, DataExplorerViewCollectionLayout as ar, DataExplorerViewCollectionOptions as as, DataExplorerViewCollectionProps as at, DataExplorerViewDefinition as au, DataExplorerViewId as av, DataExplorerViewItemDefinition as aw, DataExplorerViewItemProps as ax, DataExplorerViewItemShellClassNames as ay, DataExplorerViewItemShellProps as az, DataExplorerActionBarProps as b, DataExplorerAppearance as c, DataExplorerBackground as d, DataExplorerBorder as e, DataExplorerButtonClassNames as f, DataExplorerButtonProps as g, DataExplorerCapabilities as h, DataExplorerCheckboxClassNames as i, DataExplorerCheckboxProps as j, DataExplorerCollectionFooterClassNames as k, DataExplorerCollectionFooterProps as l, DataExplorerControlOption as m, DataExplorerControlTone as n, DataExplorerDensity as o, DataExplorerDetailFieldClassNames as p, DataExplorerDetailFieldDefinition as q, DataExplorerDetailFieldProps as r, DataExplorerDetailNavigation as s, DataExplorerDetailSectionClassNames as t, DataExplorerDetailSectionDefinition as u, DataExplorerDetailSectionProps as v, DataExplorerDetailShellClassNames as w, DataExplorerDetailShellProps as x, DataExplorerDisplayAction as y, DataExplorerDisplayActionContext as z };
|