@alauda/ui 9.1.1-beta.3 → 9.1.1-beta.4
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/accordion/accordion-item/accordion-item.component.d.ts +22 -0
- package/accordion/accordion.component.d.ts +10 -0
- package/accordion/accordion.module.d.ts +15 -0
- package/accordion/index.d.ts +3 -0
- package/anchor/anchor.component.d.ts +37 -0
- package/anchor/anchor.directive.d.ts +57 -0
- package/anchor/anchor.module.d.ts +12 -0
- package/anchor/index.d.ts +5 -0
- package/anchor/types.d.ts +14 -0
- package/anchor/utils.d.ts +2 -0
- package/autocomplete/autocomplete-placeholder.component.d.ts +5 -0
- package/autocomplete/autocomplete.component.d.ts +21 -0
- package/autocomplete/autocomplete.directive.d.ts +54 -0
- package/autocomplete/autocomplete.module.d.ts +22 -0
- package/autocomplete/autocomplete.types.d.ts +4 -0
- package/autocomplete/helper-directives.d.ts +5 -0
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/suggestion/suggestion.component.d.ts +28 -0
- package/autocomplete/suggestion-group/suggestion-group.component.d.ts +11 -0
- package/back-top/back-top.component.d.ts +32 -0
- package/back-top/back-top.module.d.ts +10 -0
- package/back-top/index.d.ts +2 -0
- package/breadcrumb/breadcrumb-item.component.d.ts +14 -0
- package/breadcrumb/breadcrumb.component.d.ts +15 -0
- package/breadcrumb/breadcrumb.module.d.ts +13 -0
- package/breadcrumb/index.d.ts +3 -0
- package/button/button-group/button-group.component.d.ts +5 -0
- package/button/button.component.d.ts +33 -0
- package/button/button.module.d.ts +10 -0
- package/button/button.types.d.ts +15 -0
- package/button/index.d.ts +4 -0
- package/card/card.component.d.ts +6 -0
- package/card/card.module.d.ts +14 -0
- package/card/helper-directives.d.ts +13 -0
- package/card/index.d.ts +4 -0
- package/card/section.component.d.ts +5 -0
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +16 -0
- package/checkbox/checkbox.component.d.ts +28 -0
- package/checkbox/checkbox.module.d.ts +13 -0
- package/checkbox/index.d.ts +3 -0
- package/color-picker/color-picker.component.d.ts +7 -0
- package/color-picker/color-picker.module.d.ts +9 -0
- package/color-picker/index.d.ts +2 -0
- package/core/animation/animation-consts.d.ts +9 -0
- package/date-picker/calendar/constant.d.ts +21 -0
- package/date-picker/calendar/date-picker-panel/component.d.ts +44 -0
- package/date-picker/calendar/footer/component.d.ts +11 -0
- package/date-picker/calendar/header/component.d.ts +40 -0
- package/date-picker/calendar/panel/picker-panel.d.ts +35 -0
- package/date-picker/calendar/range-picker-panel/component.d.ts +51 -0
- package/date-picker/calendar/util.d.ts +34 -0
- package/date-picker/date-picker/date-picker.component.d.ts +32 -0
- package/date-picker/date-picker.module.d.ts +22 -0
- package/date-picker/date-picker.type.d.ts +20 -0
- package/date-picker/index.d.ts +11 -0
- package/date-picker/range-picker/range-picker.component.d.ts +30 -0
- package/date-picker/trigger/trigger.component.d.ts +39 -0
- package/dialog/confirm-dialog/confirm-dialog-config.d.ts +13 -0
- package/dialog/confirm-dialog/confirm-dialog.component.d.ts +24 -0
- package/dialog/dialog-animations.d.ts +31 -0
- package/dialog/dialog-config.d.ts +14 -0
- package/dialog/dialog-container.component.d.ts +7 -0
- package/dialog/dialog-content/dialog-close.directive.d.ts +15 -0
- package/dialog/dialog-content/dialog-content.component.d.ts +11 -0
- package/dialog/dialog-content/dialog-footer.component.d.ts +7 -0
- package/dialog/dialog-content/dialog-header.component.d.ts +18 -0
- package/dialog/dialog-ref.d.ts +18 -0
- package/dialog/dialog.component.d.ts +48 -0
- package/dialog/dialog.module.d.ts +23 -0
- package/dialog/dialog.service.d.ts +28 -0
- package/dialog/dialog.types.d.ts +18 -0
- package/dialog/index.d.ts +11 -0
- package/dialog/utils/errors.d.ts +1 -0
- package/dialog/utils/index.d.ts +4 -0
- package/drawer/component/drawer.component.d.ts +33 -0
- package/drawer/component/internal/internal.component.d.ts +36 -0
- package/drawer/drawer-ref.d.ts +13 -0
- package/drawer/drawer.module.d.ts +15 -0
- package/drawer/drawer.service.d.ts +24 -0
- package/drawer/helper-directives.d.ts +13 -0
- package/drawer/index.d.ts +6 -0
- package/drawer/types.d.ts +26 -0
- package/dropdown/dropdown-active.directive.d.ts +7 -0
- package/dropdown/dropdown-button/dropdown-button.component.d.ts +21 -0
- package/dropdown/dropdown.directive.d.ts +13 -0
- package/dropdown/dropdown.module.d.ts +27 -0
- package/dropdown/dropdown.types.d.ts +9 -0
- package/dropdown/helper-directives.d.ts +5 -0
- package/dropdown/index.d.ts +10 -0
- package/dropdown/menu/menu.component.d.ts +9 -0
- package/dropdown/menu-group/menu-group.component.d.ts +5 -0
- package/dropdown/menu-item/menu-item.component.d.ts +15 -0
- package/dropdown/submenu/submenu.component.d.ts +16 -0
- package/fesm2022/alauda-ui.mjs +765 -824
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +36 -0
- package/form/form-item/form-item.component.d.ts +37 -0
- package/form/form.directive.d.ts +21 -0
- package/form/form.module.d.ts +14 -0
- package/form/form.types.d.ts +16 -0
- package/form/helper-directives.d.ts +23 -0
- package/form/index.d.ts +6 -0
- package/i18n/i18n.module.d.ts +7 -0
- package/i18n/i18n.pipe.d.ts +10 -0
- package/i18n/i18n.service.d.ts +11 -0
- package/i18n/i18n.type.d.ts +6 -0
- package/i18n/index.d.ts +6 -0
- package/i18n/language/en.d.ts +2 -0
- package/i18n/language/zh.d.ts +2 -0
- package/icon/icon-register.service.d.ts +15 -0
- package/icon/icon.component.d.ts +25 -0
- package/icon/icon.module.d.ts +9 -0
- package/icon/icons.d.ts +1 -0
- package/icon/index.d.ts +3 -0
- package/icon/utils.d.ts +2 -0
- package/index.d.ts +38 -3671
- package/inline-alert/helper-directives.d.ts +5 -0
- package/inline-alert/index.d.ts +4 -0
- package/inline-alert/inline-alert.component.d.ts +19 -0
- package/inline-alert/inline-alert.module.d.ts +13 -0
- package/inline-alert/inline-alert.types.d.ts +10 -0
- package/input/autosize.directive.d.ts +24 -0
- package/input/helper-directives.d.ts +17 -0
- package/input/index.d.ts +8 -0
- package/input/input-group/input-group.component.d.ts +22 -0
- package/input/input.component.d.ts +19 -0
- package/input/input.module.d.ts +18 -0
- package/input/number-input/number-input.component.d.ts +39 -0
- package/input/search/search.component.d.ts +28 -0
- package/input/tags-input/tags-input.component.d.ts +56 -0
- package/input/tags-input/with-max-row-count.d.ts +10 -0
- package/input/utils/index.d.ts +5 -0
- package/internal/types/index.d.ts +12 -0
- package/internal/utils/animations.d.ts +2 -0
- package/internal/utils/async.d.ts +1 -0
- package/internal/utils/bem.d.ts +12 -0
- package/internal/utils/coercion.d.ts +4 -0
- package/internal/utils/fn.d.ts +9 -0
- package/internal/utils/index.d.ts +9 -0
- package/internal/utils/observe-dom.d.ts +3 -0
- package/internal/utils/operators.d.ts +7 -0
- package/internal/utils/scroll-into-view.d.ts +1 -0
- package/internal/utils/styles-renderer.d.ts +18 -0
- package/internal/utils/watch-content-exist.d.ts +2 -0
- package/message/base-message.d.ts +33 -0
- package/message/index.d.ts +3 -0
- package/message/message-animations.d.ts +4 -0
- package/message/message-wrapper.component.d.ts +8 -0
- package/message/message.component.d.ts +30 -0
- package/message/message.config.d.ts +44 -0
- package/message/message.module.d.ts +11 -0
- package/message/message.service.d.ts +12 -0
- package/notification/index.d.ts +4 -0
- package/notification/notification-wrapper.component.d.ts +9 -0
- package/notification/notification.component.d.ts +34 -0
- package/notification/notification.config.d.ts +16 -0
- package/notification/notification.module.d.ts +12 -0
- package/notification/notification.service.d.ts +12 -0
- package/package.json +3 -3
- package/paginator/index.d.ts +3 -0
- package/paginator/paginator-intl.d.ts +20 -0
- package/paginator/paginator.component.d.ts +37 -0
- package/paginator/paginator.module.d.ts +12 -0
- package/radio/base-radio.d.ts +28 -0
- package/radio/index.d.ts +5 -0
- package/radio/radio-button/radio-button.component.d.ts +17 -0
- package/radio/radio-group/radio-group.component.d.ts +20 -0
- package/radio/radio.component.d.ts +13 -0
- package/radio/radio.module.d.ts +15 -0
- package/radio/radio.types.d.ts +7 -0
- package/scrolling/fixed-size-table-virtual-scroll-strategy.d.ts +28 -0
- package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +24 -0
- package/scrolling/fixed-size-virtual-scroll.directive.d.ts +6 -0
- package/scrolling/index.d.ts +6 -0
- package/scrolling/scrolling.module.d.ts +10 -0
- package/scrolling/virtual-for-of.directive.d.ts +13 -0
- package/scrolling/virtual-scroll-viewport.component.d.ts +6 -0
- package/select/base-select.d.ts +83 -0
- package/select/helper-directives.d.ts +22 -0
- package/select/index.d.ts +9 -0
- package/select/multi-select/multi-select.component.d.ts +57 -0
- package/select/option/option.component.d.ts +46 -0
- package/select/option-group/option-group.component.d.ts +11 -0
- package/select/option-placeholder.component.d.ts +5 -0
- package/select/select.component.d.ts +23 -0
- package/select/select.module.d.ts +27 -0
- package/select/select.types.d.ts +19 -0
- package/select/validators.d.ts +22 -0
- package/shared/click-outside.directive.d.ts +10 -0
- package/shared/shared.module.d.ts +7 -0
- package/sort/index.d.ts +5 -0
- package/sort/sort-errors.d.ts +8 -0
- package/sort/sort-header.component.d.ts +24 -0
- package/sort/sort.directive.d.ts +21 -0
- package/sort/sort.module.d.ts +12 -0
- package/sort/sort.types.d.ts +10 -0
- package/status-bar/index.d.ts +3 -0
- package/status-bar/status-bar.component.d.ts +13 -0
- package/status-bar/status-bar.module.d.ts +9 -0
- package/status-bar/status-bar.types.d.ts +21 -0
- package/steps/index.d.ts +3 -0
- package/steps/steps.component.d.ts +35 -0
- package/steps/steps.module.d.ts +9 -0
- package/steps/types.d.ts +16 -0
- package/switch/index.d.ts +2 -0
- package/switch/switch.component.d.ts +11 -0
- package/switch/switch.module.d.ts +8 -0
- package/table/index.d.ts +15 -0
- package/table/table-cell-def.directive.d.ts +10 -0
- package/table/table-cell.component.d.ts +18 -0
- package/table/table-cell.directive.d.ts +10 -0
- package/table/table-column-def.directive.d.ts +11 -0
- package/table/table-column-resizable.directive.d.ts +30 -0
- package/table/table-header-cell-def.directive.d.ts +10 -0
- package/table/table-header-cell.directive.d.ts +9 -0
- package/table/table-header-row-def.directive.d.ts +13 -0
- package/table/table-header-row.component.d.ts +7 -0
- package/table/table-placeholder.directive.d.ts +16 -0
- package/table/table-row-def.directive.d.ts +13 -0
- package/table/table-row.component.d.ts +13 -0
- package/table/table-scroll.directive.d.ts +33 -0
- package/table/table.component.d.ts +20 -0
- package/table/table.module.d.ts +35 -0
- package/table-of-contents/index.d.ts +4 -0
- package/table-of-contents/table-of-contents.module.d.ts +14 -0
- package/table-of-contents/toc-container.directive.d.ts +28 -0
- package/table-of-contents/toc-content.directive.d.ts +14 -0
- package/table-of-contents/toc-link.directive.d.ts +16 -0
- package/tabs/index.d.ts +8 -0
- package/tabs/tab-body.component.d.ts +71 -0
- package/tabs/tab-context.service.d.ts +15 -0
- package/tabs/tab-group.component.d.ts +92 -0
- package/tabs/tab-header-active-indicator.component.d.ts +25 -0
- package/tabs/tab-header.component.d.ts +137 -0
- package/tabs/tab.component.d.ts +48 -0
- package/tabs/tabs.module.d.ts +23 -0
- package/tabs/tabs.types.d.ts +15 -0
- package/tag/check-tag/check-tag.component.d.ts +15 -0
- package/tag/index.d.ts +4 -0
- package/tag/tag.component.d.ts +27 -0
- package/tag/tag.module.d.ts +10 -0
- package/tag/tag.types.d.ts +9 -0
- package/theme/_mixin.scss +61 -68
- package/theme/_pattern.scss +22 -20
- package/theme/_theme-preset.scss +1 -2
- package/theme/_var.scss +30 -30
- package/theme/index.d.ts +5 -0
- package/theme/style.css +441 -1
- package/theme/theme.module.d.ts +8 -0
- package/theme/theme.pipe.d.ts +28 -0
- package/theme/theme.service.d.ts +15 -0
- package/theme/theme.types.d.ts +3 -0
- package/theme/utils.d.ts +3 -0
- package/time-picker/component.d.ts +38 -0
- package/time-picker/constant.d.ts +4 -0
- package/time-picker/index.d.ts +5 -0
- package/time-picker/panel/panel.component.d.ts +56 -0
- package/time-picker/time-picker.module.d.ts +20 -0
- package/time-picker/time-picker.type.d.ts +13 -0
- package/tooltip/animations.d.ts +4 -0
- package/tooltip/base-tooltip.d.ts +86 -0
- package/tooltip/index.d.ts +8 -0
- package/tooltip/tooltip-active.directive.d.ts +16 -0
- package/tooltip/tooltip-copy.directive.d.ts +26 -0
- package/tooltip/tooltip-intl.d.ts +11 -0
- package/tooltip/tooltip.component.d.ts +46 -0
- package/tooltip/tooltip.directive.d.ts +10 -0
- package/tooltip/tooltip.module.d.ts +16 -0
- package/tooltip/tooltip.types.d.ts +16 -0
- package/tooltip/utils/index.d.ts +15 -0
- package/tree-select/index.d.ts +4 -0
- package/tree-select/tree-node-placeholder.component.d.ts +5 -0
- package/tree-select/tree-select.component.d.ts +94 -0
- package/tree-select/tree-select.module.d.ts +12 -0
- package/tree-select/tree-select.types.d.ts +11 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/theme/overlay-prebuilt.css +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "../icon/icon.module";
|
|
4
|
+
import * as i3 from "./tag.component";
|
|
5
|
+
import * as i4 from "./check-tag/check-tag.component";
|
|
6
|
+
export declare class TagModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TagModule, never, [typeof i1.CommonModule, typeof i2.IconModule, typeof i3.TagComponent, typeof i4.CheckTagComponent], [typeof i3.TagComponent, typeof i4.CheckTagComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TagModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValueOf } from '../internal/types';
|
|
2
|
+
export declare const TagType: {
|
|
3
|
+
readonly Primary: "primary";
|
|
4
|
+
readonly Success: "success";
|
|
5
|
+
readonly Warning: "warning";
|
|
6
|
+
readonly Error: "error";
|
|
7
|
+
readonly Info: "info";
|
|
8
|
+
};
|
|
9
|
+
export type TagType = ValueOf<typeof TagType>;
|
package/theme/_mixin.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@import 'base-var';
|
|
2
|
+
@import 'var';
|
|
3
3
|
|
|
4
4
|
@function theme-selector($theme, $scope) {
|
|
5
5
|
@if ($scope) {
|
|
6
|
-
@return selector
|
|
6
|
+
@return selector-nest($theme, $scope);
|
|
7
7
|
} @else {
|
|
8
8
|
@return $theme;
|
|
9
9
|
}
|
|
@@ -40,98 +40,96 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin text-set($size: m, $color: none, $weight: normal) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
color: var.use-text-color($color);
|
|
49
|
-
}
|
|
43
|
+
font-size: use-var(font-size-#{$size});
|
|
44
|
+
line-height: use-var(line-height-#{$size});
|
|
45
|
+
font-weight: use-var(font-weight-#{$weight});
|
|
46
|
+
@if $color != none {
|
|
47
|
+
color: use-text-color($color);
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
@mixin icon-set($size: m, $color: none) {
|
|
54
52
|
display: inline-flex;
|
|
55
53
|
align-items: center;
|
|
56
|
-
height:
|
|
57
|
-
font-size:
|
|
54
|
+
height: use-var(line-height-#{$size});
|
|
55
|
+
font-size: use-var(font-size-#{$size});
|
|
58
56
|
@if $color != none {
|
|
59
|
-
color:
|
|
57
|
+
color: use-text-color($color);
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
// 使用 box-shadow 模拟带圆角的 outline
|
|
64
62
|
@mixin outline-shadow($color: primary, $theme: auto) {
|
|
65
63
|
@if ($theme == light) {
|
|
66
|
-
box-shadow: 0 0 0 2px
|
|
64
|
+
box-shadow: 0 0 0 2px use-rgba($color, 0.16);
|
|
67
65
|
} @else if($theme == dark) {
|
|
68
|
-
box-shadow: 0 0 0 2px
|
|
66
|
+
box-shadow: 0 0 0 2px use-rgba($color, 0.3);
|
|
69
67
|
} @else {
|
|
70
68
|
@include theme-light {
|
|
71
|
-
box-shadow: 0 0 0 2px
|
|
69
|
+
box-shadow: 0 0 0 2px use-rgba($color, 0.16);
|
|
72
70
|
}
|
|
73
71
|
@include theme-dark {
|
|
74
|
-
box-shadow: 0 0 0 2px
|
|
72
|
+
box-shadow: 0 0 0 2px use-rgba($color, 0.3);
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
@mixin card-shadow($theme: auto) {
|
|
80
78
|
@if ($theme == light) {
|
|
81
|
-
box-shadow: 0 0 4px 0
|
|
79
|
+
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.1);
|
|
82
80
|
} @else if($theme == dark) {
|
|
83
|
-
box-shadow: 0 0 4px 0
|
|
81
|
+
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.75);
|
|
84
82
|
} @else {
|
|
85
83
|
@include theme-light {
|
|
86
|
-
box-shadow: 0 0 4px 0
|
|
84
|
+
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.1);
|
|
87
85
|
}
|
|
88
86
|
@include theme-dark {
|
|
89
|
-
box-shadow: 0 0 4px 0
|
|
87
|
+
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.75);
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
@mixin popper-shadow($theme: auto) {
|
|
95
93
|
@if ($theme == light) {
|
|
96
|
-
box-shadow: 0 2px 8px 0
|
|
94
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
97
95
|
} @else if($theme == dark) {
|
|
98
|
-
box-shadow: 0 2px 8px 0
|
|
96
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.75);
|
|
99
97
|
} @else {
|
|
100
98
|
@include theme-light {
|
|
101
|
-
box-shadow: 0 2px 8px 0
|
|
99
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
102
100
|
}
|
|
103
101
|
@include theme-dark {
|
|
104
|
-
box-shadow: 0 2px 8px 0
|
|
102
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.75);
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
@mixin modal-shadow($theme: auto) {
|
|
110
108
|
@if ($theme == light) {
|
|
111
|
-
box-shadow: 0 2px 8px 0
|
|
109
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
112
110
|
} @else if($theme == dark) {
|
|
113
|
-
box-shadow: 0 4px 16px 0
|
|
111
|
+
box-shadow: 0 4px 16px 0 use-rgba(origin-shadow, 0.75);
|
|
114
112
|
} @else {
|
|
115
113
|
@include theme-light {
|
|
116
|
-
box-shadow: 0 2px 8px 0
|
|
114
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
117
115
|
}
|
|
118
116
|
@include theme-dark {
|
|
119
|
-
box-shadow: 0 4px 16px 0
|
|
117
|
+
box-shadow: 0 4px 16px 0 use-rgba(origin-shadow, 0.75);
|
|
120
118
|
}
|
|
121
119
|
}
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
@mixin modal-backdrop($theme: auto) {
|
|
125
123
|
@if ($theme == light) {
|
|
126
|
-
background-color:
|
|
124
|
+
background-color: use-rgba(origin-shadow, 0.4);
|
|
127
125
|
} @else if($theme == dark) {
|
|
128
|
-
background-color:
|
|
126
|
+
background-color: use-rgba(origin-shadow, 0.75);
|
|
129
127
|
} @else {
|
|
130
128
|
@include theme-light {
|
|
131
|
-
background-color:
|
|
129
|
+
background-color: use-rgba(origin-shadow, 0.4);
|
|
132
130
|
}
|
|
133
131
|
@include theme-dark {
|
|
134
|
-
background-color:
|
|
132
|
+
background-color: use-rgba(origin-shadow, 0.75);
|
|
135
133
|
}
|
|
136
134
|
}
|
|
137
135
|
}
|
|
@@ -143,7 +141,7 @@
|
|
|
143
141
|
}
|
|
144
142
|
|
|
145
143
|
@mixin transition($target: all) {
|
|
146
|
-
transition: $target
|
|
144
|
+
transition: $target $animation-duration-slow $animation-interpolation;
|
|
147
145
|
}
|
|
148
146
|
|
|
149
147
|
@mixin absolute-center() {
|
|
@@ -154,10 +152,7 @@
|
|
|
154
152
|
transform: translate(-50%, -50%);
|
|
155
153
|
}
|
|
156
154
|
|
|
157
|
-
@mixin scroll-bar(
|
|
158
|
-
$color: #{var.use-rgb(n-7)},
|
|
159
|
-
$hover-color: #{var.use-rgb(n-5)}
|
|
160
|
-
) {
|
|
155
|
+
@mixin scroll-bar($color: #{use-rgb(n-7)}, $hover-color: #{use-rgb(n-5)}) {
|
|
161
156
|
&::-webkit-scrollbar {
|
|
162
157
|
width: 8px;
|
|
163
158
|
height: 4px;
|
|
@@ -179,13 +174,13 @@
|
|
|
179
174
|
|
|
180
175
|
@mixin clear-button() {
|
|
181
176
|
border-radius: 50%;
|
|
182
|
-
color:
|
|
177
|
+
color: use-text-color(help);
|
|
183
178
|
cursor: pointer;
|
|
184
179
|
@include transition;
|
|
185
180
|
|
|
186
181
|
&:hover {
|
|
187
|
-
color:
|
|
188
|
-
background-color:
|
|
182
|
+
color: use-rgb(main-bg);
|
|
183
|
+
background-color: use-text-color(help);
|
|
189
184
|
}
|
|
190
185
|
}
|
|
191
186
|
|
|
@@ -201,7 +196,7 @@
|
|
|
201
196
|
}
|
|
202
197
|
|
|
203
198
|
&.isDisabled &__icon-container {
|
|
204
|
-
color:
|
|
199
|
+
color: use-rgb(n-4);
|
|
205
200
|
}
|
|
206
201
|
|
|
207
202
|
&__indicator {
|
|
@@ -229,7 +224,7 @@
|
|
|
229
224
|
}
|
|
230
225
|
|
|
231
226
|
@mixin input-error() {
|
|
232
|
-
border-color:
|
|
227
|
+
border-color: use-rgb(red) !important;
|
|
233
228
|
|
|
234
229
|
&:focus,
|
|
235
230
|
&.isFocused {
|
|
@@ -241,10 +236,10 @@
|
|
|
241
236
|
display: inline-flex;
|
|
242
237
|
justify-content: center;
|
|
243
238
|
align-items: center;
|
|
244
|
-
width:
|
|
245
|
-
height:
|
|
246
|
-
color:
|
|
247
|
-
background-color:
|
|
239
|
+
width: use-var(icon-size-m);
|
|
240
|
+
height: use-var(icon-size-m);
|
|
241
|
+
color: use-rgb(primary);
|
|
242
|
+
background-color: use-rgb(p-6);
|
|
248
243
|
border-radius: 50%;
|
|
249
244
|
border: none;
|
|
250
245
|
cursor: pointer;
|
|
@@ -254,47 +249,45 @@
|
|
|
254
249
|
display: flex;
|
|
255
250
|
justify-content: center;
|
|
256
251
|
align-items: center;
|
|
257
|
-
width:
|
|
258
|
-
height:
|
|
259
|
-
font-size:
|
|
252
|
+
width: use-var(icon-size-s);
|
|
253
|
+
height: use-var(icon-size-s);
|
|
254
|
+
font-size: use-var(icon-size-s);
|
|
260
255
|
}
|
|
261
256
|
|
|
262
257
|
&:hover {
|
|
263
|
-
background-color:
|
|
258
|
+
background-color: use-rgb(p-7);
|
|
264
259
|
}
|
|
265
260
|
|
|
266
261
|
&:active {
|
|
267
|
-
background-color:
|
|
262
|
+
background-color: use-rgb(p-5);
|
|
268
263
|
}
|
|
269
264
|
|
|
270
265
|
&.isExpanded {
|
|
271
266
|
transform: rotate(90deg);
|
|
272
267
|
color: white;
|
|
273
|
-
background-color:
|
|
268
|
+
background-color: use-rgb(primary);
|
|
274
269
|
|
|
275
270
|
&:hover {
|
|
276
|
-
background-color:
|
|
271
|
+
background-color: use-rgb(p-1);
|
|
277
272
|
}
|
|
278
273
|
|
|
279
274
|
&:active {
|
|
280
|
-
background-color:
|
|
275
|
+
background-color: use-rgb(p-0);
|
|
281
276
|
}
|
|
282
277
|
}
|
|
283
278
|
|
|
284
279
|
&[disabled],
|
|
285
280
|
&.isExpanded[disabled] {
|
|
286
|
-
background-color:
|
|
287
|
-
color:
|
|
281
|
+
background-color: use-rgb(n-8);
|
|
282
|
+
color: use-rgb(n-6);
|
|
288
283
|
cursor: not-allowed;
|
|
289
284
|
}
|
|
290
285
|
}
|
|
291
286
|
|
|
292
287
|
@mixin text-overflow {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
text-overflow: ellipsis;
|
|
297
|
-
}
|
|
288
|
+
white-space: nowrap;
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
text-overflow: ellipsis;
|
|
298
291
|
}
|
|
299
292
|
|
|
300
293
|
@mixin flex-center($alignItems: center) {
|
|
@@ -311,15 +304,15 @@
|
|
|
311
304
|
}
|
|
312
305
|
|
|
313
306
|
@mixin view-readonly {
|
|
314
|
-
background-color:
|
|
315
|
-
border-color:
|
|
307
|
+
background-color: use-rgb(main-bg);
|
|
308
|
+
border-color: use-rgb(border);
|
|
316
309
|
}
|
|
317
310
|
|
|
318
311
|
@mixin vertical-dashed-line($width: 1px, $color: 'n-7') {
|
|
319
312
|
background: linear-gradient(
|
|
320
313
|
to bottom,
|
|
321
|
-
|
|
322
|
-
|
|
314
|
+
use-rgb($color),
|
|
315
|
+
use-rgb($color) 8px,
|
|
323
316
|
transparent 6px,
|
|
324
317
|
transparent
|
|
325
318
|
);
|
|
@@ -329,7 +322,7 @@
|
|
|
329
322
|
}
|
|
330
323
|
|
|
331
324
|
// Motion
|
|
332
|
-
@mixin motion-common($duration:
|
|
325
|
+
@mixin motion-common($duration: $animation-duration-base) {
|
|
333
326
|
animation-duration: $duration;
|
|
334
327
|
animation-fill-mode: both;
|
|
335
328
|
animation-play-state: paused;
|
|
@@ -338,7 +331,7 @@
|
|
|
338
331
|
@mixin make-motion(
|
|
339
332
|
$className,
|
|
340
333
|
$keyframeName,
|
|
341
|
-
$duration:
|
|
334
|
+
$duration: $animation-duration-base
|
|
342
335
|
) {
|
|
343
336
|
.#{$className}-enter,
|
|
344
337
|
.#{$className}-leave {
|
package/theme/_pattern.scss
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@import 'var';
|
|
2
|
+
@import 'mixin';
|
|
3
3
|
|
|
4
4
|
@mixin shadow-0 {
|
|
5
|
-
border-radius:
|
|
6
|
-
background-color:
|
|
5
|
+
border-radius: use-var(border-radius-m);
|
|
6
|
+
background-color: use-rgb(n-10);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
@mixin shadow-2 {
|
|
10
|
-
border-radius:
|
|
11
|
-
background-color:
|
|
12
|
-
box-shadow: 0 0 2px 0
|
|
10
|
+
border-radius: use-var(border-radius-m);
|
|
11
|
+
background-color: use-rgb(n-10);
|
|
12
|
+
box-shadow: 0 0 2px 0 use-rgba(origin-shadow, 0.24);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@mixin shadow-8 {
|
|
16
|
-
border-radius:
|
|
17
|
-
background-color:
|
|
18
|
-
box-shadow: 0 2px 8px 0
|
|
16
|
+
border-radius: use-var(border-radius-m);
|
|
17
|
+
background-color: use-rgb(n-10);
|
|
18
|
+
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.16);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@mixin shadow-16 {
|
|
22
|
-
border-radius:
|
|
23
|
-
background-color:
|
|
24
|
-
box-shadow: 0 4px 16px 0
|
|
22
|
+
border-radius: use-var(border-radius-m);
|
|
23
|
+
background-color: use-rgb(n-10);
|
|
24
|
+
box-shadow: 0 4px 16px 0 use-rgba(origin-shadow, 0.16);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@mixin zh-form-label-width($parent) {
|
|
@@ -42,18 +42,20 @@
|
|
|
42
42
|
display: flex;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
align-items: center;
|
|
45
|
-
padding:
|
|
46
|
-
min-height:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
padding: $table-cell-padding-v $table-cell-padding-h;
|
|
46
|
+
min-height: $table-row-min-height + 2px;
|
|
47
|
+
@include text-set(m, placeholder);
|
|
48
|
+
|
|
49
|
+
background-color: use-rgb(n-10);
|
|
50
|
+
border: solid 1px use-rgb(n-8);
|
|
51
|
+
border-radius: use-var(border-radius-l);
|
|
52
|
+
|
|
50
53
|
// fixed placeholder to avoid horizontal scrolling
|
|
51
54
|
position: sticky;
|
|
52
55
|
left: 0;
|
|
53
|
-
@include mixin.text-set(m, placeholder);
|
|
54
56
|
|
|
55
57
|
> aui-icon:first-child {
|
|
56
|
-
margin-right:
|
|
58
|
+
margin-right: use-var(spacing-m);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
|
package/theme/_theme-preset.scss
CHANGED
package/theme/_var.scss
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
@
|
|
2
|
+
|
|
3
|
+
@import 'base-var';
|
|
4
4
|
|
|
5
5
|
$status-color-map: (
|
|
6
|
-
success:
|
|
7
|
-
warning:
|
|
8
|
-
error:
|
|
9
|
-
info:
|
|
6
|
+
success: use-rgb(green),
|
|
7
|
+
warning: use-rgb(yellow),
|
|
8
|
+
error: use-rgb(red),
|
|
9
|
+
info: use-rgb(primary),
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
// input
|
|
13
13
|
$input-size: (
|
|
14
14
|
large: (
|
|
15
|
-
height:
|
|
16
|
-
font-size:
|
|
17
|
-
line-height:
|
|
18
|
-
icon-size:
|
|
15
|
+
height: use-var(inline-height-l),
|
|
16
|
+
font-size: use-var(font-size-l),
|
|
17
|
+
line-height: use-var(line-height-l),
|
|
18
|
+
icon-size: use-var(icon-size-l),
|
|
19
19
|
),
|
|
20
20
|
medium: (
|
|
21
|
-
height:
|
|
22
|
-
font-size:
|
|
23
|
-
line-height:
|
|
24
|
-
icon-size:
|
|
21
|
+
height: use-var(inline-height-m),
|
|
22
|
+
font-size: use-var(font-size-m),
|
|
23
|
+
line-height: use-var(line-height-m),
|
|
24
|
+
icon-size: use-var(icon-size-m),
|
|
25
25
|
),
|
|
26
26
|
small: (
|
|
27
|
-
height:
|
|
28
|
-
font-size:
|
|
29
|
-
line-height:
|
|
30
|
-
icon-size:
|
|
27
|
+
height: use-var(inline-height-s),
|
|
28
|
+
font-size: use-var(font-size-m),
|
|
29
|
+
line-height: use-var(line-height-m),
|
|
30
|
+
icon-size: use-var(icon-size-m),
|
|
31
31
|
),
|
|
32
32
|
mini: (
|
|
33
|
-
height:
|
|
34
|
-
font-size:
|
|
35
|
-
line-height:
|
|
36
|
-
icon-size:
|
|
33
|
+
height: use-var(inline-height-xs),
|
|
34
|
+
font-size: use-var(font-size-s),
|
|
35
|
+
line-height: use-var(line-height-s),
|
|
36
|
+
icon-size: use-var(icon-size-s),
|
|
37
37
|
),
|
|
38
38
|
);
|
|
39
39
|
|
|
@@ -44,8 +44,8 @@ $table-cell-padding-v: 15px;
|
|
|
44
44
|
$table-cell-padding-h: 10px;
|
|
45
45
|
|
|
46
46
|
// Sort
|
|
47
|
-
$sort-indicator-color:
|
|
48
|
-
$sort-indicator-color-active:
|
|
47
|
+
$sort-indicator-color: use-text-color(placeholder);
|
|
48
|
+
$sort-indicator-color-active: use-text-color(secondary);
|
|
49
49
|
$sort-indicator-size: 4px;
|
|
50
50
|
$sort-indicator-margin: 4px;
|
|
51
51
|
|
|
@@ -53,17 +53,17 @@ $sort-indicator-margin: 4px;
|
|
|
53
53
|
$tab-label-padding-large: 16px 20px;
|
|
54
54
|
$tab-label-padding-medium: 12px 20px;
|
|
55
55
|
$tab-label-padding-small: 8px 16px;
|
|
56
|
-
$tab-label-font-size-large:
|
|
57
|
-
$tab-label-font-size-medium:
|
|
58
|
-
$tab-label-font-size-small:
|
|
59
|
-
$tab-header-type-card-bg-color:
|
|
56
|
+
$tab-label-font-size-large: use-var(font-size-xl);
|
|
57
|
+
$tab-label-font-size-medium: use-var(font-size-l);
|
|
58
|
+
$tab-label-font-size-small: use-var(font-size-m);
|
|
59
|
+
$tab-header-type-card-bg-color: use-rgb(n-9);
|
|
60
60
|
$tab-scroll-transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
61
61
|
$tab-pagination-button-z-index: 3;
|
|
62
62
|
$tab-label-z-index: 2;
|
|
63
63
|
$tab-active-indicator-z-index: 1;
|
|
64
|
-
$tab-label-focus-box-shadow: inset 0 0 0 3px
|
|
64
|
+
$tab-label-focus-box-shadow: inset 0 0 0 3px use-rgba(primary, 0.3);
|
|
65
65
|
$tab-header-close-icon-size: 16px;
|
|
66
|
-
$tab-header-title-font-size:
|
|
66
|
+
$tab-header-title-font-size: use-var(font-size-xxl);
|
|
67
67
|
$tab-header-title-spacing: 20px;
|
|
68
68
|
$tab-header-title-padding: 20px 0 12px;
|
|
69
69
|
|