dishui 0.0.66 → 0.0.67

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/index.d.ts CHANGED
@@ -17,14 +17,16 @@ export type { DividerProps } from './components/Divider';
17
17
  export { default as Select } from './components/Select';
18
18
  export type { SelectProps, Option } from './components/Select';
19
19
  export { default as Card } from './components/Card';
20
- export type { CardProps, CardFeatureProps, CardQuoteProps, CardMetaProps, } from './components/Card';
20
+ export type { CardProps, CardFeatureProps, CardQuoteProps, CardMetaProps, CardInfoProps, CardInfoTone, CardStatProps, } from './components/Card';
21
21
  export { default as PageHeader } from './components/PageHeader';
22
22
  export type { PageHeaderProps } from './components/PageHeader';
23
23
  export { default as Page, PageBody, PageLeft, PageRight, PageMain } from './components/Page';
24
24
  export type { PageProps, PageBodyProps, PageAsideProps, PageMainProps } from './components/Page';
25
- export { default as StatCard } from './components/StatCard';
26
- export type { StatCardProps } from './components/StatCard';
27
25
  export { default as EmptyState } from './components/EmptyState';
26
+ export { default as Avatar } from './components/Avatar';
27
+ export type { AvatarProps, AvatarShape, AvatarBorderStyle, AvatarNotificationPosition, } from './components/Avatar';
28
+ export { default as Accordion } from './components/Accordion';
29
+ export type { AccordionProps, AccordionItemType } from './components/Accordion';
28
30
  export type { EmptyStateProps } from './components/EmptyState';
29
31
  export { default as Modal } from './components/Modal';
30
32
  export type { ModalProps } from './components/Modal';
package/dist/index.js CHANGED
@@ -12,97 +12,98 @@ import l from "./components/Select/index.js";
12
12
  import u from "./components/Card/index.js";
13
13
  import d from "./components/PageHeader/index.js";
14
14
  import f, { PageBody as p, PageLeft as m, PageMain as h, PageRight as g } from "./components/Page/index.js";
15
- import _ from "./components/StatCard/index.js";
16
- import v from "./components/EmptyState/index.js";
17
- import y from "./components/Modal/index.js";
18
- import b from "./components/Tabs/index.js";
19
- import x, { Container as S, Flex as C, Grid as w, GridItem as T, Group as E, Space as D } from "./components/Layout/index.js";
20
- import O from "./components/List/index.js";
21
- import k from "./components/Row/index.js";
22
- import A from "./components/Column/index.js";
23
- import j from "./components/Text/index.js";
24
- import M from "./components/Image/index.js";
25
- import N from "./components/Icon/index.js";
26
- import P from "./components/Slider/index.js";
27
- import F from "./components/DateTimeInput/index.js";
28
- import I from "./components/MultipleChoice/index.js";
29
- import L from "./components/ChoicePicker/index.js";
30
- import R from "./components/Table/index.js";
31
- import { generateSidebarActiveStyles as z, generateTreeActiveStyles as B, themeActiveStyles as V } from "./styles/themeStyles.js";
32
- import H from "./components/Tree/Tree.js";
33
- import U from "./layouts/Sidebar.js";
34
- import W from "./layouts/headbar/Headbar.js";
35
- import G from "./layouts/headbar/HeadbarTitle.js";
36
- import K from "./layouts/headbar/HeadbarSearch.js";
37
- import q from "./layouts/headbar/HeadbarLangSwitcher.js";
38
- import { getThemes as J } from "./utils/themes.js";
39
- import Y from "./layouts/headbar/HeadbarThemeSwitcher.js";
40
- import { DesktopSidebarToggleButton as X, MobileSidebarToggleButton as Z, SidebarToggleButtons as Q } from "./components/SidebarToggleButton/index.js";
41
- import { AppLayoutWrapper as $, AppProvider as ee, AppShell as te, useAppContext as ne, useAuth as re } from "./contexts/AppContext.js";
42
- import ie from "./hooks/useTableColumns.js";
43
- import ae from "./hooks/useTableData.js";
44
- import { defineExtension as oe } from "./components/pro/DataTable/extension.js";
45
- import { computePivot as se } from "./components/pro/DataTable/pivotEngine.js";
46
- import { PivotView as ce } from "./components/pro/DataTable/PivotView.js";
47
- import { PivotPanel as le } from "./components/pro/DataTable/PivotPanel.js";
48
- import { usePivotExtension as ue } from "./components/pro/DataTable/pivotExtension.js";
49
- import { useRowDetailExtension as de } from "./components/pro/DataTable/rowDetailExtension.js";
50
- import fe, { createActionColumn as pe, createColumn as me, createComputedColumn as he, createSelectOptions as ge, createSelectionColumn as _e, dateSort as ve, defaultFilterFunctions as ye, extractUniqueOptions as be, numericSort as xe, stringSort as Se, treeSort as Ce } from "./data-table.js";
51
- import we from "./components/Chart/Chart.js";
52
- import Te from "./components/Demo/index.js";
53
- import Ee from "./components/pro/ArticleControl/ArticleControl2.js";
54
- import De from "./components/pro/ArticleContextMenu/index.js";
55
- import Oe from "./components/Markdown/Markdown.js";
56
- import { getDefaultSnippets as ke, javascriptSnippets as Ae, pythonSnippets as je } from "./components/pro/CodeEditor/langs/snippets.js";
57
- import { jsJumpableKeywords as Me, jsKeywords as Ne } from "./components/pro/CodeEditor/langs/javascript.js";
58
- import { pyJumpableKeywords as Pe, pyKeywords as Fe } from "./components/pro/CodeEditor/langs/python.js";
59
- import { getJumpableKeywords as Ie, getLanguageKeywords as Le } from "./components/pro/CodeEditor/langs/index.js";
60
- import { bracketMatchingStyle as Re, jumpTargetHighlight as ze, jumpToDefinition as Be, lineHighlightStyle as Ve, smartAutocompletion as He } from "./components/pro/CodeEditor/extensions/index.js";
61
- import { createThemeExtension as Ue } from "./components/pro/CodeEditor/themes.js";
62
- import { collectVariables as We, generateOutline as Ge } from "./components/pro/CodeEditor/utils.js";
63
- import { defaultContextMenu as Ke } from "./components/pro/CodeEditor/extensions/contextMenu.js";
64
- import qe from "./components/pro/CodeEditor/editors/CodeEditor.js";
65
- import Je from "./components/pro/CodeEditor/panels/TableOfContentsPanel.js";
66
- import Ye from "./components/pro/CodeEditor/panels/FootnotePanel.js";
67
- import Xe from "./components/pro/CodeEditor/editors/MarkdownEditor.js";
68
- import Ze from "./components/pro/CodeEditor/panels/OutlinePanel.js";
69
- import Qe from "./components/pro/CodeEditor/panels/VariablePanel.js";
70
- import $e from "./layouts/MainLayout.js";
71
- import et from "./layouts/Navbar.js";
72
- import { ProtectedRoute as tt } from "./components/ProtectedRoute/index.js";
73
- import { buildRouter as nt, createRouterFromConfig as rt } from "./utils/routerBuilder.js";
74
- import { DropZone as it, formatFileSize as at } from "./components/FileUploader/DropZone.js";
75
- import { FileItem as ot } from "./components/FileUploader/FileItem.js";
76
- import { UploadQueue as st } from "./components/FileUploader/UploadQueue.js";
77
- import { FileUploader as ct } from "./components/FileUploader/FileUploader.js";
78
- import { FileIcon as lt } from "./components/pro/FileExplorer/FileIcon.js";
79
- import { Breadcrumb as ut } from "./components/pro/FileExplorer/Breadcrumb.js";
80
- import { Toolbar as dt } from "./components/pro/FileExplorer/Toolbar.js";
81
- import { ListView as ft } from "./components/pro/FileExplorer/ListView.js";
82
- import { GridView as pt } from "./components/pro/FileExplorer/GridView.js";
83
- import { CreateDialog as mt } from "./components/pro/FileExplorer/CreateDialog.js";
84
- import { FileExplorer as ht } from "./components/pro/FileExplorer/FileExplorer.js";
85
- import { defaultLabels as gt } from "./components/pro/RichTextEditor/types.js";
86
- import _t from "./components/pro/RichTextEditor/Toolbar/Toolbar.js";
87
- import vt from "./components/pro/RichTextEditor/AIRewrite.js";
88
- import { MarkdownBlockExtension as yt } from "./components/pro/RichTextEditor/extensions/MarkdownBlock.js";
89
- import { CodeBlockExtension as bt } from "./components/pro/RichTextEditor/extensions/CodeBlockView.js";
90
- import xt from "./components/pro/RichTextEditor/RichTextEditor.js";
91
- import { BORDER_STYLE_OPTIONS as St, DASH_DENSITY_OPTIONS as Ct, DEFAULT_EDGE_DATA as wt, DEFAULT_NODE_DATA as Tt, EDGE_LINE_STYLE_OPTIONS as Et, EDGE_MARKER_OPTIONS as Dt, EDGE_TYPE_OPTIONS as Ot, GRADIENT_DIRECTION_OPTIONS as kt, PALETTE_ITEMS as At, ROOT_CANVAS_ID as jt, createEmptyDocument as Mt } from "./components/pro/Flow/constants.js";
92
- import { FlowProvider as Nt, useFlowContext as Pt } from "./components/pro/Flow/context/FlowContext.js";
93
- import { FlowUIProvider as Ft, useFlowUI as It } from "./components/pro/Flow/context/FlowUIContext.js";
94
- import { downloadDataURL as Lt, exportCanvasToPNG as Rt, useFlowImportExport as zt } from "./components/pro/Flow/hooks/useFlowImportExport.js";
95
- import { useLayoutActions as Bt } from "./components/pro/Flow/hooks/useLayoutActions.js";
96
- import Vt from "./components/pro/Flow/panels/FlowToolbar.js";
97
- import Ht from "./components/pro/Flow/panels/ShapePalette.js";
98
- import { FLOW_NODE_TYPES as Ut } from "./components/pro/Flow/types.js";
99
- import Wt from "./components/pro/Flow/panels/InspectorPanel.js";
100
- import Gt from "./components/pro/Flow/panels/OutlinePanel.js";
101
- import Kt from "./components/pro/Flow/panels/ContextMenu.js";
102
- import { useClipboard as qt } from "./components/pro/Flow/hooks/useClipboard.js";
103
- import Jt from "./components/pro/Flow/Flow.js";
104
- import { useNodeMutations as Yt } from "./components/pro/Flow/hooks/useNodeMutations.js";
105
- import { useEdgeMutations as Xt } from "./components/pro/Flow/hooks/useEdgeMutations.js";
106
- import { useLineMutations as Zt } from "./components/pro/Flow/hooks/useLineMutations.js";
107
- import { useSelection as Qt } from "./components/pro/Flow/hooks/useSelection.js";
108
- export { vt as AIRewrite, $ as AppLayoutWrapper, ee as AppProvider, te as AppShell, De as ArticleContextMenu, Ee as ArticleControl, St as BORDER_STYLE_OPTIONS, n as Badge, ut as Breadcrumb, t as Button, u as Card, we as Chart, a as Checkbox, L as ChoicePicker, bt as CodeBlockExtension, qe as CodeEditor, A as Column, S as Container, mt as CreateDialog, Ct as DASH_DENSITY_OPTIONS, wt as DEFAULT_EDGE_DATA, Tt as DEFAULT_NODE_DATA, fe as DataTable, F as DateTimeInput, Te as Demo, X as DesktopSidebarToggleButton, c as Divider, it as DropZone, Et as EDGE_LINE_STYLE_OPTIONS, Dt as EDGE_MARKER_OPTIONS, Ot as EDGE_TYPE_OPTIONS, v as EmptyState, Ut as FLOW_NODE_TYPES, ht as FileExplorer, dt as FileExplorerToolbar, lt as FileIcon, ct as FileUploader, C as Flex, Jt as Flow, Kt as FlowContextMenu, Wt as FlowInspectorPanel, Gt as FlowOutlinePanel, Nt as FlowProvider, Ht as FlowShapePalette, Vt as FlowToolbar, Ft as FlowUIProvider, Ye as FootnotePanel, kt as GRADIENT_DIRECTION_OPTIONS, w as Grid, T as GridItem, pt as GridView, E as Group, W as Headbar, q as HeadbarLangSwitcher, K as HeadbarSearch, Y as HeadbarThemeSwitcher, G as HeadbarTitle, N as Icon, M as Image, r as Input, i as Label, x as Layout, O as List, ft as ListView, $e as MainLayout, Oe as Markdown, yt as MarkdownBlockExtension, Xe as MarkdownEditor, Z as MobileSidebarToggleButton, y as Modal, I as MultipleChoice, et as Navbar, Ze as OutlinePanel, At as PALETTE_ITEMS, f as Page, p as PageBody, d as PageHeader, m as PageLeft, h as PageMain, g as PageRight, le as PivotPanel, ce as PivotView, tt as ProtectedRoute, jt as ROOT_CANVAS_ID, xt as RichTextEditor, _t as RichTextToolbar, k as Row, l as Select, U as Sidebar, Q as SidebarToggleButtons, P as Slider, D as Space, _ as StatCard, o as Switch, R as Table, Je as TableOfContentsPanel, b as Tabs, j as Text, s as Tooltip, H as Tree, ot as UploadFileItem, st as UploadQueue, Qe as VariablePanel, Re as bracketMatchingStyle, nt as buildRouter, e as cn, We as collectVariables, se as computePivot, pe as createActionColumn, me as createColumn, he as createComputedColumn, Mt as createEmptyDocument, rt as createRouterFromConfig, ge as createSelectOptions, _e as createSelectionColumn, Ue as createThemeExtension, ve as dateSort, Ke as defaultContextMenu, ye as defaultFilterFunctions, oe as defineExtension, Lt as downloadDataURL, Rt as exportCanvasToPNG, be as extractUniqueOptions, at as formatFileSize, Ge as generateOutline, z as generateSidebarActiveStyles, B as generateTreeActiveStyles, ke as getDefaultSnippets, Ie as getJumpableKeywords, Le as getLanguageKeywords, J as getThemes, Ae as javascriptSnippets, Me as jsJumpableKeywords, Ne as jsKeywords, ze as jumpTargetHighlight, Be as jumpToDefinition, Ve as lineHighlightStyle, xe as numericSort, Pe as pyJumpableKeywords, Fe as pyKeywords, je as pythonSnippets, gt as richTextDefaultLabels, He as smartAutocompletion, Se as stringSort, V as themeActiveStyles, Ce as treeSort, ne as useAppContext, re as useAuth, Xt as useEdgeMutations, qt as useFlowClipboard, Pt as useFlowContext, zt as useFlowImportExport, Qt as useFlowSelection, It as useFlowUI, Bt as useLayoutActions, Zt as useLineMutations, Yt as useNodeMutations, ue as usePivotExtension, de as useRowDetailExtension, ie as useTableColumns, ae as useTableData };
15
+ import _ from "./components/EmptyState/index.js";
16
+ import v from "./components/Avatar/index.js";
17
+ import y from "./components/Accordion/index.js";
18
+ import b from "./components/Modal/index.js";
19
+ import x from "./components/Tabs/index.js";
20
+ import S, { Container as C, Flex as w, Grid as T, GridItem as E, Group as D, Space as O } from "./components/Layout/index.js";
21
+ import k from "./components/List/index.js";
22
+ import A from "./components/Row/index.js";
23
+ import j from "./components/Column/index.js";
24
+ import M from "./components/Text/index.js";
25
+ import N from "./components/Image/index.js";
26
+ import P from "./components/Icon/index.js";
27
+ import F from "./components/Slider/index.js";
28
+ import I from "./components/DateTimeInput/index.js";
29
+ import L from "./components/MultipleChoice/index.js";
30
+ import R from "./components/ChoicePicker/index.js";
31
+ import z from "./components/Table/index.js";
32
+ import { generateSidebarActiveStyles as B, generateTreeActiveStyles as V, themeActiveStyles as H } from "./styles/themeStyles.js";
33
+ import U from "./components/Tree/Tree.js";
34
+ import W from "./layouts/Sidebar.js";
35
+ import G from "./layouts/headbar/Headbar.js";
36
+ import K from "./layouts/headbar/HeadbarTitle.js";
37
+ import q from "./layouts/headbar/HeadbarSearch.js";
38
+ import J from "./layouts/headbar/HeadbarLangSwitcher.js";
39
+ import { getThemes as Y } from "./utils/themes.js";
40
+ import X from "./layouts/headbar/HeadbarThemeSwitcher.js";
41
+ import { DesktopSidebarToggleButton as Z, MobileSidebarToggleButton as Q, SidebarToggleButtons as $ } from "./components/SidebarToggleButton/index.js";
42
+ import { AppLayoutWrapper as ee, AppProvider as te, AppShell as ne, useAppContext as re, useAuth as ie } from "./contexts/AppContext.js";
43
+ import ae from "./hooks/useTableColumns.js";
44
+ import oe from "./hooks/useTableData.js";
45
+ import { defineExtension as se } from "./components/pro/DataTable/extension.js";
46
+ import { computePivot as ce } from "./components/pro/DataTable/pivotEngine.js";
47
+ import { PivotView as le } from "./components/pro/DataTable/PivotView.js";
48
+ import { PivotPanel as ue } from "./components/pro/DataTable/PivotPanel.js";
49
+ import { usePivotExtension as de } from "./components/pro/DataTable/pivotExtension.js";
50
+ import { useRowDetailExtension as fe } from "./components/pro/DataTable/rowDetailExtension.js";
51
+ import pe, { createActionColumn as me, createColumn as he, createComputedColumn as ge, createSelectOptions as _e, createSelectionColumn as ve, dateSort as ye, defaultFilterFunctions as be, extractUniqueOptions as xe, numericSort as Se, stringSort as Ce, treeSort as we } from "./data-table.js";
52
+ import Te from "./components/Chart/Chart.js";
53
+ import Ee from "./components/Demo/index.js";
54
+ import De from "./components/pro/ArticleControl/ArticleControl2.js";
55
+ import Oe from "./components/pro/ArticleContextMenu/index.js";
56
+ import ke from "./components/Markdown/Markdown.js";
57
+ import { getDefaultSnippets as Ae, javascriptSnippets as je, pythonSnippets as Me } from "./components/pro/CodeEditor/langs/snippets.js";
58
+ import { jsJumpableKeywords as Ne, jsKeywords as Pe } from "./components/pro/CodeEditor/langs/javascript.js";
59
+ import { pyJumpableKeywords as Fe, pyKeywords as Ie } from "./components/pro/CodeEditor/langs/python.js";
60
+ import { getJumpableKeywords as Le, getLanguageKeywords as Re } from "./components/pro/CodeEditor/langs/index.js";
61
+ import { bracketMatchingStyle as ze, jumpTargetHighlight as Be, jumpToDefinition as Ve, lineHighlightStyle as He, smartAutocompletion as Ue } from "./components/pro/CodeEditor/extensions/index.js";
62
+ import { createThemeExtension as We } from "./components/pro/CodeEditor/themes.js";
63
+ import { collectVariables as Ge, generateOutline as Ke } from "./components/pro/CodeEditor/utils.js";
64
+ import { defaultContextMenu as qe } from "./components/pro/CodeEditor/extensions/contextMenu.js";
65
+ import Je from "./components/pro/CodeEditor/editors/CodeEditor.js";
66
+ import Ye from "./components/pro/CodeEditor/panels/TableOfContentsPanel.js";
67
+ import Xe from "./components/pro/CodeEditor/panels/FootnotePanel.js";
68
+ import Ze from "./components/pro/CodeEditor/editors/MarkdownEditor.js";
69
+ import Qe from "./components/pro/CodeEditor/panels/OutlinePanel.js";
70
+ import $e from "./components/pro/CodeEditor/panels/VariablePanel.js";
71
+ import et from "./layouts/MainLayout.js";
72
+ import tt from "./layouts/Navbar.js";
73
+ import { ProtectedRoute as nt } from "./components/ProtectedRoute/index.js";
74
+ import { buildRouter as rt, createRouterFromConfig as it } from "./utils/routerBuilder.js";
75
+ import { DropZone as at, formatFileSize as ot } from "./components/FileUploader/DropZone.js";
76
+ import { FileItem as st } from "./components/FileUploader/FileItem.js";
77
+ import { UploadQueue as ct } from "./components/FileUploader/UploadQueue.js";
78
+ import { FileUploader as lt } from "./components/FileUploader/FileUploader.js";
79
+ import { FileIcon as ut } from "./components/pro/FileExplorer/FileIcon.js";
80
+ import { Breadcrumb as dt } from "./components/pro/FileExplorer/Breadcrumb.js";
81
+ import { Toolbar as ft } from "./components/pro/FileExplorer/Toolbar.js";
82
+ import { ListView as pt } from "./components/pro/FileExplorer/ListView.js";
83
+ import { GridView as mt } from "./components/pro/FileExplorer/GridView.js";
84
+ import { CreateDialog as ht } from "./components/pro/FileExplorer/CreateDialog.js";
85
+ import { FileExplorer as gt } from "./components/pro/FileExplorer/FileExplorer.js";
86
+ import { defaultLabels as _t } from "./components/pro/RichTextEditor/types.js";
87
+ import vt from "./components/pro/RichTextEditor/Toolbar/Toolbar.js";
88
+ import yt from "./components/pro/RichTextEditor/AIRewrite.js";
89
+ import { MarkdownBlockExtension as bt } from "./components/pro/RichTextEditor/extensions/MarkdownBlock.js";
90
+ import { CodeBlockExtension as xt } from "./components/pro/RichTextEditor/extensions/CodeBlockView.js";
91
+ import St from "./components/pro/RichTextEditor/RichTextEditor.js";
92
+ import { BORDER_STYLE_OPTIONS as Ct, DASH_DENSITY_OPTIONS as wt, DEFAULT_EDGE_DATA as Tt, DEFAULT_NODE_DATA as Et, EDGE_LINE_STYLE_OPTIONS as Dt, EDGE_MARKER_OPTIONS as Ot, EDGE_TYPE_OPTIONS as kt, GRADIENT_DIRECTION_OPTIONS as At, PALETTE_ITEMS as jt, ROOT_CANVAS_ID as Mt, createEmptyDocument as Nt } from "./components/pro/Flow/constants.js";
93
+ import { FlowProvider as Pt, useFlowContext as Ft } from "./components/pro/Flow/context/FlowContext.js";
94
+ import { FlowUIProvider as It, useFlowUI as Lt } from "./components/pro/Flow/context/FlowUIContext.js";
95
+ import { downloadDataURL as Rt, exportCanvasToPNG as zt, useFlowImportExport as Bt } from "./components/pro/Flow/hooks/useFlowImportExport.js";
96
+ import { useLayoutActions as Vt } from "./components/pro/Flow/hooks/useLayoutActions.js";
97
+ import Ht from "./components/pro/Flow/panels/FlowToolbar.js";
98
+ import Ut from "./components/pro/Flow/panels/ShapePalette.js";
99
+ import { FLOW_NODE_TYPES as Wt } from "./components/pro/Flow/types.js";
100
+ import Gt from "./components/pro/Flow/panels/InspectorPanel.js";
101
+ import Kt from "./components/pro/Flow/panels/OutlinePanel.js";
102
+ import qt from "./components/pro/Flow/panels/ContextMenu.js";
103
+ import { useClipboard as Jt } from "./components/pro/Flow/hooks/useClipboard.js";
104
+ import Yt from "./components/pro/Flow/Flow.js";
105
+ import { useNodeMutations as Xt } from "./components/pro/Flow/hooks/useNodeMutations.js";
106
+ import { useEdgeMutations as Zt } from "./components/pro/Flow/hooks/useEdgeMutations.js";
107
+ import { useLineMutations as Qt } from "./components/pro/Flow/hooks/useLineMutations.js";
108
+ import { useSelection as $t } from "./components/pro/Flow/hooks/useSelection.js";
109
+ export { yt as AIRewrite, y as Accordion, ee as AppLayoutWrapper, te as AppProvider, ne as AppShell, Oe as ArticleContextMenu, De as ArticleControl, v as Avatar, Ct as BORDER_STYLE_OPTIONS, n as Badge, dt as Breadcrumb, t as Button, u as Card, Te as Chart, a as Checkbox, R as ChoicePicker, xt as CodeBlockExtension, Je as CodeEditor, j as Column, C as Container, ht as CreateDialog, wt as DASH_DENSITY_OPTIONS, Tt as DEFAULT_EDGE_DATA, Et as DEFAULT_NODE_DATA, pe as DataTable, I as DateTimeInput, Ee as Demo, Z as DesktopSidebarToggleButton, c as Divider, at as DropZone, Dt as EDGE_LINE_STYLE_OPTIONS, Ot as EDGE_MARKER_OPTIONS, kt as EDGE_TYPE_OPTIONS, _ as EmptyState, Wt as FLOW_NODE_TYPES, gt as FileExplorer, ft as FileExplorerToolbar, ut as FileIcon, lt as FileUploader, w as Flex, Yt as Flow, qt as FlowContextMenu, Gt as FlowInspectorPanel, Kt as FlowOutlinePanel, Pt as FlowProvider, Ut as FlowShapePalette, Ht as FlowToolbar, It as FlowUIProvider, Xe as FootnotePanel, At as GRADIENT_DIRECTION_OPTIONS, T as Grid, E as GridItem, mt as GridView, D as Group, G as Headbar, J as HeadbarLangSwitcher, q as HeadbarSearch, X as HeadbarThemeSwitcher, K as HeadbarTitle, P as Icon, N as Image, r as Input, i as Label, S as Layout, k as List, pt as ListView, et as MainLayout, ke as Markdown, bt as MarkdownBlockExtension, Ze as MarkdownEditor, Q as MobileSidebarToggleButton, b as Modal, L as MultipleChoice, tt as Navbar, Qe as OutlinePanel, jt as PALETTE_ITEMS, f as Page, p as PageBody, d as PageHeader, m as PageLeft, h as PageMain, g as PageRight, ue as PivotPanel, le as PivotView, nt as ProtectedRoute, Mt as ROOT_CANVAS_ID, St as RichTextEditor, vt as RichTextToolbar, A as Row, l as Select, W as Sidebar, $ as SidebarToggleButtons, F as Slider, O as Space, o as Switch, z as Table, Ye as TableOfContentsPanel, x as Tabs, M as Text, s as Tooltip, U as Tree, st as UploadFileItem, ct as UploadQueue, $e as VariablePanel, ze as bracketMatchingStyle, rt as buildRouter, e as cn, Ge as collectVariables, ce as computePivot, me as createActionColumn, he as createColumn, ge as createComputedColumn, Nt as createEmptyDocument, it as createRouterFromConfig, _e as createSelectOptions, ve as createSelectionColumn, We as createThemeExtension, ye as dateSort, qe as defaultContextMenu, be as defaultFilterFunctions, se as defineExtension, Rt as downloadDataURL, zt as exportCanvasToPNG, xe as extractUniqueOptions, ot as formatFileSize, Ke as generateOutline, B as generateSidebarActiveStyles, V as generateTreeActiveStyles, Ae as getDefaultSnippets, Le as getJumpableKeywords, Re as getLanguageKeywords, Y as getThemes, je as javascriptSnippets, Ne as jsJumpableKeywords, Pe as jsKeywords, Be as jumpTargetHighlight, Ve as jumpToDefinition, He as lineHighlightStyle, Se as numericSort, Fe as pyJumpableKeywords, Ie as pyKeywords, Me as pythonSnippets, _t as richTextDefaultLabels, Ue as smartAutocompletion, Ce as stringSort, H as themeActiveStyles, we as treeSort, re as useAppContext, ie as useAuth, Zt as useEdgeMutations, Jt as useFlowClipboard, Ft as useFlowContext, Bt as useFlowImportExport, $t as useFlowSelection, Lt as useFlowUI, Vt as useLayoutActions, Qt as useLineMutations, Xt as useNodeMutations, de as usePivotExtension, fe as useRowDetailExtension, ae as useTableColumns, oe as useTableData };
@@ -51,10 +51,15 @@ var e = {
51
51
  label: "卡片 Card",
52
52
  path: "/components/card"
53
53
  },
54
- statcard: {
55
- id: "statcard",
56
- label: "统计卡片 StatCard",
57
- path: "/components/statcard"
54
+ avatar: {
55
+ id: "avatar",
56
+ label: "头像 Avatar",
57
+ path: "/components/avatar"
58
+ },
59
+ accordion: {
60
+ id: "accordion",
61
+ label: "手风琴 Accordion",
62
+ path: "/components/accordion"
58
63
  },
59
64
  emptystate: {
60
65
  id: "emptystate",
@@ -395,10 +400,15 @@ var e = {
395
400
  label: "Card",
396
401
  path: "/components/card"
397
402
  },
398
- statcard: {
399
- id: "statcard",
400
- label: "StatCard",
401
- path: "/components/statcard"
403
+ avatar: {
404
+ id: "avatar",
405
+ label: "Avatar",
406
+ path: "/components/avatar"
407
+ },
408
+ accordion: {
409
+ id: "accordion",
410
+ label: "Accordion",
411
+ path: "/components/accordion"
402
412
  },
403
413
  emptystate: {
404
414
  id: "emptystate",
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","names":[],"sources":["../../src/utils/i18n.tsx"],"sourcesContent":["// 导入类型\nimport { MenuItem } from '../types/menu';\n\n// 定义语言类型\nexport type Language = 'zh' | 'en';\n\n// 定义翻译类型\nexport type Translations = {\n navbar: {\n search: string;\n searchPlaceholder: string;\n searchShortcut: string;\n noResults: string;\n };\n sidebar: {\n menu: {\n home: MenuItem;\n components: Omit<MenuItem, 'children'> & {\n children: Record<string, MenuItem>;\n };\n layouts: Omit<MenuItem, 'children'> & {\n children: Record<string, MenuItem>;\n };\n advanced: Omit<MenuItem, 'children'> & {\n children: Record<string, MenuItem>;\n };\n charts: MenuItem;\n };\n };\n};\n\n// 中文翻译\nexport const zhTranslations: Translations = {\n navbar: {\n search: '搜索组件',\n searchPlaceholder: '搜索组件、文档、示例...',\n searchShortcut: 'Cmd+K',\n noResults: '没有找到匹配的结果',\n },\n sidebar: {\n menu: {\n home: {\n id: 'home',\n label: '主页',\n path: '/',\n },\n components: {\n id: 'components',\n label: '组件',\n children: {\n button: {\n id: 'button',\n label: '按钮 Button',\n path: '/components/button',\n },\n badge: {\n id: 'badge',\n label: '徽章 Badge',\n path: '/components/badge',\n },\n input: {\n id: 'input',\n label: '输入框 Input',\n path: '/components/input',\n },\n label: {\n id: 'label',\n label: '标签 Label',\n path: '/components/label',\n },\n checkbox: {\n id: 'checkbox',\n label: '复选框 Checkbox',\n path: '/components/checkbox',\n },\n select: {\n id: 'select',\n label: '选择器 Select',\n path: '/components/select',\n },\n card: {\n id: 'card',\n label: '卡片 Card',\n path: '/components/card',\n },\n statcard: {\n id: 'statcard',\n label: '统计卡片 StatCard',\n path: '/components/statcard',\n },\n emptystate: {\n id: 'emptystate',\n label: '空状态 EmptyState',\n path: '/components/emptystate',\n },\n modal: {\n id: 'modal',\n label: '模态框 Modal',\n path: '/components/modal',\n },\n tabs: {\n id: 'tabs',\n label: '标签页 Tabs',\n path: '/components/tabs',\n },\n list: {\n id: 'list',\n label: '列表 List',\n path: '/components/list',\n },\n table: {\n id: 'table',\n label: '表格 Table',\n path: '/components/table',\n },\n markdown: {\n id: 'markdown',\n label: '文档 Markdown',\n path: '/components/markdown',\n },\n tree: {\n id: 'tree',\n label: '树形控件 Tree',\n path: '/components/tree',\n },\n fileuploader: {\n id: 'fileuploader',\n label: '文件上传 FileUploader',\n path: '/components/fileuploader',\n },\n text: {\n id: 'text',\n label: '文本 Text',\n path: '/components/text',\n },\n image: {\n id: 'image',\n label: '图片 Image',\n path: '/components/image',\n },\n icon: {\n id: 'icon',\n label: '图标 Icon',\n path: '/components/icon',\n },\n slider: {\n id: 'slider',\n label: '滑块 Slider',\n path: '/components/slider',\n },\n datetimeinput: {\n id: 'datetimeinput',\n label: '日期时间 DateTimeInput',\n path: '/components/datetime-input',\n },\n multiplechoice: {\n id: 'multiplechoice',\n label: '多选组 MultipleChoice',\n path: '/components/multiple-choice',\n },\n choicepicker: {\n id: 'choicepicker',\n label: '单选组 ChoicePicker',\n path: '/components/choice-picker',\n },\n },\n },\n layouts: {\n id: 'layouts',\n label: '布局 Layout',\n children: {\n layout: { id: 'layout', label: '布局总览 Layout', path: '/layouts/layout' },\n container: { id: 'container', label: '容器 Container', path: '/layouts/container' },\n grid: { id: 'grid', label: '栅格 Grid', path: '/layouts/grid' },\n flex: { id: 'flex', label: '弹性布局 Flex', path: '/layouts/flex' },\n group: { id: 'group', label: '布局组 Group', path: '/layouts/group' },\n space: { id: 'space', label: '占位 Space', path: '/layouts/space' },\n page: { id: 'page', label: '页面布局 Page', path: '/layouts/page' },\n row: { id: 'row', label: '行布局 Row', path: '/layouts/row' },\n column: { id: 'column', label: '列布局 Column', path: '/layouts/column' },\n },\n },\n charts: {\n id: 'charts',\n label: '图表 Charts',\n path: '/components/chart',\n children: [\n { id: 'chart-line', label: '折线图 Line', path: '/components/chart/line' },\n { id: 'chart-area', label: '面积图 Area', path: '/components/chart/area' },\n { id: 'chart-bar', label: '柱状图 Bar', path: '/components/chart/bar' },\n { id: 'chart-pie', label: '饼图 Pie', path: '/components/chart/pie' },\n { id: 'chart-scatter', label: '散点图 Scatter', path: '/components/chart/scatter' },\n { id: 'chart-combo', label: '组合图 Combo', path: '/components/chart/complex/combo' },\n { id: 'chart-stacked', label: '堆叠面积图 Stacked Area', path: '/components/chart/complex/stacked' },\n { id: 'chart-heatmap', label: '热力图 Heatmap', path: '/components/chart/complex/heatmap' },\n { id: 'chart-regression', label: '回归分析 Regression', path: '/components/chart/complex/regression' },\n { id: 'chart-radar', label: '雷达图 Radar', path: '/components/chart/special/radar' },\n { id: 'chart-sankey', label: '桑基图 Sankey', path: '/components/chart/special/sankey' },\n { id: 'chart-network', label: '网络图 Network', path: '/components/chart/special/network' },\n { id: 'chart-calendar', label: '日历热力图 Calendar', path: '/components/chart/special/calendar' },\n { id: 'chart-stacked-pie', label: '堆叠饼图 Stacked Pie', path: '/components/chart/special/stacked-pie' },\n { id: 'chart-funnel', label: '销售漏斗图 Funnel', path: '/components/chart/special/funnel' },\n { id: 'chart-treemap', label: '矩形树图 Treemap', path: '/components/chart/special/treemap' },\n { id: 'chart-globe', label: '地球 Globe', path: '/components/chart/special/globe' },\n { id: 'chart-world-map', label: '世界地图 World Map', path: '/components/chart/special/world-map' },\n ],\n },\n advanced: {\n id: 'advanced-components',\n label: '高级组件',\n children: {\n datatable: {\n id: 'datatable',\n label: '数据表格 DataTable',\n path: '/components/datatable',\n },\n\n jukebox: {\n id: 'jukebox',\n label: '音乐播放器 Jukebox',\n path: '/components/jukebox',\n },\n articlecontrol: {\n id: 'articlecontrol',\n label: '文档悬浮控件 ArticleControl',\n path: '/components/articlecontrol',\n },\n codeeditor: {\n id: 'codeeditor',\n label: '代码编辑器 CodeEditor',\n path: '/components/codeeditor',\n },\n markdowneditor: {\n id: 'markdowneditor',\n label: 'Markdown编辑器 MarkdownEditor',\n path: '/components/markdowneditor',\n },\n sidebar: {\n id: 'sidebar-demo',\n label: '侧边栏 Sidebar',\n path: '/components/sidebar',\n },\n fileexplorer: {\n id: 'fileexplorer',\n label: '文件浏览器 FileExplorer',\n path: '/components/fileexplorer',\n },\n richtexteditor: {\n id: 'richtexteditor',\n label: '富文本编辑器 RichTextEditor',\n path: '/components/richtexteditor',\n },\n flow: {\n id: 'flow',\n label: '流程图编辑器 Flow',\n path: '/components/flow',\n },\n flowUsage: {\n id: 'flow-usage',\n label: 'Flow 使用示例',\n path: '/components/flow/usage',\n },\n flowMobile: {\n id: 'flow-mobile',\n label: 'Flow 移动端示例',\n path: '/components/flow/mobile',\n },\n },\n },\n },\n },\n};\n\n// 英文翻译\nexport const enTranslations: Translations = {\n navbar: {\n search: 'Search Components',\n searchPlaceholder: 'Search components, docs, examples...',\n searchShortcut: 'Cmd+K',\n noResults: 'No results found',\n },\n sidebar: {\n menu: {\n home: {\n id: 'home',\n label: 'Home',\n path: '/',\n },\n components: {\n id: 'components',\n label: 'Components',\n children: {\n button: {\n id: 'button',\n label: 'Button',\n path: '/components/button',\n },\n badge: {\n id: 'badge',\n label: 'Badge',\n path: '/components/badge',\n },\n input: {\n id: 'input',\n label: 'Input',\n path: '/components/input',\n },\n label: {\n id: 'label',\n label: 'Label',\n path: '/components/label',\n },\n checkbox: {\n id: 'checkbox',\n label: 'Checkbox',\n path: '/components/checkbox',\n },\n select: {\n id: 'select',\n label: 'Select',\n path: '/components/select',\n },\n card: {\n id: 'card',\n label: 'Card',\n path: '/components/card',\n },\n statcard: {\n id: 'statcard',\n label: 'StatCard',\n path: '/components/statcard',\n },\n emptystate: {\n id: 'emptystate',\n label: 'EmptyState',\n path: '/components/emptystate',\n },\n modal: {\n id: 'modal',\n label: 'Modal',\n path: '/components/modal',\n },\n tabs: {\n id: 'tabs',\n label: 'Tabs',\n path: '/components/tabs',\n },\n list: {\n id: 'list',\n label: 'List',\n path: '/components/list',\n },\n table: {\n id: 'table',\n label: 'Table',\n path: '/components/table',\n },\n markdown: {\n id: 'markdown',\n label: 'Markdown',\n path: '/components/markdown',\n },\n tree: {\n id: 'tree',\n label: 'Tree',\n path: '/components/tree',\n },\n fileuploader: {\n id: 'fileuploader',\n label: 'FileUploader',\n path: '/components/fileuploader',\n },\n text: {\n id: 'text',\n label: 'Text',\n path: '/components/text',\n },\n image: {\n id: 'image',\n label: 'Image',\n path: '/components/image',\n },\n icon: {\n id: 'icon',\n label: 'Icon',\n path: '/components/icon',\n },\n slider: {\n id: 'slider',\n label: 'Slider',\n path: '/components/slider',\n },\n datetimeinput: {\n id: 'datetimeinput',\n label: 'DateTimeInput',\n path: '/components/datetime-input',\n },\n multiplechoice: {\n id: 'multiplechoice',\n label: 'MultipleChoice',\n path: '/components/multiple-choice',\n },\n choicepicker: {\n id: 'choicepicker',\n label: 'ChoicePicker',\n path: '/components/choice-picker',\n },\n },\n },\n layouts: {\n id: 'layouts',\n label: 'Layout',\n children: {\n layout: { id: 'layout', label: 'Layout Overview', path: '/layouts/layout' },\n container: { id: 'container', label: 'Container', path: '/layouts/container' },\n grid: { id: 'grid', label: 'Grid', path: '/layouts/grid' },\n flex: { id: 'flex', label: 'Flex', path: '/layouts/flex' },\n group: { id: 'group', label: 'Group', path: '/layouts/group' },\n space: { id: 'space', label: 'Space', path: '/layouts/space' },\n page: { id: 'page', label: 'Page Layout', path: '/layouts/page' },\n row: { id: 'row', label: 'Row', path: '/layouts/row' },\n column: { id: 'column', label: 'Column', path: '/layouts/column' },\n },\n },\n charts: {\n id: 'charts',\n label: 'Charts',\n path: '/components/chart',\n children: [\n { id: 'chart-line', label: 'Line Chart', path: '/components/chart/line' },\n { id: 'chart-area', label: 'Area Chart', path: '/components/chart/area' },\n { id: 'chart-bar', label: 'Bar Chart', path: '/components/chart/bar' },\n { id: 'chart-pie', label: 'Pie Chart', path: '/components/chart/pie' },\n { id: 'chart-scatter', label: 'Scatter Chart', path: '/components/chart/scatter' },\n { id: 'chart-combo', label: 'Combo Chart', path: '/components/chart/complex/combo' },\n { id: 'chart-stacked', label: 'Stacked Area', path: '/components/chart/complex/stacked' },\n { id: 'chart-heatmap', label: 'Heatmap', path: '/components/chart/complex/heatmap' },\n { id: 'chart-regression', label: 'Regression Analysis', path: '/components/chart/complex/regression' },\n { id: 'chart-radar', label: 'Radar Chart', path: '/components/chart/special/radar' },\n { id: 'chart-sankey', label: 'Sankey Diagram', path: '/components/chart/special/sankey' },\n { id: 'chart-network', label: 'Network Graph', path: '/components/chart/special/network' },\n { id: 'chart-calendar', label: 'Calendar Heatmap', path: '/components/chart/special/calendar' },\n { id: 'chart-stacked-pie', label: 'Stacked Pie', path: '/components/chart/special/stacked-pie' },\n { id: 'chart-funnel', label: 'Sales Funnel', path: '/components/chart/special/funnel' },\n { id: 'chart-treemap', label: 'Treemap', path: '/components/chart/special/treemap' },\n { id: 'chart-globe', label: 'Globe', path: '/components/chart/special/globe' },\n { id: 'chart-world-map', label: 'World Map', path: '/components/chart/special/world-map' }\n ],\n },\n advanced: {\n id: 'advanced-components',\n label: 'Advanced Components',\n children: {\n datatable: {\n id: 'datatable',\n label: 'DataTable',\n path: '/components/datatable',\n },\n\n jukebox: {\n id: 'jukebox',\n label: 'Jukebox',\n path: '/components/jukebox',\n },\n articlecontrol: {\n id: 'articlecontrol',\n label: 'ArticleControl',\n path: '/components/articlecontrol',\n },\n codeeditor: {\n id: 'codeeditor',\n label: 'CodeEditor',\n path: '/components/codeeditor',\n },\n markdowneditor: {\n id: 'markdowneditor',\n label: 'MarkdownEditor',\n path: '/components/markdowneditor',\n },\n sidebar: {\n id: 'sidebar-demo',\n label: 'Sidebar',\n path: '/components/sidebar',\n },\n fileexplorer: {\n id: 'fileexplorer',\n label: 'FileExplorer',\n path: '/components/fileexplorer',\n },\n richtexteditor: {\n id: 'richtexteditor',\n label: 'RichTextEditor',\n path: '/components/richtexteditor',\n },\n flow: {\n id: 'flow',\n label: 'Flow Editor',\n path: '/components/flow',\n },\n flowUsage: {\n id: 'flow-usage',\n label: 'Flow Usage Guide',\n path: '/components/flow/usage',\n },\n flowMobile: {\n id: 'flow-mobile',\n label: 'Flow Mobile Guide',\n path: '/components/flow/mobile',\n },\n },\n },\n },\n },\n};\n\n// 根据语言获取翻译\nexport const getTranslations = (language: Language): Translations => {\n return language === 'zh' ? zhTranslations : enTranslations;\n};"],"mappings":";AAgCA,IAAa,IAA+B;CAC1C,QAAQ;EACN,QAAQ;EACR,mBAAmB;EACnB,gBAAgB;EAChB,WAAW;CACb;CACA,SAAS,EACP,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M;IAAmC;IACtF;KAAE,IAAI;KAAiB,OAAO;KAAW,MAAM;IAAoC;IACnF;KAAE,IAAI;KAAe,OAAO;KAAS,MAAM;IAAkC;IAC7E;KAAE,IAAI;KAAmB,OAAO;KAAa,MAAM;IAAsC;GAC3F;EACF;EACA,UAAU;GACR,IAAI;GACJ,OAAO;GACP,UAAU;IACR,WAAW;KACT,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IAEA,SAAS;KACP,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,gBAAgB;KACd,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,YAAY;KACV,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,gBAAgB;KACd,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,SAAS;KACP,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,cAAc;KACZ,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,gBAAgB;KACd,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,MAAM;KACJ,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,WAAW;KACT,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,YAAY;KACV,IAAI;KACJ,OAAO;KACP,MAAM;IACR;GACF;EACF;CACF,EACF;AACF,GAGa,KAAmB,MACvB,MAAa,OAAO,IAAiB"}
1
+ {"version":3,"file":"i18n.js","names":[],"sources":["../../src/utils/i18n.tsx"],"sourcesContent":["// 导入类型\nimport { MenuItem } from '../types/menu';\n\n// 定义语言类型\nexport type Language = 'zh' | 'en';\n\n// 定义翻译类型\nexport type Translations = {\n navbar: {\n search: string;\n searchPlaceholder: string;\n searchShortcut: string;\n noResults: string;\n };\n sidebar: {\n menu: {\n home: MenuItem;\n components: Omit<MenuItem, 'children'> & {\n children: Record<string, MenuItem>;\n };\n layouts: Omit<MenuItem, 'children'> & {\n children: Record<string, MenuItem>;\n };\n advanced: Omit<MenuItem, 'children'> & {\n children: Record<string, MenuItem>;\n };\n charts: MenuItem;\n };\n };\n};\n\n// 中文翻译\nexport const zhTranslations: Translations = {\n navbar: {\n search: '搜索组件',\n searchPlaceholder: '搜索组件、文档、示例...',\n searchShortcut: 'Cmd+K',\n noResults: '没有找到匹配的结果',\n },\n sidebar: {\n menu: {\n home: {\n id: 'home',\n label: '主页',\n path: '/',\n },\n components: {\n id: 'components',\n label: '组件',\n children: {\n button: {\n id: 'button',\n label: '按钮 Button',\n path: '/components/button',\n },\n badge: {\n id: 'badge',\n label: '徽章 Badge',\n path: '/components/badge',\n },\n input: {\n id: 'input',\n label: '输入框 Input',\n path: '/components/input',\n },\n label: {\n id: 'label',\n label: '标签 Label',\n path: '/components/label',\n },\n checkbox: {\n id: 'checkbox',\n label: '复选框 Checkbox',\n path: '/components/checkbox',\n },\n select: {\n id: 'select',\n label: '选择器 Select',\n path: '/components/select',\n },\n card: {\n id: 'card',\n label: '卡片 Card',\n path: '/components/card',\n },\n avatar: {\n id: 'avatar',\n label: '头像 Avatar',\n path: '/components/avatar',\n },\n accordion: {\n id: 'accordion',\n label: '手风琴 Accordion',\n path: '/components/accordion',\n },\n emptystate: {\n id: 'emptystate',\n label: '空状态 EmptyState',\n path: '/components/emptystate',\n },\n modal: {\n id: 'modal',\n label: '模态框 Modal',\n path: '/components/modal',\n },\n tabs: {\n id: 'tabs',\n label: '标签页 Tabs',\n path: '/components/tabs',\n },\n list: {\n id: 'list',\n label: '列表 List',\n path: '/components/list',\n },\n table: {\n id: 'table',\n label: '表格 Table',\n path: '/components/table',\n },\n markdown: {\n id: 'markdown',\n label: '文档 Markdown',\n path: '/components/markdown',\n },\n tree: {\n id: 'tree',\n label: '树形控件 Tree',\n path: '/components/tree',\n },\n fileuploader: {\n id: 'fileuploader',\n label: '文件上传 FileUploader',\n path: '/components/fileuploader',\n },\n text: {\n id: 'text',\n label: '文本 Text',\n path: '/components/text',\n },\n image: {\n id: 'image',\n label: '图片 Image',\n path: '/components/image',\n },\n icon: {\n id: 'icon',\n label: '图标 Icon',\n path: '/components/icon',\n },\n slider: {\n id: 'slider',\n label: '滑块 Slider',\n path: '/components/slider',\n },\n datetimeinput: {\n id: 'datetimeinput',\n label: '日期时间 DateTimeInput',\n path: '/components/datetime-input',\n },\n multiplechoice: {\n id: 'multiplechoice',\n label: '多选组 MultipleChoice',\n path: '/components/multiple-choice',\n },\n choicepicker: {\n id: 'choicepicker',\n label: '单选组 ChoicePicker',\n path: '/components/choice-picker',\n },\n },\n },\n layouts: {\n id: 'layouts',\n label: '布局 Layout',\n children: {\n layout: { id: 'layout', label: '布局总览 Layout', path: '/layouts/layout' },\n container: { id: 'container', label: '容器 Container', path: '/layouts/container' },\n grid: { id: 'grid', label: '栅格 Grid', path: '/layouts/grid' },\n flex: { id: 'flex', label: '弹性布局 Flex', path: '/layouts/flex' },\n group: { id: 'group', label: '布局组 Group', path: '/layouts/group' },\n space: { id: 'space', label: '占位 Space', path: '/layouts/space' },\n page: { id: 'page', label: '页面布局 Page', path: '/layouts/page' },\n row: { id: 'row', label: '行布局 Row', path: '/layouts/row' },\n column: { id: 'column', label: '列布局 Column', path: '/layouts/column' },\n },\n },\n charts: {\n id: 'charts',\n label: '图表 Charts',\n path: '/components/chart',\n children: [\n { id: 'chart-line', label: '折线图 Line', path: '/components/chart/line' },\n { id: 'chart-area', label: '面积图 Area', path: '/components/chart/area' },\n { id: 'chart-bar', label: '柱状图 Bar', path: '/components/chart/bar' },\n { id: 'chart-pie', label: '饼图 Pie', path: '/components/chart/pie' },\n { id: 'chart-scatter', label: '散点图 Scatter', path: '/components/chart/scatter' },\n { id: 'chart-combo', label: '组合图 Combo', path: '/components/chart/complex/combo' },\n { id: 'chart-stacked', label: '堆叠面积图 Stacked Area', path: '/components/chart/complex/stacked' },\n { id: 'chart-heatmap', label: '热力图 Heatmap', path: '/components/chart/complex/heatmap' },\n { id: 'chart-regression', label: '回归分析 Regression', path: '/components/chart/complex/regression' },\n { id: 'chart-radar', label: '雷达图 Radar', path: '/components/chart/special/radar' },\n { id: 'chart-sankey', label: '桑基图 Sankey', path: '/components/chart/special/sankey' },\n { id: 'chart-network', label: '网络图 Network', path: '/components/chart/special/network' },\n { id: 'chart-calendar', label: '日历热力图 Calendar', path: '/components/chart/special/calendar' },\n { id: 'chart-stacked-pie', label: '堆叠饼图 Stacked Pie', path: '/components/chart/special/stacked-pie' },\n { id: 'chart-funnel', label: '销售漏斗图 Funnel', path: '/components/chart/special/funnel' },\n { id: 'chart-treemap', label: '矩形树图 Treemap', path: '/components/chart/special/treemap' },\n { id: 'chart-globe', label: '地球 Globe', path: '/components/chart/special/globe' },\n { id: 'chart-world-map', label: '世界地图 World Map', path: '/components/chart/special/world-map' },\n ],\n },\n advanced: {\n id: 'advanced-components',\n label: '高级组件',\n children: {\n datatable: {\n id: 'datatable',\n label: '数据表格 DataTable',\n path: '/components/datatable',\n },\n\n jukebox: {\n id: 'jukebox',\n label: '音乐播放器 Jukebox',\n path: '/components/jukebox',\n },\n articlecontrol: {\n id: 'articlecontrol',\n label: '文档悬浮控件 ArticleControl',\n path: '/components/articlecontrol',\n },\n codeeditor: {\n id: 'codeeditor',\n label: '代码编辑器 CodeEditor',\n path: '/components/codeeditor',\n },\n markdowneditor: {\n id: 'markdowneditor',\n label: 'Markdown编辑器 MarkdownEditor',\n path: '/components/markdowneditor',\n },\n sidebar: {\n id: 'sidebar-demo',\n label: '侧边栏 Sidebar',\n path: '/components/sidebar',\n },\n fileexplorer: {\n id: 'fileexplorer',\n label: '文件浏览器 FileExplorer',\n path: '/components/fileexplorer',\n },\n richtexteditor: {\n id: 'richtexteditor',\n label: '富文本编辑器 RichTextEditor',\n path: '/components/richtexteditor',\n },\n flow: {\n id: 'flow',\n label: '流程图编辑器 Flow',\n path: '/components/flow',\n },\n flowUsage: {\n id: 'flow-usage',\n label: 'Flow 使用示例',\n path: '/components/flow/usage',\n },\n flowMobile: {\n id: 'flow-mobile',\n label: 'Flow 移动端示例',\n path: '/components/flow/mobile',\n },\n },\n },\n },\n },\n};\n\n// 英文翻译\nexport const enTranslations: Translations = {\n navbar: {\n search: 'Search Components',\n searchPlaceholder: 'Search components, docs, examples...',\n searchShortcut: 'Cmd+K',\n noResults: 'No results found',\n },\n sidebar: {\n menu: {\n home: {\n id: 'home',\n label: 'Home',\n path: '/',\n },\n components: {\n id: 'components',\n label: 'Components',\n children: {\n button: {\n id: 'button',\n label: 'Button',\n path: '/components/button',\n },\n badge: {\n id: 'badge',\n label: 'Badge',\n path: '/components/badge',\n },\n input: {\n id: 'input',\n label: 'Input',\n path: '/components/input',\n },\n label: {\n id: 'label',\n label: 'Label',\n path: '/components/label',\n },\n checkbox: {\n id: 'checkbox',\n label: 'Checkbox',\n path: '/components/checkbox',\n },\n select: {\n id: 'select',\n label: 'Select',\n path: '/components/select',\n },\n card: {\n id: 'card',\n label: 'Card',\n path: '/components/card',\n },\n avatar: {\n id: 'avatar',\n label: 'Avatar',\n path: '/components/avatar',\n },\n accordion: {\n id: 'accordion',\n label: 'Accordion',\n path: '/components/accordion',\n },\n emptystate: {\n id: 'emptystate',\n label: 'EmptyState',\n path: '/components/emptystate',\n },\n modal: {\n id: 'modal',\n label: 'Modal',\n path: '/components/modal',\n },\n tabs: {\n id: 'tabs',\n label: 'Tabs',\n path: '/components/tabs',\n },\n list: {\n id: 'list',\n label: 'List',\n path: '/components/list',\n },\n table: {\n id: 'table',\n label: 'Table',\n path: '/components/table',\n },\n markdown: {\n id: 'markdown',\n label: 'Markdown',\n path: '/components/markdown',\n },\n tree: {\n id: 'tree',\n label: 'Tree',\n path: '/components/tree',\n },\n fileuploader: {\n id: 'fileuploader',\n label: 'FileUploader',\n path: '/components/fileuploader',\n },\n text: {\n id: 'text',\n label: 'Text',\n path: '/components/text',\n },\n image: {\n id: 'image',\n label: 'Image',\n path: '/components/image',\n },\n icon: {\n id: 'icon',\n label: 'Icon',\n path: '/components/icon',\n },\n slider: {\n id: 'slider',\n label: 'Slider',\n path: '/components/slider',\n },\n datetimeinput: {\n id: 'datetimeinput',\n label: 'DateTimeInput',\n path: '/components/datetime-input',\n },\n multiplechoice: {\n id: 'multiplechoice',\n label: 'MultipleChoice',\n path: '/components/multiple-choice',\n },\n choicepicker: {\n id: 'choicepicker',\n label: 'ChoicePicker',\n path: '/components/choice-picker',\n },\n },\n },\n layouts: {\n id: 'layouts',\n label: 'Layout',\n children: {\n layout: { id: 'layout', label: 'Layout Overview', path: '/layouts/layout' },\n container: { id: 'container', label: 'Container', path: '/layouts/container' },\n grid: { id: 'grid', label: 'Grid', path: '/layouts/grid' },\n flex: { id: 'flex', label: 'Flex', path: '/layouts/flex' },\n group: { id: 'group', label: 'Group', path: '/layouts/group' },\n space: { id: 'space', label: 'Space', path: '/layouts/space' },\n page: { id: 'page', label: 'Page Layout', path: '/layouts/page' },\n row: { id: 'row', label: 'Row', path: '/layouts/row' },\n column: { id: 'column', label: 'Column', path: '/layouts/column' },\n },\n },\n charts: {\n id: 'charts',\n label: 'Charts',\n path: '/components/chart',\n children: [\n { id: 'chart-line', label: 'Line Chart', path: '/components/chart/line' },\n { id: 'chart-area', label: 'Area Chart', path: '/components/chart/area' },\n { id: 'chart-bar', label: 'Bar Chart', path: '/components/chart/bar' },\n { id: 'chart-pie', label: 'Pie Chart', path: '/components/chart/pie' },\n { id: 'chart-scatter', label: 'Scatter Chart', path: '/components/chart/scatter' },\n { id: 'chart-combo', label: 'Combo Chart', path: '/components/chart/complex/combo' },\n { id: 'chart-stacked', label: 'Stacked Area', path: '/components/chart/complex/stacked' },\n { id: 'chart-heatmap', label: 'Heatmap', path: '/components/chart/complex/heatmap' },\n { id: 'chart-regression', label: 'Regression Analysis', path: '/components/chart/complex/regression' },\n { id: 'chart-radar', label: 'Radar Chart', path: '/components/chart/special/radar' },\n { id: 'chart-sankey', label: 'Sankey Diagram', path: '/components/chart/special/sankey' },\n { id: 'chart-network', label: 'Network Graph', path: '/components/chart/special/network' },\n { id: 'chart-calendar', label: 'Calendar Heatmap', path: '/components/chart/special/calendar' },\n { id: 'chart-stacked-pie', label: 'Stacked Pie', path: '/components/chart/special/stacked-pie' },\n { id: 'chart-funnel', label: 'Sales Funnel', path: '/components/chart/special/funnel' },\n { id: 'chart-treemap', label: 'Treemap', path: '/components/chart/special/treemap' },\n { id: 'chart-globe', label: 'Globe', path: '/components/chart/special/globe' },\n { id: 'chart-world-map', label: 'World Map', path: '/components/chart/special/world-map' }\n ],\n },\n advanced: {\n id: 'advanced-components',\n label: 'Advanced Components',\n children: {\n datatable: {\n id: 'datatable',\n label: 'DataTable',\n path: '/components/datatable',\n },\n\n jukebox: {\n id: 'jukebox',\n label: 'Jukebox',\n path: '/components/jukebox',\n },\n articlecontrol: {\n id: 'articlecontrol',\n label: 'ArticleControl',\n path: '/components/articlecontrol',\n },\n codeeditor: {\n id: 'codeeditor',\n label: 'CodeEditor',\n path: '/components/codeeditor',\n },\n markdowneditor: {\n id: 'markdowneditor',\n label: 'MarkdownEditor',\n path: '/components/markdowneditor',\n },\n sidebar: {\n id: 'sidebar-demo',\n label: 'Sidebar',\n path: '/components/sidebar',\n },\n fileexplorer: {\n id: 'fileexplorer',\n label: 'FileExplorer',\n path: '/components/fileexplorer',\n },\n richtexteditor: {\n id: 'richtexteditor',\n label: 'RichTextEditor',\n path: '/components/richtexteditor',\n },\n flow: {\n id: 'flow',\n label: 'Flow Editor',\n path: '/components/flow',\n },\n flowUsage: {\n id: 'flow-usage',\n label: 'Flow Usage Guide',\n path: '/components/flow/usage',\n },\n flowMobile: {\n id: 'flow-mobile',\n label: 'Flow Mobile Guide',\n path: '/components/flow/mobile',\n },\n },\n },\n },\n },\n};\n\n// 根据语言获取翻译\nexport const getTranslations = (language: Language): Translations => {\n return language === 'zh' ? zhTranslations : enTranslations;\n};"],"mappings":";AAgCA,IAAa,IAA+B;CAC1C,QAAQ;EACN,QAAQ;EACR,mBAAmB;EACnB,gBAAgB;EAChB,WAAW;CACb;CACA,SAAS,EACP,MAAM;EACJ,MAAM;GACJ,IAAI;GACJ,OAAO;GACP,MAAM;EACR;EACA,YA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KAAE,IAAI;KAAgB,OAAO;KAAgB,MAAM;IAAmC;IACtF;KAAE,IAAI;KAAiB,OAAO;KAAW,MAAM;IAAoC;IACnF;KAAE,IAAI;KAAe,OAAO;KAAS,MAAM;IAAkC;IAC7E;KAAE,IAAI;KAAmB,OAAO;KAAa,MAAM;IAAsC;GAC3F;EACF;EACA,UAAU;GACR,IAAI;GACJ,OAAO;GACP,UAAU;IACR,WAAW;KACT,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IAEA,SAAS;KACP,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,gBAAgB;KACd,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,YAAY;KACV,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,gBAAgB;KACd,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,SAAS;KACP,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,cAAc;KACZ,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,gBAAgB;KACd,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,MAAM;KACJ,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,WAAW;KACT,IAAI;KACJ,OAAO;KACP,MAAM;IACR;IACA,YAAY;KACV,IAAI;KACJ,OAAO;KACP,MAAM;IACR;GACF;EACF;CACF,EACF;AACF,GAGa,KAAmB,MACvB,MAAa,OAAO,IAAiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dishui",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "New Components UI Framework with AI Powered",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- export type StatCardProps = {
3
- /** 指标名称 */
4
- label: React.ReactNode;
5
- /** 指标值(数字或短文本) */
6
- value: React.ReactNode;
7
- /** 右上角图标 */
8
- icon?: React.ReactNode;
9
- /** 图标位置:`top`(默认,图标在右上角)/ `left`(图标在左,文字居右) */
10
- iconPosition?: 'top' | 'left';
11
- /** 色调(影响图标底色与文字色) */
12
- tone?: 'primary' | 'success' | 'warning' | 'info' | 'error' | 'neutral';
13
- /** 值下方的小字说明 */
14
- hint?: React.ReactNode;
15
- /** 加载态:值显示为骨架 */
16
- loading?: boolean;
17
- className?: string;
18
- /**
19
- * 启用统计面板样式:标签在上、超大数值居中、可选迷你图与角标三角,
20
- * 对应 Grafana 的 stat panel 外观。
21
- */
22
- panel?: boolean;
23
- /** 数值单位后缀(如 `K`、`%`),以小号字体渲染在数值右侧。 */
24
- unit?: React.ReactNode;
25
- /** 面板数值字号(panel 模式),默认 `xl`。 */
26
- valueSize?: 'md' | 'lg' | 'xl' | '2xl';
27
- /** 面板内容对齐(panel 模式),默认 `left`。 */
28
- align?: 'left' | 'center';
29
- /** 直接传入迷你图节点(优先于 sparklineData)。 */
30
- sparkline?: React.ReactNode;
31
- /** 迷你图数据:传入数值数组后自动渲染 sparkline。 */
32
- sparklineData?: number[];
33
- /** 迷你图类型:折线 / 面积 / 柱状。 */
34
- sparklineType?: 'line' | 'area' | 'bar';
35
- /** 迷你图高度(px)。 */
36
- sparklineHeight?: number;
37
- /** 右上角状态三角(Grafana 阈值指示)。 */
38
- indicator?: boolean;
39
- /** 整卡填充 tone 底色、文字用对应 content 色(图 RabbitMQ 风格)。 */
40
- filled?: boolean;
41
- /** 点击回调(面板常用于跳转详情)。 */
42
- onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
43
- };
44
- /**
45
- * 统计卡片:仪表盘等场景的「标签 + 数值 + 图标」小卡。
46
- * 内部基于 Card 组件,默认紧凑内边距与小号字体。
47
- *
48
- * 传入 `panel` 后切换为 Grafana 风格统计面板:
49
- * 大号数值、单位后缀、迷你折线/面积/柱状图、角标三角与整卡填充色。
50
- */
51
- declare const StatCard: ({ label, value, icon, iconPosition, tone, hint, loading, className, panel, unit, valueSize, align, sparkline, sparklineData, sparklineType, sparklineHeight, indicator, filled, onClick, }: StatCardProps) => React.JSX.Element;
52
- export default StatCard;