@oinone/kunlun-theme 6.4.2 → 7.1.0
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/oinone-kunlun-theme.esm.js +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/src/color/dark-minimalism-vars.d.ts +90 -90
- package/dist/types/src/color/dark-vars.d.ts +90 -90
- package/dist/types/src/color/default-minimalism-vars.d.ts +90 -90
- package/dist/types/src/color/default-vars.d.ts +105 -105
- package/dist/types/src/color/index.d.ts +5 -5
- package/dist/types/src/color/menu-color-vars.d.ts +37 -37
- package/dist/types/src/init/currentTheme.d.ts +3 -3
- package/dist/types/src/init/index.d.ts +2 -2
- package/dist/types/src/init/initTheme.d.ts +6 -6
- package/dist/types/src/mount/constant.d.ts +1 -1
- package/dist/types/src/mount/index.d.ts +11 -11
- package/dist/types/src/register/index.d.ts +6 -6
- package/dist/types/src/size/default/index.d.ts +3 -3
- package/dist/types/src/size/default/large.d.ts +32 -32
- package/dist/types/src/size/default/medium.d.ts +32 -32
- package/dist/types/src/size/default/small.d.ts +32 -32
- package/dist/types/src/size/index.d.ts +8 -8
- package/dist/types/src/size/input/index.d.ts +2 -2
- package/dist/types/src/size/input/large.d.ts +6 -6
- package/dist/types/src/size/input/medium.d.ts +6 -6
- package/dist/types/src/size/menu/index.d.ts +3 -3
- package/dist/types/src/size/menu/large.d.ts +18 -18
- package/dist/types/src/size/menu/medium.d.ts +18 -18
- package/dist/types/src/size/menu/small.d.ts +18 -18
- package/dist/types/src/size/pagination/index.d.ts +3 -3
- package/dist/types/src/size/pagination/large.d.ts +5 -5
- package/dist/types/src/size/pagination/medium.d.ts +5 -5
- package/dist/types/src/size/pagination/small.d.ts +5 -5
- package/dist/types/src/size/select/index.d.ts +3 -3
- package/dist/types/src/size/select/large.d.ts +3 -3
- package/dist/types/src/size/select/medium.d.ts +3 -3
- package/dist/types/src/size/select/small.d.ts +3 -3
- package/dist/types/src/size/table/index.d.ts +3 -3
- package/dist/types/src/size/table/large.d.ts +5 -5
- package/dist/types/src/size/table/medium.d.ts +5 -5
- package/dist/types/src/size/table/small.d.ts +5 -5
- package/dist/types/src/size/tabs/index.d.ts +3 -3
- package/dist/types/src/size/tabs/large.d.ts +3 -3
- package/dist/types/src/size/tabs/medium.d.ts +3 -3
- package/dist/types/src/size/tabs/small.d.ts +3 -3
- package/dist/types/src/size/tree-select/index.d.ts +3 -3
- package/dist/types/src/size/tree-select/large.d.ts +4 -4
- package/dist/types/src/size/tree-select/medium.d.ts +4 -4
- package/dist/types/src/size/tree-select/small.d.ts +4 -4
- package/dist/types/src/style/dark/ai-chat/chat-bubbles.d.ts +4 -0
- package/dist/types/src/style/dark/ai-chat/conversation.d.ts +5 -0
- package/dist/types/src/style/dark/ai-chat/index.d.ts +9 -0
- package/dist/types/src/style/dark/app-switch/app-switch.d.ts +11 -11
- package/dist/types/src/style/dark/button/constant.d.ts +2 -2
- package/dist/types/src/style/dark/button/danger.d.ts +126 -126
- package/dist/types/src/style/dark/button/index.d.ts +604 -604
- package/dist/types/src/style/dark/button/info.d.ts +126 -126
- package/dist/types/src/style/dark/button/standard.d.ts +126 -126
- package/dist/types/src/style/dark/button/success.d.ts +126 -126
- package/dist/types/src/style/dark/button/warning.d.ts +126 -126
- package/dist/types/src/style/dark/card/card.d.ts +7 -7
- package/dist/types/src/style/dark/checkbox/checkbox.d.ts +7 -7
- package/dist/types/src/style/dark/component-theme.d.ts +2976 -2936
- package/dist/types/src/style/dark/drawer/drawer.d.ts +9 -9
- package/dist/types/src/style/dark/dropdown/index.d.ts +12 -12
- package/dist/types/src/style/dark/form-item/form-item.d.ts +9 -9
- package/dist/types/src/style/dark/header/header.d.ts +5 -5
- package/dist/types/src/style/dark/index.d.ts +1 -1
- package/dist/types/src/style/dark/input/input.d.ts +38 -38
- package/dist/types/src/style/dark/menu/menu.d.ts +38 -38
- package/dist/types/src/style/dark/modal/modal.d.ts +10 -10
- package/dist/types/src/style/dark/multi-tab/multi-tab.d.ts +57 -57
- package/dist/types/src/style/dark/pagination/pagination.d.ts +6 -6
- package/dist/types/src/style/dark/popconfirm/popconfirm.d.ts +7 -7
- package/dist/types/src/style/dark/registry.d.ts +1 -1
- package/dist/types/src/style/dark/rich-text/rich-text.d.ts +22 -22
- package/dist/types/src/style/dark/scrollbar/scrollbar.d.ts +5 -5
- package/dist/types/src/style/dark/select/select.d.ts +41 -41
- package/dist/types/src/style/dark/switch/switch.d.ts +4 -4
- package/dist/types/src/style/dark/table/table.d.ts +21 -21
- package/dist/types/src/style/dark/tabs/tabs.d.ts +6 -6
- package/dist/types/src/style/dark/tag/index.d.ts +5 -0
- package/dist/types/src/style/dark/textarea/textarea.d.ts +27 -27
- package/dist/types/src/style/dark/transfer/transfer.d.ts +5 -5
- package/dist/types/src/style/dark/tree-select/tree-select.d.ts +1 -1
- package/dist/types/src/style/dark/upload/upload.d.ts +27 -27
- package/dist/types/src/style/dark-minimalism/ai-chat/chat-bubbles.d.ts +4 -0
- package/dist/types/src/style/dark-minimalism/ai-chat/conversation.d.ts +5 -0
- package/dist/types/src/style/dark-minimalism/ai-chat/index.d.ts +9 -0
- package/dist/types/src/style/dark-minimalism/app-switch/app-switch.d.ts +11 -11
- package/dist/types/src/style/dark-minimalism/button/constant.d.ts +2 -2
- package/dist/types/src/style/dark-minimalism/button/danger.d.ts +126 -126
- package/dist/types/src/style/dark-minimalism/button/index.d.ts +604 -604
- package/dist/types/src/style/dark-minimalism/button/info.d.ts +126 -126
- package/dist/types/src/style/dark-minimalism/button/standard.d.ts +126 -126
- package/dist/types/src/style/dark-minimalism/button/success.d.ts +126 -126
- package/dist/types/src/style/dark-minimalism/button/warning.d.ts +126 -126
- package/dist/types/src/style/dark-minimalism/card/card.d.ts +7 -7
- package/dist/types/src/style/dark-minimalism/checkbox/checkbox.d.ts +7 -7
- package/dist/types/src/style/dark-minimalism/component-theme.d.ts +2994 -2954
- package/dist/types/src/style/dark-minimalism/drawer/drawer.d.ts +9 -9
- package/dist/types/src/style/dark-minimalism/dropdown/index.d.ts +12 -12
- package/dist/types/src/style/dark-minimalism/form-item/form-item.d.ts +9 -9
- package/dist/types/src/style/dark-minimalism/header/header.d.ts +5 -5
- package/dist/types/src/style/dark-minimalism/index.d.ts +1 -1
- package/dist/types/src/style/dark-minimalism/input/input.d.ts +38 -38
- package/dist/types/src/style/dark-minimalism/menu/menu.d.ts +38 -38
- package/dist/types/src/style/dark-minimalism/modal/modal.d.ts +10 -10
- package/dist/types/src/style/dark-minimalism/multi-tab/multi-tab.d.ts +57 -57
- package/dist/types/src/style/dark-minimalism/pagination/pagination.d.ts +12 -12
- package/dist/types/src/style/dark-minimalism/popconfirm/popconfirm.d.ts +7 -7
- package/dist/types/src/style/dark-minimalism/registry.d.ts +1 -1
- package/dist/types/src/style/dark-minimalism/rich-text/rich-text.d.ts +22 -22
- package/dist/types/src/style/dark-minimalism/scrollbar/scrollbar.d.ts +5 -5
- package/dist/types/src/style/dark-minimalism/select/select.d.ts +41 -41
- package/dist/types/src/style/dark-minimalism/switch/switch.d.ts +4 -4
- package/dist/types/src/style/dark-minimalism/table/table.d.ts +21 -21
- package/dist/types/src/style/dark-minimalism/tabs/tabs.d.ts +6 -6
- package/dist/types/src/style/dark-minimalism/tag/index.d.ts +5 -0
- package/dist/types/src/style/dark-minimalism/textarea/textarea.d.ts +27 -27
- package/dist/types/src/style/dark-minimalism/transfer/transfer.d.ts +5 -5
- package/dist/types/src/style/dark-minimalism/tree-select/tree-select.d.ts +1 -1
- package/dist/types/src/style/dark-minimalism/upload/upload.d.ts +27 -27
- package/dist/types/src/style/default/ai-chat/chat-bubbles.d.ts +4 -0
- package/dist/types/src/style/default/ai-chat/conversation.d.ts +6 -0
- package/dist/types/src/style/default/ai-chat/index.d.ts +10 -0
- package/dist/types/src/style/default/app-switch/app-switch.d.ts +11 -11
- package/dist/types/src/style/default/button/constant.d.ts +2 -2
- package/dist/types/src/style/default/button/danger.d.ts +126 -126
- package/dist/types/src/style/default/button/index.d.ts +604 -604
- package/dist/types/src/style/default/button/info.d.ts +126 -126
- package/dist/types/src/style/default/button/standard.d.ts +126 -126
- package/dist/types/src/style/default/button/success.d.ts +126 -126
- package/dist/types/src/style/default/button/warning.d.ts +126 -126
- package/dist/types/src/style/default/card/card.d.ts +7 -7
- package/dist/types/src/style/default/checkbox/checkbox.d.ts +7 -7
- package/dist/types/src/style/default/component-theme.d.ts +3029 -2986
- package/dist/types/src/style/default/datetime/datetime.d.ts +9 -9
- package/dist/types/src/style/default/drawer/drawer.d.ts +9 -9
- package/dist/types/src/style/default/dropdown/index.d.ts +14 -14
- package/dist/types/src/style/default/form-item/form-item.d.ts +9 -9
- package/dist/types/src/style/default/header/header.d.ts +5 -5
- package/dist/types/src/style/default/index.d.ts +1 -1
- package/dist/types/src/style/default/input/input.d.ts +38 -38
- package/dist/types/src/style/default/menu/menu.d.ts +38 -38
- package/dist/types/src/style/default/modal/modal.d.ts +10 -10
- package/dist/types/src/style/default/multi-tab/multi-tab.d.ts +57 -57
- package/dist/types/src/style/default/pagination/pagination.d.ts +12 -12
- package/dist/types/src/style/default/popconfirm/popconfirm.d.ts +7 -7
- package/dist/types/src/style/default/registry.d.ts +1 -1
- package/dist/types/src/style/default/rich-text/rich-text.d.ts +22 -22
- package/dist/types/src/style/default/scrollbar/scrollbar.d.ts +5 -5
- package/dist/types/src/style/default/select/select.d.ts +41 -41
- package/dist/types/src/style/default/switch/switch.d.ts +4 -4
- package/dist/types/src/style/default/table/table.d.ts +21 -21
- package/dist/types/src/style/default/tabs/tabs.d.ts +6 -6
- package/dist/types/src/style/default/tag/index.d.ts +5 -0
- package/dist/types/src/style/default/textarea/textarea.d.ts +27 -27
- package/dist/types/src/style/default/transfer/transfer.d.ts +5 -5
- package/dist/types/src/style/default/tree-select/tree-select.d.ts +1 -1
- package/dist/types/src/style/default/upload/upload.d.ts +27 -27
- package/dist/types/src/style/default-minimalism/ai-chat/chat-bubbles.d.ts +4 -0
- package/dist/types/src/style/default-minimalism/ai-chat/conversation.d.ts +6 -0
- package/dist/types/src/style/default-minimalism/ai-chat/index.d.ts +10 -0
- package/dist/types/src/style/default-minimalism/app-switch/app-switch.d.ts +11 -11
- package/dist/types/src/style/default-minimalism/button/constant.d.ts +2 -2
- package/dist/types/src/style/default-minimalism/button/danger.d.ts +126 -126
- package/dist/types/src/style/default-minimalism/button/index.d.ts +604 -604
- package/dist/types/src/style/default-minimalism/button/info.d.ts +126 -126
- package/dist/types/src/style/default-minimalism/button/standard.d.ts +126 -126
- package/dist/types/src/style/default-minimalism/button/success.d.ts +126 -126
- package/dist/types/src/style/default-minimalism/button/warning.d.ts +126 -126
- package/dist/types/src/style/default-minimalism/card/card.d.ts +7 -7
- package/dist/types/src/style/default-minimalism/checkbox/checkbox.d.ts +7 -7
- package/dist/types/src/style/default-minimalism/component-theme.d.ts +3029 -2986
- package/dist/types/src/style/default-minimalism/datetime/datetime.d.ts +9 -9
- package/dist/types/src/style/default-minimalism/drawer/drawer.d.ts +9 -9
- package/dist/types/src/style/default-minimalism/dropdown/index.d.ts +14 -14
- package/dist/types/src/style/default-minimalism/form-item/form-item.d.ts +9 -9
- package/dist/types/src/style/default-minimalism/header/header.d.ts +5 -5
- package/dist/types/src/style/default-minimalism/index.d.ts +1 -1
- package/dist/types/src/style/default-minimalism/input/input.d.ts +38 -38
- package/dist/types/src/style/default-minimalism/menu/menu.d.ts +38 -38
- package/dist/types/src/style/default-minimalism/modal/modal.d.ts +10 -10
- package/dist/types/src/style/default-minimalism/multi-tab/multi-tab.d.ts +57 -57
- package/dist/types/src/style/default-minimalism/pagination/pagination.d.ts +12 -12
- package/dist/types/src/style/default-minimalism/popconfirm/popconfirm.d.ts +7 -7
- package/dist/types/src/style/default-minimalism/registry.d.ts +1 -1
- package/dist/types/src/style/default-minimalism/rich-text/rich-text.d.ts +22 -22
- package/dist/types/src/style/default-minimalism/scrollbar/scrollbar.d.ts +5 -5
- package/dist/types/src/style/default-minimalism/select/select.d.ts +41 -41
- package/dist/types/src/style/default-minimalism/switch/switch.d.ts +4 -4
- package/dist/types/src/style/default-minimalism/table/table.d.ts +21 -21
- package/dist/types/src/style/default-minimalism/tabs/tabs.d.ts +6 -6
- package/dist/types/src/style/default-minimalism/tag/index.d.ts +5 -0
- package/dist/types/src/style/default-minimalism/textarea/textarea.d.ts +27 -27
- package/dist/types/src/style/default-minimalism/transfer/transfer.d.ts +5 -5
- package/dist/types/src/style/default-minimalism/tree-select/tree-select.d.ts +1 -1
- package/dist/types/src/style/default-minimalism/upload/upload.d.ts +27 -27
- package/dist/types/src/style/index.d.ts +4 -4
- package/dist/types/src/typing.d.ts +21 -21
- package/dist/types/src/utils/ColorHelper.d.ts +33 -33
- package/package.json +18 -7
- package/src/init/currentTheme.ts +1 -1
- package/src/init/initTheme.ts +2 -7
- package/src/mount/index.ts +1 -1
- package/src/register/index.ts +1 -1
- package/src/style/dark/ai-chat/chat-bubbles.ts +4 -0
- package/src/style/dark/ai-chat/conversation.ts +6 -0
- package/src/style/dark/ai-chat/index.ts +13 -0
- package/src/style/dark/component-theme.ts +143 -133
- package/src/style/dark/registry.ts +1 -1
- package/src/style/dark/tag/index.ts +6 -0
- package/src/style/dark-minimalism/ai-chat/chat-bubbles.ts +4 -0
- package/src/style/dark-minimalism/ai-chat/conversation.ts +6 -0
- package/src/style/dark-minimalism/ai-chat/index.ts +13 -0
- package/src/style/dark-minimalism/component-theme.ts +144 -133
- package/src/style/dark-minimalism/registry.ts +1 -1
- package/src/style/dark-minimalism/tag/index.ts +6 -0
- package/src/style/default/ai-chat/chat-bubbles.ts +4 -0
- package/src/style/default/ai-chat/conversation.ts +6 -0
- package/src/style/default/ai-chat/index.ts +13 -0
- package/src/style/default/component-theme.ts +13 -1
- package/src/style/default/registry.ts +1 -1
- package/src/style/default/tag/index.ts +6 -0
- package/src/style/default-minimalism/ai-chat/chat-bubbles.ts +4 -0
- package/src/style/default-minimalism/ai-chat/conversation.ts +6 -0
- package/src/style/default-minimalism/ai-chat/index.ts +13 -0
- package/src/style/default-minimalism/component-theme.ts +13 -1
- package/src/style/default-minimalism/registry.ts +1 -1
- package/src/style/default-minimalism/tag/index.ts +6 -0
- package/rollup.config.js +0 -4
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export declare const component = "textarea";
|
|
2
|
-
export declare const cssVars: {
|
|
3
|
-
background: string;
|
|
4
|
-
'border-width': string;
|
|
5
|
-
'border-style': string;
|
|
6
|
-
'border-color': string;
|
|
7
|
-
'border-radius': string;
|
|
8
|
-
outline: string;
|
|
9
|
-
shadow: string;
|
|
10
|
-
'text-color': string;
|
|
11
|
-
'background-hover': string;
|
|
12
|
-
'border-width-hover': string;
|
|
13
|
-
'border-style-hover': string;
|
|
14
|
-
'border-color-hover': string;
|
|
15
|
-
'border-radius-hover': string;
|
|
16
|
-
'outline-hover': string;
|
|
17
|
-
'shadow-hover': string;
|
|
18
|
-
'text-color-hover': string;
|
|
19
|
-
'background-focus': string;
|
|
20
|
-
'border-width-focus': string;
|
|
21
|
-
'border-style-focus': string;
|
|
22
|
-
'border-color-focus': string;
|
|
23
|
-
'border-radius-focus': string;
|
|
24
|
-
'outline-focus': string;
|
|
25
|
-
'shadow-focus': string;
|
|
26
|
-
'text-color-focus': string;
|
|
27
|
-
};
|
|
1
|
+
export declare const component = "textarea";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
background: string;
|
|
4
|
+
'border-width': string;
|
|
5
|
+
'border-style': string;
|
|
6
|
+
'border-color': string;
|
|
7
|
+
'border-radius': string;
|
|
8
|
+
outline: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
'text-color': string;
|
|
11
|
+
'background-hover': string;
|
|
12
|
+
'border-width-hover': string;
|
|
13
|
+
'border-style-hover': string;
|
|
14
|
+
'border-color-hover': string;
|
|
15
|
+
'border-radius-hover': string;
|
|
16
|
+
'outline-hover': string;
|
|
17
|
+
'shadow-hover': string;
|
|
18
|
+
'text-color-hover': string;
|
|
19
|
+
'background-focus': string;
|
|
20
|
+
'border-width-focus': string;
|
|
21
|
+
'border-style-focus': string;
|
|
22
|
+
'border-color-focus': string;
|
|
23
|
+
'border-radius-focus': string;
|
|
24
|
+
'outline-focus': string;
|
|
25
|
+
'shadow-focus': string;
|
|
26
|
+
'text-color-focus': string;
|
|
27
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const component = "transfer";
|
|
2
|
-
export declare const cssVars: {
|
|
3
|
-
'background-color': string;
|
|
4
|
-
'header-border-color': string;
|
|
5
|
-
};
|
|
1
|
+
export declare const component = "transfer";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
'background-color': string;
|
|
4
|
+
'header-border-color': string;
|
|
5
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const component = "tree-select";
|
|
1
|
+
export declare const component = "tree-select";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export declare const component = "upload";
|
|
2
|
-
export declare const cssVars: {
|
|
3
|
-
background: string;
|
|
4
|
-
'border-width': string;
|
|
5
|
-
'border-style': string;
|
|
6
|
-
'border-color': string;
|
|
7
|
-
'border-radius': string;
|
|
8
|
-
outline: string;
|
|
9
|
-
shadow: string;
|
|
10
|
-
'text-color': string;
|
|
11
|
-
'background-hover': string;
|
|
12
|
-
'border-width-hover': string;
|
|
13
|
-
'border-style-hover': string;
|
|
14
|
-
'border-color-hover': string;
|
|
15
|
-
'border-radius-hover': string;
|
|
16
|
-
'outline-hover': string;
|
|
17
|
-
'shadow-hover': string;
|
|
18
|
-
'text-color-hover': string;
|
|
19
|
-
'background-focus': string;
|
|
20
|
-
'border-width-focus': string;
|
|
21
|
-
'border-style-focus': string;
|
|
22
|
-
'border-color-focus': string;
|
|
23
|
-
'border-radius-focus': string;
|
|
24
|
-
'outline-focus': string;
|
|
25
|
-
'shadow-focus': string;
|
|
26
|
-
'text-color-focus': string;
|
|
27
|
-
};
|
|
1
|
+
export declare const component = "upload";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
background: string;
|
|
4
|
+
'border-width': string;
|
|
5
|
+
'border-style': string;
|
|
6
|
+
'border-color': string;
|
|
7
|
+
'border-radius': string;
|
|
8
|
+
outline: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
'text-color': string;
|
|
11
|
+
'background-hover': string;
|
|
12
|
+
'border-width-hover': string;
|
|
13
|
+
'border-style-hover': string;
|
|
14
|
+
'border-color-hover': string;
|
|
15
|
+
'border-radius-hover': string;
|
|
16
|
+
'outline-hover': string;
|
|
17
|
+
'shadow-hover': string;
|
|
18
|
+
'text-color-hover': string;
|
|
19
|
+
'background-focus': string;
|
|
20
|
+
'border-width-focus': string;
|
|
21
|
+
'border-style-focus': string;
|
|
22
|
+
'border-color-focus': string;
|
|
23
|
+
'border-radius-focus': string;
|
|
24
|
+
'outline-focus': string;
|
|
25
|
+
'shadow-focus': string;
|
|
26
|
+
'text-color-focus': string;
|
|
27
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './default';
|
|
2
|
-
export * from './default-minimalism';
|
|
3
|
-
export * from './dark';
|
|
4
|
-
export * from './dark-minimalism';
|
|
1
|
+
export * from './default';
|
|
2
|
+
export * from './default-minimalism';
|
|
3
|
+
export * from './dark';
|
|
4
|
+
export * from './dark-minimalism';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export interface DefaultSideBarTheme {
|
|
4
|
-
mode?: ThemeType;
|
|
5
|
-
}
|
|
6
|
-
export declare enum DefaultThemeName {
|
|
7
|
-
DEFAULT_LARGE = "default-large",
|
|
8
|
-
DEFAULT_MEDIUM = "default-medium",
|
|
9
|
-
DEFAULT_SMALL = "default-small",
|
|
10
|
-
DEFAULT_MINIMALISM_LARGE = "default-minimalism-large",
|
|
11
|
-
DEFAULT_MINIMALISM_MEDIUM = "default-minimalism-medium",
|
|
12
|
-
DEFAULT_MINIMALISM_SMALL = "default-minimalism-small",
|
|
13
|
-
DARK_LARGE = "dark-large",
|
|
14
|
-
DARK_MEDIUM = "dark-medium",
|
|
15
|
-
DARK_SMALL = "dark-small",
|
|
16
|
-
DARK_MINIMALISM_LARGE = "dark-minimalism-large",
|
|
17
|
-
DARK_MINIMALISM_MEDIUM = "dark-minimalism-medium",
|
|
18
|
-
DARK_MINIMALISM_SMALL = "dark-minimalism-small"
|
|
19
|
-
}
|
|
20
|
-
export
|
|
21
|
-
export declare const isSystemTheme: (name: ThemeName) => boolean;
|
|
1
|
+
export type ThemeType = 'default' | 'dark';
|
|
2
|
+
export type ThemeSize = 'large' | 'medium' | 'small';
|
|
3
|
+
export interface DefaultSideBarTheme {
|
|
4
|
+
mode?: ThemeType;
|
|
5
|
+
}
|
|
6
|
+
export declare enum DefaultThemeName {
|
|
7
|
+
DEFAULT_LARGE = "default-large",
|
|
8
|
+
DEFAULT_MEDIUM = "default-medium",
|
|
9
|
+
DEFAULT_SMALL = "default-small",
|
|
10
|
+
DEFAULT_MINIMALISM_LARGE = "default-minimalism-large",
|
|
11
|
+
DEFAULT_MINIMALISM_MEDIUM = "default-minimalism-medium",
|
|
12
|
+
DEFAULT_MINIMALISM_SMALL = "default-minimalism-small",
|
|
13
|
+
DARK_LARGE = "dark-large",
|
|
14
|
+
DARK_MEDIUM = "dark-medium",
|
|
15
|
+
DARK_SMALL = "dark-small",
|
|
16
|
+
DARK_MINIMALISM_LARGE = "dark-minimalism-large",
|
|
17
|
+
DARK_MINIMALISM_MEDIUM = "dark-minimalism-medium",
|
|
18
|
+
DARK_MINIMALISM_SMALL = "dark-minimalism-small"
|
|
19
|
+
}
|
|
20
|
+
export type ThemeName = 'default-large' | 'default-medium' | 'default-small' | 'default-minimalism-large' | 'default-minimalism-medium' | 'default-minimalism-small' | 'dark-large' | 'dark-medium' | 'dark-small' | 'dark-minimalism-large' | 'dark-minimalism-medium' | 'dark-minimalism-small' | string;
|
|
21
|
+
export declare const isSystemTheme: (name: ThemeName) => boolean;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export interface RGB {
|
|
2
|
-
r: number;
|
|
3
|
-
g: number;
|
|
4
|
-
b: number;
|
|
5
|
-
}
|
|
6
|
-
export declare class ColorHelper {
|
|
7
|
-
/**
|
|
8
|
-
* 将十六进制颜色转换为RGB对象
|
|
9
|
-
* @param {string} hex - 十六进制颜色字符串,如 '#035DFF'
|
|
10
|
-
* @returns {Object} RGB对象,包含r, g, b属性,值为0-255
|
|
11
|
-
*/
|
|
12
|
-
static hexToRgb(hex: string): RGB;
|
|
13
|
-
/**
|
|
14
|
-
* 将RGB对象转换为十六进制颜色
|
|
15
|
-
* @param {Object} rgb - RGB对象,包含r, g, b属性,值为0-255
|
|
16
|
-
* @returns {string} 十六进制颜色字符串,如 '#E6EFFE'
|
|
17
|
-
*/
|
|
18
|
-
static rgbToHex(rgb: RGB): string;
|
|
19
|
-
/**
|
|
20
|
-
* 将单个颜色分量转换为两位十六进制数
|
|
21
|
-
* @param {number} c - 颜色分量,值为0-255
|
|
22
|
-
* @returns {string} 两位十六进制字符串
|
|
23
|
-
*/
|
|
24
|
-
private static componentToHex;
|
|
25
|
-
/**
|
|
26
|
-
* 计算半透明颜色在背景色上的等效不透明颜色
|
|
27
|
-
* @param {string} color - 半透明颜色的十六进制字符串,如 '#035DFF'
|
|
28
|
-
* @param {number} alpha - 透明度,0-1之间的数值,如0.1
|
|
29
|
-
* @param {string} backgroundColor - 背景色的十六进制字符串,默认为白色 '#FFFFFF'
|
|
30
|
-
* @returns {string} 等效的不透明颜色的十六进制字符串
|
|
31
|
-
*/
|
|
32
|
-
static getAlphaColor(color: string, alpha: number, backgroundColor?: string): string;
|
|
33
|
-
}
|
|
1
|
+
export interface RGB {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class ColorHelper {
|
|
7
|
+
/**
|
|
8
|
+
* 将十六进制颜色转换为RGB对象
|
|
9
|
+
* @param {string} hex - 十六进制颜色字符串,如 '#035DFF'
|
|
10
|
+
* @returns {Object} RGB对象,包含r, g, b属性,值为0-255
|
|
11
|
+
*/
|
|
12
|
+
static hexToRgb(hex: string): RGB;
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB对象转换为十六进制颜色
|
|
15
|
+
* @param {Object} rgb - RGB对象,包含r, g, b属性,值为0-255
|
|
16
|
+
* @returns {string} 十六进制颜色字符串,如 '#E6EFFE'
|
|
17
|
+
*/
|
|
18
|
+
static rgbToHex(rgb: RGB): string;
|
|
19
|
+
/**
|
|
20
|
+
* 将单个颜色分量转换为两位十六进制数
|
|
21
|
+
* @param {number} c - 颜色分量,值为0-255
|
|
22
|
+
* @returns {string} 两位十六进制字符串
|
|
23
|
+
*/
|
|
24
|
+
private static componentToHex;
|
|
25
|
+
/**
|
|
26
|
+
* 计算半透明颜色在背景色上的等效不透明颜色
|
|
27
|
+
* @param {string} color - 半透明颜色的十六进制字符串,如 '#035DFF'
|
|
28
|
+
* @param {number} alpha - 透明度,0-1之间的数值,如0.1
|
|
29
|
+
* @param {string} backgroundColor - 背景色的十六进制字符串,默认为白色 '#FFFFFF'
|
|
30
|
+
* @returns {string} 等效的不透明颜色的十六进制字符串
|
|
31
|
+
*/
|
|
32
|
+
static getAlphaColor(color: string, alpha: number, backgroundColor?: string): string;
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oinone/kunlun-theme",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
3
|
+
"version": "7.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/oinone-kunlun-theme.esm.js",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"prebuild": "rimraf dist",
|
|
7
8
|
"build": "rollup -c",
|
|
8
9
|
"dist": "npm run prepublishOnly",
|
|
9
10
|
"index": "npm run postpublish",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
11
|
+
"format": "prettier --write --experimental-cli src/",
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"prepublishOnly": "node ../../../../scripts/prepublish-only.cjs",
|
|
14
|
+
"deploy": "npm publish --exact",
|
|
15
|
+
"postpublish": "node ../../../../scripts/postpublish.cjs"
|
|
12
16
|
},
|
|
13
17
|
"dependencies": {
|
|
14
|
-
"@oinone/kunlun-config": "
|
|
18
|
+
"@oinone/kunlun-config": "7.1.0"
|
|
15
19
|
},
|
|
16
|
-
"gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079"
|
|
17
|
-
|
|
20
|
+
"gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079",
|
|
21
|
+
"module": "dist/oinone-kunlun-theme.esm.js",
|
|
22
|
+
"typings": "dist/types/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"index.ts",
|
|
26
|
+
"src"
|
|
27
|
+
]
|
|
28
|
+
}
|
package/src/init/currentTheme.ts
CHANGED
package/src/init/initTheme.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
registerDefaultThemeFn,
|
|
4
|
-
registerDefaultModernThemeFn,
|
|
5
|
-
registerDarkModernThemeFn
|
|
6
|
-
} from '../style';
|
|
7
|
-
import { DefaultSideBarTheme, ThemeType } from '../typing';
|
|
1
|
+
import { registerDarkThemeFn, registerDefaultThemeFn, registerDefaultModernThemeFn, registerDarkModernThemeFn } from '../style';
|
|
2
|
+
import type { DefaultSideBarTheme, ThemeType } from '../typing';
|
|
8
3
|
import { setCurrentThemeType } from './currentTheme';
|
|
9
4
|
|
|
10
5
|
interface DefaultComponentTheme {
|
package/src/mount/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigProviderSPI } from '@oinone/kunlun-config';
|
|
2
2
|
import { getTheme } from '../register';
|
|
3
|
-
import { DefaultThemeName, ThemeName } from '../typing';
|
|
3
|
+
import { DefaultThemeName, type ThemeName } from '../typing';
|
|
4
4
|
import { DEFAULT_PREFIX } from './constant';
|
|
5
5
|
|
|
6
6
|
/**
|
package/src/register/index.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChatBubblesCssVars } from './chat-bubbles';
|
|
2
|
+
import { ConversationCssVars } from './conversation';
|
|
3
|
+
|
|
4
|
+
export const component = 'ai-chat';
|
|
5
|
+
|
|
6
|
+
export const cssVars = {
|
|
7
|
+
color: 'var(--oio-primary-color)',
|
|
8
|
+
...ChatBubblesCssVars,
|
|
9
|
+
...ConversationCssVars,
|
|
10
|
+
config: {
|
|
11
|
+
...ConversationCssVars.config
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -20,8 +20,10 @@ import {
|
|
|
20
20
|
smallTabsSizeVars,
|
|
21
21
|
smallTreeSelectSizeVars
|
|
22
22
|
} from '../../size';
|
|
23
|
+
import { component as AiChat, cssVars as AiChatCSSVars } from './ai-chat';
|
|
23
24
|
import { component as AppSwitch, cssVars as AppSwitchCSSVars } from './app-switch/app-switch';
|
|
24
25
|
import { component as Button, cssVars as ButtonCSSVars } from './button';
|
|
26
|
+
import { component as Card, cssVars as CardCSSVars } from './card/card';
|
|
25
27
|
import { component as Checkbox, cssVars as checkboxCSSVars } from './checkbox/checkbox';
|
|
26
28
|
import { component as Drawer, cssVars as DrawerCSSVars } from './drawer/drawer';
|
|
27
29
|
import { component as Dropdown, cssVars as DropdownCSSVars } from './dropdown';
|
|
@@ -39,142 +41,150 @@ import { component as Select, cssVars as SelectCSSVars } from './select/select';
|
|
|
39
41
|
import { component as Switch, cssVars as switchCSSVars } from './switch/switch';
|
|
40
42
|
import { component as Table, cssVars as TableCSSVars } from './table/table';
|
|
41
43
|
import { component as Tabs, cssVars as TabsCSSVars } from './tabs/tabs';
|
|
44
|
+
import { component as Tag, cssVars as TagCSSVars } from './tag';
|
|
42
45
|
import { component as Textarea, cssVars as TextareaCSSVars } from './textarea/textarea';
|
|
43
46
|
import { component as Transfer, cssVars as TransferCSSVars } from './transfer/transfer';
|
|
44
47
|
import { component as TreeSelect } from './tree-select/tree-select';
|
|
45
48
|
import { component as Upload, cssVars as UploadCSSVars } from './upload/upload';
|
|
46
|
-
import { component as Card, cssVars as CardCSSVars } from './card/card';
|
|
47
49
|
|
|
48
|
-
export const getComponentTheme = () => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
...mediumInputSizeVars
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
[Checkbox]: {
|
|
75
|
-
large: { ...checkboxCSSVars },
|
|
76
|
-
medium: { ...checkboxCSSVars },
|
|
77
|
-
small: { ...checkboxCSSVars }
|
|
78
|
-
},
|
|
79
|
-
[Switch]: {
|
|
80
|
-
large: { ...switchCSSVars },
|
|
81
|
-
medium: { ...switchCSSVars },
|
|
82
|
-
small: { ...switchCSSVars }
|
|
83
|
-
},
|
|
84
|
-
[Pagination]: {
|
|
85
|
-
large: { ...PaginationCSSVars, ...largePaginationSizeVars },
|
|
86
|
-
medium: { ...PaginationCSSVars, ...mediumPaginationSizeVars },
|
|
87
|
-
small: { ...PaginationCSSVars, ...smallPaginationSizeVars }
|
|
88
|
-
},
|
|
89
|
-
[Select]: {
|
|
90
|
-
large: { ...SelectCSSVars, ...largeSelectSizeVars },
|
|
91
|
-
medium: { ...SelectCSSVars, ...mediumSelectSizeVars },
|
|
92
|
-
small: { ...SelectCSSVars, ...smallSelectSizeVars }
|
|
93
|
-
},
|
|
94
|
-
[Textarea]: {
|
|
95
|
-
large: TextareaCSSVars,
|
|
96
|
-
medium: TextareaCSSVars,
|
|
97
|
-
small: TextareaCSSVars
|
|
98
|
-
},
|
|
99
|
-
[Upload]: {
|
|
100
|
-
large: UploadCSSVars,
|
|
101
|
-
medium: UploadCSSVars,
|
|
102
|
-
small: UploadCSSVars
|
|
103
|
-
},
|
|
104
|
-
[Menu]: {
|
|
105
|
-
large: { ...MenuCSSVars(), ...largeMenuSizeVars },
|
|
106
|
-
medium: { ...MenuCSSVars(), ...mediumMenuSizeVars },
|
|
107
|
-
small: { ...MenuCSSVars(), ...smallMenuSizeVars }
|
|
108
|
-
},
|
|
109
|
-
[AppSwitch]: {
|
|
110
|
-
large: AppSwitchCSSVars,
|
|
111
|
-
medium: AppSwitchCSSVars,
|
|
112
|
-
small: AppSwitchCSSVars
|
|
113
|
-
},
|
|
114
|
-
[Table]: {
|
|
115
|
-
large: { ...TableCSSVars, ...largeTableSizeVars },
|
|
116
|
-
medium: { ...TableCSSVars, ...mediumTableSizeVars },
|
|
117
|
-
small: { ...TableCSSVars, ...smallTableSizeVars }
|
|
118
|
-
},
|
|
119
|
-
[Header]: {
|
|
120
|
-
large: HeaderCSSVars,
|
|
121
|
-
medium: HeaderCSSVars,
|
|
122
|
-
small: HeaderCSSVars
|
|
123
|
-
},
|
|
124
|
-
[Modal]: {
|
|
125
|
-
large: ModalCSSVars,
|
|
126
|
-
medium: ModalCSSVars,
|
|
127
|
-
small: ModalCSSVars
|
|
128
|
-
},
|
|
129
|
-
[Popconfirm]: {
|
|
130
|
-
large: PopconfirmCSSVars,
|
|
131
|
-
medium: PopconfirmCSSVars,
|
|
132
|
-
small: PopconfirmCSSVars
|
|
133
|
-
},
|
|
134
|
-
[TreeSelect]: {
|
|
135
|
-
large: largeTreeSelectSizeVars,
|
|
136
|
-
medium: mediumTreeSelectSizeVars,
|
|
137
|
-
small: smallTreeSelectSizeVars
|
|
138
|
-
},
|
|
139
|
-
[Transfer]: {
|
|
140
|
-
large: TransferCSSVars,
|
|
141
|
-
medium: TransferCSSVars,
|
|
142
|
-
small: TransferCSSVars
|
|
143
|
-
},
|
|
144
|
-
[Scrollbar]: {
|
|
145
|
-
large: ScrollbarCSSVars,
|
|
146
|
-
medium: ScrollbarCSSVars,
|
|
147
|
-
small: ScrollbarCSSVars
|
|
148
|
-
},
|
|
149
|
-
[Drawer]: {
|
|
150
|
-
large: DrawerCSSVars,
|
|
151
|
-
medium: DrawerCSSVars,
|
|
152
|
-
small: DrawerCSSVars
|
|
153
|
-
},
|
|
154
|
-
[Dropdown]: {
|
|
155
|
-
large: DropdownCSSVars,
|
|
156
|
-
medium: DropdownCSSVars,
|
|
157
|
-
small: DropdownCSSVars
|
|
158
|
-
},
|
|
159
|
-
[FormItem]: {
|
|
160
|
-
large: FormItemCSSVars,
|
|
161
|
-
medium: FormItemCSSVars,
|
|
162
|
-
small: FormItemCSSVars
|
|
163
|
-
},
|
|
164
|
-
[RichText]: {
|
|
165
|
-
large: RichTextCSSVars,
|
|
166
|
-
medium: RichTextCSSVars,
|
|
167
|
-
small: RichTextCSSVars
|
|
168
|
-
},
|
|
169
|
-
[Tabs]: {
|
|
170
|
-
large: { ...largeTabsSizeVars, ...TabsCSSVars },
|
|
171
|
-
medium: { ...mediumTabsSizeVars, ...TabsCSSVars },
|
|
172
|
-
small: { ...smallTabsSizeVars, ...TabsCSSVars }
|
|
173
|
-
},
|
|
174
|
-
[Card]: {
|
|
175
|
-
large: CardCSSVars,
|
|
176
|
-
medium: CardCSSVars,
|
|
177
|
-
small: CardCSSVars
|
|
50
|
+
export const getComponentTheme = () => ({
|
|
51
|
+
[MultiTab]: {
|
|
52
|
+
large: { ...MultiTabCSSVars },
|
|
53
|
+
medium: { ...MultiTabCSSVars },
|
|
54
|
+
small: { ...MultiTabCSSVars }
|
|
55
|
+
},
|
|
56
|
+
[Button]: {
|
|
57
|
+
large: ButtonCSSVars,
|
|
58
|
+
medium: ButtonCSSVars,
|
|
59
|
+
small: ButtonCSSVars
|
|
60
|
+
},
|
|
61
|
+
[Input]: {
|
|
62
|
+
large: {
|
|
63
|
+
...InputCSSVars,
|
|
64
|
+
...largeInputSizeVars
|
|
65
|
+
},
|
|
66
|
+
medium: {
|
|
67
|
+
...InputCSSVars,
|
|
68
|
+
...mediumInputSizeVars
|
|
69
|
+
},
|
|
70
|
+
small: {
|
|
71
|
+
...InputCSSVars,
|
|
72
|
+
...mediumInputSizeVars
|
|
178
73
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
74
|
+
},
|
|
75
|
+
[Checkbox]: {
|
|
76
|
+
large: { ...checkboxCSSVars },
|
|
77
|
+
medium: { ...checkboxCSSVars },
|
|
78
|
+
small: { ...checkboxCSSVars }
|
|
79
|
+
},
|
|
80
|
+
[Switch]: {
|
|
81
|
+
large: { ...switchCSSVars },
|
|
82
|
+
medium: { ...switchCSSVars },
|
|
83
|
+
small: { ...switchCSSVars }
|
|
84
|
+
},
|
|
85
|
+
[Pagination]: {
|
|
86
|
+
large: { ...PaginationCSSVars, ...largePaginationSizeVars },
|
|
87
|
+
medium: { ...PaginationCSSVars, ...mediumPaginationSizeVars },
|
|
88
|
+
small: { ...PaginationCSSVars, ...smallPaginationSizeVars }
|
|
89
|
+
},
|
|
90
|
+
[Select]: {
|
|
91
|
+
large: { ...SelectCSSVars, ...largeSelectSizeVars },
|
|
92
|
+
medium: { ...SelectCSSVars, ...mediumSelectSizeVars },
|
|
93
|
+
small: { ...SelectCSSVars, ...smallSelectSizeVars }
|
|
94
|
+
},
|
|
95
|
+
[Textarea]: {
|
|
96
|
+
large: TextareaCSSVars,
|
|
97
|
+
medium: TextareaCSSVars,
|
|
98
|
+
small: TextareaCSSVars
|
|
99
|
+
},
|
|
100
|
+
[Upload]: {
|
|
101
|
+
large: UploadCSSVars,
|
|
102
|
+
medium: UploadCSSVars,
|
|
103
|
+
small: UploadCSSVars
|
|
104
|
+
},
|
|
105
|
+
[Menu]: {
|
|
106
|
+
large: { ...MenuCSSVars(), ...largeMenuSizeVars },
|
|
107
|
+
medium: { ...MenuCSSVars(), ...mediumMenuSizeVars },
|
|
108
|
+
small: { ...MenuCSSVars(), ...smallMenuSizeVars }
|
|
109
|
+
},
|
|
110
|
+
[AppSwitch]: {
|
|
111
|
+
large: AppSwitchCSSVars,
|
|
112
|
+
medium: AppSwitchCSSVars,
|
|
113
|
+
small: AppSwitchCSSVars
|
|
114
|
+
},
|
|
115
|
+
[Table]: {
|
|
116
|
+
large: { ...TableCSSVars, ...largeTableSizeVars },
|
|
117
|
+
medium: { ...TableCSSVars, ...mediumTableSizeVars },
|
|
118
|
+
small: { ...TableCSSVars, ...smallTableSizeVars }
|
|
119
|
+
},
|
|
120
|
+
[Header]: {
|
|
121
|
+
large: HeaderCSSVars,
|
|
122
|
+
medium: HeaderCSSVars,
|
|
123
|
+
small: HeaderCSSVars
|
|
124
|
+
},
|
|
125
|
+
[Modal]: {
|
|
126
|
+
large: ModalCSSVars,
|
|
127
|
+
medium: ModalCSSVars,
|
|
128
|
+
small: ModalCSSVars
|
|
129
|
+
},
|
|
130
|
+
[Popconfirm]: {
|
|
131
|
+
large: PopconfirmCSSVars,
|
|
132
|
+
medium: PopconfirmCSSVars,
|
|
133
|
+
small: PopconfirmCSSVars
|
|
134
|
+
},
|
|
135
|
+
[TreeSelect]: {
|
|
136
|
+
large: largeTreeSelectSizeVars,
|
|
137
|
+
medium: mediumTreeSelectSizeVars,
|
|
138
|
+
small: smallTreeSelectSizeVars
|
|
139
|
+
},
|
|
140
|
+
[Transfer]: {
|
|
141
|
+
large: TransferCSSVars,
|
|
142
|
+
medium: TransferCSSVars,
|
|
143
|
+
small: TransferCSSVars
|
|
144
|
+
},
|
|
145
|
+
[Scrollbar]: {
|
|
146
|
+
large: ScrollbarCSSVars,
|
|
147
|
+
medium: ScrollbarCSSVars,
|
|
148
|
+
small: ScrollbarCSSVars
|
|
149
|
+
},
|
|
150
|
+
[Drawer]: {
|
|
151
|
+
large: DrawerCSSVars,
|
|
152
|
+
medium: DrawerCSSVars,
|
|
153
|
+
small: DrawerCSSVars
|
|
154
|
+
},
|
|
155
|
+
[Dropdown]: {
|
|
156
|
+
large: DropdownCSSVars,
|
|
157
|
+
medium: DropdownCSSVars,
|
|
158
|
+
small: DropdownCSSVars
|
|
159
|
+
},
|
|
160
|
+
[FormItem]: {
|
|
161
|
+
large: FormItemCSSVars,
|
|
162
|
+
medium: FormItemCSSVars,
|
|
163
|
+
small: FormItemCSSVars
|
|
164
|
+
},
|
|
165
|
+
[RichText]: {
|
|
166
|
+
large: RichTextCSSVars,
|
|
167
|
+
medium: RichTextCSSVars,
|
|
168
|
+
small: RichTextCSSVars
|
|
169
|
+
},
|
|
170
|
+
[Tabs]: {
|
|
171
|
+
large: { ...largeTabsSizeVars, ...TabsCSSVars },
|
|
172
|
+
medium: { ...mediumTabsSizeVars, ...TabsCSSVars },
|
|
173
|
+
small: { ...smallTabsSizeVars, ...TabsCSSVars }
|
|
174
|
+
},
|
|
175
|
+
[Card]: {
|
|
176
|
+
large: CardCSSVars,
|
|
177
|
+
medium: CardCSSVars,
|
|
178
|
+
small: CardCSSVars
|
|
179
|
+
},
|
|
180
|
+
[Tag]: {
|
|
181
|
+
large: TagCSSVars,
|
|
182
|
+
medium: TagCSSVars,
|
|
183
|
+
small: TagCSSVars
|
|
184
|
+
},
|
|
185
|
+
[AiChat]: {
|
|
186
|
+
large: AiChatCSSVars,
|
|
187
|
+
medium: AiChatCSSVars,
|
|
188
|
+
small: AiChatCSSVars
|
|
189
|
+
}
|
|
190
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { darkVars } from '../../color';
|
|
2
2
|
import { registerTheme } from '../../register';
|
|
3
3
|
import { defaultLargeSizeVars, defaultMediumSizeVars, defaultSmallSizeVars } from '../../size';
|
|
4
|
-
import { ThemeSize } from '../../typing';
|
|
4
|
+
import type { ThemeSize } from '../../typing';
|
|
5
5
|
import { getComponentTheme } from './component-theme';
|
|
6
6
|
|
|
7
7
|
function registerComponentThemeWithBase(baseCssVars) {
|