@opentiny/vue-theme 3.8.5 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -11
- package/action-menu/aurora-theme.js +4 -0
- package/button-group/aurora-theme.js +13 -0
- package/button-group/index.css +1 -1
- package/button-group/smb-theme.js +32 -28
- package/cascader/index.css +1 -1
- package/cascader-node/aurora-theme.js +2 -2
- package/cascader-node/index.css +1 -1
- package/checkbox/index.css +1 -1
- package/checkbox-group/index.css +1 -1
- package/collapse-item/index.css +1 -1
- package/container/aurora-theme.js +10 -0
- package/container/index.css +1 -1
- package/container/index.js +1 -0
- package/date-table/index.css +1 -1
- package/dialog-box/index.css +1 -1
- package/drawer/index.css +1 -0
- package/dropdown/aurora-theme.js +5 -0
- package/dropdown-item/aurora-theme.js +4 -0
- package/dropdown-item/index.css +1 -1
- package/dropdown-menu/aurora-theme.js +9 -0
- package/dropdown-menu/index.css +1 -1
- package/fall-menu/aurora-theme.js +3 -0
- package/fall-menu/index.css +1 -1
- package/form-item/index.css +1 -1
- package/grid/index.css +1 -1
- package/guide/aurora-theme.js +40 -0
- package/guide/index.css +1 -1
- package/index.css +1 -1
- package/input/index.css +1 -1
- package/layout/aurora-theme.js +14 -0
- package/layout/index.css +1 -0
- package/link/aurora-theme.js +5 -0
- package/link/index.css +1 -1
- package/lowcode.css +1 -1
- package/milestone/index.css +1 -1
- package/month-table/index.css +1 -1
- package/numeric/index.css +1 -1
- package/option/aurora-theme.js +4 -0
- package/option/index.css +1 -1
- package/package.json +8 -1
- package/pager/smb-theme.js +1 -0
- package/picker/index.css +1 -1
- package/popconfirm/index.css +1 -0
- package/popconfirm/smb-theme.js +7 -0
- package/popover/aurora-theme.js +3 -0
- package/search/aurora-theme.js +2 -1
- package/search/index.css +1 -1
- package/select/aurora-theme.js +4 -0
- package/select/index.css +1 -1
- package/select/smb-theme.js +0 -1
- package/select-dropdown/aurora-theme.js +6 -0
- package/split/aurora-theme.js +2 -1
- package/steps/index.css +1 -1
- package/svgs/arrow-bottom.svg +1 -1
- package/svgs/check.svg +7 -15
- package/svgs/checked-sur.svg +7 -16
- package/svgs/eyeclose.svg +5 -40
- package/svgs/eyeopen.svg +1 -1
- package/svgs/halfselect.svg +7 -15
- package/svgs/radio.svg +9 -15
- package/svgs/radioselected.svg +9 -15
- package/tabs/index.css +1 -1
- package/text-popup/index.css +1 -1
- package/textarea/index.css +1 -1
- package/theme/aurora-theme/component.js +315 -30
- package/theme/aurora-theme/index.js +2 -2
- package/theme/index.d.ts +15 -0
- package/theme/infinity-theme/index.js +2 -2
- package/theme/smb-theme/component.js +600 -43
- package/theme-tool.d.ts +15 -0
- package/theme-tool.js +14 -15
- package/theme.config.js +2 -0
- package/tooltip/aurora-theme.js +7 -1
- package/year-table/index.css +1 -1
- package/pop-upload/index.js +0 -21
- package/popeditor/index.js +0 -21
package/theme-tool.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface ThemeData {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
cnName: string;
|
|
5
|
+
data: object;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default class TinyThemeTool {
|
|
9
|
+
currentTheme: string;
|
|
10
|
+
contentElement: HTMLElement;
|
|
11
|
+
styleSheetId: string;
|
|
12
|
+
defaultTheme: object;
|
|
13
|
+
changeTheme: (theme: ThemeData) => void;
|
|
14
|
+
constructor(theme: ThemeData, styleSheetId: string);
|
|
15
|
+
}
|
package/theme-tool.js
CHANGED
|
@@ -26,25 +26,24 @@ import definedComponents from './theme.config'
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
export default class TinyThemeTool {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// 当前style标签元素
|
|
33
|
-
contentElement
|
|
29
|
+
constructor(theme, styleSheetId = 'tinyThemeVariables') {
|
|
30
|
+
// 当前主题
|
|
31
|
+
this.currentTheme = null
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
// 当前style标签元素
|
|
34
|
+
this.contentElement = null
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
// 当前style标签的id
|
|
37
|
+
this.styleSheetId = null
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
// 默认主题
|
|
40
|
+
this.defaultTheme = {
|
|
41
|
+
id: 'tiny-default-theme',
|
|
42
|
+
name: 'Default',
|
|
43
|
+
cnName: '默认',
|
|
44
|
+
data: {}
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
constructor(theme, styleSheetId = 'tinyThemeVariables') {
|
|
48
47
|
let currentTheme = theme
|
|
49
48
|
if (!theme) {
|
|
50
49
|
currentTheme = this.defaultTheme
|
package/theme.config.js
CHANGED
package/tooltip/aurora-theme.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export const tinyTooltipAuroraTheme = {
|
|
2
|
+
'ti-tooltip-popper-normal-bg-color': '#303133',
|
|
3
|
+
'ti-tooltip-popper-dark-bg-color': '#303133',
|
|
4
|
+
'ti-tooltip-popper-border-color': '#303133',
|
|
5
|
+
'ti-tooltip-popper-normal-border-color': '#303133',
|
|
2
6
|
'ti-tooltip-popper-normal-text-color': '#fff',
|
|
3
7
|
'ti-tooltip-popper-info-bg-color': '#69c0ff',
|
|
4
|
-
'ti-tooltip-popper-info-border-color': '#69c0ff'
|
|
8
|
+
'ti-tooltip-popper-info-border-color': '#69c0ff',
|
|
9
|
+
'ti-tooltip-padding-vertical': '10px',
|
|
10
|
+
'ti-tooltip-padding-horizontal': '10px'
|
|
5
11
|
}
|
package/year-table/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tiny-year-table{--ti-year-table-td-text-color:var(--ti-base-color-brand-7);--ti-year-table-td-icon-color:#303133;font-size:var(--ti-date-picker-font-size);margin:-1px;border-collapse:collapse}.tiny-year-table td{text-align:center;cursor:pointer}.tiny-year-table td.today .cell{color:var(--ti-year-table-td-text-color);font-weight:700}.tiny-year-table td.disabled .cell{background-color:var(--ti-date-picker-disabled-bg-color);cursor:not-allowed;color:var(--ti-date-picker-disabled-text-color)}.tiny-year-table td.disabled .cell:hover{color:var(--ti-date-picker-disabled-text-color)}.tiny-year-table td .cell{width:48px;height:24px;line-height:24px;display:block;color:var(--ti-date-picker-text-color);margin:0 auto;border-radius:2px}.tiny-year-table td .cell:hover{background:var(--ti-date-picker-hover-bg-color)}.tiny-year-table td.current:not(.disabled) .cell{color:var(--ti-date-table-td-
|
|
1
|
+
.tiny-year-table{--ti-year-table-td-text-color:var(--ti-base-color-brand-7);--ti-year-table-td-icon-color:#303133;--ti-date-picker-width:280px;--ti-date-picker-font-size:var(--ti-common-font-size-base);--ti-date-picker-text-color:var(--ti-common-color-info-normal);--ti-date-picker-bg-color:var(--ti-common-color-light);--ti-date-picker-border-radius:var(--ti-common-border-radius-normal);--ti-date-picker-border-color:var(--ti-common-color-line-dividing);--ti-date-picker-hover-bg-color:var(--ti-base-color-brand-2);--ti-date-picker-disabled-text-color:var(--ti-common-color-text-disabled);--ti-date-picker-disabled-bg-color:var(--ti-common-color-bg-disabled);--ti-date-picker-selected-bg-color:#f2f2f3;--ti-date-picker-icon-font-size:var(--ti-common-font-size-1);--ti-date-picker-current-select-bg-color:var(--ti-base-color-brand-6);--ti-date-picker-current-border-color:var(--ti-base-color-brand-6);--ti-date-picker-current-border-radius:0;--ti-date-picker-range-bg-color:var(--ti-base-color-brand-2);--ti-date-picker-range-hover-bg-color:var(--ti-base-color-brand-2);--ti-date-picker-header-label-hover-text-color:var(--ti-base-color-brand-7);--ti-date-table-td-width:36px;--ti-date-table-td-height:34px;--ti-date-table-td-padding-vertical:4px;--ti-date-table-td-padding-horizontal:0;--ti-date-table-td-span-width:36px;--ti-date-table-td-span-height:24px;--ti-date-table-th-text-color:var(--ti-base-color-common-2);--ti-date-table-td-border-radius:0;--ti-date-table-td-pre-month-text-color:var(--ti-base-color-common-2);--ti-date-table-td-normal-text-color:var(--ti-common-color-light);--ti-date-table-td-range-bg-color:#f2f6fc;--ti-date-table-td-today-border-color:var(--ti-base-color-brand-6);--ti-date-table-td-today-text-color:var(--ti-common-color-info-normal);--ti-date-table-week-bg-color-current-select:var(--ti-base-color-brand-2);--ti-date-table-week-bg-color-current-hover:var(--ti-base-color-brand-3);--ti-date-table-font-size:var(--ti-common-font-size-base);--ti-date-table-hover-bg-color:var(--ti-common-color-selected-background);--ti-date-table-current-border-color:var(--ti-base-color-brand-6);--ti-date-table-disabled-text-color:var(--ti-common-color-text-disabled);--ti-date-table-disabled-bg-color:var(--ti-common-color-bg-disabled);--ti-date-table-range-bg-color:var(--ti-base-color-brand-2);--ti-date-table-range-hover-bg-color:var(--ti-base-color-brand-2);--ti-date-table-bg-color-current-select:var(--ti-base-color-brand-6);--ti-date-table-text-color:var(--ti-common-color-info-normal);--ti-date-table-border-radius-current-select:0;font-size:var(--ti-date-picker-font-size);margin:-1px;border-collapse:collapse}.tiny-year-table td{text-align:center;cursor:pointer}.tiny-year-table td.today .cell{color:var(--ti-year-table-td-text-color);font-weight:700}.tiny-year-table td.disabled .cell{background-color:var(--ti-date-picker-disabled-bg-color);cursor:not-allowed;color:var(--ti-date-picker-disabled-text-color)}.tiny-year-table td.disabled .cell:hover{color:var(--ti-date-picker-disabled-text-color)}.tiny-year-table td .cell{width:48px;height:24px;line-height:24px;display:block;color:var(--ti-date-picker-text-color);margin:0 auto;border-radius:2px}.tiny-year-table td .cell:hover{background:var(--ti-date-picker-hover-bg-color)}.tiny-year-table td.current:not(.disabled) .cell{color:var(--ti-date-table-td-normal-text-color);background:var(--ti-date-picker-current-select-bg-color)}.tiny-year-table td.available{padding:16px 3px}.tiny-year-table .tiny-icon{color:var(--ti-year-table-td-icon-color)}
|
package/pop-upload/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
-
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license.
|
|
6
|
-
*
|
|
7
|
-
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
-
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
-
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
'tiny-popupload-font-size': '12px',
|
|
15
|
-
'tiny-popupload-dialog-table-border-color': '#d9d9d9',
|
|
16
|
-
'tiny-popupload-dialog-table-header-height': '36px',
|
|
17
|
-
'tiny-popupload-dialog-table-header-text-color': '#333',
|
|
18
|
-
'tiny-popupload-dialog-table-header-bg-color': '#f1f1f1',
|
|
19
|
-
'tiny-popupload-dialog-table-icon-color': '#1890ff',
|
|
20
|
-
'tiny-popupload-dialog-table-icon-color-hover': '#f5222d'
|
|
21
|
-
}
|
package/popeditor/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
-
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license.
|
|
6
|
-
*
|
|
7
|
-
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
-
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
-
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
'tiny-popeditor-border-color': '#d9d9d9',
|
|
15
|
-
'tiny-popeditor-icon-color': '#1890ff',
|
|
16
|
-
'tiny-popeditor-icon-color-disabled': '#999',
|
|
17
|
-
'tiny-popeditor-icon-color-hover': '#40a9ff',
|
|
18
|
-
'tiny-popeditor-tabs-text-color': '#333',
|
|
19
|
-
'tiny-popeditor-tabs-selected-text-color': '#1890ff',
|
|
20
|
-
'tiny-popeditor-tabs-li-height': '40px'
|
|
21
|
-
}
|