@oinone/kunlun-theme 6.3.0 → 6.4.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/src/color/dark-minimalism-vars.d.ts +90 -0
- package/dist/types/src/color/dark-vars.d.ts +3 -0
- package/dist/types/src/color/default-minimalism-vars.d.ts +90 -0
- package/dist/types/src/color/default-vars.d.ts +23 -5
- package/dist/types/src/color/index.d.ts +2 -0
- package/dist/types/src/style/dark/card/card.d.ts +7 -0
- package/dist/types/src/style/dark/component-theme.d.ts +47 -0
- package/dist/types/src/style/dark/form-item/form-item.d.ts +2 -0
- package/dist/types/src/style/dark/input/input.d.ts +2 -0
- package/dist/types/src/style/dark/select/select.d.ts +2 -0
- package/dist/types/src/style/dark/tabs/tabs.d.ts +5 -0
- package/dist/types/src/style/dark-minimalism/app-switch/app-switch.d.ts +11 -0
- package/dist/types/src/style/dark-minimalism/button/constant.d.ts +2 -0
- package/dist/types/src/style/dark-minimalism/button/danger.d.ts +126 -0
- package/dist/types/src/style/dark-minimalism/button/index.d.ts +604 -0
- package/dist/types/src/style/dark-minimalism/button/info.d.ts +126 -0
- package/dist/types/src/style/dark-minimalism/button/standard.d.ts +126 -0
- package/dist/types/src/style/dark-minimalism/button/success.d.ts +126 -0
- package/dist/types/src/style/dark-minimalism/button/warning.d.ts +126 -0
- package/dist/types/src/style/dark-minimalism/card/card.d.ts +7 -0
- package/dist/types/src/style/dark-minimalism/checkbox/checkbox.d.ts +7 -0
- package/dist/types/src/style/dark-minimalism/component-theme.d.ts +2954 -0
- package/dist/types/src/style/dark-minimalism/drawer/drawer.d.ts +9 -0
- package/dist/types/src/style/dark-minimalism/dropdown/index.d.ts +12 -0
- package/dist/types/src/style/dark-minimalism/form-item/form-item.d.ts +9 -0
- package/dist/types/src/style/dark-minimalism/header/header.d.ts +5 -0
- package/dist/types/src/style/dark-minimalism/index.d.ts +1 -0
- package/dist/types/src/style/dark-minimalism/input/input.d.ts +38 -0
- package/dist/types/src/style/dark-minimalism/menu/menu.d.ts +38 -0
- package/dist/types/src/style/dark-minimalism/modal/modal.d.ts +10 -0
- package/dist/types/src/style/dark-minimalism/multi-tab/multi-tab.d.ts +57 -0
- package/dist/types/src/style/dark-minimalism/pagination/pagination.d.ts +12 -0
- package/dist/types/src/style/dark-minimalism/popconfirm/popconfirm.d.ts +7 -0
- package/dist/types/src/style/dark-minimalism/registry.d.ts +1 -0
- package/dist/types/src/style/dark-minimalism/rich-text/rich-text.d.ts +22 -0
- package/dist/types/src/style/dark-minimalism/scrollbar/scrollbar.d.ts +5 -0
- package/dist/types/src/style/dark-minimalism/select/select.d.ts +41 -0
- package/dist/types/src/style/dark-minimalism/switch/switch.d.ts +4 -0
- package/dist/types/src/style/dark-minimalism/table/table.d.ts +21 -0
- package/dist/types/src/style/dark-minimalism/tabs/tabs.d.ts +6 -0
- package/dist/types/src/style/dark-minimalism/textarea/textarea.d.ts +27 -0
- package/dist/types/src/style/dark-minimalism/transfer/transfer.d.ts +5 -0
- package/dist/types/src/style/dark-minimalism/tree-select/tree-select.d.ts +1 -0
- package/dist/types/src/style/dark-minimalism/upload/upload.d.ts +27 -0
- package/dist/types/src/style/default/card/card.d.ts +7 -0
- package/dist/types/src/style/default/component-theme.d.ts +86 -0
- package/dist/types/src/style/default/datetime/datetime.d.ts +5 -0
- package/dist/types/src/style/default/dropdown/index.d.ts +2 -0
- package/dist/types/src/style/default/form-item/form-item.d.ts +2 -0
- package/dist/types/src/style/default/input/input.d.ts +2 -0
- package/dist/types/src/style/default/pagination/pagination.d.ts +6 -0
- package/dist/types/src/style/default/select/select.d.ts +2 -0
- package/dist/types/src/style/default/tabs/tabs.d.ts +5 -0
- package/dist/types/src/style/default-minimalism/app-switch/app-switch.d.ts +11 -0
- package/dist/types/src/style/default-minimalism/button/constant.d.ts +2 -0
- package/dist/types/src/style/default-minimalism/button/danger.d.ts +126 -0
- package/dist/types/src/style/default-minimalism/button/index.d.ts +604 -0
- package/dist/types/src/style/default-minimalism/button/info.d.ts +126 -0
- package/dist/types/src/style/default-minimalism/button/standard.d.ts +126 -0
- package/dist/types/src/style/default-minimalism/button/success.d.ts +126 -0
- package/dist/types/src/style/default-minimalism/button/warning.d.ts +126 -0
- package/dist/types/src/style/default-minimalism/card/card.d.ts +7 -0
- package/dist/types/src/style/default-minimalism/checkbox/checkbox.d.ts +7 -0
- package/dist/types/src/style/default-minimalism/component-theme.d.ts +2986 -0
- package/dist/types/src/style/default-minimalism/datetime/datetime.d.ts +9 -0
- package/dist/types/src/style/default-minimalism/drawer/drawer.d.ts +9 -0
- package/dist/types/src/style/default-minimalism/dropdown/index.d.ts +14 -0
- package/dist/types/src/style/default-minimalism/form-item/form-item.d.ts +9 -0
- package/dist/types/src/style/default-minimalism/header/header.d.ts +5 -0
- package/dist/types/src/style/default-minimalism/index.d.ts +1 -0
- package/dist/types/src/style/default-minimalism/input/input.d.ts +38 -0
- package/dist/types/src/style/default-minimalism/menu/menu.d.ts +38 -0
- package/dist/types/src/style/default-minimalism/modal/modal.d.ts +10 -0
- package/dist/types/src/style/default-minimalism/multi-tab/multi-tab.d.ts +57 -0
- package/dist/types/src/style/default-minimalism/pagination/pagination.d.ts +12 -0
- package/dist/types/src/style/default-minimalism/popconfirm/popconfirm.d.ts +7 -0
- package/dist/types/src/style/default-minimalism/registry.d.ts +1 -0
- package/dist/types/src/style/default-minimalism/rich-text/rich-text.d.ts +22 -0
- package/dist/types/src/style/default-minimalism/scrollbar/scrollbar.d.ts +5 -0
- package/dist/types/src/style/default-minimalism/select/select.d.ts +41 -0
- package/dist/types/src/style/default-minimalism/switch/switch.d.ts +4 -0
- package/dist/types/src/style/default-minimalism/table/table.d.ts +21 -0
- package/dist/types/src/style/default-minimalism/tabs/tabs.d.ts +6 -0
- package/dist/types/src/style/default-minimalism/textarea/textarea.d.ts +27 -0
- package/dist/types/src/style/default-minimalism/transfer/transfer.d.ts +5 -0
- package/dist/types/src/style/default-minimalism/tree-select/tree-select.d.ts +1 -0
- package/dist/types/src/style/default-minimalism/upload/upload.d.ts +27 -0
- package/dist/types/src/style/index.d.ts +2 -0
- package/dist/types/src/typing.d.ts +8 -2
- package/dist/types/src/utils/ColorHelper.d.ts +33 -0
- package/package.json +4 -1
- package/rollup.config.js +1 -1
- package/src/color/dark-minimalism-vars.ts +117 -0
- package/src/color/dark-vars.ts +6 -1
- package/src/color/default-minimalism-vars.ts +117 -0
- package/src/color/default-vars.ts +45 -11
- package/src/color/index.ts +2 -0
- package/src/init/initTheme.ts +8 -1
- package/src/mount/index.ts +10 -0
- package/src/style/dark/card/card.ts +10 -0
- package/src/style/dark/component-theme.ts +10 -4
- package/src/style/dark/form-item/form-item.ts +3 -1
- package/src/style/dark/input/input.ts +3 -1
- package/src/style/dark/select/select.ts +3 -1
- package/src/style/dark/tabs/tabs.ts +6 -0
- package/src/style/dark-minimalism/app-switch/app-switch.ts +14 -0
- package/src/style/dark-minimalism/button/constant.ts +4 -0
- package/src/style/dark-minimalism/button/danger.ts +146 -0
- package/src/style/dark-minimalism/button/index.ts +28 -0
- package/src/style/dark-minimalism/button/info.ts +146 -0
- package/src/style/dark-minimalism/button/standard.ts +146 -0
- package/src/style/dark-minimalism/button/success.ts +146 -0
- package/src/style/dark-minimalism/button/warning.ts +146 -0
- package/src/style/dark-minimalism/card/card.ts +10 -0
- package/src/style/dark-minimalism/checkbox/checkbox.ts +10 -0
- package/src/style/dark-minimalism/component-theme.ts +179 -0
- package/src/style/dark-minimalism/drawer/drawer.ts +10 -0
- package/src/style/dark-minimalism/dropdown/index.ts +14 -0
- package/src/style/dark-minimalism/form-item/form-item.ts +13 -0
- package/src/style/dark-minimalism/header/header.ts +6 -0
- package/src/style/dark-minimalism/index.ts +1 -0
- package/src/style/dark-minimalism/input/input.ts +48 -0
- package/src/style/dark-minimalism/menu/menu.ts +7 -0
- package/src/style/dark-minimalism/modal/modal.ts +11 -0
- package/src/style/dark-minimalism/multi-tab/multi-tab.ts +67 -0
- package/src/style/dark-minimalism/pagination/pagination.ts +15 -0
- package/src/style/dark-minimalism/popconfirm/popconfirm.ts +8 -0
- package/src/style/dark-minimalism/registry.ts +62 -0
- package/src/style/dark-minimalism/rich-text/rich-text.ts +25 -0
- package/src/style/dark-minimalism/scrollbar/scrollbar.ts +6 -0
- package/src/style/dark-minimalism/select/select.ts +50 -0
- package/src/style/dark-minimalism/switch/switch.ts +5 -0
- package/src/style/dark-minimalism/table/table.ts +44 -0
- package/src/style/dark-minimalism/tabs/tabs.ts +7 -0
- package/src/style/dark-minimalism/textarea/textarea.ts +34 -0
- package/src/style/dark-minimalism/transfer/transfer.ts +6 -0
- package/src/style/dark-minimalism/tree-select/tree-select.ts +1 -0
- package/src/style/dark-minimalism/upload/upload.ts +34 -0
- package/src/style/default/card/card.ts +10 -0
- package/src/style/default/component-theme.ts +10 -4
- package/src/style/default/datetime/datetime.ts +7 -1
- package/src/style/default/dropdown/index.ts +12 -8
- package/src/style/default/form-item/form-item.ts +4 -1
- package/src/style/default/input/input.ts +3 -1
- package/src/style/default/multi-tab/multi-tab.ts +1 -1
- package/src/style/default/pagination/pagination.ts +7 -1
- package/src/style/default/select/select.ts +3 -1
- package/src/style/default/tabs/tabs.ts +6 -0
- package/src/style/default-minimalism/app-switch/app-switch.ts +14 -0
- package/src/style/default-minimalism/button/constant.ts +4 -0
- package/src/style/default-minimalism/button/danger.ts +146 -0
- package/src/style/default-minimalism/button/index.ts +28 -0
- package/src/style/default-minimalism/button/info.ts +146 -0
- package/src/style/default-minimalism/button/standard.ts +146 -0
- package/src/style/default-minimalism/button/success.ts +146 -0
- package/src/style/default-minimalism/button/warning.ts +146 -0
- package/src/style/default-minimalism/card/card.ts +10 -0
- package/src/style/default-minimalism/checkbox/checkbox.ts +10 -0
- package/src/style/default-minimalism/component-theme.ts +184 -0
- package/src/style/default-minimalism/datetime/datetime.ts +12 -0
- package/src/style/default-minimalism/drawer/drawer.ts +10 -0
- package/src/style/default-minimalism/dropdown/index.ts +18 -0
- package/src/style/default-minimalism/form-item/form-item.ts +12 -0
- package/src/style/default-minimalism/header/header.ts +6 -0
- package/src/style/default-minimalism/index.ts +1 -0
- package/src/style/default-minimalism/input/input.ts +48 -0
- package/src/style/default-minimalism/menu/menu.ts +7 -0
- package/src/style/default-minimalism/modal/modal.ts +11 -0
- package/src/style/default-minimalism/multi-tab/multi-tab.ts +67 -0
- package/src/style/default-minimalism/pagination/pagination.ts +15 -0
- package/src/style/default-minimalism/popconfirm/popconfirm.ts +8 -0
- package/src/style/default-minimalism/registry.ts +63 -0
- package/src/style/default-minimalism/rich-text/rich-text.ts +25 -0
- package/src/style/default-minimalism/scrollbar/scrollbar.ts +6 -0
- package/src/style/default-minimalism/select/select.ts +51 -0
- package/src/style/default-minimalism/switch/switch.ts +5 -0
- package/src/style/default-minimalism/table/table.ts +24 -0
- package/src/style/default-minimalism/tabs/tabs.ts +7 -0
- package/src/style/default-minimalism/textarea/textarea.ts +34 -0
- package/src/style/default-minimalism/transfer/transfer.ts +6 -0
- package/src/style/default-minimalism/tree-select/tree-select.ts +1 -0
- package/src/style/default-minimalism/upload/upload.ts +34 -0
- package/src/style/index.ts +2 -0
- package/src/typing.ts +15 -1
- package/src/utils/ColorHelper.ts +75 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const component = "datetime";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
padding: string;
|
|
4
|
+
'text-color-hover': string;
|
|
5
|
+
'text-color-active': string;
|
|
6
|
+
'text-color-selected': string;
|
|
7
|
+
'cell-internal-text-color-hover': string;
|
|
8
|
+
'background-hover': string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const component = "dropdown";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
'background-color': string;
|
|
4
|
+
'background-hover': string;
|
|
5
|
+
'border-color': string;
|
|
6
|
+
'box-shadow': string;
|
|
7
|
+
color: string;
|
|
8
|
+
'color-hover': string;
|
|
9
|
+
'color-disabled': string;
|
|
10
|
+
'color-disabled-hover': string;
|
|
11
|
+
'item-background-color-hover': string;
|
|
12
|
+
'item-background-color-disabled-hover': string;
|
|
13
|
+
'button-text-color': string;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './registry';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const component = "input";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
background: string;
|
|
4
|
+
'background-color': string;
|
|
5
|
+
'border-style': string;
|
|
6
|
+
'border-color': string;
|
|
7
|
+
outline: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
'text-color': string;
|
|
10
|
+
'counter-background': string;
|
|
11
|
+
'counter-color': string;
|
|
12
|
+
'background-hover': string;
|
|
13
|
+
'border-width-hover': string;
|
|
14
|
+
'border-style-hover': string;
|
|
15
|
+
'border-color-hover': string;
|
|
16
|
+
'border-radius-hover': string;
|
|
17
|
+
'outline-hover': string;
|
|
18
|
+
'shadow-hover': string;
|
|
19
|
+
'text-color-hover': string;
|
|
20
|
+
'background-focus': string;
|
|
21
|
+
'border-width-focus': string;
|
|
22
|
+
'border-style-focus': string;
|
|
23
|
+
'border-color-focus': string;
|
|
24
|
+
'border-radius-focus': string;
|
|
25
|
+
'outline-focus': string;
|
|
26
|
+
'shadow-focus': string;
|
|
27
|
+
'text-color-focus': string;
|
|
28
|
+
'readonly-border-color': string;
|
|
29
|
+
'error-border-color': string;
|
|
30
|
+
'disabled-border-color': string;
|
|
31
|
+
'addon-background': string;
|
|
32
|
+
'addon-color': string;
|
|
33
|
+
'tag-background': string;
|
|
34
|
+
'ready-delete-tag-background': string;
|
|
35
|
+
'ready-delete-tag-color': string;
|
|
36
|
+
'clear-background': string;
|
|
37
|
+
'clear-color': string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const component = "menu";
|
|
2
|
+
export declare const cssVars: () => {
|
|
3
|
+
'background-color': string;
|
|
4
|
+
'border-color': string;
|
|
5
|
+
'font-color': string;
|
|
6
|
+
'expand-background-color': string;
|
|
7
|
+
'default-icon-color': string;
|
|
8
|
+
'default-expand-icon-color': string;
|
|
9
|
+
'search-background-color': string;
|
|
10
|
+
'select-dropdown-background': string;
|
|
11
|
+
'select-dropdown-color': string;
|
|
12
|
+
'select-dropdown-selected-color': string;
|
|
13
|
+
'select-dropdown-selected': string;
|
|
14
|
+
'select-dropdown-box-shadow': string;
|
|
15
|
+
'select-color': string;
|
|
16
|
+
'select-background': string;
|
|
17
|
+
'select-placeholder-color': string;
|
|
18
|
+
'selected-icon-color': string;
|
|
19
|
+
'selected-background-color': string;
|
|
20
|
+
'selected-title-color': string;
|
|
21
|
+
'selected-title-hover-color': string;
|
|
22
|
+
'selected-root-title-color': string;
|
|
23
|
+
'selected-root-icon-color': string;
|
|
24
|
+
'selected-root-background-color': string;
|
|
25
|
+
'hover-background-color': string;
|
|
26
|
+
'root-title-hover-color': string;
|
|
27
|
+
'root-title-hover-icon-color': string;
|
|
28
|
+
'active-parent-title-color': string;
|
|
29
|
+
'search-display': string;
|
|
30
|
+
'search-background': string;
|
|
31
|
+
'collapsed-button-hover-background-color': string;
|
|
32
|
+
'collapsed-button-background-color': string;
|
|
33
|
+
'collapsed-button-title-color': string;
|
|
34
|
+
'designer-font-color': string;
|
|
35
|
+
'designer-background-color': string;
|
|
36
|
+
'designer-collapsed-button-hover-background-color': string;
|
|
37
|
+
'designer-collapsed-button-background-color': string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const component = "multi-tabs";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
/**
|
|
4
|
+
* 标准样式
|
|
5
|
+
*/
|
|
6
|
+
background: string;
|
|
7
|
+
color: string;
|
|
8
|
+
'active-color': string;
|
|
9
|
+
'active-font-weight': number;
|
|
10
|
+
'active-background': string;
|
|
11
|
+
'icon-color': string;
|
|
12
|
+
'hover-background-color': string;
|
|
13
|
+
/**
|
|
14
|
+
* 内联样式
|
|
15
|
+
*/
|
|
16
|
+
'background-color-inline': string;
|
|
17
|
+
'color-inline': string;
|
|
18
|
+
'active-color-inline': string;
|
|
19
|
+
'active-background-color-inline': string;
|
|
20
|
+
'hover-background-color-inline': string;
|
|
21
|
+
/**
|
|
22
|
+
* theme1
|
|
23
|
+
*/
|
|
24
|
+
'background-color-theme1': string;
|
|
25
|
+
'background-color-active-theme1': string;
|
|
26
|
+
'border-color-theme1': string;
|
|
27
|
+
/**
|
|
28
|
+
* theme1 inline
|
|
29
|
+
*/
|
|
30
|
+
'background-color-theme1-inline': string;
|
|
31
|
+
'background-color-active-theme1-inline': string;
|
|
32
|
+
'active-color-active-theme1-inline': string;
|
|
33
|
+
'icon-color-active-theme1-inline': string;
|
|
34
|
+
/**
|
|
35
|
+
* theme2
|
|
36
|
+
*/
|
|
37
|
+
'background-color-theme2': string;
|
|
38
|
+
'border-color-theme2': string;
|
|
39
|
+
/**
|
|
40
|
+
* theme3
|
|
41
|
+
*/
|
|
42
|
+
'background-color-theme3': string;
|
|
43
|
+
'background-color-active-theme3': string;
|
|
44
|
+
'active-color-active-theme3': string;
|
|
45
|
+
'icon-color-active-theme3': string;
|
|
46
|
+
/**
|
|
47
|
+
* theme3 inline
|
|
48
|
+
*/
|
|
49
|
+
'background-color-theme3-inline': string;
|
|
50
|
+
/**
|
|
51
|
+
* theme4 inline
|
|
52
|
+
*/
|
|
53
|
+
'background-color-theme4-inline': string;
|
|
54
|
+
'background-color-active-theme4-inline': string;
|
|
55
|
+
'active-color-active-theme4-inline': string;
|
|
56
|
+
'icon-color-active-theme4-inline': string;
|
|
57
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const component = "pagination";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
background: string;
|
|
4
|
+
'border-color': string;
|
|
5
|
+
'text-color': string;
|
|
6
|
+
'background-active': string;
|
|
7
|
+
'border-color-active': string;
|
|
8
|
+
'text-color-active': string;
|
|
9
|
+
'background-hover': string;
|
|
10
|
+
'border-color-hover': string;
|
|
11
|
+
'text-color-hover': string;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerDefaultModernThemeFn(): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const component = "rich-text";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
'textarea-bg-color': string;
|
|
4
|
+
'textarea-color': string;
|
|
5
|
+
'textarea-border-color': string;
|
|
6
|
+
'textarea-slight-border-color': string;
|
|
7
|
+
'textarea-slight-color': string;
|
|
8
|
+
'textarea-slight-bg-color': string;
|
|
9
|
+
'textarea-selected-border-color': string;
|
|
10
|
+
'textarea-handler-bg-color': string;
|
|
11
|
+
'toolbar-color': string;
|
|
12
|
+
'toolbar-bg-color': string;
|
|
13
|
+
'toolbar-active-color': string;
|
|
14
|
+
'toolbar-active-bg-color': string;
|
|
15
|
+
'toolbar-color-active-bg-color': string;
|
|
16
|
+
'toolbar-disabled-color': string;
|
|
17
|
+
'toolbar-border-color': string;
|
|
18
|
+
'modal-button-bg-color': string;
|
|
19
|
+
'modal-button-border-color': string;
|
|
20
|
+
'button-tooltip-bg-color': string;
|
|
21
|
+
'button-tooltip-color': string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const component = "select";
|
|
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
|
+
'counter-background': string;
|
|
12
|
+
'counter-color': string;
|
|
13
|
+
'counter-font-size': string;
|
|
14
|
+
'background-hover': string;
|
|
15
|
+
'border-width-hover': string;
|
|
16
|
+
'border-style-hover': string;
|
|
17
|
+
'border-color-hover': string;
|
|
18
|
+
'border-radius-hover': string;
|
|
19
|
+
'outline-hover': string;
|
|
20
|
+
'shadow-hover': string;
|
|
21
|
+
'text-color-hover': string;
|
|
22
|
+
'background-focus': string;
|
|
23
|
+
'border-width-focus': string;
|
|
24
|
+
'border-style-focus': string;
|
|
25
|
+
'border-color-focus': string;
|
|
26
|
+
'border-radius-focus': string;
|
|
27
|
+
'outline-focus': string;
|
|
28
|
+
'shadow-focus': string;
|
|
29
|
+
'text-color-focus': string;
|
|
30
|
+
'readonly-border-color': string;
|
|
31
|
+
'item-readonly-bg': string;
|
|
32
|
+
'item-readonly-color': string;
|
|
33
|
+
'item-readonly-radius': string;
|
|
34
|
+
'dropdown-background': string;
|
|
35
|
+
'dropdown-selected-color': string;
|
|
36
|
+
'dropdown-color': string;
|
|
37
|
+
'dropdown-selected': string;
|
|
38
|
+
'dropdown-hover-color': string;
|
|
39
|
+
'dropdown-hover-background': string;
|
|
40
|
+
'dropdown-box-shadow': string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const component = "table";
|
|
2
|
+
export declare const cssVars: {
|
|
3
|
+
'thead-bg': string;
|
|
4
|
+
'body-bg': string;
|
|
5
|
+
'text-color': string;
|
|
6
|
+
'title-color': string;
|
|
7
|
+
'title-font-weight': number;
|
|
8
|
+
'title-sort-icon-size': string;
|
|
9
|
+
'tr-height': string;
|
|
10
|
+
'tr-stripe-bg': string;
|
|
11
|
+
'tr-checked-bg': string;
|
|
12
|
+
'tr-hover-bg': string;
|
|
13
|
+
'row-border': string;
|
|
14
|
+
'row-body-border': string;
|
|
15
|
+
config: {
|
|
16
|
+
border: string;
|
|
17
|
+
stripe: boolean;
|
|
18
|
+
isCurrent: boolean;
|
|
19
|
+
isHover: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const component = "tree-select";
|
|
@@ -0,0 +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
|
+
};
|
|
@@ -7,9 +7,15 @@ export declare enum DefaultThemeName {
|
|
|
7
7
|
DEFAULT_LARGE = "default-large",
|
|
8
8
|
DEFAULT_MEDIUM = "default-medium",
|
|
9
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",
|
|
10
13
|
DARK_LARGE = "dark-large",
|
|
11
14
|
DARK_MEDIUM = "dark-medium",
|
|
12
|
-
DARK_SMALL = "dark-small"
|
|
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"
|
|
13
19
|
}
|
|
14
|
-
export declare type ThemeName = 'default-large' | 'default-medium' | 'default-small' | 'dark-large' | 'dark-medium' | 'dark-small' | string;
|
|
20
|
+
export declare 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;
|
|
15
21
|
export declare const isSystemTheme: (name: ThemeName) => boolean;
|
|
@@ -0,0 +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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oinone/kunlun-theme",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist",
|
|
@@ -10,5 +10,8 @@
|
|
|
10
10
|
"x-prepublishOnly": "node ../../scripts/prepublish-only.js",
|
|
11
11
|
"x-postpublish": "node ../../scripts/postpublish.js"
|
|
12
12
|
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@oinone/kunlun-config": "6.4.0"
|
|
15
|
+
},
|
|
13
16
|
"gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079"
|
|
14
17
|
}
|
package/rollup.config.js
CHANGED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { DEFAULT_PREFIX } from '../mount';
|
|
2
|
+
|
|
3
|
+
export const darkModernVars = {
|
|
4
|
+
// primary
|
|
5
|
+
'primary-color-rgb': '3, 93, 255', // 主色
|
|
6
|
+
'primary-color': '#035DFF', // 主色
|
|
7
|
+
'primary-color-hover': '#3F84FF', // 主悬停色
|
|
8
|
+
'primary-color-focus': '#3F84FF', // 主焦点色
|
|
9
|
+
'primary-color-active': '#024CDE', // 主激活色
|
|
10
|
+
'primary-color-outline': '#035DFF', // 主轮廓色
|
|
11
|
+
// success
|
|
12
|
+
'success-color': '#6DD400', // 成功色
|
|
13
|
+
'success-color-hover': '#90DE3D', // 成功悬停色
|
|
14
|
+
'success-color-focus': '#90DE3D', // 成功悬停色
|
|
15
|
+
'success-color-active': '#6BBB00', // 成功激活色
|
|
16
|
+
'success-color-outline': '#6DD400', // 成功轮廓色
|
|
17
|
+
// waring
|
|
18
|
+
'warning-color': '#F7B500', // 警告色
|
|
19
|
+
'warning-color-hover': '#F9C73D', // 警告悬停色
|
|
20
|
+
'warning-color-focus': '#F9C73D', // 警告悬停色
|
|
21
|
+
'warning-color-active': '#D99200', // 警告激活色
|
|
22
|
+
'warning-color-outline': '#F7B500', // 警告轮廓色
|
|
23
|
+
// info
|
|
24
|
+
'info-color': '#8c8c8c', // 通知色
|
|
25
|
+
'info-color-hover': '#999999', // 通知悬停色
|
|
26
|
+
'info-color-focus': '#999999', // 通知悬停色
|
|
27
|
+
'info-color-active': '#666666', // 通知激活色
|
|
28
|
+
'info-color-outline': '#8c8c8c', // 通知轮廓色
|
|
29
|
+
// error
|
|
30
|
+
'error-color': '#E02020', // 错误色
|
|
31
|
+
'error-color-hover': '#E75555',
|
|
32
|
+
'error-color-focus': '#E75555',
|
|
33
|
+
'error-color-active': '#C51C26',
|
|
34
|
+
'error-color-outline': '#E02020',
|
|
35
|
+
|
|
36
|
+
// 消息icon颜色
|
|
37
|
+
'notification-info': '#035DFF',
|
|
38
|
+
'notification-error': '#FF4D4F',
|
|
39
|
+
'notification-success': '#52C41A',
|
|
40
|
+
'notification-warning': '#FAAD14',
|
|
41
|
+
|
|
42
|
+
// background
|
|
43
|
+
background: '#1F2935',
|
|
44
|
+
'body-background': '#15232E',
|
|
45
|
+
'search-background': '#1F2935',
|
|
46
|
+
'header-background': '#1F2935',
|
|
47
|
+
'main-background': '#1F2935',
|
|
48
|
+
'footer-background': '#1F2935',
|
|
49
|
+
'menu-background': '#1F2935',
|
|
50
|
+
'multi-tabs-background': '#F3F7FA',
|
|
51
|
+
'stripe-color': 'rgba(255, 255, 255, 0.1)',
|
|
52
|
+
'placeholder-color': 'rgba(255,255,255,0.25)',
|
|
53
|
+
|
|
54
|
+
// hover
|
|
55
|
+
'hover-background-color': `rgba(255, 255, 255, 0.1)`,
|
|
56
|
+
'hover-text-color': `var(--oio-text-color)`,
|
|
57
|
+
|
|
58
|
+
// selected
|
|
59
|
+
'selected-background-color': 'rgba(255, 255, 255, 0.1)',
|
|
60
|
+
'selected-text-color': `var(--${DEFAULT_PREFIX}-text-color-secondary)`,
|
|
61
|
+
|
|
62
|
+
// font
|
|
63
|
+
'font-family':
|
|
64
|
+
"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol','Noto Color Emoji';",
|
|
65
|
+
'text-color': 'rgba(255,255,255,0.65)',
|
|
66
|
+
'text-color-rgb': '38, 38, 38',
|
|
67
|
+
'text-color-secondary': 'rgba(255,255,255,0.45)',
|
|
68
|
+
'text-color-three': 'rgba(255,255,255,0.25)',
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Please use --${DEFAULT_PREFIX}-font-weight-bold property.
|
|
72
|
+
*/
|
|
73
|
+
'font-weight-thick': `var(--${DEFAULT_PREFIX}-font-weight-bold)`,
|
|
74
|
+
'font-weight': '400',
|
|
75
|
+
'font-weight-lighter': 'lighter',
|
|
76
|
+
'font-weight-bold': 'bold',
|
|
77
|
+
'font-weight-bolder': 'bolder',
|
|
78
|
+
|
|
79
|
+
// 只读色调
|
|
80
|
+
'readonly-color': 'rgba(255,255,255,0.65)',
|
|
81
|
+
'readonly-bg': '#1D2E3C',
|
|
82
|
+
'readonly-active-bg': '#1D2E3C',
|
|
83
|
+
'readonly-border-color': '#333e4c',
|
|
84
|
+
|
|
85
|
+
// 禁用色调
|
|
86
|
+
'disabled-color': 'rgba(255,255,255,0.25)',
|
|
87
|
+
'disabled-bg': '#1D2E3C',
|
|
88
|
+
'disabled-active-bg': '#1D2E3C',
|
|
89
|
+
'disabled-border-color': '#333e4c',
|
|
90
|
+
|
|
91
|
+
// border
|
|
92
|
+
'border-color': '#333e4c',
|
|
93
|
+
'border-color-danger': '#E02020',
|
|
94
|
+
'border-width': '1px',
|
|
95
|
+
'border-style': 'solid',
|
|
96
|
+
|
|
97
|
+
// common
|
|
98
|
+
'icon-color': 'rgba(255,255,255,0.65)',
|
|
99
|
+
'default-icon-color': 'rgba(255,255,255,0.65)',
|
|
100
|
+
'normal-icon-filter': `var(--${DEFAULT_PREFIX}-icon-filter)`,
|
|
101
|
+
'icon-filter': 'invert(0.7) hue-rotate(180deg) brightness(0.5)',
|
|
102
|
+
'icon-filter-opacity': '0.4',
|
|
103
|
+
'close-icon-background': 'transparent',
|
|
104
|
+
'group-border-width': '0px',
|
|
105
|
+
'box-shadow-size': '0px',
|
|
106
|
+
'box-shadow': '0px 0px 6px 0px rgba(0,0,0,0.2)',
|
|
107
|
+
'addon-color-pick-background': `var(--${DEFAULT_PREFIX}-primary-color)`,
|
|
108
|
+
'addon-color-pick-readonly-background': 'rgba(92,104,127, 0.25)',
|
|
109
|
+
'addon-color-pick-border-color': '#ffffff',
|
|
110
|
+
'addon-color-pick-icon-color': '#ffffff',
|
|
111
|
+
'addon-color-pick-dropdown-background': `var(--${DEFAULT_PREFIX}-background)`,
|
|
112
|
+
'addon-color-pick-dropdown-border-color': `var(--${DEFAULT_PREFIX}-border-color)`,
|
|
113
|
+
'user-dropdown-icon-color': `var(--${DEFAULT_PREFIX}-text-color)`,
|
|
114
|
+
'tag-select-background': 'rgba(255,255,255,0.1)',
|
|
115
|
+
'spin-background': 'rgba(31,41,53,0.7)',
|
|
116
|
+
'gemini-mini-icon-color': 'rgba(3,93,255, 0.2)'
|
|
117
|
+
};
|
package/src/color/dark-vars.ts
CHANGED
|
@@ -48,11 +48,16 @@ export const darkVars = {
|
|
|
48
48
|
'footer-background': '#1F2935',
|
|
49
49
|
'menu-background': '#1F2935',
|
|
50
50
|
'multi-tabs-background': '#F3F7FA',
|
|
51
|
+
'stripe-color': 'rgba(255, 255, 255, 0.1)',
|
|
51
52
|
'placeholder-color': 'rgba(255,255,255,0.25)',
|
|
52
53
|
|
|
53
54
|
// hover
|
|
54
55
|
'hover-background-color': `rgba(255, 255, 255, 0.1)`,
|
|
55
|
-
'hover-text-color': `var(
|
|
56
|
+
'hover-text-color': `var(--${DEFAULT_PREFIX}-text-color)`,
|
|
57
|
+
|
|
58
|
+
// selected
|
|
59
|
+
'selected-background-color': 'rgba(255, 255, 255, 0.1)',
|
|
60
|
+
'selected-text-color': `var(--${DEFAULT_PREFIX}-text-color-secondary)`,
|
|
56
61
|
|
|
57
62
|
// font
|
|
58
63
|
'font-family':
|