@aloudata/aloudata-design 0.2.0-beta.5 → 0.2.0-beta.8

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 (141) hide show
  1. package/es/Button/index.d.ts +0 -1
  2. package/es/Button/index.js +0 -1
  3. package/es/Button/style/index.js +1 -1
  4. package/es/Button/style/index.less +265 -0
  5. package/es/Dropdown/Button.d.ts +0 -1
  6. package/es/Dropdown/Button.js +0 -1
  7. package/es/Dropdown/index.d.ts +0 -1
  8. package/es/Dropdown/index.js +0 -1
  9. package/es/Dropdown/style/index.js +1 -1
  10. package/es/Dropdown/style/index.less +40 -0
  11. package/es/Empty/index.d.ts +0 -1
  12. package/es/Empty/index.js +0 -1
  13. package/es/Empty/style/index.js +1 -1
  14. package/es/Empty/style/index.less +24 -0
  15. package/es/Icon/index.js +3 -1
  16. package/es/Icon/index.less +32 -0
  17. package/es/Input/index.d.ts +0 -1
  18. package/es/Input/index.js +1 -2
  19. package/es/Input/style/index.js +1 -1
  20. package/es/Input/style/index.less +67 -0
  21. package/es/Menu/Divider.d.ts +0 -1
  22. package/es/Menu/Divider.js +0 -1
  23. package/es/Menu/MenuItem.d.ts +0 -1
  24. package/es/Menu/MenuItem.js +0 -1
  25. package/es/Menu/SubMenu.d.ts +0 -1
  26. package/es/Menu/SubMenu.js +0 -1
  27. package/es/Menu/index.d.ts +0 -1
  28. package/es/Menu/index.js +0 -1
  29. package/es/Menu/style/index.js +1 -1
  30. package/es/Menu/style/index.less +37 -0
  31. package/es/Navigator/index.d.ts +0 -1
  32. package/es/Navigator/index.js +0 -1
  33. package/es/Navigator/style/index.js +1 -1
  34. package/es/Navigator/style/index.less +228 -0
  35. package/es/Select/Selector/index.js +1 -1
  36. package/es/Select/index.d.ts +0 -1
  37. package/es/Select/index.js +0 -1
  38. package/es/Select/style/index.js +1 -1
  39. package/es/Select/style/index.less +532 -0
  40. package/es/Table/index.d.ts +0 -1
  41. package/es/Table/index.js +0 -1
  42. package/es/Table/style/index.js +1 -1
  43. package/es/Table/style/index.less +149 -0
  44. package/es/Tabs/index.d.ts +0 -1
  45. package/es/Tabs/index.js +0 -1
  46. package/es/Tabs/style/index.js +1 -1
  47. package/es/Tabs/style/index.less +61 -0
  48. package/es/Tooltip/index.d.ts +0 -1
  49. package/es/Tooltip/index.js +0 -1
  50. package/es/Tooltip/style/index.js +1 -1
  51. package/es/Tooltip/style/index.less +14 -0
  52. package/es/style/index.js +1 -1
  53. package/es/style/index.less +3 -0
  54. package/es/style/mixins/{index.css → index.less} +0 -0
  55. package/es/style/themes/default/index.less +36 -0
  56. package/es/style/themes/default/themeColor.module.less +259 -0
  57. package/lib/Button/index.d.ts +0 -1
  58. package/lib/Button/index.js +0 -2
  59. package/lib/Button/style/index.js +1 -1
  60. package/lib/Button/style/index.less +265 -0
  61. package/lib/Dropdown/Button.d.ts +0 -1
  62. package/lib/Dropdown/Button.js +0 -2
  63. package/lib/Dropdown/index.d.ts +0 -1
  64. package/lib/Dropdown/index.js +0 -2
  65. package/lib/Dropdown/style/index.js +1 -1
  66. package/lib/Dropdown/style/index.less +40 -0
  67. package/lib/Empty/index.d.ts +0 -1
  68. package/lib/Empty/index.js +0 -2
  69. package/lib/Empty/style/index.js +1 -1
  70. package/lib/Empty/style/index.less +24 -0
  71. package/lib/Icon/index.js +5 -3
  72. package/lib/Icon/index.less +32 -0
  73. package/lib/Input/index.d.ts +0 -1
  74. package/lib/Input/index.js +0 -2
  75. package/lib/Input/style/index.js +1 -1
  76. package/lib/Input/style/index.less +67 -0
  77. package/lib/Menu/Divider.d.ts +0 -1
  78. package/lib/Menu/Divider.js +0 -2
  79. package/lib/Menu/MenuItem.d.ts +0 -1
  80. package/lib/Menu/MenuItem.js +0 -2
  81. package/lib/Menu/SubMenu.d.ts +0 -1
  82. package/lib/Menu/SubMenu.js +0 -2
  83. package/lib/Menu/index.d.ts +0 -1
  84. package/lib/Menu/index.js +0 -2
  85. package/lib/Menu/style/index.js +1 -1
  86. package/lib/Menu/style/index.less +37 -0
  87. package/lib/Navigator/index.d.ts +0 -1
  88. package/lib/Navigator/index.js +0 -2
  89. package/lib/Navigator/style/index.js +1 -1
  90. package/lib/Navigator/style/index.less +228 -0
  91. package/lib/Select/Selector/index.js +1 -1
  92. package/lib/Select/index.d.ts +0 -1
  93. package/lib/Select/index.js +0 -2
  94. package/lib/Select/style/index.js +1 -1
  95. package/lib/Select/style/index.less +532 -0
  96. package/lib/Table/index.d.ts +0 -1
  97. package/lib/Table/index.js +0 -2
  98. package/lib/Table/style/index.js +1 -1
  99. package/lib/Table/style/index.less +149 -0
  100. package/lib/Tabs/index.d.ts +0 -1
  101. package/lib/Tabs/index.js +0 -2
  102. package/lib/Tabs/style/index.js +1 -1
  103. package/lib/Tabs/style/index.less +61 -0
  104. package/lib/Tooltip/index.d.ts +0 -1
  105. package/lib/Tooltip/index.js +0 -2
  106. package/lib/Tooltip/style/index.js +1 -1
  107. package/lib/Tooltip/style/index.less +14 -0
  108. package/lib/style/index.js +1 -1
  109. package/lib/style/index.less +3 -0
  110. package/lib/style/mixins/{index.css → index.less} +0 -0
  111. package/lib/style/themes/default/index.less +36 -0
  112. package/lib/style/themes/default/themeColor.module.less +259 -0
  113. package/package.json +11 -2
  114. package/es/Button/style/index.css +0 -374
  115. package/es/Dropdown/style/index.css +0 -178
  116. package/es/Empty/style/index.css +0 -162
  117. package/es/Icon/index.css +0 -8
  118. package/es/Input/style/index.css +0 -215
  119. package/es/Menu/style/index.css +0 -208
  120. package/es/Navigator/style/index.css +0 -328
  121. package/es/Select/style/index.css +0 -493
  122. package/es/Table/style/index.css +0 -248
  123. package/es/Tabs/style/index.css +0 -194
  124. package/es/Tooltip/style/index.css +0 -154
  125. package/es/style/index.css +0 -145
  126. package/es/style/themes/default/index.css +0 -145
  127. package/es/style/themes/default/themeColor.module.css +0 -145
  128. package/lib/Button/style/index.css +0 -374
  129. package/lib/Dropdown/style/index.css +0 -178
  130. package/lib/Empty/style/index.css +0 -162
  131. package/lib/Icon/index.css +0 -8
  132. package/lib/Input/style/index.css +0 -215
  133. package/lib/Menu/style/index.css +0 -208
  134. package/lib/Navigator/style/index.css +0 -328
  135. package/lib/Select/style/index.css +0 -493
  136. package/lib/Table/style/index.css +0 -248
  137. package/lib/Tabs/style/index.css +0 -194
  138. package/lib/Tooltip/style/index.css +0 -154
  139. package/lib/style/index.css +0 -145
  140. package/lib/style/themes/default/index.css +0 -145
  141. package/lib/style/themes/default/themeColor.module.css +0 -145
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './style';
3
2
  import type { ButtonProps as AntdButtonProps } from 'antd/lib/button';
4
3
  export declare type ButtonType = 'primary' | 'secondary' | 'danger' | 'text' | 'link';
5
4
  export declare type Size = 'small' | 'default' | 'large';
@@ -13,7 +13,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
13
13
  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; }
14
14
 
15
15
  import React from 'react';
16
- import './style';
17
16
  import classNames from 'classnames';
18
17
  import usePrefixCls from '../_utils/hooks/usePrefixCls';
19
18
  var iconPrefixCls = 'anticon';
@@ -1,2 +1,2 @@
1
1
  import '../../style';
2
- import "./index.css";
2
+ import './index.less';
@@ -0,0 +1,265 @@
1
+ @import '../../style/index.less';
2
+
3
+ @ald-prefix:ant;
4
+ @ald-iconfont-css-prefix:anticon;
5
+
6
+ .ant-btn {
7
+ &.ant-btn {
8
+ // &-loading::before{
9
+ // // display: none !important;
10
+ // }
11
+
12
+ &-primary,
13
+ &-dangerous,
14
+ &-secondary,
15
+ &-text,
16
+ &-link {
17
+ font-size: 12px;
18
+ height: @height-base;
19
+ padding: 0 12px;
20
+ display: inline-flex;
21
+ line-height: @height-base;
22
+ align-items: center;
23
+ font-weight: 500;
24
+ justify-content: center;
25
+ .@{ald-iconfont-css-prefix} {
26
+ + span {
27
+ margin-left: 4px;
28
+ }
29
+
30
+ &-icon-left {
31
+ margin-left: -4px;
32
+ }
33
+
34
+ &-icon-right {
35
+ margin-right: -4px;
36
+ }
37
+ }
38
+ }
39
+
40
+ &-primary {
41
+ background-color: @B40;
42
+ border-color: @B40;
43
+ box-shadow: none;
44
+ border-radius: @border-radius-base;
45
+ text-shadow: @text-shadow;
46
+
47
+ &:hover,
48
+ &:focus,
49
+ &:active,
50
+ &.ant-btn-loading {
51
+ background-color: @B20;
52
+ border-color: @B20;
53
+ color: @ND0;
54
+ }
55
+
56
+ &[disabled] {
57
+ background-color: @NL90;
58
+ border-color: transparent;
59
+ color: @NL80;
60
+
61
+ &:hover,
62
+ &:focus,
63
+ &:active {
64
+ background-color: @NL90;
65
+ border-color: transparent;
66
+ color: @NL80;
67
+ }
68
+ }
69
+ }
70
+
71
+ &-dangerous.ant-btn-primary {
72
+ background-color: @SC40;
73
+ border-color: @SC40;
74
+ color: @ND0;
75
+ text-shadow: @text-shadow;
76
+ box-shadow: unset;
77
+
78
+ &:hover {
79
+ background-color: @SC20;
80
+ border-color: @SC20;
81
+ color: @ND0;
82
+ }
83
+
84
+ &:focus,
85
+ &:active,
86
+ &.ant-btn-loading {
87
+ background-color: @SC20;
88
+ border-color: @SC20;
89
+ color: @ND0;
90
+ }
91
+
92
+ &[disabled] {
93
+ background-color: @NL90;
94
+ border-color: transparent;
95
+ color: @NL80;
96
+
97
+ &:hover,
98
+ &:focus,
99
+ &:active {
100
+ background-color: @NL90;
101
+ border-color: transparent;
102
+ color: @NL80;
103
+ }
104
+ }
105
+ }
106
+
107
+ &-secondary {
108
+ background-color: @BG100;
109
+ border-color: @NL90;
110
+ color: @NL30;
111
+ box-shadow: none;
112
+ border-radius: @border-radius-base;
113
+ text-shadow: @text-shadow;
114
+
115
+ &:hover,
116
+ &:focus,
117
+ &:active,
118
+ &.ant-btn-loading {
119
+ background-color: @NL97;
120
+ border-color: @NL90;
121
+ color: @NL30;
122
+ }
123
+
124
+ &[disabled] {
125
+ background-color: @BG100;
126
+ border-color: @NL90;
127
+ color: @NL80;
128
+
129
+ &:hover,
130
+ &:focus,
131
+ &:active {
132
+ background-color: @BG100;
133
+ border-color: @NL90;
134
+ color: @NL80;
135
+ }
136
+ }
137
+ }
138
+
139
+ &-text {
140
+ background-color: @BG100;
141
+ border-color: @BG100;
142
+ color: @NL30;
143
+ box-shadow: none;
144
+ border-radius: @border-radius-base;
145
+ text-shadow: @text-shadow;
146
+
147
+ &:hover,
148
+ &:focus,
149
+ &:active,
150
+ &.ant-btn-loading {
151
+ background-color: @NL97;
152
+ // border-color: @NL97;
153
+ color: @NL30;
154
+ }
155
+
156
+ &[disabled] {
157
+ background-color: transparent;
158
+ border-color: transparent;
159
+ color: @NL80;
160
+
161
+ &:hover,
162
+ &:focus,
163
+ &:active {
164
+ background-color: transparent;
165
+ border-color: transparent;
166
+ color: @NL80;
167
+ }
168
+ }
169
+ }
170
+
171
+ &-link {
172
+ background-color: @BG100;
173
+ border-color: @BG100;
174
+ color: @B40;
175
+ font-weight: 400;
176
+ box-shadow: none;
177
+ border-radius: @border-radius-base;
178
+ text-shadow: @text-shadow;
179
+
180
+ &:hover,
181
+ &:focus,
182
+ &:active,
183
+ &.ant-btn-loading {
184
+ background-color: @BG100;
185
+ border-color: @BG100;
186
+ color: @B20;
187
+ }
188
+
189
+ &[disabled] {
190
+ background-color: transparent;
191
+ border-color: transparent;
192
+ color: @NL80;
193
+
194
+ &:hover,
195
+ &:focus,
196
+ &:active {
197
+ background-color: transparent;
198
+ border-color: transparent;
199
+ color: @NL80;
200
+ }
201
+ }
202
+ }
203
+
204
+ &-icon-only {
205
+ justify-content: center;
206
+ padding: 0;
207
+ vertical-align: bottom;
208
+ height: @height-base;
209
+ width: @height-base;
210
+
211
+ &.ant-btn-loading-icon {
212
+ vertical-align: baseline;
213
+ }
214
+ .@{ald-iconfont-css-prefix} {
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: center;
218
+ margin-left: 0;
219
+ }
220
+ }
221
+
222
+ &-circle {
223
+ width: @height-base;
224
+ min-width: auto;
225
+ padding: 0;
226
+ justify-content: center;
227
+ border-radius: 50%;
228
+ }
229
+
230
+ &-lg {
231
+ height: 32px;
232
+ font-size: 14px;
233
+ min-width: auto;
234
+
235
+ &.ant-btn-icon-only {
236
+ height: 32px;
237
+ width: 32px;
238
+ min-width: auto;
239
+ }
240
+
241
+ &.ant-btn-circle {
242
+ width: 32px;
243
+ height: 32px;
244
+ border-radius: 50%;
245
+ }
246
+ }
247
+
248
+ &-sm {
249
+ height: 24px;
250
+ border-radius: @border-radius-sm;
251
+
252
+ &.ant-btn-icon-only {
253
+ height: 24px;
254
+ width: 24px;
255
+ border-radius: @border-radius-sm;
256
+ }
257
+
258
+ &.ant-btn-circle {
259
+ width: 32px;
260
+ height: 32px;
261
+ border-radius: 50%;
262
+ }
263
+ }
264
+ }
265
+ }
@@ -1,6 +1,5 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { ButtonType, Size } from '../Button';
3
- import './style';
4
3
  export declare type ActionType = 'hover' | 'click' | 'contextMenu';
5
4
  export interface IDropdownButton {
6
5
  /**
@@ -15,7 +15,6 @@ import Button from '../Button'; // eslint-disable-next-line import/no-cycle
15
15
 
16
16
  import Dropdown from './index';
17
17
  import Icon from '../Icon';
18
- import './style';
19
18
  export default function DropdownButton(props) {
20
19
  var children = props.children,
21
20
  overlay = props.overlay,
@@ -1,6 +1,5 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import DropdownButton from './Button';
3
- import './style';
4
3
  export declare type ActionType = 'hover' | 'click' | 'contextMenu';
5
4
  export declare type PlacementType = 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
6
5
  export interface IDropdownProps {
@@ -15,7 +15,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
15
  import React from 'react';
16
16
  // eslint-disable-next-line import/no-cycle
17
17
  import DropdownButton from './Button';
18
- import './style';
19
18
  export default function Dropdown(props) {
20
19
  var children = props.children,
21
20
  visible = props.visible,
@@ -1,2 +1,2 @@
1
1
  import '../../style';
2
- import "./index.css";
2
+ import './index.less';
@@ -0,0 +1,40 @@
1
+ @import '../../style/index.less';
2
+
3
+ .ant-dropdown-menu > .ant-dropdown-menu {
4
+ padding: 0;
5
+ box-shadow: none;
6
+ }
7
+
8
+ .ald-menu,
9
+ .ald-submenu {
10
+ .ant-dropdown-menu-item-active {
11
+ background-color: @NL97;
12
+ }
13
+
14
+ .ant-dropdown-menu-item-disabled {
15
+ color: @NL80;
16
+ }
17
+
18
+ .ant-dropdown-menu-submenu-title {
19
+ padding: 5px 24px 5px 12px;
20
+
21
+ .ant-dropdown-menu-submenu-expand-icon {
22
+ right: 12px;
23
+ }
24
+ }
25
+
26
+ .ant-dropdown-menu-item {
27
+ padding: 5px 12px;
28
+ }
29
+
30
+ .ant-dropdown-menu-item,
31
+ .ant-dropdown-menu-submenu-title {
32
+ &:hover {
33
+ background-color: @NL97;
34
+ }
35
+ }
36
+ }
37
+
38
+ .ald-submenu.ant-dropdown-menu-submenu-popup ul {
39
+ margin: 0;
40
+ }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './style';
3
2
  interface IEmptyProps {
4
3
  description?: string;
5
4
  children?: React.ReactNode;
package/es/Empty/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import React from 'react';
3
3
  import usePrefixCls from '../_utils/hooks/usePrefixCls';
4
- import './style';
5
4
  export default (function (_ref) {
6
5
  var description = _ref.description,
7
6
  children = _ref.children;
@@ -1 +1 @@
1
- import "./index.css";
1
+ import './index.less';
@@ -0,0 +1,24 @@
1
+ @import '../../style/index.less';
2
+
3
+ @ald-prefix:ant;
4
+ @ald-iconfont-css-prefix:anticon;
5
+
6
+ .ant-empty {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ padding: 46px 0;
11
+ height: 100%;
12
+
13
+ &-content {
14
+ text-align: center;
15
+ }
16
+
17
+ &-description {
18
+ font-size: 12px;
19
+ font-weight: 500;
20
+ color: @NL0;
21
+ text-align: center;
22
+ line-height: 16px;
23
+ }
24
+ }
package/es/Icon/index.js CHANGED
@@ -6,8 +6,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6
6
 
7
7
  import React from 'react';
8
8
  import { createFromIconfontCN } from '@ant-design/icons'; // @ts-ignore iconfont.js 没有ts类型定义
9
+ // import iconfontJs from './iconfont/iconfont';
10
+
11
+ var iconfontJs = require('./iconfont/iconfont');
9
12
 
10
- import iconfontJs from './iconfont/iconfont';
11
13
  var IconFont = createFromIconfontCN({
12
14
  scriptUrl: iconfontJs
13
15
  });
@@ -0,0 +1,32 @@
1
+ .icon {
2
+ font-size: 16px;
3
+ }
4
+
5
+ @icon-font: ald-iconfont;
6
+
7
+ @font-face {
8
+ font-family: @icon-font; /* Project id 3211525 */
9
+ src:
10
+
11
+ url('data:application/x-font-woff2;charset=utf-8;base64,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') format('woff2'),
12
+ url('./iconfont/iconfont.woff?t=1648447992265') format('woff'),
13
+ url('./iconfont/iconfont.ttf?t=1648447992265') format('truetype');
14
+ }
15
+
16
+ .ald-iconfont(@content; @font-size: 16px) {
17
+ font-family: @icon-font !important;
18
+ font-size: 16px;
19
+ font-style: normal;
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+
23
+ &::before {
24
+ content: @content;
25
+ font-size: @font-size;
26
+ display: inline-block;
27
+ }
28
+
29
+ & > svg {
30
+ display: none;
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import type { ShowCountProps, InputProps } from 'antd/lib/input/Input';
3
- import './style';
4
3
  export declare type TSize = 'small' | 'default' | 'large';
5
4
  declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
6
5
  export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange'> {
package/es/Input/index.js CHANGED
@@ -15,8 +15,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
15
  import React from 'react';
16
16
  import TextArea from './components/TextArea';
17
17
  import Password from './components/Password';
18
- import Group from './components/Group';
19
- import './style'; // IInputProps 和 InputProps 类型合并,并去除InputProps中的重复属性
18
+ import Group from './components/Group'; // IInputProps 和 InputProps 类型合并,并去除InputProps中的重复属性
20
19
 
21
20
  function Input(props) {
22
21
  var _props$size = props.size,
@@ -1,2 +1,2 @@
1
1
  import '../../style';
2
- import "./index.css";
2
+ import './index.less';
@@ -0,0 +1,67 @@
1
+ @import '../../style/index.less';
2
+ @import '../../Icon/index.less';
3
+
4
+ @ald-prefix:ant;
5
+
6
+ @ald-iconfont-css-prefix:anticon;
7
+
8
+ .ant-input {
9
+ color: @NL0;
10
+ border-radius: @border-radius-base;
11
+
12
+ &::placeholder {
13
+ color: @NL50;
14
+ }
15
+
16
+ &-prefix {
17
+ color: @NL30;
18
+ }
19
+
20
+ &-suffix {
21
+ color: @NL60;
22
+ }
23
+
24
+ &:focus,
25
+ &-focused {
26
+ border-color: @B40;
27
+ box-shadow: none;
28
+ }
29
+
30
+ &[disabled] {
31
+ border-color: @NL90;
32
+ background-color: @NL95;
33
+ color: @NL80;
34
+
35
+ &::placeholder {
36
+ color: @NL80;
37
+ }
38
+ }
39
+
40
+ &-sm {
41
+ border-radius: @border-radius-sm;
42
+ }
43
+
44
+ &-affix-wrapper {
45
+ border-radius: @border-radius-base;
46
+
47
+ &-hover,
48
+ &-focused,
49
+ &:hover {
50
+ box-shadow: unset;
51
+ }
52
+
53
+ .ant-input {
54
+ border-radius: 0;
55
+ caret-color: @B40;
56
+ }
57
+
58
+ &-sm {
59
+ border-radius: @border-radius-sm;
60
+ }
61
+ }
62
+ }
63
+ .@{ald-iconfont-css-prefix} {
64
+ &.@{ald-iconfont-css-prefix}-close-circle, &.ant-clear-icon {
65
+ .ald-iconfont('\e616');
66
+ }
67
+ }
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import './style';
3
2
  export interface IMenuDividerProps {
4
3
  }
5
4
  export default function Menu(props: IMenuDividerProps): JSX.Element;
@@ -8,7 +8,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
 
10
10
  import React from 'react';
11
- import './style';
12
11
  var AntdMenuDivider = _Menu.Divider;
13
12
  export default function Menu(props) {
14
13
  return /*#__PURE__*/React.createElement(AntdMenuDivider, _objectSpread({}, props));
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './style';
3
2
  import { MenuClickEventHandler } from 'rc-menu/lib/interface';
4
3
  export interface IMenuItemProps {
5
4
  /**
@@ -8,7 +8,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
 
10
10
  import React from 'react';
11
- import './style';
12
11
  var AntdMenuItem = _Menu.Item;
13
12
  export default function Menu(props) {
14
13
  return /*#__PURE__*/React.createElement(AntdMenuItem, _objectSpread({}, props));
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './style';
3
2
  export interface ISubMenuProps {
4
3
  /**
5
4
  * @description 唯一标志
@@ -14,7 +14,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
14
14
 
15
15
  import classNames from 'classnames';
16
16
  import React from 'react';
17
- import './style';
18
17
  var AntdSubMenu = _Menu.SubMenu;
19
18
  export default function SubMenu(props) {
20
19
  var popupClassName = props.popupClassName,
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import MenuItem from './MenuItem';
3
3
  import type { MenuClickEventHandler } from 'rc-menu/lib/interface';
4
- import './style';
5
4
  export interface IMenuProps {
6
5
  /**
7
6
  * @description 点击 MenuItem 调用此函数
package/es/Menu/index.js CHANGED
@@ -17,7 +17,6 @@ import React from 'react';
17
17
  import MenuItem from './MenuItem';
18
18
  import Divider from './Divider';
19
19
  import SubMenu from './SubMenu';
20
- import './style';
21
20
  export default function Menu(props) {
22
21
  var className = props.className,
23
22
  otherProps = _objectWithoutProperties(props, _excluded);
@@ -1,2 +1,2 @@
1
1
  import '../../style';
2
- import "./index.css";
2
+ import './index.less';
@@ -0,0 +1,37 @@
1
+ @import '../../style/index.less';
2
+ @import '../../Icon/index.less';
3
+
4
+ .menu-popup {
5
+ border: 1px solid @NL95;
6
+ box-shadow: @shadow-actionsheet;
7
+ border-radius: @border-radius-base;
8
+ background: @BG100;
9
+ }
10
+
11
+ .ald-menu,
12
+ .ald-submenu {
13
+ .menu-popup();
14
+
15
+ .ant-dropdown-menu-item-divider,
16
+ .ant-dropdown-menu-submenu-title-divider {
17
+ background-color: @NL90;
18
+ }
19
+
20
+ .ald-iconfont {
21
+ font-family: @icon-font !important;
22
+ font-size: 16px;
23
+ font-style: normal;
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ }
27
+
28
+ // 替换二级菜单箭头icon
29
+ .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,
30
+ .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {
31
+ .ald-iconfont('\e691');
32
+ }
33
+
34
+ .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
35
+ background-color: unset;
36
+ }
37
+ }
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IMenuItem } from './components/Menu';
3
- import './style';
4
3
  export type { IMenuItem } from './components/Menu';
5
4
  export interface INavigatorProps {
6
5
  /**
@@ -1,7 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import Menu from './components/Menu';
4
- import './style';
5
4
 
6
5
  function Navigator(props) {
7
6
  var menuList = props.menuList,