@alauda/ui 9.1.2-beta.1 → 9.1.2-beta.10

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