@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
|
@@ -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,141 +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
|
-
|
|
47
|
-
export const getComponentTheme = () => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
...mediumInputSizeVars
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
[Checkbox]: {
|
|
74
|
-
large: { ...checkboxCSSVars },
|
|
75
|
-
medium: { ...checkboxCSSVars },
|
|
76
|
-
small: { ...checkboxCSSVars }
|
|
77
|
-
},
|
|
78
|
-
[Switch]: {
|
|
79
|
-
large: { ...switchCSSVars },
|
|
80
|
-
medium: { ...switchCSSVars },
|
|
81
|
-
small: { ...switchCSSVars }
|
|
82
|
-
},
|
|
83
|
-
[Pagination]: {
|
|
84
|
-
large: { ...PaginationCSSVars, ...largePaginationSizeVars },
|
|
85
|
-
medium: { ...PaginationCSSVars, ...mediumPaginationSizeVars },
|
|
86
|
-
small: { ...PaginationCSSVars, ...smallPaginationSizeVars }
|
|
87
|
-
},
|
|
88
|
-
[Select]: {
|
|
89
|
-
large: { ...SelectCSSVars, ...largeSelectSizeVars },
|
|
90
|
-
medium: { ...SelectCSSVars, ...mediumSelectSizeVars },
|
|
91
|
-
small: { ...SelectCSSVars, ...smallSelectSizeVars }
|
|
92
|
-
},
|
|
93
|
-
[Textarea]: {
|
|
94
|
-
large: TextareaCSSVars,
|
|
95
|
-
medium: TextareaCSSVars,
|
|
96
|
-
small: TextareaCSSVars
|
|
97
|
-
},
|
|
98
|
-
[Upload]: {
|
|
99
|
-
large: UploadCSSVars,
|
|
100
|
-
medium: UploadCSSVars,
|
|
101
|
-
small: UploadCSSVars
|
|
102
|
-
},
|
|
103
|
-
[Menu]: {
|
|
104
|
-
large: { ...MenuCSSVars(), ...largeMenuSizeVars },
|
|
105
|
-
medium: { ...MenuCSSVars(), ...mediumMenuSizeVars },
|
|
106
|
-
small: { ...MenuCSSVars(), ...smallMenuSizeVars }
|
|
107
|
-
},
|
|
108
|
-
[AppSwitch]: {
|
|
109
|
-
large: AppSwitchCSSVars,
|
|
110
|
-
medium: AppSwitchCSSVars,
|
|
111
|
-
small: AppSwitchCSSVars
|
|
112
|
-
},
|
|
113
|
-
[Table]: {
|
|
114
|
-
large: { ...TableCSSVars, ...largeTableSizeVars },
|
|
115
|
-
medium: { ...TableCSSVars, ...mediumTableSizeVars },
|
|
116
|
-
small: { ...TableCSSVars, ...smallTableSizeVars }
|
|
117
|
-
},
|
|
118
|
-
[Header]: {
|
|
119
|
-
large: HeaderCSSVars,
|
|
120
|
-
medium: HeaderCSSVars,
|
|
121
|
-
small: HeaderCSSVars
|
|
122
|
-
},
|
|
123
|
-
[Modal]: {
|
|
124
|
-
large: ModalCSSVars,
|
|
125
|
-
medium: ModalCSSVars,
|
|
126
|
-
small: ModalCSSVars
|
|
127
|
-
},
|
|
128
|
-
[Popconfirm]: {
|
|
129
|
-
large: PopconfirmCSSVars,
|
|
130
|
-
medium: PopconfirmCSSVars,
|
|
131
|
-
small: PopconfirmCSSVars
|
|
132
|
-
},
|
|
133
|
-
[TreeSelect]: {
|
|
134
|
-
large: largeTreeSelectSizeVars,
|
|
135
|
-
medium: mediumTreeSelectSizeVars,
|
|
136
|
-
small: smallTreeSelectSizeVars
|
|
137
|
-
},
|
|
138
|
-
[Transfer]: {
|
|
139
|
-
large: TransferCSSVars,
|
|
140
|
-
medium: TransferCSSVars,
|
|
141
|
-
small: TransferCSSVars
|
|
142
|
-
},
|
|
143
|
-
[Scrollbar]: {
|
|
144
|
-
large: ScrollbarCSSVars,
|
|
145
|
-
medium: ScrollbarCSSVars,
|
|
146
|
-
small: ScrollbarCSSVars
|
|
147
|
-
},
|
|
148
|
-
[Drawer]: {
|
|
149
|
-
large: DrawerCSSVars,
|
|
150
|
-
medium: DrawerCSSVars,
|
|
151
|
-
small: DrawerCSSVars
|
|
152
|
-
},
|
|
153
|
-
[Dropdown]: {
|
|
154
|
-
large: DropdownCSSVars,
|
|
155
|
-
medium: DropdownCSSVars,
|
|
156
|
-
small: DropdownCSSVars
|
|
157
|
-
},
|
|
158
|
-
[FormItem]: {
|
|
159
|
-
large: FormItemCSSVars,
|
|
160
|
-
medium: FormItemCSSVars,
|
|
161
|
-
small: FormItemCSSVars
|
|
162
|
-
},
|
|
163
|
-
[RichText]: {
|
|
164
|
-
large: RichTextCSSVars,
|
|
165
|
-
medium: RichTextCSSVars,
|
|
166
|
-
small: RichTextCSSVars
|
|
167
|
-
},
|
|
168
|
-
[Tabs]: {
|
|
169
|
-
large: { ...largeTabsSizeVars, ...TabsCSSVars },
|
|
170
|
-
medium: { ...mediumTabsSizeVars, ...TabsCSSVars },
|
|
171
|
-
small: { ...smallTabsSizeVars, ...TabsCSSVars }
|
|
172
|
-
},
|
|
173
|
-
[Card]: {
|
|
174
|
-
large: CardCSSVars,
|
|
175
|
-
medium: CardCSSVars,
|
|
176
|
-
small: CardCSSVars
|
|
49
|
+
|
|
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
|
|
177
73
|
}
|
|
178
|
-
}
|
|
179
|
-
|
|
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 { darkModernVars } 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) {
|
|
@@ -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 Datetime, cssVars as DatetimeCSSVars } from './datetime/datetime';
|
|
27
29
|
import { component as Drawer, cssVars as DrawerCSSVars } from './drawer/drawer';
|
|
@@ -40,11 +42,11 @@ import { component as Select, cssVars as SelectCSSVars } from './select/select';
|
|
|
40
42
|
import { component as Switch, cssVars as SwitchCSSVars } from './switch/switch';
|
|
41
43
|
import { component as Table, cssVars as TableCSSVars } from './table/table';
|
|
42
44
|
import { component as Tabs, cssVars as TabsCSSVars } from './tabs/tabs';
|
|
45
|
+
import { component as Tag, cssVars as TagCSSVars } from './tag';
|
|
43
46
|
import { component as Textarea, cssVars as TextareaCSSVars } from './textarea/textarea';
|
|
44
47
|
import { component as Transfer, cssVars as TransferCSSVars } from './transfer/transfer';
|
|
45
48
|
import { component as TreeSelect } from './tree-select/tree-select';
|
|
46
49
|
import { component as Upload, cssVars as UploadCSSVars } from './upload/upload';
|
|
47
|
-
import { component as Card, cssVars as CardCSSVars } from './card/card';
|
|
48
50
|
|
|
49
51
|
export const getComponentTheme = () => ({
|
|
50
52
|
[MultiTab]: {
|
|
@@ -180,5 +182,15 @@ export const getComponentTheme = () => ({
|
|
|
180
182
|
large: CardCSSVars,
|
|
181
183
|
medium: CardCSSVars,
|
|
182
184
|
small: CardCSSVars
|
|
185
|
+
},
|
|
186
|
+
[Tag]: {
|
|
187
|
+
large: TagCSSVars,
|
|
188
|
+
medium: TagCSSVars,
|
|
189
|
+
small: TagCSSVars
|
|
190
|
+
},
|
|
191
|
+
[AiChat]: {
|
|
192
|
+
large: AiChatCSSVars,
|
|
193
|
+
medium: AiChatCSSVars,
|
|
194
|
+
small: AiChatCSSVars
|
|
183
195
|
}
|
|
184
196
|
});
|
|
@@ -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 Datetime, cssVars as DatetimeCSSVars } from './datetime/datetime';
|
|
27
29
|
import { component as Drawer, cssVars as DrawerCSSVars } from './drawer/drawer';
|
|
@@ -40,11 +42,11 @@ import { component as Select, cssVars as SelectCSSVars } from './select/select';
|
|
|
40
42
|
import { component as Switch, cssVars as SwitchCSSVars } from './switch/switch';
|
|
41
43
|
import { component as Table, cssVars as TableCSSVars } from './table/table';
|
|
42
44
|
import { component as Tabs, cssVars as TabsCSSVars } from './tabs/tabs';
|
|
45
|
+
import { component as Tag, cssVars as TagCSSVars } from './tag';
|
|
43
46
|
import { component as Textarea, cssVars as TextareaCSSVars } from './textarea/textarea';
|
|
44
47
|
import { component as Transfer, cssVars as TransferCSSVars } from './transfer/transfer';
|
|
45
48
|
import { component as TreeSelect } from './tree-select/tree-select';
|
|
46
49
|
import { component as Upload, cssVars as UploadCSSVars } from './upload/upload';
|
|
47
|
-
import { component as Card, cssVars as CardCSSVars } from './card/card';
|
|
48
50
|
|
|
49
51
|
export const getComponentTheme = () => ({
|
|
50
52
|
[MultiTab]: {
|
|
@@ -180,5 +182,15 @@ export const getComponentTheme = () => ({
|
|
|
180
182
|
large: CardCSSVars,
|
|
181
183
|
medium: CardCSSVars,
|
|
182
184
|
small: CardCSSVars
|
|
185
|
+
},
|
|
186
|
+
[Tag]: {
|
|
187
|
+
large: TagCSSVars,
|
|
188
|
+
medium: TagCSSVars,
|
|
189
|
+
small: TagCSSVars
|
|
190
|
+
},
|
|
191
|
+
[AiChat]: {
|
|
192
|
+
large: AiChatCSSVars,
|
|
193
|
+
medium: AiChatCSSVars,
|
|
194
|
+
small: AiChatCSSVars
|
|
183
195
|
}
|
|
184
196
|
});
|
package/rollup.config.js
DELETED