@oceanbase/design 0.4.0 → 0.4.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 (114) hide show
  1. package/dist/design.min.css +1 -1
  2. package/dist/design.min.js +1 -1
  3. package/dist/reset.css +1 -0
  4. package/es/_util/genComponentStyleHook.d.ts +0 -1
  5. package/es/_util/genComponentStyleHook.js +1 -25
  6. package/es/button/style/index.js +17 -3
  7. package/es/card/index.js +11 -19
  8. package/es/card/style/index.js +5 -3
  9. package/es/checkbox/index.d.ts +2 -0
  10. package/es/checkbox/index.js +40 -1
  11. package/es/checkbox/style/index.d.ts +9 -0
  12. package/es/checkbox/style/index.js +22 -0
  13. package/es/config-provider/index.d.ts +2 -0
  14. package/es/config-provider/index.js +6 -4
  15. package/es/descriptions/hooks/useItems.d.ts +4 -4
  16. package/es/empty/default.js +34 -55
  17. package/es/empty/style/index.js +13 -11
  18. package/es/global.css +48 -0
  19. package/es/index.d.ts +9 -1
  20. package/es/index.js +5 -1
  21. package/es/progress/index.d.ts +1 -0
  22. package/es/progress/index.js +1 -0
  23. package/es/progress/progress.d.ts +1 -0
  24. package/es/progress/progress.js +1 -0
  25. package/es/radio/index.d.ts +7 -0
  26. package/es/radio/index.js +41 -1
  27. package/es/radio/style/index.d.ts +9 -0
  28. package/es/radio/style/index.js +23 -0
  29. package/es/result/style/index.js +10 -2
  30. package/es/slider/index.d.ts +5 -0
  31. package/es/slider/index.js +36 -1
  32. package/es/slider/style/index.d.ts +9 -0
  33. package/es/slider/style/index.js +21 -0
  34. package/es/switch/index.d.ts +4 -0
  35. package/es/switch/index.js +40 -1
  36. package/es/switch/style/index.d.ts +9 -0
  37. package/es/switch/style/index.js +17 -0
  38. package/es/table/index.js +18 -3
  39. package/es/table/style/index.js +55 -40
  40. package/es/theme/default.js +13 -12
  41. package/es/theme/style/aliyun.less +5 -1
  42. package/es/theme/style/compact.less +7 -3
  43. package/es/theme/style/dark.less +5 -1
  44. package/es/theme/style/default.less +15 -11
  45. package/es/tooltip/MouseTooltip.js +3 -2
  46. package/es/tooltip/index.js +3 -2
  47. package/es/tooltip/style/index.js +11 -2
  48. package/es/typography/Link.js +9 -3
  49. package/es/typography/Paragraph.js +9 -3
  50. package/es/typography/Text.js +9 -3
  51. package/es/typography/Title.js +9 -3
  52. package/es/typography/hooks/useClassName.d.ts +3 -0
  53. package/es/typography/hooks/useClassName.js +11 -0
  54. package/es/typography/style/index.js +45 -3
  55. package/lib/_util/genComponentStyleHook.d.ts +0 -1
  56. package/lib/_util/genComponentStyleHook.js +3 -38
  57. package/lib/button/style/index.js +21 -1
  58. package/lib/card/index.js +10 -21
  59. package/lib/card/style/index.js +7 -2
  60. package/lib/checkbox/index.d.ts +2 -0
  61. package/lib/checkbox/index.js +49 -1
  62. package/lib/checkbox/style/index.d.ts +9 -0
  63. package/lib/checkbox/style/index.js +49 -0
  64. package/lib/config-provider/index.d.ts +2 -0
  65. package/lib/config-provider/index.js +2 -1
  66. package/lib/descriptions/hooks/useItems.d.ts +4 -4
  67. package/lib/empty/default.js +8 -39
  68. package/lib/empty/style/index.js +42 -46
  69. package/lib/global.css +48 -0
  70. package/lib/index.d.ts +9 -1
  71. package/lib/index.js +13 -1
  72. package/lib/progress/index.d.ts +1 -0
  73. package/lib/progress/index.js +2 -0
  74. package/lib/progress/progress.d.ts +1 -0
  75. package/lib/progress/progress.js +23 -0
  76. package/lib/radio/index.d.ts +7 -0
  77. package/lib/radio/index.js +42 -1
  78. package/lib/radio/style/index.d.ts +9 -0
  79. package/lib/radio/style/index.js +49 -0
  80. package/lib/result/style/index.js +10 -1
  81. package/lib/slider/index.d.ts +5 -0
  82. package/lib/slider/index.js +38 -1
  83. package/lib/slider/style/index.d.ts +9 -0
  84. package/lib/slider/style/index.js +51 -0
  85. package/lib/switch/index.d.ts +4 -0
  86. package/lib/switch/index.js +40 -1
  87. package/lib/switch/style/index.d.ts +9 -0
  88. package/lib/switch/style/index.js +44 -0
  89. package/lib/table/index.js +19 -3
  90. package/lib/table/style/index.js +94 -55
  91. package/lib/theme/default.js +13 -12
  92. package/lib/theme/style/aliyun.less +5 -1
  93. package/lib/theme/style/compact.less +7 -3
  94. package/lib/theme/style/dark.less +5 -1
  95. package/lib/theme/style/default.less +15 -11
  96. package/lib/tooltip/MouseTooltip.js +3 -2
  97. package/lib/tooltip/index.js +3 -2
  98. package/lib/tooltip/style/index.js +10 -1
  99. package/lib/typography/Link.js +14 -2
  100. package/lib/typography/Paragraph.js +14 -2
  101. package/lib/typography/Text.js +14 -2
  102. package/lib/typography/Title.js +14 -2
  103. package/lib/typography/hooks/useClassName.d.ts +3 -0
  104. package/lib/typography/hooks/useClassName.js +46 -0
  105. package/lib/typography/style/index.js +49 -1
  106. package/package.json +13 -13
  107. package/es/reset.css +0 -10
  108. package/lib/reset.css +0 -10
  109. /package/es/{_util/fonts → fonts}/Consolas.woff2 +0 -0
  110. /package/es/{_util/fonts → fonts}/HelveticaNeue.woff2 +0 -0
  111. /package/es/{_util/fonts → fonts}/Inter.woff2 +0 -0
  112. /package/lib/{_util/fonts → fonts}/Consolas.woff2 +0 -0
  113. /package/lib/{_util/fonts → fonts}/HelveticaNeue.woff2 +0 -0
  114. /package/lib/{_util/fonts → fonts}/Inter.woff2 +0 -0
package/es/radio/index.js CHANGED
@@ -1 +1,41 @@
1
- export * from 'antd/es/radio';
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["prefixCls", "className"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ 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; }
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; }
10
+ import { Radio as AntRadio } from 'antd';
11
+ import classNames from 'classnames';
12
+ import React, { useContext } from 'react';
13
+ import ConfigProvider from "../config-provider";
14
+ import useStyle from "./style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ export * from 'antd/es/radio';
17
+ var InternalRadio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18
+ var customizePrefixCls = _ref.prefixCls,
19
+ className = _ref.className,
20
+ restProps = _objectWithoutProperties(_ref, _excluded);
21
+ var _useContext = useContext(ConfigProvider.ConfigContext),
22
+ getPrefixCls = _useContext.getPrefixCls;
23
+ var prefixCls = getPrefixCls('radio', customizePrefixCls);
24
+ var _useStyle = useStyle(prefixCls),
25
+ wrapSSR = _useStyle.wrapSSR;
26
+ var radioCls = classNames(className);
27
+ return wrapSSR( /*#__PURE__*/_jsx(AntRadio, _objectSpread({
28
+ ref: ref,
29
+ prefixCls: customizePrefixCls,
30
+ className: radioCls
31
+ }, restProps)));
32
+ });
33
+ var Radio = InternalRadio;
34
+ Radio.Button = AntRadio.Button;
35
+ Radio.Group = AntRadio.Group;
36
+ // @ts-ignore
37
+ Radio.__ANT_RADIO = AntRadio.__ANT_RADIO;
38
+ if (process.env.NODE_ENV !== 'production') {
39
+ Radio.displayName = AntRadio.displayName;
40
+ }
41
+ export default Radio;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
3
+ export type RadioToken = FullToken<'Radio'>;
4
+ export declare const genRadioStyle: GenerateStyle<RadioToken>;
5
+ declare const _default: (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,23 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
6
+ export var genRadioStyle = function genRadioStyle(token) {
7
+ var componentCls = token.componentCls,
8
+ radioSize = token.radioSize,
9
+ fontSize = token.fontSize,
10
+ fontSizeLG = token.fontSizeLG,
11
+ lineHeight = token.lineHeight;
12
+ return _defineProperty({}, "".concat(componentCls, "-wrapper"), _defineProperty({}, "".concat(componentCls), _defineProperty({
13
+ alignSelf: 'baseline'
14
+ }, "".concat(componentCls, "-inner"), {
15
+ marginBottom: -(fontSize * lineHeight - (radioSize || fontSizeLG)) / 2
16
+ })));
17
+ };
18
+ export default (function (prefixCls) {
19
+ var useStyle = genComponentStyleHook('Radio', function (token) {
20
+ return [genRadioStyle(token)];
21
+ });
22
+ return useStyle(prefixCls);
23
+ });
@@ -8,9 +8,17 @@ import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
8
8
  import { genLargeStyle } from "../../_util/genStyle";
9
9
  export var genResultStyle = function genResultStyle(token) {
10
10
  var componentCls = token.componentCls;
11
- return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-title"), {
12
- fontWeight: token.fontWeightStrong
11
+ return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-title"), {
12
+ fontWeight: token.fontWeightStrong,
13
+ fontSize: token.fontSizeHeading4,
14
+ lineHeight: token.lineHeightHeading4
15
+ }), "".concat(componentCls, "-subtitle"), {
16
+ maxWidth: 600,
17
+ margin: '0px auto'
13
18
  }), "".concat(componentCls, "-extra"), _objectSpread({}, genLargeStyle(token))), "".concat(componentCls, "-content"), {
19
+ maxWidth: 1000,
20
+ margin: '0px auto',
21
+ marginTop: token.marginLG,
14
22
  padding: token.paddingLG,
15
23
  borderRadius: token.borderRadiusLG
16
24
  }));
@@ -1 +1,6 @@
1
+ import type { SliderSingleProps as AntSliderSingleProps, SliderRangeProps as AntSliderRangeProps } from 'antd/es/slider';
2
+ import type { SliderRef } from 'rc-slider/lib/Slider';
3
+ import React from 'react';
1
4
  export * from 'antd/es/slider';
5
+ declare const Slider: React.ForwardRefExoticComponent<(AntSliderSingleProps | AntSliderRangeProps) & React.RefAttributes<SliderRef>>;
6
+ export default Slider;
@@ -1 +1,36 @@
1
- export * from 'antd/es/slider';
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["prefixCls", "className"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ 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; }
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; }
10
+ import { Slider as AntSlider } from 'antd';
11
+ import classNames from 'classnames';
12
+ import React, { useContext } from 'react';
13
+ import ConfigProvider from "../config-provider";
14
+ import useStyle from "./style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ export * from 'antd/es/slider';
17
+ var Slider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18
+ var customizePrefixCls = _ref.prefixCls,
19
+ className = _ref.className,
20
+ restProps = _objectWithoutProperties(_ref, _excluded);
21
+ var _useContext = useContext(ConfigProvider.ConfigContext),
22
+ getPrefixCls = _useContext.getPrefixCls;
23
+ var prefixCls = getPrefixCls('slider', customizePrefixCls);
24
+ var _useStyle = useStyle(prefixCls),
25
+ wrapSSR = _useStyle.wrapSSR;
26
+ var sliderCls = classNames(className);
27
+ return wrapSSR( /*#__PURE__*/_jsx(AntSlider, _objectSpread({
28
+ ref: ref,
29
+ prefixCls: customizePrefixCls,
30
+ className: sliderCls
31
+ }, restProps)));
32
+ });
33
+ if (process.env.NODE_ENV !== 'production') {
34
+ Slider.displayName = AntSlider.displayName;
35
+ }
36
+ export default Slider;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
3
+ export type SliderToken = FullToken<'Slider'>;
4
+ export declare const genSliderStyle: GenerateStyle<SliderToken>;
5
+ declare const _default: (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,21 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
6
+ export var genSliderStyle = function genSliderStyle(token) {
7
+ var componentCls = token.componentCls,
8
+ _token$dotSize = token.dotSize,
9
+ dotSize = _token$dotSize === void 0 ? 8 : _token$dotSize;
10
+ return _defineProperty({}, "".concat(componentCls).concat(componentCls, "-horizontal"), _defineProperty({}, "".concat(componentCls, "-mark"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-mark-text[style*=\"left: 0%;\"]"), {
11
+ transform: "translateX(calc(0% - ".concat(dotSize / 2, "px)) !important")
12
+ }), "".concat(componentCls, "-mark-text[style*=\"left: 100%;\"]"), {
13
+ transform: "translateX(calc(-100% + ".concat(dotSize / 2, "px)) !important")
14
+ })));
15
+ };
16
+ export default (function (prefixCls) {
17
+ var useStyle = genComponentStyleHook('Slider', function (token) {
18
+ return [genSliderStyle(token)];
19
+ });
20
+ return useStyle(prefixCls);
21
+ });
@@ -1 +1,5 @@
1
+ import type { SwitchProps as AntSwitchProps } from 'antd/es/switch';
2
+ import React from 'react';
1
3
  export * from 'antd/es/switch';
4
+ declare const Switch: React.ForwardRefExoticComponent<AntSwitchProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export default Switch;
@@ -1 +1,40 @@
1
- export * from 'antd/es/switch';
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["prefixCls", "className"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ 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; }
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; }
10
+ import { Switch as AntSwitch } from 'antd';
11
+ import classNames from 'classnames';
12
+ import React, { useContext } from 'react';
13
+ import ConfigProvider from "../config-provider";
14
+ import useStyle from "./style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ export * from 'antd/es/switch';
17
+ var InternalSwitch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18
+ var customizePrefixCls = _ref.prefixCls,
19
+ className = _ref.className,
20
+ restProps = _objectWithoutProperties(_ref, _excluded);
21
+ var _useContext = useContext(ConfigProvider.ConfigContext),
22
+ getPrefixCls = _useContext.getPrefixCls;
23
+ var prefixCls = getPrefixCls('switch', customizePrefixCls);
24
+ var _useStyle = useStyle(prefixCls),
25
+ wrapSSR = _useStyle.wrapSSR;
26
+ var switchCls = classNames(className);
27
+ return wrapSSR( /*#__PURE__*/_jsx(AntSwitch, _objectSpread({
28
+ ref: ref,
29
+ prefixCls: customizePrefixCls,
30
+ className: switchCls
31
+ }, restProps)));
32
+ });
33
+ var Switch = InternalSwitch;
34
+
35
+ // @ts-ignore
36
+ Switch.__ANT_SWITCH = AntSwitch.__ANT_SWITCH;
37
+ if (process.env.NODE_ENV !== 'production') {
38
+ Switch.displayName = AntSwitch.displayName;
39
+ }
40
+ export default Switch;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
3
+ export type SwitchToken = FullToken<'Switch'>;
4
+ export declare const genSwitchStyle: GenerateStyle<SwitchToken>;
5
+ declare const _default: (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,17 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
6
+ export var genSwitchStyle = function genSwitchStyle(token) {
7
+ var componentCls = token.componentCls;
8
+ return _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-checked):not(").concat(componentCls, "-disabled):not(").concat(componentCls, "-loading)"), {
9
+ background: token.colorTextTertiary
10
+ });
11
+ };
12
+ export default (function (prefixCls) {
13
+ var useStyle = genComponentStyleHook('Switch', function (token) {
14
+ return [genSwitchStyle(token)];
15
+ });
16
+ return useStyle(prefixCls);
17
+ });
package/es/table/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["batchOperationBar"];
2
+ var _excluded = ["batchOperationBar", "emptyText"];
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -19,6 +19,7 @@ import { isEmpty } from 'lodash';
19
19
  import React, { useContext, useEffect, useState } from 'react';
20
20
  import ConfigProvider from "../config-provider";
21
21
  import Typography from "../typography";
22
+ import Empty from "../empty";
22
23
  import useStyle from "./style";
23
24
  import useDefaultPagination from "./hooks/useDefaultPagination";
24
25
  import useMergedState from 'rc-util/lib/hooks/useMergedState';
@@ -30,6 +31,7 @@ function Table(props, ref) {
30
31
  var _enUS$Table, _locale$Table;
31
32
  var customLocale = props.locale,
32
33
  columns = props.columns,
34
+ footer = props.footer,
33
35
  customPagination = props.pagination,
34
36
  rowSelection = props.rowSelection,
35
37
  toolAlertRender = props.toolAlertRender,
@@ -53,11 +55,15 @@ function Table(props, ref) {
53
55
  batchOperationBar: _objectSpread(_objectSpread(_objectSpread({}, (_enUS$Table = enUS.Table) === null || _enUS$Table === void 0 ? void 0 : _enUS$Table.batchOperationBar), locale === null || locale === void 0 || (_locale$Table = locale.Table) === null || _locale$Table === void 0 ? void 0 : _locale$Table.batchOperationBar), customLocale === null || customLocale === void 0 ? void 0 : customLocale.batchOperationBar)
54
56
  }),
55
57
  batchOperationBar = _customLocale$batchOp.batchOperationBar,
58
+ _customLocale$batchOp2 = _customLocale$batchOp.emptyText,
59
+ emptyText = _customLocale$batchOp2 === void 0 ? /*#__PURE__*/_jsx(Empty, {
60
+ image: Empty.PRESENTED_IMAGE_SIMPLE
61
+ }) : _customLocale$batchOp2,
56
62
  restLocale = _objectWithoutProperties(_customLocale$batchOp, _excluded);
57
63
  var prefixCls = getPrefixCls('table', customizePrefixCls);
58
64
  var _useStyle = useStyle(prefixCls),
59
65
  wrapSSR = _useStyle.wrapSSR;
60
- var tableCls = classNames(_defineProperty({}, "".concat(prefixCls, "-expandable"), !isEmpty(expandable)), className);
66
+ var tableCls = classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-expandable"), !isEmpty(expandable)), "".concat(prefixCls, "-selectable"), !!rowSelection), "".concat(prefixCls, "-has-footer"), !!footer), className);
61
67
  var _useState = useState(false),
62
68
  _useState2 = _slicedToArray(_useState, 2),
63
69
  openPopover = _useState2[0],
@@ -175,8 +181,16 @@ function Table(props, ref) {
175
181
  ref: ref,
176
182
  prefixCls: customizePrefixCls,
177
183
  className: tableCls,
178
- locale: restLocale,
184
+ locale: _objectSpread(_objectSpread({}, restLocale), {}, {
185
+ emptyText: /*#__PURE__*/_jsx("div", {
186
+ className: "".concat(prefixCls, "-empty-wrapper"),
187
+ children: typeof emptyText === 'function' ? emptyText() : emptyText
188
+ })
189
+ }),
179
190
  columns: newColumns,
191
+ expandable: expandable ? _objectSpread({
192
+ columnWidth: 32
193
+ }, expandable) : undefined,
180
194
  rowSelection: rowSelection ? _objectSpread(_objectSpread({
181
195
  columnWidth: table === null || table === void 0 ? void 0 : table.selectionColumnWidth
182
196
  }, rowSelection), {}, {
@@ -186,6 +200,7 @@ function Table(props, ref) {
186
200
  rowSelection === null || rowSelection === void 0 || (_rowSelection$onChang2 = rowSelection.onChange) === null || _rowSelection$onChang2 === void 0 || _rowSelection$onChang2.call(rowSelection, selectedRowKeys, selectedRows, info);
187
201
  }
188
202
  }) : undefined,
203
+ footer: footer,
189
204
  pagination: pagination === false ? false : _objectSpread(_objectSpread({}, pagination), {}, {
190
205
  hideOnSinglePage: toolAlertRender || toolOptionsRender || toolSelectedContent || pagination !== null && pagination !== void 0 && pagination.showSizeChanger ? false : (pagination === null || pagination === void 0 ? void 0 : pagination.hideOnSinglePage) !== undefined ? pagination === null || pagination === void 0 ? void 0 : pagination.hideOnSinglePage : extendedContext.hideOnSinglePage,
191
206
  showTotal: renderOptionsBar
@@ -14,28 +14,30 @@ export var genTableStyle = function genTableStyle(token) {
14
14
  colorLink = token.colorLink,
15
15
  borderRadiusLG = token.borderRadiusLG,
16
16
  colorBorderSecondary = token.colorBorderSecondary,
17
- paddingSM = token.paddingSM,
18
17
  padding = token.padding,
19
- paddingLG = token.paddingLG,
20
18
  marginLG = token.marginLG,
21
- marginXS = token.marginXS,
22
- marginSM = token.marginSM;
23
- return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty({
19
+ marginXS = token.marginXS;
20
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
24
21
  color: colorText,
25
22
  backgroundColor: colorBgBase,
26
23
  borderRadius: borderRadiusLG
27
- }, "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'td, th', {
24
+ }, "".concat(componentCls, "-footer"), {
25
+ borderBottom: "1px solid ".concat(colorBorderSecondary)
26
+ }), "".concat(componentCls, "-thead, ").concat(componentCls, "-tbody"), _defineProperty({}, 'td, th', _defineProperty(_defineProperty({}, "&".concat(componentCls, "-row-expand-icon-cell"), {
27
+ backgroundColor: colorBgBase,
28
+ padding: "".concat(token.paddingSM, "px ").concat(token.paddingXS, "px")
29
+ }), "&:not(:first-child):not(".concat(componentCls, "-selection-column):not(").concat(componentCls, "-row-expand-icon-cell)"), {
30
+ paddingLeft: token.paddingXS
31
+ }))), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty({}, 'th', {
28
32
  // 弱化列标题
29
33
  color: colorTextSecondary,
30
34
  fontWeight: 'normal',
31
35
  backgroundColor: colorBgBase
32
- }), "td".concat(componentCls, "-row-expand-icon-cell"), {
33
- backgroundColor: colorBgBase
34
- }), "th".concat(componentCls, "-column-sort"), {
36
+ }), "th".concat(componentCls, "-column-has-sorters"), {
35
37
  backgroundColor: colorBgBase
36
38
  }), "".concat(componentCls, "-cell-scrollbar"), {
37
39
  boxShadow: "0 1px 0 1px ".concat(colorBgBase)
38
- })), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
40
+ })), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
39
41
  backgroundColor: colorBgBase
40
42
  }), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
41
43
  backgroundColor: colorFillQuaternary
@@ -43,45 +45,60 @@ export var genTableStyle = function genTableStyle(token) {
43
45
  backgroundColor: "".concat(colorPrimaryBg, " !important")
44
46
  }), "tr".concat(componentCls, "-row-selected > td"), {
45
47
  backgroundColor: "".concat(colorPrimaryBg, " !important")
46
- }), "".concat(componentCls, "-expanded-row > td"), _defineProperty({
47
- padding: "".concat(paddingSM, "px ").concat(paddingLG, "px ").concat(paddingSM, "px ").concat(padding + paddingLG, "px !important"),
48
- backgroundColor: colorBgBase
49
- }, "& > *:not(".concat(componentCls, "-wrapper)"), {
50
- marginTop: -marginSM,
51
- padding: "".concat(paddingSM, "px ").concat(padding, "px"),
52
- backgroundColor: colorFillQuaternary,
53
- borderRadius: borderRadiusLG
54
- })), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty({
55
- // 调整嵌套子表格的间距
56
- marginBlock: '0 !important',
57
- marginInline: '0 !important'
48
+ }), "".concat(componentCls, "-tbody-virtual-scrollbar ").concat(componentCls, "-tbody-virtual-scrollbar-thumb"), {
49
+ background: "".concat(token.colorFillSecondary, " !important")
50
+ }), "tr > td:has(".concat(componentCls, "-row-expand-icon-expanded)"), _defineProperty({
51
+ borderBottom: 'none'
52
+ }, "& ~ td", {
53
+ borderBottom: 'none'
54
+ })), "tr > td", {
55
+ transition: "background ".concat(token.motionDurationMid)
56
+ }), "".concat(componentCls, "-placeholder td"), {
57
+ borderBottom: 'none'
58
+ }), "".concat(componentCls, "-empty-wrapper"), {
59
+ minHeight: 360,
60
+ display: 'flex',
61
+ justifyContent: 'center',
62
+ alignItems: 'center'
63
+ }), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
64
+ borderBottom: 'none'
58
65
  }, "".concat(componentCls, "-thead > tr > th"), {
59
- backgroundColor: "".concat(colorFillQuaternary, " !important")
60
- }), "".concat(componentCls, "-tbody ").concat(componentCls, "-row td"), {
61
- backgroundColor: "".concat(colorFillQuaternary, " !important")
62
- }), "".concat(componentCls, "-tbody > tr:last-child"), _defineProperty({}, 'td:first-child, td:last-child', {
63
- borderRadius: borderRadiusLG
64
- }))))), "".concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-scroll-horizontal, ").concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-fixed-header"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
66
+ backgroundColor: token.colorFillQuaternary
67
+ }), "".concat(componentCls, "-thead > tr:first-child > th:first-child"), {
68
+ borderRadius: 0
69
+ }), "".concat(componentCls, "-thead > tr:first-child > th:last-child"), {
70
+ borderRadius: 0
71
+ }), "".concat(componentCls, "-empty-wrapper"), {
72
+ minHeight: 'auto'
73
+ })))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable):not(").concat(componentCls, "-has-footer) ").concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-empty)"), {
74
+ borderBottom: "1px solid ".concat(colorBorderSecondary),
75
+ borderRadius: 0
76
+ }), "".concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-scroll-horizontal, ").concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-fixed-header"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
65
77
  backgroundColor: colorFillQuaternary
66
78
  }), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
67
79
  backgroundColor: colorBgBase
68
- }))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable)"), _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-bordered)"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr:not(".concat(componentCls, "-measure-row) > td"), {
69
- border: 'none'
70
- })))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row)"), _defineProperty(_defineProperty({}, '& > td', {
80
+ }))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row)"), _defineProperty(_defineProperty({}, '& > td', {
71
81
  backgroundColor: colorBgBase
72
82
  }), '&:hover', {
73
83
  td: {
74
84
  backgroundColor: colorPrimaryBg
75
85
  }
76
- })))), "".concat(componentCls, "-pagination"), _defineProperty({}, "&".concat(antCls, "-pagination"), {
77
- borderTop: 'none'
78
- }))), "".concat(componentCls, "-wrapper ").concat(antCls, "-spin-blur"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "".concat(componentCls, "-placeholder"), {
86
+ })), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
87
+ marginLeft: token.marginXS + token.lineWidth * 2
88
+ }))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
89
+ marginLeft: token.marginXS + token.lineWidth * 2 + token.margin
90
+ })))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable").concat(componentCls, "-selectable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper)"), {
91
+ marginLeft: token.marginLG + token.marginXL + token.lineWidth * 2
92
+ })), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
93
+ marginLeft: token.marginXS + token.marginXL + token.lineWidth * 2
94
+ }))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
95
+ marginLeft: token.marginXS + token.marginXL + token.lineWidth * 2 + token.margin
96
+ })))), "".concat(componentCls, "-wrapper ").concat(antCls, "-spin-blur"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "".concat(componentCls, "-placeholder"), {
79
97
  // hide empty when Table loading
80
98
  visibility: 'hidden'
81
- }))), "".concat(componentCls, "-wrapper"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-pagination"), _defineProperty(_defineProperty({}, "&".concat(antCls, "-pagination"), {
99
+ }))), "".concat(componentCls, "-wrapper"), _defineProperty({}, "".concat(componentCls, "-pagination"), _defineProperty(_defineProperty({}, "&".concat(antCls, "-pagination"), {
82
100
  padding: "".concat(padding, "px 0"),
83
- margin: '0 !important',
84
- borderTop: "1px solid ".concat(colorBorderSecondary)
101
+ margin: '0 !important'
85
102
  }), "".concat(componentCls, "-batch-operation-bar"), _defineProperty({
86
103
  position: 'absolute',
87
104
  left: 0,
@@ -93,9 +110,7 @@ export var genTableStyle = function genTableStyle(token) {
93
110
  }, "".concat(componentCls, "-batch-operation-selection-count"), {
94
111
  margin: "0 ".concat(marginXS, "px"),
95
112
  color: colorLink
96
- })))), "".concat(componentCls).concat(componentCls, "-bordered"), _defineProperty({}, "&+".concat(componentCls, "-pagination"), _defineProperty({}, "&".concat(antCls, "-pagination"), {
97
- borderTop: 'none'
98
- })))), "".concat(antCls, "-popover").concat(componentCls, "-batch-operation-selection-popover"), _defineProperty({}, "".concat(antCls, "-popover-inner"), {
113
+ }))))), "".concat(antCls, "-popover").concat(componentCls, "-batch-operation-selection-popover"), _defineProperty({}, "".concat(antCls, "-popover-inner"), {
99
114
  padding: 0
100
115
  }));
101
116
  };
@@ -14,16 +14,6 @@ var defaultTheme = {
14
14
  token: {
15
15
  fontFamily: "-apple-system, 'Noto Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
16
16
  fontFamilyCode: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
17
- fontSizeHeading1: 32,
18
- fontSizeHeading2: 24,
19
- fontSizeHeading3: 20,
20
- fontSizeHeading4: 16,
21
- fontSizeHeading5: 14,
22
- lineHeightHeading1: 40 / 32,
23
- lineHeightHeading2: 32 / 24,
24
- lineHeightHeading3: 28 / 20,
25
- lineHeightHeading4: 24 / 16,
26
- lineHeightHeading5: 22 / 14,
27
17
  colorPrimaryBg: '#EAF1FF',
28
18
  colorPrimary: '#006AFF',
29
19
  colorPrimaryBgHover: '#EAF1FF',
@@ -94,14 +84,17 @@ var defaultTheme = {
94
84
  boxShadowSecondary: '0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)',
95
85
  boxShadow: '0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02)',
96
86
  borderRadius: 6,
97
- wireframe: false
87
+ wireframe: false,
88
+ // Remove focus outline
89
+ lineWidthFocus: 0
98
90
  },
99
91
  components: {
100
92
  Breadcrumb: {
101
93
  fontSize: 12,
102
94
  // @ts-ignore
103
95
  // fontHeight is internal token
104
- fontHeight: 20
96
+ fontHeight: 20,
97
+ lastItemColor: '#5c6b8a'
105
98
  },
106
99
  InputNumber: {
107
100
  handleVisible: true
@@ -116,6 +109,14 @@ var defaultTheme = {
116
109
  multipleItemBorderColor: tagColorBorder,
117
110
  multipleItemBorderColorDisabled: tagColorBorder
118
111
  },
112
+ Slider: {
113
+ trackBg: '#006AFF',
114
+ trackHoverBg: '#5189fb',
115
+ trackBgDisabled: '#b3ccff',
116
+ handleColor: '#006AFF',
117
+ handleActiveColor: '#5189fb',
118
+ handleColorDisabled: '#b3ccff'
119
+ },
119
120
  Tag: {
120
121
  defaultColor: '#5c6b8a',
121
122
  colorBorder: tagColorBorder
@@ -312,6 +312,9 @@
312
312
  @colorFillSecondary: rgba(0, 0, 0, 0.06);
313
313
  @colorFillTertiary: rgba(0, 0, 0, 0.04);
314
314
  @colorFillQuaternary: rgba(0, 0, 0, 0.02);
315
+ @colorBgSolid: rgb(0, 0, 0);
316
+ @colorBgSolidHover: rgba(0, 0, 0, 0.75);
317
+ @colorBgSolidActive: rgba(0, 0, 0, 0.95);
315
318
  @colorBgLayout: #f2f3f5;
316
319
  @colorBgContainer: #ffffff;
317
320
  @colorBgElevated: #ffffff;
@@ -339,6 +342,7 @@
339
342
  @colorSuccessTextActive: #009c6d;
340
343
  @colorErrorBg: #fff2f0;
341
344
  @colorErrorBgHover: #ffe2de;
345
+ @colorErrorBgFilledHover: #ffd7d3;
342
346
  @colorErrorBgActive: #ffbcb5;
343
347
  @colorErrorBorder: #ffbcb5;
344
348
  @colorErrorBorderHover: #ff948c;
@@ -430,7 +434,7 @@
430
434
  @colorErrorOutline: rgba(255, 38, 5, 0.06);
431
435
  @colorWarningOutline: rgba(255, 195, 5, 0.1);
432
436
  @fontSizeIcon: 12;
433
- @lineWidthFocus: 4;
437
+ @lineWidthFocus: 3;
434
438
  @controlInteractiveSize: 16;
435
439
  @controlItemBgHover: rgba(0, 0, 0, 0.04);
436
440
  @controlItemBgActive: #e6f4ff;
@@ -312,6 +312,9 @@
312
312
  @colorFillSecondary: #e2e8f3;
313
313
  @colorFillTertiary: #f3f6fc;
314
314
  @colorFillQuaternary: #f8fafe;
315
+ @colorBgSolid: rgb(0, 0, 0);
316
+ @colorBgSolidHover: rgba(0, 0, 0, 0.75);
317
+ @colorBgSolidActive: rgba(0, 0, 0, 0.95);
315
318
  @colorBgLayout: #f3f6fc;
316
319
  @colorBgContainer: #ffffff;
317
320
  @colorBgElevated: #ffffff;
@@ -339,6 +342,7 @@
339
342
  @colorSuccessTextActive: #00b378;
340
343
  @colorErrorBg: #ffebeb;
341
344
  @colorErrorBgHover: #ffd6d6;
345
+ @colorErrorBgFilledHover: #ffd7d3;
342
346
  @colorErrorBgActive: #ffbcb5;
343
347
  @colorErrorBorder: #ffb3b3;
344
348
  @colorErrorBorderHover: #ff7575;
@@ -373,7 +377,7 @@
373
377
  @fontSizeLG: 14;
374
378
  @fontSizeXL: 16;
375
379
  @fontSizeHeading1: 32;
376
- @fontSizeHeading2: 24;
380
+ @fontSizeHeading2: 26;
377
381
  @fontSizeHeading3: 20;
378
382
  @fontSizeHeading4: 16;
379
383
  @fontSizeHeading5: 14;
@@ -384,7 +388,7 @@
384
388
  @fontHeightLG: 22;
385
389
  @fontHeightSM: 18;
386
390
  @lineHeightHeading1: 1.25;
387
- @lineHeightHeading2: 1.3333333333333333;
391
+ @lineHeightHeading2: 1.3076923076923077;
388
392
  @lineHeightHeading3: 1.4;
389
393
  @lineHeightHeading4: 1.5;
390
394
  @lineHeightHeading5: 1.5714285714285714;
@@ -410,6 +414,7 @@
410
414
  @borderRadiusOuter: 4;
411
415
  @boxShadowSecondary: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05);
412
416
  @boxShadow: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02);
417
+ @lineWidthFocus: 3;
413
418
  @colorFillContent: #e2e8f3;
414
419
  @colorFillContentHover: #cdd5e4;
415
420
  @colorFillAlter: #f8fafe;
@@ -430,7 +435,6 @@
430
435
  @colorErrorOutline: rgba(255, 5, 5, 0.08);
431
436
  @colorWarningOutline: rgba(255, 164, 19, 0.11);
432
437
  @fontSizeIcon: 10;
433
- @lineWidthFocus: 4;
434
438
  @controlOutlineWidth: 2;
435
439
  @controlInteractiveSize: 14;
436
440
  @controlItemBgHover: #f3f6fc;