@uzum-tech/ui 1.8.1 → 1.8.2
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/index.js +189 -135
- package/dist/index.prod.js +3 -3
- package/es/_internal/scrollbar/src/Scrollbar.js +1 -1
- package/es/button/src/Button.d.ts +72 -0
- package/es/button/src/Button.js +13 -7
- package/es/button/src/styles/index.cssr.js +1 -2
- package/es/button/styles/light.d.ts +8 -0
- package/es/button/styles/light.js +7 -7
- package/es/calendar/src/Calendar.d.ts +80 -0
- package/es/calendar/styles/light.d.ts +8 -0
- package/es/chat/src/Chat.d.ts +87 -7
- package/es/chat/src/Chat.js +11 -12
- package/es/chat/src/ChatListItems.d.ts +88 -0
- package/es/chat/src/ChatListItems.js +4 -1
- package/es/chat/src/ChatMessages.d.ts +88 -0
- package/es/chat/src/styles/index.cssr.js +1 -3
- package/es/chat/styles/dark.d.ts +8 -0
- package/es/chat/styles/light.d.ts +8 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/es/color-picker/src/ColorPicker.d.ts +72 -0
- package/es/color-picker/styles/light.d.ts +8 -0
- package/es/data-table/src/DataTable.d.ts +56 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +8 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +8 -0
- package/es/data-table/src/TableParts/Body.d.ts +8 -0
- package/es/data-table/src/TableParts/Header.d.ts +8 -0
- package/es/data-table/src/interface.d.ts +24 -0
- package/es/data-table/styles/light.d.ts +8 -0
- package/es/date-picker/src/DatePicker.d.ts +168 -0
- package/es/date-picker/src/panel/date.d.ts +24 -0
- package/es/date-picker/src/panel/daterange.d.ts +24 -0
- package/es/date-picker/src/panel/datetime.d.ts +24 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +24 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +48 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +24 -0
- package/es/date-picker/src/panel/panelYear.d.ts +48 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +24 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +24 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +24 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +24 -0
- package/es/date-picker/styles/light.d.ts +16 -0
- package/es/dialog/src/Dialog.d.ts +56 -0
- package/es/dialog/src/DialogProvider.d.ts +16 -0
- package/es/dialog/styles/light.d.ts +8 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/es/dynamic-input/src/InputPreset.d.ts +8 -0
- package/es/dynamic-input/src/PairPreset.d.ts +8 -0
- package/es/dynamic-input/styles/light.d.ts +8 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/es/dynamic-tags/styles/light.d.ts +8 -0
- package/es/input-number/src/InputNumber.d.ts +80 -0
- package/es/input-number/styles/light.d.ts +8 -0
- package/es/legacy-transfer/src/Transfer.d.ts +80 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +8 -0
- package/es/legacy-transfer/src/TransferList.d.ts +8 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +8 -0
- package/es/legacy-transfer/styles/light.d.ts +8 -0
- package/es/modal/src/BodyWrapper.d.ts +16 -0
- package/es/modal/src/Modal.d.ts +72 -0
- package/es/modal/styles/light.d.ts +8 -0
- package/es/notification/src/Notification.d.ts +5 -0
- package/es/notification/src/Notification.js +16 -6
- package/es/notification/src/NotificationContainer.d.ts +12 -0
- package/es/notification/src/NotificationProvider.d.ts +108 -0
- package/es/notification/src/styles/index.cssr.js +12 -8
- package/es/notification/styles/light.d.ts +24 -0
- package/es/notification/styles/light.js +9 -8
- package/es/popconfirm/src/Popconfirm.d.ts +80 -0
- package/es/popconfirm/styles/light.d.ts +8 -0
- package/es/time-picker/src/Panel.d.ts +8 -0
- package/es/time-picker/src/TimePicker.d.ts +80 -0
- package/es/time-picker/styles/light.d.ts +8 -0
- package/es/transfer/src/Transfer.d.ts +80 -0
- package/es/transfer/src/TransferFilter.d.ts +8 -0
- package/es/transfer/src/TransferList.d.ts +8 -0
- package/es/transfer/src/TransferListItem.d.ts +8 -0
- package/es/transfer/styles/light.d.ts +8 -0
- package/es/upload/src/Upload.d.ts +90 -0
- package/es/upload/src/Upload.js +2 -1
- package/es/upload/src/UploadFile.d.ts +9 -0
- package/es/upload/src/UploadProgress.d.ts +9 -0
- package/es/upload/src/styles/index.cssr.js +1 -0
- package/es/upload/src/useUploadActionsRender.js +5 -1
- package/es/upload/styles/light.d.ts +10 -0
- package/es/upload/styles/light.js +6 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +1 -1
- package/lib/button/src/Button.d.ts +72 -0
- package/lib/button/src/Button.js +13 -7
- package/lib/button/src/styles/index.cssr.js +1 -2
- package/lib/button/styles/light.d.ts +8 -0
- package/lib/button/styles/light.js +7 -7
- package/lib/calendar/src/Calendar.d.ts +80 -0
- package/lib/calendar/styles/light.d.ts +8 -0
- package/lib/chat/src/Chat.d.ts +87 -7
- package/lib/chat/src/Chat.js +11 -12
- package/lib/chat/src/ChatListItems.d.ts +88 -0
- package/lib/chat/src/ChatListItems.js +4 -1
- package/lib/chat/src/ChatMessages.d.ts +88 -0
- package/lib/chat/src/styles/index.cssr.js +1 -3
- package/lib/chat/styles/dark.d.ts +8 -0
- package/lib/chat/styles/light.d.ts +8 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/lib/color-picker/src/ColorPicker.d.ts +72 -0
- package/lib/color-picker/styles/light.d.ts +8 -0
- package/lib/data-table/src/DataTable.d.ts +56 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +8 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +8 -0
- package/lib/data-table/src/TableParts/Body.d.ts +8 -0
- package/lib/data-table/src/TableParts/Header.d.ts +8 -0
- package/lib/data-table/src/interface.d.ts +24 -0
- package/lib/data-table/styles/light.d.ts +8 -0
- package/lib/date-picker/src/DatePicker.d.ts +168 -0
- package/lib/date-picker/src/panel/date.d.ts +24 -0
- package/lib/date-picker/src/panel/daterange.d.ts +24 -0
- package/lib/date-picker/src/panel/datetime.d.ts +24 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +24 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +48 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +24 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +48 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +24 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +24 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +24 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +24 -0
- package/lib/date-picker/styles/light.d.ts +16 -0
- package/lib/dialog/src/Dialog.d.ts +56 -0
- package/lib/dialog/src/DialogProvider.d.ts +16 -0
- package/lib/dialog/styles/light.d.ts +8 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +8 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +8 -0
- package/lib/dynamic-input/styles/light.d.ts +8 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/lib/dynamic-tags/styles/light.d.ts +8 -0
- package/lib/input-number/src/InputNumber.d.ts +80 -0
- package/lib/input-number/styles/light.d.ts +8 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +80 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +8 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +8 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +8 -0
- package/lib/legacy-transfer/styles/light.d.ts +8 -0
- package/lib/modal/src/BodyWrapper.d.ts +16 -0
- package/lib/modal/src/Modal.d.ts +72 -0
- package/lib/modal/styles/light.d.ts +8 -0
- package/lib/notification/src/Notification.d.ts +5 -0
- package/lib/notification/src/Notification.js +14 -4
- package/lib/notification/src/NotificationContainer.d.ts +12 -0
- package/lib/notification/src/NotificationProvider.d.ts +108 -0
- package/lib/notification/src/styles/index.cssr.js +12 -8
- package/lib/notification/styles/light.d.ts +24 -0
- package/lib/notification/styles/light.js +9 -8
- package/lib/popconfirm/src/Popconfirm.d.ts +80 -0
- package/lib/popconfirm/styles/light.d.ts +8 -0
- package/lib/time-picker/src/Panel.d.ts +8 -0
- package/lib/time-picker/src/TimePicker.d.ts +80 -0
- package/lib/time-picker/styles/light.d.ts +8 -0
- package/lib/transfer/src/Transfer.d.ts +80 -0
- package/lib/transfer/src/TransferFilter.d.ts +8 -0
- package/lib/transfer/src/TransferList.d.ts +8 -0
- package/lib/transfer/src/TransferListItem.d.ts +8 -0
- package/lib/transfer/styles/light.d.ts +8 -0
- package/lib/upload/src/Upload.d.ts +90 -0
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.d.ts +9 -0
- package/lib/upload/src/UploadProgress.d.ts +9 -0
- package/lib/upload/src/styles/index.cssr.js +1 -0
- package/lib/upload/src/useUploadActionsRender.js +5 -1
- package/lib/upload/styles/light.d.ts +10 -0
- package/lib/upload/styles/light.js +6 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +4 -4
package/es/upload/src/Upload.js
CHANGED
|
@@ -287,12 +287,13 @@ export default defineComponent({
|
|
|
287
287
|
}
|
|
288
288
|
const cssVarsRef = computed(() => {
|
|
289
289
|
const { value: size } = formItem.mergedSizeRef;
|
|
290
|
-
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard, baseColor, draggerIconBgColor, draggerIconColor, draggerTextColor, draggerTitleColor, labelColor, containerSecondary, brandPrimary300, elementsQuaternary, [createKey('width', size)]: width } } = themeRef.value;
|
|
290
|
+
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, draggerShadowFocus, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard, baseColor, draggerIconBgColor, draggerIconColor, draggerTextColor, draggerTitleColor, labelColor, containerSecondary, brandPrimary300, elementsQuaternary, [createKey('width', size)]: width } } = themeRef.value;
|
|
291
291
|
return {
|
|
292
292
|
'--u-bezier': cubicBezierEaseInOut,
|
|
293
293
|
'--u-border-radius': borderRadius,
|
|
294
294
|
'--u-dragger-border': draggerBorder,
|
|
295
295
|
'--u-dragger-border-hover': draggerBorderHover,
|
|
296
|
+
'--u-dragger-shadow-focus': draggerShadowFocus,
|
|
296
297
|
'--u-dragger-color': draggerColor,
|
|
297
298
|
'--u-font-size': fontSize,
|
|
298
299
|
'--u-item-color-hover': itemColorHover,
|
|
@@ -24,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
draggerColor: string;
|
|
25
25
|
draggerBorder: string;
|
|
26
26
|
draggerBorderHover: string;
|
|
27
|
+
draggerShadowFocus: string;
|
|
27
28
|
itemColorHover: string;
|
|
28
29
|
itemColorHoverError: string;
|
|
29
30
|
itemTextColor: string;
|
|
@@ -67,16 +68,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
68
|
colorSecondary: string;
|
|
68
69
|
colorSecondaryHover: string;
|
|
69
70
|
colorSecondaryPressed: string;
|
|
71
|
+
colorSecondaryFocus: string;
|
|
72
|
+
colorSecondaryDisabled: string;
|
|
73
|
+
textColorSecondaryDisabled: string;
|
|
70
74
|
waveColorSecondary: string;
|
|
71
75
|
colorTertiary: string;
|
|
72
76
|
colorTertiaryHover: string;
|
|
73
77
|
colorTertiaryPressed: string;
|
|
78
|
+
colorTertiaryFocus: string;
|
|
74
79
|
colorTertiaryDisalbed: string;
|
|
75
80
|
waveColorTertiary: string;
|
|
76
81
|
textColorTextTertiary: string;
|
|
82
|
+
rippleColorTertiary: string;
|
|
77
83
|
colorQuaternary: string;
|
|
78
84
|
colorQuaternaryHover: string;
|
|
79
85
|
colorQuaternaryPressed: string;
|
|
86
|
+
colorQuaternaryFocus: string;
|
|
87
|
+
rippleColorQuaternary: string;
|
|
88
|
+
waveColorQuaternary: string;
|
|
80
89
|
color: string;
|
|
81
90
|
colorHover: string;
|
|
82
91
|
colorPressed: string;
|
|
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
draggerColor: string;
|
|
21
21
|
draggerBorder: string;
|
|
22
22
|
draggerBorderHover: string;
|
|
23
|
+
draggerShadowFocus: string;
|
|
23
24
|
itemColorHover: string;
|
|
24
25
|
itemColorHoverError: string;
|
|
25
26
|
itemTextColor: string;
|
|
@@ -63,16 +64,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
64
|
colorSecondary: string;
|
|
64
65
|
colorSecondaryHover: string;
|
|
65
66
|
colorSecondaryPressed: string;
|
|
67
|
+
colorSecondaryFocus: string;
|
|
68
|
+
colorSecondaryDisabled: string;
|
|
69
|
+
textColorSecondaryDisabled: string;
|
|
66
70
|
waveColorSecondary: string;
|
|
67
71
|
colorTertiary: string;
|
|
68
72
|
colorTertiaryHover: string;
|
|
69
73
|
colorTertiaryPressed: string;
|
|
74
|
+
colorTertiaryFocus: string;
|
|
70
75
|
colorTertiaryDisalbed: string;
|
|
71
76
|
waveColorTertiary: string;
|
|
72
77
|
textColorTextTertiary: string;
|
|
78
|
+
rippleColorTertiary: string;
|
|
73
79
|
colorQuaternary: string;
|
|
74
80
|
colorQuaternaryHover: string;
|
|
75
81
|
colorQuaternaryPressed: string;
|
|
82
|
+
colorQuaternaryFocus: string;
|
|
83
|
+
rippleColorQuaternary: string;
|
|
84
|
+
waveColorQuaternary: string;
|
|
76
85
|
color: string;
|
|
77
86
|
colorHover: string;
|
|
78
87
|
colorPressed: string;
|
|
@@ -5,6 +5,7 @@ export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-insi
|
|
|
5
5
|
display: block;
|
|
6
6
|
`)]), cM('drag-over', [cB('upload-dragger', `
|
|
7
7
|
border: var(--u-dragger-border-hover);
|
|
8
|
+
box-shadow: var(--u-dragger-shadow-focus);
|
|
8
9
|
`)]), cE('label', {
|
|
9
10
|
marginBottom: '12px',
|
|
10
11
|
marginTop: 0,
|
|
@@ -4,8 +4,12 @@ import { UBaseIcon, UIconSwitchTransition } from '../../_internal';
|
|
|
4
4
|
import { CancelIcon, EyeIcon, RetryIcon, TrashIcon, DownloadIcon } from '../../_internal/icons';
|
|
5
5
|
export function useUploadActionsRender(opts) {
|
|
6
6
|
const { clsPrefix, listType, file, showPreviewButton, showRemoveButton, showCancelButton, showRetryButton, showDownloadButton, disabled, buttonType, mergedTheme, buttonThemeOverrides, handlePreviewClick, handleRemoveOrCancelClick, handleRetryClick, handleDownloadClick, capitalizeFirstLetter } = opts;
|
|
7
|
+
const getExt = (name) => {
|
|
8
|
+
const i = name.lastIndexOf('.');
|
|
9
|
+
return i === -1 || i === name.length - 1 ? '' : name.slice(i + 1);
|
|
10
|
+
};
|
|
7
11
|
const isImageType = ['image', 'image-card'].includes(listType);
|
|
8
|
-
const fileExt = file.name
|
|
12
|
+
const fileExt = getExt(file.name);
|
|
9
13
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
10
14
|
const icon = h('div', {
|
|
11
15
|
class: [
|
|
@@ -7,6 +7,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
7
7
|
draggerColor: string;
|
|
8
8
|
draggerBorder: string;
|
|
9
9
|
draggerBorderHover: string;
|
|
10
|
+
draggerShadowFocus: string;
|
|
10
11
|
itemColorHover: string;
|
|
11
12
|
itemColorHoverError: string;
|
|
12
13
|
itemTextColor: string;
|
|
@@ -37,6 +38,7 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
37
38
|
draggerColor: string;
|
|
38
39
|
draggerBorder: string;
|
|
39
40
|
draggerBorderHover: string;
|
|
41
|
+
draggerShadowFocus: string;
|
|
40
42
|
itemColorHover: string;
|
|
41
43
|
itemColorHoverError: string;
|
|
42
44
|
itemTextColor: string;
|
|
@@ -79,16 +81,24 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
79
81
|
colorSecondary: string;
|
|
80
82
|
colorSecondaryHover: string;
|
|
81
83
|
colorSecondaryPressed: string;
|
|
84
|
+
colorSecondaryFocus: string;
|
|
85
|
+
colorSecondaryDisabled: string;
|
|
86
|
+
textColorSecondaryDisabled: string;
|
|
82
87
|
waveColorSecondary: string;
|
|
83
88
|
colorTertiary: string;
|
|
84
89
|
colorTertiaryHover: string;
|
|
85
90
|
colorTertiaryPressed: string;
|
|
91
|
+
colorTertiaryFocus: string;
|
|
86
92
|
colorTertiaryDisalbed: string;
|
|
87
93
|
waveColorTertiary: string;
|
|
88
94
|
textColorTextTertiary: string;
|
|
95
|
+
rippleColorTertiary: string;
|
|
89
96
|
colorQuaternary: string;
|
|
90
97
|
colorQuaternaryHover: string;
|
|
91
98
|
colorQuaternaryPressed: string;
|
|
99
|
+
colorQuaternaryFocus: string;
|
|
100
|
+
rippleColorQuaternary: string;
|
|
101
|
+
waveColorQuaternary: string;
|
|
92
102
|
color: string;
|
|
93
103
|
colorHover: string;
|
|
94
104
|
colorPressed: string;
|
|
@@ -4,15 +4,16 @@ import { progressLight } from '../../progress/styles';
|
|
|
4
4
|
import { commonLight } from '../../_styles/common';
|
|
5
5
|
import { createTheme } from '../../_mixins';
|
|
6
6
|
export const self = (vars) => {
|
|
7
|
-
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge,
|
|
7
|
+
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge, containerSecondary, brandPrimary300, brandPrimary500 } = vars;
|
|
8
8
|
return {
|
|
9
9
|
baseColor: containerPrimary,
|
|
10
10
|
fontSize: fontBodyMedium,
|
|
11
11
|
lineHeight: lineHeightBodyMedium,
|
|
12
12
|
borderRadius: borderRadiusLarge,
|
|
13
13
|
draggerColor: elementsTertiary,
|
|
14
|
-
draggerBorder: `
|
|
15
|
-
draggerBorderHover: `
|
|
14
|
+
draggerBorder: `1px dashed ${brandPrimary500}`,
|
|
15
|
+
draggerBorderHover: `1px solid ${brandPrimary500}`,
|
|
16
|
+
draggerShadowFocus: `0 0 0 4px ${brandPrimary500}1a`,
|
|
16
17
|
itemColorHover: elementsTertiary,
|
|
17
18
|
itemColorHoverError: changeColor(staticRed, {
|
|
18
19
|
alpha: 0.05
|
|
@@ -22,8 +23,8 @@ export const self = (vars) => {
|
|
|
22
23
|
itemTextColorSuccess: staticGreen,
|
|
23
24
|
itemIconColor: elementsPrimary,
|
|
24
25
|
itemDisabledOpacity: opacityDisabled,
|
|
25
|
-
itemBorderImageCardError: `
|
|
26
|
-
itemBorderImageCard: `
|
|
26
|
+
itemBorderImageCardError: `1px solid ${staticRed}`,
|
|
27
|
+
itemBorderImageCard: `1px solid ${elementsQuaternary}`,
|
|
27
28
|
draggerIconBgColor: elementsTertiary,
|
|
28
29
|
draggerIconColor: elementsPrimary,
|
|
29
30
|
draggerTitleColor: textPrimary,
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.8.
|
|
1
|
+
declare const _default: "1.8.2";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.8.
|
|
1
|
+
export default '1.8.2';
|
|
@@ -195,7 +195,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
195
195
|
if (!props.scrollable)
|
|
196
196
|
return;
|
|
197
197
|
if (typeof options === 'number') {
|
|
198
|
-
scrollToPosition(y !== null && y !== void 0 ? y : 0,
|
|
198
|
+
scrollToPosition(options, y !== null && y !== void 0 ? y : 0, 0, false, 'auto');
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
const { left, top, index, elSize, position, behavior, el, debounce = true } = options;
|
|
@@ -73,16 +73,24 @@ export declare const buttonProps: {
|
|
|
73
73
|
colorSecondary: string;
|
|
74
74
|
colorSecondaryHover: string;
|
|
75
75
|
colorSecondaryPressed: string;
|
|
76
|
+
colorSecondaryFocus: string;
|
|
77
|
+
colorSecondaryDisabled: string;
|
|
78
|
+
textColorSecondaryDisabled: string;
|
|
76
79
|
waveColorSecondary: string;
|
|
77
80
|
colorTertiary: string;
|
|
78
81
|
colorTertiaryHover: string;
|
|
79
82
|
colorTertiaryPressed: string;
|
|
83
|
+
colorTertiaryFocus: string;
|
|
80
84
|
colorTertiaryDisalbed: string;
|
|
81
85
|
waveColorTertiary: string;
|
|
82
86
|
textColorTextTertiary: string;
|
|
87
|
+
rippleColorTertiary: string;
|
|
83
88
|
colorQuaternary: string;
|
|
84
89
|
colorQuaternaryHover: string;
|
|
85
90
|
colorQuaternaryPressed: string;
|
|
91
|
+
colorQuaternaryFocus: string;
|
|
92
|
+
rippleColorQuaternary: string;
|
|
93
|
+
waveColorQuaternary: string;
|
|
86
94
|
color: string;
|
|
87
95
|
colorHover: string;
|
|
88
96
|
colorPressed: string;
|
|
@@ -284,16 +292,24 @@ export declare const buttonProps: {
|
|
|
284
292
|
colorSecondary: string;
|
|
285
293
|
colorSecondaryHover: string;
|
|
286
294
|
colorSecondaryPressed: string;
|
|
295
|
+
colorSecondaryFocus: string;
|
|
296
|
+
colorSecondaryDisabled: string;
|
|
297
|
+
textColorSecondaryDisabled: string;
|
|
287
298
|
waveColorSecondary: string;
|
|
288
299
|
colorTertiary: string;
|
|
289
300
|
colorTertiaryHover: string;
|
|
290
301
|
colorTertiaryPressed: string;
|
|
302
|
+
colorTertiaryFocus: string;
|
|
291
303
|
colorTertiaryDisalbed: string;
|
|
292
304
|
waveColorTertiary: string;
|
|
293
305
|
textColorTextTertiary: string;
|
|
306
|
+
rippleColorTertiary: string;
|
|
294
307
|
colorQuaternary: string;
|
|
295
308
|
colorQuaternaryHover: string;
|
|
296
309
|
colorQuaternaryPressed: string;
|
|
310
|
+
colorQuaternaryFocus: string;
|
|
311
|
+
rippleColorQuaternary: string;
|
|
312
|
+
waveColorQuaternary: string;
|
|
297
313
|
color: string;
|
|
298
314
|
colorHover: string;
|
|
299
315
|
colorPressed: string;
|
|
@@ -495,16 +511,24 @@ export declare const buttonProps: {
|
|
|
495
511
|
colorSecondary: string;
|
|
496
512
|
colorSecondaryHover: string;
|
|
497
513
|
colorSecondaryPressed: string;
|
|
514
|
+
colorSecondaryFocus: string;
|
|
515
|
+
colorSecondaryDisabled: string;
|
|
516
|
+
textColorSecondaryDisabled: string;
|
|
498
517
|
waveColorSecondary: string;
|
|
499
518
|
colorTertiary: string;
|
|
500
519
|
colorTertiaryHover: string;
|
|
501
520
|
colorTertiaryPressed: string;
|
|
521
|
+
colorTertiaryFocus: string;
|
|
502
522
|
colorTertiaryDisalbed: string;
|
|
503
523
|
waveColorTertiary: string;
|
|
504
524
|
textColorTextTertiary: string;
|
|
525
|
+
rippleColorTertiary: string;
|
|
505
526
|
colorQuaternary: string;
|
|
506
527
|
colorQuaternaryHover: string;
|
|
507
528
|
colorQuaternaryPressed: string;
|
|
529
|
+
colorQuaternaryFocus: string;
|
|
530
|
+
rippleColorQuaternary: string;
|
|
531
|
+
waveColorQuaternary: string;
|
|
508
532
|
color: string;
|
|
509
533
|
colorHover: string;
|
|
510
534
|
colorPressed: string;
|
|
@@ -759,16 +783,24 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
759
783
|
colorSecondary: string;
|
|
760
784
|
colorSecondaryHover: string;
|
|
761
785
|
colorSecondaryPressed: string;
|
|
786
|
+
colorSecondaryFocus: string;
|
|
787
|
+
colorSecondaryDisabled: string;
|
|
788
|
+
textColorSecondaryDisabled: string;
|
|
762
789
|
waveColorSecondary: string;
|
|
763
790
|
colorTertiary: string;
|
|
764
791
|
colorTertiaryHover: string;
|
|
765
792
|
colorTertiaryPressed: string;
|
|
793
|
+
colorTertiaryFocus: string;
|
|
766
794
|
colorTertiaryDisalbed: string;
|
|
767
795
|
waveColorTertiary: string;
|
|
768
796
|
textColorTextTertiary: string;
|
|
797
|
+
rippleColorTertiary: string;
|
|
769
798
|
colorQuaternary: string;
|
|
770
799
|
colorQuaternaryHover: string;
|
|
771
800
|
colorQuaternaryPressed: string;
|
|
801
|
+
colorQuaternaryFocus: string;
|
|
802
|
+
rippleColorQuaternary: string;
|
|
803
|
+
waveColorQuaternary: string;
|
|
772
804
|
color: string;
|
|
773
805
|
colorHover: string;
|
|
774
806
|
colorPressed: string;
|
|
@@ -970,16 +1002,24 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
970
1002
|
colorSecondary: string;
|
|
971
1003
|
colorSecondaryHover: string;
|
|
972
1004
|
colorSecondaryPressed: string;
|
|
1005
|
+
colorSecondaryFocus: string;
|
|
1006
|
+
colorSecondaryDisabled: string;
|
|
1007
|
+
textColorSecondaryDisabled: string;
|
|
973
1008
|
waveColorSecondary: string;
|
|
974
1009
|
colorTertiary: string;
|
|
975
1010
|
colorTertiaryHover: string;
|
|
976
1011
|
colorTertiaryPressed: string;
|
|
1012
|
+
colorTertiaryFocus: string;
|
|
977
1013
|
colorTertiaryDisalbed: string;
|
|
978
1014
|
waveColorTertiary: string;
|
|
979
1015
|
textColorTextTertiary: string;
|
|
1016
|
+
rippleColorTertiary: string;
|
|
980
1017
|
colorQuaternary: string;
|
|
981
1018
|
colorQuaternaryHover: string;
|
|
982
1019
|
colorQuaternaryPressed: string;
|
|
1020
|
+
colorQuaternaryFocus: string;
|
|
1021
|
+
rippleColorQuaternary: string;
|
|
1022
|
+
waveColorQuaternary: string;
|
|
983
1023
|
color: string;
|
|
984
1024
|
colorHover: string;
|
|
985
1025
|
colorPressed: string;
|
|
@@ -1181,16 +1221,24 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1181
1221
|
colorSecondary: string;
|
|
1182
1222
|
colorSecondaryHover: string;
|
|
1183
1223
|
colorSecondaryPressed: string;
|
|
1224
|
+
colorSecondaryFocus: string;
|
|
1225
|
+
colorSecondaryDisabled: string;
|
|
1226
|
+
textColorSecondaryDisabled: string;
|
|
1184
1227
|
waveColorSecondary: string;
|
|
1185
1228
|
colorTertiary: string;
|
|
1186
1229
|
colorTertiaryHover: string;
|
|
1187
1230
|
colorTertiaryPressed: string;
|
|
1231
|
+
colorTertiaryFocus: string;
|
|
1188
1232
|
colorTertiaryDisalbed: string;
|
|
1189
1233
|
waveColorTertiary: string;
|
|
1190
1234
|
textColorTextTertiary: string;
|
|
1235
|
+
rippleColorTertiary: string;
|
|
1191
1236
|
colorQuaternary: string;
|
|
1192
1237
|
colorQuaternaryHover: string;
|
|
1193
1238
|
colorQuaternaryPressed: string;
|
|
1239
|
+
colorQuaternaryFocus: string;
|
|
1240
|
+
rippleColorQuaternary: string;
|
|
1241
|
+
waveColorQuaternary: string;
|
|
1194
1242
|
color: string;
|
|
1195
1243
|
colorHover: string;
|
|
1196
1244
|
colorPressed: string;
|
|
@@ -1503,16 +1551,24 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1503
1551
|
colorSecondary: string;
|
|
1504
1552
|
colorSecondaryHover: string;
|
|
1505
1553
|
colorSecondaryPressed: string;
|
|
1554
|
+
colorSecondaryFocus: string;
|
|
1555
|
+
colorSecondaryDisabled: string;
|
|
1556
|
+
textColorSecondaryDisabled: string;
|
|
1506
1557
|
waveColorSecondary: string;
|
|
1507
1558
|
colorTertiary: string;
|
|
1508
1559
|
colorTertiaryHover: string;
|
|
1509
1560
|
colorTertiaryPressed: string;
|
|
1561
|
+
colorTertiaryFocus: string;
|
|
1510
1562
|
colorTertiaryDisalbed: string;
|
|
1511
1563
|
waveColorTertiary: string;
|
|
1512
1564
|
textColorTextTertiary: string;
|
|
1565
|
+
rippleColorTertiary: string;
|
|
1513
1566
|
colorQuaternary: string;
|
|
1514
1567
|
colorQuaternaryHover: string;
|
|
1515
1568
|
colorQuaternaryPressed: string;
|
|
1569
|
+
colorQuaternaryFocus: string;
|
|
1570
|
+
rippleColorQuaternary: string;
|
|
1571
|
+
waveColorQuaternary: string;
|
|
1516
1572
|
color: string;
|
|
1517
1573
|
colorHover: string;
|
|
1518
1574
|
colorPressed: string;
|
|
@@ -1714,16 +1770,24 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1714
1770
|
colorSecondary: string;
|
|
1715
1771
|
colorSecondaryHover: string;
|
|
1716
1772
|
colorSecondaryPressed: string;
|
|
1773
|
+
colorSecondaryFocus: string;
|
|
1774
|
+
colorSecondaryDisabled: string;
|
|
1775
|
+
textColorSecondaryDisabled: string;
|
|
1717
1776
|
waveColorSecondary: string;
|
|
1718
1777
|
colorTertiary: string;
|
|
1719
1778
|
colorTertiaryHover: string;
|
|
1720
1779
|
colorTertiaryPressed: string;
|
|
1780
|
+
colorTertiaryFocus: string;
|
|
1721
1781
|
colorTertiaryDisalbed: string;
|
|
1722
1782
|
waveColorTertiary: string;
|
|
1723
1783
|
textColorTextTertiary: string;
|
|
1784
|
+
rippleColorTertiary: string;
|
|
1724
1785
|
colorQuaternary: string;
|
|
1725
1786
|
colorQuaternaryHover: string;
|
|
1726
1787
|
colorQuaternaryPressed: string;
|
|
1788
|
+
colorQuaternaryFocus: string;
|
|
1789
|
+
rippleColorQuaternary: string;
|
|
1790
|
+
waveColorQuaternary: string;
|
|
1727
1791
|
color: string;
|
|
1728
1792
|
colorHover: string;
|
|
1729
1793
|
colorPressed: string;
|
|
@@ -1925,16 +1989,24 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1925
1989
|
colorSecondary: string;
|
|
1926
1990
|
colorSecondaryHover: string;
|
|
1927
1991
|
colorSecondaryPressed: string;
|
|
1992
|
+
colorSecondaryFocus: string;
|
|
1993
|
+
colorSecondaryDisabled: string;
|
|
1994
|
+
textColorSecondaryDisabled: string;
|
|
1928
1995
|
waveColorSecondary: string;
|
|
1929
1996
|
colorTertiary: string;
|
|
1930
1997
|
colorTertiaryHover: string;
|
|
1931
1998
|
colorTertiaryPressed: string;
|
|
1999
|
+
colorTertiaryFocus: string;
|
|
1932
2000
|
colorTertiaryDisalbed: string;
|
|
1933
2001
|
waveColorTertiary: string;
|
|
1934
2002
|
textColorTextTertiary: string;
|
|
2003
|
+
rippleColorTertiary: string;
|
|
1935
2004
|
colorQuaternary: string;
|
|
1936
2005
|
colorQuaternaryHover: string;
|
|
1937
2006
|
colorQuaternaryPressed: string;
|
|
2007
|
+
colorQuaternaryFocus: string;
|
|
2008
|
+
rippleColorQuaternary: string;
|
|
2009
|
+
waveColorQuaternary: string;
|
|
1938
2010
|
color: string;
|
|
1939
2011
|
colorHover: string;
|
|
1940
2012
|
colorPressed: string;
|
package/lib/button/src/Button.js
CHANGED
|
@@ -139,6 +139,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
139
139
|
const { inlineThemeDisabled, mergedClsPrefixRef, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
140
140
|
const themeRef = (0, _mixins_1.useTheme)('Button', '-button', index_cssr_1.default, styles_1.buttonLight, props, mergedClsPrefixRef);
|
|
141
141
|
const rtlEnabledRef = (0, use_rtl_1.useRtl)('Button', mergedRtlRef, mergedClsPrefixRef);
|
|
142
|
+
// eslint-disable-next-line complexity
|
|
142
143
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
143
144
|
const theme = themeRef.value;
|
|
144
145
|
const { common: { cubicBezierEaseInOut, cubicBezierEaseOut }, self } = theme;
|
|
@@ -187,7 +188,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
187
188
|
: self[(0, _utils_1.createKey)('textColorTextPressed', mergedType)],
|
|
188
189
|
'--u-text-color-focus': propTextColor
|
|
189
190
|
? (0, index_1.createHoverColor)(propTextColor)
|
|
190
|
-
: self[(0, _utils_1.createKey)('
|
|
191
|
+
: self[(0, _utils_1.createKey)('textColorTextFocus', mergedType)],
|
|
191
192
|
'--u-text-color-disabled': propTextColor ||
|
|
192
193
|
self[(0, _utils_1.createKey)('textColorTextDisabled', mergedType)]
|
|
193
194
|
};
|
|
@@ -211,7 +212,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
211
212
|
: self[(0, _utils_1.createKey)('textColorGhostPressed', mergedType)],
|
|
212
213
|
'--u-text-color-focus': mergedTextColor
|
|
213
214
|
? (0, index_1.createHoverColor)(mergedTextColor)
|
|
214
|
-
: self[(0, _utils_1.createKey)('
|
|
215
|
+
: self[(0, _utils_1.createKey)('textColorGhostFocus', mergedType)],
|
|
215
216
|
'--u-text-color-disabled': mergedTextColor ||
|
|
216
217
|
self[(0, _utils_1.createKey)('textColorGhostDisabled', mergedType)]
|
|
217
218
|
};
|
|
@@ -244,7 +245,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
244
245
|
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
245
246
|
alpha: Number(self.colorOpacitySecondaryHover)
|
|
246
247
|
})
|
|
247
|
-
: self.
|
|
248
|
+
: self.colorSecondaryFocus,
|
|
248
249
|
'--u-color-focus-visible': isColoredType
|
|
249
250
|
? (0, seemly_1.changeColor)(mergedTextColor, {
|
|
250
251
|
alpha: +self.colorOpacitySecondaryFocus
|
|
@@ -256,7 +257,9 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
256
257
|
'--u-text-color-hover': mergedTextColor,
|
|
257
258
|
'--u-text-color-pressed': mergedTextColor,
|
|
258
259
|
'--u-text-color-focus': mergedTextColor,
|
|
259
|
-
'--u-text-color-disabled':
|
|
260
|
+
'--u-text-color-disabled': isColoredType
|
|
261
|
+
? mergedTextColor
|
|
262
|
+
: self.textColorSecondaryDisabled
|
|
260
263
|
};
|
|
261
264
|
}
|
|
262
265
|
else if (tertiary || quaternary) {
|
|
@@ -266,7 +269,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
266
269
|
? self.textColorTertiary
|
|
267
270
|
: self[(0, _utils_1.createKey)('color', mergedType)];
|
|
268
271
|
const mergedColor = color || typeColor;
|
|
269
|
-
colorProps['--u-
|
|
272
|
+
colorProps['--u-text-color'] = mergedColor;
|
|
270
273
|
colorProps['--u-text-color'] = mergedColor;
|
|
271
274
|
colorProps['--u-text-color-hover'] = mergedColor;
|
|
272
275
|
colorProps['--u-text-color-pressed'] = mergedColor;
|
|
@@ -276,7 +279,7 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
276
279
|
colorProps['--u-color'] = self.colorTertiary;
|
|
277
280
|
colorProps['--u-color-hover'] = self.colorTertiaryHover;
|
|
278
281
|
colorProps['--u-color-pressed'] = self.colorTertiaryPressed;
|
|
279
|
-
colorProps['--u-color-focus'] = self.
|
|
282
|
+
colorProps['--u-color-focus'] = self.colorTertiaryFocus;
|
|
280
283
|
colorProps['--u-color-disabled'] = self.colorTertiaryDisalbed;
|
|
281
284
|
colorProps['--u-ripple-color'] = self.colorTertiary;
|
|
282
285
|
colorProps['--u-text-color'] = self.textColorTextTertiary;
|
|
@@ -285,13 +288,16 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
285
288
|
colorProps['--u-text-color-focus'] = self.textColorTextTertiary;
|
|
286
289
|
colorProps['--u-text-color-disabled'] = self.textColorTextTertiary;
|
|
287
290
|
colorProps['--u-color-focus-visible'] = self.waveColorTertiary;
|
|
291
|
+
colorProps['--u-ripple-color'] = self.rippleColorTertiary;
|
|
288
292
|
}
|
|
289
293
|
else {
|
|
290
294
|
colorProps['--u-color'] = self.colorQuaternary;
|
|
291
295
|
colorProps['--u-color-hover'] = self.colorQuaternaryHover;
|
|
292
296
|
colorProps['--u-color-pressed'] = self.colorQuaternaryPressed;
|
|
293
|
-
colorProps['--u-color-focus'] = self.
|
|
297
|
+
colorProps['--u-color-focus'] = self.colorQuaternaryFocus;
|
|
294
298
|
colorProps['--u-color-disabled'] = self.colorQuaternary;
|
|
299
|
+
colorProps['--u-ripple-color'] = self.rippleColorQuaternary;
|
|
300
|
+
colorProps['--u-color-focus-visible'] = self.waveColorQuaternary;
|
|
295
301
|
}
|
|
296
302
|
}
|
|
297
303
|
else {
|
|
@@ -188,8 +188,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('button', `
|
|
|
188
188
|
`), (0, cssr_1.cM)('dashed', [(0, cssr_1.cE)('border, state-border', {
|
|
189
189
|
borderStyle: 'dashed !important'
|
|
190
190
|
})]), (0, cssr_1.cM)('disabled', {
|
|
191
|
-
cursor: 'not-allowed'
|
|
192
|
-
opacity: 'var(--u-opacity-disabled)'
|
|
191
|
+
cursor: 'not-allowed'
|
|
193
192
|
})]), (0, cssr_1.c)('@keyframes button-wave-spread', {
|
|
194
193
|
from: {
|
|
195
194
|
boxShadow: '0 0 0.5px 0 var(--u-ripple-color)'
|
|
@@ -21,16 +21,24 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
21
21
|
colorSecondary: string;
|
|
22
22
|
colorSecondaryHover: string;
|
|
23
23
|
colorSecondaryPressed: string;
|
|
24
|
+
colorSecondaryFocus: string;
|
|
25
|
+
colorSecondaryDisabled: string;
|
|
26
|
+
textColorSecondaryDisabled: string;
|
|
24
27
|
waveColorSecondary: string;
|
|
25
28
|
colorTertiary: string;
|
|
26
29
|
colorTertiaryHover: string;
|
|
27
30
|
colorTertiaryPressed: string;
|
|
31
|
+
colorTertiaryFocus: string;
|
|
28
32
|
colorTertiaryDisalbed: string;
|
|
29
33
|
waveColorTertiary: string;
|
|
30
34
|
textColorTextTertiary: string;
|
|
35
|
+
rippleColorTertiary: string;
|
|
31
36
|
colorQuaternary: string;
|
|
32
37
|
colorQuaternaryHover: string;
|
|
33
38
|
colorQuaternaryPressed: string;
|
|
39
|
+
colorQuaternaryFocus: string;
|
|
40
|
+
rippleColorQuaternary: string;
|
|
41
|
+
waveColorQuaternary: string;
|
|
34
42
|
color: string;
|
|
35
43
|
colorHover: string;
|
|
36
44
|
colorPressed: string;
|
|
@@ -13,19 +13,19 @@ const self = (vars) => {
|
|
|
13
13
|
const successPress = '#0f9b42';
|
|
14
14
|
const warningHover = '#f79942';
|
|
15
15
|
const warningPress = '#df7a1d';
|
|
16
|
-
const errorHover = '#
|
|
17
|
-
const
|
|
16
|
+
const errorHover = '#cb0000';
|
|
17
|
+
const errorDisable = '#f8a39a';
|
|
18
18
|
return Object.assign(Object.assign({}, _common_1.default), { heightTiny: heightMini, heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadiusTiny: borderRadiusMedium, borderRadiusSmall: borderRadiusMedium, borderRadiusMedium: borderRadius, borderRadiusLarge: borderRadius, fontSizeTiny: fontBodyMedium, fontSizeSmall: fontBodyMedium, fontSizeMedium: fontBodyMedium, fontSizeLarge: fontBodyLarge, opacityDisabled,
|
|
19
19
|
// secondary
|
|
20
|
-
colorOpacitySecondary: '0.16', colorOpacitySecondaryHover: '0.22', colorOpacitySecondaryPressed: '0.28', colorOpacitySecondaryFocus: '0.27', colorSecondary: elementsTertiary, colorSecondaryHover:
|
|
20
|
+
colorOpacitySecondary: '0.16', colorOpacitySecondaryHover: '0.22', colorOpacitySecondaryPressed: '0.28', colorOpacitySecondaryFocus: '0.27', colorSecondary: elementsTertiary, colorSecondaryHover: elementsQuaternary, colorSecondaryPressed: elementsTertiary, colorSecondaryFocus: elementsTertiary, colorSecondaryDisabled: elementsTertiary, textColorSecondaryDisabled: elementsQuinary, waveColorSecondary: elementsQuinary,
|
|
21
21
|
// tertiary
|
|
22
|
-
colorTertiary: elementsPrimary, colorTertiaryHover: elementsSenary, colorTertiaryPressed: elementsPrimary, colorTertiaryDisalbed:
|
|
22
|
+
colorTertiary: elementsPrimary, colorTertiaryHover: elementsSenary, colorTertiaryPressed: elementsPrimary, colorTertiaryFocus: elementsPrimary, colorTertiaryDisalbed: elementsQuinary, waveColorTertiary: elementsQuinary, textColorTextTertiary: textQuaternary, rippleColorTertiary: elementsQuinary,
|
|
23
23
|
// quaternary
|
|
24
|
-
colorQuaternary: '#0000', colorQuaternaryHover:
|
|
24
|
+
colorQuaternary: '#0000', colorQuaternaryHover: elementsQuaternary, colorQuaternaryPressed: '#0000', colorQuaternaryFocus: '#0000', rippleColorQuaternary: elementsQuinary, waveColorQuaternary: elementsQuinary,
|
|
25
25
|
// default type
|
|
26
26
|
color: '#0000', colorHover: '#0000', colorPressed: '#0000', colorFocus: '#0000', colorDisabled: '#0000', textColor: textPrimary, textTertiary, textColorTertiary: textTertiary, textColorHover: brandPrimary400, textColorPressed: brandPrimary500, textColorFocus: brandPrimary400, textColorDisabled: textTertiary, textColorText: textPrimary, textColorTextHover: brandPrimary400, textColorTextPressed: brandPrimary500, textColorTextFocus: brandPrimary400, textColorTextDisabled: textTertiary, textColorGhost: textTertiary, textColorGhostHover: brandPrimary400, textColorGhostPressed: brandPrimary500, textColorGhostFocus: brandPrimary400, textColorGhostDisabled: textTertiary, border: `2px solid ${elementsQuaternary}`, borderHover: `2px solid ${brandPrimary400}`, borderPressed: `2px solid ${brandPrimary500}`, borderFocus: `2px solid ${brandPrimary400}`, borderDisabled: `2px solid ${elementsQuaternary}`, rippleColor: brandPrimary500,
|
|
27
27
|
// primary
|
|
28
|
-
colorPrimary: brandPrimary500, colorHoverPrimary:
|
|
28
|
+
colorPrimary: brandPrimary500, colorHoverPrimary: brandPrimary600, colorPressedPrimary: brandPrimary500, colorFocusPrimary: brandPrimary500, colorDisabledPrimary: brandPrimary300, waveColorPrimary: brandPrimary300, textColorPrimary: staticWhite, textColorHoverPrimary: staticWhite, textColorPressedPrimary: staticWhite, textColorFocusPrimary: staticWhite, textColorDisabledPrimary: staticWhite, textColorTextPrimary: brandPrimary500, textColorTextHoverPrimary: brandPrimary600, textColorTextPressedPrimary: brandPrimary300, textColorTextFocusPrimary: brandPrimary300, textColorTextDisabledPrimary: brandPrimary300, textColorGhostPrimary: brandPrimary500, textColorGhostHoverPrimary: brandPrimary600, textColorGhostPressedPrimary: brandPrimary500, textColorGhostFocusPrimary: brandPrimary500, textColorGhostDisabledPrimary: brandPrimary300, borderPrimary: `2px solid ${brandPrimary500}`, borderHoverPrimary: `2px solid ${brandPrimary600}`, borderPressedPrimary: `2px solid ${brandPrimary500}`, borderFocusPrimary: `2px solid ${brandPrimary500}`, borderDisabledPrimary: `2px solid ${brandPrimary300}`, rippleColorPrimary: brandPrimary300,
|
|
29
29
|
// info
|
|
30
30
|
colorInfo: brandQuaternary500, colorHoverInfo: brandQuaternary300, colorPressedInfo: brandQuaternary600, colorFocusInfo: brandQuaternary300, colorDisabledInfo: brandQuaternary500, textColorInfo: staticBlack, textColorHoverInfo: staticBlack, textColorPressedInfo: staticBlack, textColorFocusInfo: staticBlack, textColorDisabledInfo: staticBlack, textColorTextInfo: brandQuaternary500, textColorTextHoverInfo: brandQuaternary300, textColorTextPressedInfo: brandQuaternary600, textColorTextFocusInfo: brandQuaternary300, textColorTextDisabledInfo: textTertiary, textColorGhostInfo: brandQuaternary500, textColorGhostHoverInfo: brandQuaternary300, textColorGhostPressedInfo: brandQuaternary600, textColorGhostFocusInfo: brandQuaternary300, textColorGhostDisabledInfo: brandQuaternary500, borderInfo: `2px solid ${brandQuaternary500}`, borderHoverInfo: `2px solid ${brandQuaternary300}`, borderPressedInfo: `2px solid ${brandQuaternary600}`, borderFocusInfo: `2px solid ${brandQuaternary300}`, borderDisabledInfo: `2px solid ${brandQuaternary500}`, rippleColorInfo: brandQuaternary500,
|
|
31
31
|
// success
|
|
@@ -33,7 +33,7 @@ const self = (vars) => {
|
|
|
33
33
|
// warning
|
|
34
34
|
colorWarning: staticOrange, colorHoverWarning: warningHover, colorPressedWarning: warningPress, colorFocusWarning: warningHover, colorDisabledWarning: staticOrange, textColorWarning: staticWhite, textColorHoverWarning: staticWhite, textColorPressedWarning: staticWhite, textColorFocusWarning: staticWhite, textColorDisabledWarning: staticWhite, textColorTextWarning: staticOrange, textColorTextHoverWarning: warningHover, textColorTextPressedWarning: warningPress, textColorTextFocusWarning: warningHover, textColorTextDisabledWarning: textTertiary, textColorGhostWarning: staticOrange, textColorGhostHoverWarning: warningHover, textColorGhostPressedWarning: warningPress, textColorGhostFocusWarning: warningHover, textColorGhostDisabledWarning: staticOrange, borderWarning: `2px solid ${staticOrange}`, borderHoverWarning: `2px solid ${warningHover}`, borderPressedWarning: `2px solid ${warningPress}`, borderFocusWarning: `2px solid ${warningHover}`, borderDisabledWarning: `2px solid ${staticOrange}`, rippleColorWarning: staticOrange,
|
|
35
35
|
// error
|
|
36
|
-
colorError: staticRed, colorHoverError: errorHover, colorPressedError:
|
|
36
|
+
colorError: staticRed, colorHoverError: errorHover, colorPressedError: staticRed, colorFocusError: staticRed, colorDisabledError: errorDisable, textColorError: staticWhite, textColorHoverError: staticWhite, textColorPressedError: staticWhite, textColorFocusError: staticWhite, textColorDisabledError: staticWhite, textColorTextError: staticRed, textColorTextHoverError: errorHover, textColorTextPressedError: staticRed, textColorTextFocusError: staticRed, textColorTextDisabledError: errorDisable, textColorGhostError: staticRed, textColorGhostHoverError: errorHover, textColorGhostPressedError: staticRed, textColorGhostFocusError: staticRed, textColorGhostDisabledError: errorDisable, borderError: `2px solid ${staticRed}`, borderHoverError: `2px solid ${errorHover}`, borderPressedError: `2px solid ${staticRed}`, borderFocusError: `2px solid ${staticRed}`, borderDisabledError: `2px solid ${errorDisable}`, rippleColorError: errorDisable, waveOpacity: '0.6', fontWeight,
|
|
37
37
|
fontWeightStrong });
|
|
38
38
|
};
|
|
39
39
|
exports.self = self;
|