ngx-tethys 18.1.1 → 18.2.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/alert/styles/mixin.scss +1 -1
  3. package/anchor/style/anchor.scss +4 -2
  4. package/autocomplete/autocomplete.component.d.ts +2 -1
  5. package/avatar/styles/avatar.scss +1 -1
  6. package/back-top/styles/back-top.scss +3 -3
  7. package/button/styles/button-group.scss +9 -9
  8. package/button/styles/button.scss +2 -6
  9. package/button/styles/mixin.scss +6 -53
  10. package/calendar/calendar-header.component.d.ts +2 -0
  11. package/calendar/styles/calendar.scss +3 -11
  12. package/card/styles/card.scss +3 -3
  13. package/carousel/styles/carousel.scss +10 -10
  14. package/cascader/cascader.component.d.ts +1 -0
  15. package/cascader/styles/cascader.scss +3 -2
  16. package/collapse/styles/collapse.scss +4 -2
  17. package/color-picker/color-picker-panel.component.d.ts +3 -1
  18. package/color-picker/styles/alpha.scss +1 -1
  19. package/color-picker/styles/color-picker-panel.scss +1 -1
  20. package/color-picker/styles/hue.scss +1 -1
  21. package/color-picker/styles/saturation.scss +1 -1
  22. package/comment/styles/mixin.scss +1 -1
  23. package/copy/copy.directive.d.ts +1 -0
  24. package/core/index.d.ts +1 -0
  25. package/core/theme/index.d.ts +2 -0
  26. package/core/theme/store.d.ts +12 -0
  27. package/core/theme/theme.d.ts +5 -0
  28. package/date-picker/abstract-picker.component.d.ts +3 -1
  29. package/date-picker/date-helper.service.d.ts +3 -0
  30. package/date-picker/date-picker.config.d.ts +7 -1
  31. package/date-picker/lib/calendar/calendar-footer.component.d.ts +3 -1
  32. package/date-picker/lib/calendar/calendar-header.component.d.ts +3 -1
  33. package/date-picker/lib/calendar/calendar-table.component.d.ts +3 -1
  34. package/date-picker/lib/date-carousel/date-carousel.component.d.ts +4 -1
  35. package/date-picker/lib/popups/date-popup.component.d.ts +3 -1
  36. package/date-picker/lib/popups/inner-popup.component.d.ts +3 -1
  37. package/date-picker/styles/calendar.scss +1 -1
  38. package/date-picker/styles/decade-panel.scss +1 -1
  39. package/date-picker/styles/picker.scss +1 -1
  40. package/date-picker/styles/range-picker.scss +3 -3
  41. package/date-picker/styles/year-panel.scss +2 -2
  42. package/date-range/date-range.component.d.ts +2 -0
  43. package/date-range/optional-dates/optional-dates.component.d.ts +1 -0
  44. package/dialog/confirm/confirm.component.d.ts +1 -0
  45. package/dialog/confirm.config.d.ts +14 -7
  46. package/dialog/styles/dialog.scss +6 -6
  47. package/dropdown/styles/dropdown.scss +3 -3
  48. package/empty/empty.component.d.ts +14 -9
  49. package/empty/empty.config.d.ts +3 -0
  50. package/empty/styles/empty.scss +22 -2
  51. package/esm2022/autocomplete/autocomplete.component.mjs +5 -3
  52. package/esm2022/calendar/calendar-header.component.mjs +9 -5
  53. package/esm2022/carousel/carousel.component.mjs +3 -3
  54. package/esm2022/cascader/cascader.component.mjs +5 -3
  55. package/esm2022/checkbox/checkbox.component.mjs +1 -1
  56. package/esm2022/color-picker/color-picker-panel.component.mjs +5 -3
  57. package/esm2022/copy/copy.directive.mjs +7 -5
  58. package/esm2022/core/index.mjs +2 -1
  59. package/esm2022/core/theme/index.mjs +3 -0
  60. package/esm2022/core/theme/store.mjs +42 -0
  61. package/esm2022/core/theme/theme.mjs +2 -0
  62. package/esm2022/date-picker/abstract-picker.component.mjs +4 -2
  63. package/esm2022/date-picker/base-picker.component.mjs +2 -2
  64. package/esm2022/date-picker/date-helper.service.mjs +4 -2
  65. package/esm2022/date-picker/date-picker.component.mjs +1 -1
  66. package/esm2022/date-picker/date-picker.config.mjs +55 -2
  67. package/esm2022/date-picker/date-picker.directive.mjs +1 -1
  68. package/esm2022/date-picker/date-picker.service.mjs +3 -3
  69. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +5 -3
  70. package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -1
  71. package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -1
  72. package/esm2022/date-picker/lib/date/date-header.component.mjs +6 -5
  73. package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
  74. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +9 -4
  75. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
  76. package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
  77. package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -2
  78. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +5 -3
  79. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +5 -3
  80. package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
  81. package/esm2022/date-picker/month-picker.component.mjs +1 -1
  82. package/esm2022/date-picker/quarter-picker.component.mjs +1 -1
  83. package/esm2022/date-picker/range-picker.component.mjs +1 -1
  84. package/esm2022/date-picker/range-picker.directive.mjs +1 -1
  85. package/esm2022/date-picker/week-picker.component.mjs +1 -1
  86. package/esm2022/date-picker/year-picker.component.mjs +1 -1
  87. package/esm2022/date-range/date-range.component.mjs +7 -4
  88. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -2
  89. package/esm2022/dialog/confirm/confirm.component.mjs +14 -3
  90. package/esm2022/dialog/confirm.config.mjs +17 -2
  91. package/esm2022/empty/empty.component.mjs +7 -2
  92. package/esm2022/empty/empty.config.mjs +4 -1
  93. package/esm2022/empty/svgs.mjs +103 -8
  94. package/esm2022/form/form-validator-loader.mjs +17 -15
  95. package/esm2022/guider/guider-hint/guider-hint.component.mjs +5 -3
  96. package/esm2022/i18n/i18n.mjs +2 -0
  97. package/esm2022/i18n/i18n.service.mjs +39 -0
  98. package/esm2022/i18n/i18n.token.mjs +8 -0
  99. package/esm2022/i18n/index.mjs +7 -0
  100. package/esm2022/i18n/locale.mjs +14 -0
  101. package/esm2022/i18n/locales/en-us.mjs +147 -0
  102. package/esm2022/i18n/locales/zh-cn.mjs +127 -0
  103. package/esm2022/i18n/ngx-tethys-i18n.mjs +5 -0
  104. package/esm2022/notify/notify.component.mjs +3 -3
  105. package/esm2022/pagination/pagination.component.mjs +22 -5
  106. package/esm2022/pagination/pagination.module.mjs +26 -5
  107. package/esm2022/pagination/pagination.pipe.mjs +22 -1
  108. package/esm2022/radio/button/radio-button.component.mjs +1 -1
  109. package/esm2022/radio/radio.component.mjs +1 -1
  110. package/esm2022/result/result.component.mjs +3 -3
  111. package/esm2022/select/custom-select/custom-select.component.mjs +9 -3
  112. package/esm2022/strength/strength.component.mjs +21 -20
  113. package/esm2022/table/table-skeleton.component.mjs +3 -3
  114. package/esm2022/time-picker/time-picker-panel.component.mjs +5 -3
  115. package/esm2022/time-picker/time-picker.component.mjs +4 -2
  116. package/esm2022/transfer/transfer-list.component.mjs +5 -3
  117. package/esm2022/tree-select/tree-select.component.mjs +5 -3
  118. package/esm2022/version.mjs +2 -2
  119. package/esm2022/watermark/config.mjs +2 -2
  120. package/esm2022/watermark/watermark.directive.mjs +18 -10
  121. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -2
  122. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  123. package/fesm2022/ngx-tethys-calendar.mjs +8 -5
  124. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  125. package/fesm2022/ngx-tethys-carousel.mjs +2 -2
  126. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  127. package/fesm2022/ngx-tethys-cascader.mjs +4 -2
  128. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  129. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  130. package/fesm2022/ngx-tethys-color-picker.mjs +4 -2
  131. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  132. package/fesm2022/ngx-tethys-copy.mjs +6 -4
  133. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  134. package/fesm2022/ngx-tethys-core.mjs +42 -2
  135. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  136. package/fesm2022/ngx-tethys-date-picker.mjs +95 -30
  137. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  138. package/fesm2022/ngx-tethys-date-range.mjs +8 -4
  139. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  140. package/fesm2022/ngx-tethys-dialog.mjs +27 -2
  141. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  142. package/fesm2022/ngx-tethys-empty.mjs +111 -8
  143. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  144. package/fesm2022/ngx-tethys-form.mjs +16 -14
  145. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  146. package/fesm2022/ngx-tethys-guider.mjs +4 -2
  147. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  148. package/fesm2022/ngx-tethys-i18n.mjs +338 -0
  149. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -0
  150. package/fesm2022/ngx-tethys-notify.mjs +2 -2
  151. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  152. package/fesm2022/ngx-tethys-pagination.mjs +66 -7
  153. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  154. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  155. package/fesm2022/ngx-tethys-result.mjs +2 -2
  156. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  157. package/fesm2022/ngx-tethys-select.mjs +8 -2
  158. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  159. package/fesm2022/ngx-tethys-strength.mjs +20 -19
  160. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  161. package/fesm2022/ngx-tethys-table.mjs +2 -2
  162. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  163. package/fesm2022/ngx-tethys-time-picker.mjs +6 -3
  164. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  165. package/fesm2022/ngx-tethys-transfer.mjs +4 -2
  166. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  167. package/fesm2022/ngx-tethys-tree-select.mjs +4 -2
  168. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  169. package/fesm2022/ngx-tethys-watermark.mjs +18 -10
  170. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  171. package/fesm2022/ngx-tethys.mjs +1 -1
  172. package/fesm2022/ngx-tethys.mjs.map +1 -1
  173. package/form/form-validator-loader.d.ts +2 -0
  174. package/form/styles/form-check.scss +1 -1
  175. package/form/styles/forms.scss +2 -3
  176. package/form/styles/mixin.scss +6 -5
  177. package/guider/guider-hint/guider-hint.component.d.ts +3 -1
  178. package/guider/styles/guider-tip.scss +2 -1
  179. package/i18n/i18n.d.ts +143 -0
  180. package/i18n/i18n.service.d.ts +19 -0
  181. package/i18n/i18n.token.d.ts +5 -0
  182. package/i18n/index.d.ts +6 -0
  183. package/i18n/locale.d.ts +4 -0
  184. package/i18n/locales/en-us.d.ts +147 -0
  185. package/i18n/locales/zh-cn.d.ts +126 -0
  186. package/icon/examples/all/all.component.scss +3 -1
  187. package/image/styles/image.scss +15 -11
  188. package/input/styles/input-group.scss +1 -1
  189. package/input/styles/input.scss +2 -2
  190. package/layout/examples/sidebar/sidebar.component.scss +1 -1
  191. package/layout/styles/layout.scss +3 -3
  192. package/menu/examples/theme/theme.component.scss +0 -8
  193. package/menu/styles/theme.scss +4 -4
  194. package/message/styles/message.scss +1 -1
  195. package/nav/examples/basic/basic.component.scss +1 -1
  196. package/nav/examples/extra/extra.component.scss +1 -1
  197. package/nav/examples/fill/fill.component.scss +1 -1
  198. package/nav/examples/lite/lite.component.scss +1 -1
  199. package/nav/examples/pills/pills.component.scss +1 -1
  200. package/nav/examples/responsive/responsive.component.scss +1 -1
  201. package/nav/examples/size/size.component.scss +1 -1
  202. package/nav/examples/tabs/tabs.component.scss +1 -1
  203. package/nav/examples/type/type.component.scss +1 -1
  204. package/nav/examples/vertical/vertical.component.scss +1 -1
  205. package/notify/styles/notify.scss +4 -4
  206. package/package.json +7 -1
  207. package/pagination/pagination.component.d.ts +4 -1
  208. package/pagination/pagination.module.d.ts +1 -1
  209. package/pagination/pagination.pipe.d.ts +6 -0
  210. package/pagination/styles/pagination.scss +2 -2
  211. package/popover/styles.scss +3 -3
  212. package/property/styles/properties.scss +1 -1
  213. package/radio/radio.component.d.ts +0 -2
  214. package/resizable/examples/line/line.component.scss +3 -1
  215. package/resizable/examples/style.scss +7 -5
  216. package/result/styles/result.scss +25 -1
  217. package/schematics/version.d.ts +1 -1
  218. package/schematics/version.js +1 -1
  219. package/segment/styles/mixin.scss +2 -3
  220. package/segment/styles/segment.scss +1 -1
  221. package/select/custom-select/custom-select.component.d.ts +1 -0
  222. package/select/styles/select.scss +1 -1
  223. package/shared/option/styles/option.mixin.scss +1 -1
  224. package/shared/select/styles/select.mixin.scss +2 -2
  225. package/slide/examples/drawer-container/drawer-container.component.scss +1 -1
  226. package/slide/examples/layout/layout.component.scss +4 -2
  227. package/slide/styles/slide.scss +3 -2
  228. package/slider/slider.scss +2 -2
  229. package/stepper/examples/basic/basic.component.scss +3 -1
  230. package/stepper/examples/icon/icon.component.scss +3 -1
  231. package/stepper/styles/stepper.scss +7 -3
  232. package/strength/strength.component.d.ts +21 -2
  233. package/styles/bootstrap/_variables.scss +14 -876
  234. package/styles/bootstrap/utilities/_background.scss +27 -5
  235. package/styles/bootstrap/utilities/_text.scss +29 -31
  236. package/styles/index.scss +2 -1
  237. package/styles/mixins/background-variant.scss +2 -10
  238. package/styles/mixins/utilities.scss +2 -11
  239. package/styles/modules/cdk/drag-drop.scss +6 -8
  240. package/styles/modules/close.scss +1 -1
  241. package/styles/modules/reboot.scss +1 -1
  242. package/styles/modules/tables.scss +1 -1
  243. package/styles/modules/utils.scss +0 -17
  244. package/styles/theme/dark.scss +70 -0
  245. package/styles/theme/default.scss +70 -0
  246. package/styles/theme/index.scss +2 -0
  247. package/styles/variables.scss +114 -76
  248. package/switch/styles/mixin.scss +0 -13
  249. package/table/styles/table.scss +7 -19
  250. package/tabs/styles/tabs.scss +1 -1
  251. package/tag/styles/mixin.scss +7 -42
  252. package/tag/styles/tag.scss +2 -2
  253. package/time-picker/styles/time-panel.scss +1 -1
  254. package/time-picker/time-picker-panel.component.d.ts +3 -1
  255. package/time-picker/time-picker.component.d.ts +3 -1
  256. package/timeline/styles/timeline.scss +2 -2
  257. package/tooltip/styles.scss +4 -4
  258. package/transfer/styles/transfer.scss +2 -2
  259. package/transfer/transfer-list.component.d.ts +3 -1
  260. package/tree/styles/tree.scss +3 -5
  261. package/tree-select/tree-select.component.d.ts +1 -0
  262. package/watermark/config.d.ts +1 -1
  263. package/watermark/watermark.directive.d.ts +23 -2
  264. package/carousel/styles/index.scss +0 -1
  265. package/carousel/styles/variables.scss +0 -5
@@ -1,11 +1,29 @@
1
- @use "../../mixins/background-variant";
2
- @use "../../variables";
3
- @use "../functions-variables";
1
+ @use '../../mixins/background-variant';
2
+ @use '../../variables';
3
+ @use '../functions-variables';
4
4
 
5
5
  // stylelint-disable declaration-no-important
6
6
 
7
- @each $color, $value in functions-variables.$theme-colors {
8
- @include background-variant.bg-variant('.bg-#{$color}', $value, true);
7
+ $bg-colors: () !default;
8
+ $bg-colors: map-merge(
9
+ (
10
+ '.bg-lighter': variables.$bg-lighter,
11
+ '.bg-bright': variables.$bg-bright,
12
+ '.bg-content': variables.$bg-content,
13
+ '.bg-primary': variables.$bg-primary,
14
+ '.bg-secondary': variables.$bg-secondary,
15
+ '.bg-success': variables.$bg-success,
16
+ '.bg-info': variables.$bg-info,
17
+ '.bg-warning': variables.$bg-warning,
18
+ '.bg-danger': variables.$bg-danger,
19
+ '.bg-light': variables.$bg-light,
20
+ '.bg-dark': variables.$bg-dark
21
+ ),
22
+ $bg-colors
23
+ );
24
+
25
+ @each $color, $value in $bg-colors {
26
+ @include background-variant.bg-variant($color, $value, true);
9
27
  }
10
28
 
11
29
  @if variables.$enable-gradients {
@@ -18,6 +36,10 @@
18
36
  background-color: variables.$white !important;
19
37
  }
20
38
 
39
+ .bg-default {
40
+ background-color: variables.$bg-default !important;
41
+ }
42
+
21
43
  .bg-transparent {
22
44
  background-color: transparent !important;
23
45
  }
@@ -1,17 +1,15 @@
1
- @use "sass:map";
2
- @use "../../mixins/utilities";
3
- @use "../../variables";
4
- @use "../functions-variables";
5
- @use "../mixins/breakpoints";
6
- @use "../mixins/text-hide";
7
- @use "../mixins/text-truncate";
8
- @use "../variables" as bootstrap-variables;
1
+ @use 'sass:map';
2
+ @use '../../mixins/utilities';
3
+ @use '../../variables';
4
+ @use '../functions-variables';
5
+ @use '../mixins/breakpoints';
6
+ @use '../mixins/text-hide';
7
+ @use '../mixins/text-truncate';
8
+ @use '../variables' as bootstrap-variables;
9
9
 
10
10
  // stylelint-disable declaration-no-important
11
11
 
12
- //
13
12
  // Text
14
- //
15
13
 
16
14
  .text-monospace {
17
15
  font-family: variables.$font-family-monospace !important;
@@ -84,27 +82,27 @@
84
82
  }
85
83
 
86
84
  // Contextual colors
87
-
88
- .text-white {
89
- color: variables.$white !important;
90
- }
91
-
92
- @each $color, $value in functions-variables.$theme-colors {
93
- @include utilities.text-emphasis-variant('.text-#{$color}', $value, true);
94
- }
95
-
96
- .text-body {
97
- color: variables.$body-color !important;
98
- }
99
- .text-muted {
100
- color: bootstrap-variables.$text-muted !important;
101
- }
102
-
103
- .text-black-50 {
104
- color: rgba(variables.$black, 0.5) !important;
105
- }
106
- .text-white-50 {
107
- color: rgba(variables.$white, 0.5) !important;
85
+ $text-colors: () !default;
86
+ $text-colors: map-merge(
87
+ (
88
+ '.text-placeholder': variables.$text-placeholder,
89
+ '.text-body': variables.$text-body,
90
+ '.text-desc': variables.$text-desc,
91
+ '.text-muted': variables.$text-muted,
92
+ '.text-white': variables.$text-white,
93
+ '.text-primary': variables.$text-primary,
94
+ '.text-secondary': variables.$text-secondary,
95
+ '.text-success': variables.$text-success,
96
+ '.text-info': variables.$text-info,
97
+ '.text-warning': variables.$text-warning,
98
+ '.text-danger': variables.$text-danger,
99
+ '.text-light': variables.$text-light,
100
+ '.text-dark': variables.$text-dark
101
+ ),
102
+ $text-colors
103
+ );
104
+ @each $color, $value in $text-colors {
105
+ @include utilities.text-emphasis-variant($color, $value, true);
108
106
  }
109
107
 
110
108
  // Misc
package/styles/index.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  @use './basic.scss';
2
+ @forward './theme/index.scss';
2
3
  @forward './modules/index.scss';
3
4
  @forward './bootstrap/root.scss';
4
5
  @forward './bootstrap/grid.scss';
@@ -83,7 +84,7 @@
83
84
  @forward '../watermark/styles/watermark.scss';
84
85
  @forward '../property/styles/properties.scss';
85
86
  @forward '../typography/styles/typography.scss';
86
- @forward '../carousel/styles/index.scss';
87
+ @forward '../carousel/styles/carousel.scss';
87
88
  @forward '../checkbox/styles/checkbox.scss';
88
89
  @forward '../color-picker/styles/color-picker.scss';
89
90
  @forward '../comment/styles/comment.scss';
@@ -1,6 +1,5 @@
1
- @use "sass:color";
2
- @use "../mixins/hover";
3
- @use "../bootstrap/variables";
1
+ @use '../mixins/hover';
2
+ @use '../bootstrap/variables';
4
3
 
5
4
  // stylelint-disable declaration-no-important
6
5
 
@@ -10,13 +9,6 @@
10
9
  #{$parent} {
11
10
  background-color: $color !important;
12
11
  }
13
- a#{$parent},
14
- button#{$parent} {
15
- @include hover.hover-focus() {
16
- background-color: color.adjust($color, $lightness: -10%) !important;
17
- }
18
- }
19
- // @include deprecate("The `bg-variant` mixin", "v4.4.0", "v5", $ignore-warning);
20
12
  }
21
13
 
22
14
  @mixin bg-gradient-variant($parent, $color) {
@@ -1,19 +1,10 @@
1
- @use "sass:color";
2
- @use "../mixins/hover";
3
- @use "../bootstrap/variables";
1
+ @use '../mixins/hover';
2
+ @use '../bootstrap/variables';
4
3
 
5
4
  @mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
6
5
  #{$parent} {
7
6
  color: $color !important;
8
7
  }
9
- @if variables.$emphasized-link-hover-darken-percentage != 0 {
10
- a#{$parent} {
11
- @include hover.hover-focus() {
12
- color: color.adjust($color, $lightness: - (variables.$emphasized-link-hover-darken-percentage)) !important;
13
- }
14
- }
15
- }
16
- // @include deprecate("`text-emphasis-variant()`", "v4.4.0", "v5", $ignore-warning);
17
8
  }
18
9
 
19
10
  @mixin absolute-vertical-align-middle($clearLeft) {
@@ -1,5 +1,5 @@
1
- @use "../../mixins/shadow";
2
- @use "../../variables";
1
+ @use '../../mixins/shadow';
2
+ @use '../../variables';
3
3
 
4
4
  // 使用 `cdk` 的 `drag-drop` 时的样式
5
5
  // 添加在每个cdkDrag组件上的样式
@@ -55,17 +55,15 @@
55
55
  .cdk-drag-placeholder:not(.thy-tree-node):not(.thy-customize-drag-placeholder) {
56
56
  color: transparent !important;
57
57
  background: variables.$gray-200 !important;
58
- // margin-left: -20px;
59
- // padding-left: 20px;
60
58
 
61
59
  &:hover {
62
- box-shadow: none;
60
+ box-shadow: variables.$box-shadow-none;
63
61
  }
64
62
 
65
63
  * {
66
64
  color: transparent !important;
67
65
  visibility: hidden;
68
- box-shadow: none;
66
+ box-shadow: variables.$box-shadow-none;
69
67
  }
70
68
  }
71
69
 
@@ -73,8 +71,8 @@
73
71
  .thy-sortable-drag,
74
72
  .cdk-drag-preview {
75
73
  box-sizing: border-box;
76
- background: variables.$white !important;
77
- @include shadow.item-box-shadow();
74
+ background: variables.$bg-panel !important;
75
+ box-shadow: variables.$cdk-drag-preview-box-shadow;
78
76
  }
79
77
 
80
78
  .cdk-drag-animating {
@@ -55,7 +55,7 @@ button.close {
55
55
  @include close.set-close-link-variant(variables.$gray-400, variables.$danger);
56
56
  @include close.set-close-link-size(variables.$font-size-base);
57
57
  .remove-link-icon {
58
- background: variables.$white;
58
+ background: variables.$bg-default;
59
59
  border-radius: 50%;
60
60
  }
61
61
  }
@@ -306,7 +306,7 @@ table {
306
306
  caption {
307
307
  padding-top: variables.$table-cell-padding;
308
308
  padding-bottom: variables.$table-cell-padding;
309
- color: bootstrap-variables.$text-muted;
309
+ color: variables.$text-muted;
310
310
  text-align: left;
311
311
  caption-side: bottom;
312
312
  }
@@ -221,7 +221,7 @@
221
221
  &.table-draggable-ignore-item {
222
222
  @include hover.hover {
223
223
  cursor: inherit;
224
- box-shadow: none;
224
+ box-shadow: variables.$box-shadow-none;
225
225
 
226
226
  td {
227
227
  .table-draggable-icon {
@@ -20,23 +20,6 @@
20
20
  cursor: variables.$hand-cursor;
21
21
  }
22
22
 
23
- // .thy-dot {
24
- // display: inline-block;
25
- // width: 6px;
26
- // height: 6px;
27
- // border-radius: 50%;
28
- // }
29
-
30
- // 新增比 light 更亮的2个背景色
31
- @include background-variant.bg-variant('.bg-lighter', variables.$gray-100);
32
- @include background-variant.bg-variant('.bg-bright', variables.$gray-80);
33
- @include background-variant.bg-variant('.bg-content', variables.$layout-content-background);
34
-
35
- // text-placeholder #cacaca
36
- @include utilities.text-emphasis-variant('.text-placeholder', variables.$gray-400);
37
- @include utilities.text-emphasis-variant('.text-body', variables.$gray-800);
38
- @include utilities.text-emphasis-variant('.text-desc', variables.$gray-500);
39
-
40
23
  // 保证 wtf 图标和字体对齐
41
24
  .wtf {
42
25
  vertical-align: -0.045em;
@@ -0,0 +1,70 @@
1
+ :root[theme='dark'] {
2
+ // palette
3
+ --gray-10: #2a2e34;
4
+ --gray-70: #32363d;
5
+ --gray-80: #30353c;
6
+ --gray-100: #393e46;
7
+ --gray-200: #3c414a;
8
+ --gray-300: #464c57;
9
+ --gray-400: #5b6370;
10
+ --gray-500: #666e7d;
11
+ --gray-600: #6f7a8a;
12
+ --gray-700: #87909e;
13
+ --gray-800: #bcc4d1;
14
+
15
+ // background
16
+ --bg-color-default: #2a2e34;
17
+ --bg-color-panel: #30353c;
18
+ --bg-color-float: #393e46;
19
+
20
+ // text
21
+ --text-color: #bcc4d1;
22
+
23
+ // image preview
24
+ --image-preview-bg-color: #32363d;
25
+ --image-preview-backdrop-bg-color: #3c414a;
26
+ --image-preview-text-color: #bcc4de;
27
+ --image-preview-action-bg-color: rgba(188, 196, 209, 0.1);
28
+ --image-preview-action-icon-color: #6f7a8a;
29
+ --image-preview-switch-bg-color: #464c57;
30
+ --image-preview-switch-hover-bg-color: #5b6370;
31
+ --image-preview-switch-icon-color: #6f7a8a;
32
+ --image-preview-switch-icon-hover-color: #87909e;
33
+
34
+ // menu dark
35
+ --menu-theme-dark-text-color: #bcc4d1;
36
+ --menu-theme-dark-icon-color: #87909e;
37
+ --menu-theme-dark-divider-color: #3c414a;
38
+
39
+ // carousel
40
+ --carousel-control-bg-color: #32363d4d;
41
+ --carousel-control-hover-bg-color: #32363d99;
42
+ --carousel-dot-bg-color: #32363d4d;
43
+
44
+ // layout
45
+ --layout-header-box-shadow: 0 2px 6px 0px rgba(0, 0, 0, 0.2);
46
+ --layout-sidebar-light-bg-color: #30353c;
47
+
48
+ // table
49
+ --table-fixed-column-left-box-shadow: 6px 0 6px 0 rgba(0, 0, 0, 0.1);
50
+ --table-fixed-column-right-box-shadow: -6px 0 6px 0 rgba(0, 0, 0, 0.1);
51
+
52
+ // segment
53
+ --segment-active-bg-color: #464c57;
54
+
55
+ // tooltip
56
+ --tooltip-bg-color: #464c57;
57
+
58
+ // calendar
59
+ --calendar-active-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
60
+
61
+ // checkbox
62
+ --checkbox-disabled-bg-color: #393e46;
63
+
64
+ // avatar
65
+ --avatar-disabled-color: #87909e;
66
+
67
+ // float btn
68
+ --float-btn-box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
69
+ --float-btn-hover-box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
70
+ }
@@ -0,0 +1,70 @@
1
+ :root {
2
+ // palette
3
+ --gray-10: #fff;
4
+ --gray-70: #f7f7f7;
5
+ --gray-80: #fafafa;
6
+ --gray-100: #f5f5f5;
7
+ --gray-200: #eee;
8
+ --gray-300: #ddd;
9
+ --gray-400: #cacaca;
10
+ --gray-500: #aaa;
11
+ --gray-600: #999;
12
+ --gray-700: #666;
13
+ --gray-800: #333;
14
+
15
+ // background
16
+ --bg-color-default: #fff;
17
+ --bg-color-panel: #fff;
18
+ --bg-color-float: #fff;
19
+
20
+ // text
21
+ --text-color: #333;
22
+
23
+ // image preview
24
+ --image-preview-bg-color: #333;
25
+ --image-preview-backdrop-bg-color: rgba(51, 51, 51, 0.95);
26
+ --image-preview-text-color: #fff;
27
+ --image-preview-action-bg-color: rgba(255, 255, 255, 0.2);
28
+ --image-preview-action-icon-color: #fff;
29
+ --image-preview-switch-bg-color: #666;
30
+ --image-preview-switch-hover-bg-color: #aaa;
31
+ --image-preview-switch-icon-color: #aaa;
32
+ --image-preview-switch-icon-hover-color: #666;
33
+
34
+ // menu dark
35
+ --menu-theme-dark-text-color: #ddd;
36
+ --menu-theme-dark-icon-color: #ddd;
37
+ --menu-theme-dark-divider-color: #666;
38
+
39
+ // carousel
40
+ --carousel-control-bg-color: #f7f7f74d;
41
+ --carousel-control-hover-bg-color: #f7f7f799;
42
+ --carousel-dot-bg-color: #ffffff80;
43
+
44
+ // layout
45
+ --layout-header-box-shadow: 0 4px 8px 0px rgba(0 0 0 / 3%);
46
+ --layout-sidebar-light-bg-color: #fbfbfb;
47
+
48
+ // table
49
+ --table-fixed-column-left-box-shadow: 6px 0 6px 0 rgba(0, 0, 0, 0.05);
50
+ --table-fixed-column-right-box-shadow: -6px 0 6px 0 rgba(0, 0, 0, 0.05);
51
+
52
+ // segment
53
+ --segment-active-bg-color: #fff;
54
+
55
+ // tooltip
56
+ --tooltip-bg-color: #000000bf;
57
+
58
+ // calendar
59
+ --calendar-active-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.12);
60
+
61
+ // checkbox
62
+ --checkbox-disabled-bg-color: rgba(0, 0, 0, 0.03);
63
+
64
+ // avatar
65
+ --avatar-disabled-color: #f5f5f5;
66
+
67
+ // float btn
68
+ --float-btn-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
69
+ --float-btn-hover-box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
70
+ }
@@ -0,0 +1,2 @@
1
+ @use './default.scss';
2
+ @use './dark.scss';