@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/Button/index.d.ts +3 -4
  2. package/dist/Button/index.js +7 -20
  3. package/dist/Button/style/size.less +21 -8
  4. package/dist/Button/style/type.less +61 -33
  5. package/dist/Button/style/variables.less +229 -44
  6. package/dist/Checkbox/style/index.less +111 -114
  7. package/dist/Dropdown/index.d.ts +1 -2
  8. package/dist/Dropdown/style/index.less +70 -107
  9. package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
  10. package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
  11. package/dist/Icon/components/AlertTriangleLine.js +35 -0
  12. package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
  13. package/dist/Icon/components/ArrowDownFill.js +35 -0
  14. package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
  15. package/dist/Icon/components/AttentionCircleFill.js +35 -0
  16. package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
  17. package/dist/Icon/components/AttentionTriangleFill.js +35 -0
  18. package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
  19. package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
  20. package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
  21. package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
  22. package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
  23. package/dist/Icon/components/CheckCircleFill.js +35 -0
  24. package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
  25. package/dist/Icon/components/CheckCircleLightLine.js +38 -0
  26. package/dist/Icon/components/CheckLightLine.d.ts +11 -0
  27. package/dist/Icon/components/CheckLightLine.js +35 -0
  28. package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
  29. package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
  30. package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
  31. package/dist/Icon/components/CircleLightLine.d.ts +11 -0
  32. package/dist/Icon/components/CircleLightLine.js +38 -0
  33. package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
  34. package/dist/Icon/components/CloseCircleFill.js +35 -0
  35. package/dist/Icon/components/CloseLLine.d.ts +1 -1
  36. package/dist/Icon/components/CloseLightLine.d.ts +11 -0
  37. package/dist/Icon/components/CloseLightLine.js +35 -0
  38. package/dist/Icon/components/CloseMLine.d.ts +1 -1
  39. package/dist/Icon/components/DragLine.d.ts +1 -1
  40. package/dist/Icon/components/Ellipsis.d.ts +11 -0
  41. package/dist/Icon/components/Ellipsis.js +35 -0
  42. package/dist/Icon/components/EyeOffLine.d.ts +1 -1
  43. package/dist/Icon/components/EyeOnLine.d.ts +1 -1
  44. package/dist/Icon/components/FoldDownFill.d.ts +1 -1
  45. package/dist/Icon/components/FoldUpFill.d.ts +1 -1
  46. package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
  47. package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
  48. package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
  49. package/dist/Icon/components/InformationCircleFill.js +35 -0
  50. package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
  51. package/dist/Icon/components/InformationCircleLightLine.js +38 -0
  52. package/dist/Icon/components/Loading2Line.d.ts +1 -1
  53. package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
  54. package/dist/Icon/components/LoadingDuotone.js +39 -0
  55. package/dist/Icon/components/LoadingLine.d.ts +1 -1
  56. package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
  57. package/dist/Icon/components/SearchLine.d.ts +1 -1
  58. package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
  59. package/dist/Icon/components/TriangleLightLine.js +35 -0
  60. package/dist/Icon/index.d.ts +16 -3
  61. package/dist/Icon/index.js +16 -2
  62. package/dist/Icon/svg/Loading-duotone.svg +6 -0
  63. package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
  64. package/dist/Icon/svg/alert-triangle-line.svg +5 -0
  65. package/dist/Icon/svg/arrow-down-fill.svg +5 -0
  66. package/dist/Icon/svg/attention-circle-fill.svg +5 -0
  67. package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
  68. package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
  69. package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
  70. package/dist/Icon/svg/check-circle-duotone.svg +6 -2
  71. package/dist/Icon/svg/check-circle-fill.svg +5 -0
  72. package/dist/Icon/svg/check-circle-light-line.svg +8 -0
  73. package/dist/Icon/svg/check-light-line.svg +5 -0
  74. package/dist/Icon/svg/chevron-down-line.svg +6 -4
  75. package/dist/Icon/svg/chevron-left-line.svg +6 -4
  76. package/dist/Icon/svg/chevron-right-line.svg +6 -4
  77. package/dist/Icon/svg/circle-light-line.svg +9 -0
  78. package/dist/Icon/svg/close-L-line.svg +11 -9
  79. package/dist/Icon/svg/close-circle-fill.svg +5 -0
  80. package/dist/Icon/svg/close-light-line.svg +5 -0
  81. package/dist/Icon/svg/close-m-line.svg +6 -4
  82. package/dist/Icon/svg/drag-line.svg +6 -4
  83. package/dist/Icon/svg/ellipsis.svg +5 -0
  84. package/dist/Icon/svg/eye-off-line.svg +6 -4
  85. package/dist/Icon/svg/eye-on-line.svg +14 -8
  86. package/dist/Icon/svg/fold-down-fill.svg +7 -6
  87. package/dist/Icon/svg/fold-up-fill.svg +7 -6
  88. package/dist/Icon/svg/info-circle-duotone.svg +4 -2
  89. package/dist/Icon/svg/info-circle-line.svg +3 -1
  90. package/dist/Icon/svg/information-circle-fill.svg +5 -0
  91. package/dist/Icon/svg/information-circle-light-line.svg +9 -0
  92. package/dist/Icon/svg/loading-2-line.svg +4 -2
  93. package/dist/Icon/svg/loading-line.svg +6 -4
  94. package/dist/Icon/svg/more-vertical-line.svg +6 -4
  95. package/dist/Icon/svg/search-line.svg +6 -4
  96. package/dist/Icon/svg/triangle-light-line.svg +5 -0
  97. package/dist/IconButton/index.d.ts +2 -2
  98. package/dist/IconButton/index.js +8 -19
  99. package/dist/IconButton/style/index.less +49 -25
  100. package/dist/Input/components/Input/index.js +18 -2
  101. package/dist/Input/components/Password/index.d.ts +0 -5
  102. package/dist/Input/components/Password/index.js +10 -10
  103. package/dist/Input/components/TextArea/index.js +15 -2
  104. package/dist/Input/index.d.ts +2 -5
  105. package/dist/Input/index.js +1 -3
  106. package/dist/Input/style/index.less +4 -565
  107. package/dist/Input/style/reset.less +22 -0
  108. package/dist/Input/style/size.less +82 -0
  109. package/dist/Input/style/status.less +105 -0
  110. package/dist/MemberPicker/style/index.less +2 -2
  111. package/dist/Menu/index.js +6 -9
  112. package/dist/Menu/style/index.less +72 -133
  113. package/dist/Modal/index.d.ts +1 -1
  114. package/dist/Modal/index.js +32 -43
  115. package/dist/Modal/style/index.less +3 -191
  116. package/dist/Modal/style/modal.less +132 -0
  117. package/dist/Modal/style/modalConfirm.less +100 -0
  118. package/dist/Pagination/index.js +4 -2
  119. package/dist/Pagination/style/index.less +11 -4
  120. package/dist/Popconfirm/index.js +8 -7
  121. package/dist/Popconfirm/style/index.less +16 -6
  122. package/dist/Popover/style/index.less +29 -29
  123. package/dist/Radio/components/Group/index.js +3 -5
  124. package/dist/Radio/components/Radio/index.js +2 -1
  125. package/dist/Radio/interface/radioGroup.d.ts +1 -1
  126. package/dist/Radio/style/index.less +69 -56
  127. package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
  128. package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
  129. package/dist/Select/components/SingleOption.d.ts +2 -2
  130. package/dist/Select/components/SingleOption.js +3 -1
  131. package/dist/Select/index.d.ts +5 -0
  132. package/dist/Select/index.js +26 -40
  133. package/dist/Select/style/index.less +96 -76
  134. package/dist/Select/style/layout.less +41 -0
  135. package/dist/Select/style/option.less +42 -3
  136. package/dist/Select/style/selectDropdown.less +17 -0
  137. package/dist/Select/style/size.less +95 -82
  138. package/dist/Select/style/status.less +69 -21
  139. package/dist/Select/style/variables.less +8 -15
  140. package/dist/Skeleton/style/index.less +84 -4
  141. package/dist/Spin/CustomIcon/index.d.ts +3 -0
  142. package/dist/Spin/CustomIcon/index.js +20 -15
  143. package/dist/Spin/CustomIcon/index.less +32 -105
  144. package/dist/Spin/index.d.ts +2 -0
  145. package/dist/Spin/index.js +8 -2
  146. package/dist/Spin/style/index.less +9 -1
  147. package/dist/Switch/index.d.ts +1 -1
  148. package/dist/Switch/style/index.less +130 -56
  149. package/dist/Table/style/index.less +16 -8
  150. package/dist/Tabs/index.d.ts +2 -2
  151. package/dist/Tabs/index.js +4 -4
  152. package/dist/Tabs/style/index.less +20 -16
  153. package/dist/TextLink/index.d.ts +44 -0
  154. package/dist/TextLink/index.js +25 -0
  155. package/dist/TextLink/style/index.d.ts +2 -0
  156. package/dist/TextLink/style/index.js +2 -0
  157. package/dist/TextLink/style/index.less +9 -0
  158. package/dist/TextLink/style/size.less +37 -0
  159. package/dist/TextLink/style/type.less +44 -0
  160. package/dist/Tree/style/var.less +1 -1
  161. package/dist/ald.min.css +1 -1
  162. package/dist/index.d.ts +2 -1
  163. package/dist/index.js +1 -1
  164. package/dist/index.less +1 -0
  165. package/dist/message/index.js +15 -14
  166. package/dist/message/style/color.less +22 -41
  167. package/dist/message/style/index.less +15 -16
  168. package/dist/notification/demo/index.js +1 -0
  169. package/dist/notification/index.js +18 -18
  170. package/dist/notification/style/index.less +12 -6
  171. package/dist/style/index.less +1 -0
  172. package/dist/style/themes/default/default.less +1 -1
  173. package/dist/style/themes/default/index.less +3 -3
  174. package/dist/style/themes/default/scrollBar.less +1 -1
  175. package/dist/style/var/default.css +1334 -0
  176. package/package.json +4 -3
  177. package/dist/Icon/components/Icon.d.ts +0 -32
  178. package/dist/Icon/components/Icon.js +0 -25
  179. package/dist/Input/components/Group/index.d.ts +0 -18
  180. package/dist/Input/components/Group/index.js +0 -19
  181. package/dist/Menu/style/dropdown.less +0 -61
  182. package/dist/Select/style/multiple.less +0 -55
  183. package/dist/Select/style/single.less +0 -44
@@ -1,26 +1,39 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- // v3.2的设计稿中所有复选框的边框都是如此,所以此处写死,后续如若需要修改请移除
4
- .ant-checkbox-inner {
5
- border: 1px solid #dbdbdb !important;
6
- background-color: #fff !important;
7
- transform: scale(0.875);
8
- }
9
- // 此处同理
10
- .ant-checkbox::after,
11
- .ant-checkbox-checked::after {
12
- border: 1px solid #dbdbdb !important;
13
- }
14
-
15
- .ant-checkbox-checked {
16
- .ant-checkbox-inner {
17
- background-color: #f8f8f8 !important;
18
- }
19
-
20
- &::after {
21
- background-color: #f8f8f8 !important;
22
- }
23
- }
3
+ @checkbox-border-color-normal: var(
4
+ --alias-colors-border-accent-gray-subtle-default
5
+ );
6
+ @checkbox-border-color-hover: var(
7
+ --alias-colors-border-accent-gray-subtle-hover
8
+ );
9
+ @checkbox-border-color-active: var(
10
+ --alias-colors-border-accent-gray-subtle-default
11
+ );
12
+ @checkbox-border-color-disabled: var(--alias-colors-border-disabled);
13
+
14
+ @checkbox-inner-bgc-normal: var(--alias-colors-bg-skeleton-subtler);
15
+ @checkbox-inner-bgc-hover: var(--alias-colors-bg-skeleton-subtler);
16
+ @checkbox-inner-bgc-active: var(--alias-colors-bg-skeleton-strong);
17
+ @checkbox-inner-bgc-disabled: var(--alias-colors-border-disabled);
18
+
19
+ @checkbox-checked-inner-bgc-normal: var(
20
+ --alias-colors-bg-selected-strong-default,
21
+ #126fdd
22
+ );
23
+ @checkbox-checked-inner-bgc-hover: var(
24
+ --alias-colors-bg-selected-strong-hover,
25
+ #0f59b1
26
+ );
27
+ @checkbox-checked-inner-bgc-active: var(
28
+ --alias-colors-bg-selected-strong-press,
29
+ #0b4385
30
+ );
31
+ @checkbox-checked-inner-bgc-disabled: var(
32
+ --alias-colors-bg-disabled,
33
+ rgba(0, 0, 0, 0.05)
34
+ );
35
+
36
+ @checkout-border-radius: var(--alias-radius-25);
24
37
 
25
38
  .ald-checkout-group-vertical {
26
39
  display: flex;
@@ -52,72 +65,113 @@
52
65
  .ant-checkbox-input {
53
66
  margin: 0;
54
67
  }
68
+
69
+ &:hover {
70
+ & .ant-checkbox-checked,
71
+ & .ant-checkbox-indeterminate {
72
+ .ant-checkbox-inner[class] {
73
+ background-color: @checkbox-checked-inner-bgc-hover;
74
+ }
75
+ }
76
+
77
+ .ant-checkbox-inner[class] {
78
+ background-color: @checkbox-inner-bgc-hover;
79
+ border-color: @checkbox-border-color-hover;
80
+ }
81
+
82
+ .ant-checkbox-checked.ant-checkbox-disabled {
83
+ .ant-checkbox-inner[class][class] {
84
+ background: @checkbox-checked-inner-bgc-disabled;
85
+ }
86
+ }
87
+
88
+ .ant-checkbox-disabled {
89
+ .ant-checkbox-inner[class][class] {
90
+ background: @checkbox-inner-bgc-disabled;
91
+ }
92
+ }
93
+ }
94
+
95
+ &:active {
96
+ & .ant-checkbox-checked,
97
+ & .ant-checkbox-indeterminate {
98
+ .ant-checkbox-inner[class] {
99
+ background-color: @checkbox-checked-inner-bgc-active;
100
+ }
101
+ }
102
+
103
+ .ant-checkbox-inner[class] {
104
+ background-color: @checkbox-inner-bgc-active;
105
+ border-color: @checkbox-border-color-active;
106
+ }
107
+ }
108
+
109
+ .ant-checkbox-checked.ant-checkbox-disabled {
110
+ .ant-checkbox-inner[class][class] {
111
+ background: @checkbox-checked-inner-bgc-disabled;
112
+ }
113
+ }
114
+
115
+ .ant-checkbox-disabled {
116
+ .ant-checkbox-inner[class][class] {
117
+ background: @checkbox-inner-bgc-disabled;
118
+ }
119
+ }
55
120
  }
56
121
 
57
122
  .ant-checkbox-inner {
58
123
  width: 16px;
59
124
  height: 16px;
60
- background-color: @BG100;
61
- border-color: @NL60;
125
+ background-color: @checkbox-inner-bgc-normal;
126
+ border-color: @checkbox-border-color-normal;
62
127
  border-radius: 2px;
63
128
  }
64
129
 
65
130
  .ant-checkbox-checked {
66
131
  &::after,
67
132
  .ant-checkbox-inner {
68
- background-color: @B95;
69
- border-color: @B40;
133
+ border: 0;
134
+ background-color: @checkbox-checked-inner-bgc-normal;
70
135
  border-radius: 2px;
71
136
  }
72
137
 
73
138
  .ant-checkbox-inner {
74
- background-color: @B95;
75
- border-color: @B40;
139
+ background-color: @checkbox-checked-inner-bgc-normal;
76
140
 
77
141
  &::after {
78
- // top: 3px;
79
- // left: 2px;
142
+ top: 4px;
143
+ left: 3px;
80
144
  z-index: 10;
81
- // width: 10px;
82
- // background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAQCAYAAAAS7Y8mAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADLSURBVHgBrdTPDcIgFAZwHo3O0RF6MdGbjuAI3aCjuAGj6E3jyRGYQwPIR2rT1mfDH79Lyct7vxRIIPGHbLtr/aJKrZxpb6edRk2KwgB9kjw74fb4brp7Uwx/UL+s+1JtyakimEERbZw9YkEiI79Q6+zh0Z9xMhyDDjB3qyVogGfNeu2bODwFRST+dNQchoGUoAE2fvtoGtUmeA6KhDNu/LBkhmUlW2usSkUHeAGfJwqdwBF4NPoFL+BJKAszeDKKsG8FEGAk6JKDIm/pQrazK2zB6QAAAABJRU5ErkJggg==')
83
- // no-repeat;
84
- // background-size: 100%, 100%;
85
- // border-width: 0;
86
- // transform: none;
87
- position: absolute;
88
- // top: 0;
89
- // left: 0;
90
- // width: 100%;
91
- // height: 100%;
92
- border: 2px solid #3271c9;
93
- border-top: 0;
94
- border-left: 0;
95
- transform: rotate(45deg) scale(1) translate(-50%, -50%);
96
- opacity: 1;
97
- transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
145
+ width: 10px;
146
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
147
+ background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJJY29uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuNTMwMzMgMC45Njk2N0M5LjgyMzIyIDEuMjYyNTYgOS44MjMyMiAxLjczNzQ0IDkuNTMwMzMgMi4wMzAzM0w0LjUzMDMzIDcuMDMwMzNDNC4yMzc0NCA3LjMyMzIyIDMuNzYyNTYgNy4zMjMyMiAzLjQ2OTY3IDcuMDMwMzNMMC45Njk2NyA0LjUzMDMzQzAuNjc2Nzc3IDQuMjM3NDQgMC42NzY3NzcgMy43NjI1NiAwLjk2OTY3IDMuNDY5NjdDMS4yNjI1NiAzLjE3Njc4IDEuNzM3NDQgMy4xNzY3OCAyLjAzMDMzIDMuNDY5NjdMNCA1LjQzOTM0TDguNDY5NjcgMC45Njk2N0M4Ljc2MjU2IDAuNjc2Nzc3IDkuMjM3NDQgMC42NzY3NzcgOS41MzAzMyAwLjk2OTY3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==')
148
+ no-repeat;
149
+ background-size: 100%, 100%;
150
+ border-width: 0;
151
+ transform: none;
98
152
  }
99
153
  }
100
154
  }
101
155
 
102
156
  .ant-checkbox-disabled {
103
157
  cursor: default;
104
- opacity: 0.5;
105
158
 
106
159
  & + span {
107
160
  color: @NL0;
108
161
  cursor: default;
109
- opacity: 0.5;
110
162
  }
111
163
 
112
164
  .ant-checkbox-inner {
165
+ background-color: @checkbox-inner-bgc-disabled;
166
+
113
167
  &::after {
114
- top: 3px;
115
- left: 2px;
168
+ top: 4px;
169
+ left: 3px;
116
170
  z-index: 10;
117
171
  width: 10px;
118
172
  height: 8px;
119
173
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
120
- background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAQCAYAAAAS7Y8mAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADLSURBVHgBrdTPDcIgFAZwHo3O0RF6MdGbjuAI3aCjuAGj6E3jyRGYQwPIR2rT1mfDH79Lyct7vxRIIPGHbLtr/aJKrZxpb6edRk2KwgB9kjw74fb4brp7Uwx/UL+s+1JtyakimEERbZw9YkEiI79Q6+zh0Z9xMhyDDjB3qyVogGfNeu2bODwFRST+dNQchoGUoAE2fvtoGtUmeA6KhDNu/LBkhmUlW2usSkUHeAGfJwqdwBF4NPoFL+BJKAszeDKKsG8FEGAk6JKDIm/pQrazK2zB6QAAAABJRU5ErkJggg==')
174
+ background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJJY29uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuNTMwMzMgMC45Njk2N0M5LjgyMzIyIDEuMjYyNTYgOS44MjMyMiAxLjczNzQ0IDkuNTMwMzMgMi4wMzAzM0w0LjUzMDMzIDcuMDMwMzNDNC4yMzc0NCA3LjMyMzIyIDMuNzYyNTYgNy4zMjMyMiAzLjQ2OTY3IDcuMDMwMzNMMC45Njk2NyA0LjUzMDMzQzAuNjc2Nzc3IDQuMjM3NDQgMC42NzY3NzcgMy43NjI1NiAwLjk2OTY3IDMuNDY5NjdDMS4yNjI1NiAzLjE3Njc4IDEuNzM3NDQgMy4xNzY3OCAyLjAzMDMzIDMuNDY5NjdMNCA1LjQzOTM0TDguNDY5NjcgMC45Njk2N0M4Ljc2MjU2IDAuNjc2Nzc3IDkuMjM3NDQgMC42NzY3NzcgOS41MzAzMyAwLjk2OTY3WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC4yNSIvPgo8L3N2Zz4K')
121
175
  no-repeat;
122
176
  background-size: 100%, 100%;
123
177
  border-width: 0;
@@ -128,13 +182,14 @@
128
182
 
129
183
  .ant-checkbox-indeterminate {
130
184
  .ant-checkbox-inner {
131
- background-color: @B95;
132
- border-color: @B40;
185
+ background-color: @checkbox-checked-inner-bgc-normal;
186
+ border: 0;
133
187
 
134
188
  &::after {
135
189
  width: 10px;
136
190
  height: 2px;
137
- background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAECAYAAACOXx+WAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAiSURBVHgBzcwxAQAACAIwNJLNjEkqKMHBAmzuKQQtwvpDAw6CAnPPhHsoAAAAAElFTkSuQmCC');
191
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
192
+ background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IgMSAoU3Ryb2tlKSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjc1IDFDMC43NSAwLjU4NTc4NiAxLjA4NTc5IDAuMjUgMS41IDAuMjVIOC41QzguOTE0MjEgMC4yNSA5LjI1IDAuNTg1Nzg2IDkuMjUgMUM5LjI1IDEuNDE0MjEgOC45MTQyMSAxLjc1IDguNSAxLjc1SDEuNUMxLjA4NTc5IDEuNzUgMC43NSAxLjQxNDIxIDAuNzUgMVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');
138
193
  background-size: 100%, 100%;
139
194
  background-color: @ND0;
140
195
  border-radius: 2px;
@@ -146,59 +201,8 @@
146
201
  display: flex;
147
202
  align-items: center;
148
203
  padding-right: 12px;
149
- padding-left: 4px;
150
- font-size: 13px;
151
- }
152
-
153
- &:hover .ant-checkbox-inner[class][class] {
154
- border-color: #dbdbdb;
155
- }
156
-
157
- &.ant-checkbox-checked.ant-checkbox-disabled .ant-checkbox-inner {
158
- background: @B95;
159
- border: 1px solid @B60;
160
- border-radius: 2px;
161
- }
162
-
163
- & .ant-checkbox-checked.ant-checkbox-disabled {
164
- &:hover .ant-checkbox-inner[class][class] {
165
- border-color: @B40;
166
- }
167
- }
168
-
169
- .ant-checkbox:hover .ant-checkbox-inner {
170
- border-color: @B40;
171
- // box-shadow: @shadow-primary;
172
- box-shadow: none;
173
- background-color: none;
174
- }
175
- }
176
-
177
- .ant-checkbox-wrapper
178
- .ald-checkbox.ant-checkbox-disabled[class]
179
- .ant-checkbox-inner:hover {
180
- box-shadow: unset;
181
- background-color: none;
182
- border-radius: 2px;
183
- }
184
-
185
- .ant-checkbox-wrapper.ald-checkbox
186
- .ant-checkbox-disabled.ant-checkbox:hover
187
- .ant-checkbox-inner {
188
- box-shadow: unset;
189
- background-color: none;
190
- border: 1px solid @BG60;
191
- }
192
-
193
- .ant-checkbox-group.ald-checkbox,
194
- .ant-checkbox-wrapper.ald-checkbox {
195
- .ant-checkbox-input:focus + .ant-checkbox-inner {
196
- border-color: @B40;
197
- }
198
-
199
- .ant-checkbox:hover .ant-checkbox-inner {
200
- border-color: @B40;
201
- background-color: none;
204
+ padding-left: 6px;
205
+ font-size: 14px;
202
206
  }
203
207
  }
204
208
 
@@ -206,13 +210,6 @@
206
210
  cursor: default;
207
211
  }
208
212
 
209
- .ant-checkbox-wrapper[class]:hover .ant-checkbox::after {
210
- visibility: hidden;
211
- }
212
-
213
- .ant-checkbox-checked:hover .ant-checkbox-inner[class] {
214
- background-color: transparent;
215
- }
216
213
  @keyframes ald-checkbox-effect {
217
214
  0% {
218
215
  transform: scale(1);
@@ -1,5 +1,5 @@
1
1
  import { MenuProps } from 'antd';
2
- import React, { ReactElement } from 'react';
2
+ import React from 'react';
3
3
  import DropdownButton from './Button';
4
4
  type Align = {
5
5
  points?: [string, string];
@@ -36,7 +36,6 @@ export interface IDropdownProps {
36
36
  * @type Menu | () => Menu
37
37
  * @default -
38
38
  */
39
- overlay?: ReactElement | (() => ReactElement);
40
39
  menu?: MenuProps;
41
40
  /**
42
41
  * @description 下拉根元素的类名称
@@ -1,134 +1,97 @@
1
1
  @import '../../style/index.less';
2
2
  @import '../../Button/style/index.less';
3
-
4
- @Dropdown-menu-minWidth: 140px;
5
-
6
- .ant-dropdown.ant-dropdown {
7
- border: 1px solid #d5d5d5;
8
- border-radius: 2px;
9
- box-shadow: @shadow-L;
10
-
11
- :first-child {
12
- box-shadow: none !important;
13
- }
14
-
15
- .ant-dropdown-menu {
16
- .ant-dropdown-menu-item.ant-dropdown-menu-item-danger {
17
- &:not(.ant-dropdown-menu-item-disabled) {
18
- color: #b82828;
19
-
20
- &:hover {
21
- background-color: #f8f8f8;
22
- color: #b82828;
23
- }
24
- }
25
- }
26
- }
27
- }
28
-
29
- .ant-dropdown-menu > .ant-dropdown-menu {
30
- padding: 0;
3
+ // dropdown Menu 和子menu的 ul样式
4
+ .dropdown-menu-content {
5
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
6
+ border-radius: 0;
31
7
  box-shadow: none;
32
- }
33
-
34
- .ant-dropdown-menu-submenu-title-content {
35
- padding: 6px 24px 6px 8px;
36
- line-height: 20px;
37
- border-radius: 0 !important;
38
-
39
- &:hover {
40
- background-color: #f8f8f8;
41
- }
8
+ padding: 0;
42
9
 
43
- .ant-dropdown-menu-submenu-expand-icon {
44
- right: 8px;
45
- line-height: 20px;
46
- display: flex;
47
- align-items: center;
48
- height: 100%;
49
- top: 0;
10
+ .ant-dropdown-menu-item-divider,
11
+ .ant-dropdown-menu-submenu-title-divider {
12
+ background-color: var(--alias-colors-border-subtle, #f3f4f6);
13
+ margin: 0;
50
14
  }
51
- }
52
-
53
- .ant-dropdown > .ant-dropdown-menu {
54
- min-width: @Dropdown-menu-minWidth;
55
- padding: 4px;
56
- color: @NL0;
57
- box-shadow: @shadow-L;
58
15
 
59
- .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
60
- display: flex;
61
- .ant-dropdown-menu-submenu-title-content();
16
+ .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
17
+ background-color: unset;
62
18
  }
63
- }
64
-
65
- .ant-dropdown-menu-submenu > .ant-dropdown-menu {
66
- padding: 4px;
67
- color: @NL0;
68
- box-shadow: @shadow-L;
69
19
 
70
- .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
20
+ .ant-dropdown-menu-item,
21
+ .ant-dropdown-menu-submenu .ant-dropdown-menu-submenu-title {
71
22
  display: flex;
72
- .ant-dropdown-menu-submenu-title-content();
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ padding: var(--alias-padding-100, 8px) var(--alias-padding-150, 12px);
26
+ border-radius: 0;
27
+ color: var(--alias-colors-text-default, #1f2937);
28
+ font-size: 14px;
29
+ font-style: normal;
30
+ font-weight: 400;
31
+ line-height: 20px;
32
+ min-width: 140px;
33
+ gap: var(--alias-spacing-50, 4px);
73
34
 
74
35
  &:hover {
75
- background-color: #f8f8f8;
36
+ background-color: unset;
76
37
  }
77
38
 
78
- &.ant-dropdown-menu-item-disabled {
79
- color: @NL80;
80
- cursor: default;
39
+ .ant-dropdown-menu-item-icon {
40
+ font-size: 20px;
41
+ margin: 0;
42
+ }
81
43
 
82
- &:hover {
83
- background-color: @BG100;
84
- }
44
+ .ant-dropdown-menu-title-content {
45
+ text-overflow: ellipsis;
46
+ overflow: hidden;
47
+ white-space: nowrap;
85
48
  }
86
- }
87
- }
88
49
 
89
- .ant-menu.ant-menu,
90
- .ant-submenu.ant-submenu {
91
- .ant-dropdown-menu-item-active {
92
- background-color: #f8f8f8;
50
+ svg {
51
+ flex-shrink: 0;
52
+ }
93
53
  }
94
54
 
95
- .ant-dropdown-menu-item {
96
- padding: 8px 12px;
97
- line-height: 20px;
98
- border-radius: 0;
99
- }
100
-
101
- .ant-dropdown-menu-item,
102
- .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
103
- display: flex;
104
- .ant-dropdown-menu-submenu-title-content();
105
-
106
- padding: 8px 24px 8px 8px;
55
+ .ant-dropdown-menu-item.ant-dropdown-menu-item-disabled {
56
+ cursor: default;
57
+ color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
107
58
 
108
59
  &:hover {
109
- background-color: #f8f8f8;
60
+ background-color: var(--alias-colors-bg-transp, rgba(0, 0, 0, 0));
110
61
  }
62
+ }
111
63
 
112
- &.ant-dropdown-menu-item-disabled {
113
- color: @NL80;
114
- cursor: default;
115
-
116
- &:hover {
117
- background-color: @BG100;
118
- }
119
- }
64
+ .ant-dropdown-menu-item:hover,
65
+ .ant-dropdown-menu-submenu:hover,
66
+ .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-active {
67
+ background-color: var(
68
+ --alias-colors-bg-interaction-hover,
69
+ rgba(0, 0, 0, 0.05)
70
+ );
120
71
  }
121
72
  }
122
73
 
123
- .ant-submenu.ant-dropdown-menu-submenu-popup {
124
- padding: 0;
125
- border: none;
126
- box-shadow: @shadow-L;
127
-
128
- ul {
129
- min-width: @Dropdown-menu-minWidth;
130
- margin: 0;
131
- padding: 4px;
132
- border-radius: 2px;
74
+ // 容器样式
75
+ .dropdown-wrap {
76
+ border: 1px solid var(--alias-colors-border-strong, #d1d5db);
77
+ border-radius: var(--alias-radius-75, 6px);
78
+ box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
79
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
80
+ overflow: hidden;
81
+ }
82
+ // dropdown的容器
83
+ .ant-dropdown.ant-dropdown {
84
+ .dropdown-wrap();
85
+ // dropdown内的ul
86
+ .ant-dropdown-menu-root.ant-dropdown-menu {
87
+ .dropdown-menu-content();
88
+ }
89
+ }
90
+ // 子级menu菜单
91
+ .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-popup {
92
+ .dropdown-wrap();
93
+ // dropdown 二级菜单中的ul
94
+ .ant-dropdown-menu-sub {
95
+ .dropdown-menu-content();
133
96
  }
134
97
  }
@@ -1,7 +1,7 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import * as React from 'react';
3
3
  interface SVGRProps {
4
- size?: number;
4
+ size?: number | string;
5
5
  title?: string;
6
6
  titleId?: string;
7
7
  desc?: string;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ import * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var AlertTriangleLine = function AlertTriangleLine(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "m12 3 9 16H3l9-16Zm7.29 15H4.71L12 5.04 19.29 18Zm-7.79-4V9h1v5h-1Zm1.5 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(AlertTriangleLine);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ import * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var ArrowDownFill = function ArrowDownFill(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "M7.833 9.583a.833.833 0 0 0-.589 1.423l4.167 4.167a.833.833 0 0 0 1.178 0l4.167-4.167a.833.833 0 0 0-.59-1.423H7.834Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(ArrowDownFill);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ import * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var AttentionCircleFill = function AttentionCircleFill(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm10 1a1 1 0 0 1-1-1V8a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1Zm-1.5 3a1.5 1.5 0 0 1 1.5-1.5h.01a1.5 1.5 0 0 1 1.5 1.5v.01a1.5 1.5 0 0 1-1.5 1.5H12a1.5 1.5 0 0 1-1.5-1.5V16Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(AttentionCircleFill);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;