@inf-monkeys-tech/monkeys-design 0.4.55 → 0.4.56
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/README.md +29 -5
- package/dist/{LandingPage-CR5KyIwR.d.mts → LandingPage-D7FF9gnM.d.mts} +3 -3
- package/dist/{LandingPage-CR5KyIwR.d.ts → LandingPage-D7FF9gnM.d.ts} +3 -3
- package/dist/components/base/index.d.mts +3 -3
- package/dist/components/base/index.d.ts +3 -3
- package/dist/components/base/index.js +7229 -2042
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +7215 -2052
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.d.mts +1 -1
- package/dist/components/data-explorer/index.d.ts +1 -1
- package/dist/components/data-explorer/index.js +166 -10
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +167 -11
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.d.mts +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +769 -1603
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +772 -1607
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/login/index.d.mts +29 -29
- package/dist/components/login/index.d.ts +29 -29
- package/dist/components/toast/index.d.mts +2 -6
- package/dist/components/toast/index.d.ts +2 -6
- package/dist/components/toast/index.js +173 -11
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +174 -12
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +231 -21
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +231 -21
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +6 -6
- package/dist/components/workbench/index.d.ts +6 -6
- package/dist/components/workbench/index.js +2281 -1030
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +2282 -1031
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/icons/oauth/index.d.mts +5 -5
- package/dist/icons/oauth/index.d.ts +5 -5
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +7911 -4772
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7874 -4773
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +236 -0
- package/dist/locale/index.d.ts +236 -0
- package/dist/locale/index.js +338 -0
- package/dist/locale/index.js.map +1 -0
- package/dist/locale/index.mjs +332 -0
- package/dist/locale/index.mjs.map +1 -0
- package/dist/palette/index.js +259 -2748
- package/dist/palette/index.js.map +1 -1
- package/dist/palette/index.mjs +255 -2748
- package/dist/palette/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +51 -0
- package/dist/provider/index.d.ts +51 -0
- package/dist/provider/index.js +2688 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/index.mjs +2677 -0
- package/dist/provider/index.mjs.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/theme-CJlW1TtA.d.mts +142 -0
- package/dist/{theme-CUATVszl.d.mts → theme-CplaoMqT.d.mts} +2 -2
- package/dist/{theme-BuvXrHFY.d.ts → theme-DPVX8CfK.d.ts} +2 -2
- package/dist/theme-r7GYhlCk.d.ts +142 -0
- package/dist/theme-system/index.d.mts +5 -92
- package/dist/theme-system/index.d.ts +5 -92
- package/dist/theme-system/index.js +295 -4329
- package/dist/theme-system/index.js.map +1 -1
- package/dist/theme-system/index.mjs +183 -4221
- package/dist/theme-system/index.mjs.map +1 -1
- package/dist/themes/artist/index.d.mts +3 -3
- package/dist/themes/artist/index.d.ts +3 -3
- package/dist/themes/bsd/index.d.mts +3 -3
- package/dist/themes/bsd/index.d.ts +3 -3
- package/dist/themes/concept/index.d.mts +2 -2
- package/dist/themes/concept/index.d.ts +2 -2
- package/dist/themes/default/index.d.mts +3 -3
- package/dist/themes/default/index.d.ts +3 -3
- package/dist/types-BkWanMMW.d.mts +159 -0
- package/dist/types-BkWanMMW.d.ts +159 -0
- package/dist/types-DpRjPpxY.d.mts +93 -0
- package/dist/{types-CL6yBAmi.d.mts → types-DvHvN4RJ.d.mts} +514 -10
- package/dist/{types-CL6yBAmi.d.ts → types-DvHvN4RJ.d.ts} +514 -10
- package/dist/types-vkJZUngT.d.ts +93 -0
- package/package.json +52 -4
- package/dist/theme-CPXLKeLc.d.mts +0 -101
- package/dist/theme-Chdxsqt1.d.ts +0 -101
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-
|
|
1
|
+
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-CplaoMqT.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { aJ as DataExplorerDraggableTreeProps } from '../../types-DikLSLsl.mjs';
|
|
4
4
|
export { b as DataExplorerAction, D as DataExplorerActionBarClassNames, a as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, aK as DataExplorerCapabilityBucketsConfig, aL as DataExplorerCapabilitySidebarConfig, aM as DataExplorerCapabilityToolbarConfig, aN as DataExplorerCapabilityViewOption, aO as DataExplorerCapabilityViewsConfig, 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, B as DataExplorerDisplayAction, C as DataExplorerDisplayActionContext, E as DataExplorerDisplayActionMenuClassNames, F as DataExplorerDisplayActionMenuProps, G as DataExplorerDisplayBadge, H as DataExplorerDisplayCardClassNames, I as DataExplorerDisplayCardProps, J as DataExplorerDisplayCollectionItemContext, K as DataExplorerDisplayCollectionItemPropsResolver, L as DataExplorerDisplayCollectionViewProps, M as DataExplorerDisplayItem, N as DataExplorerDisplayListItemClassNames, O as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaClassNames, Q as DataExplorerDisplayMediaItem, R as DataExplorerDisplayMediaKind, S as DataExplorerDisplayMediaProps, T as DataExplorerDisplayMetadata, aP as DataExplorerDraggableTreeClassNames, aQ as DataExplorerDraggableTreeDragPayload, aR as DataExplorerDraggableTreeFlattenedNode, aS as DataExplorerDraggableTreeLabels, aT as DataExplorerDraggableTreeNode, aU as DataExplorerDraggableTreeRenderContext, y as DataExplorerImagePreviewClassNames, z as DataExplorerImagePreviewNaturalSize, A as DataExplorerImagePreviewProps, a4 as DataExplorerMeasuredGridOptions, U as DataExplorerPageClassNames, V as DataExplorerPageProps, _ as DataExplorerRadius, W as DataExplorerRecordCardClassNames, X as DataExplorerRecordCardProps, Y as DataExplorerResolvedTheme, Z as DataExplorerResolver, $ as DataExplorerSelectClassNames, a0 as DataExplorerSelectProps, aV as DataExplorerShellVariantId, aW as DataExplorerSurfaceConfig, aX as DataExplorerSurfaceId, a1 as DataExplorerThemePresetId, a3 as DataExplorerThemeSlots, a2 as DataExplorerThemeStyles, a5 as DataExplorerToolbarAction, a6 as DataExplorerToolbarActionItem, a7 as DataExplorerToolbarActionKind, a8 as DataExplorerToolbarActionOption, a9 as DataExplorerToolbarActionsClassNames, aa as DataExplorerToolbarActionsLayout, ab as DataExplorerToolbarActionsProps, ac as DataExplorerToolbarShellClassNames, ad as DataExplorerToolbarShellProps, ae as DataExplorerToolbarViewOption, af as DataExplorerTreeClassNames, aj as DataExplorerTreeProps, ag as DataExplorerTreeRenderProps, ah as DataExplorerTreeShellClassNames, ai as DataExplorerTreeShellProps, at as DataExplorerViewClassNames, au as DataExplorerViewCollectionClassNames, av as DataExplorerViewCollectionLayout, aw as DataExplorerViewCollectionOptions, ax as DataExplorerViewCollectionProps, ay as DataExplorerViewDefinition, az as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aD as DataExplorerViewItemProps, aA as DataExplorerViewItemShellClassNames, aC as DataExplorerViewItemShellProps, aE as DataExplorerViewOption, aI as DataExplorerViewProps, aF as DataExplorerViewRenderProps, aG as DataExplorerViewShellClassNames, aH 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-DikLSLsl.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-
|
|
1
|
+
export { D as DataExplorerActionBar, a as DataExplorerButton, b as DataExplorerCheckbox, c as DataExplorerCollectionFooter, f as DataExplorerDetailField, g as DataExplorerDetailSection, h as DataExplorerDetailShell, i as DataExplorerDisplayActionMenu, j as DataExplorerDisplayCard, k as DataExplorerDisplayCollectionView, l as DataExplorerDisplayListItem, m as DataExplorerDisplayMedia, n as DataExplorerImagePreview, o as DataExplorerPage, p as DataExplorerRecordCard, d as DataExplorerSelect, e as DataExplorerToolbarActions, q as DataExplorerToolbarShell, r as DataExplorerTree, s as DataExplorerTreeShell, u as DataExplorerView, v as DataExplorerViewCollection, w as DataExplorerViewItem, x as DataExplorerViewItemShell, y as DataExplorerViewShell, t as DataExplorerViewTree, z as getDataExplorerActionToneClassName, A as getDataExplorerMenuItemToneClassName, B as resolveDataExplorerAppearance } from '../../theme-DPVX8CfK.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { aJ as DataExplorerDraggableTreeProps } from '../../types-DikLSLsl.js';
|
|
4
4
|
export { b as DataExplorerAction, D as DataExplorerActionBarClassNames, a as DataExplorerActionBarProps, c as DataExplorerAppearance, d as DataExplorerBackground, e as DataExplorerBorder, f as DataExplorerButtonClassNames, g as DataExplorerButtonProps, h as DataExplorerCapabilities, aK as DataExplorerCapabilityBucketsConfig, aL as DataExplorerCapabilitySidebarConfig, aM as DataExplorerCapabilityToolbarConfig, aN as DataExplorerCapabilityViewOption, aO as DataExplorerCapabilityViewsConfig, 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, B as DataExplorerDisplayAction, C as DataExplorerDisplayActionContext, E as DataExplorerDisplayActionMenuClassNames, F as DataExplorerDisplayActionMenuProps, G as DataExplorerDisplayBadge, H as DataExplorerDisplayCardClassNames, I as DataExplorerDisplayCardProps, J as DataExplorerDisplayCollectionItemContext, K as DataExplorerDisplayCollectionItemPropsResolver, L as DataExplorerDisplayCollectionViewProps, M as DataExplorerDisplayItem, N as DataExplorerDisplayListItemClassNames, O as DataExplorerDisplayListItemProps, P as DataExplorerDisplayMediaClassNames, Q as DataExplorerDisplayMediaItem, R as DataExplorerDisplayMediaKind, S as DataExplorerDisplayMediaProps, T as DataExplorerDisplayMetadata, aP as DataExplorerDraggableTreeClassNames, aQ as DataExplorerDraggableTreeDragPayload, aR as DataExplorerDraggableTreeFlattenedNode, aS as DataExplorerDraggableTreeLabels, aT as DataExplorerDraggableTreeNode, aU as DataExplorerDraggableTreeRenderContext, y as DataExplorerImagePreviewClassNames, z as DataExplorerImagePreviewNaturalSize, A as DataExplorerImagePreviewProps, a4 as DataExplorerMeasuredGridOptions, U as DataExplorerPageClassNames, V as DataExplorerPageProps, _ as DataExplorerRadius, W as DataExplorerRecordCardClassNames, X as DataExplorerRecordCardProps, Y as DataExplorerResolvedTheme, Z as DataExplorerResolver, $ as DataExplorerSelectClassNames, a0 as DataExplorerSelectProps, aV as DataExplorerShellVariantId, aW as DataExplorerSurfaceConfig, aX as DataExplorerSurfaceId, a1 as DataExplorerThemePresetId, a3 as DataExplorerThemeSlots, a2 as DataExplorerThemeStyles, a5 as DataExplorerToolbarAction, a6 as DataExplorerToolbarActionItem, a7 as DataExplorerToolbarActionKind, a8 as DataExplorerToolbarActionOption, a9 as DataExplorerToolbarActionsClassNames, aa as DataExplorerToolbarActionsLayout, ab as DataExplorerToolbarActionsProps, ac as DataExplorerToolbarShellClassNames, ad as DataExplorerToolbarShellProps, ae as DataExplorerToolbarViewOption, af as DataExplorerTreeClassNames, aj as DataExplorerTreeProps, ag as DataExplorerTreeRenderProps, ah as DataExplorerTreeShellClassNames, ai as DataExplorerTreeShellProps, at as DataExplorerViewClassNames, au as DataExplorerViewCollectionClassNames, av as DataExplorerViewCollectionLayout, aw as DataExplorerViewCollectionOptions, ax as DataExplorerViewCollectionProps, ay as DataExplorerViewDefinition, az as DataExplorerViewId, aB as DataExplorerViewItemDefinition, aD as DataExplorerViewItemProps, aA as DataExplorerViewItemShellClassNames, aC as DataExplorerViewItemShellProps, aE as DataExplorerViewOption, aI as DataExplorerViewProps, aF as DataExplorerViewRenderProps, aG as DataExplorerViewShellClassNames, aH 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-DikLSLsl.js';
|
|
@@ -60,7 +60,7 @@ var baseSlots = {
|
|
|
60
60
|
actionButtonBase: "inline-flex h-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
61
61
|
actionButtonDefault: "border-border bg-background text-foreground hover:bg-accent/60",
|
|
62
62
|
actionButtonPrimary: "border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",
|
|
63
|
-
actionButtonDanger: "border-destructive/20 bg-destructive/10 text-destructive hover:bg-destructive/15",
|
|
63
|
+
actionButtonDanger: "border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",
|
|
64
64
|
actionButtonMuted: "border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",
|
|
65
65
|
actionButtonActive: "ring-1 ring-primary/30",
|
|
66
66
|
actionButtonDisabled: "cursor-not-allowed opacity-60",
|
|
@@ -80,7 +80,7 @@ var baseSlots = {
|
|
|
80
80
|
menuSeparator: "-mx-1 my-1 h-px bg-border",
|
|
81
81
|
menuItem: "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
82
82
|
menuItemPrimary: "text-primary focus:text-primary",
|
|
83
|
-
menuItemDanger: "text-destructive focus:text-destructive",
|
|
83
|
+
menuItemDanger: "text-destructive-text focus:text-destructive-text",
|
|
84
84
|
menuItemMuted: "text-muted-foreground",
|
|
85
85
|
menuItemIcon: "inline-flex h-4 w-4 shrink-0 items-center justify-center",
|
|
86
86
|
menuItemLabel: "truncate",
|
|
@@ -135,7 +135,7 @@ var baseSlots = {
|
|
|
135
135
|
treeNodeChildren: "mt-0.5 min-w-0 space-y-0.5",
|
|
136
136
|
treeNodeDragHandle: "inline-flex h-5 w-5 shrink-0 cursor-grab items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground active:cursor-grabbing group-hover/tree-node:opacity-100",
|
|
137
137
|
treeEmpty: "px-3 py-2 text-xs text-muted-foreground",
|
|
138
|
-
treeError: "px-3 py-2 text-xs text-destructive",
|
|
138
|
+
treeError: "px-3 py-2 text-xs text-destructive-text",
|
|
139
139
|
treeLoading: "px-3 py-2 text-xs text-muted-foreground"
|
|
140
140
|
};
|
|
141
141
|
var densitySlots = {
|
|
@@ -2735,7 +2735,7 @@ function renderBadges(badges) {
|
|
|
2735
2735
|
badge.tone === "primary" && "border-primary/30 bg-primary/10 text-primary",
|
|
2736
2736
|
badge.tone === "success" && "border-emerald-500/30 bg-emerald-500/10 text-emerald-700",
|
|
2737
2737
|
badge.tone === "warning" && "border-amber-500/30 bg-amber-500/10 text-amber-700",
|
|
2738
|
-
badge.tone === "danger" && "border-destructive/30 bg-destructive/10 text-destructive",
|
|
2738
|
+
badge.tone === "danger" && "border-destructive/30 bg-destructive/10 text-destructive-text",
|
|
2739
2739
|
badge.tone === "muted" && "bg-muted text-muted-foreground"
|
|
2740
2740
|
),
|
|
2741
2741
|
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: badge.label })
|
|
@@ -4413,6 +4413,161 @@ function DataExplorerTreeShell({
|
|
|
4413
4413
|
}
|
|
4414
4414
|
);
|
|
4415
4415
|
}
|
|
4416
|
+
|
|
4417
|
+
// src/locale/en-US.ts
|
|
4418
|
+
var enUS = {
|
|
4419
|
+
locale: "en-US",
|
|
4420
|
+
messages: {
|
|
4421
|
+
pagination: {
|
|
4422
|
+
navigation: "Pagination",
|
|
4423
|
+
first: "First",
|
|
4424
|
+
previous: "Previous",
|
|
4425
|
+
next: "Next",
|
|
4426
|
+
last: "Last",
|
|
4427
|
+
page: ({ page, pageCount }) => `Page ${page} of ${pageCount}`,
|
|
4428
|
+
currentPage: ({ page, pageCount }) => `Page ${page} of ${pageCount}, current page`,
|
|
4429
|
+
emptyResults: "0 results",
|
|
4430
|
+
range: ({ start, end, total }) => `${start}-${end} of ${total}`
|
|
4431
|
+
},
|
|
4432
|
+
dialog: {
|
|
4433
|
+
close: "Close dialog"
|
|
4434
|
+
},
|
|
4435
|
+
dropdownMenu: {
|
|
4436
|
+
actions: "Actions"
|
|
4437
|
+
},
|
|
4438
|
+
loading: {
|
|
4439
|
+
spinner: "Loading"
|
|
4440
|
+
},
|
|
4441
|
+
layout: {
|
|
4442
|
+
resizePanels: "Resize panels"
|
|
4443
|
+
},
|
|
4444
|
+
steps: {
|
|
4445
|
+
label: "Progress",
|
|
4446
|
+
current: "Current",
|
|
4447
|
+
completed: "Completed",
|
|
4448
|
+
error: "Error",
|
|
4449
|
+
disabled: "Disabled"
|
|
4450
|
+
},
|
|
4451
|
+
numberInput: {
|
|
4452
|
+
increment: "Increase value",
|
|
4453
|
+
decrement: "Decrease value"
|
|
4454
|
+
},
|
|
4455
|
+
passwordInput: {
|
|
4456
|
+
showPassword: "Show password",
|
|
4457
|
+
hidePassword: "Hide password"
|
|
4458
|
+
},
|
|
4459
|
+
multiSelect: {
|
|
4460
|
+
placeholder: "Select options",
|
|
4461
|
+
empty: "No options",
|
|
4462
|
+
removeOption: ({ value }) => `Remove ${value}`
|
|
4463
|
+
},
|
|
4464
|
+
table: {
|
|
4465
|
+
dragColumn: ({ columnId }) => `Drag column ${columnId}`,
|
|
4466
|
+
resizeColumn: ({ columnId }) => `Resize column ${columnId}`,
|
|
4467
|
+
sortColumn: ({ columnId }) => columnId ? `Sort column ${columnId}` : "Sort column",
|
|
4468
|
+
loadingRow: "Loading table row"
|
|
4469
|
+
},
|
|
4470
|
+
toolbar: {
|
|
4471
|
+
theme: {
|
|
4472
|
+
label: "Appearance",
|
|
4473
|
+
toggle: "Toggle theme",
|
|
4474
|
+
auto: "Auto",
|
|
4475
|
+
light: "Light",
|
|
4476
|
+
dark: "Dark"
|
|
4477
|
+
},
|
|
4478
|
+
language: {
|
|
4479
|
+
label: "Language",
|
|
4480
|
+
switch: "Switch language"
|
|
4481
|
+
}
|
|
4482
|
+
},
|
|
4483
|
+
toast: {
|
|
4484
|
+
errorTitle: "Error",
|
|
4485
|
+
warningTitle: "Warning",
|
|
4486
|
+
defaultErrorDescription: "Something went wrong.",
|
|
4487
|
+
defaultWarningDescription: "Please check and try again."
|
|
4488
|
+
},
|
|
4489
|
+
dataExplorer: {
|
|
4490
|
+
viewTree: {
|
|
4491
|
+
actions: "More actions",
|
|
4492
|
+
expand: "Expand",
|
|
4493
|
+
collapse: "Collapse",
|
|
4494
|
+
loading: "Loading...",
|
|
4495
|
+
empty: "No views",
|
|
4496
|
+
error: "Unable to load views"
|
|
4497
|
+
}
|
|
4498
|
+
},
|
|
4499
|
+
workbench: {
|
|
4500
|
+
interactiveTable: {
|
|
4501
|
+
columnActions: "Column actions",
|
|
4502
|
+
freezeColumn: "Freeze to left",
|
|
4503
|
+
freezeEndColumn: "Freeze to right",
|
|
4504
|
+
unfreezeColumn: "Unfreeze from left",
|
|
4505
|
+
unfreezeEndColumn: "Unfreeze from right",
|
|
4506
|
+
unfreezeAllColumns: "Unfreeze all columns",
|
|
4507
|
+
resetColumnWidth: "Reset column width",
|
|
4508
|
+
frozenColumnTitle: "Frozen column"
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
}
|
|
4512
|
+
};
|
|
4513
|
+
|
|
4514
|
+
// src/locale/resolve-locale.ts
|
|
4515
|
+
function mergeMonkeysLocaleMessages(base, override) {
|
|
4516
|
+
return base;
|
|
4517
|
+
}
|
|
4518
|
+
var defaultMonkeysLocale = {
|
|
4519
|
+
locale: enUS.locale,
|
|
4520
|
+
messages: mergeMonkeysLocaleMessages(
|
|
4521
|
+
enUS.messages
|
|
4522
|
+
)
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
// src/provider/context.ts
|
|
4526
|
+
var EMPTY_ENVIRONMENT = Object.freeze({});
|
|
4527
|
+
var EMPTY_PORTAL = Object.freeze({});
|
|
4528
|
+
var MONKEYS_PROVIDER_CONTEXTS_KEY = /* @__PURE__ */ Symbol.for(
|
|
4529
|
+
"@inf-monkeys-tech/monkeys-design/provider-context@1"
|
|
4530
|
+
);
|
|
4531
|
+
function createMonkeysProviderContexts() {
|
|
4532
|
+
return Object.freeze({
|
|
4533
|
+
locale: react.createContext({
|
|
4534
|
+
...defaultMonkeysLocale,
|
|
4535
|
+
provided: false
|
|
4536
|
+
}),
|
|
4537
|
+
theme: react.createContext({
|
|
4538
|
+
provided: false
|
|
4539
|
+
}),
|
|
4540
|
+
direction: react.createContext({
|
|
4541
|
+
provided: false
|
|
4542
|
+
}),
|
|
4543
|
+
environment: react.createContext({
|
|
4544
|
+
provided: false,
|
|
4545
|
+
environment: EMPTY_ENVIRONMENT,
|
|
4546
|
+
portal: EMPTY_PORTAL
|
|
4547
|
+
})
|
|
4548
|
+
});
|
|
4549
|
+
}
|
|
4550
|
+
function getMonkeysProviderContexts() {
|
|
4551
|
+
const host = globalThis;
|
|
4552
|
+
const existing = host[MONKEYS_PROVIDER_CONTEXTS_KEY];
|
|
4553
|
+
if (existing) return existing;
|
|
4554
|
+
const contexts = createMonkeysProviderContexts();
|
|
4555
|
+
Object.defineProperty(host, MONKEYS_PROVIDER_CONTEXTS_KEY, {
|
|
4556
|
+
value: contexts,
|
|
4557
|
+
enumerable: false,
|
|
4558
|
+
configurable: false,
|
|
4559
|
+
writable: false
|
|
4560
|
+
});
|
|
4561
|
+
return contexts;
|
|
4562
|
+
}
|
|
4563
|
+
var providerContexts = getMonkeysProviderContexts();
|
|
4564
|
+
var MonkeysLocaleContext = providerContexts.locale;
|
|
4565
|
+
providerContexts.theme;
|
|
4566
|
+
providerContexts.direction;
|
|
4567
|
+
providerContexts.environment;
|
|
4568
|
+
function useMonkeysLocaleMessages() {
|
|
4569
|
+
return react.useContext(MonkeysLocaleContext).messages;
|
|
4570
|
+
}
|
|
4416
4571
|
function ChevronIcon2({ expanded }) {
|
|
4417
4572
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4418
4573
|
"svg",
|
|
@@ -4549,12 +4704,13 @@ function DataExplorerViewTree({
|
|
|
4549
4704
|
onAction,
|
|
4550
4705
|
onReorderNodes
|
|
4551
4706
|
}) {
|
|
4707
|
+
const internalLabels = useMonkeysLocaleMessages().dataExplorer.viewTree;
|
|
4552
4708
|
const theme = resolveDataExplorerAppearance(appearance);
|
|
4553
|
-
const actionLabel = labels?.actions ??
|
|
4554
|
-
const expandLabel = labels?.expand ??
|
|
4555
|
-
const collapseLabel = labels?.collapse ??
|
|
4556
|
-
const loadingContent = loadingNode ?? labels?.loading ??
|
|
4557
|
-
const emptyContent = empty ?? labels?.empty ??
|
|
4709
|
+
const actionLabel = labels?.actions ?? internalLabels.actions;
|
|
4710
|
+
const expandLabel = labels?.expand ?? internalLabels.expand;
|
|
4711
|
+
const collapseLabel = labels?.collapse ?? internalLabels.collapse;
|
|
4712
|
+
const loadingContent = loadingNode ?? labels?.loading ?? internalLabels.loading;
|
|
4713
|
+
const emptyContent = empty ?? labels?.empty ?? internalLabels.empty;
|
|
4558
4714
|
const hasExplicitGroups = Array.isArray(groups);
|
|
4559
4715
|
const resolvedGroups = react.useMemo(
|
|
4560
4716
|
() => {
|
|
@@ -4940,7 +5096,7 @@ function DataExplorerViewTree({
|
|
|
4940
5096
|
theme.slots.treeLoading,
|
|
4941
5097
|
classNames?.loading
|
|
4942
5098
|
) : group.error || group.status === "error" ? renderPlaceholder(
|
|
4943
|
-
group.error ?? labels?.error ??
|
|
5099
|
+
group.error ?? labels?.error ?? internalLabels.error,
|
|
4944
5100
|
theme.slots.treeError,
|
|
4945
5101
|
classNames?.error
|
|
4946
5102
|
) : groupNodeCount > 0 ? group.nodes?.map((node) => renderNode(node, group, 0)) : renderPlaceholder(
|