@bioturing/components 0.15.0 → 0.15.1
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/Badge/component.js +21 -0
- package/dist/components/Badge/component.js.map +1 -0
- package/dist/components/Badge/style.css +1 -0
- package/dist/components/Breadcrumb/component.js +46 -0
- package/dist/components/Breadcrumb/component.js.map +1 -0
- package/dist/components/Breadcrumb/style.css +1 -0
- package/dist/components/Breadcrumb/useItemRender.js +27 -0
- package/dist/components/Breadcrumb/useItemRender.js.map +1 -0
- package/dist/components/Button/component.js +9 -0
- package/dist/components/Button/component.js.map +1 -0
- package/dist/components/Button/style.css +1 -0
- package/dist/components/Checkbox/component.js +11 -0
- package/dist/components/Checkbox/component.js.map +1 -0
- package/dist/components/Checkbox/style.css +1 -0
- package/dist/components/CodeBlock/component.js +127 -0
- package/dist/components/CodeBlock/component.js.map +1 -0
- package/dist/components/CodeBlock/style.css +1 -0
- package/dist/components/DSRoot/component.js +21 -0
- package/dist/components/DSRoot/component.js.map +1 -0
- package/dist/components/DSRoot/context.js +9 -0
- package/dist/components/DSRoot/context.js.map +1 -0
- package/dist/components/DSRoot/style.css +1 -0
- package/dist/components/DropdownMenu/component.js +103 -0
- package/dist/components/DropdownMenu/component.js.map +1 -0
- package/dist/components/DropdownMenu/style.css +1 -0
- package/dist/components/Empty/component.js +48 -0
- package/dist/components/Empty/component.js.map +1 -0
- package/dist/components/Empty/style.css +1 -0
- package/dist/components/Field/component.js +30 -0
- package/dist/components/Field/component.js.map +1 -0
- package/dist/components/Field/style.css +1 -0
- package/dist/components/Form/component.js +23 -0
- package/dist/components/Form/component.js.map +1 -0
- package/dist/components/Form/item.js +30 -0
- package/dist/components/Form/item.js.map +1 -0
- package/dist/components/Form/style.css +1 -0
- package/dist/components/IconButton/component.js +49 -0
- package/dist/components/IconButton/component.js.map +1 -0
- package/dist/components/IconButton/style.css +1 -0
- package/dist/components/Input/component.js +25 -0
- package/dist/components/Input/component.js.map +1 -0
- package/dist/components/Modal/Modal.js +161 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalProvider.js +70 -0
- package/dist/components/Modal/ModalProvider.js.map +1 -0
- package/dist/components/Modal/ModalService.js +25 -0
- package/dist/components/Modal/ModalService.js.map +1 -0
- package/dist/components/Modal/constants.js +5 -0
- package/dist/components/Modal/constants.js.map +1 -0
- package/dist/components/Modal/functions.js +27 -0
- package/dist/components/Modal/functions.js.map +1 -0
- package/dist/components/Modal/index.js +20 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/style.css +1 -0
- package/dist/components/Popover/component.js +12 -0
- package/dist/components/Popover/component.js.map +1 -0
- package/dist/components/PopupPanel/component.js +190 -0
- package/dist/components/PopupPanel/component.js.map +1 -0
- package/dist/components/PopupPanel/constants.js +5 -0
- package/dist/components/PopupPanel/constants.js.map +1 -0
- package/dist/components/PopupPanel/style.css +1 -0
- package/dist/components/Radio/component.js +22 -0
- package/dist/components/Radio/component.js.map +1 -0
- package/dist/components/Radio/style.css +1 -0
- package/dist/components/ScrollArea/component.js +40 -0
- package/dist/components/ScrollArea/component.js.map +1 -0
- package/dist/components/ScrollArea/style.css +1 -0
- package/dist/components/Segmented/component.js +9 -0
- package/dist/components/Segmented/component.js.map +1 -0
- package/dist/components/Segmented/style.css +1 -0
- package/dist/components/Select/component.js +135 -0
- package/dist/components/Select/component.js.map +1 -0
- package/dist/components/Select/style.css +1 -0
- package/dist/components/Slider/component.js +23 -0
- package/dist/components/Slider/component.js.map +1 -0
- package/dist/components/Spin/component.js +12 -0
- package/dist/components/Spin/component.js.map +1 -0
- package/dist/components/Spin/style.css +1 -0
- package/dist/components/Splitter/component.js +40 -0
- package/dist/components/Splitter/component.js.map +1 -0
- package/dist/components/Splitter/style.css +1 -0
- package/dist/components/Stack/Stack.js +37 -0
- package/dist/components/Stack/Stack.js.map +1 -0
- package/dist/components/Stack/StackChild.js +57 -0
- package/dist/components/Stack/StackChild.js.map +1 -0
- package/dist/components/Stack/index.js +9 -0
- package/dist/components/Stack/index.js.map +1 -0
- package/dist/components/Stack/style.css +1 -0
- package/dist/components/Switch/component.js +9 -0
- package/dist/components/Switch/component.js.map +1 -0
- package/dist/components/Switch/style.css +1 -0
- package/dist/components/Table/component.js +68 -0
- package/dist/components/Table/component.js.map +1 -0
- package/dist/components/Table/style.css +1 -0
- package/dist/components/Tag/component.js +30 -0
- package/dist/components/Tag/component.js.map +1 -0
- package/dist/components/Tag/style.css +1 -0
- package/dist/components/ThemeProvider/component.js +41 -0
- package/dist/components/ThemeProvider/component.js.map +1 -0
- package/dist/components/ThemeProvider/style.css +1 -0
- package/dist/components/Toast/component.js +101 -0
- package/dist/components/Toast/component.js.map +1 -0
- package/dist/components/Toast/function.js +25 -0
- package/dist/components/Toast/function.js.map +1 -0
- package/dist/components/Toast/style.css +1 -0
- package/dist/components/Tooltip/component.js +26 -0
- package/dist/components/Tooltip/component.js.map +1 -0
- package/dist/components/Tooltip/style.css +1 -0
- package/dist/components/Tour/component.js +35 -0
- package/dist/components/Tour/component.js.map +1 -0
- package/dist/components/Tour/style.css +1 -0
- package/dist/components/Transition/component.js +44 -0
- package/dist/components/Transition/component.js.map +1 -0
- package/dist/components/Tree/components.js +67 -0
- package/dist/components/Tree/components.js.map +1 -0
- package/dist/components/Tree/helpers.js +53 -0
- package/dist/components/Tree/helpers.js.map +1 -0
- package/dist/components/Tree/useTreeCommon.js +86 -0
- package/dist/components/Tree/useTreeCommon.js.map +1 -0
- package/dist/components/Tree/useUniqueKeysTree.js +142 -0
- package/dist/components/Tree/useUniqueKeysTree.js.map +1 -0
- package/dist/components/Truncate/component.js +93 -0
- package/dist/components/Truncate/component.js.map +1 -0
- package/dist/components/Truncate/helpers.js +36 -0
- package/dist/components/Truncate/helpers.js.map +1 -0
- package/dist/components/Truncate/style.css +1 -0
- package/dist/components/Upload/component.js +39 -0
- package/dist/components/Upload/component.js.map +1 -0
- package/dist/components/Upload/dragger.js +23 -0
- package/dist/components/Upload/dragger.js.map +1 -0
- package/dist/components/Upload/hooks.js +18 -0
- package/dist/components/Upload/hooks.js.map +1 -0
- package/dist/components/Upload/item.js +84 -0
- package/dist/components/Upload/item.js.map +1 -0
- package/dist/components/Upload/utils.js +7 -0
- package/dist/components/Upload/utils.js.map +1 -0
- package/dist/components/VerticalCollapsiblePanel/component.js +125 -0
- package/dist/components/VerticalCollapsiblePanel/component.js.map +1 -0
- package/dist/components/VerticalCollapsiblePanel/style.css +1 -0
- package/dist/components/hooks/antd.js +22 -0
- package/dist/components/hooks/antd.js.map +1 -0
- package/dist/components/hooks/base-ui.js +47 -0
- package/dist/components/hooks/base-ui.js.map +1 -0
- package/dist/components/hooks/useCharts.js +28 -0
- package/dist/components/hooks/useCharts.js.map +1 -0
- package/dist/components/hooks/useControlledState.js +15 -0
- package/dist/components/hooks/useControlledState.js.map +1 -0
- package/dist/components/utils/WithAntdTokens.js +24 -0
- package/dist/components/utils/WithAntdTokens.js.map +1 -0
- package/dist/components/utils/antdUtils.js +58 -0
- package/dist/components/utils/antdUtils.js.map +1 -0
- package/dist/components/utils/cn.js +27 -0
- package/dist/components/utils/cn.js.map +1 -0
- package/dist/components/utils/isTracebackError.js +10 -0
- package/dist/components/utils/isTracebackError.js.map +1 -0
- package/dist/components/utils/reactToString.js +23 -0
- package/dist/components/utils/reactToString.js.map +1 -0
- package/dist/index.d.ts +2497 -3
- package/dist/index.js +188 -4004
- package/dist/index.js.map +1 -0
- package/dist/metadata.js +513 -0
- package/dist/metadata.js.map +1 -0
- package/dist/tailwind.css +1 -121
- package/dist/tailwind.d.ts +1 -0
- package/dist/tokens/and-theme/tokens.js +351 -0
- package/dist/tokens/and-theme/tokens.js.map +1 -0
- package/dist/tokens/charts/index.js +18 -0
- package/dist/tokens/charts/index.js.map +1 -0
- package/dist/tokens/charts/tokens.js +208 -0
- package/dist/tokens/charts/tokens.js.map +1 -0
- package/dist/tokens/utils.js +37 -0
- package/dist/tokens/utils.js.map +1 -0
- package/package.json +10 -108
- package/dist/Badge.css +0 -6
- package/dist/Badge.js +0 -41
- package/dist/Breadcrumb.css +0 -83
- package/dist/Breadcrumb.js +0 -92
- package/dist/Checkbox.css +0 -13
- package/dist/Checkbox.js +0 -12
- package/dist/CodeBlock.css +0 -213
- package/dist/CodeBlock.js +0 -644
- package/dist/Collapse.css +0 -21
- package/dist/Collapse.js +0 -49
- package/dist/DSRoot.css +0 -667
- package/dist/DSRoot.js +0 -1428
- package/dist/DropdownMenu.css +0 -95
- package/dist/DropdownMenu.js +0 -211
- package/dist/Empty.css +0 -19
- package/dist/Empty.js +0 -53
- package/dist/Field.css +0 -14
- package/dist/Field.js +0 -66
- package/dist/Form.css +0 -64
- package/dist/Form.js +0 -125
- package/dist/IconButton.css +0 -52
- package/dist/IconButton.js +0 -82
- package/dist/Input.js +0 -48
- package/dist/Modal.css +0 -317
- package/dist/Modal.js +0 -677
- package/dist/Popover.js +0 -10
- package/dist/PopupPanel.css +0 -170
- package/dist/PopupPanel.js +0 -333
- package/dist/Radio.css +0 -14
- package/dist/Radio.js +0 -24
- package/dist/ScrollArea.css +0 -64
- package/dist/ScrollArea.js +0 -50
- package/dist/Segmented.css +0 -16
- package/dist/Segmented.js +0 -10
- package/dist/Select.css +0 -24
- package/dist/Select.js +0 -157
- package/dist/Slider.js +0 -39
- package/dist/Spin.css +0 -36
- package/dist/Spin.js +0 -33
- package/dist/Splitter.css +0 -6
- package/dist/Splitter.js +0 -47
- package/dist/Switch.css +0 -7
- package/dist/Switch.js +0 -10
- package/dist/Table.css +0 -116
- package/dist/Table.js +0 -126
- package/dist/Tag.css +0 -17
- package/dist/Tag.js +0 -24
- package/dist/ThemeProvider.css +0 -39
- package/dist/ThemeProvider.js +0 -403
- package/dist/Toast.css +0 -622
- package/dist/Toast.js +0 -1401
- package/dist/Tooltip.css +0 -6
- package/dist/Tooltip.js +0 -36
- package/dist/Tour.css +0 -73
- package/dist/Tour.js +0 -54
- package/dist/Tree.js +0 -318
- package/dist/Truncate.css +0 -31
- package/dist/Truncate.js +0 -216
- package/dist/Upload.css +0 -144
- package/dist/Upload.js +0 -516
- package/dist/VerticalCollapsiblePanel.css +0 -193
- package/dist/VerticalCollapsiblePanel.js +0 -469
- package/dist/components/Badge/component.d.ts +0 -4
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/component.d.ts +0 -6
- package/dist/components/Breadcrumb/index.d.ts +0 -2
- package/dist/components/Breadcrumb/types.d.ts +0 -18
- package/dist/components/Breadcrumb/useItemRender.d.ts +0 -6
- package/dist/components/Button/component.d.ts +0 -8
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/component.d.ts +0 -11
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CodeBlock/component.d.ts +0 -3
- package/dist/components/CodeBlock/index.d.ts +0 -2
- package/dist/components/CodeBlock/types.d.ts +0 -59
- package/dist/components/Collapse/component.d.ts +0 -14
- package/dist/components/Collapse/index.d.ts +0 -1
- package/dist/components/DSRoot/component.d.ts +0 -14
- package/dist/components/DSRoot/context.d.ts +0 -7
- package/dist/components/DSRoot/index.d.ts +0 -1
- package/dist/components/DropdownMenu/component.d.ts +0 -31
- package/dist/components/DropdownMenu/index.d.ts +0 -2
- package/dist/components/Empty/component.d.ts +0 -13
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/Field/component.d.ts +0 -42
- package/dist/components/Field/index.d.ts +0 -1
- package/dist/components/Form/component.d.ts +0 -19
- package/dist/components/Form/index.d.ts +0 -1
- package/dist/components/Form/item.d.ts +0 -5
- package/dist/components/IconButton/component.d.ts +0 -30
- package/dist/components/IconButton/index.d.ts +0 -1
- package/dist/components/Input/component.d.ts +0 -30
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -84
- package/dist/components/Modal/ModalProvider.d.ts +0 -5
- package/dist/components/Modal/ModalService.d.ts +0 -33
- package/dist/components/Modal/constants.d.ts +0 -9
- package/dist/components/Modal/functions.d.ts +0 -27
- package/dist/components/Modal/index.d.ts +0 -15
- package/dist/components/Popover/component.d.ts +0 -9
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/PopupPanel/component.d.ts +0 -61
- package/dist/components/PopupPanel/constants.d.ts +0 -7
- package/dist/components/PopupPanel/index.d.ts +0 -1
- package/dist/components/Radio/component.d.ts +0 -8
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/interface.d.ts +0 -5
- package/dist/components/ScrollArea/component.d.ts +0 -32
- package/dist/components/ScrollArea/index.d.ts +0 -1
- package/dist/components/Segmented/component.d.ts +0 -10
- package/dist/components/Segmented/index.d.ts +0 -1
- package/dist/components/Select/component.d.ts +0 -24
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Slider/component.d.ts +0 -5
- package/dist/components/Slider/index.d.ts +0 -1
- package/dist/components/Spin/component.d.ts +0 -4
- package/dist/components/Spin/index.d.ts +0 -1
- package/dist/components/Splitter/component.d.ts +0 -13
- package/dist/components/Splitter/index.d.ts +0 -1
- package/dist/components/Stack/Stack.d.ts +0 -39
- package/dist/components/Stack/StackChild.d.ts +0 -30
- package/dist/components/Stack/index.d.ts +0 -8
- package/dist/components/Switch/component.d.ts +0 -9
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Table/component.d.ts +0 -20
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tag/component.d.ts +0 -12
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/ThemeProvider/component.d.ts +0 -7
- package/dist/components/ThemeProvider/index.d.ts +0 -1
- package/dist/components/Toast/component.d.ts +0 -15
- package/dist/components/Toast/function.d.ts +0 -10
- package/dist/components/Toast/index.d.ts +0 -3
- package/dist/components/Toast/types.d.ts +0 -3
- package/dist/components/Tooltip/component.d.ts +0 -10
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/Tour/component.d.ts +0 -8
- package/dist/components/Tour/index.d.ts +0 -1
- package/dist/components/Transition/component.d.ts +0 -17
- package/dist/components/Transition/index.d.ts +0 -1
- package/dist/components/Tree/components.d.ts +0 -13
- package/dist/components/Tree/helpers.d.ts +0 -4
- package/dist/components/Tree/index.d.ts +0 -4
- package/dist/components/Tree/types.d.ts +0 -55
- package/dist/components/Tree/useTreeCommon.d.ts +0 -178
- package/dist/components/Tree/useUniqueKeysTree.d.ts +0 -33
- package/dist/components/Truncate/component.d.ts +0 -15
- package/dist/components/Truncate/helpers.d.ts +0 -5
- package/dist/components/Truncate/index.d.ts +0 -1
- package/dist/components/Upload/component.d.ts +0 -16
- package/dist/components/Upload/dragger.d.ts +0 -13
- package/dist/components/Upload/hooks.d.ts +0 -5
- package/dist/components/Upload/index.d.ts +0 -4
- package/dist/components/Upload/item.d.ts +0 -11
- package/dist/components/Upload/utils.d.ts +0 -1
- package/dist/components/VerticalCollapsiblePanel/component.d.ts +0 -65
- package/dist/components/VerticalCollapsiblePanel/index.d.ts +0 -1
- package/dist/components/hooks/antd.d.ts +0 -11
- package/dist/components/hooks/base-ui.d.ts +0 -7
- package/dist/components/hooks/index.d.ts +0 -4
- package/dist/components/hooks/useCharts.d.ts +0 -22
- package/dist/components/hooks/useControlledState.d.ts +0 -1
- package/dist/components/index.d.ts +0 -41
- package/dist/components/utils/WithAntdTokens.d.ts +0 -7
- package/dist/components/utils/antdUtils.d.ts +0 -15
- package/dist/components/utils/client.d.ts +0 -2
- package/dist/components/utils/cn.d.ts +0 -4
- package/dist/components/utils/index.d.ts +0 -3
- package/dist/components/utils/isTracebackError.d.ts +0 -1
- package/dist/components/utils/main.d.ts +0 -3
- package/dist/components/utils/reactToString.d.ts +0 -2
- package/dist/components/utils/types.d.ts +0 -9
- package/dist/hooks.js +0 -961
- package/dist/index.css +0 -1471
- package/dist/metadata.d.ts +0 -363
- package/dist/tokens/and-theme/index.d.ts +0 -1
- package/dist/tokens/and-theme/tokens.d.ts +0 -5
- package/dist/tokens/charts/index.d.ts +0 -6
- package/dist/tokens/charts/tokens.d.ts +0 -455
- package/dist/tokens/index.d.ts +0 -2
- package/dist/tokens/utils.d.ts +0 -16
- package/dist/utils.js +0 -120
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
export declare const rawChartColorTokens: {
|
|
2
|
-
colorChartsRed300: {
|
|
3
|
-
light: string;
|
|
4
|
-
dark: string;
|
|
5
|
-
};
|
|
6
|
-
colorChartsRed400: {
|
|
7
|
-
light: string;
|
|
8
|
-
dark: string;
|
|
9
|
-
};
|
|
10
|
-
colorChartsRed500: {
|
|
11
|
-
light: string;
|
|
12
|
-
dark: string;
|
|
13
|
-
};
|
|
14
|
-
colorChartsRed600: {
|
|
15
|
-
light: string;
|
|
16
|
-
dark: string;
|
|
17
|
-
};
|
|
18
|
-
colorChartsRed700: {
|
|
19
|
-
light: string;
|
|
20
|
-
dark: string;
|
|
21
|
-
};
|
|
22
|
-
colorChartsRed800: {
|
|
23
|
-
light: string;
|
|
24
|
-
dark: string;
|
|
25
|
-
};
|
|
26
|
-
colorChartsRed900: {
|
|
27
|
-
light: string;
|
|
28
|
-
dark: string;
|
|
29
|
-
};
|
|
30
|
-
colorChartsRed1000: {
|
|
31
|
-
light: string;
|
|
32
|
-
dark: string;
|
|
33
|
-
};
|
|
34
|
-
colorChartsRed1100: {
|
|
35
|
-
light: string;
|
|
36
|
-
dark: string;
|
|
37
|
-
};
|
|
38
|
-
colorChartsRed1200: {
|
|
39
|
-
light: string;
|
|
40
|
-
dark: string;
|
|
41
|
-
};
|
|
42
|
-
colorChartsOrange300: {
|
|
43
|
-
light: string;
|
|
44
|
-
dark: string;
|
|
45
|
-
};
|
|
46
|
-
colorChartsOrange400: {
|
|
47
|
-
light: string;
|
|
48
|
-
dark: string;
|
|
49
|
-
};
|
|
50
|
-
colorChartsOrange500: {
|
|
51
|
-
light: string;
|
|
52
|
-
dark: string;
|
|
53
|
-
};
|
|
54
|
-
colorChartsOrange600: {
|
|
55
|
-
light: string;
|
|
56
|
-
dark: string;
|
|
57
|
-
};
|
|
58
|
-
colorChartsOrange700: {
|
|
59
|
-
light: string;
|
|
60
|
-
dark: string;
|
|
61
|
-
};
|
|
62
|
-
colorChartsOrange800: {
|
|
63
|
-
light: string;
|
|
64
|
-
dark: string;
|
|
65
|
-
};
|
|
66
|
-
colorChartsOrange900: {
|
|
67
|
-
light: string;
|
|
68
|
-
dark: string;
|
|
69
|
-
};
|
|
70
|
-
colorChartsOrange1000: {
|
|
71
|
-
light: string;
|
|
72
|
-
dark: string;
|
|
73
|
-
};
|
|
74
|
-
colorChartsOrange1100: {
|
|
75
|
-
light: string;
|
|
76
|
-
dark: string;
|
|
77
|
-
};
|
|
78
|
-
colorChartsOrange1200: {
|
|
79
|
-
light: string;
|
|
80
|
-
dark: string;
|
|
81
|
-
};
|
|
82
|
-
colorChartsYellow300: {
|
|
83
|
-
light: string;
|
|
84
|
-
dark: string;
|
|
85
|
-
};
|
|
86
|
-
colorChartsYellow400: {
|
|
87
|
-
light: string;
|
|
88
|
-
dark: string;
|
|
89
|
-
};
|
|
90
|
-
colorChartsYellow500: {
|
|
91
|
-
light: string;
|
|
92
|
-
dark: string;
|
|
93
|
-
};
|
|
94
|
-
colorChartsYellow600: {
|
|
95
|
-
light: string;
|
|
96
|
-
dark: string;
|
|
97
|
-
};
|
|
98
|
-
colorChartsYellow700: {
|
|
99
|
-
light: string;
|
|
100
|
-
dark: string;
|
|
101
|
-
};
|
|
102
|
-
colorChartsYellow800: {
|
|
103
|
-
light: string;
|
|
104
|
-
dark: string;
|
|
105
|
-
};
|
|
106
|
-
colorChartsYellow900: {
|
|
107
|
-
light: string;
|
|
108
|
-
dark: string;
|
|
109
|
-
};
|
|
110
|
-
colorChartsYellow1000: {
|
|
111
|
-
light: string;
|
|
112
|
-
dark: string;
|
|
113
|
-
};
|
|
114
|
-
colorChartsYellow1100: {
|
|
115
|
-
light: string;
|
|
116
|
-
dark: string;
|
|
117
|
-
};
|
|
118
|
-
colorChartsYellow1200: {
|
|
119
|
-
light: string;
|
|
120
|
-
dark: string;
|
|
121
|
-
};
|
|
122
|
-
colorChartsGreen300: {
|
|
123
|
-
light: string;
|
|
124
|
-
dark: string;
|
|
125
|
-
};
|
|
126
|
-
colorChartsGreen400: {
|
|
127
|
-
light: string;
|
|
128
|
-
dark: string;
|
|
129
|
-
};
|
|
130
|
-
colorChartsGreen500: {
|
|
131
|
-
light: string;
|
|
132
|
-
dark: string;
|
|
133
|
-
};
|
|
134
|
-
colorChartsGreen600: {
|
|
135
|
-
light: string;
|
|
136
|
-
dark: string;
|
|
137
|
-
};
|
|
138
|
-
colorChartsGreen700: {
|
|
139
|
-
light: string;
|
|
140
|
-
dark: string;
|
|
141
|
-
};
|
|
142
|
-
colorChartsGreen800: {
|
|
143
|
-
light: string;
|
|
144
|
-
dark: string;
|
|
145
|
-
};
|
|
146
|
-
colorChartsGreen900: {
|
|
147
|
-
light: string;
|
|
148
|
-
dark: string;
|
|
149
|
-
};
|
|
150
|
-
colorChartsGreen1000: {
|
|
151
|
-
light: string;
|
|
152
|
-
dark: string;
|
|
153
|
-
};
|
|
154
|
-
colorChartsGreen1100: {
|
|
155
|
-
light: string;
|
|
156
|
-
dark: string;
|
|
157
|
-
};
|
|
158
|
-
colorChartsGreen1200: {
|
|
159
|
-
light: string;
|
|
160
|
-
dark: string;
|
|
161
|
-
};
|
|
162
|
-
colorChartsTeal300: {
|
|
163
|
-
light: string;
|
|
164
|
-
dark: string;
|
|
165
|
-
};
|
|
166
|
-
colorChartsTeal400: {
|
|
167
|
-
light: string;
|
|
168
|
-
dark: string;
|
|
169
|
-
};
|
|
170
|
-
colorChartsTeal500: {
|
|
171
|
-
light: string;
|
|
172
|
-
dark: string;
|
|
173
|
-
};
|
|
174
|
-
colorChartsTeal600: {
|
|
175
|
-
light: string;
|
|
176
|
-
dark: string;
|
|
177
|
-
};
|
|
178
|
-
colorChartsTeal700: {
|
|
179
|
-
light: string;
|
|
180
|
-
dark: string;
|
|
181
|
-
};
|
|
182
|
-
colorChartsTeal800: {
|
|
183
|
-
light: string;
|
|
184
|
-
dark: string;
|
|
185
|
-
};
|
|
186
|
-
colorChartsTeal900: {
|
|
187
|
-
light: string;
|
|
188
|
-
dark: string;
|
|
189
|
-
};
|
|
190
|
-
colorChartsTeal1000: {
|
|
191
|
-
light: string;
|
|
192
|
-
dark: string;
|
|
193
|
-
};
|
|
194
|
-
colorChartsTeal1100: {
|
|
195
|
-
light: string;
|
|
196
|
-
dark: string;
|
|
197
|
-
};
|
|
198
|
-
colorChartsTeal1200: {
|
|
199
|
-
light: string;
|
|
200
|
-
dark: string;
|
|
201
|
-
};
|
|
202
|
-
colorChartsBlue1300: {
|
|
203
|
-
light: string;
|
|
204
|
-
dark: string;
|
|
205
|
-
};
|
|
206
|
-
colorChartsBlue1400: {
|
|
207
|
-
light: string;
|
|
208
|
-
dark: string;
|
|
209
|
-
};
|
|
210
|
-
colorChartsBlue1500: {
|
|
211
|
-
light: string;
|
|
212
|
-
dark: string;
|
|
213
|
-
};
|
|
214
|
-
colorChartsBlue1600: {
|
|
215
|
-
light: string;
|
|
216
|
-
dark: string;
|
|
217
|
-
};
|
|
218
|
-
colorChartsBlue1700: {
|
|
219
|
-
light: string;
|
|
220
|
-
dark: string;
|
|
221
|
-
};
|
|
222
|
-
colorChartsBlue1800: {
|
|
223
|
-
light: string;
|
|
224
|
-
dark: string;
|
|
225
|
-
};
|
|
226
|
-
colorChartsBlue1900: {
|
|
227
|
-
light: string;
|
|
228
|
-
dark: string;
|
|
229
|
-
};
|
|
230
|
-
colorChartsBlue11000: {
|
|
231
|
-
light: string;
|
|
232
|
-
dark: string;
|
|
233
|
-
};
|
|
234
|
-
colorChartsBlue11100: {
|
|
235
|
-
light: string;
|
|
236
|
-
dark: string;
|
|
237
|
-
};
|
|
238
|
-
colorChartsBlue11200: {
|
|
239
|
-
light: string;
|
|
240
|
-
dark: string;
|
|
241
|
-
};
|
|
242
|
-
colorChartsBlue2300: {
|
|
243
|
-
light: string;
|
|
244
|
-
dark: string;
|
|
245
|
-
};
|
|
246
|
-
colorChartsBlue2400: {
|
|
247
|
-
light: string;
|
|
248
|
-
dark: string;
|
|
249
|
-
};
|
|
250
|
-
colorChartsBlue2500: {
|
|
251
|
-
light: string;
|
|
252
|
-
dark: string;
|
|
253
|
-
};
|
|
254
|
-
colorChartsBlue2600: {
|
|
255
|
-
light: string;
|
|
256
|
-
dark: string;
|
|
257
|
-
};
|
|
258
|
-
colorChartsBlue2700: {
|
|
259
|
-
light: string;
|
|
260
|
-
dark: string;
|
|
261
|
-
};
|
|
262
|
-
colorChartsBlue2800: {
|
|
263
|
-
light: string;
|
|
264
|
-
dark: string;
|
|
265
|
-
};
|
|
266
|
-
colorChartsBlue2900: {
|
|
267
|
-
light: string;
|
|
268
|
-
dark: string;
|
|
269
|
-
};
|
|
270
|
-
colorChartsBlue21000: {
|
|
271
|
-
light: string;
|
|
272
|
-
dark: string;
|
|
273
|
-
};
|
|
274
|
-
colorChartsBlue21100: {
|
|
275
|
-
light: string;
|
|
276
|
-
dark: string;
|
|
277
|
-
};
|
|
278
|
-
colorChartsBlue21200: {
|
|
279
|
-
light: string;
|
|
280
|
-
dark: string;
|
|
281
|
-
};
|
|
282
|
-
colorChartsPurple300: {
|
|
283
|
-
light: string;
|
|
284
|
-
dark: string;
|
|
285
|
-
};
|
|
286
|
-
colorChartsPurple400: {
|
|
287
|
-
light: string;
|
|
288
|
-
dark: string;
|
|
289
|
-
};
|
|
290
|
-
colorChartsPurple500: {
|
|
291
|
-
light: string;
|
|
292
|
-
dark: string;
|
|
293
|
-
};
|
|
294
|
-
colorChartsPurple600: {
|
|
295
|
-
light: string;
|
|
296
|
-
dark: string;
|
|
297
|
-
};
|
|
298
|
-
colorChartsPurple700: {
|
|
299
|
-
light: string;
|
|
300
|
-
dark: string;
|
|
301
|
-
};
|
|
302
|
-
colorChartsPurple800: {
|
|
303
|
-
light: string;
|
|
304
|
-
dark: string;
|
|
305
|
-
};
|
|
306
|
-
colorChartsPurple900: {
|
|
307
|
-
light: string;
|
|
308
|
-
dark: string;
|
|
309
|
-
};
|
|
310
|
-
colorChartsPurple1000: {
|
|
311
|
-
light: string;
|
|
312
|
-
dark: string;
|
|
313
|
-
};
|
|
314
|
-
colorChartsPurple1100: {
|
|
315
|
-
light: string;
|
|
316
|
-
dark: string;
|
|
317
|
-
};
|
|
318
|
-
colorChartsPurple1200: {
|
|
319
|
-
light: string;
|
|
320
|
-
dark: string;
|
|
321
|
-
};
|
|
322
|
-
colorChartsPink300: {
|
|
323
|
-
light: string;
|
|
324
|
-
dark: string;
|
|
325
|
-
};
|
|
326
|
-
colorChartsPink400: {
|
|
327
|
-
light: string;
|
|
328
|
-
dark: string;
|
|
329
|
-
};
|
|
330
|
-
colorChartsPink500: {
|
|
331
|
-
light: string;
|
|
332
|
-
dark: string;
|
|
333
|
-
};
|
|
334
|
-
colorChartsPink600: {
|
|
335
|
-
light: string;
|
|
336
|
-
dark: string;
|
|
337
|
-
};
|
|
338
|
-
colorChartsPink700: {
|
|
339
|
-
light: string;
|
|
340
|
-
dark: string;
|
|
341
|
-
};
|
|
342
|
-
colorChartsPink800: {
|
|
343
|
-
light: string;
|
|
344
|
-
dark: string;
|
|
345
|
-
};
|
|
346
|
-
colorChartsPink900: {
|
|
347
|
-
light: string;
|
|
348
|
-
dark: string;
|
|
349
|
-
};
|
|
350
|
-
colorChartsPink1000: {
|
|
351
|
-
light: string;
|
|
352
|
-
dark: string;
|
|
353
|
-
};
|
|
354
|
-
colorChartsPink1100: {
|
|
355
|
-
light: string;
|
|
356
|
-
dark: string;
|
|
357
|
-
};
|
|
358
|
-
colorChartsPink1200: {
|
|
359
|
-
light: string;
|
|
360
|
-
dark: string;
|
|
361
|
-
};
|
|
362
|
-
colorChartsStatusCritical: {
|
|
363
|
-
light: string;
|
|
364
|
-
dark: string;
|
|
365
|
-
};
|
|
366
|
-
colorChartsStatusHigh: {
|
|
367
|
-
light: string;
|
|
368
|
-
dark: string;
|
|
369
|
-
};
|
|
370
|
-
colorChartsStatusMedium: {
|
|
371
|
-
light: string;
|
|
372
|
-
dark: string;
|
|
373
|
-
};
|
|
374
|
-
colorChartsStatusLow: {
|
|
375
|
-
light: string;
|
|
376
|
-
dark: string;
|
|
377
|
-
};
|
|
378
|
-
colorChartsStatusPositive: {
|
|
379
|
-
light: string;
|
|
380
|
-
dark: string;
|
|
381
|
-
};
|
|
382
|
-
colorChartsStatusInfo: {
|
|
383
|
-
light: string;
|
|
384
|
-
dark: string;
|
|
385
|
-
};
|
|
386
|
-
colorChartsStatusNeutral: string | import("../utils").ColorTokenValue;
|
|
387
|
-
colorChartsThresholdNegative: string | import("../utils").ColorTokenValue;
|
|
388
|
-
colorChartsThresholdPositive: string | import("../utils").ColorTokenValue;
|
|
389
|
-
colorChartsThresholdInfo: string | import("../utils").ColorTokenValue;
|
|
390
|
-
colorChartsThresholdNeutral: string | import("../utils").ColorTokenValue;
|
|
391
|
-
colorChartsLineGrid: {
|
|
392
|
-
light: string;
|
|
393
|
-
dark: string;
|
|
394
|
-
};
|
|
395
|
-
colorChartsLineTick: string;
|
|
396
|
-
colorChartsLineAxis: {
|
|
397
|
-
light: string;
|
|
398
|
-
dark: string;
|
|
399
|
-
};
|
|
400
|
-
colorChartsLabelAxis: {
|
|
401
|
-
light: string;
|
|
402
|
-
dark: string;
|
|
403
|
-
};
|
|
404
|
-
colorChartsPaletteCategorical1: string;
|
|
405
|
-
colorChartsPaletteCategorical2: string;
|
|
406
|
-
colorChartsPaletteCategorical3: string;
|
|
407
|
-
colorChartsPaletteCategorical4: string;
|
|
408
|
-
colorChartsPaletteCategorical5: string;
|
|
409
|
-
colorChartsPaletteCategorical6: string;
|
|
410
|
-
colorChartsPaletteCategorical7: string;
|
|
411
|
-
colorChartsPaletteCategorical8: string;
|
|
412
|
-
colorChartsPaletteCategorical9: string;
|
|
413
|
-
colorChartsPaletteCategorical10: string;
|
|
414
|
-
colorChartsPaletteCategorical11: string;
|
|
415
|
-
colorChartsPaletteCategorical12: string;
|
|
416
|
-
colorChartsPaletteCategorical13: string;
|
|
417
|
-
colorChartsPaletteCategorical14: string;
|
|
418
|
-
colorChartsPaletteCategorical15: string;
|
|
419
|
-
colorChartsPaletteCategorical16: string;
|
|
420
|
-
colorChartsPaletteCategorical17: string;
|
|
421
|
-
colorChartsPaletteCategorical18: string;
|
|
422
|
-
colorChartsPaletteCategorical19: string;
|
|
423
|
-
colorChartsPaletteCategorical20: string;
|
|
424
|
-
colorChartsPaletteCategorical21: string;
|
|
425
|
-
colorChartsPaletteCategorical22: string;
|
|
426
|
-
colorChartsPaletteCategorical23: string;
|
|
427
|
-
colorChartsPaletteCategorical24: string;
|
|
428
|
-
colorChartsPaletteCategorical25: string;
|
|
429
|
-
colorChartsPaletteCategorical26: string;
|
|
430
|
-
colorChartsPaletteCategorical27: string;
|
|
431
|
-
colorChartsPaletteCategorical28: string;
|
|
432
|
-
colorChartsPaletteCategorical29: string;
|
|
433
|
-
colorChartsPaletteCategorical30: string;
|
|
434
|
-
colorChartsPaletteCategorical31: string;
|
|
435
|
-
colorChartsPaletteCategorical32: string;
|
|
436
|
-
colorChartsPaletteCategorical33: string;
|
|
437
|
-
colorChartsPaletteCategorical34: string;
|
|
438
|
-
colorChartsPaletteCategorical35: string;
|
|
439
|
-
colorChartsPaletteCategorical36: string;
|
|
440
|
-
colorChartsPaletteCategorical37: string;
|
|
441
|
-
colorChartsPaletteCategorical38: string;
|
|
442
|
-
colorChartsPaletteCategorical39: string;
|
|
443
|
-
colorChartsPaletteCategorical40: string;
|
|
444
|
-
colorChartsPaletteCategorical41: string;
|
|
445
|
-
colorChartsPaletteCategorical42: string;
|
|
446
|
-
colorChartsPaletteCategorical43: string;
|
|
447
|
-
colorChartsPaletteCategorical44: string;
|
|
448
|
-
colorChartsPaletteCategorical45: string;
|
|
449
|
-
colorChartsPaletteCategorical46: string;
|
|
450
|
-
colorChartsPaletteCategorical47: string;
|
|
451
|
-
colorChartsPaletteCategorical48: string;
|
|
452
|
-
colorChartsPaletteCategorical49: string;
|
|
453
|
-
colorChartsPaletteCategorical50: string;
|
|
454
|
-
};
|
|
455
|
-
export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50", import("../utils").ColorTokenValue>;
|
package/dist/tokens/index.d.ts
DELETED
package/dist/tokens/utils.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type ColorTokenValue = {
|
|
2
|
-
light: string;
|
|
3
|
-
dark: string;
|
|
4
|
-
};
|
|
5
|
-
type RawColorTokenValue = string | ColorTokenValue;
|
|
6
|
-
export type ColorTokens = {
|
|
7
|
-
[key: string]: RawColorTokenValue;
|
|
8
|
-
};
|
|
9
|
-
export declare const getTokensByTheme: <T extends ColorTokens>(originTokens: T, theme: "light" | "dark") => Partial<Record<keyof T, string>>;
|
|
10
|
-
export declare const getColorsByTheme: <T extends ColorTokens>(colorsOrTokens: T | ColorTokenValue[], theme: "light" | "dark") => string[];
|
|
11
|
-
/**
|
|
12
|
-
* Resolves chart color tokens by replacing reference strings with actual values.
|
|
13
|
-
* @returns Record of token names to resolved light/dark color objects
|
|
14
|
-
*/
|
|
15
|
-
export declare function resolveColorTokens<T extends ColorTokens>(colors: T): Record<keyof T, ColorTokenValue>;
|
|
16
|
-
export {};
|
package/dist/utils.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__ from "antd/es/config-provider";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_theme_useToken_e8911485__ from "antd/es/theme/useToken";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__ from "@base-ui-components/react";
|
|
7
|
-
function cx(...args) {
|
|
8
|
-
const classes = [];
|
|
9
|
-
for (const arg of args)if (arg) {
|
|
10
|
-
if ("string" == typeof arg || "number" == typeof arg) classes.push(String(arg));
|
|
11
|
-
else if (Array.isArray(arg)) classes.push(...cx(...arg));
|
|
12
|
-
else if ("object" == typeof arg) {
|
|
13
|
-
for (const [key, value] of Object.entries(arg))if (value) classes.push(key);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return classes;
|
|
17
|
-
}
|
|
18
|
-
function clsx(...args) {
|
|
19
|
-
return cx(...args).join(" ");
|
|
20
|
-
}
|
|
21
|
-
function cn(...args) {
|
|
22
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(cx(...args));
|
|
23
|
-
}
|
|
24
|
-
function reactNodeToString(node) {
|
|
25
|
-
if (null == node) return "";
|
|
26
|
-
if ("string" == typeof node) return node;
|
|
27
|
-
if ("number" == typeof node || "boolean" == typeof node) return node.toString();
|
|
28
|
-
if (Array.isArray(node)) return node.map(reactNodeToString).join("");
|
|
29
|
-
if ((0, __WEBPACK_EXTERNAL_MODULE_react__.isValidElement)(node) && "props" in node && node.props && "object" == typeof node.props && "children" in node.props && node.props.children) {
|
|
30
|
-
if ("br" === node.type) return "\n";
|
|
31
|
-
if (node.props.children) return reactNodeToString(node.props.children);
|
|
32
|
-
}
|
|
33
|
-
return "";
|
|
34
|
-
}
|
|
35
|
-
function isTracebackError(error) {
|
|
36
|
-
if (!error || "string" != typeof error && !error.toString) return false;
|
|
37
|
-
const errorString = "string" == typeof error ? error : error.toString();
|
|
38
|
-
const pythonTracebackRegex = /Traceback \(most recent call last\):/;
|
|
39
|
-
const pythonStackFrameRegex = /File ".*?", line \d+, in/;
|
|
40
|
-
const goStackTraceRegex = /goroutine \d+ \[.*\]:|panic: /;
|
|
41
|
-
const goStackFrameRegex = /\/.*\.go:\d+/;
|
|
42
|
-
const isPythonTraceback = pythonTracebackRegex.test(errorString) || pythonStackFrameRegex.test(errorString);
|
|
43
|
-
const isGoStackTrace = goStackTraceRegex.test(errorString) || goStackFrameRegex.test(errorString);
|
|
44
|
-
return isPythonTraceback || isGoStackTrace;
|
|
45
|
-
}
|
|
46
|
-
"use client";
|
|
47
|
-
const useGetPrefixCls = ()=>{
|
|
48
|
-
const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__["default"].ConfigContext);
|
|
49
|
-
return {
|
|
50
|
-
getPrefixCls
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
const useAntdCssVarClassname = ()=>{
|
|
54
|
-
var _token_;
|
|
55
|
-
const token = (0, __WEBPACK_EXTERNAL_MODULE_antd_es_theme_useToken_e8911485__["default"])();
|
|
56
|
-
return null == (_token_ = token[4]) ? void 0 : _token_.key;
|
|
57
|
-
};
|
|
58
|
-
const useCls = ()=>{
|
|
59
|
-
const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__["default"].ConfigContext);
|
|
60
|
-
return (...args)=>cx(...args).map((cls)=>getPrefixCls(cls)).join(" ");
|
|
61
|
-
};
|
|
62
|
-
function splitCamelCase(text) {
|
|
63
|
-
const result = [];
|
|
64
|
-
let currentWord = "";
|
|
65
|
-
for (const char of text)if (char >= "A" && char <= "Z") {
|
|
66
|
-
if (currentWord) result.push(currentWord);
|
|
67
|
-
currentWord = char.toLowerCase();
|
|
68
|
-
} else currentWord += char;
|
|
69
|
-
if (currentWord) result.push(currentWord);
|
|
70
|
-
return result.length > 0 ? result : [
|
|
71
|
-
text
|
|
72
|
-
];
|
|
73
|
-
}
|
|
74
|
-
const parseAntdPlacement = (placement = "bottomLeft")=>{
|
|
75
|
-
const [position1, position2] = splitCamelCase(placement);
|
|
76
|
-
let primaryPlacement;
|
|
77
|
-
let align = "center";
|
|
78
|
-
if ("top" === position1 || "bottom" === position1) {
|
|
79
|
-
primaryPlacement = position1;
|
|
80
|
-
if (position2) switch(position2){
|
|
81
|
-
case "left":
|
|
82
|
-
align = "start";
|
|
83
|
-
break;
|
|
84
|
-
case "right":
|
|
85
|
-
align = "end";
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
} else if ("left" === position1 || "right" === position1) {
|
|
89
|
-
primaryPlacement = position1;
|
|
90
|
-
if (position2) switch(position2){
|
|
91
|
-
case "top":
|
|
92
|
-
align = "start";
|
|
93
|
-
break;
|
|
94
|
-
case "bottom":
|
|
95
|
-
align = "end";
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
} else primaryPlacement = "bottom";
|
|
99
|
-
return {
|
|
100
|
-
placement: primaryPlacement,
|
|
101
|
-
align
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
"use client";
|
|
105
|
-
const WithAntdTokens = ({ as: Tag = "div", ref, className, ...rest })=>{
|
|
106
|
-
const Component = Tag;
|
|
107
|
-
const cssVar = useAntdCssVarClassname();
|
|
108
|
-
const { renderElement } = (0, __WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.useRender)({
|
|
109
|
-
render: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Component, {}),
|
|
110
|
-
refs: [
|
|
111
|
-
ref
|
|
112
|
-
],
|
|
113
|
-
props: {
|
|
114
|
-
...rest,
|
|
115
|
-
className: clsx(className, cssVar)
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
return renderElement();
|
|
119
|
-
};
|
|
120
|
-
export { WithAntdTokens, clsx, cn, cx, isTracebackError, parseAntdPlacement, reactNodeToString, useAntdCssVarClassname, useCls, useGetPrefixCls };
|