@aloudata/aloudata-design 0.3.0 → 0.3.3

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 (214) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +0 -1
  3. package/es/Button/index.js +3 -2
  4. package/es/Button/style/index.less +135 -126
  5. package/es/Button/style/variables.less +53 -53
  6. package/es/Card/index.d.ts +3 -0
  7. package/es/Card/index.js +3 -0
  8. package/es/{Message → Card}/style/index.d.ts +0 -0
  9. package/es/{Message → Card}/style/index.js +0 -0
  10. package/es/{Message → Card}/style/index.less +0 -0
  11. package/es/Checkbox/index.d.ts +0 -1
  12. package/es/Drawer/index.d.ts +4 -0
  13. package/es/Drawer/index.js +3 -0
  14. package/es/{Notification → Drawer}/style/index.d.ts +0 -0
  15. package/es/{Notification → Drawer}/style/index.js +0 -0
  16. package/es/{Notification → Drawer}/style/index.less +0 -0
  17. package/es/Dropdown/Button.js +4 -3
  18. package/es/Empty/image/Authority.d.ts +0 -1
  19. package/es/Empty/image/Dataspace.d.ts +0 -1
  20. package/es/Empty/image/Search.d.ts +0 -1
  21. package/es/Empty/image/Simple.d.ts +0 -1
  22. package/es/Empty/image/Worksheet.d.ts +0 -1
  23. package/es/Empty/image/empty.d.ts +0 -1
  24. package/es/Icon/icons/CheckLine.d.ts +13 -0
  25. package/es/Icon/icons/CheckLine.js +73 -0
  26. package/es/Icon/icons.json +410 -0
  27. package/es/Input/components/Group/index.d.ts +2 -2
  28. package/es/Input/components/Group/index.js +6 -12
  29. package/es/Input/components/Input/index.d.ts +3 -2
  30. package/es/Input/components/Input/index.js +11 -22
  31. package/es/Input/components/Password/index.js +11 -16
  32. package/es/Input/style/index.less +102 -102
  33. package/es/InputNumber/index.d.ts +0 -1
  34. package/es/InputNumber/style/index.less +69 -69
  35. package/es/Menu/Divider.d.ts +0 -1
  36. package/es/Modal/index.js +20 -16
  37. package/es/Modal/locale.d.ts +7 -0
  38. package/es/Modal/locale.js +20 -0
  39. package/es/Modal/style/index.less +45 -45
  40. package/es/Navigator/components/Header/index.d.ts +0 -1
  41. package/es/Navigator/components/Menu/index.d.ts +0 -1
  42. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  43. package/es/Navigator/index.d.ts +1 -1
  44. package/es/PageHeader/index.d.ts +3 -0
  45. package/es/PageHeader/index.js +3 -0
  46. package/{lib/Message → es/PageHeader}/style/index.d.ts +0 -0
  47. package/es/PageHeader/style/index.js +2 -0
  48. package/{lib/Message → es/PageHeader}/style/index.less +0 -0
  49. package/es/Popover/index.d.ts +0 -1
  50. package/es/Select/rc-select/OptionList.js +4 -4
  51. package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
  52. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  53. package/es/Select/style/index.less +69 -45
  54. package/es/Select/style/variables.less +45 -45
  55. package/es/Select/utils/iconUtil.d.ts +2 -2
  56. package/es/Select/utils/iconUtil.js +9 -5
  57. package/es/Steps/components/ProcessIcon/index.d.ts +5 -0
  58. package/es/Steps/components/ProcessIcon/index.js +8 -0
  59. package/es/Steps/components/Step/index.d.ts +20 -0
  60. package/es/Steps/components/Step/index.js +45 -0
  61. package/es/Steps/index.d.ts +36 -2
  62. package/es/Steps/index.js +30 -1
  63. package/es/Steps/matchMedia.mock.d.ts +1 -0
  64. package/es/Steps/matchMedia.mock.js +17 -0
  65. package/es/Steps/style/index.less +251 -0
  66. package/es/Switch/index.d.ts +46 -2
  67. package/es/Switch/index.js +71 -1
  68. package/es/Switch/style/index.less +129 -0
  69. package/es/Table/Table.js +3 -3
  70. package/es/Table/style/index.less +1 -1
  71. package/es/Tabs/index.js +7 -9
  72. package/es/Tabs/style/index.less +57 -25
  73. package/es/index.d.ts +13 -7
  74. package/es/index.js +6 -3
  75. package/es/locale/default.d.ts +2 -0
  76. package/es/locale/default.js +2 -0
  77. package/es/locale/en_US.d.ts +3 -0
  78. package/es/locale/en_US.js +132 -0
  79. package/es/locale/zh_CN.d.ts +3 -2
  80. package/es/locale/zh_CN.js +131 -2
  81. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  82. package/es/locale-provider/LocaleReceiver.js +3 -0
  83. package/es/locale-provider/context.d.ts +7 -0
  84. package/es/locale-provider/context.js +3 -0
  85. package/es/locale-provider/default.d.ts +2 -0
  86. package/es/locale-provider/default.js +2 -0
  87. package/es/locale-provider/en_US.d.ts +2 -0
  88. package/es/locale-provider/en_US.js +2 -0
  89. package/es/locale-provider/index.d.ts +61 -0
  90. package/es/locale-provider/index.js +102 -0
  91. package/es/locale-provider/style/index.d.ts +1 -0
  92. package/es/locale-provider/style/index.js +1 -0
  93. package/es/locale-provider/style/index.less +2 -0
  94. package/es/locale-provider/zh_CN.d.ts +2 -0
  95. package/es/locale-provider/zh_CN.js +2 -0
  96. package/es/{Message → message}/index.d.ts +0 -0
  97. package/es/{Message → message}/index.js +0 -0
  98. package/{lib/Notification → es/message}/style/index.d.ts +0 -0
  99. package/es/message/style/index.js +2 -0
  100. package/{lib/Notification → es/message}/style/index.less +0 -0
  101. package/es/{Notification → notification}/index.d.ts +0 -0
  102. package/es/{Notification → notification}/index.js +0 -0
  103. package/es/notification/style/index.d.ts +2 -0
  104. package/es/notification/style/index.js +2 -0
  105. package/es/notification/style/index.less +1 -0
  106. package/es/style/index.less +1 -1
  107. package/es/style/themes/default/index.less +30 -30
  108. package/lib/Breadcrumb/index.d.ts +0 -1
  109. package/lib/Button/index.js +5 -3
  110. package/lib/Button/style/index.less +135 -126
  111. package/lib/Button/style/variables.less +53 -53
  112. package/lib/Card/index.d.ts +3 -0
  113. package/lib/Card/index.js +15 -0
  114. package/lib/Card/style/index.d.ts +2 -0
  115. package/lib/{Message → Card}/style/index.js +0 -0
  116. package/lib/Card/style/index.less +1 -0
  117. package/lib/Checkbox/index.d.ts +0 -1
  118. package/lib/Drawer/index.d.ts +4 -0
  119. package/lib/Drawer/index.js +15 -0
  120. package/lib/Drawer/style/index.d.ts +2 -0
  121. package/lib/{Notification → Drawer}/style/index.js +0 -0
  122. package/lib/Drawer/style/index.less +1 -0
  123. package/lib/Dropdown/Button.js +8 -6
  124. package/lib/Empty/image/Authority.d.ts +0 -1
  125. package/lib/Empty/image/Dataspace.d.ts +0 -1
  126. package/lib/Empty/image/Search.d.ts +0 -1
  127. package/lib/Empty/image/Simple.d.ts +0 -1
  128. package/lib/Empty/image/Worksheet.d.ts +0 -1
  129. package/lib/Empty/image/empty.d.ts +0 -1
  130. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  131. package/lib/Icon/icons/CheckLine.js +90 -0
  132. package/lib/Icon/icons.json +410 -0
  133. package/lib/Input/components/Group/index.d.ts +2 -2
  134. package/lib/Input/components/Group/index.js +7 -12
  135. package/lib/Input/components/Input/index.d.ts +3 -2
  136. package/lib/Input/components/Input/index.js +13 -22
  137. package/lib/Input/components/Password/index.js +13 -17
  138. package/lib/Input/style/index.less +102 -102
  139. package/lib/InputNumber/index.d.ts +0 -1
  140. package/lib/InputNumber/style/index.less +69 -69
  141. package/lib/Menu/Divider.d.ts +0 -1
  142. package/lib/Modal/index.js +25 -18
  143. package/lib/Modal/locale.d.ts +7 -0
  144. package/lib/Modal/locale.js +31 -0
  145. package/lib/Modal/style/index.less +45 -45
  146. package/lib/Navigator/components/Header/index.d.ts +0 -1
  147. package/lib/Navigator/components/Menu/index.d.ts +0 -1
  148. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  149. package/lib/Navigator/index.d.ts +1 -1
  150. package/lib/PageHeader/index.d.ts +3 -0
  151. package/lib/PageHeader/index.js +15 -0
  152. package/lib/PageHeader/style/index.d.ts +2 -0
  153. package/lib/PageHeader/style/index.js +5 -0
  154. package/lib/PageHeader/style/index.less +1 -0
  155. package/lib/Popover/index.d.ts +0 -1
  156. package/lib/Select/rc-select/OptionList.js +8 -7
  157. package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
  158. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  159. package/lib/Select/style/index.less +69 -45
  160. package/lib/Select/style/variables.less +45 -45
  161. package/lib/Select/utils/iconUtil.d.ts +2 -2
  162. package/lib/Select/utils/iconUtil.js +13 -7
  163. package/lib/Steps/components/ProcessIcon/index.d.ts +5 -0
  164. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  165. package/lib/Steps/components/Step/index.d.ts +20 -0
  166. package/lib/Steps/components/Step/index.js +61 -0
  167. package/lib/Steps/index.d.ts +36 -2
  168. package/lib/Steps/index.js +34 -1
  169. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  170. package/lib/Steps/matchMedia.mock.js +17 -0
  171. package/lib/Steps/style/index.less +251 -0
  172. package/lib/Switch/index.d.ts +46 -2
  173. package/lib/Switch/index.js +78 -1
  174. package/lib/Switch/style/index.less +129 -0
  175. package/lib/Table/Table.js +3 -3
  176. package/lib/Table/style/index.less +1 -1
  177. package/lib/Tabs/index.js +9 -11
  178. package/lib/Tabs/style/index.less +57 -25
  179. package/lib/index.d.ts +13 -7
  180. package/lib/index.js +34 -10
  181. package/lib/locale/default.d.ts +2 -0
  182. package/lib/locale/default.js +13 -0
  183. package/lib/locale/en_US.d.ts +3 -0
  184. package/lib/locale/en_US.js +146 -0
  185. package/lib/locale/zh_CN.d.ts +3 -2
  186. package/lib/locale/zh_CN.js +134 -2
  187. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  188. package/lib/locale-provider/LocaleReceiver.js +23 -0
  189. package/lib/locale-provider/context.d.ts +7 -0
  190. package/lib/locale-provider/context.js +12 -0
  191. package/lib/locale-provider/default.d.ts +2 -0
  192. package/lib/locale-provider/default.js +13 -0
  193. package/lib/locale-provider/en_US.d.ts +2 -0
  194. package/lib/locale-provider/en_US.js +13 -0
  195. package/lib/locale-provider/index.d.ts +61 -0
  196. package/lib/locale-provider/index.js +116 -0
  197. package/lib/locale-provider/style/index.d.ts +1 -0
  198. package/lib/locale-provider/style/index.js +3 -0
  199. package/lib/locale-provider/style/index.less +2 -0
  200. package/lib/locale-provider/zh_CN.d.ts +2 -0
  201. package/lib/locale-provider/zh_CN.js +13 -0
  202. package/lib/{Message → message}/index.d.ts +0 -0
  203. package/lib/{Message → message}/index.js +0 -0
  204. package/lib/message/style/index.d.ts +2 -0
  205. package/lib/message/style/index.js +5 -0
  206. package/lib/message/style/index.less +1 -0
  207. package/lib/{Notification → notification}/index.d.ts +0 -0
  208. package/lib/{Notification → notification}/index.js +0 -0
  209. package/lib/notification/style/index.d.ts +2 -0
  210. package/lib/notification/style/index.js +5 -0
  211. package/lib/notification/style/index.less +1 -0
  212. package/lib/style/index.less +1 -1
  213. package/lib/style/themes/default/index.less +30 -30
  214. package/package.json +11 -8
@@ -1,4 +1,4 @@
1
- var _excluded = ["size"];
1
+ var _excluded = ["size", "className"];
2
2
 
3
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
4
 
@@ -7,35 +7,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
7
7
  import React from 'react';
8
8
  import AntdInput from 'antd/lib/input/Input';
9
9
  import classnames from 'classnames';
10
+ export function getSizeType(sizeType) {
11
+ if (['mini', 'small', 'middle', 'large'].includes(sizeType)) {
12
+ return sizeType;
13
+ }
14
+
15
+ return 'middle';
16
+ }
10
17
  var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
11
18
  var _props$size = props.size,
12
- size = _props$size === void 0 ? 'default' : _props$size,
19
+ size = _props$size === void 0 ? 'middle' : _props$size,
20
+ className = props.className,
13
21
  rest = _objectWithoutProperties(props, _excluded);
14
22
 
15
- var getInputSize = function getInputSize(inputSize) {
16
- if (inputSize === 'small' || inputSize === 'large') {
17
- return inputSize;
18
- }
19
-
20
- return 'middle';
21
- };
22
-
23
- var getClassName = function getClassName(inputSize) {
24
- return classnames('ald-input', {
25
- 'ald-input-small': inputSize === 'small',
26
- 'ald-input-large': inputSize === 'large',
27
- 'ald-input-mini': inputSize === 'mini',
28
- 'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize),
29
- 'ald-input-showCount': props.showCount
30
- });
31
- };
32
-
33
23
  return /*#__PURE__*/React.createElement(AntdInput, Object.assign({}, rest, {
34
24
  // @ts-ignore
35
25
  ref: ref,
36
- size: getInputSize(size),
37
26
  bordered: true,
38
- className: getClassName(size),
27
+ className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), className),
39
28
  addonAfter: null,
40
29
  addonBefore: null,
41
30
  suffix: null
@@ -1,36 +1,31 @@
1
- var _excluded = ["size"];
1
+ import "@aloudata/icons-react/styles/index.less";
2
+ import _EyeOffLine from "@aloudata/icons-react/es/icons/EyeOffLine";
3
+ import "@aloudata/icons-react/styles/index.less";
4
+ import _EyeOnLine from "@aloudata/icons-react/es/icons/EyeOnLine";
5
+ var _excluded = ["size", "className"];
2
6
 
3
7
  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
8
 
5
9
  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; }
6
10
 
7
11
  import React from 'react';
8
- import EyeOffLine from '../../../Icon/icons/EyeOffLine';
9
- import EyeOnLine from '../../../Icon/icons/EyeOnLine';
10
12
  import AntdPassword from 'antd/lib/input/Password';
13
+ import { getSizeType } from '../Input';
11
14
  import classnames from 'classnames'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
15
 
13
16
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
14
17
  var _props$size = props.size,
15
- size = _props$size === void 0 ? 'default' : _props$size,
18
+ size = _props$size === void 0 ? 'middle' : _props$size,
19
+ className = props.className,
16
20
  restProps = _objectWithoutProperties(props, _excluded);
17
21
 
18
- var getClassName = function getClassName(inputSize) {
19
- return classnames('ald-input', {
20
- 'ald-input-small': inputSize === 'small',
21
- 'ald-input-large': inputSize === 'large',
22
- 'ald-input-mini': inputSize === 'mini',
23
- 'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize)
24
- });
25
- };
26
-
27
22
  return /*#__PURE__*/React.createElement(AntdPassword, Object.assign({}, restProps, {
28
23
  ref: ref,
29
- className: getClassName(size),
24
+ className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), className),
30
25
  iconRender: function iconRender(visible) {
31
- return visible ? /*#__PURE__*/React.createElement(EyeOnLine, {
26
+ return visible ? /*#__PURE__*/React.createElement(_EyeOnLine, {
32
27
  fill: "currentColor"
33
- }) : /*#__PURE__*/React.createElement(EyeOffLine, {
28
+ }) : /*#__PURE__*/React.createElement(_EyeOffLine, {
34
29
  fill: "currentColor"
35
30
  });
36
31
  }
@@ -6,57 +6,57 @@
6
6
 
7
7
  @ald-iconfont-css-prefix: anticon;
8
8
  // size===large
9
- @Input-height-large: 36px;
10
- @Input-padding-large: 5px 11px;
11
- @Input-fontSize-large: 16px;
12
- @Input-borderRadius-large: 8px;
13
- @input-prefix-marginRight-large: 8px;
9
+ @input-height-large: 36px;
10
+ @input-padding-large: 5px 11px;
11
+ @input-font-size-large: 16px;
12
+ @input-border-radius-large: 8px;
13
+ @input-prefix-margin-right-large: 8px;
14
14
  // size===middle
15
- @Input-height-middle: 32px;
16
- @Input-padding-middle: 5px 11px;
17
- @Input-fontSize-middle: 14px;
18
- @Input-borderRadius-middle: 6px;
19
- @input-prefix-marginRight-middle: 8px;
15
+ @input-height-middle: 32px;
16
+ @input-padding-middle: 5px 11px;
17
+ @input-font-size-middle: 14px;
18
+ @input-border-radius-middle: 6px;
19
+ @input-prefix-margin-right-middle: 8px;
20
20
  // size===small
21
- @Input-height-small: 28px;
22
- @Input-padding-small: 5px 7px;
23
- @Input-fontSize-small: 12px;
24
- @Input-borderRadius-small: 4px;
25
- @input-prefix-marginRight-small: 4px;
21
+ @input-height-small: 28px;
22
+ @input-padding-small: 5px 7px;
23
+ @input-font-size-small: 12px;
24
+ @input-border-radius-small: 4px;
25
+ @input-prefix-margin-right-small: 4px;
26
26
  // size===mini
27
- @Input-height-mini: 24px;
28
- @Input-padding-mini: 3px 7px;
29
- @Input-fontSize-mini: 12px;
30
- @Input-borderRadius-mini: 4px;
31
- @input-prefix-marginRight-mini: 4px;
27
+ @input-height-mini: 24px;
28
+ @input-padding-mini: 3px 7px;
29
+ @input-font-size-mini: 12px;
30
+ @input-border-radius-mini: 4px;
31
+ @input-prefix-margin-right-mini: 4px;
32
32
  //custom status
33
- @Input-borderColor: @NL90;
34
- @Input-fontColor: @NL0;
35
- @Input-placeholderColor: @NL80;
36
- @Input-prefix-color: @NL50;
37
- @Input-bgColor: @BG97;
33
+ @input-border-color: @NL90;
34
+ @input-fontColor: @NL0;
35
+ @input-placeholder-color: @NL80;
36
+ @input-prefix-color: @NL50;
37
+ @input-bg-color: @BG97;
38
38
  // active status
39
- @Input-active-borderColor: @B60;
40
- @Input-boxShadow-active: 0 0 0 0.5px @B60;
39
+ @input-active-border-color: @B60;
40
+ @input-box-shadow-active: 0 0 0 0.5px @B60;
41
41
  // disabled status
42
- @Input-disabled-borderColor: @NL90;
43
- @Input-disabled-bgColor: @BG95;
44
- @Input-disabled-fontColor: @NL60;
42
+ @input-disabled-border-color: @NL90;
43
+ @input-disabled-bg-color: @BG95;
44
+ @input-disabled-font-color: @NL60;
45
45
 
46
46
  .ant-input.ald-input {
47
47
  color: @NL0;
48
48
  font-weight: 400;
49
- background-color: @Input-bgColor;
50
- border-color: @Input-borderColor;
51
- border-radius: @Input-borderRadius-middle;
49
+ background-color: @input-bg-color;
50
+ border-color: @input-border-color;
51
+ border-radius: @input-border-radius-middle;
52
52
  caret-color: @B60;
53
53
 
54
54
  &::placeholder {
55
- color: @Input-placeholderColor;
55
+ color: @input-placeholder-color;
56
56
  }
57
57
 
58
58
  &-prefix {
59
- color: @Input-prefix-color;
59
+ color: @input-prefix-color;
60
60
  font-size: inherit;
61
61
  }
62
62
 
@@ -67,19 +67,19 @@
67
67
  &:focus,
68
68
  &:hover,
69
69
  &-focused {
70
- border-color: @Input-active-borderColor;
71
- box-shadow: @Input-boxShadow-active;
70
+ border-color: @input-active-border-color;
71
+ box-shadow: @input-box-shadow-active;
72
72
  }
73
73
 
74
74
  &[disabled].ald-input {
75
- color: @Input-disabled-fontColor;
76
- background-color: @Input-disabled-bgColor;
77
- border-color: @Input-disabled-borderColor;
75
+ color: @input-disabled-font-color;
76
+ background-color: @input-disabled-bg-color;
77
+ border-color: @input-disabled-border-color;
78
78
  box-shadow: none;
79
79
  cursor: default;
80
80
 
81
81
  &::placeholder {
82
- color: @Input-placeholderColor;
82
+ color: @input-placeholder-color;
83
83
  }
84
84
  }
85
85
 
@@ -106,24 +106,24 @@
106
106
  }
107
107
 
108
108
  .ant-input-affix-wrapper.ant-input-affix-wrapper {
109
- background-color: @Input-bgColor;
110
- border-color: @Input-borderColor;
109
+ background-color: @input-bg-color;
110
+ border-color: @input-border-color;
111
111
 
112
112
  &:hover,
113
113
  &:focus,
114
114
  &-focused {
115
- border-color: @Input-active-borderColor;
116
- box-shadow: @Input-boxShadow-active;
115
+ border-color: @input-active-border-color;
116
+ box-shadow: @input-box-shadow-active;
117
117
  }
118
118
 
119
119
  .ant-input {
120
120
  color: @NL0;
121
- background-color: @Input-bgColor;
121
+ background-color: @input-bg-color;
122
122
  border-radius: 0;
123
123
  caret-color: @B60;
124
124
 
125
125
  &::placeholder {
126
- color: @Input-placeholderColor;
126
+ color: @input-placeholder-color;
127
127
  }
128
128
  }
129
129
 
@@ -154,58 +154,58 @@
154
154
 
155
155
  .ant-input-affix-wrapper-focused {
156
156
  &.ant-input-password {
157
- border-color: @Input-active-borderColor;
158
- box-shadow: @Input-boxShadow-active;
157
+ border-color: @input-active-border-color;
158
+ box-shadow: @input-box-shadow-active;
159
159
  }
160
160
 
161
161
  &:hover {
162
- border-color: @Input-active-borderColor;
163
- box-shadow: @Input-boxShadow-active;
162
+ border-color: @input-active-border-color;
163
+ box-shadow: @input-box-shadow-active;
164
164
  }
165
165
  }
166
166
 
167
167
  .ald-input {
168
168
  &.ald-input-mini {
169
- height: @Input-height-mini;
170
- padding: @Input-padding-mini;
171
- font-size: @Input-fontSize-mini;
172
- border-radius: @Input-borderRadius-mini;
169
+ height: @input-height-mini;
170
+ padding: @input-padding-mini;
171
+ font-size: @input-font-size-mini;
172
+ border-radius: @input-border-radius-mini;
173
173
 
174
174
  .ant-input-prefix {
175
- margin-right: @input-prefix-marginRight-mini;
175
+ margin-right: @input-prefix-margin-right-mini;
176
176
  }
177
177
  }
178
178
 
179
179
  &.ald-input-small {
180
- height: @Input-height-small;
181
- padding: @Input-padding-small;
182
- font-size: @Input-fontSize-small;
183
- border-radius: @Input-borderRadius-small;
180
+ height: @input-height-small;
181
+ padding: @input-padding-small;
182
+ font-size: @input-font-size-small;
183
+ border-radius: @input-border-radius-small;
184
184
 
185
185
  .ant-input-prefix {
186
- margin-right: @input-prefix-marginRight-small;
186
+ margin-right: @input-prefix-margin-right-small;
187
187
  }
188
188
  }
189
189
 
190
190
  &.ald-input-middle {
191
- height: @Input-height-middle;
192
- padding: @Input-padding-middle;
193
- font-size: @Input-fontSize-middle;
194
- border-radius: @Input-borderRadius-middle;
191
+ height: @input-height-middle;
192
+ padding: @input-padding-middle;
193
+ font-size: @input-font-size-middle;
194
+ border-radius: @input-border-radius-middle;
195
195
 
196
196
  .ant-input-prefix {
197
- margin-right: @input-prefix-marginRight-middle;
197
+ margin-right: @input-prefix-margin-right-middle;
198
198
  }
199
199
  }
200
200
 
201
201
  &.ald-input-large {
202
- height: @Input-height-large;
203
- padding: @Input-padding-large;
204
- font-size: @Input-fontSize-large;
205
- border-radius: @Input-borderRadius-large;
202
+ height: @input-height-large;
203
+ padding: @input-padding-large;
204
+ font-size: @input-font-size-large;
205
+ border-radius: @input-border-radius-large;
206
206
 
207
207
  .ant-input-prefix {
208
- margin-right: @input-prefix-marginRight-large;
208
+ margin-right: @input-prefix-margin-right-large;
209
209
  }
210
210
  }
211
211
  }
@@ -218,27 +218,27 @@
218
218
 
219
219
  .ald-input-group-large {
220
220
  .ald-input {
221
- height: @Input-height-large;
222
- padding: @Input-padding-large;
223
- font-size: @Input-fontSize-large;
221
+ height: @input-height-large;
222
+ padding: @input-padding-large;
223
+ font-size: @input-font-size-large;
224
224
 
225
225
  &.ant-input {
226
- border-radius: @Input-borderRadius-large;
226
+ border-radius: @input-border-radius-large;
227
227
  }
228
228
 
229
229
  .ant-input-prefix {
230
- margin-right: @input-prefix-marginRight-large;
230
+ margin-right: @input-prefix-margin-right-large;
231
231
  }
232
232
  }
233
233
 
234
234
  &.ant-input-group-compact {
235
235
  .ald-input {
236
236
  &:first-of-type {
237
- border-radius: @Input-borderRadius-large 0 0 @Input-borderRadius-large;
237
+ border-radius: @input-border-radius-large 0 0 @input-border-radius-large;
238
238
  }
239
239
 
240
240
  &:last-of-type {
241
- border-radius: 0 @Input-borderRadius-large @Input-borderRadius-large 0;
241
+ border-radius: 0 @input-border-radius-large @input-border-radius-large 0;
242
242
  }
243
243
  }
244
244
  }
@@ -246,28 +246,28 @@
246
246
 
247
247
  .ald-input-group-middle {
248
248
  .ald-input {
249
- height: @Input-height-middle;
250
- padding: @Input-padding-middle;
251
- font-size: @Input-fontSize-middle;
252
- border-radius: @Input-borderRadius-middle;
249
+ height: @input-height-middle;
250
+ padding: @input-padding-middle;
251
+ font-size: @input-font-size-middle;
252
+ border-radius: @input-border-radius-middle;
253
253
 
254
254
  &.ant-input {
255
- border-radius: @Input-borderRadius-middle;
255
+ border-radius: @input-border-radius-middle;
256
256
  }
257
257
 
258
258
  .ant-input-prefix {
259
- margin-right: @input-prefix-marginRight-middle;
259
+ margin-right: @input-prefix-margin-right-middle;
260
260
  }
261
261
  }
262
262
 
263
263
  &.ant-input-group-compact {
264
264
  .ald-input {
265
265
  &:first-of-type {
266
- border-radius: @Input-borderRadius-middle 0 0 @Input-borderRadius-middle;
266
+ border-radius: @input-border-radius-middle 0 0 @input-border-radius-middle;
267
267
  }
268
268
 
269
269
  &:last-of-type {
270
- border-radius: 0 @Input-borderRadius-middle @Input-borderRadius-middle 0;
270
+ border-radius: 0 @input-border-radius-middle @input-border-radius-middle 0;
271
271
  }
272
272
  }
273
273
  }
@@ -275,28 +275,28 @@
275
275
 
276
276
  .ald-input-group-small {
277
277
  .ald-input {
278
- height: @Input-height-small;
279
- padding: @Input-padding-small;
280
- font-size: @Input-fontSize-small;
281
- border-radius: @Input-borderRadius-small;
278
+ height: @input-height-small;
279
+ padding: @input-padding-small;
280
+ font-size: @input-font-size-small;
281
+ border-radius: @input-border-radius-small;
282
282
 
283
283
  &.ant-input {
284
- border-radius: @Input-borderRadius-small;
284
+ border-radius: @input-border-radius-small;
285
285
  }
286
286
 
287
287
  .ant-input-prefix {
288
- margin-right: @input-prefix-marginRight-small;
288
+ margin-right: @input-prefix-margin-right-small;
289
289
  }
290
290
  }
291
291
 
292
292
  &.ant-input-group-compact {
293
293
  .ald-input {
294
294
  &:first-of-type {
295
- border-radius: @Input-borderRadius-small 0 0 @Input-borderRadius-small;
295
+ border-radius: @input-border-radius-small 0 0 @input-border-radius-small;
296
296
  }
297
297
 
298
298
  &:last-of-type {
299
- border-radius: 0 @Input-borderRadius-small @Input-borderRadius-small 0;
299
+ border-radius: 0 @input-border-radius-small @input-border-radius-small 0;
300
300
  }
301
301
  }
302
302
  }
@@ -304,28 +304,28 @@
304
304
 
305
305
  .ald-input-group-mini {
306
306
  .ald-input {
307
- height: @Input-height-mini;
308
- padding: @Input-padding-mini;
309
- font-size: @Input-fontSize-mini;
310
- border-radius: @Input-borderRadius-mini;
307
+ height: @input-height-mini;
308
+ padding: @input-padding-mini;
309
+ font-size: @input-font-size-mini;
310
+ border-radius: @input-border-radius-mini;
311
311
 
312
312
  &.ant-input {
313
- border-radius: @Input-borderRadius-mini;
313
+ border-radius: @input-border-radius-mini;
314
314
  }
315
315
 
316
316
  .ant-input-prefix {
317
- margin-right: @input-prefix-marginRight-mini;
317
+ margin-right: @input-prefix-margin-right-mini;
318
318
  }
319
319
  }
320
320
 
321
321
  &.ant-input-group-compact {
322
322
  .ald-input {
323
323
  &:first-of-type {
324
- border-radius: @Input-borderRadius-mini 0 0 @Input-borderRadius-mini;
324
+ border-radius: @input-border-radius-mini 0 0 @input-border-radius-mini;
325
325
  }
326
326
 
327
327
  &:last-of-type {
328
- border-radius: 0 @Input-borderRadius-mini @Input-borderRadius-mini 0;
328
+ border-radius: 0 @input-border-radius-mini @input-border-radius-mini 0;
329
329
  }
330
330
  }
331
331
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd';
3
2
  export default function InputNumber(props: InputNumberProps): JSX.Element;
4
3
  export type { InputNumberProps };