@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.
Files changed (277) hide show
  1. package/accordion/accordion-item/accordion-item.component.d.ts +22 -0
  2. package/accordion/accordion.component.d.ts +10 -0
  3. package/accordion/accordion.module.d.ts +15 -0
  4. package/accordion/index.d.ts +3 -0
  5. package/anchor/anchor.component.d.ts +37 -0
  6. package/anchor/anchor.directive.d.ts +57 -0
  7. package/anchor/anchor.module.d.ts +12 -0
  8. package/anchor/index.d.ts +5 -0
  9. package/anchor/types.d.ts +14 -0
  10. package/anchor/utils.d.ts +2 -0
  11. package/autocomplete/autocomplete-placeholder.component.d.ts +5 -0
  12. package/autocomplete/autocomplete.component.d.ts +21 -0
  13. package/autocomplete/autocomplete.directive.d.ts +54 -0
  14. package/autocomplete/autocomplete.module.d.ts +22 -0
  15. package/autocomplete/autocomplete.types.d.ts +4 -0
  16. package/autocomplete/helper-directives.d.ts +5 -0
  17. package/autocomplete/index.d.ts +8 -0
  18. package/autocomplete/suggestion/suggestion.component.d.ts +28 -0
  19. package/autocomplete/suggestion-group/suggestion-group.component.d.ts +11 -0
  20. package/back-top/back-top.component.d.ts +32 -0
  21. package/back-top/back-top.module.d.ts +10 -0
  22. package/back-top/index.d.ts +2 -0
  23. package/breadcrumb/breadcrumb-item.component.d.ts +14 -0
  24. package/breadcrumb/breadcrumb.component.d.ts +15 -0
  25. package/breadcrumb/breadcrumb.module.d.ts +13 -0
  26. package/breadcrumb/index.d.ts +3 -0
  27. package/button/button-group/button-group.component.d.ts +5 -0
  28. package/button/button.component.d.ts +33 -0
  29. package/button/button.module.d.ts +10 -0
  30. package/button/button.types.d.ts +15 -0
  31. package/button/index.d.ts +4 -0
  32. package/card/card.component.d.ts +6 -0
  33. package/card/card.module.d.ts +14 -0
  34. package/card/helper-directives.d.ts +13 -0
  35. package/card/index.d.ts +4 -0
  36. package/card/section.component.d.ts +5 -0
  37. package/checkbox/checkbox-group/checkbox-group.component.d.ts +16 -0
  38. package/checkbox/checkbox.component.d.ts +28 -0
  39. package/checkbox/checkbox.module.d.ts +13 -0
  40. package/checkbox/index.d.ts +3 -0
  41. package/color-picker/color-picker.component.d.ts +7 -0
  42. package/color-picker/color-picker.module.d.ts +9 -0
  43. package/color-picker/index.d.ts +2 -0
  44. package/core/animation/animation-consts.d.ts +9 -0
  45. package/date-picker/calendar/constant.d.ts +21 -0
  46. package/date-picker/calendar/date-picker-panel/component.d.ts +44 -0
  47. package/date-picker/calendar/footer/component.d.ts +11 -0
  48. package/date-picker/calendar/header/component.d.ts +40 -0
  49. package/date-picker/calendar/panel/picker-panel.d.ts +35 -0
  50. package/date-picker/calendar/range-picker-panel/component.d.ts +51 -0
  51. package/date-picker/calendar/util.d.ts +34 -0
  52. package/date-picker/date-picker/date-picker.component.d.ts +32 -0
  53. package/date-picker/date-picker.module.d.ts +22 -0
  54. package/date-picker/date-picker.type.d.ts +20 -0
  55. package/date-picker/index.d.ts +11 -0
  56. package/date-picker/range-picker/range-picker.component.d.ts +30 -0
  57. package/date-picker/trigger/trigger.component.d.ts +39 -0
  58. package/dialog/confirm-dialog/confirm-dialog-config.d.ts +13 -0
  59. package/dialog/confirm-dialog/confirm-dialog.component.d.ts +24 -0
  60. package/dialog/dialog-animations.d.ts +31 -0
  61. package/dialog/dialog-config.d.ts +14 -0
  62. package/dialog/dialog-container.component.d.ts +7 -0
  63. package/dialog/dialog-content/dialog-close.directive.d.ts +15 -0
  64. package/dialog/dialog-content/dialog-content.component.d.ts +11 -0
  65. package/dialog/dialog-content/dialog-footer.component.d.ts +7 -0
  66. package/dialog/dialog-content/dialog-header.component.d.ts +18 -0
  67. package/dialog/dialog-ref.d.ts +18 -0
  68. package/dialog/dialog.component.d.ts +48 -0
  69. package/dialog/dialog.module.d.ts +23 -0
  70. package/dialog/dialog.service.d.ts +28 -0
  71. package/dialog/dialog.types.d.ts +18 -0
  72. package/dialog/index.d.ts +11 -0
  73. package/dialog/utils/errors.d.ts +1 -0
  74. package/dialog/utils/index.d.ts +4 -0
  75. package/drawer/component/drawer.component.d.ts +33 -0
  76. package/drawer/component/internal/internal.component.d.ts +36 -0
  77. package/drawer/drawer-ref.d.ts +13 -0
  78. package/drawer/drawer.module.d.ts +15 -0
  79. package/drawer/drawer.service.d.ts +24 -0
  80. package/drawer/helper-directives.d.ts +13 -0
  81. package/drawer/index.d.ts +6 -0
  82. package/drawer/types.d.ts +26 -0
  83. package/dropdown/dropdown-active.directive.d.ts +7 -0
  84. package/dropdown/dropdown-button/dropdown-button.component.d.ts +21 -0
  85. package/dropdown/dropdown.directive.d.ts +13 -0
  86. package/dropdown/dropdown.module.d.ts +27 -0
  87. package/dropdown/dropdown.types.d.ts +9 -0
  88. package/dropdown/helper-directives.d.ts +5 -0
  89. package/dropdown/index.d.ts +10 -0
  90. package/dropdown/menu/menu.component.d.ts +9 -0
  91. package/dropdown/menu-group/menu-group.component.d.ts +5 -0
  92. package/dropdown/menu-item/menu-item.component.d.ts +15 -0
  93. package/dropdown/submenu/submenu.component.d.ts +16 -0
  94. package/fesm2022/alauda-ui.mjs +765 -824
  95. package/fesm2022/alauda-ui.mjs.map +1 -1
  96. package/form/common-form.d.ts +36 -0
  97. package/form/form-item/form-item.component.d.ts +37 -0
  98. package/form/form.directive.d.ts +21 -0
  99. package/form/form.module.d.ts +14 -0
  100. package/form/form.types.d.ts +16 -0
  101. package/form/helper-directives.d.ts +23 -0
  102. package/form/index.d.ts +6 -0
  103. package/i18n/i18n.module.d.ts +7 -0
  104. package/i18n/i18n.pipe.d.ts +10 -0
  105. package/i18n/i18n.service.d.ts +11 -0
  106. package/i18n/i18n.type.d.ts +6 -0
  107. package/i18n/index.d.ts +6 -0
  108. package/i18n/language/en.d.ts +2 -0
  109. package/i18n/language/zh.d.ts +2 -0
  110. package/icon/icon-register.service.d.ts +15 -0
  111. package/icon/icon.component.d.ts +25 -0
  112. package/icon/icon.module.d.ts +9 -0
  113. package/icon/icons.d.ts +1 -0
  114. package/icon/index.d.ts +3 -0
  115. package/icon/utils.d.ts +2 -0
  116. package/index.d.ts +38 -3671
  117. package/inline-alert/helper-directives.d.ts +5 -0
  118. package/inline-alert/index.d.ts +4 -0
  119. package/inline-alert/inline-alert.component.d.ts +19 -0
  120. package/inline-alert/inline-alert.module.d.ts +13 -0
  121. package/inline-alert/inline-alert.types.d.ts +10 -0
  122. package/input/autosize.directive.d.ts +24 -0
  123. package/input/helper-directives.d.ts +17 -0
  124. package/input/index.d.ts +8 -0
  125. package/input/input-group/input-group.component.d.ts +22 -0
  126. package/input/input.component.d.ts +19 -0
  127. package/input/input.module.d.ts +18 -0
  128. package/input/number-input/number-input.component.d.ts +39 -0
  129. package/input/search/search.component.d.ts +28 -0
  130. package/input/tags-input/tags-input.component.d.ts +56 -0
  131. package/input/tags-input/with-max-row-count.d.ts +10 -0
  132. package/input/utils/index.d.ts +5 -0
  133. package/internal/types/index.d.ts +12 -0
  134. package/internal/utils/animations.d.ts +2 -0
  135. package/internal/utils/async.d.ts +1 -0
  136. package/internal/utils/bem.d.ts +12 -0
  137. package/internal/utils/coercion.d.ts +4 -0
  138. package/internal/utils/fn.d.ts +9 -0
  139. package/internal/utils/index.d.ts +9 -0
  140. package/internal/utils/observe-dom.d.ts +3 -0
  141. package/internal/utils/operators.d.ts +7 -0
  142. package/internal/utils/scroll-into-view.d.ts +1 -0
  143. package/internal/utils/styles-renderer.d.ts +18 -0
  144. package/internal/utils/watch-content-exist.d.ts +2 -0
  145. package/message/base-message.d.ts +33 -0
  146. package/message/index.d.ts +3 -0
  147. package/message/message-animations.d.ts +4 -0
  148. package/message/message-wrapper.component.d.ts +8 -0
  149. package/message/message.component.d.ts +30 -0
  150. package/message/message.config.d.ts +44 -0
  151. package/message/message.module.d.ts +11 -0
  152. package/message/message.service.d.ts +12 -0
  153. package/notification/index.d.ts +4 -0
  154. package/notification/notification-wrapper.component.d.ts +9 -0
  155. package/notification/notification.component.d.ts +34 -0
  156. package/notification/notification.config.d.ts +16 -0
  157. package/notification/notification.module.d.ts +12 -0
  158. package/notification/notification.service.d.ts +12 -0
  159. package/package.json +3 -3
  160. package/paginator/index.d.ts +3 -0
  161. package/paginator/paginator-intl.d.ts +20 -0
  162. package/paginator/paginator.component.d.ts +37 -0
  163. package/paginator/paginator.module.d.ts +12 -0
  164. package/radio/base-radio.d.ts +28 -0
  165. package/radio/index.d.ts +5 -0
  166. package/radio/radio-button/radio-button.component.d.ts +17 -0
  167. package/radio/radio-group/radio-group.component.d.ts +20 -0
  168. package/radio/radio.component.d.ts +13 -0
  169. package/radio/radio.module.d.ts +15 -0
  170. package/radio/radio.types.d.ts +7 -0
  171. package/scrolling/fixed-size-table-virtual-scroll-strategy.d.ts +28 -0
  172. package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +24 -0
  173. package/scrolling/fixed-size-virtual-scroll.directive.d.ts +6 -0
  174. package/scrolling/index.d.ts +6 -0
  175. package/scrolling/scrolling.module.d.ts +10 -0
  176. package/scrolling/virtual-for-of.directive.d.ts +13 -0
  177. package/scrolling/virtual-scroll-viewport.component.d.ts +6 -0
  178. package/select/base-select.d.ts +83 -0
  179. package/select/helper-directives.d.ts +22 -0
  180. package/select/index.d.ts +9 -0
  181. package/select/multi-select/multi-select.component.d.ts +57 -0
  182. package/select/option/option.component.d.ts +46 -0
  183. package/select/option-group/option-group.component.d.ts +11 -0
  184. package/select/option-placeholder.component.d.ts +5 -0
  185. package/select/select.component.d.ts +23 -0
  186. package/select/select.module.d.ts +27 -0
  187. package/select/select.types.d.ts +19 -0
  188. package/select/validators.d.ts +22 -0
  189. package/shared/click-outside.directive.d.ts +10 -0
  190. package/shared/shared.module.d.ts +7 -0
  191. package/sort/index.d.ts +5 -0
  192. package/sort/sort-errors.d.ts +8 -0
  193. package/sort/sort-header.component.d.ts +24 -0
  194. package/sort/sort.directive.d.ts +21 -0
  195. package/sort/sort.module.d.ts +12 -0
  196. package/sort/sort.types.d.ts +10 -0
  197. package/status-bar/index.d.ts +3 -0
  198. package/status-bar/status-bar.component.d.ts +13 -0
  199. package/status-bar/status-bar.module.d.ts +9 -0
  200. package/status-bar/status-bar.types.d.ts +21 -0
  201. package/steps/index.d.ts +3 -0
  202. package/steps/steps.component.d.ts +35 -0
  203. package/steps/steps.module.d.ts +9 -0
  204. package/steps/types.d.ts +16 -0
  205. package/switch/index.d.ts +2 -0
  206. package/switch/switch.component.d.ts +11 -0
  207. package/switch/switch.module.d.ts +8 -0
  208. package/table/index.d.ts +15 -0
  209. package/table/table-cell-def.directive.d.ts +10 -0
  210. package/table/table-cell.component.d.ts +18 -0
  211. package/table/table-cell.directive.d.ts +10 -0
  212. package/table/table-column-def.directive.d.ts +11 -0
  213. package/table/table-column-resizable.directive.d.ts +30 -0
  214. package/table/table-header-cell-def.directive.d.ts +10 -0
  215. package/table/table-header-cell.directive.d.ts +9 -0
  216. package/table/table-header-row-def.directive.d.ts +13 -0
  217. package/table/table-header-row.component.d.ts +7 -0
  218. package/table/table-placeholder.directive.d.ts +16 -0
  219. package/table/table-row-def.directive.d.ts +13 -0
  220. package/table/table-row.component.d.ts +13 -0
  221. package/table/table-scroll.directive.d.ts +33 -0
  222. package/table/table.component.d.ts +20 -0
  223. package/table/table.module.d.ts +35 -0
  224. package/table-of-contents/index.d.ts +4 -0
  225. package/table-of-contents/table-of-contents.module.d.ts +14 -0
  226. package/table-of-contents/toc-container.directive.d.ts +28 -0
  227. package/table-of-contents/toc-content.directive.d.ts +14 -0
  228. package/table-of-contents/toc-link.directive.d.ts +16 -0
  229. package/tabs/index.d.ts +8 -0
  230. package/tabs/tab-body.component.d.ts +71 -0
  231. package/tabs/tab-context.service.d.ts +15 -0
  232. package/tabs/tab-group.component.d.ts +92 -0
  233. package/tabs/tab-header-active-indicator.component.d.ts +25 -0
  234. package/tabs/tab-header.component.d.ts +137 -0
  235. package/tabs/tab.component.d.ts +48 -0
  236. package/tabs/tabs.module.d.ts +23 -0
  237. package/tabs/tabs.types.d.ts +15 -0
  238. package/tag/check-tag/check-tag.component.d.ts +15 -0
  239. package/tag/index.d.ts +4 -0
  240. package/tag/tag.component.d.ts +27 -0
  241. package/tag/tag.module.d.ts +10 -0
  242. package/tag/tag.types.d.ts +9 -0
  243. package/theme/_mixin.scss +61 -68
  244. package/theme/_pattern.scss +22 -20
  245. package/theme/_theme-preset.scss +1 -2
  246. package/theme/_var.scss +30 -30
  247. package/theme/index.d.ts +5 -0
  248. package/theme/style.css +441 -1
  249. package/theme/theme.module.d.ts +8 -0
  250. package/theme/theme.pipe.d.ts +28 -0
  251. package/theme/theme.service.d.ts +15 -0
  252. package/theme/theme.types.d.ts +3 -0
  253. package/theme/utils.d.ts +3 -0
  254. package/time-picker/component.d.ts +38 -0
  255. package/time-picker/constant.d.ts +4 -0
  256. package/time-picker/index.d.ts +5 -0
  257. package/time-picker/panel/panel.component.d.ts +56 -0
  258. package/time-picker/time-picker.module.d.ts +20 -0
  259. package/time-picker/time-picker.type.d.ts +13 -0
  260. package/tooltip/animations.d.ts +4 -0
  261. package/tooltip/base-tooltip.d.ts +86 -0
  262. package/tooltip/index.d.ts +8 -0
  263. package/tooltip/tooltip-active.directive.d.ts +16 -0
  264. package/tooltip/tooltip-copy.directive.d.ts +26 -0
  265. package/tooltip/tooltip-intl.d.ts +11 -0
  266. package/tooltip/tooltip.component.d.ts +46 -0
  267. package/tooltip/tooltip.directive.d.ts +10 -0
  268. package/tooltip/tooltip.module.d.ts +16 -0
  269. package/tooltip/tooltip.types.d.ts +16 -0
  270. package/tooltip/utils/index.d.ts +15 -0
  271. package/tree-select/index.d.ts +4 -0
  272. package/tree-select/tree-node-placeholder.component.d.ts +5 -0
  273. package/tree-select/tree-select.component.d.ts +94 -0
  274. package/tree-select/tree-select.module.d.ts +12 -0
  275. package/tree-select/tree-select.types.d.ts +11 -0
  276. package/tsconfig.lib.tsbuildinfo +1 -1
  277. 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
- @use 'var' as var;
2
- @use 'sass:selector';
1
+ @import 'base-var';
2
+ @import 'var';
3
3
 
4
4
  @function theme-selector($theme, $scope) {
5
5
  @if ($scope) {
6
- @return selector.nest($theme, $scope);
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
- font-size: var.use-var(font-size-#{$size});
45
- line-height: var.use-var(line-height-#{$size});
46
- font-weight: var.use-var(font-weight-#{$weight});
47
- @if $color != none {
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: var.use-var(line-height-#{$size});
57
- font-size: var.use-var(font-size-#{$size});
54
+ height: use-var(line-height-#{$size});
55
+ font-size: use-var(font-size-#{$size});
58
56
  @if $color != none {
59
- color: var.use-text-color($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 var.use-rgba($color, 0.16);
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 var.use-rgba($color, 0.3);
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 var.use-rgba($color, 0.16);
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 var.use-rgba($color, 0.3);
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 var.use-rgba(origin-shadow, 0.1);
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 var.use-rgba(origin-shadow, 0.75);
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 var.use-rgba(origin-shadow, 0.1);
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 var.use-rgba(origin-shadow, 0.75);
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 var.use-rgba(origin-shadow, 0.2);
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 var.use-rgba(origin-shadow, 0.75);
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 var.use-rgba(origin-shadow, 0.2);
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 var.use-rgba(origin-shadow, 0.75);
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 var.use-rgba(origin-shadow, 0.2);
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 var.use-rgba(origin-shadow, 0.75);
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 var.use-rgba(origin-shadow, 0.2);
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 var.use-rgba(origin-shadow, 0.75);
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: var.use-rgba(origin-shadow, 0.4);
124
+ background-color: use-rgba(origin-shadow, 0.4);
127
125
  } @else if($theme == dark) {
128
- background-color: var.use-rgba(origin-shadow, 0.75);
126
+ background-color: use-rgba(origin-shadow, 0.75);
129
127
  } @else {
130
128
  @include theme-light {
131
- background-color: var.use-rgba(origin-shadow, 0.4);
129
+ background-color: use-rgba(origin-shadow, 0.4);
132
130
  }
133
131
  @include theme-dark {
134
- background-color: var.use-rgba(origin-shadow, 0.75);
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 var.$animation-duration-slow var.$animation-interpolation;
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: var.use-text-color(help);
177
+ color: use-text-color(help);
183
178
  cursor: pointer;
184
179
  @include transition;
185
180
 
186
181
  &:hover {
187
- color: var.use-rgb(main-bg);
188
- background-color: var.use-text-color(help);
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: var.use-rgb(n-4);
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: var.use-rgb(red) !important;
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: var.use-var(icon-size-m);
245
- height: var.use-var(icon-size-m);
246
- color: var.use-rgb(primary);
247
- background-color: var.use-rgb(p-6);
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: var.use-var(icon-size-s);
258
- height: var.use-var(icon-size-s);
259
- font-size: var.use-var(icon-size-s);
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: var.use-rgb(p-7);
258
+ background-color: use-rgb(p-7);
264
259
  }
265
260
 
266
261
  &:active {
267
- background-color: var.use-rgb(p-5);
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: var.use-rgb(primary);
268
+ background-color: use-rgb(primary);
274
269
 
275
270
  &:hover {
276
- background-color: var.use-rgb(p-1);
271
+ background-color: use-rgb(p-1);
277
272
  }
278
273
 
279
274
  &:active {
280
- background-color: var.use-rgb(p-0);
275
+ background-color: use-rgb(p-0);
281
276
  }
282
277
  }
283
278
 
284
279
  &[disabled],
285
280
  &.isExpanded[disabled] {
286
- background-color: var.use-rgb(n-8);
287
- color: var.use-rgb(n-6);
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
- white-space: nowrap;
295
- overflow: hidden;
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: var.use-rgb(main-bg);
315
- border-color: var.use-rgb(border);
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
- var.use-rgb($color),
322
- var.use-rgb($color) 8px,
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: var.$animation-duration-base) {
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: var.$animation-duration-base
334
+ $duration: $animation-duration-base
342
335
  ) {
343
336
  .#{$className}-enter,
344
337
  .#{$className}-leave {
@@ -1,27 +1,27 @@
1
- @use 'var' as var;
2
- @use 'mixin' as mixin;
1
+ @import 'var';
2
+ @import 'mixin';
3
3
 
4
4
  @mixin shadow-0 {
5
- border-radius: var.use-var(border-radius-m);
6
- background-color: var.use-rgb(n-10);
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: var.use-var(border-radius-m);
11
- background-color: var.use-rgb(n-10);
12
- box-shadow: 0 0 2px 0 var.use-rgba(origin-shadow, 0.24);
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: var.use-var(border-radius-m);
17
- background-color: var.use-rgb(n-10);
18
- box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.16);
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: var.use-var(border-radius-m);
23
- background-color: var.use-rgb(n-10);
24
- box-shadow: 0 4px 16px 0 var.use-rgba(origin-shadow, 0.16);
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: var.$table-cell-padding-v var.$table-cell-padding-h;
46
- min-height: var.$table-row-min-height + 2px;
47
- background-color: var.use-rgb(n-10);
48
- border: solid 1px var.use-rgb(n-8);
49
- border-radius: var.use-var(border-radius-l);
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: var.use-var(spacing-m);
58
+ margin-right: use-var(spacing-m);
57
59
  }
58
60
  }
59
61
 
@@ -46,8 +46,7 @@
46
46
  }
47
47
 
48
48
  @function rgb-string($color) {
49
- @return color.channel($color, 'red'), color.channel($color, 'green'),
50
- color.channel($color, 'blue');
49
+ @return color.red($color), color.green($color), color.blue($color);
51
50
  }
52
51
 
53
52
  @mixin light-mode {
package/theme/_var.scss CHANGED
@@ -1,39 +1,39 @@
1
1
  @use 'sass:math';
2
- @use 'base-var' as base-var;
3
- @forward 'base-var';
2
+
3
+ @import 'base-var';
4
4
 
5
5
  $status-color-map: (
6
- success: base-var.use-rgb(green),
7
- warning: base-var.use-rgb(yellow),
8
- error: base-var.use-rgb(red),
9
- info: base-var.use-rgb(primary),
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: base-var.use-var(inline-height-l),
16
- font-size: base-var.use-var(font-size-l),
17
- line-height: base-var.use-var(line-height-l),
18
- icon-size: base-var.use-var(icon-size-l),
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: base-var.use-var(inline-height-m),
22
- font-size: base-var.use-var(font-size-m),
23
- line-height: base-var.use-var(line-height-m),
24
- icon-size: base-var.use-var(icon-size-m),
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: base-var.use-var(inline-height-s),
28
- font-size: base-var.use-var(font-size-m),
29
- line-height: base-var.use-var(line-height-m),
30
- icon-size: base-var.use-var(icon-size-m),
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: base-var.use-var(inline-height-xs),
34
- font-size: base-var.use-var(font-size-s),
35
- line-height: base-var.use-var(line-height-s),
36
- icon-size: base-var.use-var(icon-size-s),
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: base-var.use-text-color(placeholder);
48
- $sort-indicator-color-active: base-var.use-text-color(secondary);
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: base-var.use-var(font-size-xl);
57
- $tab-label-font-size-medium: base-var.use-var(font-size-l);
58
- $tab-label-font-size-small: base-var.use-var(font-size-m);
59
- $tab-header-type-card-bg-color: base-var.use-rgb(n-9);
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 base-var.use-rgba(primary, 0.3);
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: base-var.use-var(font-size-xxl);
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
 
@@ -0,0 +1,5 @@
1
+ export * from './theme.module';
2
+ export * from './theme.pipe';
3
+ export * from './theme.service';
4
+ export * from './theme.types';
5
+ export * from './utils';